@cgi-learning-hub/ui 1.3.3 → 1.3.4
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-BlKt7y1x.js +360 -0
- package/dist/Backdrop-vSE8W9jq.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
- package/dist/Card-Cnh4u4kb.cjs +1 -0
- package/dist/Card-mGRk1RuE.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
- package/dist/DatePicker-Dyf9Vhld.js +10845 -0
- package/dist/DatePicker-juzW4bLC.cjs +14 -0
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
- package/dist/Delete-BOQTx9ze.js +8 -0
- package/dist/Delete-DyzDL8-Y.cjs +1 -0
- package/dist/DialogContent-D1KFPXhr.js +602 -0
- package/dist/DialogContent-Dphl2SKX.cjs +1 -0
- package/dist/DialogTitle-AQ-YU9PH.js +134 -0
- package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
- package/dist/Divider-Bdp8beK-.cjs +1 -0
- package/dist/Divider-C0R1SUa4.js +296 -0
- package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
- package/dist/FormControlLabel-w-X91z27.js +261 -0
- package/dist/FormGroup-6NoANcYk.js +95 -0
- package/dist/FormGroup-D0zSGn42.cjs +1 -0
- package/dist/FormLabel-BkiH7wl7.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
- package/dist/Grow-DfACa72Q.cjs +1 -0
- package/dist/Grow-SW33sONG.js +193 -0
- package/dist/IconButton-DRs0xB4z.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
- package/dist/InputBase-Xfjv-RYp.cjs +3 -0
- package/dist/Link-Dmwt9wxb.js +266 -0
- package/dist/Link-Z_UCBvgV.cjs +1 -0
- package/dist/Menu-4U27Dst1.js +965 -0
- package/dist/Menu-DREdNbqu.cjs +7 -0
- package/dist/MenuItem-CN75Du-9.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
- package/dist/Modal-DWqBsogu.cjs +2 -0
- package/dist/Modal-D_mqYIr2.js +750 -0
- package/dist/Paper-CjMuucS5.cjs +2 -0
- package/dist/Paper-D973Ow-i.js +185 -0
- package/dist/Popper-B8oNZqtn.js +1407 -0
- package/dist/Popper-hzM0y1hA.cjs +4 -0
- package/dist/Portal-BKbBRbWN.js +86 -0
- package/dist/Portal-Bv2VRYHH.cjs +1 -0
- package/dist/Radio-BrzQH9pY.js +312 -0
- package/dist/Radio-DxbXYNhR.cjs +1 -0
- package/dist/Select-CL4E8NNL.cjs +3 -0
- package/dist/Select-CgAPAUTr.js +2602 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
- package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
- package/dist/Tabs-BNqwYd2G.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
- package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
- package/dist/Tooltip-Bdrv-e2a.js +720 -0
- package/dist/Tooltip-vg27N3PU.cjs +4 -0
- package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
- package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
- 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 +12 -12
- 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 +1 -0
- package/dist/components/index.es.js +277 -265
- 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 +378 -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-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
- package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
- package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.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 → identifier-Bn0tF6ls.js} +612 -608
- package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
- package/dist/index-BNojWn2E.js +2152 -0
- package/dist/index-C5dNuV-2.cjs +5 -0
- package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
- package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +277 -265
- 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-BPA1FjB4.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +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-BmrOFNz6.js +7 -0
- package/dist/refType-Dm84STBj.cjs +1 -0
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
- package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-CE_a8glN.js +391 -0
- package/dist/utils-CusX8Edy.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- 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/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/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- 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/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/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
import { H as V, I as $, N as v, n as l, L, G as P, P as o } from "./identifier-Bn0tF6ls.js";
|
|
3
|
+
import { u as j } from "./useTheme-L3EQmvnN.js";
|
|
4
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
5
|
+
import { s as F, u as N, c as R } from "./DefaultPropsProvider-xJkZOrdv.js";
|
|
6
|
+
import { m as M } from "./memoTheme-CMJVTZEg.js";
|
|
7
|
+
import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { T as U } from "./Typography-CUdlQxLM.js";
|
|
9
|
+
import { e as z } from "./elementTypeAcceptingRef-modXfN2G.js";
|
|
10
|
+
import { i as h } from "./isFocusVisible-CPZqtjv2.js";
|
|
11
|
+
function H(e) {
|
|
12
|
+
return V("MuiLink", e);
|
|
13
|
+
}
|
|
14
|
+
const E = $("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
|
|
15
|
+
theme: e,
|
|
16
|
+
ownerState: r
|
|
17
|
+
}) => {
|
|
18
|
+
const n = r.color, t = v(e, `palette.${n}`, !1) || r.color, s = v(e, `palette.${n}Channel`);
|
|
19
|
+
return "vars" in e && s ? `rgba(${s} / 0.4)` : l(t, 0.4);
|
|
20
|
+
}, k = {
|
|
21
|
+
primary: !0,
|
|
22
|
+
secondary: !0,
|
|
23
|
+
error: !0,
|
|
24
|
+
info: !0,
|
|
25
|
+
success: !0,
|
|
26
|
+
warning: !0,
|
|
27
|
+
textPrimary: !0,
|
|
28
|
+
textSecondary: !0,
|
|
29
|
+
textDisabled: !0
|
|
30
|
+
}, G = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
classes: r,
|
|
33
|
+
component: n,
|
|
34
|
+
focusVisible: t,
|
|
35
|
+
underline: s
|
|
36
|
+
} = e, c = {
|
|
37
|
+
root: ["root", `underline${L(s)}`, n === "button" && "button", t && "focusVisible"]
|
|
38
|
+
};
|
|
39
|
+
return R(c, H, r);
|
|
40
|
+
}, I = F(U, {
|
|
41
|
+
name: "MuiLink",
|
|
42
|
+
slot: "Root",
|
|
43
|
+
overridesResolver: (e, r) => {
|
|
44
|
+
const {
|
|
45
|
+
ownerState: n
|
|
46
|
+
} = e;
|
|
47
|
+
return [r.root, r[`underline${L(n.underline)}`], n.component === "button" && r.button];
|
|
48
|
+
}
|
|
49
|
+
})(M(({
|
|
50
|
+
theme: e
|
|
51
|
+
}) => ({
|
|
52
|
+
variants: [{
|
|
53
|
+
props: {
|
|
54
|
+
underline: "none"
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
textDecoration: "none"
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
props: {
|
|
61
|
+
underline: "hover"
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
"&:hover": {
|
|
66
|
+
textDecoration: "underline"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
props: {
|
|
71
|
+
underline: "always"
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
textDecoration: "underline",
|
|
75
|
+
"&:hover": {
|
|
76
|
+
textDecorationColor: "inherit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: ({
|
|
81
|
+
underline: r,
|
|
82
|
+
ownerState: n
|
|
83
|
+
}) => r === "always" && n.color !== "inherit",
|
|
84
|
+
style: {
|
|
85
|
+
textDecorationColor: "var(--Link-underlineColor)"
|
|
86
|
+
}
|
|
87
|
+
}, ...Object.entries(e.palette).filter(B()).map(([r]) => ({
|
|
88
|
+
props: {
|
|
89
|
+
underline: "always",
|
|
90
|
+
color: r
|
|
91
|
+
},
|
|
92
|
+
style: {
|
|
93
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette[r].mainChannel} / 0.4)` : l(e.palette[r].main, 0.4)
|
|
94
|
+
}
|
|
95
|
+
})), {
|
|
96
|
+
props: {
|
|
97
|
+
underline: "always",
|
|
98
|
+
color: "textPrimary"
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : l(e.palette.text.primary, 0.4)
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
props: {
|
|
105
|
+
underline: "always",
|
|
106
|
+
color: "textSecondary"
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.secondaryChannel} / 0.4)` : l(e.palette.text.secondary, 0.4)
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
props: {
|
|
113
|
+
underline: "always",
|
|
114
|
+
color: "textDisabled"
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
"--Link-underlineColor": (e.vars || e).palette.text.disabled
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
component: "button"
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
position: "relative",
|
|
125
|
+
WebkitTapHighlightColor: "transparent",
|
|
126
|
+
backgroundColor: "transparent",
|
|
127
|
+
// Reset default value
|
|
128
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
129
|
+
outline: 0,
|
|
130
|
+
border: 0,
|
|
131
|
+
margin: 0,
|
|
132
|
+
// Remove the margin in Safari
|
|
133
|
+
borderRadius: 0,
|
|
134
|
+
padding: 0,
|
|
135
|
+
// Remove the padding in Firefox
|
|
136
|
+
cursor: "pointer",
|
|
137
|
+
userSelect: "none",
|
|
138
|
+
verticalAlign: "middle",
|
|
139
|
+
MozAppearance: "none",
|
|
140
|
+
// Reset
|
|
141
|
+
WebkitAppearance: "none",
|
|
142
|
+
// Reset
|
|
143
|
+
"&::-moz-focus-inner": {
|
|
144
|
+
borderStyle: "none"
|
|
145
|
+
// Remove Firefox dotted outline.
|
|
146
|
+
},
|
|
147
|
+
[`&.${E.focusVisible}`]: {
|
|
148
|
+
outline: "auto"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}]
|
|
152
|
+
}))), _ = /* @__PURE__ */ C.forwardRef(function(r, n) {
|
|
153
|
+
const t = N({
|
|
154
|
+
props: r,
|
|
155
|
+
name: "MuiLink"
|
|
156
|
+
}), s = j(), {
|
|
157
|
+
className: c,
|
|
158
|
+
color: a = "primary",
|
|
159
|
+
component: d = "a",
|
|
160
|
+
onBlur: y,
|
|
161
|
+
onFocus: f,
|
|
162
|
+
TypographyClasses: w,
|
|
163
|
+
underline: m = "always",
|
|
164
|
+
variant: b = "inherit",
|
|
165
|
+
sx: u,
|
|
166
|
+
...g
|
|
167
|
+
} = t, [T, x] = C.useState(!1), D = (i) => {
|
|
168
|
+
h(i.target) || x(!1), y && y(i);
|
|
169
|
+
}, O = (i) => {
|
|
170
|
+
h(i.target) && x(!0), f && f(i);
|
|
171
|
+
}, p = {
|
|
172
|
+
...t,
|
|
173
|
+
color: a,
|
|
174
|
+
component: d,
|
|
175
|
+
focusVisible: T,
|
|
176
|
+
underline: m,
|
|
177
|
+
variant: b
|
|
178
|
+
}, S = G(p);
|
|
179
|
+
return /* @__PURE__ */ A(I, {
|
|
180
|
+
color: a,
|
|
181
|
+
className: P(S.root, c),
|
|
182
|
+
classes: w,
|
|
183
|
+
component: d,
|
|
184
|
+
onBlur: D,
|
|
185
|
+
onFocus: O,
|
|
186
|
+
ref: n,
|
|
187
|
+
ownerState: p,
|
|
188
|
+
variant: b,
|
|
189
|
+
...g,
|
|
190
|
+
sx: [...k[a] === void 0 ? [{
|
|
191
|
+
color: a
|
|
192
|
+
}] : [], ...Array.isArray(u) ? u : [u]],
|
|
193
|
+
style: {
|
|
194
|
+
...g.style,
|
|
195
|
+
...m === "always" && a !== "inherit" && !k[a] && {
|
|
196
|
+
"--Link-underlineColor": W({
|
|
197
|
+
theme: s,
|
|
198
|
+
ownerState: p
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
205
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
206
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
207
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
208
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
209
|
+
/**
|
|
210
|
+
* The content of the component.
|
|
211
|
+
*/
|
|
212
|
+
children: o.node,
|
|
213
|
+
/**
|
|
214
|
+
* Override or extend the styles applied to the component.
|
|
215
|
+
*/
|
|
216
|
+
classes: o.object,
|
|
217
|
+
/**
|
|
218
|
+
* @ignore
|
|
219
|
+
*/
|
|
220
|
+
className: o.string,
|
|
221
|
+
/**
|
|
222
|
+
* The color of the link.
|
|
223
|
+
* @default 'primary'
|
|
224
|
+
*/
|
|
225
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), o.string]),
|
|
226
|
+
/**
|
|
227
|
+
* The component used for the root node.
|
|
228
|
+
* Either a string to use a HTML element or a component.
|
|
229
|
+
*/
|
|
230
|
+
component: z,
|
|
231
|
+
/**
|
|
232
|
+
* @ignore
|
|
233
|
+
*/
|
|
234
|
+
onBlur: o.func,
|
|
235
|
+
/**
|
|
236
|
+
* @ignore
|
|
237
|
+
*/
|
|
238
|
+
onFocus: o.func,
|
|
239
|
+
/**
|
|
240
|
+
* @ignore
|
|
241
|
+
*/
|
|
242
|
+
style: o.object,
|
|
243
|
+
/**
|
|
244
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
245
|
+
*/
|
|
246
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
247
|
+
/**
|
|
248
|
+
* `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.
|
|
249
|
+
*/
|
|
250
|
+
TypographyClasses: o.object,
|
|
251
|
+
/**
|
|
252
|
+
* Controls when the link should have an underline.
|
|
253
|
+
* @default 'always'
|
|
254
|
+
*/
|
|
255
|
+
underline: o.oneOf(["always", "hover", "none"]),
|
|
256
|
+
/**
|
|
257
|
+
* Applies the theme typography styles.
|
|
258
|
+
* @default 'inherit'
|
|
259
|
+
*/
|
|
260
|
+
variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string])
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
_ as L,
|
|
264
|
+
H as g,
|
|
265
|
+
E as l
|
|
266
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const S=require("react"),e=require("./identifier-Dax8VlUh.cjs"),V=require("./useTheme-BIogn5Me.cjs"),q=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-Biv7NHew.cjs"),F=require("./memoTheme-BPA1FjB4.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),$=require("./Typography-BF9bdWxl.cjs"),A=require("./elementTypeAcceptingRef-5w32V5hP.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;
|