@cgi-learning-hub/ui 1.3.5-dev.1740134984 → 1.3.5-dev.1740404617
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Backdrop-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-CZ3ay4ta.js → Backdrop-DdA12b-5.js} +5 -5
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Cpg9IWKr.js → Box-DbRInJ2-.js} +3 -3
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/{ButtonBase-C9D6EAt-.cjs → ButtonBase-C2rhY3j-.cjs} +1 -1
- package/dist/{ButtonBase-ylADCBW1.js → ButtonBase-DzpmdR6N.js} +4 -4
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/{CardContent-CHoWb0DR.js → CardContent-u1MKaFvP.js} +3 -3
- package/dist/{Checkbox-92V5IqYF.js → Checkbox-BI77q7eR.js} +22 -23
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/{Chip-I3ytWE-R.js → Chip-6-zATjcr.js} +49 -50
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/CircularProgress-CDa_qU1a.js +252 -0
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/{CloseRounded-BpiJGsCY.cjs → CloseRounded-DQWTEbNz.cjs} +1 -1
- package/dist/{CloseRounded-Di7N75zk.js → CloseRounded-DTpqUeWr.js} +1 -1
- package/dist/{DatePicker-ByvIBsyI.js → DatePicker-BTTLIBm9.js} +538 -536
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/{DefaultPropsProvider-CmOKr9hq.js → DefaultPropsProvider-BcmyIf2H.js} +27 -27
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-4rDvu_sh.js → DialogContent-SYCCu1VD.js} +3 -3
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-Bw1Q-9PX.js → DialogTitle-_yayDwkI.js} +5 -5
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-CeOjSQMP.js → Divider-Doy31VS6.js} +4 -4
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-Cm4Ba58U.js → FormLabel-DjkS3S9h.js} +79 -80
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-BL8Bx4y5.js → Grow-DPD-iBAX.js} +3 -3
- package/dist/{IconButton-C4GFAbeH.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-XfxRdI9K.js → InputAdornment-GzDm1zf_.js} +8 -9
- package/dist/{InputBase-DBsV_L3Y.js → InputBase-CF5oNEfh.js} +215 -210
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-Dqbq0dpE.js → Link-CnahHTmK.js} +48 -49
- package/dist/{Menu-DiQ9wnM_.cjs → Menu-C-R0FVOB.cjs} +6 -6
- package/dist/{Menu-CtlPVqJo.js → Menu-DzBX10ev.js} +28 -28
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-BCyMn0B-.js → MenuItem-DQQ-p2ie.js} +6 -6
- package/dist/{Modal-BBc68t3R.js → Modal-B8JRJWm0.js} +8 -8
- package/dist/{Modal-CGCKjoqp.cjs → Modal-D8lS9C1l.cjs} +2 -2
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BIgadgtb.js → Paper-CbgkVQVx.js} +4 -4
- package/dist/{Popper-Dotov0nV.js → Popper-1-DDNRPD.js} +5 -5
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-DvgoZfYl.js → Portal-T-1Qk77D.js} +2 -2
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/{Radio-BmCVKlgN.js → Radio-BxMxeQa-.js} +8 -9
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/{RadioGroup-BoBajGjF.js → RadioGroup-BLrD8_Lp.js} +3 -3
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DCbhewsz.js → Select-B6mYfJPA.js} +195 -191
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-CSgGU-cq.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/{Switch-JIoNRv7S.js → Switch-BOpqo-TS.js} +10 -11
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Ccit_gYg.js → SwitchBase-BAjfatYA.js} +20 -21
- package/dist/{Tabs-Bhy2g9Y0.js → Tabs-CrWcC5nJ.js} +225 -226
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-FNS4AqVd.js → TextField-CAmc1Qpg.js} +17 -18
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/{ToggleButtonGroup-qi5MsGIW.js → ToggleButtonGroup-ekxVeQCc.js} +3088 -3229
- package/dist/{Tooltip-AHSVG6xQ.js → Tooltip-BvVFPsVR.js} +29 -30
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{Typography-C9ltjPyz.js → Typography-CE8fQQ8B.js} +12 -13
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- package/dist/components/Button/Button.cjs.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.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +341 -340
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.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.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- 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/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-CIearCnQ.js → createSvgIcon-CCejzj0C.js} +17 -18
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-DHKvPyr8.js → dividerClasses-DN9F43tq.js} +1 -1
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-BnBq35EV.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-D1UphbpP.js → extendSxProp-DFv-GFt5.js} +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/{generateUtilityClasses-v9KcqdK1.js → identifier-D58rA1gM.js} +832 -862
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-OesDQygc.js → index-BGS2uu2L.js} +1 -1
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BhCs2pHX.js → index-ClXCinr6.js} +4 -4
- package/dist/{useSlotProps-pX6ti4cn.js → index-DwHI-aa0.js} +26 -26
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +341 -340
- package/dist/{memoTheme-D1tPxCd9.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D-rebSfX.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DcE_kWty.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{resolveComponentProps-kRRJ79Kv.js → resolveComponentProps-0QnU-fDT.js} +1 -1
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-BB8ZCoMF.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-DnDXTiQj.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-DcOn-vk2.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-CSBYZkoB.js → utils-SrEVp7Pm.js} +1 -1
- package/package.json +7 -7
- package/dist/Backdrop-BY124k9Q.cjs +0 -1
- package/dist/Box-CVaz7diG.cjs +0 -1
- package/dist/Button-Bqcf-Wrh.js +0 -483
- package/dist/Button-qwUFZs87.cjs +0 -1
- package/dist/CardContent-BMiRcSGk.cjs +0 -1
- package/dist/Checkbox-DVRfGO8D.cjs +0 -1
- package/dist/Chip-Ch7Ec9PJ.cjs +0 -1
- package/dist/DatePicker-D3AfDdBL.cjs +0 -14
- package/dist/DefaultPropsProvider-PRhNsS_3.cjs +0 -1
- package/dist/Dialog-DouQwf1_.cjs +0 -1
- package/dist/Dialog-GVgQOV8v.js +0 -415
- package/dist/DialogContent-DMvW6Xos.cjs +0 -1
- package/dist/DialogTitle-BTBnlhmM.cjs +0 -1
- package/dist/Divider-CISPNs7L.cjs +0 -1
- package/dist/FormLabel-CtCBcJ-1.cjs +0 -2
- package/dist/Grow-BjcgF7nV.cjs +0 -1
- package/dist/IconButton-loyqjXrR.cjs +0 -2
- package/dist/InputAdornment-CLIvW7Gk.cjs +0 -1
- package/dist/InputBase-BXcShs87.cjs +0 -3
- package/dist/Link-DgsVJ4Wk.cjs +0 -1
- package/dist/MenuItem-DuLNR389.cjs +0 -1
- package/dist/Paper-DYhLUL1K.cjs +0 -2
- package/dist/Popper-CyMmAyHW.cjs +0 -4
- package/dist/Portal-BC_MWv30.cjs +0 -1
- package/dist/Radio-Cta61QrN.cjs +0 -1
- package/dist/RadioGroup-CA-GTAeR.cjs +0 -1
- package/dist/Select-Bm-ZcxRN.cjs +0 -3
- package/dist/Stack-B68ooSQ-.cjs +0 -1
- package/dist/Switch-BMjiyNyB.cjs +0 -1
- package/dist/SwitchBase-CaXyAuEt.cjs +0 -1
- package/dist/Tabs-ll24SDcl.cjs +0 -4
- package/dist/TextField-C5lHwquP.cjs +0 -1
- package/dist/ToggleButtonGroup-CEPDUgtK.cjs +0 -167
- package/dist/Tooltip-C2KS56xn.cjs +0 -4
- package/dist/Typography-Y-OGmT9M.cjs +0 -1
- package/dist/capitalize-Cq3s4y8R.cjs +0 -1
- package/dist/capitalize-yX_QSknw.js +0 -9
- package/dist/createSvgIcon-DKtSalut.cjs +0 -1
- package/dist/dividerClasses-1ChhOCNX.cjs +0 -1
- package/dist/elementTypeAcceptingRef-BgjnOQqe.cjs +0 -1
- package/dist/extendSxProp-Dolw-tGY.cjs +0 -1
- package/dist/generateUtilityClasses-0dYt6eGZ.cjs +0 -75
- package/dist/index-BUATG6-f.cjs +0 -5
- package/dist/index-CgWaRcwQ.cjs +0 -1
- package/dist/refType-DdkUp8DT.cjs +0 -1
- package/dist/resolveComponentProps-CGmtduHt.cjs +0 -1
- package/dist/useSlot-BYekfmak.cjs +0 -1
- package/dist/useSlot-CQW01GLa.js +0 -44
- package/dist/useSlotProps-NZH6_nAj.cjs +0 -1
- package/dist/useTheme-B1HNivkF.cjs +0 -1
- package/dist/useTheme-C0AF6jAe.cjs +0 -1
- package/dist/useTheme-Dyx3LMQU.js +0 -11
- package/dist/useThemeProps-BAXMP5Ww.cjs +0 -1
- package/dist/useThemeProps-KNNlKFR_.js +0 -17
- package/dist/utils-C6YMiaf0.cjs +0 -1
|
@@ -1,59 +1,58 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { H as
|
|
2
|
+
import { H as z, I as V, W as ve, P as e, G as pe, L as q, _ as mo, Z as go } from "./identifier-D58rA1gM.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-
|
|
5
|
+
import { u as G, s as h, c as B, r as k, e as vo } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
6
|
+
import { m as E } from "./memoTheme-DyiN-Awd.js";
|
|
7
7
|
import { jsx as v, jsxs as Oe } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { i as Oo } from "./utils-DWqc1kRF.js";
|
|
8
|
+
import { a as yo, b as ho } from "./FormLabel-DjkS3S9h.js";
|
|
9
|
+
import { M as Oo } from "./Menu-DzBX10ev.js";
|
|
10
|
+
import { r as Y } from "./refType-B86yTZra.js";
|
|
11
|
+
import { i as Co } from "./utils-DWqc1kRF.js";
|
|
13
12
|
import { u as qe } from "./useControlled-BYdyS7Pn.js";
|
|
14
13
|
import { u as He } from "./useForkRef-C_4o__cU.js";
|
|
15
|
-
import { o as
|
|
16
|
-
import { u as
|
|
17
|
-
import { c as
|
|
18
|
-
import { g as
|
|
14
|
+
import { o as Io } from "./ownerDocument-CUrv0DIK.js";
|
|
15
|
+
import { u as So } from "./useId-CK6Kn3Tn.js";
|
|
16
|
+
import { c as Ro } from "./createSvgIcon-CCejzj0C.js";
|
|
17
|
+
import { g as xo } from "./utils-SrEVp7Pm.js";
|
|
19
18
|
import { c as Ce } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
20
|
-
import { i as Ie, I as Se, a as Re, r as xe, b as we, c as Te } from "./InputBase-
|
|
21
|
-
function
|
|
22
|
-
return
|
|
19
|
+
import { i as Ie, I as Se, a as Re, r as xe, b as we, c as Te } from "./InputBase-CF5oNEfh.js";
|
|
20
|
+
function wo(o) {
|
|
21
|
+
return V("MuiInput", o);
|
|
23
22
|
}
|
|
24
|
-
const
|
|
23
|
+
const X = {
|
|
25
24
|
...Ie,
|
|
26
|
-
...
|
|
25
|
+
...z("MuiInput", ["root", "underline", "input"])
|
|
27
26
|
};
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
function To(o) {
|
|
28
|
+
return V("MuiOutlinedInput", o);
|
|
30
29
|
}
|
|
31
30
|
const P = {
|
|
32
31
|
...Ie,
|
|
33
|
-
...
|
|
32
|
+
...z("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
34
33
|
};
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
function No(o) {
|
|
35
|
+
return V("MuiFilledInput", o);
|
|
37
36
|
}
|
|
38
37
|
const L = {
|
|
39
38
|
...Ie,
|
|
40
|
-
...
|
|
41
|
-
},
|
|
39
|
+
...z("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
|
|
40
|
+
}, Po = Ro(/* @__PURE__ */ v("path", {
|
|
42
41
|
d: "M7 10l5 5 5-5z"
|
|
43
|
-
}), "ArrowDropDown"),
|
|
42
|
+
}), "ArrowDropDown"), $o = (o) => {
|
|
44
43
|
const {
|
|
45
44
|
classes: t,
|
|
46
45
|
disableUnderline: n
|
|
47
|
-
} = o, i =
|
|
46
|
+
} = o, i = B({
|
|
48
47
|
root: ["root", !n && "underline"],
|
|
49
48
|
input: ["input"]
|
|
50
|
-
},
|
|
49
|
+
}, wo, t);
|
|
51
50
|
return {
|
|
52
51
|
...t,
|
|
53
52
|
// forward classes to the InputBase
|
|
54
53
|
...i
|
|
55
54
|
};
|
|
56
|
-
},
|
|
55
|
+
}, ko = h(Re, {
|
|
57
56
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
58
57
|
name: "MuiInput",
|
|
59
58
|
slot: "Root",
|
|
@@ -97,12 +96,12 @@ const L = {
|
|
|
97
96
|
pointerEvents: "none"
|
|
98
97
|
// Transparent to the hover style.
|
|
99
98
|
},
|
|
100
|
-
[`&.${
|
|
99
|
+
[`&.${X.focused}:after`]: {
|
|
101
100
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
102
101
|
// See https://github.com/mui/material-ui/issues/31766
|
|
103
102
|
transform: "scaleX(1) translateX(0)"
|
|
104
103
|
},
|
|
105
|
-
[`&.${
|
|
104
|
+
[`&.${X.error}`]: {
|
|
106
105
|
"&::before, &::after": {
|
|
107
106
|
borderBottomColor: (o.vars || o).palette.error.main
|
|
108
107
|
}
|
|
@@ -120,14 +119,14 @@ const L = {
|
|
|
120
119
|
pointerEvents: "none"
|
|
121
120
|
// Transparent to the hover style.
|
|
122
121
|
},
|
|
123
|
-
[`&:hover:not(.${
|
|
122
|
+
[`&:hover:not(.${X.disabled}, .${X.error}):before`]: {
|
|
124
123
|
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
125
124
|
// Reset on touch devices, it doesn't add specificity
|
|
126
125
|
"@media (hover: none)": {
|
|
127
126
|
borderBottom: `1px solid ${n}`
|
|
128
127
|
}
|
|
129
128
|
},
|
|
130
|
-
[`&.${
|
|
129
|
+
[`&.${X.disabled}:before`]: {
|
|
131
130
|
borderBottomStyle: "dotted"
|
|
132
131
|
}
|
|
133
132
|
}
|
|
@@ -143,12 +142,12 @@ const L = {
|
|
|
143
142
|
}
|
|
144
143
|
}))]
|
|
145
144
|
};
|
|
146
|
-
})),
|
|
145
|
+
})), Eo = h(we, {
|
|
147
146
|
name: "MuiInput",
|
|
148
147
|
slot: "Input",
|
|
149
148
|
overridesResolver: Te
|
|
150
149
|
})({}), Ne = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
151
|
-
const r =
|
|
150
|
+
const r = G({
|
|
152
151
|
props: t,
|
|
153
152
|
name: "MuiInput"
|
|
154
153
|
}), {
|
|
@@ -162,13 +161,13 @@ const L = {
|
|
|
162
161
|
slots: c = {},
|
|
163
162
|
type: O = "text",
|
|
164
163
|
...C
|
|
165
|
-
} = r, w =
|
|
164
|
+
} = r, w = $o(r), y = {
|
|
166
165
|
root: {
|
|
167
166
|
ownerState: {
|
|
168
167
|
disableUnderline: i
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
|
-
}, x = f ?? a ? ve(f ?? a, y) : y, I = c.root ?? p.Root ??
|
|
170
|
+
}, x = f ?? a ? ve(f ?? a, y) : y, I = c.root ?? p.Root ?? ko, S = c.input ?? p.Input ?? Eo;
|
|
172
171
|
return /* @__PURE__ */ v(Se, {
|
|
173
172
|
slots: {
|
|
174
173
|
root: I,
|
|
@@ -279,7 +278,7 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
279
278
|
/**
|
|
280
279
|
* Pass a ref to the `input` element.
|
|
281
280
|
*/
|
|
282
|
-
inputRef:
|
|
281
|
+
inputRef: Y,
|
|
283
282
|
/**
|
|
284
283
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
285
284
|
* FormControl.
|
|
@@ -370,10 +369,10 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
370
369
|
value: e.any
|
|
371
370
|
});
|
|
372
371
|
Ne.muiName = "Input";
|
|
373
|
-
function
|
|
374
|
-
return
|
|
372
|
+
function Fo(o) {
|
|
373
|
+
return V("MuiInputLabel", o);
|
|
375
374
|
}
|
|
376
|
-
const
|
|
375
|
+
const St = z("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), Mo = (o) => {
|
|
377
376
|
const {
|
|
378
377
|
classes: t,
|
|
379
378
|
formControl: n,
|
|
@@ -385,13 +384,13 @@ const Rt = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
385
384
|
} = o, b = {
|
|
386
385
|
root: ["root", n && "formControl", !p && "animated", i && "shrink", r && r !== "normal" && `size${q(r)}`, a],
|
|
387
386
|
asterisk: [d && "asterisk"]
|
|
388
|
-
}, m =
|
|
387
|
+
}, m = B(b, Fo, t);
|
|
389
388
|
return {
|
|
390
389
|
...t,
|
|
391
390
|
// forward the focused, disabled, etc. classes to the FormLabel
|
|
392
391
|
...m
|
|
393
392
|
};
|
|
394
|
-
},
|
|
393
|
+
}, jo = h(yo, {
|
|
395
394
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
396
395
|
name: "MuiInputLabel",
|
|
397
396
|
slot: "Root",
|
|
@@ -400,7 +399,7 @@ const Rt = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
400
399
|
ownerState: n
|
|
401
400
|
} = o;
|
|
402
401
|
return [{
|
|
403
|
-
[`& .${
|
|
402
|
+
[`& .${ho.asterisk}`]: t.asterisk
|
|
404
403
|
}, 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]];
|
|
405
404
|
}
|
|
406
405
|
})(E(({
|
|
@@ -525,8 +524,8 @@ const Rt = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
525
524
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
526
525
|
}
|
|
527
526
|
}]
|
|
528
|
-
}))),
|
|
529
|
-
const r =
|
|
527
|
+
}))), Lo = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
528
|
+
const r = G({
|
|
530
529
|
name: "MuiInputLabel",
|
|
531
530
|
props: t
|
|
532
531
|
}), {
|
|
@@ -552,8 +551,8 @@ const Rt = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
552
551
|
variant: O.variant,
|
|
553
552
|
required: O.required,
|
|
554
553
|
focused: O.focused
|
|
555
|
-
}, w =
|
|
556
|
-
return /* @__PURE__ */ v(
|
|
554
|
+
}, w = Mo(C);
|
|
555
|
+
return /* @__PURE__ */ v(jo, {
|
|
557
556
|
"data-shrink": c,
|
|
558
557
|
ref: n,
|
|
559
558
|
className: pe(w.root, b),
|
|
@@ -562,7 +561,7 @@ const Rt = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
562
561
|
classes: w
|
|
563
562
|
});
|
|
564
563
|
});
|
|
565
|
-
process.env.NODE_ENV !== "production" && (
|
|
564
|
+
process.env.NODE_ENV !== "production" && (Lo.propTypes = {
|
|
566
565
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
567
566
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
568
567
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -629,10 +628,10 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
629
628
|
*/
|
|
630
629
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
631
630
|
});
|
|
632
|
-
function
|
|
633
|
-
return
|
|
631
|
+
function Bo(o) {
|
|
632
|
+
return V("MuiNativeSelect", o);
|
|
634
633
|
}
|
|
635
|
-
const Pe =
|
|
634
|
+
const Pe = z("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Wo = (o) => {
|
|
636
635
|
const {
|
|
637
636
|
classes: t,
|
|
638
637
|
variant: n,
|
|
@@ -644,7 +643,7 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
644
643
|
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
645
644
|
icon: ["icon", `icon${q(n)}`, p && "iconOpen", r && "disabled"]
|
|
646
645
|
};
|
|
647
|
-
return
|
|
646
|
+
return B(d, Bo, t);
|
|
648
647
|
}, Ge = h("select")(({
|
|
649
648
|
theme: o
|
|
650
649
|
}) => ({
|
|
@@ -707,7 +706,7 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
707
706
|
}
|
|
708
707
|
}
|
|
709
708
|
}]
|
|
710
|
-
})),
|
|
709
|
+
})), Ao = h(Ge, {
|
|
711
710
|
name: "MuiNativeSelect",
|
|
712
711
|
slot: "Select",
|
|
713
712
|
shouldForwardProp: k,
|
|
@@ -719,7 +718,7 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
719
718
|
[`&.${Pe.multiple}`]: t.multiple
|
|
720
719
|
}];
|
|
721
720
|
}
|
|
722
|
-
})({}),
|
|
721
|
+
})({}), Ye = h("svg")(({
|
|
723
722
|
theme: o
|
|
724
723
|
}) => ({
|
|
725
724
|
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
@@ -756,7 +755,7 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
756
755
|
right: 7
|
|
757
756
|
}
|
|
758
757
|
}]
|
|
759
|
-
})),
|
|
758
|
+
})), Uo = h(Ye, {
|
|
760
759
|
name: "MuiNativeSelect",
|
|
761
760
|
slot: "Icon",
|
|
762
761
|
overridesResolver: (o, t) => {
|
|
@@ -765,7 +764,7 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
765
764
|
} = o;
|
|
766
765
|
return [t.icon, n.variant && t[`icon${q(n.variant)}`], n.open && t.iconOpen];
|
|
767
766
|
}
|
|
768
|
-
})({}),
|
|
767
|
+
})({}), Ze = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
769
768
|
const {
|
|
770
769
|
className: r,
|
|
771
770
|
disabled: i,
|
|
@@ -779,22 +778,22 @@ const Pe = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
779
778
|
disabled: i,
|
|
780
779
|
variant: b,
|
|
781
780
|
error: p
|
|
782
|
-
}, c =
|
|
781
|
+
}, c = Wo(f);
|
|
783
782
|
return /* @__PURE__ */ Oe(u.Fragment, {
|
|
784
|
-
children: [/* @__PURE__ */ v(
|
|
783
|
+
children: [/* @__PURE__ */ v(Ao, {
|
|
785
784
|
ownerState: f,
|
|
786
785
|
className: pe(c.select, r),
|
|
787
786
|
disabled: i,
|
|
788
787
|
ref: d || n,
|
|
789
788
|
...m
|
|
790
|
-
}), t.multiple ? null : /* @__PURE__ */ v(
|
|
789
|
+
}), t.multiple ? null : /* @__PURE__ */ v(Uo, {
|
|
791
790
|
as: a,
|
|
792
791
|
ownerState: f,
|
|
793
792
|
className: c.icon
|
|
794
793
|
})]
|
|
795
794
|
});
|
|
796
795
|
});
|
|
797
|
-
process.env.NODE_ENV !== "production" && (
|
|
796
|
+
process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
798
797
|
/**
|
|
799
798
|
* The option elements to populate the select with.
|
|
800
799
|
* Can be some `<option>` elements.
|
|
@@ -824,7 +823,7 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
|
824
823
|
* Use that prop to pass a ref to the native select element.
|
|
825
824
|
* @deprecated
|
|
826
825
|
*/
|
|
827
|
-
inputRef:
|
|
826
|
+
inputRef: Y,
|
|
828
827
|
/**
|
|
829
828
|
* @ignore
|
|
830
829
|
*/
|
|
@@ -849,10 +848,10 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
|
849
848
|
*/
|
|
850
849
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
851
850
|
});
|
|
852
|
-
function
|
|
853
|
-
return
|
|
851
|
+
function Je(o) {
|
|
852
|
+
return V("MuiSelect", o);
|
|
854
853
|
}
|
|
855
|
-
const
|
|
854
|
+
const H = z("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
856
855
|
var _e;
|
|
857
856
|
const Do = h(Ge, {
|
|
858
857
|
name: "MuiSelect",
|
|
@@ -864,22 +863,22 @@ const Do = h(Ge, {
|
|
|
864
863
|
return [
|
|
865
864
|
// Win specificity over the input base
|
|
866
865
|
{
|
|
867
|
-
[`&.${
|
|
866
|
+
[`&.${H.select}`]: t.select
|
|
868
867
|
},
|
|
869
868
|
{
|
|
870
|
-
[`&.${
|
|
869
|
+
[`&.${H.select}`]: t[n.variant]
|
|
871
870
|
},
|
|
872
871
|
{
|
|
873
|
-
[`&.${
|
|
872
|
+
[`&.${H.error}`]: t.error
|
|
874
873
|
},
|
|
875
874
|
{
|
|
876
|
-
[`&.${
|
|
875
|
+
[`&.${H.multiple}`]: t.multiple
|
|
877
876
|
}
|
|
878
877
|
];
|
|
879
878
|
}
|
|
880
879
|
})({
|
|
881
880
|
// Win specificity over the input base
|
|
882
|
-
[`&.${
|
|
881
|
+
[`&.${H.select}`]: {
|
|
883
882
|
height: "auto",
|
|
884
883
|
// Resets for multiple select with chips
|
|
885
884
|
minHeight: "1.4375em",
|
|
@@ -888,7 +887,7 @@ const Do = h(Ge, {
|
|
|
888
887
|
whiteSpace: "nowrap",
|
|
889
888
|
overflow: "hidden"
|
|
890
889
|
}
|
|
891
|
-
}), zo = h(
|
|
890
|
+
}), zo = h(Ye, {
|
|
892
891
|
name: "MuiSelect",
|
|
893
892
|
slot: "Icon",
|
|
894
893
|
overridesResolver: (o, t) => {
|
|
@@ -898,7 +897,7 @@ const Do = h(Ge, {
|
|
|
898
897
|
return [t.icon, n.variant && t[`icon${q(n.variant)}`], n.open && t.iconOpen];
|
|
899
898
|
}
|
|
900
899
|
})({}), Vo = h("input", {
|
|
901
|
-
shouldForwardProp: (o) =>
|
|
900
|
+
shouldForwardProp: (o) => vo(o) && o !== "classes",
|
|
902
901
|
name: "MuiSelect",
|
|
903
902
|
slot: "NativeInput",
|
|
904
903
|
overridesResolver: (o, t) => t.nativeInput
|
|
@@ -930,8 +929,8 @@ const _o = (o) => {
|
|
|
930
929
|
icon: ["icon", `icon${q(n)}`, p && "iconOpen", r && "disabled"],
|
|
931
930
|
nativeInput: ["nativeInput"]
|
|
932
931
|
};
|
|
933
|
-
return
|
|
934
|
-
},
|
|
932
|
+
return B(d, Je, t);
|
|
933
|
+
}, Qe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
935
934
|
var ze;
|
|
936
935
|
const {
|
|
937
936
|
"aria-describedby": r,
|
|
@@ -952,48 +951,48 @@ const _o = (o) => {
|
|
|
952
951
|
multiple: I,
|
|
953
952
|
name: S,
|
|
954
953
|
onBlur: N,
|
|
955
|
-
onChange:
|
|
956
|
-
onClose:
|
|
954
|
+
onChange: W,
|
|
955
|
+
onClose: Z,
|
|
957
956
|
onFocus: de,
|
|
958
|
-
onOpen:
|
|
959
|
-
open:
|
|
960
|
-
readOnly:
|
|
961
|
-
renderValue:
|
|
957
|
+
onOpen: J,
|
|
958
|
+
open: Q,
|
|
959
|
+
readOnly: ee,
|
|
960
|
+
renderValue: oe,
|
|
962
961
|
required: _,
|
|
963
962
|
SelectDisplayProps: $ = {},
|
|
964
963
|
tabIndex: F,
|
|
965
964
|
// catching `type` from Input which makes no sense for SelectInput
|
|
966
965
|
type: ue,
|
|
967
966
|
value: Fe,
|
|
968
|
-
variant:
|
|
969
|
-
...
|
|
967
|
+
variant: te = "standard",
|
|
968
|
+
...A
|
|
970
969
|
} = t, [g, Me] = qe({
|
|
971
970
|
controlled: Fe,
|
|
972
971
|
default: f,
|
|
973
972
|
name: "Select"
|
|
974
|
-
}), [je,
|
|
975
|
-
controlled:
|
|
973
|
+
}), [je, to] = qe({
|
|
974
|
+
controlled: Q,
|
|
976
975
|
default: m,
|
|
977
976
|
name: "Select"
|
|
978
|
-
}), Le = u.useRef(null), M = u.useRef(null), [j,
|
|
977
|
+
}), Le = u.useRef(null), M = u.useRef(null), [j, no] = u.useState(null), {
|
|
979
978
|
current: ce
|
|
980
|
-
} = u.useRef(
|
|
981
|
-
M.current = s, s &&
|
|
982
|
-
}, []),
|
|
983
|
-
u.useImperativeHandle(
|
|
979
|
+
} = u.useRef(Q != null), [ro, Be] = u.useState(), so = He(n, T), ao = u.useCallback((s) => {
|
|
980
|
+
M.current = s, s && no(s);
|
|
981
|
+
}, []), ne = j == null ? void 0 : j.parentNode;
|
|
982
|
+
u.useImperativeHandle(so, () => ({
|
|
984
983
|
focus: () => {
|
|
985
984
|
M.current.focus();
|
|
986
985
|
},
|
|
987
986
|
node: Le.current,
|
|
988
987
|
value: g
|
|
989
988
|
}), [g]), u.useEffect(() => {
|
|
990
|
-
m && je && j && !ce && (Be(a ? null :
|
|
989
|
+
m && je && j && !ce && (Be(a ? null : ne.clientWidth), M.current.focus());
|
|
991
990
|
}, [j, a]), u.useEffect(() => {
|
|
992
991
|
p && M.current.focus();
|
|
993
992
|
}, [p]), u.useEffect(() => {
|
|
994
993
|
if (!y)
|
|
995
994
|
return;
|
|
996
|
-
const s =
|
|
995
|
+
const s = Io(M.current).getElementById(y);
|
|
997
996
|
if (s) {
|
|
998
997
|
const l = () => {
|
|
999
998
|
getSelection().isCollapsed && M.current.focus();
|
|
@@ -1003,47 +1002,47 @@ const _o = (o) => {
|
|
|
1003
1002
|
};
|
|
1004
1003
|
}
|
|
1005
1004
|
}, [y]);
|
|
1006
|
-
const
|
|
1007
|
-
s ?
|
|
1008
|
-
}, ao = (s) => {
|
|
1009
|
-
s.button === 0 && (s.preventDefault(), M.current.focus(), ne(!0, s));
|
|
1005
|
+
const re = (s, l) => {
|
|
1006
|
+
s ? J && J(l) : Z && Z(l), ce || (Be(a ? null : ne.clientWidth), to(s));
|
|
1010
1007
|
}, io = (s) => {
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1008
|
+
s.button === 0 && (s.preventDefault(), M.current.focus(), re(!0, s));
|
|
1009
|
+
}, lo = (s) => {
|
|
1010
|
+
re(!1, s);
|
|
1011
|
+
}, se = u.Children.toArray(d), po = (s) => {
|
|
1012
|
+
const l = se.find((R) => R.props.value === s.target.value);
|
|
1013
|
+
l !== void 0 && (Me(l.props.value), W && W(s, l));
|
|
1014
|
+
}, uo = (s) => (l) => {
|
|
1016
1015
|
let R;
|
|
1017
1016
|
if (l.currentTarget.hasAttribute("tabindex")) {
|
|
1018
1017
|
if (I) {
|
|
1019
1018
|
R = Array.isArray(g) ? g.slice() : [];
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1019
|
+
const D = g.indexOf(s.props.value);
|
|
1020
|
+
D === -1 ? R.push(s.props.value) : R.splice(D, 1);
|
|
1022
1021
|
} else
|
|
1023
1022
|
R = s.props.value;
|
|
1024
|
-
if (s.props.onClick && s.props.onClick(l), g !== R && (Me(R),
|
|
1025
|
-
const
|
|
1023
|
+
if (s.props.onClick && s.props.onClick(l), g !== R && (Me(R), W)) {
|
|
1024
|
+
const D = l.nativeEvent || l, Ve = new D.constructor(D.type, D);
|
|
1026
1025
|
Object.defineProperty(Ve, "target", {
|
|
1027
1026
|
writable: !0,
|
|
1028
1027
|
value: {
|
|
1029
1028
|
value: R,
|
|
1030
1029
|
name: S
|
|
1031
1030
|
}
|
|
1032
|
-
}),
|
|
1031
|
+
}), W(Ve, s);
|
|
1033
1032
|
}
|
|
1034
|
-
I ||
|
|
1033
|
+
I || re(!1, l);
|
|
1035
1034
|
}
|
|
1036
|
-
},
|
|
1037
|
-
|
|
1035
|
+
}, co = (s) => {
|
|
1036
|
+
ee || [
|
|
1038
1037
|
" ",
|
|
1039
1038
|
"ArrowUp",
|
|
1040
1039
|
"ArrowDown",
|
|
1041
1040
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
1042
1041
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
1043
1042
|
"Enter"
|
|
1044
|
-
].includes(s.key) && (s.preventDefault(),
|
|
1045
|
-
},
|
|
1046
|
-
!
|
|
1043
|
+
].includes(s.key) && (s.preventDefault(), re(!0, s));
|
|
1044
|
+
}, K = j !== null && je, fo = (s) => {
|
|
1045
|
+
!K && N && (Object.defineProperty(s, "target", {
|
|
1047
1046
|
writable: !0,
|
|
1048
1047
|
value: {
|
|
1049
1048
|
value: g,
|
|
@@ -1051,28 +1050,28 @@ const _o = (o) => {
|
|
|
1051
1050
|
}
|
|
1052
1051
|
}), N(s));
|
|
1053
1052
|
};
|
|
1054
|
-
delete
|
|
1055
|
-
let
|
|
1053
|
+
delete A["aria-invalid"];
|
|
1054
|
+
let U, We;
|
|
1056
1055
|
const ae = [];
|
|
1057
1056
|
let ie = !1, fe = !1;
|
|
1058
|
-
(
|
|
1057
|
+
(Co({
|
|
1059
1058
|
value: g
|
|
1060
|
-
}) || O) && (
|
|
1061
|
-
const
|
|
1059
|
+
}) || O) && (oe ? U = oe(g) : ie = !0);
|
|
1060
|
+
const bo = se.map((s) => {
|
|
1062
1061
|
if (!/* @__PURE__ */ u.isValidElement(s))
|
|
1063
1062
|
return null;
|
|
1064
|
-
process.env.NODE_ENV !== "production" &&
|
|
1063
|
+
process.env.NODE_ENV !== "production" && mo.isFragment(s) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1065
1064
|
`));
|
|
1066
1065
|
let l;
|
|
1067
1066
|
if (I) {
|
|
1068
1067
|
if (!Array.isArray(g))
|
|
1069
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
1068
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : go(2));
|
|
1070
1069
|
l = g.some((R) => Ke(R, s.props.value)), l && ie && ae.push(s.props.children);
|
|
1071
1070
|
} else
|
|
1072
1071
|
l = Ke(g, s.props.value), l && ie && (We = s.props.children);
|
|
1073
1072
|
return l && (fe = !0), /* @__PURE__ */ u.cloneElement(s, {
|
|
1074
1073
|
"aria-selected": l ? "true" : "false",
|
|
1075
|
-
onClick:
|
|
1074
|
+
onClick: uo(s),
|
|
1076
1075
|
onKeyUp: (R) => {
|
|
1077
1076
|
R.key === " " && R.preventDefault(), s.props.onKeyUp && s.props.onKeyUp(R);
|
|
1078
1077
|
},
|
|
@@ -1086,79 +1085,79 @@ const _o = (o) => {
|
|
|
1086
1085
|
});
|
|
1087
1086
|
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
1088
1087
|
if (!fe && !I && g !== "") {
|
|
1089
|
-
const s =
|
|
1088
|
+
const s = se.map((l) => l.props.value);
|
|
1090
1089
|
console.warn([`MUI: You have provided an out-of-range value \`${g}\` for the select ${S ? `(name="${S}") ` : ""}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(`
|
|
1091
1090
|
`));
|
|
1092
1091
|
}
|
|
1093
|
-
}, [fe,
|
|
1094
|
-
let Ae =
|
|
1095
|
-
!a && ce && j && (Ae =
|
|
1092
|
+
}, [fe, se, I, S, g]), ie && (I ? ae.length === 0 ? U = null : U = ae.reduce((s, l, R) => (s.push(l), R < ae.length - 1 && s.push(", "), s), []) : U = We);
|
|
1093
|
+
let Ae = ro;
|
|
1094
|
+
!a && ce && j && (Ae = ne.clientWidth);
|
|
1096
1095
|
let be;
|
|
1097
1096
|
typeof F < "u" ? be = F : be = c ? null : 0;
|
|
1098
1097
|
const Ue = $.id || (S ? `mui-component-select-${S}` : void 0), le = {
|
|
1099
1098
|
...t,
|
|
1100
|
-
variant:
|
|
1099
|
+
variant: te,
|
|
1101
1100
|
value: g,
|
|
1102
|
-
open:
|
|
1101
|
+
open: K,
|
|
1103
1102
|
error: C
|
|
1104
1103
|
}, me = _o(le), ge = {
|
|
1105
1104
|
...x.PaperProps,
|
|
1106
1105
|
...(ze = x.slotProps) == null ? void 0 : ze.paper
|
|
1107
|
-
}, De =
|
|
1106
|
+
}, De = So();
|
|
1108
1107
|
return /* @__PURE__ */ Oe(u.Fragment, {
|
|
1109
1108
|
children: [/* @__PURE__ */ v(Do, {
|
|
1110
1109
|
as: "div",
|
|
1111
|
-
ref:
|
|
1110
|
+
ref: ao,
|
|
1112
1111
|
tabIndex: be,
|
|
1113
1112
|
role: "combobox",
|
|
1114
|
-
"aria-controls": De,
|
|
1113
|
+
"aria-controls": K ? De : void 0,
|
|
1115
1114
|
"aria-disabled": c ? "true" : void 0,
|
|
1116
|
-
"aria-expanded":
|
|
1115
|
+
"aria-expanded": K ? "true" : "false",
|
|
1117
1116
|
"aria-haspopup": "listbox",
|
|
1118
1117
|
"aria-label": i,
|
|
1119
1118
|
"aria-labelledby": [y, Ue].filter(Boolean).join(" ") || void 0,
|
|
1120
1119
|
"aria-describedby": r,
|
|
1121
1120
|
"aria-required": _ ? "true" : void 0,
|
|
1122
1121
|
"aria-invalid": C ? "true" : void 0,
|
|
1123
|
-
onKeyDown:
|
|
1124
|
-
onMouseDown: c ||
|
|
1125
|
-
onBlur:
|
|
1122
|
+
onKeyDown: co,
|
|
1123
|
+
onMouseDown: c || ee ? null : io,
|
|
1124
|
+
onBlur: fo,
|
|
1126
1125
|
onFocus: de,
|
|
1127
1126
|
...$,
|
|
1128
1127
|
ownerState: le,
|
|
1129
1128
|
className: pe($.className, me.select, b),
|
|
1130
1129
|
id: Ue,
|
|
1131
|
-
children: qo(
|
|
1130
|
+
children: qo(U) ? (
|
|
1132
1131
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1133
1132
|
_e || (_e = /* @__PURE__ */ v("span", {
|
|
1134
1133
|
className: "notranslate",
|
|
1135
1134
|
"aria-hidden": !0,
|
|
1136
1135
|
children: ""
|
|
1137
1136
|
}))
|
|
1138
|
-
) :
|
|
1137
|
+
) : U
|
|
1139
1138
|
}), /* @__PURE__ */ v(Vo, {
|
|
1140
1139
|
"aria-invalid": C,
|
|
1141
1140
|
value: Array.isArray(g) ? g.join(",") : g,
|
|
1142
1141
|
name: S,
|
|
1143
1142
|
ref: Le,
|
|
1144
1143
|
"aria-hidden": !0,
|
|
1145
|
-
onChange:
|
|
1144
|
+
onChange: po,
|
|
1146
1145
|
tabIndex: -1,
|
|
1147
1146
|
disabled: c,
|
|
1148
1147
|
className: me.nativeInput,
|
|
1149
1148
|
autoFocus: p,
|
|
1150
1149
|
required: _,
|
|
1151
|
-
...
|
|
1150
|
+
...A,
|
|
1152
1151
|
ownerState: le
|
|
1153
1152
|
}), /* @__PURE__ */ v(zo, {
|
|
1154
1153
|
as: w,
|
|
1155
1154
|
className: me.icon,
|
|
1156
1155
|
ownerState: le
|
|
1157
|
-
}), /* @__PURE__ */ v(
|
|
1156
|
+
}), /* @__PURE__ */ v(Oo, {
|
|
1158
1157
|
id: `menu-${S || ""}`,
|
|
1159
|
-
anchorEl:
|
|
1160
|
-
open:
|
|
1161
|
-
onClose:
|
|
1158
|
+
anchorEl: ne,
|
|
1159
|
+
open: K,
|
|
1160
|
+
onClose: lo,
|
|
1162
1161
|
anchorOrigin: {
|
|
1163
1162
|
vertical: "bottom",
|
|
1164
1163
|
horizontal: "center"
|
|
@@ -1186,11 +1185,11 @@ const _o = (o) => {
|
|
|
1186
1185
|
}
|
|
1187
1186
|
}
|
|
1188
1187
|
},
|
|
1189
|
-
children:
|
|
1188
|
+
children: bo
|
|
1190
1189
|
})]
|
|
1191
1190
|
});
|
|
1192
1191
|
});
|
|
1193
|
-
process.env.NODE_ENV !== "production" && (
|
|
1192
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
1194
1193
|
/**
|
|
1195
1194
|
* @ignore
|
|
1196
1195
|
*/
|
|
@@ -1250,7 +1249,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
|
1250
1249
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
1251
1250
|
* Equivalent to `ref`
|
|
1252
1251
|
*/
|
|
1253
|
-
inputRef:
|
|
1252
|
+
inputRef: Y,
|
|
1254
1253
|
/**
|
|
1255
1254
|
* The ID of an element that acts as an additional label. The Select will
|
|
1256
1255
|
* be labelled by the additional label and the selected value.
|
|
@@ -1350,7 +1349,7 @@ const Ko = (o) => {
|
|
|
1350
1349
|
} = o, b = {
|
|
1351
1350
|
root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", p === "small" && `size${q(p)}`, a && "hiddenLabel", d && "multiline"],
|
|
1352
1351
|
input: ["input"]
|
|
1353
|
-
}, m =
|
|
1352
|
+
}, m = B(b, No, t);
|
|
1354
1353
|
return {
|
|
1355
1354
|
...t,
|
|
1356
1355
|
// forward classes to the InputBase
|
|
@@ -1585,7 +1584,7 @@ const Ko = (o) => {
|
|
|
1585
1584
|
}
|
|
1586
1585
|
}]
|
|
1587
1586
|
}))), $e = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
1588
|
-
const r =
|
|
1587
|
+
const r = G({
|
|
1589
1588
|
props: t,
|
|
1590
1589
|
name: "MuiFilledInput"
|
|
1591
1590
|
}), {
|
|
@@ -1733,7 +1732,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
1733
1732
|
/**
|
|
1734
1733
|
* Pass a ref to the `input` element.
|
|
1735
1734
|
*/
|
|
1736
|
-
inputRef:
|
|
1735
|
+
inputRef: Y,
|
|
1737
1736
|
/**
|
|
1738
1737
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1739
1738
|
* FormControl.
|
|
@@ -1842,7 +1841,7 @@ const Go = h("fieldset", {
|
|
|
1842
1841
|
borderWidth: 1,
|
|
1843
1842
|
overflow: "hidden",
|
|
1844
1843
|
minWidth: "0%"
|
|
1845
|
-
}),
|
|
1844
|
+
}), Yo = h("legend", {
|
|
1846
1845
|
shouldForwardProp: k
|
|
1847
1846
|
})(E(({
|
|
1848
1847
|
theme: o
|
|
@@ -1906,7 +1905,7 @@ const Go = h("fieldset", {
|
|
|
1906
1905
|
}
|
|
1907
1906
|
}]
|
|
1908
1907
|
})));
|
|
1909
|
-
function
|
|
1908
|
+
function eo(o) {
|
|
1910
1909
|
const {
|
|
1911
1910
|
children: t,
|
|
1912
1911
|
classes: n,
|
|
@@ -1924,7 +1923,7 @@ function Qe(o) {
|
|
|
1924
1923
|
className: r,
|
|
1925
1924
|
ownerState: b,
|
|
1926
1925
|
...a,
|
|
1927
|
-
children: /* @__PURE__ */ v(
|
|
1926
|
+
children: /* @__PURE__ */ v(Yo, {
|
|
1928
1927
|
ownerState: b,
|
|
1929
1928
|
children: d ? /* @__PURE__ */ v("span", {
|
|
1930
1929
|
children: i
|
|
@@ -1939,7 +1938,7 @@ function Qe(o) {
|
|
|
1939
1938
|
})
|
|
1940
1939
|
});
|
|
1941
1940
|
}
|
|
1942
|
-
process.env.NODE_ENV !== "production" && (
|
|
1941
|
+
process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
1943
1942
|
/**
|
|
1944
1943
|
* The content of the component.
|
|
1945
1944
|
*/
|
|
@@ -1965,20 +1964,20 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
1965
1964
|
*/
|
|
1966
1965
|
style: e.object
|
|
1967
1966
|
});
|
|
1968
|
-
const
|
|
1967
|
+
const Zo = (o) => {
|
|
1969
1968
|
const {
|
|
1970
1969
|
classes: t
|
|
1971
|
-
} = o, r =
|
|
1970
|
+
} = o, r = B({
|
|
1972
1971
|
root: ["root"],
|
|
1973
1972
|
notchedOutline: ["notchedOutline"],
|
|
1974
1973
|
input: ["input"]
|
|
1975
|
-
},
|
|
1974
|
+
}, To, t);
|
|
1976
1975
|
return {
|
|
1977
1976
|
...t,
|
|
1978
1977
|
// forward classes to the InputBase
|
|
1979
1978
|
...r
|
|
1980
1979
|
};
|
|
1981
|
-
},
|
|
1980
|
+
}, Jo = h(Re, {
|
|
1982
1981
|
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
1983
1982
|
name: "MuiOutlinedInput",
|
|
1984
1983
|
slot: "Root",
|
|
@@ -2053,7 +2052,7 @@ const Yo = (o) => {
|
|
|
2053
2052
|
}
|
|
2054
2053
|
}]
|
|
2055
2054
|
};
|
|
2056
|
-
})), Qo = h(
|
|
2055
|
+
})), Qo = h(eo, {
|
|
2057
2056
|
name: "MuiOutlinedInput",
|
|
2058
2057
|
slot: "NotchedOutline",
|
|
2059
2058
|
overridesResolver: (o, t) => t.notchedOutline
|
|
@@ -2123,7 +2122,7 @@ const Yo = (o) => {
|
|
|
2123
2122
|
}]
|
|
2124
2123
|
}))), ke = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
2125
2124
|
var r;
|
|
2126
|
-
const i =
|
|
2125
|
+
const i = G({
|
|
2127
2126
|
props: t,
|
|
2128
2127
|
name: "MuiOutlinedInput"
|
|
2129
2128
|
}), {
|
|
@@ -2136,7 +2135,7 @@ const Yo = (o) => {
|
|
|
2136
2135
|
slots: c = {},
|
|
2137
2136
|
type: O = "text",
|
|
2138
2137
|
...C
|
|
2139
|
-
} = i, w =
|
|
2138
|
+
} = i, w = Zo(i), T = he(), y = ye({
|
|
2140
2139
|
props: i,
|
|
2141
2140
|
muiFormControl: T,
|
|
2142
2141
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -2152,7 +2151,7 @@ const Yo = (o) => {
|
|
|
2152
2151
|
multiline: m,
|
|
2153
2152
|
size: y.size,
|
|
2154
2153
|
type: O
|
|
2155
|
-
}, I = c.root ?? p.Root ??
|
|
2154
|
+
}, I = c.root ?? p.Root ?? Jo, S = c.input ?? p.Input ?? et;
|
|
2156
2155
|
return /* @__PURE__ */ v(Se, {
|
|
2157
2156
|
slots: {
|
|
2158
2157
|
root: I,
|
|
@@ -2256,7 +2255,7 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
2256
2255
|
/**
|
|
2257
2256
|
* Pass a ref to the `input` element.
|
|
2258
2257
|
*/
|
|
2259
|
-
inputRef:
|
|
2258
|
+
inputRef: Y,
|
|
2260
2259
|
/**
|
|
2261
2260
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
2262
2261
|
* is handled by `InputLabel`.
|
|
@@ -2347,15 +2346,20 @@ ke.muiName = "Input";
|
|
|
2347
2346
|
const ot = (o) => {
|
|
2348
2347
|
const {
|
|
2349
2348
|
classes: t
|
|
2350
|
-
} = o
|
|
2351
|
-
|
|
2349
|
+
} = o, r = B({
|
|
2350
|
+
root: ["root"]
|
|
2351
|
+
}, Je, t);
|
|
2352
|
+
return {
|
|
2353
|
+
...t,
|
|
2354
|
+
...r
|
|
2355
|
+
};
|
|
2352
2356
|
}, Ee = {
|
|
2353
2357
|
name: "MuiSelect",
|
|
2354
2358
|
overridesResolver: (o, t) => t.root,
|
|
2355
2359
|
shouldForwardProp: (o) => k(o) && o !== "variant",
|
|
2356
2360
|
slot: "Root"
|
|
2357
|
-
}, tt = h(Ne, Ee)(""), nt = h(ke, Ee)(""), rt = h($e, Ee)(""),
|
|
2358
|
-
const r =
|
|
2361
|
+
}, tt = h(Ne, Ee)(""), nt = h(ke, Ee)(""), rt = h($e, Ee)(""), oo = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
2362
|
+
const r = G({
|
|
2359
2363
|
name: "MuiSelect",
|
|
2360
2364
|
props: t
|
|
2361
2365
|
}), {
|
|
@@ -2365,7 +2369,7 @@ const ot = (o) => {
|
|
|
2365
2369
|
className: d,
|
|
2366
2370
|
defaultOpen: b = !1,
|
|
2367
2371
|
displayEmpty: m = !1,
|
|
2368
|
-
IconComponent: f =
|
|
2372
|
+
IconComponent: f = Po,
|
|
2369
2373
|
id: c,
|
|
2370
2374
|
input: O,
|
|
2371
2375
|
inputProps: C,
|
|
@@ -2376,23 +2380,23 @@ const ot = (o) => {
|
|
|
2376
2380
|
native: I = !1,
|
|
2377
2381
|
onClose: S,
|
|
2378
2382
|
onOpen: N,
|
|
2379
|
-
open:
|
|
2380
|
-
renderValue:
|
|
2383
|
+
open: W,
|
|
2384
|
+
renderValue: Z,
|
|
2381
2385
|
SelectDisplayProps: de,
|
|
2382
|
-
variant:
|
|
2383
|
-
...
|
|
2384
|
-
} = r,
|
|
2386
|
+
variant: J = "outlined",
|
|
2387
|
+
...Q
|
|
2388
|
+
} = r, ee = I ? Ze : Qe, oe = he(), _ = ye({
|
|
2385
2389
|
props: r,
|
|
2386
|
-
muiFormControl:
|
|
2390
|
+
muiFormControl: oe,
|
|
2387
2391
|
states: ["variant", "error"]
|
|
2388
|
-
}), $ = _.variant ||
|
|
2392
|
+
}), $ = _.variant || J, F = {
|
|
2389
2393
|
...r,
|
|
2390
2394
|
variant: $,
|
|
2391
2395
|
classes: a
|
|
2392
2396
|
}, ue = ot(F), {
|
|
2393
2397
|
root: Fe,
|
|
2394
|
-
...
|
|
2395
|
-
} = ue,
|
|
2398
|
+
...te
|
|
2399
|
+
} = ue, A = O || {
|
|
2396
2400
|
standard: /* @__PURE__ */ v(tt, {
|
|
2397
2401
|
ownerState: F
|
|
2398
2402
|
}),
|
|
@@ -2403,12 +2407,12 @@ const ot = (o) => {
|
|
|
2403
2407
|
filled: /* @__PURE__ */ v(rt, {
|
|
2404
2408
|
ownerState: F
|
|
2405
2409
|
})
|
|
2406
|
-
}[$], g = He(n,
|
|
2410
|
+
}[$], g = He(n, xo(A));
|
|
2407
2411
|
return /* @__PURE__ */ v(u.Fragment, {
|
|
2408
|
-
children: /* @__PURE__ */ u.cloneElement(
|
|
2412
|
+
children: /* @__PURE__ */ u.cloneElement(A, {
|
|
2409
2413
|
// Most of the logic is implemented in `SelectInput`.
|
|
2410
2414
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
2411
|
-
inputComponent:
|
|
2415
|
+
inputComponent: ee,
|
|
2412
2416
|
inputProps: {
|
|
2413
2417
|
children: p,
|
|
2414
2418
|
error: _.error,
|
|
@@ -2427,31 +2431,31 @@ const ot = (o) => {
|
|
|
2427
2431
|
MenuProps: y,
|
|
2428
2432
|
onClose: S,
|
|
2429
2433
|
onOpen: N,
|
|
2430
|
-
open:
|
|
2431
|
-
renderValue:
|
|
2434
|
+
open: W,
|
|
2435
|
+
renderValue: Z,
|
|
2432
2436
|
SelectDisplayProps: {
|
|
2433
2437
|
id: c,
|
|
2434
2438
|
...de
|
|
2435
2439
|
}
|
|
2436
2440
|
},
|
|
2437
2441
|
...C,
|
|
2438
|
-
classes: C ? ve(
|
|
2442
|
+
classes: C ? ve(te, C.classes) : te,
|
|
2439
2443
|
...O ? O.props.inputProps : {}
|
|
2440
2444
|
},
|
|
2441
2445
|
...(x && I || m) && $ === "outlined" ? {
|
|
2442
2446
|
notched: !0
|
|
2443
2447
|
} : {},
|
|
2444
2448
|
ref: g,
|
|
2445
|
-
className: pe(
|
|
2449
|
+
className: pe(A.props.className, d, ue.root),
|
|
2446
2450
|
// 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.
|
|
2447
2451
|
...!O && {
|
|
2448
2452
|
variant: $
|
|
2449
2453
|
},
|
|
2450
|
-
...
|
|
2454
|
+
...Q
|
|
2451
2455
|
})
|
|
2452
2456
|
});
|
|
2453
2457
|
});
|
|
2454
|
-
process.env.NODE_ENV !== "production" && (
|
|
2458
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
2455
2459
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2456
2460
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2457
2461
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2598,20 +2602,20 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
2598
2602
|
*/
|
|
2599
2603
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2600
2604
|
});
|
|
2601
|
-
|
|
2605
|
+
oo.muiName = "Select";
|
|
2602
2606
|
export {
|
|
2603
|
-
|
|
2607
|
+
Po as A,
|
|
2604
2608
|
$e as F,
|
|
2605
2609
|
Ne as I,
|
|
2606
2610
|
ke as O,
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2611
|
+
oo as S,
|
|
2612
|
+
Lo as a,
|
|
2613
|
+
St as b,
|
|
2614
|
+
Fo as c,
|
|
2615
|
+
Je as d,
|
|
2612
2616
|
L as f,
|
|
2613
|
-
|
|
2614
|
-
|
|
2617
|
+
wo as g,
|
|
2618
|
+
X as i,
|
|
2615
2619
|
P as o,
|
|
2616
|
-
|
|
2620
|
+
H as s
|
|
2617
2621
|
};
|