@cgi-learning-hub/ui 1.4.0-dev.1741982096 → 1.4.0-dev.1741985772
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/{Alert-Bdy5B5l-.js → Alert-BCd1tHk0.js} +9 -9
- package/dist/{Backdrop-2gYaM9j-.js → Backdrop-CjDitjBW.js} +6 -6
- package/dist/{Box-DgqaLb7j.js → Box-GMNejc_m.js} +7 -7
- package/dist/{Button-B7kOjNW1.js → Button-x5rtZxJN.js} +6 -6
- package/dist/{ButtonBase-IZ_QjbpE.js → ButtonBase-CU1npQuI.js} +4 -4
- package/dist/{CardContent-F4-KcZH8.js → CardContent-CL_61cm-.js} +3 -3
- package/dist/{Checkbox-DgU-0k3O.js → Checkbox-CtRSDqOe.js} +7 -7
- package/dist/{Chip-B8sdMltW.js → Chip-ZIBpWC4I.js} +6 -6
- package/dist/{CircularProgress-CQxzJquv.js → CircularProgress-B28FKeiH.js} +4 -4
- package/dist/{CloseRounded-CYS1vEvm.js → CloseRounded-pP8asZiP.js} +1 -1
- package/dist/{Collapse-CLl0D4CI.js → Collapse-wS8A5zc5.js} +6 -6
- package/dist/CustomTreeItem-CyfVhVMC.js +1002 -0
- package/dist/CustomTreeItem-GHUeoYTN.cjs +3 -0
- package/dist/DatePicker-64gpvkmk.cjs +13 -0
- package/dist/{DatePicker-CHNHFeLy.js → DatePicker-XdCuICxv.js} +2117 -2529
- package/dist/{DefaultPropsProvider-Cqcb4sws.js → DefaultPropsProvider-CQixa6JQ.js} +7 -7
- package/dist/{Delete-CbtdIdDB.js → Delete-BQA9--_t.js} +1 -1
- package/dist/{Dialog-vSSARfm5.js → Dialog-C-Ptqtq-.js} +9 -9
- package/dist/{DialogContent-BzPaz5G8.js → DialogContent-1sjO2rQK.js} +3 -3
- package/dist/{DialogTitle-BNGMQ2Px.js → DialogTitle-CGpa_QH9.js} +5 -5
- package/dist/{Divider-D-pZeQTm.js → Divider-CNGfzZqD.js} +8 -8
- package/dist/{FormLabel-3-CC-ZGw.js → FormLabel-BlaPVlwX.js} +67 -76
- package/dist/FormLabel-XpwTqbs8.cjs +2 -0
- package/dist/{Grow-DewB1oh4.js → Grow-D5UIC41W.js} +4 -4
- package/dist/{IconButton-CCNUMz2l.js → IconButton-CFUIddNg.js} +6 -6
- package/dist/{InputAdornment-DL8XIM8r.js → InputAdornment-GcbiriFv.js} +5 -5
- package/dist/{InputBase-By7jMrFP.js → InputBase-DJuF09Rf.js} +7 -7
- package/dist/{Link-C_GPIs0q.js → Link-DtsZ0d_s.js} +7 -7
- package/dist/List-BTPrBGqY.js +130 -0
- package/dist/List-Bo4pzQqG.cjs +1 -0
- package/dist/ListItem-C9OfYRAP.js +423 -0
- package/dist/ListItem-CB4JyjSb.cjs +1 -0
- package/dist/ListItemText-B_hEVsaT.js +928 -0
- package/dist/ListItemText-Bjd08uk4.cjs +1 -0
- package/dist/{Menu-DTOOgx49.js → Menu-DD_bqi6q.js} +306 -428
- package/dist/Menu-XypIRgTl.cjs +7 -0
- package/dist/{MenuItem-rnMlnHRT.js → MenuItem-Byj-2QQd.js} +72 -77
- package/dist/MenuItem-vb36Ljmd.cjs +1 -0
- package/dist/{Modal-CjMKpo95.js → Modal-S2P14Nsp.js} +8 -8
- package/dist/{Paper-BiZq6EF2.js → Paper-BrsaeLlu.js} +4 -4
- package/dist/{Popper-Cx071JBT.js → Popper-BNftxeQ5.js} +31 -30
- package/dist/Popper-BaxEpkdE.cjs +4 -0
- package/dist/{Portal-iCPDPYlY.js → Portal-BLEnzj1v.js} +2 -2
- package/dist/{Radio-YTlcDTxU.js → Radio-CRTKwNe5.js} +9 -9
- package/dist/{RadioGroup-d9PIO9nR.js → RadioGroup-NjI5PlIb.js} +3 -3
- package/dist/{Select-CHq7l5LD.cjs → Select-8kBUq_SZ.cjs} +1 -1
- package/dist/{Select-bVUll7Rd.js → Select-C0jrZLRg.js} +30 -30
- package/dist/{Stack-hbAJHQhq.js → Stack-Bm7M81n8.js} +22 -22
- package/dist/{Switch-B9uT9-d0.js → Switch-D5FnE7HW.js} +6 -6
- package/dist/{SwitchBase-CDkmnGAP.js → SwitchBase-91Mand9t.js} +5 -5
- package/dist/{Tabs-Cl4eoKT1.js → Tabs-C5VIdTSp.js} +25 -24
- package/dist/Tabs-Csp29aqN.cjs +4 -0
- package/dist/{TextField-DQ2FvwDM.cjs → TextField-BzqflYRV.cjs} +1 -1
- package/dist/{TextField-VHCImaQP.js → TextField-D5jS5WjF.js} +8 -8
- package/dist/ToggleButtonGroup-Bpi3kmko.cjs +140 -0
- package/dist/{ToggleButtonGroup--eIRTlqD.js → ToggleButtonGroup-CipWZLXf.js} +2366 -3278
- package/dist/Tooltip-DJmbLjU6.cjs +4 -0
- package/dist/{Tooltip-BM3r5yvP.js → Tooltip-DgTrUaHJ.js} +10 -10
- package/dist/{Typography-SIQ6eleU.js → Typography-Ct2Sc9KM.js} +5 -5
- package/dist/{capitalize-3KLkrEtk.js → capitalize-BJ0FEsU7.js} +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.es.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 +4 -4
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -9
- package/dist/components/TreeView/TreeView.d.ts +1 -29
- package/dist/components/TreeView/TreeView.es.js +949 -1950
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +4 -0
- package/dist/components/TreeView/components/CustomTreeItem.es.js +9 -0
- package/dist/components/TreeView/index.cjs.js +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.es.js +4 -3
- package/dist/components/TreeView/style.cjs.js +1 -0
- package/dist/components/TreeView/style.d.ts +11 -0
- package/dist/components/TreeView/style.es.js +23 -0
- package/dist/components/TreeView/types.cjs.js +1 -0
- package/dist/components/TreeView/types.d.ts +37 -0
- package/dist/components/TreeView/types.es.js +4 -0
- package/dist/components/TreeView/utils.cjs.js +1 -0
- package/dist/components/TreeView/utils.d.ts +6 -0
- package/dist/components/TreeView/utils.es.js +51 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +344 -340
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- 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.es.js +2 -2
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- 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 +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +2 -2
- package/dist/components/stories/TreeView.stories.d.ts +3 -1
- package/dist/components/stories/TreeView.stories.es.js +288 -107
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-K1Hd8ryN.js → createSvgIcon-B62eln-G.js} +4 -4
- package/dist/{dividerClasses-afsB3Yy1.js → dividerClasses-DjJZQ2Lt.js} +1 -1
- package/dist/{elementTypeAcceptingRef-5ESWTE79.js → elementTypeAcceptingRef-B04tk6ag.js} +1 -1
- package/dist/{extendSxProp-dlShX1xL.js → extendSxProp-CgS-3O19.js} +1 -1
- package/dist/{generateUtilityClasses-DotvgSDH.js → generateUtilityClasses-EXBFO7eY.js} +9 -9
- package/dist/{getReactElementRef-CQNNHBNW.js → getReactElementRef-DjLvttrJ.js} +1 -1
- package/dist/{index-DTTmpNYg.js → index-BZ7ldAwE.js} +4 -4
- package/dist/index-Cr54V0sz.cjs +1 -0
- package/dist/index-D_xl88AE.js +22 -0
- package/dist/{index-B1u7G33_.js → index-DcwdJ8a_.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +344 -340
- package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/listItemTextClasses-BCuJjsDp.cjs +1 -0
- package/dist/listItemTextClasses-Kxu3VILo.js +9 -0
- package/dist/{memoTheme-CqmIydD-.js → memoTheme-DJWQ754x.js} +1 -1
- package/dist/{refType-C210ipRY.js → refType-Bpj8bod6.js} +1 -1
- package/dist/{resolveComponentProps-CPmhKPdH.js → resolveComponentProps-CIdMNno4.js} +1 -1
- package/dist/{useSlot-GZu0V5wJ.js → useSlot-RbAtahZu.js} +1 -1
- package/dist/useSlotProps-BTRhbYwP.cjs +1 -0
- package/dist/useSlotProps-U2Iu6E0j.js +25 -0
- package/dist/{useTheme-tdgDVH1p.js → useTheme-CUKf8NYA.js} +1 -1
- package/dist/useTheme-Czi7oO55.js +11 -0
- package/dist/{useThemeProps-BQlPXzo3.js → useThemeProps-Bxjrhw9q.js} +2 -2
- package/dist/useThemeProps-v-SfXuGn.js +17 -0
- package/dist/{utils-Df4KKPfT.js → utils-B2jSugkj.js} +1 -1
- package/package.json +1 -1
- package/dist/DatePicker-BZ6G6Mxd.cjs +0 -13
- package/dist/FormLabel-BV7-a0i5.cjs +0 -2
- package/dist/Menu-CGrqZ9-7.cjs +0 -7
- package/dist/MenuItem-CCjOFEgY.cjs +0 -1
- package/dist/Popper-AHwSSh80.cjs +0 -4
- package/dist/Tabs-AyJ_tKtV.cjs +0 -4
- package/dist/ToggleButtonGroup-BGZ43Mpb.cjs +0 -140
- package/dist/Tooltip-BLQHNepC.cjs +0 -4
- package/dist/useSlotProps-C9tsxDNg.js +0 -45
- package/dist/useSlotProps-CvOxvhyy.cjs +0 -1
- package/dist/useTheme-BA7tMglY.js +0 -11
- package/dist/useThemeProps-BTfGtNci.js +0 -17
|
@@ -1,254 +1,136 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { o as J } from "./
|
|
12
|
-
import {
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { S as me, P as e, H as he, G as ge, I as X } from "./generateUtilityClasses-EXBFO7eY.js";
|
|
3
|
+
import { u as De } from "./index-D_xl88AE.js";
|
|
4
|
+
import { s as W, u as ye, c as be, r as Ie } from "./DefaultPropsProvider-CQixa6JQ.js";
|
|
5
|
+
import { jsx as U } from "react/jsx-runtime";
|
|
6
|
+
import { u as le } from "./useSlotProps-U2Iu6E0j.js";
|
|
7
|
+
import { i as je } from "./isHostComponent-kiaBvYVo.js";
|
|
8
|
+
import { u as ce } from "./useSlot-RbAtahZu.js";
|
|
9
|
+
import { P as ke, i as Fe } from "./Paper-BrsaeLlu.js";
|
|
10
|
+
import { G as Le } from "./Grow-D5UIC41W.js";
|
|
11
|
+
import { o as J } from "./ownerDocument-CUrv0DIK.js";
|
|
12
|
+
import { o as Q } from "./ownerWindow-niciwP7I.js";
|
|
13
|
+
import { d as ze } from "./debounce-46wSf_lW.js";
|
|
13
14
|
import { u as ve } from "./useForkRef-C_4o__cU.js";
|
|
14
|
-
import { b as
|
|
15
|
-
import { c as
|
|
16
|
-
import { r as
|
|
17
|
-
import { e as
|
|
18
|
-
import { H as
|
|
19
|
-
import { u as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function Be(t) {
|
|
23
|
-
return oe("MuiList", t);
|
|
24
|
-
}
|
|
25
|
-
const wo = ee("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
|
|
26
|
-
const {
|
|
27
|
-
classes: o,
|
|
28
|
-
disablePadding: n,
|
|
29
|
-
dense: y,
|
|
30
|
-
subheader: g
|
|
31
|
-
} = t;
|
|
32
|
-
return ne({
|
|
33
|
-
root: ["root", !n && "padding", y && "dense", g && "subheader"]
|
|
34
|
-
}, Be, o);
|
|
35
|
-
}, Ye = V("ul", {
|
|
36
|
-
name: "MuiList",
|
|
37
|
-
slot: "Root",
|
|
38
|
-
overridesResolver: (t, o) => {
|
|
39
|
-
const {
|
|
40
|
-
ownerState: n
|
|
41
|
-
} = t;
|
|
42
|
-
return [o.root, !n.disablePadding && o.padding, n.dense && o.dense, n.subheader && o.subheader];
|
|
43
|
-
}
|
|
44
|
-
})({
|
|
45
|
-
listStyle: "none",
|
|
46
|
-
margin: 0,
|
|
47
|
-
padding: 0,
|
|
48
|
-
position: "relative",
|
|
49
|
-
variants: [{
|
|
50
|
-
props: ({
|
|
51
|
-
ownerState: t
|
|
52
|
-
}) => !t.disablePadding,
|
|
53
|
-
style: {
|
|
54
|
-
paddingTop: 8,
|
|
55
|
-
paddingBottom: 8
|
|
56
|
-
}
|
|
57
|
-
}, {
|
|
58
|
-
props: ({
|
|
59
|
-
ownerState: t
|
|
60
|
-
}) => t.subheader,
|
|
61
|
-
style: {
|
|
62
|
-
paddingTop: 0
|
|
63
|
-
}
|
|
64
|
-
}]
|
|
65
|
-
}), Te = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
66
|
-
const y = te({
|
|
67
|
-
props: o,
|
|
68
|
-
name: "MuiList"
|
|
69
|
-
}), {
|
|
70
|
-
children: g,
|
|
71
|
-
className: h,
|
|
72
|
-
component: b = "ul",
|
|
73
|
-
dense: a = !1,
|
|
74
|
-
disablePadding: m = !1,
|
|
75
|
-
subheader: E,
|
|
76
|
-
...O
|
|
77
|
-
} = y, S = s.useMemo(() => ({
|
|
78
|
-
dense: a
|
|
79
|
-
}), [a]), D = {
|
|
80
|
-
...y,
|
|
81
|
-
component: b,
|
|
82
|
-
dense: a,
|
|
83
|
-
disablePadding: m
|
|
84
|
-
}, i = Ge(D);
|
|
85
|
-
return /* @__PURE__ */ z(Pe.Provider, {
|
|
86
|
-
value: S,
|
|
87
|
-
children: /* @__PURE__ */ ke(Ye, {
|
|
88
|
-
as: b,
|
|
89
|
-
className: Y(i.root, h),
|
|
90
|
-
ref: n,
|
|
91
|
-
ownerState: D,
|
|
92
|
-
...O,
|
|
93
|
-
children: [E, g]
|
|
94
|
-
})
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
98
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
99
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
100
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
101
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
102
|
-
/**
|
|
103
|
-
* The content of the component.
|
|
104
|
-
*/
|
|
105
|
-
children: e.node,
|
|
106
|
-
/**
|
|
107
|
-
* Override or extend the styles applied to the component.
|
|
108
|
-
*/
|
|
109
|
-
classes: e.object,
|
|
110
|
-
/**
|
|
111
|
-
* @ignore
|
|
112
|
-
*/
|
|
113
|
-
className: e.string,
|
|
114
|
-
/**
|
|
115
|
-
* The component used for the root node.
|
|
116
|
-
* Either a string to use a HTML element or a component.
|
|
117
|
-
*/
|
|
118
|
-
component: e.elementType,
|
|
119
|
-
/**
|
|
120
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
121
|
-
* the list and list items.
|
|
122
|
-
* The prop is available to descendant components as the `dense` context.
|
|
123
|
-
* @default false
|
|
124
|
-
*/
|
|
125
|
-
dense: e.bool,
|
|
126
|
-
/**
|
|
127
|
-
* If `true`, vertical padding is removed from the list.
|
|
128
|
-
* @default false
|
|
129
|
-
*/
|
|
130
|
-
disablePadding: e.bool,
|
|
131
|
-
/**
|
|
132
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
133
|
-
*/
|
|
134
|
-
subheader: e.node,
|
|
135
|
-
/**
|
|
136
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
137
|
-
*/
|
|
138
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
139
|
-
});
|
|
140
|
-
function X(t, o, n) {
|
|
15
|
+
import { b as Ke, M as He } from "./Modal-S2P14Nsp.js";
|
|
16
|
+
import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
|
|
17
|
+
import { r as Ve } from "./refType-Bpj8bod6.js";
|
|
18
|
+
import { e as Ae } from "./elementTypeAcceptingRef-B04tk6ag.js";
|
|
19
|
+
import { H as Z } from "./Portal-BLEnzj1v.js";
|
|
20
|
+
import { u as _e } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
21
|
+
import { L as We } from "./List-BTPrBGqY.js";
|
|
22
|
+
function Y(t, o, n) {
|
|
141
23
|
return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
|
|
142
24
|
}
|
|
143
|
-
function
|
|
25
|
+
function pe(t, o, n) {
|
|
144
26
|
return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
|
|
145
27
|
}
|
|
146
|
-
function
|
|
28
|
+
function Pe(t, o) {
|
|
147
29
|
if (o === void 0)
|
|
148
30
|
return !0;
|
|
149
31
|
let n = t.innerText;
|
|
150
32
|
return n === void 0 && (n = t.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : o.repeating ? n[0] === o.keys[0] : n.startsWith(o.keys.join(""));
|
|
151
33
|
}
|
|
152
|
-
function
|
|
153
|
-
let
|
|
154
|
-
for (;
|
|
155
|
-
if (
|
|
156
|
-
if (
|
|
34
|
+
function _(t, o, n, x, P, h) {
|
|
35
|
+
let g = !1, d = P(t, o, o ? n : !1);
|
|
36
|
+
for (; d; ) {
|
|
37
|
+
if (d === t.firstChild) {
|
|
38
|
+
if (g)
|
|
157
39
|
return !1;
|
|
158
|
-
|
|
40
|
+
g = !0;
|
|
159
41
|
}
|
|
160
|
-
const m =
|
|
161
|
-
if (!
|
|
162
|
-
|
|
42
|
+
const m = x ? !1 : d.disabled || d.getAttribute("aria-disabled") === "true";
|
|
43
|
+
if (!d.hasAttribute("tabindex") || !Pe(d, h) || m)
|
|
44
|
+
d = P(t, d, n);
|
|
163
45
|
else
|
|
164
|
-
return
|
|
46
|
+
return d.focus(), !0;
|
|
165
47
|
}
|
|
166
48
|
return !1;
|
|
167
49
|
}
|
|
168
|
-
const
|
|
50
|
+
const Te = /* @__PURE__ */ a.forwardRef(function(o, n) {
|
|
169
51
|
const {
|
|
170
52
|
// private
|
|
171
53
|
// eslint-disable-next-line react/prop-types
|
|
172
|
-
actions:
|
|
173
|
-
autoFocus:
|
|
54
|
+
actions: x,
|
|
55
|
+
autoFocus: P = !1,
|
|
174
56
|
autoFocusItem: h = !1,
|
|
175
|
-
children:
|
|
176
|
-
className:
|
|
57
|
+
children: g,
|
|
58
|
+
className: d,
|
|
177
59
|
disabledItemsFocusable: m = !1,
|
|
178
|
-
disableListWrap:
|
|
179
|
-
onKeyDown:
|
|
180
|
-
variant:
|
|
181
|
-
...
|
|
182
|
-
} = o,
|
|
60
|
+
disableListWrap: O = !1,
|
|
61
|
+
onKeyDown: N,
|
|
62
|
+
variant: I = "selectedMenu",
|
|
63
|
+
...L
|
|
64
|
+
} = o, s = a.useRef(null), y = a.useRef({
|
|
183
65
|
keys: [],
|
|
184
66
|
repeating: !0,
|
|
185
67
|
previousKeyMatched: !0,
|
|
186
68
|
lastTime: null
|
|
187
69
|
});
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}, [
|
|
70
|
+
_e(() => {
|
|
71
|
+
P && s.current.focus();
|
|
72
|
+
}, [P]), a.useImperativeHandle(x, () => ({
|
|
191
73
|
adjustStyleForScrollbar: (r, {
|
|
192
|
-
direction:
|
|
74
|
+
direction: i
|
|
193
75
|
}) => {
|
|
194
|
-
const
|
|
195
|
-
if (r.clientHeight <
|
|
196
|
-
const
|
|
197
|
-
|
|
76
|
+
const u = !s.current.style.width;
|
|
77
|
+
if (r.clientHeight < s.current.clientHeight && u) {
|
|
78
|
+
const w = `${Ke(Q(r))}px`;
|
|
79
|
+
s.current.style[i === "rtl" ? "paddingLeft" : "paddingRight"] = w, s.current.style.width = `calc(100% + ${w})`;
|
|
198
80
|
}
|
|
199
|
-
return
|
|
81
|
+
return s.current;
|
|
200
82
|
}
|
|
201
83
|
}), []);
|
|
202
|
-
const
|
|
203
|
-
const
|
|
84
|
+
const z = (r) => {
|
|
85
|
+
const i = s.current, u = r.key;
|
|
204
86
|
if (r.ctrlKey || r.metaKey || r.altKey) {
|
|
205
|
-
|
|
87
|
+
N && N(r);
|
|
206
88
|
return;
|
|
207
89
|
}
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
210
|
-
r.preventDefault(),
|
|
211
|
-
else if (
|
|
212
|
-
r.preventDefault(),
|
|
213
|
-
else if (
|
|
214
|
-
r.preventDefault(),
|
|
215
|
-
else if (
|
|
216
|
-
r.preventDefault(),
|
|
217
|
-
else if (
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
|
|
90
|
+
const E = J(i).activeElement;
|
|
91
|
+
if (u === "ArrowDown")
|
|
92
|
+
r.preventDefault(), _(i, E, O, m, Y);
|
|
93
|
+
else if (u === "ArrowUp")
|
|
94
|
+
r.preventDefault(), _(i, E, O, m, pe);
|
|
95
|
+
else if (u === "Home")
|
|
96
|
+
r.preventDefault(), _(i, null, O, m, Y);
|
|
97
|
+
else if (u === "End")
|
|
98
|
+
r.preventDefault(), _(i, null, O, m, pe);
|
|
99
|
+
else if (u.length === 1) {
|
|
100
|
+
const c = y.current, T = u.toLowerCase(), D = performance.now();
|
|
101
|
+
c.keys.length > 0 && (D - c.lastTime > 500 ? (c.keys = [], c.repeating = !0, c.previousKeyMatched = !0) : c.repeating && T !== c.keys[0] && (c.repeating = !1)), c.lastTime = D, c.keys.push(T);
|
|
102
|
+
const C = E && !c.repeating && Pe(E, c);
|
|
103
|
+
c.previousKeyMatched && (C || _(i, E, !1, m, Y, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
|
|
222
104
|
}
|
|
223
|
-
|
|
224
|
-
}, j = ve(
|
|
225
|
-
let
|
|
226
|
-
|
|
227
|
-
if (!/* @__PURE__ */
|
|
228
|
-
|
|
105
|
+
N && N(r);
|
|
106
|
+
}, j = ve(s, n);
|
|
107
|
+
let l = -1;
|
|
108
|
+
a.Children.forEach(g, (r, i) => {
|
|
109
|
+
if (!/* @__PURE__ */ a.isValidElement(r)) {
|
|
110
|
+
l === i && (l += 1, l >= g.length && (l = -1));
|
|
229
111
|
return;
|
|
230
112
|
}
|
|
231
|
-
process.env.NODE_ENV !== "production" &&
|
|
232
|
-
`)), r.props.disabled || (
|
|
113
|
+
process.env.NODE_ENV !== "production" && me.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
114
|
+
`)), r.props.disabled || (I === "selectedMenu" && r.props.selected || l === -1) && (l = i), l === i && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (l += 1, l >= g.length && (l = -1));
|
|
233
115
|
});
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
const
|
|
237
|
-
return h && (
|
|
116
|
+
const R = a.Children.map(g, (r, i) => {
|
|
117
|
+
if (i === l) {
|
|
118
|
+
const u = {};
|
|
119
|
+
return h && (u.autoFocus = !0), r.props.tabIndex === void 0 && I === "selectedMenu" && (u.tabIndex = 0), /* @__PURE__ */ a.cloneElement(r, u);
|
|
238
120
|
}
|
|
239
121
|
return r;
|
|
240
122
|
});
|
|
241
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ U(We, {
|
|
242
124
|
role: "menu",
|
|
243
125
|
ref: j,
|
|
244
|
-
className:
|
|
245
|
-
onKeyDown:
|
|
246
|
-
tabIndex:
|
|
247
|
-
...
|
|
248
|
-
children:
|
|
126
|
+
className: d,
|
|
127
|
+
onKeyDown: z,
|
|
128
|
+
tabIndex: P ? 0 : -1,
|
|
129
|
+
...L,
|
|
130
|
+
children: R
|
|
249
131
|
});
|
|
250
132
|
});
|
|
251
|
-
process.env.NODE_ENV !== "production" && (
|
|
133
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
252
134
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
253
135
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
254
136
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -293,37 +175,37 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
293
175
|
*/
|
|
294
176
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
295
177
|
});
|
|
296
|
-
function
|
|
297
|
-
return
|
|
178
|
+
function qe(t) {
|
|
179
|
+
return he("MuiPopover", t);
|
|
298
180
|
}
|
|
299
|
-
|
|
300
|
-
function
|
|
181
|
+
ge("MuiPopover", ["root", "paper"]);
|
|
182
|
+
function ue(t, o) {
|
|
301
183
|
let n = 0;
|
|
302
184
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
303
185
|
}
|
|
304
|
-
function
|
|
186
|
+
function fe(t, o) {
|
|
305
187
|
let n = 0;
|
|
306
188
|
return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
|
|
307
189
|
}
|
|
308
|
-
function
|
|
190
|
+
function de(t) {
|
|
309
191
|
return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
|
|
310
192
|
}
|
|
311
193
|
function G(t) {
|
|
312
194
|
return typeof t == "function" ? t() : t;
|
|
313
195
|
}
|
|
314
|
-
const
|
|
196
|
+
const $e = (t) => {
|
|
315
197
|
const {
|
|
316
198
|
classes: o
|
|
317
199
|
} = t;
|
|
318
|
-
return
|
|
200
|
+
return be({
|
|
319
201
|
root: ["root"],
|
|
320
202
|
paper: ["paper"]
|
|
321
|
-
},
|
|
322
|
-
},
|
|
203
|
+
}, qe, o);
|
|
204
|
+
}, Be = W(He, {
|
|
323
205
|
name: "MuiPopover",
|
|
324
206
|
slot: "Root",
|
|
325
207
|
overridesResolver: (t, o) => o.root
|
|
326
|
-
})({}),
|
|
208
|
+
})({}), Ee = W(ke, {
|
|
327
209
|
name: "MuiPopover",
|
|
328
210
|
slot: "Paper",
|
|
329
211
|
overridesResolver: (t, o) => o.paper
|
|
@@ -339,192 +221,192 @@ const Ze = (t) => {
|
|
|
339
221
|
maxHeight: "calc(100% - 32px)",
|
|
340
222
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
341
223
|
outline: 0
|
|
342
|
-
}),
|
|
343
|
-
const
|
|
224
|
+
}), Me = /* @__PURE__ */ a.forwardRef(function(o, n) {
|
|
225
|
+
const x = ye({
|
|
344
226
|
props: o,
|
|
345
227
|
name: "MuiPopover"
|
|
346
228
|
}), {
|
|
347
|
-
action:
|
|
229
|
+
action: P,
|
|
348
230
|
anchorEl: h,
|
|
349
|
-
anchorOrigin:
|
|
231
|
+
anchorOrigin: g = {
|
|
350
232
|
vertical: "top",
|
|
351
233
|
horizontal: "left"
|
|
352
234
|
},
|
|
353
|
-
anchorPosition:
|
|
235
|
+
anchorPosition: d,
|
|
354
236
|
anchorReference: m = "anchorEl",
|
|
355
|
-
children:
|
|
356
|
-
className:
|
|
357
|
-
container:
|
|
358
|
-
elevation:
|
|
359
|
-
marginThreshold:
|
|
360
|
-
open:
|
|
361
|
-
PaperProps:
|
|
237
|
+
children: O,
|
|
238
|
+
className: N,
|
|
239
|
+
container: I,
|
|
240
|
+
elevation: L = 8,
|
|
241
|
+
marginThreshold: s = 16,
|
|
242
|
+
open: y,
|
|
243
|
+
PaperProps: z = {},
|
|
362
244
|
slots: j = {},
|
|
363
|
-
slotProps:
|
|
364
|
-
transformOrigin:
|
|
245
|
+
slotProps: l = {},
|
|
246
|
+
transformOrigin: R = {
|
|
365
247
|
vertical: "top",
|
|
366
248
|
horizontal: "left"
|
|
367
249
|
},
|
|
368
|
-
TransitionComponent: r =
|
|
369
|
-
transitionDuration:
|
|
250
|
+
TransitionComponent: r = Le,
|
|
251
|
+
transitionDuration: i = "auto",
|
|
370
252
|
TransitionProps: {
|
|
371
|
-
onEntering:
|
|
372
|
-
...
|
|
253
|
+
onEntering: u,
|
|
254
|
+
...w
|
|
373
255
|
} = {},
|
|
374
|
-
disableScrollLock:
|
|
375
|
-
...
|
|
376
|
-
} =
|
|
377
|
-
...
|
|
378
|
-
anchorOrigin:
|
|
256
|
+
disableScrollLock: E = !1,
|
|
257
|
+
...c
|
|
258
|
+
} = x, T = (l == null ? void 0 : l.paper) ?? z, D = a.useRef(), C = {
|
|
259
|
+
...x,
|
|
260
|
+
anchorOrigin: g,
|
|
379
261
|
anchorReference: m,
|
|
380
|
-
elevation:
|
|
381
|
-
marginThreshold:
|
|
382
|
-
externalPaperSlotProps:
|
|
383
|
-
transformOrigin:
|
|
262
|
+
elevation: L,
|
|
263
|
+
marginThreshold: s,
|
|
264
|
+
externalPaperSlotProps: T,
|
|
265
|
+
transformOrigin: R,
|
|
384
266
|
TransitionComponent: r,
|
|
385
|
-
transitionDuration:
|
|
386
|
-
TransitionProps:
|
|
387
|
-
},
|
|
267
|
+
transitionDuration: i,
|
|
268
|
+
TransitionProps: w
|
|
269
|
+
}, V = $e(C), q = a.useCallback(() => {
|
|
388
270
|
if (m === "anchorPosition")
|
|
389
|
-
return process.env.NODE_ENV !== "production" && (
|
|
390
|
-
const
|
|
271
|
+
return process.env.NODE_ENV !== "production" && (d || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), d;
|
|
272
|
+
const p = G(h), f = p && p.nodeType === 1 ? p : J(D.current).body, v = f.getBoundingClientRect();
|
|
391
273
|
if (process.env.NODE_ENV !== "production") {
|
|
392
|
-
const F =
|
|
274
|
+
const F = f.getBoundingClientRect();
|
|
393
275
|
process.env.NODE_ENV !== "test" && F.top === 0 && F.left === 0 && F.right === 0 && F.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
394
276
|
`));
|
|
395
277
|
}
|
|
396
278
|
return {
|
|
397
|
-
top:
|
|
398
|
-
left:
|
|
279
|
+
top: v.top + ue(v, g.vertical),
|
|
280
|
+
left: v.left + fe(v, g.horizontal)
|
|
399
281
|
};
|
|
400
|
-
}, [h,
|
|
401
|
-
vertical:
|
|
402
|
-
horizontal:
|
|
403
|
-
}), [
|
|
404
|
-
const
|
|
405
|
-
width:
|
|
406
|
-
height:
|
|
407
|
-
},
|
|
282
|
+
}, [h, g.horizontal, g.vertical, d, m]), $ = a.useCallback((p) => ({
|
|
283
|
+
vertical: ue(p, R.vertical),
|
|
284
|
+
horizontal: fe(p, R.horizontal)
|
|
285
|
+
}), [R.horizontal, R.vertical]), B = a.useCallback((p) => {
|
|
286
|
+
const f = {
|
|
287
|
+
width: p.offsetWidth,
|
|
288
|
+
height: p.offsetHeight
|
|
289
|
+
}, v = $(f);
|
|
408
290
|
if (m === "none")
|
|
409
291
|
return {
|
|
410
292
|
top: null,
|
|
411
293
|
left: null,
|
|
412
|
-
transformOrigin:
|
|
294
|
+
transformOrigin: de(v)
|
|
413
295
|
};
|
|
414
|
-
const F =
|
|
415
|
-
let
|
|
416
|
-
const
|
|
417
|
-
if (
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
} else if (
|
|
421
|
-
const
|
|
422
|
-
|
|
296
|
+
const F = q();
|
|
297
|
+
let K = F.top - v.vertical, H = F.left - v.horizontal;
|
|
298
|
+
const re = K + f.height, se = H + f.width, ie = Q(G(h)), A = ie.innerHeight - s, ae = ie.innerWidth - s;
|
|
299
|
+
if (s !== null && K < s) {
|
|
300
|
+
const M = K - s;
|
|
301
|
+
K -= M, v.vertical += M;
|
|
302
|
+
} else if (s !== null && re > A) {
|
|
303
|
+
const M = re - A;
|
|
304
|
+
K -= M, v.vertical += M;
|
|
423
305
|
}
|
|
424
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
425
|
-
`)),
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
} else if (
|
|
429
|
-
const
|
|
430
|
-
|
|
306
|
+
if (process.env.NODE_ENV !== "production" && f.height > A && f.height && A && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${f.height - A}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
307
|
+
`)), s !== null && H < s) {
|
|
308
|
+
const M = H - s;
|
|
309
|
+
H -= M, v.horizontal += M;
|
|
310
|
+
} else if (se > ae) {
|
|
311
|
+
const M = se - ae;
|
|
312
|
+
H -= M, v.horizontal += M;
|
|
431
313
|
}
|
|
432
314
|
return {
|
|
433
|
-
top: `${Math.round(
|
|
434
|
-
left: `${Math.round(
|
|
435
|
-
transformOrigin:
|
|
315
|
+
top: `${Math.round(K)}px`,
|
|
316
|
+
left: `${Math.round(H)}px`,
|
|
317
|
+
transformOrigin: de(v)
|
|
436
318
|
};
|
|
437
|
-
}, [h, m,
|
|
438
|
-
const
|
|
439
|
-
if (!
|
|
319
|
+
}, [h, m, q, $, s]), [b, k] = a.useState(y), S = a.useCallback(() => {
|
|
320
|
+
const p = D.current;
|
|
321
|
+
if (!p)
|
|
440
322
|
return;
|
|
441
|
-
const
|
|
442
|
-
|
|
323
|
+
const f = B(p);
|
|
324
|
+
f.top !== null && p.style.setProperty("top", f.top), f.left !== null && (p.style.left = f.left), p.style.transformOrigin = f.transformOrigin, k(!0);
|
|
443
325
|
}, [B]);
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
},
|
|
326
|
+
a.useEffect(() => (E && window.addEventListener("scroll", S), () => window.removeEventListener("scroll", S)), [h, E, S]);
|
|
327
|
+
const Oe = (p, f) => {
|
|
328
|
+
u && u(p, f), S();
|
|
329
|
+
}, Re = () => {
|
|
448
330
|
k(!1);
|
|
449
331
|
};
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}),
|
|
332
|
+
a.useEffect(() => {
|
|
333
|
+
y && S();
|
|
334
|
+
}), a.useImperativeHandle(P, () => y ? {
|
|
453
335
|
updatePosition: () => {
|
|
454
|
-
|
|
336
|
+
S();
|
|
455
337
|
}
|
|
456
|
-
} : null, [
|
|
457
|
-
if (!
|
|
338
|
+
} : null, [y, S]), a.useEffect(() => {
|
|
339
|
+
if (!y)
|
|
458
340
|
return;
|
|
459
|
-
const
|
|
460
|
-
|
|
461
|
-
}),
|
|
462
|
-
return
|
|
463
|
-
|
|
341
|
+
const p = ze(() => {
|
|
342
|
+
S();
|
|
343
|
+
}), f = Q(h);
|
|
344
|
+
return f.addEventListener("resize", p), () => {
|
|
345
|
+
p.clear(), f.removeEventListener("resize", p);
|
|
464
346
|
};
|
|
465
|
-
}, [h,
|
|
466
|
-
let
|
|
467
|
-
|
|
468
|
-
const
|
|
347
|
+
}, [h, y, S]);
|
|
348
|
+
let ee = i;
|
|
349
|
+
i === "auto" && !r.muiSupportAuto && (ee = void 0);
|
|
350
|
+
const we = I || (h ? J(G(h)).body : void 0), oe = {
|
|
469
351
|
slots: j,
|
|
470
352
|
slotProps: {
|
|
471
|
-
...
|
|
472
|
-
paper:
|
|
353
|
+
...l,
|
|
354
|
+
paper: T
|
|
473
355
|
}
|
|
474
|
-
}, [
|
|
475
|
-
elementType:
|
|
476
|
-
externalForwardedProps:
|
|
356
|
+
}, [Ce, te] = ce("paper", {
|
|
357
|
+
elementType: Ee,
|
|
358
|
+
externalForwardedProps: oe,
|
|
477
359
|
additionalProps: {
|
|
478
|
-
elevation:
|
|
479
|
-
className:
|
|
480
|
-
style:
|
|
481
|
-
...
|
|
360
|
+
elevation: L,
|
|
361
|
+
className: X(V.paper, T == null ? void 0 : T.className),
|
|
362
|
+
style: b ? T.style : {
|
|
363
|
+
...T.style,
|
|
482
364
|
opacity: 0
|
|
483
365
|
}
|
|
484
366
|
},
|
|
485
|
-
ownerState:
|
|
486
|
-
}), [
|
|
487
|
-
slotProps:
|
|
488
|
-
...
|
|
489
|
-
}] =
|
|
490
|
-
elementType:
|
|
491
|
-
externalForwardedProps:
|
|
367
|
+
ownerState: C
|
|
368
|
+
}), [ne, {
|
|
369
|
+
slotProps: xe,
|
|
370
|
+
...Ne
|
|
371
|
+
}] = ce("root", {
|
|
372
|
+
elementType: Be,
|
|
373
|
+
externalForwardedProps: oe,
|
|
492
374
|
additionalProps: {
|
|
493
375
|
slotProps: {
|
|
494
376
|
backdrop: {
|
|
495
377
|
invisible: !0
|
|
496
378
|
}
|
|
497
379
|
},
|
|
498
|
-
container:
|
|
499
|
-
open:
|
|
380
|
+
container: we,
|
|
381
|
+
open: y
|
|
500
382
|
},
|
|
501
|
-
ownerState:
|
|
502
|
-
className:
|
|
503
|
-
}),
|
|
504
|
-
return /* @__PURE__ */
|
|
505
|
-
...
|
|
506
|
-
...!
|
|
507
|
-
slotProps:
|
|
508
|
-
disableScrollLock:
|
|
383
|
+
ownerState: C,
|
|
384
|
+
className: X(V.root, N)
|
|
385
|
+
}), Se = ve(D, te.ref);
|
|
386
|
+
return /* @__PURE__ */ U(ne, {
|
|
387
|
+
...Ne,
|
|
388
|
+
...!je(ne) && {
|
|
389
|
+
slotProps: xe,
|
|
390
|
+
disableScrollLock: E
|
|
509
391
|
},
|
|
510
|
-
...
|
|
392
|
+
...c,
|
|
511
393
|
ref: n,
|
|
512
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ U(r, {
|
|
513
395
|
appear: !0,
|
|
514
|
-
in:
|
|
515
|
-
onEntering:
|
|
516
|
-
onExited:
|
|
517
|
-
timeout:
|
|
518
|
-
...
|
|
519
|
-
children: /* @__PURE__ */
|
|
520
|
-
...
|
|
521
|
-
ref:
|
|
522
|
-
children:
|
|
396
|
+
in: y,
|
|
397
|
+
onEntering: Oe,
|
|
398
|
+
onExited: Re,
|
|
399
|
+
timeout: ee,
|
|
400
|
+
...w,
|
|
401
|
+
children: /* @__PURE__ */ U(Ce, {
|
|
402
|
+
...te,
|
|
403
|
+
ref: Se,
|
|
404
|
+
children: O
|
|
523
405
|
})
|
|
524
406
|
})
|
|
525
407
|
});
|
|
526
408
|
});
|
|
527
|
-
process.env.NODE_ENV !== "production" && (
|
|
409
|
+
process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
528
410
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
529
411
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
530
412
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -533,13 +415,13 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
533
415
|
* A ref for imperative actions.
|
|
534
416
|
* It currently only supports updatePosition() action.
|
|
535
417
|
*/
|
|
536
|
-
action:
|
|
418
|
+
action: Ve,
|
|
537
419
|
/**
|
|
538
420
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
539
421
|
* or a function that returns either.
|
|
540
422
|
* It's used to set the position of the popover.
|
|
541
423
|
*/
|
|
542
|
-
anchorEl:
|
|
424
|
+
anchorEl: Ue(e.oneOfType([Z, e.func]), (t) => {
|
|
543
425
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
544
426
|
const o = G(t.anchorEl);
|
|
545
427
|
if (o && o.nodeType === 1) {
|
|
@@ -623,7 +505,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
623
505
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
624
506
|
* so it's simply `document.body` most of the time.
|
|
625
507
|
*/
|
|
626
|
-
container: e.oneOfType([
|
|
508
|
+
container: e.oneOfType([Z, e.func]),
|
|
627
509
|
/**
|
|
628
510
|
* Disable the scroll lock behavior.
|
|
629
511
|
* @default false
|
|
@@ -633,7 +515,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
633
515
|
* The elevation of the popover.
|
|
634
516
|
* @default 8
|
|
635
517
|
*/
|
|
636
|
-
elevation:
|
|
518
|
+
elevation: Fe,
|
|
637
519
|
/**
|
|
638
520
|
* Specifies how close to the edge of the window the popover can appear.
|
|
639
521
|
* If null, the popover will not be constrained by the window.
|
|
@@ -658,7 +540,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
658
540
|
* @default {}
|
|
659
541
|
*/
|
|
660
542
|
PaperProps: e.shape({
|
|
661
|
-
component:
|
|
543
|
+
component: Ae
|
|
662
544
|
}),
|
|
663
545
|
/**
|
|
664
546
|
* The props used for each slot inside.
|
|
@@ -718,30 +600,30 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
718
600
|
*/
|
|
719
601
|
TransitionProps: e.object
|
|
720
602
|
});
|
|
721
|
-
function
|
|
722
|
-
return
|
|
603
|
+
function Ge(t) {
|
|
604
|
+
return he("MuiMenu", t);
|
|
723
605
|
}
|
|
724
|
-
const
|
|
606
|
+
const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
725
607
|
vertical: "top",
|
|
726
608
|
horizontal: "right"
|
|
727
|
-
},
|
|
609
|
+
}, Xe = {
|
|
728
610
|
vertical: "top",
|
|
729
611
|
horizontal: "left"
|
|
730
|
-
},
|
|
612
|
+
}, Je = (t) => {
|
|
731
613
|
const {
|
|
732
614
|
classes: o
|
|
733
615
|
} = t;
|
|
734
|
-
return
|
|
616
|
+
return be({
|
|
735
617
|
root: ["root"],
|
|
736
618
|
paper: ["paper"],
|
|
737
619
|
list: ["list"]
|
|
738
|
-
},
|
|
739
|
-
},
|
|
740
|
-
shouldForwardProp: (t) =>
|
|
620
|
+
}, Ge, o);
|
|
621
|
+
}, Qe = W(Me, {
|
|
622
|
+
shouldForwardProp: (t) => Ie(t) || t === "classes",
|
|
741
623
|
name: "MuiMenu",
|
|
742
624
|
slot: "Root",
|
|
743
625
|
overridesResolver: (t, o) => o.root
|
|
744
|
-
})({}),
|
|
626
|
+
})({}), Ze = W(Ee, {
|
|
745
627
|
name: "MuiMenu",
|
|
746
628
|
slot: "Paper",
|
|
747
629
|
overridesResolver: (t, o) => o.paper
|
|
@@ -752,107 +634,107 @@ const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
752
634
|
maxHeight: "calc(100% - 96px)",
|
|
753
635
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
754
636
|
WebkitOverflowScrolling: "touch"
|
|
755
|
-
}),
|
|
637
|
+
}), eo = W(Te, {
|
|
756
638
|
name: "MuiMenu",
|
|
757
639
|
slot: "List",
|
|
758
640
|
overridesResolver: (t, o) => o.list
|
|
759
641
|
})({
|
|
760
642
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
761
643
|
outline: 0
|
|
762
|
-
}),
|
|
763
|
-
const
|
|
644
|
+
}), oo = /* @__PURE__ */ a.forwardRef(function(o, n) {
|
|
645
|
+
const x = ye({
|
|
764
646
|
props: o,
|
|
765
647
|
name: "MuiMenu"
|
|
766
648
|
}), {
|
|
767
|
-
autoFocus:
|
|
649
|
+
autoFocus: P = !0,
|
|
768
650
|
children: h,
|
|
769
|
-
className:
|
|
770
|
-
disableAutoFocusItem:
|
|
651
|
+
className: g,
|
|
652
|
+
disableAutoFocusItem: d = !1,
|
|
771
653
|
MenuListProps: m = {},
|
|
772
|
-
onClose:
|
|
773
|
-
open:
|
|
774
|
-
PaperProps:
|
|
775
|
-
PopoverClasses:
|
|
776
|
-
transitionDuration:
|
|
654
|
+
onClose: O,
|
|
655
|
+
open: N,
|
|
656
|
+
PaperProps: I = {},
|
|
657
|
+
PopoverClasses: L,
|
|
658
|
+
transitionDuration: s = "auto",
|
|
777
659
|
TransitionProps: {
|
|
778
|
-
onEntering:
|
|
779
|
-
...
|
|
660
|
+
onEntering: y,
|
|
661
|
+
...z
|
|
780
662
|
} = {},
|
|
781
663
|
variant: j = "selectedMenu",
|
|
782
|
-
slots:
|
|
783
|
-
slotProps:
|
|
664
|
+
slots: l = {},
|
|
665
|
+
slotProps: R = {},
|
|
784
666
|
...r
|
|
785
|
-
} =
|
|
786
|
-
...
|
|
787
|
-
autoFocus:
|
|
788
|
-
disableAutoFocusItem:
|
|
667
|
+
} = x, i = De(), u = {
|
|
668
|
+
...x,
|
|
669
|
+
autoFocus: P,
|
|
670
|
+
disableAutoFocusItem: d,
|
|
789
671
|
MenuListProps: m,
|
|
790
|
-
onEntering:
|
|
791
|
-
PaperProps:
|
|
792
|
-
transitionDuration:
|
|
793
|
-
TransitionProps:
|
|
672
|
+
onEntering: y,
|
|
673
|
+
PaperProps: I,
|
|
674
|
+
transitionDuration: s,
|
|
675
|
+
TransitionProps: z,
|
|
794
676
|
variant: j
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
direction:
|
|
798
|
-
}),
|
|
799
|
-
},
|
|
800
|
-
|
|
677
|
+
}, w = Je(u), E = P && !d && N, c = a.useRef(null), T = (b, k) => {
|
|
678
|
+
c.current && c.current.adjustStyleForScrollbar(b, {
|
|
679
|
+
direction: i ? "rtl" : "ltr"
|
|
680
|
+
}), y && y(b, k);
|
|
681
|
+
}, D = (b) => {
|
|
682
|
+
b.key === "Tab" && (b.preventDefault(), O && O(b, "tabKeyDown"));
|
|
801
683
|
};
|
|
802
|
-
let
|
|
803
|
-
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
`)),
|
|
684
|
+
let C = -1;
|
|
685
|
+
a.Children.map(h, (b, k) => {
|
|
686
|
+
/* @__PURE__ */ a.isValidElement(b) && (process.env.NODE_ENV !== "production" && me.isFragment(b) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
687
|
+
`)), b.props.disabled || (j === "selectedMenu" && b.props.selected || C === -1) && (C = k));
|
|
806
688
|
});
|
|
807
|
-
const
|
|
808
|
-
elementType:
|
|
809
|
-
externalSlotProps:
|
|
810
|
-
ownerState:
|
|
811
|
-
className: [
|
|
812
|
-
}), B =
|
|
813
|
-
elementType:
|
|
814
|
-
externalSlotProps:
|
|
815
|
-
ownerState:
|
|
816
|
-
className:
|
|
689
|
+
const V = l.paper ?? Ze, q = R.paper ?? I, $ = le({
|
|
690
|
+
elementType: l.root,
|
|
691
|
+
externalSlotProps: R.root,
|
|
692
|
+
ownerState: u,
|
|
693
|
+
className: [w.root, g]
|
|
694
|
+
}), B = le({
|
|
695
|
+
elementType: V,
|
|
696
|
+
externalSlotProps: q,
|
|
697
|
+
ownerState: u,
|
|
698
|
+
className: w.paper
|
|
817
699
|
});
|
|
818
|
-
return /* @__PURE__ */
|
|
819
|
-
onClose:
|
|
700
|
+
return /* @__PURE__ */ U(Qe, {
|
|
701
|
+
onClose: O,
|
|
820
702
|
anchorOrigin: {
|
|
821
703
|
vertical: "bottom",
|
|
822
|
-
horizontal:
|
|
704
|
+
horizontal: i ? "right" : "left"
|
|
823
705
|
},
|
|
824
|
-
transformOrigin:
|
|
706
|
+
transformOrigin: i ? Ye : Xe,
|
|
825
707
|
slots: {
|
|
826
|
-
paper:
|
|
827
|
-
root:
|
|
708
|
+
paper: V,
|
|
709
|
+
root: l.root
|
|
828
710
|
},
|
|
829
711
|
slotProps: {
|
|
830
|
-
root:
|
|
712
|
+
root: $,
|
|
831
713
|
paper: B
|
|
832
714
|
},
|
|
833
|
-
open:
|
|
715
|
+
open: N,
|
|
834
716
|
ref: n,
|
|
835
|
-
transitionDuration:
|
|
717
|
+
transitionDuration: s,
|
|
836
718
|
TransitionProps: {
|
|
837
|
-
onEntering:
|
|
838
|
-
...
|
|
719
|
+
onEntering: T,
|
|
720
|
+
...z
|
|
839
721
|
},
|
|
840
|
-
ownerState:
|
|
722
|
+
ownerState: u,
|
|
841
723
|
...r,
|
|
842
|
-
classes:
|
|
843
|
-
children: /* @__PURE__ */
|
|
844
|
-
onKeyDown:
|
|
845
|
-
actions:
|
|
846
|
-
autoFocus:
|
|
847
|
-
autoFocusItem:
|
|
724
|
+
classes: L,
|
|
725
|
+
children: /* @__PURE__ */ U(eo, {
|
|
726
|
+
onKeyDown: D,
|
|
727
|
+
actions: c,
|
|
728
|
+
autoFocus: P && (C === -1 || d),
|
|
729
|
+
autoFocusItem: E,
|
|
848
730
|
variant: j,
|
|
849
731
|
...m,
|
|
850
|
-
className:
|
|
732
|
+
className: X(w.list, m.className),
|
|
851
733
|
children: h
|
|
852
734
|
})
|
|
853
735
|
});
|
|
854
736
|
});
|
|
855
|
-
process.env.NODE_ENV !== "production" && (
|
|
737
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
856
738
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
857
739
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
858
740
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -861,7 +743,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
861
743
|
* An HTML element, or a function that returns one.
|
|
862
744
|
* It's used to set the position of the menu.
|
|
863
745
|
*/
|
|
864
|
-
anchorEl: e.oneOfType([
|
|
746
|
+
anchorEl: e.oneOfType([Z, e.func]),
|
|
865
747
|
/**
|
|
866
748
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
867
749
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -956,11 +838,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
956
838
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
957
839
|
});
|
|
958
840
|
export {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
Pe as b,
|
|
963
|
-
Be as g,
|
|
964
|
-
wo as l,
|
|
965
|
-
Co as m
|
|
841
|
+
oo as M,
|
|
842
|
+
Ge as g,
|
|
843
|
+
Mo as m
|
|
966
844
|
};
|