@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- 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 +28 -27
- 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 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- 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 +21 -22
- 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 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- 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 +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.es.js +276 -262
- 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 -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 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- 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 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- 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 +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- 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/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -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/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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 +140 -90
- 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 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- 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/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.cjs +0 -1
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { P as e,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { P as e, I as Fe, H as ke, G as ce, J as Be } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import { i as pe } from "./isHostComponent-kiaBvYVo.js";
|
|
4
|
+
import { f as He } from "./formControlState-vgaj2ksH.js";
|
|
5
|
+
import { u as Me, F as Pe } from "./useFormControl-CatNKXAi.js";
|
|
6
|
+
import { g as We } from "./index-B4GmPutS.js";
|
|
7
|
+
import { m as be } from "./memoTheme-o8RCKrNG.js";
|
|
8
|
+
import { i as De } from "./utils-DWqc1kRF.js";
|
|
9
|
+
import { jsxs as Z, jsx as B } from "react/jsx-runtime";
|
|
10
|
+
import { s as ye, u as Le, c as je } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
11
|
+
import { u as ge } from "./useForkRef-C_4o__cU.js";
|
|
12
|
+
import { u as Q, r as Ve } from "./useEnhancedEffect-DlS7O_-p.js";
|
|
13
|
+
import { o as fe } from "./ownerWindow-niciwP7I.js";
|
|
14
|
+
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
15
|
+
import { e as _e } from "./elementTypeAcceptingRef-HBfwF2vD.js";
|
|
16
|
+
import { c as X } from "./capitalize-NmHVRYy8.js";
|
|
12
17
|
function L(n) {
|
|
13
18
|
return parseInt(n, 10) || 0;
|
|
14
19
|
}
|
|
15
|
-
const
|
|
20
|
+
const $e = {
|
|
16
21
|
shadow: {
|
|
17
22
|
// Visibility needed to hide the extra text area on iPads
|
|
18
23
|
visibility: "hidden",
|
|
@@ -27,7 +32,7 @@ const Ke = {
|
|
|
27
32
|
transform: "translateZ(0)"
|
|
28
33
|
}
|
|
29
34
|
};
|
|
30
|
-
function
|
|
35
|
+
function Ge(n) {
|
|
31
36
|
return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflowing;
|
|
32
37
|
}
|
|
33
38
|
const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
@@ -37,11 +42,11 @@ const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
|
37
42
|
minRows: c = 1,
|
|
38
43
|
style: O,
|
|
39
44
|
value: T,
|
|
40
|
-
...
|
|
45
|
+
...H
|
|
41
46
|
} = o, {
|
|
42
47
|
current: S
|
|
43
48
|
} = s.useRef(T != null), h = s.useRef(null), E = ge(t, h), b = s.useRef(null), C = s.useRef(null), v = s.useCallback(() => {
|
|
44
|
-
const l = h.current, r =
|
|
49
|
+
const l = h.current, r = fe(l).getComputedStyle(l);
|
|
45
50
|
if (r.width === "0px")
|
|
46
51
|
return {
|
|
47
52
|
outerHeightStyle: 0,
|
|
@@ -55,19 +60,19 @@ const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
|
55
60
|
const A = p.scrollHeight;
|
|
56
61
|
let u = N;
|
|
57
62
|
c && (u = Math.max(Number(c) * A, u)), f && (u = Math.min(Number(f) * A, u)), u = Math.max(u, A);
|
|
58
|
-
const
|
|
63
|
+
const M = u + (z === "border-box" ? R + g : 0), P = Math.abs(u - N) <= 1;
|
|
59
64
|
return {
|
|
60
|
-
outerHeightStyle:
|
|
65
|
+
outerHeightStyle: M,
|
|
61
66
|
overflowing: P
|
|
62
67
|
};
|
|
63
68
|
}, [f, c, o.placeholder]), x = s.useCallback(() => {
|
|
64
69
|
const l = v();
|
|
65
|
-
if (
|
|
70
|
+
if (Ge(l))
|
|
66
71
|
return;
|
|
67
72
|
const y = l.outerHeightStyle, r = h.current;
|
|
68
73
|
b.current !== y && (b.current = y, r.style.height = `${y}px`), r.style.overflow = l.overflowing ? "hidden" : "";
|
|
69
74
|
}, [v]);
|
|
70
|
-
|
|
75
|
+
Q(() => {
|
|
71
76
|
const l = () => {
|
|
72
77
|
x();
|
|
73
78
|
};
|
|
@@ -76,26 +81,26 @@ const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
|
76
81
|
cancelAnimationFrame(y), y = requestAnimationFrame(() => {
|
|
77
82
|
l();
|
|
78
83
|
});
|
|
79
|
-
}, p =
|
|
84
|
+
}, p = Ue(l), z = h.current, R = fe(z);
|
|
80
85
|
R.addEventListener("resize", p);
|
|
81
86
|
let g;
|
|
82
87
|
return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r : l), g.observe(z)), () => {
|
|
83
88
|
p.clear(), cancelAnimationFrame(y), R.removeEventListener("resize", p), g && g.disconnect();
|
|
84
89
|
};
|
|
85
|
-
}, [v, x]),
|
|
90
|
+
}, [v, x]), Q(() => {
|
|
86
91
|
x();
|
|
87
92
|
});
|
|
88
93
|
const j = (l) => {
|
|
89
94
|
S || x(), d && d(l);
|
|
90
95
|
};
|
|
91
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ Z(s.Fragment, {
|
|
92
97
|
children: [/* @__PURE__ */ B("textarea", {
|
|
93
98
|
value: T,
|
|
94
99
|
onChange: j,
|
|
95
100
|
ref: E,
|
|
96
101
|
rows: c,
|
|
97
102
|
style: O,
|
|
98
|
-
...
|
|
103
|
+
...H
|
|
99
104
|
}), /* @__PURE__ */ B("textarea", {
|
|
100
105
|
"aria-hidden": !0,
|
|
101
106
|
className: o.className,
|
|
@@ -103,7 +108,7 @@ const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
|
103
108
|
ref: C,
|
|
104
109
|
tabIndex: -1,
|
|
105
110
|
style: {
|
|
106
|
-
|
|
111
|
+
...$e.shadow,
|
|
107
112
|
...O,
|
|
108
113
|
paddingTop: 0,
|
|
109
114
|
paddingBottom: 0
|
|
@@ -146,19 +151,16 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
|
|
|
146
151
|
*/
|
|
147
152
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
148
153
|
});
|
|
149
|
-
function
|
|
150
|
-
return typeof n == "string";
|
|
151
|
-
}
|
|
152
|
-
function qe(n) {
|
|
154
|
+
function Ke(n) {
|
|
153
155
|
return ke("MuiInputBase", n);
|
|
154
156
|
}
|
|
155
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"]);
|
|
156
158
|
var me;
|
|
157
|
-
const
|
|
159
|
+
const qe = (n, o) => {
|
|
158
160
|
const {
|
|
159
161
|
ownerState: t
|
|
160
162
|
} = n;
|
|
161
|
-
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${
|
|
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${X(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
|
|
162
164
|
}, Ye = (n, o) => {
|
|
163
165
|
const {
|
|
164
166
|
ownerState: t
|
|
@@ -173,7 +175,7 @@ const Ge = (n, o) => {
|
|
|
173
175
|
endAdornment: c,
|
|
174
176
|
focused: O,
|
|
175
177
|
formControl: T,
|
|
176
|
-
fullWidth:
|
|
178
|
+
fullWidth: H,
|
|
177
179
|
hiddenLabel: S,
|
|
178
180
|
multiline: h,
|
|
179
181
|
readOnly: E,
|
|
@@ -181,14 +183,14 @@ const Ge = (n, o) => {
|
|
|
181
183
|
startAdornment: C,
|
|
182
184
|
type: v
|
|
183
185
|
} = n, x = {
|
|
184
|
-
root: ["root", `color${
|
|
186
|
+
root: ["root", `color${X(t)}`, d && "disabled", f && "error", H && "fullWidth", O && "focused", T && "formControl", b && b !== "medium" && `size${X(b)}`, h && "multiline", C && "adornedStart", c && "adornedEnd", S && "hiddenLabel", E && "readOnly"],
|
|
185
187
|
input: ["input", d && "disabled", v === "search" && "inputTypeSearch", h && "inputMultiline", b === "small" && "inputSizeSmall", S && "inputHiddenLabel", C && "inputAdornedStart", c && "inputAdornedEnd", E && "readOnly"]
|
|
186
188
|
};
|
|
187
|
-
return je(x,
|
|
189
|
+
return je(x, Ke, o);
|
|
188
190
|
}, Ze = ye("div", {
|
|
189
191
|
name: "MuiInputBase",
|
|
190
192
|
slot: "Root",
|
|
191
|
-
overridesResolver:
|
|
193
|
+
overridesResolver: qe
|
|
192
194
|
})(be(({
|
|
193
195
|
theme: n
|
|
194
196
|
}) => ({
|
|
@@ -344,7 +346,7 @@ const Ge = (n, o) => {
|
|
|
344
346
|
}
|
|
345
347
|
}]
|
|
346
348
|
};
|
|
347
|
-
})), he =
|
|
349
|
+
})), he = We({
|
|
348
350
|
"@keyframes mui-auto-fill": {
|
|
349
351
|
from: {
|
|
350
352
|
display: "block"
|
|
@@ -364,7 +366,7 @@ const Ge = (n, o) => {
|
|
|
364
366
|
autoComplete: c,
|
|
365
367
|
autoFocus: O,
|
|
366
368
|
className: T,
|
|
367
|
-
color:
|
|
369
|
+
color: H,
|
|
368
370
|
components: S = {},
|
|
369
371
|
componentsProps: h = {},
|
|
370
372
|
defaultValue: E,
|
|
@@ -383,7 +385,7 @@ const Ge = (n, o) => {
|
|
|
383
385
|
multiline: N = !1,
|
|
384
386
|
name: A,
|
|
385
387
|
onBlur: u,
|
|
386
|
-
onChange:
|
|
388
|
+
onChange: M,
|
|
387
389
|
onClick: P,
|
|
388
390
|
onFocus: oe,
|
|
389
391
|
onKeyDown: ve,
|
|
@@ -404,31 +406,31 @@ const Ge = (n, o) => {
|
|
|
404
406
|
} = s.useRef(D != null), I = s.useRef(), Oe = s.useCallback((i) => {
|
|
405
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(`
|
|
406
408
|
`));
|
|
407
|
-
}, []), Te = ge(I, p, r.ref, Oe), [_,
|
|
409
|
+
}, []), Te = ge(I, p, r.ref, Oe), [_, $] = s.useState(!1), a = Me();
|
|
408
410
|
process.env.NODE_ENV !== "production" && s.useEffect(() => {
|
|
409
411
|
if (a)
|
|
410
412
|
return a.registerEffect();
|
|
411
413
|
}, [a]);
|
|
412
|
-
const m =
|
|
414
|
+
const m = He({
|
|
413
415
|
props: d,
|
|
414
416
|
muiFormControl: a,
|
|
415
417
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
416
418
|
});
|
|
417
419
|
m.focused = a ? a.focused : _, s.useEffect(() => {
|
|
418
|
-
!a && b && _ && (
|
|
420
|
+
!a && b && _ && ($(!1), u && u());
|
|
419
421
|
}, [a, b, _, u]);
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
}, [
|
|
423
|
-
|
|
422
|
+
const G = a && a.onFilled, K = a && a.onEmpty, k = s.useCallback((i) => {
|
|
423
|
+
De(i) ? G && G() : K && K();
|
|
424
|
+
}, [G, K]);
|
|
425
|
+
Q(() => {
|
|
424
426
|
U && k({
|
|
425
427
|
value: D
|
|
426
428
|
});
|
|
427
429
|
}, [D, k, U]);
|
|
428
430
|
const Ee = (i) => {
|
|
429
|
-
oe && oe(i), r.onFocus && r.onFocus(i), a && a.onFocus ? a.onFocus(i) :
|
|
431
|
+
oe && oe(i), r.onFocus && r.onFocus(i), a && a.onFocus ? a.onFocus(i) : $(!0);
|
|
430
432
|
}, Ie = (i) => {
|
|
431
|
-
u && u(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) :
|
|
433
|
+
u && u(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) : $(!1);
|
|
432
434
|
}, ze = (i, ...ue) => {
|
|
433
435
|
if (!U) {
|
|
434
436
|
const de = i.target || I.current;
|
|
@@ -438,7 +440,7 @@ const Ge = (n, o) => {
|
|
|
438
440
|
value: de.value
|
|
439
441
|
});
|
|
440
442
|
}
|
|
441
|
-
r.onChange && r.onChange(i, ...ue),
|
|
443
|
+
r.onChange && r.onChange(i, ...ue), M && M(i, ...ue);
|
|
442
444
|
};
|
|
443
445
|
s.useEffect(() => {
|
|
444
446
|
k(I.current);
|
|
@@ -446,8 +448,8 @@ const Ge = (n, o) => {
|
|
|
446
448
|
const Ne = (i) => {
|
|
447
449
|
I.current && i.currentTarget === i.target && I.current.focus(), P && P(i);
|
|
448
450
|
};
|
|
449
|
-
let
|
|
450
|
-
N &&
|
|
451
|
+
let q = y, w = r;
|
|
452
|
+
N && q === "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 = {
|
|
451
453
|
type: void 0,
|
|
452
454
|
minRows: W,
|
|
453
455
|
maxRows: W,
|
|
@@ -457,7 +459,7 @@ const Ge = (n, o) => {
|
|
|
457
459
|
maxRows: R,
|
|
458
460
|
minRows: g,
|
|
459
461
|
...w
|
|
460
|
-
},
|
|
462
|
+
}, q = we);
|
|
461
463
|
const Ae = (i) => {
|
|
462
464
|
k(i.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
463
465
|
value: "x"
|
|
@@ -484,22 +486,22 @@ const Ge = (n, o) => {
|
|
|
484
486
|
return w = {
|
|
485
487
|
...w,
|
|
486
488
|
...te.input ?? h.input
|
|
487
|
-
}, /* @__PURE__ */
|
|
489
|
+
}, /* @__PURE__ */ Z(s.Fragment, {
|
|
488
490
|
children: [!C && typeof he == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
489
491
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
490
|
-
(me || (me = /* @__PURE__ */ B(he, {}))), /* @__PURE__ */
|
|
492
|
+
(me || (me = /* @__PURE__ */ B(he, {}))), /* @__PURE__ */ Z(se, {
|
|
491
493
|
...J,
|
|
492
494
|
ref: t,
|
|
493
495
|
onClick: Ne,
|
|
494
496
|
...Re,
|
|
495
|
-
...!
|
|
497
|
+
...!pe(se) && {
|
|
496
498
|
ownerState: {
|
|
497
499
|
...Y,
|
|
498
500
|
...J.ownerState
|
|
499
501
|
}
|
|
500
502
|
},
|
|
501
503
|
className: ce(ae.root, J.className, T, V && "MuiInputBase-readOnly"),
|
|
502
|
-
children: [F, /* @__PURE__ */ B(
|
|
504
|
+
children: [F, /* @__PURE__ */ B(Pe.Provider, {
|
|
503
505
|
value: null,
|
|
504
506
|
children: /* @__PURE__ */ B(le, {
|
|
505
507
|
"aria-invalid": m.error,
|
|
@@ -520,8 +522,8 @@ const Ge = (n, o) => {
|
|
|
520
522
|
onKeyUp: Se,
|
|
521
523
|
type: ie,
|
|
522
524
|
...w,
|
|
523
|
-
...!
|
|
524
|
-
as:
|
|
525
|
+
...!pe(le) && {
|
|
526
|
+
as: q,
|
|
525
527
|
ownerState: {
|
|
526
528
|
...Y,
|
|
527
529
|
...w.ownerState
|
|
@@ -635,7 +637,7 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
635
637
|
* Either a string to use a HTML element or a component.
|
|
636
638
|
* @default 'input'
|
|
637
639
|
*/
|
|
638
|
-
inputComponent:
|
|
640
|
+
inputComponent: _e,
|
|
639
641
|
/**
|
|
640
642
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
641
643
|
* @default {}
|
|
@@ -644,7 +646,7 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
644
646
|
/**
|
|
645
647
|
* Pass a ref to the `input` element.
|
|
646
648
|
*/
|
|
647
|
-
inputRef:
|
|
649
|
+
inputRef: Ve,
|
|
648
650
|
/**
|
|
649
651
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
650
652
|
* FormControl.
|
|
@@ -773,7 +775,6 @@ export {
|
|
|
773
775
|
Ze as a,
|
|
774
776
|
Qe as b,
|
|
775
777
|
Ye as c,
|
|
776
|
-
fe as d,
|
|
777
778
|
ee as i,
|
|
778
|
-
|
|
779
|
+
qe as r
|
|
779
780
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const V=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),q=require("./useTheme-B1YEBlI0.cjs"),F=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),R=require("./memoTheme-D99chbOP.cjs"),$=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),A=require("./Typography-B6KFjCtE.cjs"),x=require("./capitalize-DASFtB-F.cjs"),N=require("./elementTypeAcceptingRef-Cz_FeG92.cjs"),m=require("./isFocusVisible-DlSijby6.cjs");function z(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=z(V);function v(r){return e.generateUtilityClass("MuiLink",r)}const k=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)},C={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},U=r=>{const{classes:o,component:t,focusVisible:n,underline:s}=r,l={root:["root",`underline${x.capitalize(s)}`,t==="button"&&"button",n&&"focusVisible"]};return u.composeClasses(l,v,o)},B=u.styled(A.Typography,{name:"MuiLink",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:t}=r;return[o.root,o[`underline${x.capitalize(t.underline)}`],t.component==="button"&&o.button]}})(R.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($.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"},[`&.${k.focusVisible}`]:{outline:"auto"}}}]}))),w=h.forwardRef(function(o,t){const n=u.useDefaultProps({props:o,name:"MuiLink"}),s=q.useTheme(),{className:l,color:i="primary",component:y="a",onBlur:d,onFocus:f,TypographyClasses:L,underline:b="always",variant:T="inherit",sx:p,...g}=n,[D,P]=h.useState(!1),O=a=>{m.isFocusVisible(a.target)||P(!1),d&&d(a)},j=a=>{m.isFocusVisible(a.target)&&P(!0),f&&f(a)},c={...n,color:i,component:y,focusVisible:D,underline:b,variant:T},S=U(c);return F.jsx(B,{color:i,className:e.clsx(S.root,l),classes:L,component:y,onBlur:O,onFocus:j,ref:t,ownerState:c,variant:T,...g,sx:[...C[i]===void 0?[{color:i}]:[],...Array.isArray(p)?p:[p]],style:{...g.style,...b==="always"&&i!=="inherit"&&!C[i]&&{"--Link-underlineColor":M({theme:s,ownerState:c})}}})});process.env.NODE_ENV!=="production"&&(w.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:N.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=w;exports.getLinkUtilityClass=v;exports.linkClasses=k;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
import { H as V, I as $, N as v, n as l, G as P, P as o } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import { u as j } from "./useTheme-BXzyKigM.js";
|
|
4
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
5
|
+
import { s as F, u as N, c as R } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
6
|
+
import { m as M } from "./memoTheme-o8RCKrNG.js";
|
|
7
|
+
import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { T as U } from "./Typography-DWXYj92v.js";
|
|
9
|
+
import { c as w } from "./capitalize-NmHVRYy8.js";
|
|
10
|
+
import { e as z } from "./elementTypeAcceptingRef-HBfwF2vD.js";
|
|
11
|
+
import { i as h } from "./isFocusVisible-CPZqtjv2.js";
|
|
12
|
+
function H(e) {
|
|
13
|
+
return V("MuiLink", e);
|
|
14
|
+
}
|
|
15
|
+
const E = $("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
|
|
16
|
+
theme: e,
|
|
17
|
+
ownerState: r
|
|
18
|
+
}) => {
|
|
19
|
+
const n = r.color, t = v(e, `palette.${n}`, !1) || r.color, s = v(e, `palette.${n}Channel`);
|
|
20
|
+
return "vars" in e && s ? `rgba(${s} / 0.4)` : l(t, 0.4);
|
|
21
|
+
}, k = {
|
|
22
|
+
primary: !0,
|
|
23
|
+
secondary: !0,
|
|
24
|
+
error: !0,
|
|
25
|
+
info: !0,
|
|
26
|
+
success: !0,
|
|
27
|
+
warning: !0,
|
|
28
|
+
textPrimary: !0,
|
|
29
|
+
textSecondary: !0,
|
|
30
|
+
textDisabled: !0
|
|
31
|
+
}, G = (e) => {
|
|
32
|
+
const {
|
|
33
|
+
classes: r,
|
|
34
|
+
component: n,
|
|
35
|
+
focusVisible: t,
|
|
36
|
+
underline: s
|
|
37
|
+
} = e, c = {
|
|
38
|
+
root: ["root", `underline${w(s)}`, n === "button" && "button", t && "focusVisible"]
|
|
39
|
+
};
|
|
40
|
+
return R(c, H, r);
|
|
41
|
+
}, I = F(U, {
|
|
42
|
+
name: "MuiLink",
|
|
43
|
+
slot: "Root",
|
|
44
|
+
overridesResolver: (e, r) => {
|
|
45
|
+
const {
|
|
46
|
+
ownerState: n
|
|
47
|
+
} = e;
|
|
48
|
+
return [r.root, r[`underline${w(n.underline)}`], n.component === "button" && r.button];
|
|
49
|
+
}
|
|
50
|
+
})(M(({
|
|
51
|
+
theme: e
|
|
52
|
+
}) => ({
|
|
53
|
+
variants: [{
|
|
54
|
+
props: {
|
|
55
|
+
underline: "none"
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
textDecoration: "none"
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
props: {
|
|
62
|
+
underline: "hover"
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
textDecoration: "none",
|
|
66
|
+
"&:hover": {
|
|
67
|
+
textDecoration: "underline"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
underline: "always"
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
textDecoration: "underline",
|
|
76
|
+
"&:hover": {
|
|
77
|
+
textDecorationColor: "inherit"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
props: ({
|
|
82
|
+
underline: r,
|
|
83
|
+
ownerState: n
|
|
84
|
+
}) => r === "always" && n.color !== "inherit",
|
|
85
|
+
style: {
|
|
86
|
+
textDecorationColor: "var(--Link-underlineColor)"
|
|
87
|
+
}
|
|
88
|
+
}, ...Object.entries(e.palette).filter(B()).map(([r]) => ({
|
|
89
|
+
props: {
|
|
90
|
+
underline: "always",
|
|
91
|
+
color: r
|
|
92
|
+
},
|
|
93
|
+
style: {
|
|
94
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette[r].mainChannel} / 0.4)` : l(e.palette[r].main, 0.4)
|
|
95
|
+
}
|
|
96
|
+
})), {
|
|
97
|
+
props: {
|
|
98
|
+
underline: "always",
|
|
99
|
+
color: "textPrimary"
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : l(e.palette.text.primary, 0.4)
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
props: {
|
|
106
|
+
underline: "always",
|
|
107
|
+
color: "textSecondary"
|
|
108
|
+
},
|
|
109
|
+
style: {
|
|
110
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.secondaryChannel} / 0.4)` : l(e.palette.text.secondary, 0.4)
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
props: {
|
|
114
|
+
underline: "always",
|
|
115
|
+
color: "textDisabled"
|
|
116
|
+
},
|
|
117
|
+
style: {
|
|
118
|
+
"--Link-underlineColor": (e.vars || e).palette.text.disabled
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
props: {
|
|
122
|
+
component: "button"
|
|
123
|
+
},
|
|
124
|
+
style: {
|
|
125
|
+
position: "relative",
|
|
126
|
+
WebkitTapHighlightColor: "transparent",
|
|
127
|
+
backgroundColor: "transparent",
|
|
128
|
+
// Reset default value
|
|
129
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
130
|
+
outline: 0,
|
|
131
|
+
border: 0,
|
|
132
|
+
margin: 0,
|
|
133
|
+
// Remove the margin in Safari
|
|
134
|
+
borderRadius: 0,
|
|
135
|
+
padding: 0,
|
|
136
|
+
// Remove the padding in Firefox
|
|
137
|
+
cursor: "pointer",
|
|
138
|
+
userSelect: "none",
|
|
139
|
+
verticalAlign: "middle",
|
|
140
|
+
MozAppearance: "none",
|
|
141
|
+
// Reset
|
|
142
|
+
WebkitAppearance: "none",
|
|
143
|
+
// Reset
|
|
144
|
+
"&::-moz-focus-inner": {
|
|
145
|
+
borderStyle: "none"
|
|
146
|
+
// Remove Firefox dotted outline.
|
|
147
|
+
},
|
|
148
|
+
[`&.${E.focusVisible}`]: {
|
|
149
|
+
outline: "auto"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}]
|
|
153
|
+
}))), _ = /* @__PURE__ */ C.forwardRef(function(r, n) {
|
|
154
|
+
const t = N({
|
|
155
|
+
props: r,
|
|
156
|
+
name: "MuiLink"
|
|
157
|
+
}), s = j(), {
|
|
158
|
+
className: c,
|
|
159
|
+
color: a = "primary",
|
|
160
|
+
component: d = "a",
|
|
161
|
+
onBlur: y,
|
|
162
|
+
onFocus: f,
|
|
163
|
+
TypographyClasses: L,
|
|
164
|
+
underline: m = "always",
|
|
165
|
+
variant: b = "inherit",
|
|
166
|
+
sx: u,
|
|
167
|
+
...g
|
|
168
|
+
} = t, [T, x] = C.useState(!1), D = (i) => {
|
|
169
|
+
h(i.target) || x(!1), y && y(i);
|
|
170
|
+
}, O = (i) => {
|
|
171
|
+
h(i.target) && x(!0), f && f(i);
|
|
172
|
+
}, p = {
|
|
173
|
+
...t,
|
|
174
|
+
color: a,
|
|
175
|
+
component: d,
|
|
176
|
+
focusVisible: T,
|
|
177
|
+
underline: m,
|
|
178
|
+
variant: b
|
|
179
|
+
}, S = G(p);
|
|
180
|
+
return /* @__PURE__ */ A(I, {
|
|
181
|
+
color: a,
|
|
182
|
+
className: P(S.root, c),
|
|
183
|
+
classes: L,
|
|
184
|
+
component: d,
|
|
185
|
+
onBlur: D,
|
|
186
|
+
onFocus: O,
|
|
187
|
+
ref: n,
|
|
188
|
+
ownerState: p,
|
|
189
|
+
variant: b,
|
|
190
|
+
...g,
|
|
191
|
+
sx: [...k[a] === void 0 ? [{
|
|
192
|
+
color: a
|
|
193
|
+
}] : [], ...Array.isArray(u) ? u : [u]],
|
|
194
|
+
style: {
|
|
195
|
+
...g.style,
|
|
196
|
+
...m === "always" && a !== "inherit" && !k[a] && {
|
|
197
|
+
"--Link-underlineColor": W({
|
|
198
|
+
theme: s,
|
|
199
|
+
ownerState: p
|
|
200
|
+
})
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
206
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
207
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
208
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
209
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
210
|
+
/**
|
|
211
|
+
* The content of the component.
|
|
212
|
+
*/
|
|
213
|
+
children: o.node,
|
|
214
|
+
/**
|
|
215
|
+
* Override or extend the styles applied to the component.
|
|
216
|
+
*/
|
|
217
|
+
classes: o.object,
|
|
218
|
+
/**
|
|
219
|
+
* @ignore
|
|
220
|
+
*/
|
|
221
|
+
className: o.string,
|
|
222
|
+
/**
|
|
223
|
+
* The color of the link.
|
|
224
|
+
* @default 'primary'
|
|
225
|
+
*/
|
|
226
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), o.string]),
|
|
227
|
+
/**
|
|
228
|
+
* The component used for the root node.
|
|
229
|
+
* Either a string to use a HTML element or a component.
|
|
230
|
+
*/
|
|
231
|
+
component: z,
|
|
232
|
+
/**
|
|
233
|
+
* @ignore
|
|
234
|
+
*/
|
|
235
|
+
onBlur: o.func,
|
|
236
|
+
/**
|
|
237
|
+
* @ignore
|
|
238
|
+
*/
|
|
239
|
+
onFocus: o.func,
|
|
240
|
+
/**
|
|
241
|
+
* @ignore
|
|
242
|
+
*/
|
|
243
|
+
style: o.object,
|
|
244
|
+
/**
|
|
245
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
246
|
+
*/
|
|
247
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
248
|
+
/**
|
|
249
|
+
* `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.
|
|
250
|
+
*/
|
|
251
|
+
TypographyClasses: o.object,
|
|
252
|
+
/**
|
|
253
|
+
* Controls when the link should have an underline.
|
|
254
|
+
* @default 'always'
|
|
255
|
+
*/
|
|
256
|
+
underline: o.oneOf(["always", "hover", "none"]),
|
|
257
|
+
/**
|
|
258
|
+
* Applies the theme typography styles.
|
|
259
|
+
* @default 'inherit'
|
|
260
|
+
*/
|
|
261
|
+
variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string])
|
|
262
|
+
});
|
|
263
|
+
export {
|
|
264
|
+
_ as L,
|
|
265
|
+
H as g,
|
|
266
|
+
E as l
|
|
267
|
+
};
|