@cgi-learning-hub/ui 1.3.2 → 1.3.3-dev.1732123246
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-DorR8O-b.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-a6v7fn61.js → Box-BTNw-FYi.js} +8 -8
- package/dist/{Box-D61CmHcZ.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-B8Vr_qVd.js → Button--paERYBc.js} +4 -4
- package/dist/{Button-elp97nQ8.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-B0gJT_ti.js} +228 -236
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/Card-BVJgnURR.js +74 -0
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Checkbox-OTMaikud.cjs +1 -0
- package/dist/Checkbox-aBoDjdQG.js +241 -0
- package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-CIqTwP6H.js} +4 -4
- package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-DGRD-CdO.cjs +14 -0
- package/dist/DatePicker-DXgVCuAd.js +10814 -0
- package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-StV_SUuk.js} +25 -25
- package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogContent-CP2NOfUr.js +602 -0
- package/dist/DialogTitle-Couh2TzJ.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/FormGroup-CcM69JIS.js +348 -0
- package/dist/FormGroup-KOLND6rE.cjs +1 -0
- package/dist/FormLabel-C506NT5o.cjs +2 -0
- package/dist/FormLabel-wDh-AEMQ.js +417 -0
- package/dist/Grow-4QU1bnXQ.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-C7H_G1LX.js → IconButton-CsqR1453.js} +5 -5
- package/dist/InputAdornment-DgT008NI.cjs +1 -0
- package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-bXTpzNQ2.js} +5 -5
- package/dist/InputBase-Cpx39cny.cjs +3 -0
- package/dist/{InputBase-5GB2c2J6.js → InputBase-VKt_ajuq.js} +185 -207
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-CPyeYGpa.js +266 -0
- package/dist/MenuItem-BFkBwBkN.js +277 -0
- package/dist/MenuItem-BxXCEc8h.cjs +1 -0
- package/dist/Modal-BDx2_UzP.js +750 -0
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Paper-CMUbp6SX.js +185 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Popper-D_UryU8v.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-DVy9JFBN.js +86 -0
- package/dist/Select-CcnCBhBN.js +3555 -0
- package/dist/Select-CnFa2_je.cjs +9 -0
- package/dist/{Stack-CutIWKkG.js → Stack-CKjrTRJB.js} +12 -12
- package/dist/{Stack-656bqKiW.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/SwitchBase-DWfUIgEW.cjs +1 -0
- package/dist/SwitchBase-DYa1wGSu.js +261 -0
- package/dist/{Tooltip-DqLAZimE.js → TableSortLabel-Czgy_sW5.js} +2998 -5191
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +98 -0
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{Tabs-CKic46Op.js → Tabs-RxcUgknI.js} +284 -282
- package/dist/TextField-DorMAtUh.js +547 -0
- package/dist/TextField-DvGLmvG1.cjs +1 -0
- package/dist/Tooltip-B4e9QdHI.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-DsJC595c.js → Typography-B29dnCv3.js} +4 -4
- package/dist/{Typography-CreZW2v6.cjs → Typography-DyMSnhvs.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +6 -6
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/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/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- 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 +280 -269
- package/dist/components/stories/Alert.stories.cjs.js +1 -0
- package/dist/components/stories/Alert.stories.d.ts +9 -0
- package/dist/components/stories/Alert.stories.es.js +32 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -0
- package/dist/components/stories/Button.stories.d.ts +8 -0
- package/dist/components/stories/Button.stories.es.js +43 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
- package/dist/components/stories/Checkbox.stories.d.ts +10 -0
- package/dist/components/stories/Checkbox.stories.es.js +28 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
- package/dist/components/stories/DatePicker.stories.d.ts +6 -0
- package/dist/components/stories/DatePicker.stories.es.js +13 -0
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +33 -0
- package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
- package/dist/components/stories/Dropzone.stories.d.ts +6 -0
- package/dist/components/stories/Dropzone.stories.es.js +14 -0
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
- package/dist/components/stories/EmptyState.stories.d.ts +6 -0
- package/dist/components/stories/EmptyState.stories.es.js +14 -0
- package/dist/components/stories/FileList.stories.cjs.js +1 -0
- package/dist/components/stories/FileList.stories.d.ts +6 -0
- package/dist/components/stories/FileList.stories.es.js +26 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -0
- package/dist/components/stories/Heading.stories.d.ts +6 -0
- package/dist/components/stories/Heading.stories.es.js +20 -0
- package/dist/components/stories/IconButton.stories.cjs.js +1 -0
- package/dist/components/stories/IconButton.stories.d.ts +6 -0
- package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Loader.stories.cjs.js +1 -0
- package/dist/components/stories/Loader.stories.d.ts +6 -0
- package/dist/components/stories/Loader.stories.es.js +11 -0
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
- package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
- package/dist/components/stories/PasswordInput.stories.es.js +13 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
- package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
- package/dist/components/stories/RadioGroup.stories.es.js +435 -0
- package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
- package/dist/components/stories/SearchInput.stories.d.ts +6 -0
- package/dist/components/stories/SearchInput.stories.es.js +13 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -0
- package/dist/components/stories/Select.stories.d.ts +10 -0
- package/dist/components/stories/Select.stories.es.js +52 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -0
- package/dist/components/stories/TabList.stories.d.ts +7 -0
- package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +45 -52
- package/dist/components/stories/TextField.stories.cjs.js +1 -0
- package/dist/components/stories/TextField.stories.d.ts +10 -0
- package/dist/components/stories/TextField.stories.es.js +69 -0
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-VByplk-r.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BPhL72td.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-BYB-kybW.js} +1 -1
- package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/formControlState-DCkDUdfO.cjs +1 -0
- package/dist/formControlState-DdQP43Uo.js +21 -0
- package/dist/{fr-B0c4Eu-I.js → fr-B4aeA9th.js} +23 -23
- package/dist/{fr-BtINyNRC.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{identifier-Bu3vgTzE.js → identifier-BewKgEhI.js} +487 -486
- package/dist/{identifier-B_IiMbpZ.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-D4YvqRSh.js → index-BAjSgP8k.js} +3 -3
- package/dist/{index-BDy6VH40.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-DNmEgr4X.js → index-_oi9ph20.js} +4 -4
- package/dist/index-oINGa1MV.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +280 -269
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/{memoTheme-C4_nd-x4.js → memoTheme-B9kDhX1-.js} +1 -1
- package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-3o3c-kYx.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-BQQ-uUKZ.js} +18 -26
- package/dist/resolveComponentProps-R_l8gy3y.cjs +1 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-B2hCpx8C.js +50 -0
- package/dist/useSlot-i7AZwCRV.cjs +1 -0
- package/dist/useTheme-0u9_WhjM.js +11 -0
- package/dist/{useTheme-DhYab2-0.js → useTheme-BrFhq4dW.js} +1 -1
- package/dist/useTheme-DfN3sBzg.cjs +1 -0
- package/dist/{useTheme-vN32oV1t.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-CwWORfXn.js} +4 -4
- package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-cERu5xHk.js} +3 -3
- package/dist/{useTimeout-Bx22KOcH.js → useTimeout-Br8oWWYt.js} +4 -4
- package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/utils-CH0HZgJe.js +391 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-CxHwPsCX.js +0 -789
- package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
- package/dist/ButtonBase-S0mFlojL.cjs +0 -75
- package/dist/DatePicker-BigDV0IN.cjs +0 -17
- package/dist/DatePicker-ZdjLD9eR.js +0 -12779
- package/dist/IconButton-DfmbM9nO.cjs +0 -2
- package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
- package/dist/InputBase-CPtGhJye.cjs +0 -3
- package/dist/Tabs-DzrxYlm-.cjs +0 -4
- package/dist/TextField-BLEvZwPH.cjs +0 -14
- package/dist/TextField-CGMPbx_J.js +0 -5686
- package/dist/Tooltip-BJefPCe7.cjs +0 -100
- package/dist/components/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -4
- package/dist/components/Alert/Alert.stories.es.js +0 -17
- package/dist/components/Button/Button.stories.cjs.js +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Button/Button.stories.es.js +0 -45
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
- package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
- package/dist/components/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/FileList/FileList.stories.es.js +0 -28
- package/dist/components/Heading/Heading.stories.cjs.js +0 -1
- package/dist/components/Heading/Heading.stories.d.ts +0 -4
- package/dist/components/Heading/Heading.stories.es.js +0 -22
- package/dist/components/IconButton.stories.cjs.js +0 -1
- package/dist/components/IconButton.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.cjs.js +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -4
- package/dist/components/Loader/Loader.stories.es.js +0 -14
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/TabList.stories.cjs.js +0 -1
- package/dist/components/TabList.stories.d.ts +0 -4
- package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
- package/dist/components/TextInput/TextInput.stories.es.js +0 -43
- package/dist/index-Dl4BXU0b.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DYRsy3ld.cjs +0 -1
- package/dist/refType-DvOnKTmB.js +0 -27
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useTheme-BvsnROiB.cjs +0 -1
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { P as e, J as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { P as e, J as Fe, I as ke, L as ce, K as J, Z as Be } from "./identifier-BewKgEhI.js";
|
|
3
|
+
import { f as Me, i as He } from "./formControlState-DdQP43Uo.js";
|
|
4
|
+
import { u as Pe, F as We } from "./useFormControl-CatNKXAi.js";
|
|
5
|
+
import { g as De } from "./index-_oi9ph20.js";
|
|
6
|
+
import { m as be } from "./memoTheme-B9kDhX1-.js";
|
|
5
7
|
import { jsxs as Q, jsx as B } from "react/jsx-runtime";
|
|
6
|
-
import { s as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as X,
|
|
9
|
-
import { o as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _e() {
|
|
13
|
-
return s.useContext(ne);
|
|
14
|
-
}
|
|
15
|
-
function me(n) {
|
|
16
|
-
return n != null && !(Array.isArray(n) && n.length === 0);
|
|
17
|
-
}
|
|
18
|
-
function je(n, o = !1) {
|
|
19
|
-
return n && (me(n.value) && n.value !== "" || o && me(n.defaultValue) && n.defaultValue !== "");
|
|
20
|
-
}
|
|
21
|
-
function cn(n) {
|
|
22
|
-
return n.startAdornment;
|
|
23
|
-
}
|
|
24
|
-
function Ke({
|
|
25
|
-
props: n,
|
|
26
|
-
states: o,
|
|
27
|
-
muiFormControl: t
|
|
28
|
-
}) {
|
|
29
|
-
return o.reduce((l, u) => (l[u] = n[u], t && typeof n[u] > "u" && (l[u] = t[u]), l), {});
|
|
30
|
-
}
|
|
8
|
+
import { s as ye, u as Le, c as je } from "./DefaultPropsProvider-StV_SUuk.js";
|
|
9
|
+
import { u as ge } from "./useForkRef-C_4o__cU.js";
|
|
10
|
+
import { u as X, r as Ve } from "./refType-3o3c-kYx.js";
|
|
11
|
+
import { o as pe } from "./ownerWindow-niciwP7I.js";
|
|
12
|
+
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
13
|
+
import { e as _e } from "./elementTypeAcceptingRef-BPhL72td.js";
|
|
31
14
|
function L(n) {
|
|
32
15
|
return parseInt(n, 10) || 0;
|
|
33
16
|
}
|
|
34
|
-
const
|
|
17
|
+
const Ke = {
|
|
35
18
|
shadow: {
|
|
36
19
|
// Visibility needed to hide the extra text area on iPads
|
|
37
20
|
visibility: "hidden",
|
|
@@ -46,83 +29,83 @@ const $e = {
|
|
|
46
29
|
transform: "translateZ(0)"
|
|
47
30
|
}
|
|
48
31
|
};
|
|
49
|
-
function
|
|
32
|
+
function $e(n) {
|
|
50
33
|
return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflowing;
|
|
51
34
|
}
|
|
52
|
-
const
|
|
35
|
+
const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
53
36
|
const {
|
|
54
|
-
onChange:
|
|
55
|
-
maxRows:
|
|
56
|
-
minRows:
|
|
37
|
+
onChange: d,
|
|
38
|
+
maxRows: f,
|
|
39
|
+
minRows: c = 1,
|
|
57
40
|
style: O,
|
|
58
|
-
value:
|
|
41
|
+
value: T,
|
|
59
42
|
...M
|
|
60
43
|
} = o, {
|
|
61
|
-
current:
|
|
62
|
-
} = s.useRef(
|
|
63
|
-
const
|
|
44
|
+
current: S
|
|
45
|
+
} = s.useRef(T != null), h = s.useRef(null), E = ge(t, h), b = s.useRef(null), C = s.useRef(null), v = s.useCallback(() => {
|
|
46
|
+
const l = h.current, r = pe(l).getComputedStyle(l);
|
|
64
47
|
if (r.width === "0px")
|
|
65
48
|
return {
|
|
66
49
|
outerHeightStyle: 0,
|
|
67
50
|
overflowing: !1
|
|
68
51
|
};
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
` && (
|
|
72
|
-
const z = r.boxSizing, R = L(r.paddingBottom) + L(r.paddingTop), g = L(r.borderBottomWidth) + L(r.borderTopWidth),
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
const H =
|
|
52
|
+
const p = C.current;
|
|
53
|
+
p.style.width = r.width, p.value = l.value || o.placeholder || "x", p.value.slice(-1) === `
|
|
54
|
+
` && (p.value += " ");
|
|
55
|
+
const z = r.boxSizing, R = L(r.paddingBottom) + L(r.paddingTop), g = L(r.borderBottomWidth) + L(r.borderTopWidth), N = p.scrollHeight;
|
|
56
|
+
p.value = "x";
|
|
57
|
+
const A = p.scrollHeight;
|
|
58
|
+
let u = N;
|
|
59
|
+
c && (u = Math.max(Number(c) * A, u)), f && (u = Math.min(Number(f) * A, u)), u = Math.max(u, A);
|
|
60
|
+
const H = u + (z === "border-box" ? R + g : 0), P = Math.abs(u - N) <= 1;
|
|
78
61
|
return {
|
|
79
62
|
outerHeightStyle: H,
|
|
80
63
|
overflowing: P
|
|
81
64
|
};
|
|
82
|
-
}, [
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
65
|
+
}, [f, c, o.placeholder]), x = s.useCallback(() => {
|
|
66
|
+
const l = v();
|
|
67
|
+
if ($e(l))
|
|
85
68
|
return;
|
|
86
|
-
const
|
|
87
|
-
|
|
69
|
+
const y = l.outerHeightStyle, r = h.current;
|
|
70
|
+
b.current !== y && (b.current = y, r.style.height = `${y}px`), r.style.overflow = l.overflowing ? "hidden" : "";
|
|
88
71
|
}, [v]);
|
|
89
72
|
X(() => {
|
|
90
|
-
const
|
|
73
|
+
const l = () => {
|
|
91
74
|
x();
|
|
92
75
|
};
|
|
93
|
-
let
|
|
76
|
+
let y;
|
|
94
77
|
const r = () => {
|
|
95
|
-
cancelAnimationFrame(
|
|
96
|
-
|
|
78
|
+
cancelAnimationFrame(y), y = requestAnimationFrame(() => {
|
|
79
|
+
l();
|
|
97
80
|
});
|
|
98
|
-
},
|
|
99
|
-
R.addEventListener("resize",
|
|
81
|
+
}, p = Ue(l), z = h.current, R = pe(z);
|
|
82
|
+
R.addEventListener("resize", p);
|
|
100
83
|
let g;
|
|
101
|
-
return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r :
|
|
102
|
-
|
|
84
|
+
return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r : l), g.observe(z)), () => {
|
|
85
|
+
p.clear(), cancelAnimationFrame(y), R.removeEventListener("resize", p), g && g.disconnect();
|
|
103
86
|
};
|
|
104
87
|
}, [v, x]), X(() => {
|
|
105
88
|
x();
|
|
106
89
|
});
|
|
107
|
-
const
|
|
108
|
-
|
|
90
|
+
const j = (l) => {
|
|
91
|
+
S || x(), d && d(l);
|
|
109
92
|
};
|
|
110
93
|
return /* @__PURE__ */ Q(s.Fragment, {
|
|
111
94
|
children: [/* @__PURE__ */ B("textarea", {
|
|
112
|
-
value:
|
|
113
|
-
onChange:
|
|
114
|
-
ref:
|
|
115
|
-
rows:
|
|
95
|
+
value: T,
|
|
96
|
+
onChange: j,
|
|
97
|
+
ref: E,
|
|
98
|
+
rows: c,
|
|
116
99
|
style: O,
|
|
117
100
|
...M
|
|
118
101
|
}), /* @__PURE__ */ B("textarea", {
|
|
119
102
|
"aria-hidden": !0,
|
|
120
103
|
className: o.className,
|
|
121
104
|
readOnly: !0,
|
|
122
|
-
ref:
|
|
105
|
+
ref: C,
|
|
123
106
|
tabIndex: -1,
|
|
124
107
|
style: {
|
|
125
|
-
|
|
108
|
+
...Ke.shadow,
|
|
126
109
|
...O,
|
|
127
110
|
paddingTop: 0,
|
|
128
111
|
paddingBottom: 0
|
|
@@ -130,7 +113,7 @@ const Ce = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
|
130
113
|
})]
|
|
131
114
|
});
|
|
132
115
|
});
|
|
133
|
-
process.env.NODE_ENV !== "production" && (
|
|
116
|
+
process.env.NODE_ENV !== "production" && (we.propTypes = {
|
|
134
117
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
135
118
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
136
119
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -165,50 +148,50 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
|
165
148
|
*/
|
|
166
149
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
167
150
|
});
|
|
168
|
-
function
|
|
151
|
+
function fe(n) {
|
|
169
152
|
return typeof n == "string";
|
|
170
153
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
154
|
+
function qe(n) {
|
|
155
|
+
return ke("MuiInputBase", n);
|
|
173
156
|
}
|
|
174
|
-
const ee =
|
|
175
|
-
var
|
|
176
|
-
const
|
|
157
|
+
const ee = Fe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
158
|
+
var me;
|
|
159
|
+
const Ge = (n, o) => {
|
|
177
160
|
const {
|
|
178
161
|
ownerState: t
|
|
179
162
|
} = n;
|
|
180
163
|
return [o.root, t.formControl && o.formControl, t.startAdornment && o.adornedStart, t.endAdornment && o.adornedEnd, t.error && o.error, t.size === "small" && o.sizeSmall, t.multiline && o.multiline, t.color && o[`color${J(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
|
|
181
|
-
},
|
|
164
|
+
}, Ye = (n, o) => {
|
|
182
165
|
const {
|
|
183
166
|
ownerState: t
|
|
184
167
|
} = n;
|
|
185
168
|
return [o.input, t.size === "small" && o.inputSizeSmall, t.multiline && o.inputMultiline, t.type === "search" && o.inputTypeSearch, t.startAdornment && o.inputAdornedStart, t.endAdornment && o.inputAdornedEnd, t.hiddenLabel && o.inputHiddenLabel];
|
|
186
|
-
},
|
|
169
|
+
}, Ze = (n) => {
|
|
187
170
|
const {
|
|
188
171
|
classes: o,
|
|
189
172
|
color: t,
|
|
190
|
-
disabled:
|
|
191
|
-
error:
|
|
192
|
-
endAdornment:
|
|
173
|
+
disabled: d,
|
|
174
|
+
error: f,
|
|
175
|
+
endAdornment: c,
|
|
193
176
|
focused: O,
|
|
194
|
-
formControl:
|
|
177
|
+
formControl: T,
|
|
195
178
|
fullWidth: M,
|
|
196
|
-
hiddenLabel:
|
|
179
|
+
hiddenLabel: S,
|
|
197
180
|
multiline: h,
|
|
198
|
-
readOnly:
|
|
199
|
-
size:
|
|
200
|
-
startAdornment:
|
|
181
|
+
readOnly: E,
|
|
182
|
+
size: b,
|
|
183
|
+
startAdornment: C,
|
|
201
184
|
type: v
|
|
202
185
|
} = n, x = {
|
|
203
|
-
root: ["root", `color${J(t)}`,
|
|
204
|
-
input: ["input",
|
|
186
|
+
root: ["root", `color${J(t)}`, d && "disabled", f && "error", M && "fullWidth", O && "focused", T && "formControl", b && b !== "medium" && `size${J(b)}`, h && "multiline", C && "adornedStart", c && "adornedEnd", S && "hiddenLabel", E && "readOnly"],
|
|
187
|
+
input: ["input", d && "disabled", v === "search" && "inputTypeSearch", h && "inputMultiline", b === "small" && "inputSizeSmall", S && "inputHiddenLabel", C && "inputAdornedStart", c && "inputAdornedEnd", E && "readOnly"]
|
|
205
188
|
};
|
|
206
|
-
return
|
|
207
|
-
},
|
|
189
|
+
return je(x, qe, o);
|
|
190
|
+
}, Je = ye("div", {
|
|
208
191
|
name: "MuiInputBase",
|
|
209
192
|
slot: "Root",
|
|
210
|
-
overridesResolver:
|
|
211
|
-
})(
|
|
193
|
+
overridesResolver: Ge
|
|
194
|
+
})(be(({
|
|
212
195
|
theme: n
|
|
213
196
|
}) => ({
|
|
214
197
|
...n.typography.body1,
|
|
@@ -248,11 +231,11 @@ const Ye = (n, o) => {
|
|
|
248
231
|
width: "100%"
|
|
249
232
|
}
|
|
250
233
|
}]
|
|
251
|
-
}))),
|
|
234
|
+
}))), Qe = ye("input", {
|
|
252
235
|
name: "MuiInputBase",
|
|
253
236
|
slot: "Input",
|
|
254
|
-
overridesResolver:
|
|
255
|
-
})(
|
|
237
|
+
overridesResolver: Ye
|
|
238
|
+
})(be(({
|
|
256
239
|
theme: n
|
|
257
240
|
}) => {
|
|
258
241
|
const o = n.palette.mode === "light", t = {
|
|
@@ -265,9 +248,9 @@ const Ye = (n, o) => {
|
|
|
265
248
|
transition: n.transitions.create("opacity", {
|
|
266
249
|
duration: n.transitions.duration.shorter
|
|
267
250
|
})
|
|
268
|
-
},
|
|
251
|
+
}, d = {
|
|
269
252
|
opacity: "0 !important"
|
|
270
|
-
},
|
|
253
|
+
}, f = n.vars ? {
|
|
271
254
|
opacity: n.vars.opacity.inputPlaceholder
|
|
272
255
|
} : {
|
|
273
256
|
opacity: o ? 0.42 : 0.5
|
|
@@ -307,15 +290,15 @@ const Ye = (n, o) => {
|
|
|
307
290
|
},
|
|
308
291
|
// Show and hide the placeholder logic
|
|
309
292
|
[`label[data-shrink=false] + .${ee.formControl} &`]: {
|
|
310
|
-
"&::-webkit-input-placeholder":
|
|
311
|
-
"&::-moz-placeholder":
|
|
293
|
+
"&::-webkit-input-placeholder": d,
|
|
294
|
+
"&::-moz-placeholder": d,
|
|
312
295
|
// Firefox 19+
|
|
313
|
-
"&::-ms-input-placeholder":
|
|
296
|
+
"&::-ms-input-placeholder": d,
|
|
314
297
|
// Edge
|
|
315
|
-
"&:focus::-webkit-input-placeholder":
|
|
316
|
-
"&:focus::-moz-placeholder":
|
|
298
|
+
"&:focus::-webkit-input-placeholder": f,
|
|
299
|
+
"&:focus::-moz-placeholder": f,
|
|
317
300
|
// Firefox 19+
|
|
318
|
-
"&:focus::-ms-input-placeholder":
|
|
301
|
+
"&:focus::-ms-input-placeholder": f
|
|
319
302
|
// Edge
|
|
320
303
|
},
|
|
321
304
|
[`&.${ee.disabled}`]: {
|
|
@@ -326,8 +309,8 @@ const Ye = (n, o) => {
|
|
|
326
309
|
},
|
|
327
310
|
variants: [{
|
|
328
311
|
props: ({
|
|
329
|
-
ownerState:
|
|
330
|
-
}) => !
|
|
312
|
+
ownerState: c
|
|
313
|
+
}) => !c.disableInjectingGlobalStyles,
|
|
331
314
|
style: {
|
|
332
315
|
animationName: "mui-auto-fill-cancel",
|
|
333
316
|
animationDuration: "10ms",
|
|
@@ -345,8 +328,8 @@ const Ye = (n, o) => {
|
|
|
345
328
|
}
|
|
346
329
|
}, {
|
|
347
330
|
props: ({
|
|
348
|
-
ownerState:
|
|
349
|
-
}) =>
|
|
331
|
+
ownerState: c
|
|
332
|
+
}) => c.multiline,
|
|
350
333
|
style: {
|
|
351
334
|
height: "auto",
|
|
352
335
|
resize: "none",
|
|
@@ -363,7 +346,7 @@ const Ye = (n, o) => {
|
|
|
363
346
|
}
|
|
364
347
|
}]
|
|
365
348
|
};
|
|
366
|
-
})),
|
|
349
|
+
})), he = De({
|
|
367
350
|
"@keyframes mui-auto-fill": {
|
|
368
351
|
from: {
|
|
369
352
|
display: "block"
|
|
@@ -374,99 +357,99 @@ const Ye = (n, o) => {
|
|
|
374
357
|
display: "block"
|
|
375
358
|
}
|
|
376
359
|
}
|
|
377
|
-
}),
|
|
378
|
-
const
|
|
360
|
+
}), Xe = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
361
|
+
const d = Le({
|
|
379
362
|
props: o,
|
|
380
363
|
name: "MuiInputBase"
|
|
381
364
|
}), {
|
|
382
|
-
"aria-describedby":
|
|
383
|
-
autoComplete:
|
|
365
|
+
"aria-describedby": f,
|
|
366
|
+
autoComplete: c,
|
|
384
367
|
autoFocus: O,
|
|
385
|
-
className:
|
|
368
|
+
className: T,
|
|
386
369
|
color: M,
|
|
387
|
-
components:
|
|
370
|
+
components: S = {},
|
|
388
371
|
componentsProps: h = {},
|
|
389
|
-
defaultValue:
|
|
390
|
-
disabled:
|
|
391
|
-
disableInjectingGlobalStyles:
|
|
372
|
+
defaultValue: E,
|
|
373
|
+
disabled: b,
|
|
374
|
+
disableInjectingGlobalStyles: C,
|
|
392
375
|
endAdornment: v,
|
|
393
376
|
error: x,
|
|
394
|
-
fullWidth:
|
|
395
|
-
id:
|
|
396
|
-
inputComponent:
|
|
377
|
+
fullWidth: j = !1,
|
|
378
|
+
id: l,
|
|
379
|
+
inputComponent: y = "input",
|
|
397
380
|
inputProps: r = {},
|
|
398
|
-
inputRef:
|
|
381
|
+
inputRef: p,
|
|
399
382
|
margin: z,
|
|
400
383
|
maxRows: R,
|
|
401
384
|
minRows: g,
|
|
402
|
-
multiline:
|
|
403
|
-
name:
|
|
404
|
-
onBlur:
|
|
385
|
+
multiline: N = !1,
|
|
386
|
+
name: A,
|
|
387
|
+
onBlur: u,
|
|
405
388
|
onChange: H,
|
|
406
389
|
onClick: P,
|
|
407
390
|
onFocus: oe,
|
|
408
|
-
onKeyDown:
|
|
409
|
-
onKeyUp:
|
|
410
|
-
placeholder:
|
|
411
|
-
readOnly:
|
|
412
|
-
renderSuffix:
|
|
391
|
+
onKeyDown: ve,
|
|
392
|
+
onKeyUp: Se,
|
|
393
|
+
placeholder: Ce,
|
|
394
|
+
readOnly: V,
|
|
395
|
+
renderSuffix: ne,
|
|
413
396
|
rows: W,
|
|
414
|
-
size:
|
|
415
|
-
slotProps:
|
|
416
|
-
slots:
|
|
397
|
+
size: eo,
|
|
398
|
+
slotProps: te = {},
|
|
399
|
+
slots: re = {},
|
|
417
400
|
startAdornment: F,
|
|
418
|
-
type:
|
|
419
|
-
value:
|
|
420
|
-
...
|
|
421
|
-
} =
|
|
422
|
-
current:
|
|
423
|
-
} = s.useRef(D != null), I = s.useRef(),
|
|
401
|
+
type: ie = "text",
|
|
402
|
+
value: xe,
|
|
403
|
+
...Re
|
|
404
|
+
} = d, D = r.value != null ? r.value : xe, {
|
|
405
|
+
current: U
|
|
406
|
+
} = s.useRef(D != null), I = s.useRef(), Oe = s.useCallback((i) => {
|
|
424
407
|
process.env.NODE_ENV !== "production" && i && i.nodeName !== "INPUT" && !i.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
425
408
|
`));
|
|
426
|
-
}, []),
|
|
409
|
+
}, []), Te = ge(I, p, r.ref, Oe), [_, K] = s.useState(!1), a = Pe();
|
|
427
410
|
process.env.NODE_ENV !== "production" && s.useEffect(() => {
|
|
428
411
|
if (a)
|
|
429
412
|
return a.registerEffect();
|
|
430
413
|
}, [a]);
|
|
431
|
-
const m =
|
|
432
|
-
props:
|
|
414
|
+
const m = Me({
|
|
415
|
+
props: d,
|
|
433
416
|
muiFormControl: a,
|
|
434
417
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
435
418
|
});
|
|
436
|
-
m.focused = a ? a.focused :
|
|
437
|
-
!a &&
|
|
438
|
-
}, [a,
|
|
419
|
+
m.focused = a ? a.focused : _, s.useEffect(() => {
|
|
420
|
+
!a && b && _ && (K(!1), u && u());
|
|
421
|
+
}, [a, b, _, u]);
|
|
439
422
|
const $ = a && a.onFilled, q = a && a.onEmpty, k = s.useCallback((i) => {
|
|
440
|
-
|
|
423
|
+
He(i) ? $ && $() : q && q();
|
|
441
424
|
}, [$, q]);
|
|
442
425
|
X(() => {
|
|
443
|
-
|
|
426
|
+
U && k({
|
|
444
427
|
value: D
|
|
445
428
|
});
|
|
446
|
-
}, [D, k,
|
|
447
|
-
const
|
|
429
|
+
}, [D, k, U]);
|
|
430
|
+
const Ee = (i) => {
|
|
448
431
|
oe && oe(i), r.onFocus && r.onFocus(i), a && a.onFocus ? a.onFocus(i) : K(!0);
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
if (!
|
|
453
|
-
const
|
|
454
|
-
if (
|
|
455
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
432
|
+
}, Ie = (i) => {
|
|
433
|
+
u && u(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) : K(!1);
|
|
434
|
+
}, ze = (i, ...ue) => {
|
|
435
|
+
if (!U) {
|
|
436
|
+
const de = i.target || I.current;
|
|
437
|
+
if (de == null)
|
|
438
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Be(1));
|
|
456
439
|
k({
|
|
457
|
-
value:
|
|
440
|
+
value: de.value
|
|
458
441
|
});
|
|
459
442
|
}
|
|
460
|
-
r.onChange && r.onChange(i, ...
|
|
443
|
+
r.onChange && r.onChange(i, ...ue), H && H(i, ...ue);
|
|
461
444
|
};
|
|
462
445
|
s.useEffect(() => {
|
|
463
446
|
k(I.current);
|
|
464
447
|
}, []);
|
|
465
|
-
const
|
|
448
|
+
const Ne = (i) => {
|
|
466
449
|
I.current && i.currentTarget === i.target && I.current.focus(), P && P(i);
|
|
467
450
|
};
|
|
468
|
-
let G =
|
|
469
|
-
|
|
451
|
+
let G = y, w = r;
|
|
452
|
+
N && G === "input" && (W ? (process.env.NODE_ENV !== "production" && (g || R) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), w = {
|
|
470
453
|
type: void 0,
|
|
471
454
|
minRows: W,
|
|
472
455
|
maxRows: W,
|
|
@@ -476,8 +459,8 @@ const Ye = (n, o) => {
|
|
|
476
459
|
maxRows: R,
|
|
477
460
|
minRows: g,
|
|
478
461
|
...w
|
|
479
|
-
}, G =
|
|
480
|
-
const
|
|
462
|
+
}, G = we);
|
|
463
|
+
const Ae = (i) => {
|
|
481
464
|
k(i.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
482
465
|
value: "x"
|
|
483
466
|
});
|
|
@@ -486,80 +469,80 @@ const Ye = (n, o) => {
|
|
|
486
469
|
a && a.setAdornedStart(!!F);
|
|
487
470
|
}, [a, F]);
|
|
488
471
|
const Y = {
|
|
489
|
-
...
|
|
472
|
+
...d,
|
|
490
473
|
color: m.color || "primary",
|
|
491
474
|
disabled: m.disabled,
|
|
492
475
|
endAdornment: v,
|
|
493
476
|
error: m.error,
|
|
494
477
|
focused: m.focused,
|
|
495
478
|
formControl: a,
|
|
496
|
-
fullWidth:
|
|
479
|
+
fullWidth: j,
|
|
497
480
|
hiddenLabel: m.hiddenLabel,
|
|
498
|
-
multiline:
|
|
481
|
+
multiline: N,
|
|
499
482
|
size: m.size,
|
|
500
483
|
startAdornment: F,
|
|
501
|
-
type:
|
|
502
|
-
},
|
|
484
|
+
type: ie
|
|
485
|
+
}, ae = Ze(Y), se = re.root || S.Root || Je, Z = te.root || h.root || {}, le = re.input || S.Input || Qe;
|
|
503
486
|
return w = {
|
|
504
487
|
...w,
|
|
505
|
-
...
|
|
488
|
+
...te.input ?? h.input
|
|
506
489
|
}, /* @__PURE__ */ Q(s.Fragment, {
|
|
507
|
-
children: [!
|
|
490
|
+
children: [!C && typeof he == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
508
491
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
509
|
-
(
|
|
492
|
+
(me || (me = /* @__PURE__ */ B(he, {}))), /* @__PURE__ */ Q(se, {
|
|
510
493
|
...Z,
|
|
511
494
|
ref: t,
|
|
512
|
-
onClick:
|
|
513
|
-
...
|
|
514
|
-
...!
|
|
495
|
+
onClick: Ne,
|
|
496
|
+
...Re,
|
|
497
|
+
...!fe(se) && {
|
|
515
498
|
ownerState: {
|
|
516
499
|
...Y,
|
|
517
500
|
...Z.ownerState
|
|
518
501
|
}
|
|
519
502
|
},
|
|
520
|
-
className:
|
|
521
|
-
children: [F, /* @__PURE__ */ B(
|
|
503
|
+
className: ce(ae.root, Z.className, T, V && "MuiInputBase-readOnly"),
|
|
504
|
+
children: [F, /* @__PURE__ */ B(We.Provider, {
|
|
522
505
|
value: null,
|
|
523
|
-
children: /* @__PURE__ */ B(
|
|
506
|
+
children: /* @__PURE__ */ B(le, {
|
|
524
507
|
"aria-invalid": m.error,
|
|
525
|
-
"aria-describedby":
|
|
526
|
-
autoComplete:
|
|
508
|
+
"aria-describedby": f,
|
|
509
|
+
autoComplete: c,
|
|
527
510
|
autoFocus: O,
|
|
528
|
-
defaultValue:
|
|
511
|
+
defaultValue: E,
|
|
529
512
|
disabled: m.disabled,
|
|
530
|
-
id:
|
|
531
|
-
onAnimationStart:
|
|
532
|
-
name:
|
|
533
|
-
placeholder:
|
|
534
|
-
readOnly:
|
|
513
|
+
id: l,
|
|
514
|
+
onAnimationStart: Ae,
|
|
515
|
+
name: A,
|
|
516
|
+
placeholder: Ce,
|
|
517
|
+
readOnly: V,
|
|
535
518
|
required: m.required,
|
|
536
519
|
rows: W,
|
|
537
520
|
value: D,
|
|
538
|
-
onKeyDown:
|
|
539
|
-
onKeyUp:
|
|
540
|
-
type:
|
|
521
|
+
onKeyDown: ve,
|
|
522
|
+
onKeyUp: Se,
|
|
523
|
+
type: ie,
|
|
541
524
|
...w,
|
|
542
|
-
...!
|
|
525
|
+
...!fe(le) && {
|
|
543
526
|
as: G,
|
|
544
527
|
ownerState: {
|
|
545
528
|
...Y,
|
|
546
529
|
...w.ownerState
|
|
547
530
|
}
|
|
548
531
|
},
|
|
549
|
-
ref:
|
|
550
|
-
className:
|
|
551
|
-
onBlur:
|
|
552
|
-
onChange:
|
|
553
|
-
onFocus:
|
|
532
|
+
ref: Te,
|
|
533
|
+
className: ce(ae.input, w.className, V && "MuiInputBase-readOnly"),
|
|
534
|
+
onBlur: Ie,
|
|
535
|
+
onChange: ze,
|
|
536
|
+
onFocus: Ee
|
|
554
537
|
})
|
|
555
|
-
}), v,
|
|
538
|
+
}), v, ne ? ne({
|
|
556
539
|
...m,
|
|
557
540
|
startAdornment: F
|
|
558
541
|
}) : null]
|
|
559
542
|
})]
|
|
560
543
|
});
|
|
561
544
|
});
|
|
562
|
-
process.env.NODE_ENV !== "production" && (
|
|
545
|
+
process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
563
546
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
564
547
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
565
548
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -654,7 +637,7 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
|
654
637
|
* Either a string to use a HTML element or a component.
|
|
655
638
|
* @default 'input'
|
|
656
639
|
*/
|
|
657
|
-
inputComponent:
|
|
640
|
+
inputComponent: _e,
|
|
658
641
|
/**
|
|
659
642
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
660
643
|
* @default {}
|
|
@@ -788,16 +771,11 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
|
788
771
|
value: e.any
|
|
789
772
|
});
|
|
790
773
|
export {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
Ke as f,
|
|
799
|
-
he as g,
|
|
800
|
-
cn as i,
|
|
801
|
-
Ye as r,
|
|
802
|
-
_e as u
|
|
774
|
+
Xe as I,
|
|
775
|
+
Je as a,
|
|
776
|
+
Qe as b,
|
|
777
|
+
Ye as c,
|
|
778
|
+
fe as d,
|
|
779
|
+
ee as i,
|
|
780
|
+
Ge as r
|
|
803
781
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const S=require("react"),e=require("./identifier-DTh6b5Gz.cjs"),V=require("./useTheme-DfN3sBzg.cjs"),q=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-eVMpAUQg.cjs"),F=require("./memoTheme-DJBS0nbO.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),$=require("./Typography-DyMSnhvs.cjs"),A=require("./elementTypeAcceptingRef-DiSL8-Ea.cjs"),m=require("./isFocusVisible-DlSijby6.cjs");function N(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return o.default=r,Object.freeze(o)}const h=N(S);function C(r){return e.generateUtilityClass("MuiLink",r)}const v=e.generateUtilityClasses("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),M=({theme:r,ownerState:o})=>{const t=o.color,n=e.getPath(r,`palette.${t}`,!1)||o.color,s=e.getPath(r,`palette.${t}Channel`);return"vars"in r&&s?`rgba(${s} / 0.4)`:e.alpha(n,.4)},x={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},z=r=>{const{classes:o,component:t,focusVisible:n,underline:s}=r,l={root:["root",`underline${e.capitalize(s)}`,t==="button"&&"button",n&&"focusVisible"]};return u.composeClasses(l,C,o)},U=u.styled($.Typography,{name:"MuiLink",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:t}=r;return[o.root,o[`underline${e.capitalize(t.underline)}`],t.component==="button"&&o.button]}})(F.memoTheme(({theme:r})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:o,ownerState:t})=>o==="always"&&t.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(r.palette).filter(R.createSimplePaletteValueFilter()).map(([o])=>({props:{underline:"always",color:o},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette[o].mainChannel} / 0.4)`:e.alpha(r.palette[o].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.4)`:e.alpha(r.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette.text.secondaryChannel} / 0.4)`:e.alpha(r.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(r.vars||r).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${v.focusVisible}`]:{outline:"auto"}}}]}))),k=h.forwardRef(function(o,t){const n=u.useDefaultProps({props:o,name:"MuiLink"}),s=V.useTheme(),{className:l,color:i="primary",component:y="a",onBlur:d,onFocus:f,TypographyClasses:w,underline:b="always",variant:T="inherit",sx:p,...g}=n,[L,P]=h.useState(!1),D=a=>{m.isFocusVisible(a.target)||P(!1),d&&d(a)},O=a=>{m.isFocusVisible(a.target)&&P(!0),f&&f(a)},c={...n,color:i,component:y,focusVisible:L,underline:b,variant:T},j=z(c);return q.jsx(U,{color:i,className:e.clsx(j.root,l),classes:w,component:y,onBlur:D,onFocus:O,ref:t,ownerState:c,variant:T,...g,sx:[...x[i]===void 0?[{color:i}]:[],...Array.isArray(p)?p:[p]],style:{...g.style,...b==="always"&&i!=="inherit"&&!x[i]&&{"--Link-underlineColor":M({theme:s,ownerState:c})}}})});process.env.NODE_ENV!=="production"&&(k.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),e.PropTypes.string]),component:A.elementTypeAcceptingRef,onBlur:e.PropTypes.func,onFocus:e.PropTypes.func,style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TypographyClasses:e.PropTypes.object,underline:e.PropTypes.oneOf(["always","hover","none"]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),e.PropTypes.string])});exports.Link=k;exports.getLinkUtilityClass=C;exports.linkClasses=v;
|