@cgi-learning-hub/ui 1.5.1-dev.1744639457 → 1.5.1-dev.1744643558
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-CDbAJ9jP.js → Alert-D5C84Q-b.js} +10 -10
- package/dist/ArrowDropDown-Dt89EMyB.cjs +1 -0
- package/dist/ArrowDropDown-DvAbGzWJ.js +37 -0
- package/dist/{Autocomplete-DO8kdiDn.js → Autocomplete-BjXP0c_4.js} +12 -12
- package/dist/{Autocomplete-2DWwLqO5.cjs → Autocomplete-C6uWQlAq.cjs} +1 -1
- package/dist/Backdrop-9ZMM04UV.cjs +1 -0
- package/dist/{Backdrop-CRrNkGxU.js → Backdrop-CFkYB15z.js} +9 -8
- package/dist/{Box-2IEW8Uij.js → Box-CXvmZ2dD.js} +3 -3
- package/dist/{Button-DYWfAsGe.js → Button-Dhxe4eYH.js} +5 -5
- package/dist/{ButtonBase-BZXGvriS.js → ButtonBase-uylSwkXQ.js} +4 -4
- package/dist/{CardContent-oRdx06Ln.js → CardContent-uV5Z3O4p.js} +3 -3
- package/dist/{Checkbox-DMnS1qrF.js → Checkbox-hXnta6hd.js} +7 -7
- package/dist/{Chip-CacnC2L1.js → Chip-klg9LPzp.js} +5 -5
- package/dist/{CircularProgress-_VZwmayK.js → CircularProgress-DcEnE5le.js} +3 -3
- package/dist/{Close-CSvE0tu1.js → Close-KuFfPteA.js} +1 -1
- package/dist/{CloseRounded-CEX-NsA7.js → CloseRounded-D9nattPL.js} +1 -1
- package/dist/{CustomTreeItem-DTV3xokL.js → CustomTreeItem-BITNDbQ_.js} +13 -13
- package/dist/{DatePicker-C-toYUpc.js → DatePicker-D1YD4uGk.js} +30 -30
- package/dist/{DatePicker-DbH5IN_w.cjs → DatePicker-PBy3aYBw.cjs} +1 -1
- package/dist/{DefaultPropsProvider-Bg-6nX-u.js → DefaultPropsProvider-CojEWOKR.js} +7 -7
- package/dist/{Delete-Pl5O0eBK.js → Delete-B4Xhz7O1.js} +1 -1
- package/dist/{Dialog-D1VJ5jXx.cjs → Dialog-BC20prgn.cjs} +1 -1
- package/dist/{Dialog-BGrQDZXr.js → Dialog-Dk2BQsgk.js} +8 -8
- package/dist/{DialogContent-ZiO3fkfO.js → DialogContent-C0BzN5yk.js} +3 -3
- package/dist/{DialogTitle-BiZ7zHp-.js → DialogTitle-7MyBxAkp.js} +5 -5
- package/dist/{DialogTitle-B3MlGamo.cjs → DialogTitle-DwOXEToV.cjs} +1 -1
- package/dist/{Divider-BDN4OyrO.js → Divider-BC2Fp1JG.js} +4 -4
- package/dist/{Folder-CF7SX2AD.js → Folder-DYF788Ow.js} +1 -1
- package/dist/{FormLabel-DNsUciXe.js → FormLabel-Dx6hkLPd.js} +3 -3
- package/dist/{Grow-CLBgYoz_.js → Grow-C654F4zC.js} +5 -4
- package/dist/Grow-DPejKxV0.cjs +1 -0
- package/dist/{IconButton-CT0Plyy5.js → IconButton-BmspylGQ.js} +5 -5
- package/dist/{InputAdornment-Ci0BnJ_e.js → InputAdornment-BrH8kQg8.js} +4 -4
- package/dist/{InputBase-CJvM-WXJ.js → InputBase-B3APXSc_.js} +136 -140
- package/dist/InputBase-CELFJljc.cjs +3 -0
- package/dist/{Link-B6LNMjac.js → Link-D3HS1nTr.js} +11 -11
- package/dist/{List-22h7byk_.js → List-vQ97f0T4.js} +2 -2
- package/dist/{ListItem-B0syBgS7.js → ListItem-kT8cZ-t_.js} +5 -5
- package/dist/{ListItemText-zFoA_mgx.js → ListItemText-DaUQA10v.js} +14 -14
- package/dist/{Menu-4e60iiMU.cjs → Menu-BGO4rdUL.cjs} +1 -1
- package/dist/{Menu-B6t_52q7.js → Menu-bXn70x2T.js} +13 -13
- package/dist/{MenuItem-KNXRjnwO.js → MenuItem-88KizCxg.js} +7 -7
- package/dist/{Modal-BpJ9BCOo.js → Modal-BGSxrh8O.js} +10 -9
- package/dist/Modal-CPt1nneG.cjs +2 -0
- package/dist/{MoreVert-BtC5XWOR.js → MoreVert-BLY3HCz9.js} +1 -1
- package/dist/{Paper-BTFv1nzl.js → Paper-D1MPGEsw.js} +4 -4
- package/dist/{Popper-CyH7Z-lN.cjs → Popper-C6iJjm-m.cjs} +1 -1
- package/dist/{Popper-YJsxmJsm.js → Popper-DbqO1kUk.js} +6 -6
- package/dist/{Portal-CtsVKOQ9.js → Portal-C2eqRUQp.js} +2 -2
- package/dist/{Portal-LP7SUKpU.cjs → Portal-Dm9aDz8_.cjs} +1 -1
- package/dist/{Radio-Dg73Pnqf.js → Radio-BlcCOkYY.js} +8 -8
- package/dist/{RadioGroup-jev5E2xJ.js → RadioGroup-C1L3hzrF.js} +3 -3
- package/dist/Select-BTL6ppWW.cjs +3 -0
- package/dist/{Select-21Pm-BzJ.js → Select-CWv7tdJU.js} +349 -376
- package/dist/{Stack-D2Plrf1_.js → Stack-Bkppffhe.js} +5 -5
- package/dist/{Switch-CNfK1N1c.js → Switch-CbNrfyJP.js} +6 -6
- package/dist/{SwitchBase-BHC3uchj.js → SwitchBase-BkcX4xzb.js} +5 -5
- package/dist/{Tab-BbWlzMyp.js → Tab-CeMAH2vi.js} +11 -11
- package/dist/{TextField-BjzDdsW_.js → TextField-ChDtIm6f.js} +7 -7
- package/dist/{TextField-DFr8lsXU.cjs → TextField-SGIs7v2v.cjs} +1 -1
- package/dist/{ToggleButtonGroup-C_O-zqof.js → ToggleButtonGroup-B8hGStTV.js} +115 -114
- package/dist/{ToggleButtonGroup-BEvrUL8a.cjs → ToggleButtonGroup-C64DhY80.cjs} +37 -37
- package/dist/{Tooltip-Bf5VDDeG.js → Tooltip-DDiPhklW.js} +12 -11
- package/dist/Tooltip-DcBB_9cg.cjs +4 -0
- package/dist/{Typography-BNt9mZKm.js → Typography-BceX4HUn.js} +4 -4
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.cjs.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/components/Autocomplete/Autocomplete.es.js +52 -0
- package/dist/components/Autocomplete/index.cjs.js +1 -0
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.es.js +4 -0
- 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.cjs.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/FolderCard/FolderCard.es.js +2 -2
- 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.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 +4 -4
- 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/TreeView/TreeView.es.js +9 -9
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +143 -142
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- 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.cjs.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.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.es.js +1 -1
- 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 +1 -1
- package/dist/components/stories/TreeView.stories.es.js +11 -11
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-CCutbgLb.js → createSvgIcon-Q_5wEReh.js} +3 -3
- package/dist/{dividerClasses-hlXEfEZK.js → dividerClasses-CG6GpKdW.js} +1 -1
- package/dist/elementAcceptingRef-BzA19fXF.cjs +1 -0
- package/dist/elementAcceptingRef-De-6sh1C.js +25 -0
- package/dist/{elementTypeAcceptingRef-COpcDx5q.js → elementTypeAcceptingRef-DAXsN6bV.js} +1 -1
- package/dist/{extendSxProp-0G38SSpC.js → extendSxProp-BNvofXln.js} +1 -1
- package/dist/getReactElementRef-B4Mdq17D.js +8 -0
- package/dist/getReactElementRef-BPy0WStw.cjs +1 -0
- package/dist/{identifier-BJqC6EXa.js → identifier-UGP6vjyr.js} +5 -5
- package/dist/{index-gxOBDuBW.js → index-BEwCnUM5.js} +1 -1
- package/dist/{index-BOAF-ZZq.js → index-DF_6gEtu.js} +4 -4
- package/dist/{index-DP697UN9.js → index-Q0xeFkEM.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +143 -142
- package/dist/inputBaseClasses-BMcreG7U.cjs +1 -0
- package/dist/inputBaseClasses-BPb0JVKx.js +9 -0
- package/dist/{listItemTextClasses-DBxyCmso.js → listItemTextClasses-Ceqh8Tnn.js} +1 -1
- package/dist/{memoTheme-D_Qap2ZW.js → memoTheme-D0vyNKLd.js} +1 -1
- package/dist/{mergeSlotProps-BSFlgsYC.js → mergeSlotProps-D_CzNhXE.js} +1 -1
- package/dist/{refType-DRBJ18fO.js → refType-BjXePEDa.js} +1 -1
- package/dist/styled-blmInu6U.js +5 -0
- package/dist/{useSlot-DhC6EPU2.js → useSlot-CxlUbTmA.js} +1 -1
- package/dist/{useSlotProps-Bos9nSja.js → useSlotProps-DspaNRnE.js} +1 -1
- package/dist/{useTheme-Dt-VOIyT.js → useTheme-9UmqLsq5.js} +3 -3
- package/dist/{useTheme-B1xvds8x.js → useTheme-CXUszJGf.js} +1 -1
- package/dist/useThemeProps-B4kO75RK.js +17 -0
- package/dist/{useThemeProps-DSVFwH3A.js → useThemeProps-DGawbBM3.js} +2 -2
- package/dist/{utils-qwVZGgXz.js → utils-CByxilR5.js} +1 -1
- package/package.json +1 -1
- package/dist/Backdrop-Be5Hv5U8.cjs +0 -1
- package/dist/Grow-DrEdqZgX.cjs +0 -1
- package/dist/InputBase-C-ES3FPH.cjs +0 -3
- package/dist/Modal-JAWJUstF.cjs +0 -2
- package/dist/Select-CxofSqZJ.cjs +0 -3
- package/dist/Tooltip-DJC7nrsk.cjs +0 -4
- package/dist/getReactElementRef-C6oFed6n.js +0 -31
- package/dist/getReactElementRef-EDbO4rJt.cjs +0 -1
- package/dist/styled-DpPa0vDp.js +0 -5
- package/dist/useThemeProps-CxMYNgfp.js +0 -17
|
@@ -1,58 +1,36 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { O as me, P as e, F as ge, G as ve, H as ie, K as z, Z as bo, U as mo } from "./identifier-UGP6vjyr.js";
|
|
3
3
|
import { f as ye } from "./formControlState-vgaj2ksH.js";
|
|
4
4
|
import { u as he } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as E } from "./memoTheme-
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { a as
|
|
9
|
-
import { M as
|
|
10
|
-
import { r as
|
|
11
|
-
import { i as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { o as
|
|
5
|
+
import { u as X, s as h, c as B, r as k, e as go } from "./DefaultPropsProvider-CojEWOKR.js";
|
|
6
|
+
import { m as E } from "./memoTheme-D0vyNKLd.js";
|
|
7
|
+
import { jsx as y, jsxs as Oe } from "react/jsx-runtime";
|
|
8
|
+
import { a as vo, b as yo } from "./FormLabel-Dx6hkLPd.js";
|
|
9
|
+
import { M as ho } from "./Menu-bXn70x2T.js";
|
|
10
|
+
import { r as H } from "./refType-BjXePEDa.js";
|
|
11
|
+
import { i as Oo } from "./utils-DWqc1kRF.js";
|
|
12
|
+
import { u as Ve } from "./useControlled-BYdyS7Pn.js";
|
|
13
|
+
import { u as Xe } from "./useForkRef-u29GSuCu.js";
|
|
14
|
+
import { o as Co } from "./ownerDocument-CUrv0DIK.js";
|
|
15
15
|
import { u as So } from "./useId-CK6Kn3Tn.js";
|
|
16
|
-
import {
|
|
17
|
-
import { g as
|
|
16
|
+
import { g as Io, i as _, a as Ro, f as L, b as xo, o as $, A as wo } from "./ArrowDropDown-DvAbGzWJ.js";
|
|
17
|
+
import { g as To } from "./getReactElementRef-B4Mdq17D.js";
|
|
18
18
|
import { c as Ce } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
return V("MuiInput", o);
|
|
22
|
-
}
|
|
23
|
-
const X = {
|
|
24
|
-
...Ie,
|
|
25
|
-
...z("MuiInput", ["root", "underline", "input"])
|
|
26
|
-
};
|
|
27
|
-
function To(o) {
|
|
28
|
-
return V("MuiOutlinedInput", o);
|
|
29
|
-
}
|
|
30
|
-
const $ = {
|
|
31
|
-
...Ie,
|
|
32
|
-
...z("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
33
|
-
};
|
|
34
|
-
function No(o) {
|
|
35
|
-
return V("MuiFilledInput", o);
|
|
36
|
-
}
|
|
37
|
-
const L = {
|
|
38
|
-
...Ie,
|
|
39
|
-
...z("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
|
|
40
|
-
}, $o = Ro(/* @__PURE__ */ v("path", {
|
|
41
|
-
d: "M7 10l5 5 5-5z"
|
|
42
|
-
}), "ArrowDropDown"), Po = (o) => {
|
|
19
|
+
import { I as Se, a as Ie, r as Re, b as xe, i as we } from "./InputBase-B3APXSc_.js";
|
|
20
|
+
const No = (o) => {
|
|
43
21
|
const {
|
|
44
22
|
classes: t,
|
|
45
23
|
disableUnderline: n
|
|
46
24
|
} = o, i = B({
|
|
47
25
|
root: ["root", !n && "underline"],
|
|
48
26
|
input: ["input"]
|
|
49
|
-
},
|
|
27
|
+
}, Io, t);
|
|
50
28
|
return {
|
|
51
29
|
...t,
|
|
52
30
|
// forward classes to the InputBase
|
|
53
31
|
...i
|
|
54
32
|
};
|
|
55
|
-
},
|
|
33
|
+
}, $o = h(Ie, {
|
|
56
34
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
57
35
|
name: "MuiInput",
|
|
58
36
|
slot: "Root",
|
|
@@ -60,7 +38,7 @@ const L = {
|
|
|
60
38
|
const {
|
|
61
39
|
ownerState: n
|
|
62
40
|
} = o;
|
|
63
|
-
return [...
|
|
41
|
+
return [...Re(o, t), !n.disableUnderline && t.underline];
|
|
64
42
|
}
|
|
65
43
|
})(E(({
|
|
66
44
|
theme: o
|
|
@@ -96,12 +74,12 @@ const L = {
|
|
|
96
74
|
pointerEvents: "none"
|
|
97
75
|
// Transparent to the hover style.
|
|
98
76
|
},
|
|
99
|
-
[`&.${
|
|
77
|
+
[`&.${_.focused}:after`]: {
|
|
100
78
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
101
79
|
// See https://github.com/mui/material-ui/issues/31766
|
|
102
80
|
transform: "scaleX(1) translateX(0)"
|
|
103
81
|
},
|
|
104
|
-
[`&.${
|
|
82
|
+
[`&.${_.error}`]: {
|
|
105
83
|
"&::before, &::after": {
|
|
106
84
|
borderBottomColor: (o.vars || o).palette.error.main
|
|
107
85
|
}
|
|
@@ -119,14 +97,14 @@ const L = {
|
|
|
119
97
|
pointerEvents: "none"
|
|
120
98
|
// Transparent to the hover style.
|
|
121
99
|
},
|
|
122
|
-
[`&:hover:not(.${
|
|
100
|
+
[`&:hover:not(.${_.disabled}, .${_.error}):before`]: {
|
|
123
101
|
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
124
102
|
// Reset on touch devices, it doesn't add specificity
|
|
125
103
|
"@media (hover: none)": {
|
|
126
104
|
borderBottom: `1px solid ${n}`
|
|
127
105
|
}
|
|
128
106
|
},
|
|
129
|
-
[`&.${
|
|
107
|
+
[`&.${_.disabled}:before`]: {
|
|
130
108
|
borderBottomStyle: "dotted"
|
|
131
109
|
}
|
|
132
110
|
}
|
|
@@ -142,39 +120,39 @@ const L = {
|
|
|
142
120
|
}
|
|
143
121
|
}))]
|
|
144
122
|
};
|
|
145
|
-
})),
|
|
123
|
+
})), Po = h(xe, {
|
|
146
124
|
name: "MuiInput",
|
|
147
125
|
slot: "Input",
|
|
148
|
-
overridesResolver:
|
|
149
|
-
})({}),
|
|
150
|
-
const r =
|
|
126
|
+
overridesResolver: we
|
|
127
|
+
})({}), Te = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
128
|
+
const r = X({
|
|
151
129
|
props: t,
|
|
152
130
|
name: "MuiInput"
|
|
153
131
|
}), {
|
|
154
132
|
disableUnderline: i = !1,
|
|
155
|
-
components:
|
|
133
|
+
components: p = {},
|
|
156
134
|
componentsProps: a,
|
|
157
|
-
fullWidth:
|
|
135
|
+
fullWidth: d = !1,
|
|
158
136
|
inputComponent: b = "input",
|
|
159
137
|
multiline: m = !1,
|
|
160
138
|
slotProps: f,
|
|
161
139
|
slots: c = {},
|
|
162
140
|
type: O = "text",
|
|
163
141
|
...C
|
|
164
|
-
} = r, w =
|
|
142
|
+
} = r, w = No(r), v = {
|
|
165
143
|
root: {
|
|
166
144
|
ownerState: {
|
|
167
145
|
disableUnderline: i
|
|
168
146
|
}
|
|
169
147
|
}
|
|
170
|
-
}, x = f ?? a ?
|
|
171
|
-
return /* @__PURE__ */
|
|
148
|
+
}, x = f ?? a ? me(f ?? a, v) : v, S = c.root ?? p.Root ?? $o, I = c.input ?? p.Input ?? Po;
|
|
149
|
+
return /* @__PURE__ */ y(Se, {
|
|
172
150
|
slots: {
|
|
173
|
-
root:
|
|
174
|
-
input:
|
|
151
|
+
root: S,
|
|
152
|
+
input: I
|
|
175
153
|
},
|
|
176
154
|
slotProps: x,
|
|
177
|
-
fullWidth:
|
|
155
|
+
fullWidth: d,
|
|
178
156
|
inputComponent: b,
|
|
179
157
|
multiline: m,
|
|
180
158
|
ref: n,
|
|
@@ -183,7 +161,7 @@ const L = {
|
|
|
183
161
|
classes: w
|
|
184
162
|
});
|
|
185
163
|
});
|
|
186
|
-
process.env.NODE_ENV !== "production" && (
|
|
164
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
187
165
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
188
166
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
189
167
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -278,7 +256,7 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
278
256
|
/**
|
|
279
257
|
* Pass a ref to the `input` element.
|
|
280
258
|
*/
|
|
281
|
-
inputRef:
|
|
259
|
+
inputRef: H,
|
|
282
260
|
/**
|
|
283
261
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
284
262
|
* FormControl.
|
|
@@ -368,29 +346,29 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
368
346
|
*/
|
|
369
347
|
value: e.any
|
|
370
348
|
});
|
|
371
|
-
|
|
372
|
-
function
|
|
373
|
-
return
|
|
349
|
+
Te.muiName = "Input";
|
|
350
|
+
function ko(o) {
|
|
351
|
+
return ve("MuiInputLabel", o);
|
|
374
352
|
}
|
|
375
|
-
const
|
|
353
|
+
const Ct = ge("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), Eo = (o) => {
|
|
376
354
|
const {
|
|
377
355
|
classes: t,
|
|
378
356
|
formControl: n,
|
|
379
357
|
size: r,
|
|
380
358
|
shrink: i,
|
|
381
|
-
disableAnimation:
|
|
359
|
+
disableAnimation: p,
|
|
382
360
|
variant: a,
|
|
383
|
-
required:
|
|
361
|
+
required: d
|
|
384
362
|
} = o, b = {
|
|
385
|
-
root: ["root", n && "formControl", !
|
|
386
|
-
asterisk: [
|
|
387
|
-
}, m = B(b,
|
|
363
|
+
root: ["root", n && "formControl", !p && "animated", i && "shrink", r && r !== "medium" && `size${z(r)}`, a],
|
|
364
|
+
asterisk: [d && "asterisk"]
|
|
365
|
+
}, m = B(b, ko, t);
|
|
388
366
|
return {
|
|
389
367
|
...t,
|
|
390
368
|
// forward the focused, disabled, etc. classes to the FormLabel
|
|
391
369
|
...m
|
|
392
370
|
};
|
|
393
|
-
},
|
|
371
|
+
}, Fo = h(vo, {
|
|
394
372
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
395
373
|
name: "MuiInputLabel",
|
|
396
374
|
slot: "Root",
|
|
@@ -399,7 +377,7 @@ const St = z("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
399
377
|
ownerState: n
|
|
400
378
|
} = o;
|
|
401
379
|
return [{
|
|
402
|
-
[`& .${
|
|
380
|
+
[`& .${yo.asterisk}`]: t.asterisk
|
|
403
381
|
}, t.root, n.formControl && t.formControl, n.size === "small" && t.sizeSmall, n.shrink && t.shrink, !n.disableAnimation && t.animated, n.focused && t.focused, t[n.variant]];
|
|
404
382
|
}
|
|
405
383
|
})(E(({
|
|
@@ -524,15 +502,15 @@ const St = z("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
524
502
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
525
503
|
}
|
|
526
504
|
}]
|
|
527
|
-
}))),
|
|
528
|
-
const r =
|
|
505
|
+
}))), jo = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
506
|
+
const r = X({
|
|
529
507
|
name: "MuiInputLabel",
|
|
530
508
|
props: t
|
|
531
509
|
}), {
|
|
532
510
|
disableAnimation: i = !1,
|
|
533
|
-
margin:
|
|
511
|
+
margin: p,
|
|
534
512
|
shrink: a,
|
|
535
|
-
variant:
|
|
513
|
+
variant: d,
|
|
536
514
|
className: b,
|
|
537
515
|
...m
|
|
538
516
|
} = r, f = he();
|
|
@@ -551,17 +529,17 @@ const St = z("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
551
529
|
variant: O.variant,
|
|
552
530
|
required: O.required,
|
|
553
531
|
focused: O.focused
|
|
554
|
-
}, w =
|
|
555
|
-
return /* @__PURE__ */
|
|
532
|
+
}, w = Eo(C);
|
|
533
|
+
return /* @__PURE__ */ y(Fo, {
|
|
556
534
|
"data-shrink": c,
|
|
557
535
|
ref: n,
|
|
558
|
-
className:
|
|
536
|
+
className: ie(w.root, b),
|
|
559
537
|
...m,
|
|
560
538
|
ownerState: C,
|
|
561
539
|
classes: w
|
|
562
540
|
});
|
|
563
541
|
});
|
|
564
|
-
process.env.NODE_ENV !== "production" && (
|
|
542
|
+
process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
565
543
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
566
544
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
567
545
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -628,23 +606,23 @@ process.env.NODE_ENV !== "production" && (Lo.propTypes = {
|
|
|
628
606
|
*/
|
|
629
607
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
630
608
|
});
|
|
631
|
-
function
|
|
632
|
-
return
|
|
609
|
+
function Mo(o) {
|
|
610
|
+
return ve("MuiNativeSelect", o);
|
|
633
611
|
}
|
|
634
|
-
const
|
|
612
|
+
const Ne = ge("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Lo = (o) => {
|
|
635
613
|
const {
|
|
636
614
|
classes: t,
|
|
637
615
|
variant: n,
|
|
638
616
|
disabled: r,
|
|
639
617
|
multiple: i,
|
|
640
|
-
open:
|
|
618
|
+
open: p,
|
|
641
619
|
error: a
|
|
642
|
-
} = o,
|
|
620
|
+
} = o, d = {
|
|
643
621
|
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
644
|
-
icon: ["icon", `icon${
|
|
622
|
+
icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"]
|
|
645
623
|
};
|
|
646
|
-
return B(
|
|
647
|
-
},
|
|
624
|
+
return B(d, Mo, t);
|
|
625
|
+
}, He = h("select")(({
|
|
648
626
|
theme: o
|
|
649
627
|
}) => ({
|
|
650
628
|
// Reset
|
|
@@ -661,7 +639,7 @@ const $e = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
661
639
|
// Reset Chrome style
|
|
662
640
|
borderRadius: 0
|
|
663
641
|
},
|
|
664
|
-
[`&.${
|
|
642
|
+
[`&.${Ne.disabled}`]: {
|
|
665
643
|
cursor: "default"
|
|
666
644
|
},
|
|
667
645
|
"&[multiple]": {
|
|
@@ -706,7 +684,7 @@ const $e = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
706
684
|
}
|
|
707
685
|
}
|
|
708
686
|
}]
|
|
709
|
-
})),
|
|
687
|
+
})), Bo = h(He, {
|
|
710
688
|
name: "MuiNativeSelect",
|
|
711
689
|
slot: "Select",
|
|
712
690
|
shouldForwardProp: k,
|
|
@@ -715,7 +693,7 @@ const $e = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
715
693
|
ownerState: n
|
|
716
694
|
} = o;
|
|
717
695
|
return [t.select, t[n.variant], n.error && t.error, {
|
|
718
|
-
[`&.${
|
|
696
|
+
[`&.${Ne.multiple}`]: t.multiple
|
|
719
697
|
}];
|
|
720
698
|
}
|
|
721
699
|
})({}), Ge = h("svg")(({
|
|
@@ -730,7 +708,7 @@ const $e = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
730
708
|
// Don't block pointer events on the select under the icon.
|
|
731
709
|
pointerEvents: "none",
|
|
732
710
|
color: (o.vars || o).palette.action.active,
|
|
733
|
-
[`&.${
|
|
711
|
+
[`&.${Ne.disabled}`]: {
|
|
734
712
|
color: (o.vars || o).palette.action.disabled
|
|
735
713
|
},
|
|
736
714
|
variants: [{
|
|
@@ -755,45 +733,45 @@ const $e = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
755
733
|
right: 7
|
|
756
734
|
}
|
|
757
735
|
}]
|
|
758
|
-
})),
|
|
736
|
+
})), Wo = h(Ge, {
|
|
759
737
|
name: "MuiNativeSelect",
|
|
760
738
|
slot: "Icon",
|
|
761
739
|
overridesResolver: (o, t) => {
|
|
762
740
|
const {
|
|
763
741
|
ownerState: n
|
|
764
742
|
} = o;
|
|
765
|
-
return [t.icon, n.variant && t[`icon${
|
|
743
|
+
return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
|
|
766
744
|
}
|
|
767
|
-
})({}),
|
|
745
|
+
})({}), Ye = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
768
746
|
const {
|
|
769
747
|
className: r,
|
|
770
748
|
disabled: i,
|
|
771
|
-
error:
|
|
749
|
+
error: p,
|
|
772
750
|
IconComponent: a,
|
|
773
|
-
inputRef:
|
|
751
|
+
inputRef: d,
|
|
774
752
|
variant: b = "standard",
|
|
775
753
|
...m
|
|
776
754
|
} = t, f = {
|
|
777
755
|
...t,
|
|
778
756
|
disabled: i,
|
|
779
757
|
variant: b,
|
|
780
|
-
error:
|
|
781
|
-
}, c =
|
|
758
|
+
error: p
|
|
759
|
+
}, c = Lo(f);
|
|
782
760
|
return /* @__PURE__ */ Oe(u.Fragment, {
|
|
783
|
-
children: [/* @__PURE__ */
|
|
761
|
+
children: [/* @__PURE__ */ y(Bo, {
|
|
784
762
|
ownerState: f,
|
|
785
|
-
className:
|
|
763
|
+
className: ie(c.select, r),
|
|
786
764
|
disabled: i,
|
|
787
|
-
ref:
|
|
765
|
+
ref: d || n,
|
|
788
766
|
...m
|
|
789
|
-
}), t.multiple ? null : /* @__PURE__ */
|
|
767
|
+
}), t.multiple ? null : /* @__PURE__ */ y(Wo, {
|
|
790
768
|
as: a,
|
|
791
769
|
ownerState: f,
|
|
792
770
|
className: c.icon
|
|
793
771
|
})]
|
|
794
772
|
});
|
|
795
773
|
});
|
|
796
|
-
process.env.NODE_ENV !== "production" && (
|
|
774
|
+
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
797
775
|
/**
|
|
798
776
|
* The option elements to populate the select with.
|
|
799
777
|
* Can be some `<option>` elements.
|
|
@@ -823,7 +801,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
|
823
801
|
* Use that prop to pass a ref to the native select element.
|
|
824
802
|
* @deprecated
|
|
825
803
|
*/
|
|
826
|
-
inputRef:
|
|
804
|
+
inputRef: H,
|
|
827
805
|
/**
|
|
828
806
|
* @ignore
|
|
829
807
|
*/
|
|
@@ -848,12 +826,12 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
|
848
826
|
*/
|
|
849
827
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
850
828
|
});
|
|
851
|
-
function
|
|
852
|
-
return
|
|
829
|
+
function Ze(o) {
|
|
830
|
+
return ve("MuiSelect", o);
|
|
853
831
|
}
|
|
854
|
-
const
|
|
855
|
-
var
|
|
856
|
-
const
|
|
832
|
+
const K = ge("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
833
|
+
var qe;
|
|
834
|
+
const Ao = h(He, {
|
|
857
835
|
name: "MuiSelect",
|
|
858
836
|
slot: "Select",
|
|
859
837
|
overridesResolver: (o, t) => {
|
|
@@ -863,22 +841,22 @@ const Do = h(Ye, {
|
|
|
863
841
|
return [
|
|
864
842
|
// Win specificity over the input base
|
|
865
843
|
{
|
|
866
|
-
[`&.${
|
|
844
|
+
[`&.${K.select}`]: t.select
|
|
867
845
|
},
|
|
868
846
|
{
|
|
869
|
-
[`&.${
|
|
847
|
+
[`&.${K.select}`]: t[n.variant]
|
|
870
848
|
},
|
|
871
849
|
{
|
|
872
|
-
[`&.${
|
|
850
|
+
[`&.${K.error}`]: t.error
|
|
873
851
|
},
|
|
874
852
|
{
|
|
875
|
-
[`&.${
|
|
853
|
+
[`&.${K.multiple}`]: t.multiple
|
|
876
854
|
}
|
|
877
855
|
];
|
|
878
856
|
}
|
|
879
857
|
})({
|
|
880
858
|
// Win specificity over the input base
|
|
881
|
-
[`&.${
|
|
859
|
+
[`&.${K.select}`]: {
|
|
882
860
|
height: "auto",
|
|
883
861
|
// Resets for multiple select with chips
|
|
884
862
|
minHeight: "1.4375em",
|
|
@@ -887,17 +865,17 @@ const Do = h(Ye, {
|
|
|
887
865
|
whiteSpace: "nowrap",
|
|
888
866
|
overflow: "hidden"
|
|
889
867
|
}
|
|
890
|
-
}),
|
|
868
|
+
}), Uo = h(Ge, {
|
|
891
869
|
name: "MuiSelect",
|
|
892
870
|
slot: "Icon",
|
|
893
871
|
overridesResolver: (o, t) => {
|
|
894
872
|
const {
|
|
895
873
|
ownerState: n
|
|
896
874
|
} = o;
|
|
897
|
-
return [t.icon, n.variant && t[`icon${
|
|
875
|
+
return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
|
|
898
876
|
}
|
|
899
|
-
})({}),
|
|
900
|
-
shouldForwardProp: (o) =>
|
|
877
|
+
})({}), Do = h("input", {
|
|
878
|
+
shouldForwardProp: (o) => go(o) && o !== "classes",
|
|
901
879
|
name: "MuiSelect",
|
|
902
880
|
slot: "NativeInput",
|
|
903
881
|
overridesResolver: (o, t) => t.nativeInput
|
|
@@ -910,34 +888,34 @@ const Do = h(Ye, {
|
|
|
910
888
|
width: "100%",
|
|
911
889
|
boxSizing: "border-box"
|
|
912
890
|
});
|
|
913
|
-
function
|
|
891
|
+
function _e(o, t) {
|
|
914
892
|
return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
|
|
915
893
|
}
|
|
916
|
-
function
|
|
894
|
+
function zo(o) {
|
|
917
895
|
return o == null || typeof o == "string" && !o.trim();
|
|
918
896
|
}
|
|
919
|
-
const
|
|
897
|
+
const Vo = (o) => {
|
|
920
898
|
const {
|
|
921
899
|
classes: t,
|
|
922
900
|
variant: n,
|
|
923
901
|
disabled: r,
|
|
924
902
|
multiple: i,
|
|
925
|
-
open:
|
|
903
|
+
open: p,
|
|
926
904
|
error: a
|
|
927
|
-
} = o,
|
|
905
|
+
} = o, d = {
|
|
928
906
|
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
929
|
-
icon: ["icon", `icon${
|
|
907
|
+
icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"],
|
|
930
908
|
nativeInput: ["nativeInput"]
|
|
931
909
|
};
|
|
932
|
-
return B(
|
|
933
|
-
},
|
|
934
|
-
var
|
|
910
|
+
return B(d, Ze, t);
|
|
911
|
+
}, Je = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
912
|
+
var De;
|
|
935
913
|
const {
|
|
936
914
|
"aria-describedby": r,
|
|
937
915
|
"aria-label": i,
|
|
938
|
-
autoFocus:
|
|
916
|
+
autoFocus: p,
|
|
939
917
|
autoWidth: a,
|
|
940
|
-
children:
|
|
918
|
+
children: d,
|
|
941
919
|
className: b,
|
|
942
920
|
defaultOpen: m,
|
|
943
921
|
defaultValue: f,
|
|
@@ -946,132 +924,132 @@ const _o = (o) => {
|
|
|
946
924
|
error: C = !1,
|
|
947
925
|
IconComponent: w,
|
|
948
926
|
inputRef: T,
|
|
949
|
-
labelId:
|
|
927
|
+
labelId: v,
|
|
950
928
|
MenuProps: x = {},
|
|
951
|
-
multiple:
|
|
952
|
-
name:
|
|
929
|
+
multiple: S,
|
|
930
|
+
name: I,
|
|
953
931
|
onBlur: N,
|
|
954
932
|
onChange: W,
|
|
955
|
-
onClose:
|
|
956
|
-
onFocus:
|
|
957
|
-
onOpen:
|
|
958
|
-
open:
|
|
959
|
-
readOnly:
|
|
960
|
-
renderValue:
|
|
961
|
-
required:
|
|
933
|
+
onClose: G,
|
|
934
|
+
onFocus: le,
|
|
935
|
+
onOpen: Y,
|
|
936
|
+
open: Z,
|
|
937
|
+
readOnly: J,
|
|
938
|
+
renderValue: Q,
|
|
939
|
+
required: V,
|
|
962
940
|
SelectDisplayProps: P = {},
|
|
963
941
|
tabIndex: F,
|
|
964
942
|
// catching `type` from Input which makes no sense for SelectInput
|
|
965
|
-
type:
|
|
966
|
-
value:
|
|
967
|
-
variant:
|
|
943
|
+
type: pe,
|
|
944
|
+
value: Ee,
|
|
945
|
+
variant: ee = "standard",
|
|
968
946
|
...A
|
|
969
|
-
} = t, [g,
|
|
970
|
-
controlled:
|
|
947
|
+
} = t, [g, Fe] = Ve({
|
|
948
|
+
controlled: Ee,
|
|
971
949
|
default: f,
|
|
972
950
|
name: "Select"
|
|
973
|
-
}), [je,
|
|
974
|
-
controlled:
|
|
951
|
+
}), [je, oo] = Ve({
|
|
952
|
+
controlled: Z,
|
|
975
953
|
default: m,
|
|
976
954
|
name: "Select"
|
|
977
|
-
}),
|
|
978
|
-
current:
|
|
979
|
-
} = u.useRef(
|
|
980
|
-
|
|
981
|
-
}, []),
|
|
982
|
-
u.useImperativeHandle(
|
|
955
|
+
}), Me = u.useRef(null), j = u.useRef(null), [M, to] = u.useState(null), {
|
|
956
|
+
current: de
|
|
957
|
+
} = u.useRef(Z != null), [no, Le] = u.useState(), ro = Xe(n, T), so = u.useCallback((s) => {
|
|
958
|
+
j.current = s, s && to(s);
|
|
959
|
+
}, []), oe = M == null ? void 0 : M.parentNode;
|
|
960
|
+
u.useImperativeHandle(ro, () => ({
|
|
983
961
|
focus: () => {
|
|
984
|
-
|
|
962
|
+
j.current.focus();
|
|
985
963
|
},
|
|
986
|
-
node:
|
|
964
|
+
node: Me.current,
|
|
987
965
|
value: g
|
|
988
966
|
}), [g]), u.useEffect(() => {
|
|
989
|
-
m && je &&
|
|
990
|
-
}, [
|
|
991
|
-
|
|
992
|
-
}, [
|
|
993
|
-
if (!
|
|
967
|
+
m && je && M && !de && (Le(a ? null : oe.clientWidth), j.current.focus());
|
|
968
|
+
}, [M, a]), u.useEffect(() => {
|
|
969
|
+
p && j.current.focus();
|
|
970
|
+
}, [p]), u.useEffect(() => {
|
|
971
|
+
if (!v)
|
|
994
972
|
return;
|
|
995
|
-
const s =
|
|
973
|
+
const s = Co(j.current).getElementById(v);
|
|
996
974
|
if (s) {
|
|
997
975
|
const l = () => {
|
|
998
|
-
getSelection().isCollapsed &&
|
|
976
|
+
getSelection().isCollapsed && j.current.focus();
|
|
999
977
|
};
|
|
1000
978
|
return s.addEventListener("click", l), () => {
|
|
1001
979
|
s.removeEventListener("click", l);
|
|
1002
980
|
};
|
|
1003
981
|
}
|
|
1004
|
-
}, [
|
|
1005
|
-
const
|
|
1006
|
-
s ?
|
|
982
|
+
}, [v]);
|
|
983
|
+
const te = (s, l) => {
|
|
984
|
+
s ? Y && Y(l) : G && G(l), de || (Le(a ? null : oe.clientWidth), oo(s));
|
|
985
|
+
}, ao = (s) => {
|
|
986
|
+
s.button === 0 && (s.preventDefault(), j.current.focus(), te(!0, s));
|
|
1007
987
|
}, io = (s) => {
|
|
1008
|
-
|
|
1009
|
-
}, lo = (s) => {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
l !== void 0 && (Me(l.props.value), W && W(s, l));
|
|
1014
|
-
}, uo = (s) => (l) => {
|
|
988
|
+
te(!1, s);
|
|
989
|
+
}, ne = u.Children.toArray(d), lo = (s) => {
|
|
990
|
+
const l = ne.find((R) => R.props.value === s.target.value);
|
|
991
|
+
l !== void 0 && (Fe(l.props.value), W && W(s, l));
|
|
992
|
+
}, po = (s) => (l) => {
|
|
1015
993
|
let R;
|
|
1016
994
|
if (l.currentTarget.hasAttribute("tabindex")) {
|
|
1017
|
-
if (
|
|
995
|
+
if (S) {
|
|
1018
996
|
R = Array.isArray(g) ? g.slice() : [];
|
|
1019
997
|
const D = g.indexOf(s.props.value);
|
|
1020
998
|
D === -1 ? R.push(s.props.value) : R.splice(D, 1);
|
|
1021
999
|
} else
|
|
1022
1000
|
R = s.props.value;
|
|
1023
|
-
if (s.props.onClick && s.props.onClick(l), g !== R && (
|
|
1024
|
-
const D = l.nativeEvent || l,
|
|
1025
|
-
Object.defineProperty(
|
|
1001
|
+
if (s.props.onClick && s.props.onClick(l), g !== R && (Fe(R), W)) {
|
|
1002
|
+
const D = l.nativeEvent || l, ze = new D.constructor(D.type, D);
|
|
1003
|
+
Object.defineProperty(ze, "target", {
|
|
1026
1004
|
writable: !0,
|
|
1027
1005
|
value: {
|
|
1028
1006
|
value: R,
|
|
1029
|
-
name:
|
|
1007
|
+
name: I
|
|
1030
1008
|
}
|
|
1031
|
-
}), W(
|
|
1009
|
+
}), W(ze, s);
|
|
1032
1010
|
}
|
|
1033
|
-
|
|
1011
|
+
S || te(!1, l);
|
|
1034
1012
|
}
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1013
|
+
}, uo = (s) => {
|
|
1014
|
+
J || [
|
|
1037
1015
|
" ",
|
|
1038
1016
|
"ArrowUp",
|
|
1039
1017
|
"ArrowDown",
|
|
1040
1018
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
1041
1019
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
1042
1020
|
"Enter"
|
|
1043
|
-
].includes(s.key) && (s.preventDefault(),
|
|
1044
|
-
},
|
|
1045
|
-
!
|
|
1021
|
+
].includes(s.key) && (s.preventDefault(), te(!0, s));
|
|
1022
|
+
}, q = M !== null && je, co = (s) => {
|
|
1023
|
+
!q && N && (Object.defineProperty(s, "target", {
|
|
1046
1024
|
writable: !0,
|
|
1047
1025
|
value: {
|
|
1048
1026
|
value: g,
|
|
1049
|
-
name:
|
|
1027
|
+
name: I
|
|
1050
1028
|
}
|
|
1051
1029
|
}), N(s));
|
|
1052
1030
|
};
|
|
1053
1031
|
delete A["aria-invalid"];
|
|
1054
|
-
let U,
|
|
1055
|
-
const
|
|
1056
|
-
let
|
|
1057
|
-
(
|
|
1032
|
+
let U, Be;
|
|
1033
|
+
const re = [];
|
|
1034
|
+
let se = !1, ue = !1;
|
|
1035
|
+
(Oo({
|
|
1058
1036
|
value: g
|
|
1059
|
-
}) || O) && (
|
|
1060
|
-
const
|
|
1037
|
+
}) || O) && (Q ? U = Q(g) : se = !0);
|
|
1038
|
+
const fo = ne.map((s) => {
|
|
1061
1039
|
if (!/* @__PURE__ */ u.isValidElement(s))
|
|
1062
1040
|
return null;
|
|
1063
|
-
process.env.NODE_ENV !== "production" &&
|
|
1041
|
+
process.env.NODE_ENV !== "production" && bo.isFragment(s) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1064
1042
|
`));
|
|
1065
1043
|
let l;
|
|
1066
|
-
if (
|
|
1044
|
+
if (S) {
|
|
1067
1045
|
if (!Array.isArray(g))
|
|
1068
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
1069
|
-
l = g.some((R) =>
|
|
1046
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : mo(2));
|
|
1047
|
+
l = g.some((R) => _e(R, s.props.value)), l && se && re.push(s.props.children);
|
|
1070
1048
|
} else
|
|
1071
|
-
l =
|
|
1072
|
-
return l && (
|
|
1049
|
+
l = _e(g, s.props.value), l && se && (Be = s.props.children);
|
|
1050
|
+
return l && (ue = !0), /* @__PURE__ */ u.cloneElement(s, {
|
|
1073
1051
|
"aria-selected": l ? "true" : "false",
|
|
1074
|
-
onClick:
|
|
1052
|
+
onClick: po(s),
|
|
1075
1053
|
onKeyUp: (R) => {
|
|
1076
1054
|
R.key === " " && R.preventDefault(), s.props.onKeyUp && s.props.onKeyUp(R);
|
|
1077
1055
|
},
|
|
@@ -1084,80 +1062,80 @@ const _o = (o) => {
|
|
|
1084
1062
|
});
|
|
1085
1063
|
});
|
|
1086
1064
|
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
1087
|
-
if (!
|
|
1088
|
-
const s =
|
|
1089
|
-
console.warn([`MUI: You have provided an out-of-range value \`${g}\` for the select ${
|
|
1065
|
+
if (!ue && !S && g !== "") {
|
|
1066
|
+
const s = ne.map((l) => l.props.value);
|
|
1067
|
+
console.warn([`MUI: You have provided an out-of-range value \`${g}\` for the select ${I ? `(name="${I}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${s.filter((l) => l != null).map((l) => `\`${l}\``).join(", ") || '""'}.`].join(`
|
|
1090
1068
|
`));
|
|
1091
1069
|
}
|
|
1092
|
-
}, [
|
|
1093
|
-
let
|
|
1094
|
-
!a &&
|
|
1095
|
-
let
|
|
1096
|
-
typeof F < "u" ?
|
|
1097
|
-
const
|
|
1070
|
+
}, [ue, ne, S, I, g]), se && (S ? re.length === 0 ? U = null : U = re.reduce((s, l, R) => (s.push(l), R < re.length - 1 && s.push(", "), s), []) : U = Be);
|
|
1071
|
+
let We = no;
|
|
1072
|
+
!a && de && M && (We = oe.clientWidth);
|
|
1073
|
+
let ce;
|
|
1074
|
+
typeof F < "u" ? ce = F : ce = c ? null : 0;
|
|
1075
|
+
const Ae = P.id || (I ? `mui-component-select-${I}` : void 0), ae = {
|
|
1098
1076
|
...t,
|
|
1099
|
-
variant:
|
|
1077
|
+
variant: ee,
|
|
1100
1078
|
value: g,
|
|
1101
|
-
open:
|
|
1079
|
+
open: q,
|
|
1102
1080
|
error: C
|
|
1103
|
-
},
|
|
1081
|
+
}, fe = Vo(ae), be = {
|
|
1104
1082
|
...x.PaperProps,
|
|
1105
|
-
...(
|
|
1106
|
-
},
|
|
1083
|
+
...(De = x.slotProps) == null ? void 0 : De.paper
|
|
1084
|
+
}, Ue = So();
|
|
1107
1085
|
return /* @__PURE__ */ Oe(u.Fragment, {
|
|
1108
|
-
children: [/* @__PURE__ */
|
|
1086
|
+
children: [/* @__PURE__ */ y(Ao, {
|
|
1109
1087
|
as: "div",
|
|
1110
|
-
ref:
|
|
1111
|
-
tabIndex:
|
|
1088
|
+
ref: so,
|
|
1089
|
+
tabIndex: ce,
|
|
1112
1090
|
role: "combobox",
|
|
1113
|
-
"aria-controls":
|
|
1091
|
+
"aria-controls": q ? Ue : void 0,
|
|
1114
1092
|
"aria-disabled": c ? "true" : void 0,
|
|
1115
|
-
"aria-expanded":
|
|
1093
|
+
"aria-expanded": q ? "true" : "false",
|
|
1116
1094
|
"aria-haspopup": "listbox",
|
|
1117
1095
|
"aria-label": i,
|
|
1118
|
-
"aria-labelledby": [
|
|
1096
|
+
"aria-labelledby": [v, Ae].filter(Boolean).join(" ") || void 0,
|
|
1119
1097
|
"aria-describedby": r,
|
|
1120
|
-
"aria-required":
|
|
1098
|
+
"aria-required": V ? "true" : void 0,
|
|
1121
1099
|
"aria-invalid": C ? "true" : void 0,
|
|
1122
|
-
onKeyDown:
|
|
1123
|
-
onMouseDown: c ||
|
|
1124
|
-
onBlur:
|
|
1125
|
-
onFocus:
|
|
1100
|
+
onKeyDown: uo,
|
|
1101
|
+
onMouseDown: c || J ? null : ao,
|
|
1102
|
+
onBlur: co,
|
|
1103
|
+
onFocus: le,
|
|
1126
1104
|
...P,
|
|
1127
|
-
ownerState:
|
|
1128
|
-
className:
|
|
1129
|
-
id:
|
|
1130
|
-
children:
|
|
1105
|
+
ownerState: ae,
|
|
1106
|
+
className: ie(P.className, fe.select, b),
|
|
1107
|
+
id: Ae,
|
|
1108
|
+
children: zo(U) ? (
|
|
1131
1109
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1132
|
-
|
|
1110
|
+
qe || (qe = /* @__PURE__ */ y("span", {
|
|
1133
1111
|
className: "notranslate",
|
|
1134
1112
|
"aria-hidden": !0,
|
|
1135
1113
|
children: ""
|
|
1136
1114
|
}))
|
|
1137
1115
|
) : U
|
|
1138
|
-
}), /* @__PURE__ */
|
|
1116
|
+
}), /* @__PURE__ */ y(Do, {
|
|
1139
1117
|
"aria-invalid": C,
|
|
1140
1118
|
value: Array.isArray(g) ? g.join(",") : g,
|
|
1141
|
-
name:
|
|
1142
|
-
ref:
|
|
1119
|
+
name: I,
|
|
1120
|
+
ref: Me,
|
|
1143
1121
|
"aria-hidden": !0,
|
|
1144
|
-
onChange:
|
|
1122
|
+
onChange: lo,
|
|
1145
1123
|
tabIndex: -1,
|
|
1146
1124
|
disabled: c,
|
|
1147
|
-
className:
|
|
1148
|
-
autoFocus:
|
|
1149
|
-
required:
|
|
1125
|
+
className: fe.nativeInput,
|
|
1126
|
+
autoFocus: p,
|
|
1127
|
+
required: V,
|
|
1150
1128
|
...A,
|
|
1151
|
-
ownerState:
|
|
1152
|
-
}), /* @__PURE__ */
|
|
1129
|
+
ownerState: ae
|
|
1130
|
+
}), /* @__PURE__ */ y(Uo, {
|
|
1153
1131
|
as: w,
|
|
1154
|
-
className:
|
|
1155
|
-
ownerState:
|
|
1156
|
-
}), /* @__PURE__ */
|
|
1157
|
-
id: `menu-${
|
|
1158
|
-
anchorEl:
|
|
1159
|
-
open:
|
|
1160
|
-
onClose:
|
|
1132
|
+
className: fe.icon,
|
|
1133
|
+
ownerState: ae
|
|
1134
|
+
}), /* @__PURE__ */ y(ho, {
|
|
1135
|
+
id: `menu-${I || ""}`,
|
|
1136
|
+
anchorEl: oe,
|
|
1137
|
+
open: q,
|
|
1138
|
+
onClose: io,
|
|
1161
1139
|
anchorOrigin: {
|
|
1162
1140
|
vertical: "bottom",
|
|
1163
1141
|
horizontal: "center"
|
|
@@ -1170,26 +1148,26 @@ const _o = (o) => {
|
|
|
1170
1148
|
slotProps: {
|
|
1171
1149
|
...x.slotProps,
|
|
1172
1150
|
list: {
|
|
1173
|
-
"aria-labelledby":
|
|
1151
|
+
"aria-labelledby": v,
|
|
1174
1152
|
role: "listbox",
|
|
1175
|
-
"aria-multiselectable":
|
|
1153
|
+
"aria-multiselectable": S ? "true" : void 0,
|
|
1176
1154
|
disableListWrap: !0,
|
|
1177
|
-
id:
|
|
1155
|
+
id: Ue,
|
|
1178
1156
|
...x.MenuListProps
|
|
1179
1157
|
},
|
|
1180
1158
|
paper: {
|
|
1181
|
-
...
|
|
1159
|
+
...be,
|
|
1182
1160
|
style: {
|
|
1183
|
-
minWidth:
|
|
1184
|
-
...
|
|
1161
|
+
minWidth: We,
|
|
1162
|
+
...be != null ? be.style : null
|
|
1185
1163
|
}
|
|
1186
1164
|
}
|
|
1187
1165
|
},
|
|
1188
|
-
children:
|
|
1166
|
+
children: fo
|
|
1189
1167
|
})]
|
|
1190
1168
|
});
|
|
1191
1169
|
});
|
|
1192
|
-
process.env.NODE_ENV !== "production" && (
|
|
1170
|
+
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
1193
1171
|
/**
|
|
1194
1172
|
* @ignore
|
|
1195
1173
|
*/
|
|
@@ -1249,7 +1227,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
1249
1227
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
1250
1228
|
* Equivalent to `ref`
|
|
1251
1229
|
*/
|
|
1252
|
-
inputRef:
|
|
1230
|
+
inputRef: H,
|
|
1253
1231
|
/**
|
|
1254
1232
|
* The ID of an element that acts as an additional label. The Select will
|
|
1255
1233
|
* be labelled by the additional label and the selected value.
|
|
@@ -1337,25 +1315,25 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
1337
1315
|
*/
|
|
1338
1316
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
1339
1317
|
});
|
|
1340
|
-
const
|
|
1318
|
+
const qo = (o) => {
|
|
1341
1319
|
const {
|
|
1342
1320
|
classes: t,
|
|
1343
1321
|
disableUnderline: n,
|
|
1344
1322
|
startAdornment: r,
|
|
1345
1323
|
endAdornment: i,
|
|
1346
|
-
size:
|
|
1324
|
+
size: p,
|
|
1347
1325
|
hiddenLabel: a,
|
|
1348
|
-
multiline:
|
|
1326
|
+
multiline: d
|
|
1349
1327
|
} = o, b = {
|
|
1350
|
-
root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd",
|
|
1328
|
+
root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", p === "small" && `size${z(p)}`, a && "hiddenLabel", d && "multiline"],
|
|
1351
1329
|
input: ["input"]
|
|
1352
|
-
}, m = B(b,
|
|
1330
|
+
}, m = B(b, Ro, t);
|
|
1353
1331
|
return {
|
|
1354
1332
|
...t,
|
|
1355
1333
|
// forward classes to the InputBase
|
|
1356
1334
|
...m
|
|
1357
1335
|
};
|
|
1358
|
-
},
|
|
1336
|
+
}, _o = h(Ie, {
|
|
1359
1337
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
1360
1338
|
name: "MuiFilledInput",
|
|
1361
1339
|
slot: "Root",
|
|
@@ -1363,12 +1341,12 @@ const Ko = (o) => {
|
|
|
1363
1341
|
const {
|
|
1364
1342
|
ownerState: n
|
|
1365
1343
|
} = o;
|
|
1366
|
-
return [...
|
|
1344
|
+
return [...Re(o, t), !n.disableUnderline && t.underline];
|
|
1367
1345
|
}
|
|
1368
1346
|
})(E(({
|
|
1369
1347
|
theme: o
|
|
1370
1348
|
}) => {
|
|
1371
|
-
const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)",
|
|
1349
|
+
const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
1372
1350
|
return {
|
|
1373
1351
|
position: "relative",
|
|
1374
1352
|
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r,
|
|
@@ -1389,7 +1367,7 @@ const Ko = (o) => {
|
|
|
1389
1367
|
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
|
|
1390
1368
|
},
|
|
1391
1369
|
[`&.${L.disabled}`]: {
|
|
1392
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg :
|
|
1370
|
+
backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : p
|
|
1393
1371
|
},
|
|
1394
1372
|
variants: [{
|
|
1395
1373
|
props: ({
|
|
@@ -1441,7 +1419,7 @@ const Ko = (o) => {
|
|
|
1441
1419
|
}
|
|
1442
1420
|
}
|
|
1443
1421
|
}, ...Object.entries(o.palette).filter(Ce()).map(([a]) => {
|
|
1444
|
-
var
|
|
1422
|
+
var d;
|
|
1445
1423
|
return {
|
|
1446
1424
|
props: {
|
|
1447
1425
|
disableUnderline: !1,
|
|
@@ -1449,7 +1427,7 @@ const Ko = (o) => {
|
|
|
1449
1427
|
},
|
|
1450
1428
|
style: {
|
|
1451
1429
|
"&::after": {
|
|
1452
|
-
borderBottom: `2px solid ${(
|
|
1430
|
+
borderBottom: `2px solid ${(d = (o.vars || o).palette[a]) == null ? void 0 : d.main}`
|
|
1453
1431
|
}
|
|
1454
1432
|
}
|
|
1455
1433
|
};
|
|
@@ -1477,8 +1455,8 @@ const Ko = (o) => {
|
|
|
1477
1455
|
}, {
|
|
1478
1456
|
props: ({
|
|
1479
1457
|
ownerState: a,
|
|
1480
|
-
size:
|
|
1481
|
-
}) => a.multiline &&
|
|
1458
|
+
size: d
|
|
1459
|
+
}) => a.multiline && d === "small",
|
|
1482
1460
|
style: {
|
|
1483
1461
|
paddingTop: 21,
|
|
1484
1462
|
paddingBottom: 4
|
|
@@ -1501,10 +1479,10 @@ const Ko = (o) => {
|
|
|
1501
1479
|
}
|
|
1502
1480
|
}]
|
|
1503
1481
|
};
|
|
1504
|
-
})),
|
|
1482
|
+
})), Ko = h(xe, {
|
|
1505
1483
|
name: "MuiFilledInput",
|
|
1506
1484
|
slot: "Input",
|
|
1507
|
-
overridesResolver:
|
|
1485
|
+
overridesResolver: we
|
|
1508
1486
|
})(E(({
|
|
1509
1487
|
theme: o
|
|
1510
1488
|
}) => ({
|
|
@@ -1583,15 +1561,15 @@ const Ko = (o) => {
|
|
|
1583
1561
|
paddingRight: 0
|
|
1584
1562
|
}
|
|
1585
1563
|
}]
|
|
1586
|
-
}))),
|
|
1587
|
-
const r =
|
|
1564
|
+
}))), $e = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
1565
|
+
const r = X({
|
|
1588
1566
|
props: t,
|
|
1589
1567
|
name: "MuiFilledInput"
|
|
1590
1568
|
}), {
|
|
1591
1569
|
disableUnderline: i = !1,
|
|
1592
|
-
components:
|
|
1570
|
+
components: p = {},
|
|
1593
1571
|
componentsProps: a,
|
|
1594
|
-
fullWidth:
|
|
1572
|
+
fullWidth: d = !1,
|
|
1595
1573
|
hiddenLabel: b,
|
|
1596
1574
|
// declare here to prevent spreading to DOM
|
|
1597
1575
|
inputComponent: m = "input",
|
|
@@ -1603,34 +1581,34 @@ const Ko = (o) => {
|
|
|
1603
1581
|
} = r, T = {
|
|
1604
1582
|
...r,
|
|
1605
1583
|
disableUnderline: i,
|
|
1606
|
-
fullWidth:
|
|
1584
|
+
fullWidth: d,
|
|
1607
1585
|
inputComponent: m,
|
|
1608
1586
|
multiline: f,
|
|
1609
1587
|
type: C
|
|
1610
|
-
},
|
|
1588
|
+
}, v = qo(r), x = {
|
|
1611
1589
|
root: {
|
|
1612
1590
|
ownerState: T
|
|
1613
1591
|
},
|
|
1614
1592
|
input: {
|
|
1615
1593
|
ownerState: T
|
|
1616
1594
|
}
|
|
1617
|
-
},
|
|
1618
|
-
return /* @__PURE__ */
|
|
1595
|
+
}, S = c ?? a ? me(x, c ?? a) : x, I = O.root ?? p.Root ?? _o, N = O.input ?? p.Input ?? Ko;
|
|
1596
|
+
return /* @__PURE__ */ y(Se, {
|
|
1619
1597
|
slots: {
|
|
1620
|
-
root:
|
|
1598
|
+
root: I,
|
|
1621
1599
|
input: N
|
|
1622
1600
|
},
|
|
1623
|
-
slotProps:
|
|
1624
|
-
fullWidth:
|
|
1601
|
+
slotProps: S,
|
|
1602
|
+
fullWidth: d,
|
|
1625
1603
|
inputComponent: m,
|
|
1626
1604
|
multiline: f,
|
|
1627
1605
|
ref: n,
|
|
1628
1606
|
type: C,
|
|
1629
1607
|
...w,
|
|
1630
|
-
classes:
|
|
1608
|
+
classes: v
|
|
1631
1609
|
});
|
|
1632
1610
|
});
|
|
1633
|
-
process.env.NODE_ENV !== "production" && (
|
|
1611
|
+
process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
1634
1612
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1635
1613
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1636
1614
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1732,7 +1710,7 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
1732
1710
|
/**
|
|
1733
1711
|
* Pass a ref to the `input` element.
|
|
1734
1712
|
*/
|
|
1735
|
-
inputRef:
|
|
1713
|
+
inputRef: H,
|
|
1736
1714
|
/**
|
|
1737
1715
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1738
1716
|
* FormControl.
|
|
@@ -1822,9 +1800,9 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
1822
1800
|
*/
|
|
1823
1801
|
value: e.any
|
|
1824
1802
|
});
|
|
1825
|
-
|
|
1826
|
-
var
|
|
1827
|
-
const
|
|
1803
|
+
$e.muiName = "Input";
|
|
1804
|
+
var Ke;
|
|
1805
|
+
const Xo = h("fieldset", {
|
|
1828
1806
|
shouldForwardProp: k
|
|
1829
1807
|
})({
|
|
1830
1808
|
textAlign: "left",
|
|
@@ -1841,7 +1819,7 @@ const Yo = h("fieldset", {
|
|
|
1841
1819
|
borderWidth: 1,
|
|
1842
1820
|
overflow: "hidden",
|
|
1843
1821
|
minWidth: "0%"
|
|
1844
|
-
}),
|
|
1822
|
+
}), Ho = h("legend", {
|
|
1845
1823
|
shouldForwardProp: k
|
|
1846
1824
|
})(E(({
|
|
1847
1825
|
theme: o
|
|
@@ -1905,31 +1883,31 @@ const Yo = h("fieldset", {
|
|
|
1905
1883
|
}
|
|
1906
1884
|
}]
|
|
1907
1885
|
})));
|
|
1908
|
-
function
|
|
1886
|
+
function Qe(o) {
|
|
1909
1887
|
const {
|
|
1910
1888
|
children: t,
|
|
1911
1889
|
classes: n,
|
|
1912
1890
|
className: r,
|
|
1913
1891
|
label: i,
|
|
1914
|
-
notched:
|
|
1892
|
+
notched: p,
|
|
1915
1893
|
...a
|
|
1916
|
-
} = o,
|
|
1894
|
+
} = o, d = i != null && i !== "", b = {
|
|
1917
1895
|
...o,
|
|
1918
|
-
notched:
|
|
1919
|
-
withLabel:
|
|
1896
|
+
notched: p,
|
|
1897
|
+
withLabel: d
|
|
1920
1898
|
};
|
|
1921
|
-
return /* @__PURE__ */
|
|
1899
|
+
return /* @__PURE__ */ y(Xo, {
|
|
1922
1900
|
"aria-hidden": !0,
|
|
1923
1901
|
className: r,
|
|
1924
1902
|
ownerState: b,
|
|
1925
1903
|
...a,
|
|
1926
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ y(Ho, {
|
|
1927
1905
|
ownerState: b,
|
|
1928
|
-
children:
|
|
1906
|
+
children: d ? /* @__PURE__ */ y("span", {
|
|
1929
1907
|
children: i
|
|
1930
1908
|
}) : (
|
|
1931
1909
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1932
|
-
|
|
1910
|
+
Ke || (Ke = /* @__PURE__ */ y("span", {
|
|
1933
1911
|
className: "notranslate",
|
|
1934
1912
|
"aria-hidden": !0,
|
|
1935
1913
|
children: ""
|
|
@@ -1938,7 +1916,7 @@ function eo(o) {
|
|
|
1938
1916
|
})
|
|
1939
1917
|
});
|
|
1940
1918
|
}
|
|
1941
|
-
process.env.NODE_ENV !== "production" && (
|
|
1919
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
1942
1920
|
/**
|
|
1943
1921
|
* The content of the component.
|
|
1944
1922
|
*/
|
|
@@ -1964,24 +1942,24 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
1964
1942
|
*/
|
|
1965
1943
|
style: e.object
|
|
1966
1944
|
});
|
|
1967
|
-
const
|
|
1945
|
+
const Go = (o) => {
|
|
1968
1946
|
const {
|
|
1969
1947
|
classes: t
|
|
1970
1948
|
} = o, r = B({
|
|
1971
1949
|
root: ["root"],
|
|
1972
1950
|
notchedOutline: ["notchedOutline"],
|
|
1973
1951
|
input: ["input"]
|
|
1974
|
-
},
|
|
1952
|
+
}, xo, t);
|
|
1975
1953
|
return {
|
|
1976
1954
|
...t,
|
|
1977
1955
|
// forward classes to the InputBase
|
|
1978
1956
|
...r
|
|
1979
1957
|
};
|
|
1980
|
-
},
|
|
1958
|
+
}, Yo = h(Ie, {
|
|
1981
1959
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
1982
1960
|
name: "MuiOutlinedInput",
|
|
1983
1961
|
slot: "Root",
|
|
1984
|
-
overridesResolver:
|
|
1962
|
+
overridesResolver: Re
|
|
1985
1963
|
})(E(({
|
|
1986
1964
|
theme: o
|
|
1987
1965
|
}) => {
|
|
@@ -2052,7 +2030,7 @@ const Zo = (o) => {
|
|
|
2052
2030
|
}
|
|
2053
2031
|
}]
|
|
2054
2032
|
};
|
|
2055
|
-
})),
|
|
2033
|
+
})), Zo = h(Qe, {
|
|
2056
2034
|
name: "MuiOutlinedInput",
|
|
2057
2035
|
slot: "NotchedOutline",
|
|
2058
2036
|
overridesResolver: (o, t) => t.notchedOutline
|
|
@@ -2063,10 +2041,10 @@ const Zo = (o) => {
|
|
|
2063
2041
|
return {
|
|
2064
2042
|
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
2065
2043
|
};
|
|
2066
|
-
})),
|
|
2044
|
+
})), Jo = h(xe, {
|
|
2067
2045
|
name: "MuiOutlinedInput",
|
|
2068
2046
|
slot: "Input",
|
|
2069
|
-
overridesResolver:
|
|
2047
|
+
overridesResolver: we
|
|
2070
2048
|
})(E(({
|
|
2071
2049
|
theme: o
|
|
2072
2050
|
}) => ({
|
|
@@ -2120,53 +2098,53 @@ const Zo = (o) => {
|
|
|
2120
2098
|
paddingRight: 0
|
|
2121
2099
|
}
|
|
2122
2100
|
}]
|
|
2123
|
-
}))),
|
|
2101
|
+
}))), Pe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
2124
2102
|
var r;
|
|
2125
|
-
const i =
|
|
2103
|
+
const i = X({
|
|
2126
2104
|
props: t,
|
|
2127
2105
|
name: "MuiOutlinedInput"
|
|
2128
2106
|
}), {
|
|
2129
|
-
components:
|
|
2107
|
+
components: p = {},
|
|
2130
2108
|
fullWidth: a = !1,
|
|
2131
|
-
inputComponent:
|
|
2109
|
+
inputComponent: d = "input",
|
|
2132
2110
|
label: b,
|
|
2133
2111
|
multiline: m = !1,
|
|
2134
2112
|
notched: f,
|
|
2135
2113
|
slots: c = {},
|
|
2136
2114
|
type: O = "text",
|
|
2137
2115
|
...C
|
|
2138
|
-
} = i, w =
|
|
2116
|
+
} = i, w = Go(i), T = he(), v = ye({
|
|
2139
2117
|
props: i,
|
|
2140
2118
|
muiFormControl: T,
|
|
2141
2119
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
2142
2120
|
}), x = {
|
|
2143
2121
|
...i,
|
|
2144
|
-
color:
|
|
2145
|
-
disabled:
|
|
2146
|
-
error:
|
|
2147
|
-
focused:
|
|
2122
|
+
color: v.color || "primary",
|
|
2123
|
+
disabled: v.disabled,
|
|
2124
|
+
error: v.error,
|
|
2125
|
+
focused: v.focused,
|
|
2148
2126
|
formControl: T,
|
|
2149
2127
|
fullWidth: a,
|
|
2150
|
-
hiddenLabel:
|
|
2128
|
+
hiddenLabel: v.hiddenLabel,
|
|
2151
2129
|
multiline: m,
|
|
2152
|
-
size:
|
|
2130
|
+
size: v.size,
|
|
2153
2131
|
type: O
|
|
2154
|
-
},
|
|
2155
|
-
return /* @__PURE__ */
|
|
2132
|
+
}, S = c.root ?? p.Root ?? Yo, I = c.input ?? p.Input ?? Jo;
|
|
2133
|
+
return /* @__PURE__ */ y(Se, {
|
|
2156
2134
|
slots: {
|
|
2157
|
-
root:
|
|
2158
|
-
input:
|
|
2135
|
+
root: S,
|
|
2136
|
+
input: I
|
|
2159
2137
|
},
|
|
2160
|
-
renderSuffix: (N) => /* @__PURE__ */
|
|
2138
|
+
renderSuffix: (N) => /* @__PURE__ */ y(Zo, {
|
|
2161
2139
|
ownerState: x,
|
|
2162
2140
|
className: w.notchedOutline,
|
|
2163
|
-
label: b != null && b !== "" &&
|
|
2141
|
+
label: b != null && b !== "" && v.required ? r || (r = /* @__PURE__ */ Oe(u.Fragment, {
|
|
2164
2142
|
children: [b, " ", "*"]
|
|
2165
2143
|
})) : b,
|
|
2166
2144
|
notched: typeof f < "u" ? f : !!(N.startAdornment || N.filled || N.focused)
|
|
2167
2145
|
}),
|
|
2168
2146
|
fullWidth: a,
|
|
2169
|
-
inputComponent:
|
|
2147
|
+
inputComponent: d,
|
|
2170
2148
|
multiline: m,
|
|
2171
2149
|
ref: n,
|
|
2172
2150
|
type: O,
|
|
@@ -2177,7 +2155,7 @@ const Zo = (o) => {
|
|
|
2177
2155
|
}
|
|
2178
2156
|
});
|
|
2179
2157
|
});
|
|
2180
|
-
process.env.NODE_ENV !== "production" && (
|
|
2158
|
+
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
2181
2159
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2182
2160
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2183
2161
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2255,7 +2233,7 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
2255
2233
|
/**
|
|
2256
2234
|
* Pass a ref to the `input` element.
|
|
2257
2235
|
*/
|
|
2258
|
-
inputRef:
|
|
2236
|
+
inputRef: H,
|
|
2259
2237
|
/**
|
|
2260
2238
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
2261
2239
|
* is handled by `InputLabel`.
|
|
@@ -2342,120 +2320,120 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
2342
2320
|
*/
|
|
2343
2321
|
value: e.any
|
|
2344
2322
|
});
|
|
2345
|
-
|
|
2346
|
-
const
|
|
2323
|
+
Pe.muiName = "Input";
|
|
2324
|
+
const Qo = (o) => {
|
|
2347
2325
|
const {
|
|
2348
2326
|
classes: t
|
|
2349
2327
|
} = o, r = B({
|
|
2350
2328
|
root: ["root"]
|
|
2351
|
-
},
|
|
2329
|
+
}, Ze, t);
|
|
2352
2330
|
return {
|
|
2353
2331
|
...t,
|
|
2354
2332
|
...r
|
|
2355
2333
|
};
|
|
2356
|
-
},
|
|
2334
|
+
}, ke = {
|
|
2357
2335
|
name: "MuiSelect",
|
|
2358
2336
|
overridesResolver: (o, t) => t.root,
|
|
2359
2337
|
shouldForwardProp: (o) => k(o) && o !== "variant",
|
|
2360
2338
|
slot: "Root"
|
|
2361
|
-
},
|
|
2362
|
-
const r =
|
|
2339
|
+
}, et = h(Te, ke)(""), ot = h(Pe, ke)(""), tt = h($e, ke)(""), eo = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
2340
|
+
const r = X({
|
|
2363
2341
|
name: "MuiSelect",
|
|
2364
2342
|
props: t
|
|
2365
2343
|
}), {
|
|
2366
2344
|
autoWidth: i = !1,
|
|
2367
|
-
children:
|
|
2345
|
+
children: p,
|
|
2368
2346
|
classes: a = {},
|
|
2369
|
-
className:
|
|
2347
|
+
className: d,
|
|
2370
2348
|
defaultOpen: b = !1,
|
|
2371
2349
|
displayEmpty: m = !1,
|
|
2372
|
-
IconComponent: f =
|
|
2350
|
+
IconComponent: f = wo,
|
|
2373
2351
|
id: c,
|
|
2374
2352
|
input: O,
|
|
2375
2353
|
inputProps: C,
|
|
2376
2354
|
label: w,
|
|
2377
2355
|
labelId: T,
|
|
2378
|
-
MenuProps:
|
|
2356
|
+
MenuProps: v,
|
|
2379
2357
|
multiple: x = !1,
|
|
2380
|
-
native:
|
|
2381
|
-
onClose:
|
|
2358
|
+
native: S = !1,
|
|
2359
|
+
onClose: I,
|
|
2382
2360
|
onOpen: N,
|
|
2383
2361
|
open: W,
|
|
2384
|
-
renderValue:
|
|
2385
|
-
SelectDisplayProps:
|
|
2386
|
-
variant:
|
|
2387
|
-
...
|
|
2388
|
-
} = r,
|
|
2362
|
+
renderValue: G,
|
|
2363
|
+
SelectDisplayProps: le,
|
|
2364
|
+
variant: Y = "outlined",
|
|
2365
|
+
...Z
|
|
2366
|
+
} = r, J = S ? Ye : Je, Q = he(), V = ye({
|
|
2389
2367
|
props: r,
|
|
2390
|
-
muiFormControl:
|
|
2368
|
+
muiFormControl: Q,
|
|
2391
2369
|
states: ["variant", "error"]
|
|
2392
|
-
}), P =
|
|
2370
|
+
}), P = V.variant || Y, F = {
|
|
2393
2371
|
...r,
|
|
2394
2372
|
variant: P,
|
|
2395
2373
|
classes: a
|
|
2396
|
-
},
|
|
2397
|
-
root:
|
|
2398
|
-
...
|
|
2399
|
-
} =
|
|
2400
|
-
standard: /* @__PURE__ */
|
|
2374
|
+
}, pe = Qo(F), {
|
|
2375
|
+
root: Ee,
|
|
2376
|
+
...ee
|
|
2377
|
+
} = pe, A = O || {
|
|
2378
|
+
standard: /* @__PURE__ */ y(et, {
|
|
2401
2379
|
ownerState: F
|
|
2402
2380
|
}),
|
|
2403
|
-
outlined: /* @__PURE__ */
|
|
2381
|
+
outlined: /* @__PURE__ */ y(ot, {
|
|
2404
2382
|
label: w,
|
|
2405
2383
|
ownerState: F
|
|
2406
2384
|
}),
|
|
2407
|
-
filled: /* @__PURE__ */
|
|
2385
|
+
filled: /* @__PURE__ */ y(tt, {
|
|
2408
2386
|
ownerState: F
|
|
2409
2387
|
})
|
|
2410
|
-
}[P], g =
|
|
2411
|
-
return /* @__PURE__ */
|
|
2388
|
+
}[P], g = Xe(n, To(A));
|
|
2389
|
+
return /* @__PURE__ */ y(u.Fragment, {
|
|
2412
2390
|
children: /* @__PURE__ */ u.cloneElement(A, {
|
|
2413
2391
|
// Most of the logic is implemented in `SelectInput`.
|
|
2414
2392
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
2415
|
-
inputComponent:
|
|
2393
|
+
inputComponent: J,
|
|
2416
2394
|
inputProps: {
|
|
2417
|
-
children:
|
|
2418
|
-
error:
|
|
2395
|
+
children: p,
|
|
2396
|
+
error: V.error,
|
|
2419
2397
|
IconComponent: f,
|
|
2420
2398
|
variant: P,
|
|
2421
2399
|
type: void 0,
|
|
2422
2400
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
2423
2401
|
multiple: x,
|
|
2424
|
-
...
|
|
2402
|
+
...S ? {
|
|
2425
2403
|
id: c
|
|
2426
2404
|
} : {
|
|
2427
2405
|
autoWidth: i,
|
|
2428
2406
|
defaultOpen: b,
|
|
2429
2407
|
displayEmpty: m,
|
|
2430
2408
|
labelId: T,
|
|
2431
|
-
MenuProps:
|
|
2432
|
-
onClose:
|
|
2409
|
+
MenuProps: v,
|
|
2410
|
+
onClose: I,
|
|
2433
2411
|
onOpen: N,
|
|
2434
2412
|
open: W,
|
|
2435
|
-
renderValue:
|
|
2413
|
+
renderValue: G,
|
|
2436
2414
|
SelectDisplayProps: {
|
|
2437
2415
|
id: c,
|
|
2438
|
-
...
|
|
2416
|
+
...le
|
|
2439
2417
|
}
|
|
2440
2418
|
},
|
|
2441
2419
|
...C,
|
|
2442
|
-
classes: C ?
|
|
2420
|
+
classes: C ? me(ee, C.classes) : ee,
|
|
2443
2421
|
...O ? O.props.inputProps : {}
|
|
2444
2422
|
},
|
|
2445
|
-
...(x &&
|
|
2423
|
+
...(x && S || m) && P === "outlined" ? {
|
|
2446
2424
|
notched: !0
|
|
2447
2425
|
} : {},
|
|
2448
2426
|
ref: g,
|
|
2449
|
-
className:
|
|
2427
|
+
className: ie(A.props.className, d, pe.root),
|
|
2450
2428
|
// If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
|
|
2451
2429
|
...!O && {
|
|
2452
2430
|
variant: P
|
|
2453
2431
|
},
|
|
2454
|
-
...
|
|
2432
|
+
...Z
|
|
2455
2433
|
})
|
|
2456
2434
|
});
|
|
2457
2435
|
});
|
|
2458
|
-
process.env.NODE_ENV !== "production" && (
|
|
2436
|
+
process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
2459
2437
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2460
2438
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2461
2439
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2602,20 +2580,15 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
2602
2580
|
*/
|
|
2603
2581
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2604
2582
|
});
|
|
2605
|
-
|
|
2583
|
+
eo.muiName = "Select";
|
|
2606
2584
|
export {
|
|
2607
|
-
$
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
L as f,
|
|
2617
|
-
wo as g,
|
|
2618
|
-
X as i,
|
|
2619
|
-
$ as o,
|
|
2620
|
-
H as s
|
|
2585
|
+
$e as F,
|
|
2586
|
+
Te as I,
|
|
2587
|
+
Pe as O,
|
|
2588
|
+
eo as S,
|
|
2589
|
+
jo as a,
|
|
2590
|
+
Ze as b,
|
|
2591
|
+
ko as g,
|
|
2592
|
+
Ct as i,
|
|
2593
|
+
K as s
|
|
2621
2594
|
};
|