@cgi-learning-hub/ui 1.3.5-dev.1736345385 → 1.3.5
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-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-B78NPr0F.js → Backdrop-DcDd6WZF.js} +73 -70
- package/dist/{Box-BzbXlIpa.js → Box-Byz2BwGf.js} +3 -3
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-By0vfP8J.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-ZtXnS9gg.js → ButtonBase-DAWDecOk.js} +277 -277
- package/dist/{Card-CQBb4UMy.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-CWN2YKNQ.js → Checkbox-8Rhxpkjl.js} +19 -18
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-B8D0BpDv.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-D5Rf5NAr.js → DatePicker-BS1OatwQ.js} +2245 -2256
- package/dist/{DefaultPropsProvider-DS3RzjuS.cjs → DefaultPropsProvider-3KMGupjb.cjs} +3 -3
- package/dist/{DefaultPropsProvider-DEufUd_C.js → DefaultPropsProvider-CvJPQJmL.js} +20 -21
- package/dist/{Delete-DwpFA0q9.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DV3Q-OXQ.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/{Dialog-CEC-r5SR.js → Dialog-D_lS4J_M.js} +16 -15
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/{DialogContent-CmsuCpdK.js → DialogContent-uc65XOEU.js} +3 -3
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-CAsdh55l.js → DialogTitle-C8JOi-rq.js} +5 -5
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-D8G4fS_W.js → Divider-KO-E6nU8.js} +4 -4
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-0Z4FgiQi.js → FormControlLabel-BmrKQtQA.js} +13 -12
- package/dist/{FormGroup-B6BQaLl5.js → FormGroup-CbczEc6e.js} +2 -2
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-BljR05I0.js → FormLabel-CfR4bb21.js} +83 -80
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-BknJanej.js → Grow-CQVPAYvp.js} +34 -37
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-C6hPeqXq.js → IconButton-CekuyD4r.js} +9 -8
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-DYe9bZdy.js → InputAdornment-iU5YnveW.js} +15 -15
- package/dist/{InputBase-bIxQpDEw.js → InputBase-BJy3wwFB.js} +24 -23
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-69Y2GGzK.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-CrLJY61G.js → Menu-C7tKmcAh.js} +27 -26
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-i8U9J9Ds.js → MenuItem-j8luVUcX.js} +6 -6
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-Airm8V-9.js → Modal-brWBFdK7.js} +81 -82
- package/dist/{Paper-zmG6CtmU.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-CQ0ZGqya.js → Popper-DFZ_gRev.js} +5 -5
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BSNCqu7q.js → Portal-JEwcozmp.js} +39 -34
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-DAKlrqC8.js → Radio-DGhot3Cd.js} +16 -15
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-B6NmIC6a.js → Select-DmssuG5M.js} +416 -424
- package/dist/{Stack-LOzokt50.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CXvx1DtF.js → SwitchBase-Dlth5_F7.js} +23 -22
- package/dist/{TableSortLabel-C4rUHuBk.js → TableSortLabel-BsgRD4k4.js} +1706 -1808
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-DFlFghRY.js → Tabs-CYbeTnJk.js} +115 -113
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-B9Jog6CY.js → TextField-Cri5Gxa7.js} +20 -21
- package/dist/{Tooltip-zyIjqlzt.js → Tooltip-BhAHhzKz.js} +31 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-DeEwslc2.js → Typography-DBwTr_ix.js} +39 -38
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +140 -103
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/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 +7 -7
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/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 +31 -31
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +4 -4
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +20 -19
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +6 -6
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-DCcHNe8S.js → createSvgIcon-C8nGcfF4.js} +41 -40
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-BIQl1sXf.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-C9ErcCVk.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-BtWdisVp.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-DuQ8Gjnk.js → generateUtilityClasses-Bssl7BA_.js} +811 -781
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CvvRovRe.js → index-BCnPLuqJ.js} +4 -4
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BrVfbiqv.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +31 -31
- package/dist/{memoTheme-BBurdur9.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-BX806g-H.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-BsjDgxuc.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/{refType-Bj5oVmPL.js → refType-DKYKROQk.js} +1 -1
- package/dist/useSlot-BTpHG6jf.js +50 -0
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/{index-Bh3yiNTb.js → useSlotProps-B31YQlzb.js} +26 -26
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-Btccn2RE.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-DkiiJVq2.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-SHbptCB5.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-H1IpEt-K.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/{utils-CAhqvD6J.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +9 -9
- package/dist/Backdrop-CGpJR5Hl.cjs +0 -1
- package/dist/Box-DjTF7J_q.cjs +0 -1
- package/dist/Button-D3qGoavT.cjs +0 -1
- package/dist/ButtonBase-CL4z-tXi.cjs +0 -74
- package/dist/Card-DVvNw_iY.cjs +0 -1
- package/dist/Checkbox-V6OQIwlV.cjs +0 -1
- package/dist/CircularProgress-Cgy3S9U3.cjs +0 -28
- package/dist/DatePicker-BPbdIoL9.cjs +0 -14
- package/dist/Dialog-BydVKebY.cjs +0 -1
- package/dist/DialogContent-BK2ayZAZ.cjs +0 -1
- package/dist/DialogTitle-BOT7MPXD.cjs +0 -1
- package/dist/Divider-tJEWvRjW.cjs +0 -1
- package/dist/FormControlLabel-B3aVcND9.cjs +0 -1
- package/dist/FormGroup-CaIWje6a.cjs +0 -1
- package/dist/FormLabel-cfHljFCc.cjs +0 -2
- package/dist/Grow-CTl1xcRO.cjs +0 -1
- package/dist/IconButton-DLqUtTTS.cjs +0 -2
- package/dist/InputAdornment-C-w19sIO.cjs +0 -1
- package/dist/InputBase-BNmBX1sj.cjs +0 -3
- package/dist/Link-CbFN--su.cjs +0 -1
- package/dist/Menu-CDKB-4vE.cjs +0 -7
- package/dist/MenuItem-Cz_afi4Z.cjs +0 -1
- package/dist/Modal-CAWPr5pr.cjs +0 -2
- package/dist/Paper-D7GaBTFY.cjs +0 -2
- package/dist/Popper-PxC5lBvF.cjs +0 -4
- package/dist/Portal-Cw7h9YXi.cjs +0 -1
- package/dist/Radio-D8JzkZ7R.cjs +0 -1
- package/dist/Select-D3AUyBzT.cjs +0 -3
- package/dist/Stack-ChAD7MBi.cjs +0 -1
- package/dist/SwitchBase-C9eGMRmU.cjs +0 -1
- package/dist/TableSortLabel-BJ0u2uA5.cjs +0 -98
- package/dist/Tabs-CSXp7psk.cjs +0 -4
- package/dist/TextField-dzDYEheV.cjs +0 -1
- package/dist/Tooltip-Dxitr7Ef.cjs +0 -4
- package/dist/Typography-Bwmxx4FZ.cjs +0 -1
- package/dist/createSvgIcon-B-TuJjUa.cjs +0 -1
- package/dist/dividerClasses-gUm5VAyT.cjs +0 -1
- package/dist/elementTypeAcceptingRef-BpVcc71P.cjs +0 -1
- package/dist/extendSxProp-RlEfz15o.cjs +0 -1
- package/dist/identifier-wZ6XDHde.cjs +0 -59
- package/dist/index-BtBEUHyX.cjs +0 -5
- package/dist/index-Cwbb61M9.cjs +0 -1
- package/dist/index-DGoTWEZ6.cjs +0 -1
- package/dist/refType-CqcE23ld.cjs +0 -1
- package/dist/resolveComponentProps-CwoUNybl.cjs +0 -1
- package/dist/useSlot-CcIPcgkB.cjs +0 -1
- package/dist/useSlot-D3Bt2dZB.js +0 -44
- package/dist/useTheme-C7xxleiU.cjs +0 -1
- package/dist/useTheme-CVDdFPAV.js +0 -11
- package/dist/useTheme-DZ8a53P0.cjs +0 -1
- package/dist/useThemeProps-BZX2pbh5.cjs +0 -1
- package/dist/utils-DWiPKWpw.cjs +0 -1
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Oe = Object.defineProperty;
|
|
2
|
+
var ke = (o, e, n) => e in o ? Oe(o, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[e] = n;
|
|
3
|
+
var le = (o, e, n) => ke(o, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as d from "react";
|
|
5
|
-
import H, { Children as
|
|
6
|
-
import { P as
|
|
7
|
-
import { jsx as $, jsxs as
|
|
8
|
-
import { s as ne, u as
|
|
9
|
-
import { a as
|
|
10
|
-
import { _ as
|
|
5
|
+
import H, { Children as je, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
+
import { P as t, G as E, I as de, H as Fe } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
7
|
+
import { jsx as $, jsxs as Ie } from "react/jsx-runtime";
|
|
8
|
+
import { s as ne, u as he, c as $e } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
9
|
+
import { a as Ue, u as ze } from "./useTimeout-CrCYVizI.js";
|
|
10
|
+
import { _ as _e, a as Xe, T as ce } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
11
11
|
import { keyframes as oe } from "@emotion/react";
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { i as
|
|
15
|
-
import { r as
|
|
16
|
-
import { e as
|
|
12
|
+
import { u as pe } from "./useForkRef-C_4o__cU.js";
|
|
13
|
+
import { u as W } from "./useEventCallback-BAQJJ3ye.js";
|
|
14
|
+
import { i as fe } from "./isFocusVisible-CPZqtjv2.js";
|
|
15
|
+
import { r as Ye } from "./refType-DKYKROQk.js";
|
|
16
|
+
import { e as Ae } from "./elementTypeAcceptingRef-D-5kcohU.js";
|
|
17
17
|
function ee() {
|
|
18
18
|
return ee = Object.assign ? Object.assign.bind() : function(o) {
|
|
19
19
|
for (var e = 1; e < arguments.length; e++) {
|
|
20
|
-
var
|
|
21
|
-
for (var
|
|
20
|
+
var n = arguments[e];
|
|
21
|
+
for (var u in n) ({}).hasOwnProperty.call(n, u) && (o[u] = n[u]);
|
|
22
22
|
}
|
|
23
23
|
return o;
|
|
24
24
|
}, ee.apply(null, arguments);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ke(o) {
|
|
27
27
|
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28
28
|
return o;
|
|
29
29
|
}
|
|
30
30
|
function ie(o, e) {
|
|
31
|
-
var
|
|
32
|
-
return e &&
|
|
33
|
-
},
|
|
34
|
-
return o &&
|
|
31
|
+
var n = function(r) {
|
|
32
|
+
return e && G(r) ? e(r) : r;
|
|
33
|
+
}, u = /* @__PURE__ */ Object.create(null);
|
|
34
|
+
return o && je.map(o, function(i) {
|
|
35
35
|
return i;
|
|
36
36
|
}).forEach(function(i) {
|
|
37
|
-
|
|
38
|
-
}),
|
|
37
|
+
u[i.key] = n(i);
|
|
38
|
+
}), u;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function qe(o, e) {
|
|
41
41
|
o = o || {}, e = e || {};
|
|
42
|
-
function
|
|
42
|
+
function n(h) {
|
|
43
43
|
return h in e ? e[h] : o[h];
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
46
46
|
for (var r in o)
|
|
47
|
-
r in e ? i.length && (
|
|
47
|
+
r in e ? i.length && (u[r] = i, i = []) : i.push(r);
|
|
48
48
|
var s, p = {};
|
|
49
49
|
for (var l in e) {
|
|
50
|
-
if (
|
|
51
|
-
for (s = 0; s <
|
|
52
|
-
var f =
|
|
53
|
-
p[
|
|
50
|
+
if (u[l])
|
|
51
|
+
for (s = 0; s < u[l].length; s++) {
|
|
52
|
+
var f = u[l][s];
|
|
53
|
+
p[u[l][s]] = n(f);
|
|
54
54
|
}
|
|
55
|
-
p[l] =
|
|
55
|
+
p[l] = n(l);
|
|
56
56
|
}
|
|
57
57
|
for (s = 0; s < i.length; s++)
|
|
58
|
-
p[i[s]] =
|
|
58
|
+
p[i[s]] = n(i[s]);
|
|
59
59
|
return p;
|
|
60
60
|
}
|
|
61
|
-
function k(o, e,
|
|
62
|
-
return
|
|
61
|
+
function k(o, e, n) {
|
|
62
|
+
return n[e] != null ? n[e] : o.props[e];
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return ie(o.children, function(
|
|
66
|
-
return
|
|
67
|
-
onExited: e.bind(null,
|
|
64
|
+
function He(o, e) {
|
|
65
|
+
return ie(o.children, function(n) {
|
|
66
|
+
return J(n, {
|
|
67
|
+
onExited: e.bind(null, n),
|
|
68
68
|
in: !0,
|
|
69
|
-
appear: k(
|
|
70
|
-
enter: k(
|
|
71
|
-
exit: k(
|
|
69
|
+
appear: k(n, "appear", o),
|
|
70
|
+
enter: k(n, "enter", o),
|
|
71
|
+
exit: k(n, "exit", o)
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
var
|
|
75
|
+
function We(o, e, n) {
|
|
76
|
+
var u = ie(o.children), i = qe(e, u);
|
|
77
77
|
return Object.keys(i).forEach(function(r) {
|
|
78
78
|
var s = i[r];
|
|
79
|
-
if (
|
|
80
|
-
var p = r in e, l = r in
|
|
81
|
-
l && (!p || h) ? i[r] =
|
|
82
|
-
onExited:
|
|
79
|
+
if (G(s)) {
|
|
80
|
+
var p = r in e, l = r in u, f = e[r], h = G(f) && !f.props.in;
|
|
81
|
+
l && (!p || h) ? i[r] = J(s, {
|
|
82
|
+
onExited: n.bind(null, s),
|
|
83
83
|
in: !0,
|
|
84
84
|
exit: k(s, "exit", o),
|
|
85
85
|
enter: k(s, "enter", o)
|
|
86
|
-
}) : !l && p && !h ? i[r] =
|
|
86
|
+
}) : !l && p && !h ? i[r] = J(s, {
|
|
87
87
|
in: !1
|
|
88
|
-
}) : l && p &&
|
|
89
|
-
onExited:
|
|
88
|
+
}) : l && p && G(f) && (i[r] = J(s, {
|
|
89
|
+
onExited: n.bind(null, s),
|
|
90
90
|
in: f.props.in,
|
|
91
91
|
exit: k(s, "exit", o),
|
|
92
92
|
enter: k(s, "enter", o)
|
|
@@ -94,21 +94,21 @@ function Ke(o, e, t) {
|
|
|
94
94
|
}
|
|
95
95
|
}), i;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Ge = Object.values || function(o) {
|
|
98
98
|
return Object.keys(o).map(function(e) {
|
|
99
99
|
return o[e];
|
|
100
100
|
});
|
|
101
|
-
},
|
|
101
|
+
}, Je = {
|
|
102
102
|
component: "div",
|
|
103
103
|
childFactory: function(e) {
|
|
104
104
|
return e;
|
|
105
105
|
}
|
|
106
106
|
}, re = /* @__PURE__ */ function(o) {
|
|
107
|
-
|
|
108
|
-
function e(
|
|
107
|
+
_e(e, o);
|
|
108
|
+
function e(u, i) {
|
|
109
109
|
var r;
|
|
110
|
-
r = o.call(this,
|
|
111
|
-
var s = r.handleExited.bind(
|
|
110
|
+
r = o.call(this, u, i) || this;
|
|
111
|
+
var s = r.handleExited.bind(Ke(r));
|
|
112
112
|
return r.state = {
|
|
113
113
|
contextValue: {
|
|
114
114
|
isMounting: !0
|
|
@@ -117,22 +117,22 @@ var qe = Object.values || function(o) {
|
|
|
117
117
|
firstRender: !0
|
|
118
118
|
}, r;
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var n = e.prototype;
|
|
121
|
+
return n.componentDidMount = function() {
|
|
122
122
|
this.mounted = !0, this.setState({
|
|
123
123
|
contextValue: {
|
|
124
124
|
isMounting: !1
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
|
-
},
|
|
127
|
+
}, n.componentWillUnmount = function() {
|
|
128
128
|
this.mounted = !1;
|
|
129
129
|
}, e.getDerivedStateFromProps = function(i, r) {
|
|
130
130
|
var s = r.children, p = r.handleExited, l = r.firstRender;
|
|
131
131
|
return {
|
|
132
|
-
children: l ?
|
|
132
|
+
children: l ? He(i, p) : We(i, s, p),
|
|
133
133
|
firstRender: !1
|
|
134
134
|
};
|
|
135
|
-
},
|
|
135
|
+
}, n.handleExited = function(i, r) {
|
|
136
136
|
var s = ie(this.props.children);
|
|
137
137
|
i.key in s || (i.props.onExited && i.props.onExited(r), this.mounted && this.setState(function(p) {
|
|
138
138
|
var l = ee({}, p.children);
|
|
@@ -140,11 +140,11 @@ var qe = Object.values || function(o) {
|
|
|
140
140
|
children: l
|
|
141
141
|
};
|
|
142
142
|
}));
|
|
143
|
-
},
|
|
144
|
-
var i = this.props, r = i.component, s = i.childFactory, p =
|
|
145
|
-
return delete p.appear, delete p.enter, delete p.exit, r === null ? /* @__PURE__ */ H.createElement(
|
|
143
|
+
}, n.render = function() {
|
|
144
|
+
var i = this.props, r = i.component, s = i.childFactory, p = Xe(i, ["component", "childFactory"]), l = this.state.contextValue, f = Ge(this.state.children).map(s);
|
|
145
|
+
return delete p.appear, delete p.enter, delete p.exit, r === null ? /* @__PURE__ */ H.createElement(ce.Provider, {
|
|
146
146
|
value: l
|
|
147
|
-
}, f) : /* @__PURE__ */ H.createElement(
|
|
147
|
+
}, f) : /* @__PURE__ */ H.createElement(ce.Provider, {
|
|
148
148
|
value: l
|
|
149
149
|
}, /* @__PURE__ */ H.createElement(r, p, f));
|
|
150
150
|
}, e;
|
|
@@ -157,7 +157,7 @@ re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
157
157
|
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
158
158
|
* borks your css styles.
|
|
159
159
|
*/
|
|
160
|
-
component:
|
|
160
|
+
component: t.any,
|
|
161
161
|
/**
|
|
162
162
|
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
163
163
|
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
@@ -171,25 +171,25 @@ re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
171
171
|
* the transition child as you change its content, this will cause
|
|
172
172
|
* `TransitionGroup` to transition the child out and back in.
|
|
173
173
|
*/
|
|
174
|
-
children:
|
|
174
|
+
children: t.node,
|
|
175
175
|
/**
|
|
176
176
|
* A convenience prop that enables or disables appear animations
|
|
177
177
|
* for all children. Note that specifying this will override any defaults set
|
|
178
178
|
* on individual children Transitions.
|
|
179
179
|
*/
|
|
180
|
-
appear:
|
|
180
|
+
appear: t.bool,
|
|
181
181
|
/**
|
|
182
182
|
* A convenience prop that enables or disables enter animations
|
|
183
183
|
* for all children. Note that specifying this will override any defaults set
|
|
184
184
|
* on individual children Transitions.
|
|
185
185
|
*/
|
|
186
|
-
enter:
|
|
186
|
+
enter: t.bool,
|
|
187
187
|
/**
|
|
188
188
|
* A convenience prop that enables or disables exit animations
|
|
189
189
|
* for all children. Note that specifying this will override any defaults set
|
|
190
190
|
* on individual children Transitions.
|
|
191
191
|
*/
|
|
192
|
-
exit:
|
|
192
|
+
exit: t.bool,
|
|
193
193
|
/**
|
|
194
194
|
* You may need to apply reactive updates to a child as it is exiting.
|
|
195
195
|
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
@@ -200,12 +200,12 @@ re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
200
200
|
*
|
|
201
201
|
* @type Function(child: ReactElement) -> ReactElement
|
|
202
202
|
*/
|
|
203
|
-
childFactory:
|
|
203
|
+
childFactory: t.func
|
|
204
204
|
} : {};
|
|
205
|
-
re.defaultProps =
|
|
205
|
+
re.defaultProps = Je;
|
|
206
206
|
class Q {
|
|
207
207
|
constructor() {
|
|
208
|
-
|
|
208
|
+
le(this, "mountEffect", () => {
|
|
209
209
|
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
210
210
|
});
|
|
211
211
|
this.ref = {
|
|
@@ -221,60 +221,60 @@ class Q {
|
|
|
221
221
|
return new Q();
|
|
222
222
|
}
|
|
223
223
|
static use() {
|
|
224
|
-
const e =
|
|
225
|
-
return e.shouldMount =
|
|
224
|
+
const e = Ue(Q.create).current, [n, u] = d.useState(!1);
|
|
225
|
+
return e.shouldMount = n, e.setShouldMount = u, d.useEffect(e.mountEffect, [n]), e;
|
|
226
226
|
}
|
|
227
227
|
mount() {
|
|
228
|
-
return this.mounted || (this.mounted =
|
|
228
|
+
return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
229
229
|
}
|
|
230
230
|
/* Ripple API */
|
|
231
231
|
start(...e) {
|
|
232
232
|
this.mount().then(() => {
|
|
233
|
-
var
|
|
234
|
-
return (
|
|
233
|
+
var n;
|
|
234
|
+
return (n = this.ref.current) == null ? void 0 : n.start(...e);
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
stop(...e) {
|
|
238
238
|
this.mount().then(() => {
|
|
239
|
-
var
|
|
240
|
-
return (
|
|
239
|
+
var n;
|
|
240
|
+
return (n = this.ref.current) == null ? void 0 : n.stop(...e);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
pulsate(...e) {
|
|
244
244
|
this.mount().then(() => {
|
|
245
|
-
var
|
|
246
|
-
return (
|
|
245
|
+
var n;
|
|
246
|
+
return (n = this.ref.current) == null ? void 0 : n.pulsate(...e);
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Qe() {
|
|
251
251
|
return Q.use();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Ze() {
|
|
254
254
|
let o, e;
|
|
255
|
-
const
|
|
256
|
-
o =
|
|
255
|
+
const n = new Promise((u, i) => {
|
|
256
|
+
o = u, e = i;
|
|
257
257
|
});
|
|
258
|
-
return
|
|
258
|
+
return n.resolve = o, n.reject = e, n;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function me(o) {
|
|
261
261
|
const {
|
|
262
262
|
className: e,
|
|
263
|
-
classes:
|
|
264
|
-
pulsate:
|
|
263
|
+
classes: n,
|
|
264
|
+
pulsate: u = !1,
|
|
265
265
|
rippleX: i,
|
|
266
266
|
rippleY: r,
|
|
267
267
|
rippleSize: s,
|
|
268
268
|
in: p,
|
|
269
269
|
onExited: l,
|
|
270
270
|
timeout: f
|
|
271
|
-
} = o, [h,
|
|
271
|
+
} = o, [h, y] = d.useState(!1), g = E(e, n.ripple, n.rippleVisible, u && n.ripplePulsate), D = {
|
|
272
272
|
width: s,
|
|
273
273
|
height: s,
|
|
274
274
|
top: -(s / 2) + r,
|
|
275
275
|
left: -(s / 2) + i
|
|
276
|
-
},
|
|
277
|
-
return !p && !h &&
|
|
276
|
+
}, m = E(n.child, h && n.childLeaving, u && n.childPulsate);
|
|
277
|
+
return !p && !h && y(!0), d.useEffect(() => {
|
|
278
278
|
if (!p && l != null) {
|
|
279
279
|
const B = setTimeout(l, f);
|
|
280
280
|
return () => {
|
|
@@ -282,49 +282,49 @@ function de(o) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
}, [l, p, f]), /* @__PURE__ */ $("span", {
|
|
285
|
-
className:
|
|
285
|
+
className: g,
|
|
286
286
|
style: D,
|
|
287
287
|
children: /* @__PURE__ */ $("span", {
|
|
288
|
-
className:
|
|
288
|
+
className: m
|
|
289
289
|
})
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
process.env.NODE_ENV !== "production" && (
|
|
292
|
+
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
293
293
|
/**
|
|
294
294
|
* Override or extend the styles applied to the component.
|
|
295
295
|
*/
|
|
296
|
-
classes:
|
|
297
|
-
className:
|
|
296
|
+
classes: t.object.isRequired,
|
|
297
|
+
className: t.string,
|
|
298
298
|
/**
|
|
299
299
|
* @ignore - injected from TransitionGroup
|
|
300
300
|
*/
|
|
301
|
-
in:
|
|
301
|
+
in: t.bool,
|
|
302
302
|
/**
|
|
303
303
|
* @ignore - injected from TransitionGroup
|
|
304
304
|
*/
|
|
305
|
-
onExited:
|
|
305
|
+
onExited: t.func,
|
|
306
306
|
/**
|
|
307
307
|
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
308
308
|
*/
|
|
309
|
-
pulsate:
|
|
309
|
+
pulsate: t.bool,
|
|
310
310
|
/**
|
|
311
311
|
* Diameter of the ripple.
|
|
312
312
|
*/
|
|
313
|
-
rippleSize:
|
|
313
|
+
rippleSize: t.number,
|
|
314
314
|
/**
|
|
315
315
|
* Horizontal position of the ripple center.
|
|
316
316
|
*/
|
|
317
|
-
rippleX:
|
|
317
|
+
rippleX: t.number,
|
|
318
318
|
/**
|
|
319
319
|
* Vertical position of the ripple center.
|
|
320
320
|
*/
|
|
321
|
-
rippleY:
|
|
321
|
+
rippleY: t.number,
|
|
322
322
|
/**
|
|
323
323
|
* exit delay
|
|
324
324
|
*/
|
|
325
|
-
timeout:
|
|
325
|
+
timeout: t.number.isRequired
|
|
326
326
|
});
|
|
327
|
-
const
|
|
327
|
+
const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), te = 550, et = 80, tt = oe`
|
|
328
328
|
0% {
|
|
329
329
|
transform: scale(0);
|
|
330
330
|
opacity: 0.1;
|
|
@@ -334,7 +334,7 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
334
334
|
transform: scale(1);
|
|
335
335
|
opacity: 0.3;
|
|
336
336
|
}
|
|
337
|
-
`,
|
|
337
|
+
`, nt = oe`
|
|
338
338
|
0% {
|
|
339
339
|
opacity: 1;
|
|
340
340
|
}
|
|
@@ -342,7 +342,7 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
342
342
|
100% {
|
|
343
343
|
opacity: 0;
|
|
344
344
|
}
|
|
345
|
-
`,
|
|
345
|
+
`, ot = oe`
|
|
346
346
|
0% {
|
|
347
347
|
transform: scale(1);
|
|
348
348
|
}
|
|
@@ -354,7 +354,7 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
354
354
|
100% {
|
|
355
355
|
transform: scale(1);
|
|
356
356
|
}
|
|
357
|
-
`,
|
|
357
|
+
`, it = ne("span", {
|
|
358
358
|
name: "MuiTouchRipple",
|
|
359
359
|
slot: "Root"
|
|
360
360
|
})({
|
|
@@ -367,30 +367,30 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
367
367
|
bottom: 0,
|
|
368
368
|
left: 0,
|
|
369
369
|
borderRadius: "inherit"
|
|
370
|
-
}),
|
|
370
|
+
}), rt = ne(me, {
|
|
371
371
|
name: "MuiTouchRipple",
|
|
372
372
|
slot: "Ripple"
|
|
373
373
|
})`
|
|
374
374
|
opacity: 0;
|
|
375
375
|
position: absolute;
|
|
376
376
|
|
|
377
|
-
&.${
|
|
377
|
+
&.${b.rippleVisible} {
|
|
378
378
|
opacity: 0.3;
|
|
379
379
|
transform: scale(1);
|
|
380
|
-
animation-name: ${
|
|
380
|
+
animation-name: ${tt};
|
|
381
381
|
animation-duration: ${te}ms;
|
|
382
382
|
animation-timing-function: ${({
|
|
383
383
|
theme: o
|
|
384
384
|
}) => o.transitions.easing.easeInOut};
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
&.${
|
|
387
|
+
&.${b.ripplePulsate} {
|
|
388
388
|
animation-duration: ${({
|
|
389
389
|
theme: o
|
|
390
390
|
}) => o.transitions.duration.shorter}ms;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
& .${
|
|
393
|
+
& .${b.child} {
|
|
394
394
|
opacity: 1;
|
|
395
395
|
display: block;
|
|
396
396
|
width: 100%;
|
|
@@ -399,21 +399,21 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
399
399
|
background-color: currentColor;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
& .${
|
|
402
|
+
& .${b.childLeaving} {
|
|
403
403
|
opacity: 0;
|
|
404
|
-
animation-name: ${
|
|
404
|
+
animation-name: ${nt};
|
|
405
405
|
animation-duration: ${te}ms;
|
|
406
406
|
animation-timing-function: ${({
|
|
407
407
|
theme: o
|
|
408
408
|
}) => o.transitions.easing.easeInOut};
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
& .${
|
|
411
|
+
& .${b.childPulsate} {
|
|
412
412
|
position: absolute;
|
|
413
413
|
/* @noflip */
|
|
414
414
|
left: 0px;
|
|
415
415
|
top: 0;
|
|
416
|
-
animation-name: ${
|
|
416
|
+
animation-name: ${ot};
|
|
417
417
|
animation-duration: 2500ms;
|
|
418
418
|
animation-timing-function: ${({
|
|
419
419
|
theme: o
|
|
@@ -421,8 +421,8 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
421
421
|
animation-iteration-count: infinite;
|
|
422
422
|
animation-delay: 200ms;
|
|
423
423
|
}
|
|
424
|
-
`,
|
|
425
|
-
const
|
|
424
|
+
`, be = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
425
|
+
const u = he({
|
|
426
426
|
props: e,
|
|
427
427
|
name: "MuiTouchRipple"
|
|
428
428
|
}), {
|
|
@@ -430,104 +430,104 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
430
430
|
classes: r = {},
|
|
431
431
|
className: s,
|
|
432
432
|
...p
|
|
433
|
-
} =
|
|
433
|
+
} = u, [l, f] = d.useState([]), h = d.useRef(0), y = d.useRef(null);
|
|
434
434
|
d.useEffect(() => {
|
|
435
|
-
|
|
435
|
+
y.current && (y.current(), y.current = null);
|
|
436
436
|
}, [l]);
|
|
437
|
-
const
|
|
437
|
+
const g = d.useRef(!1), D = ze(), m = d.useRef(null), B = d.useRef(null), C = d.useCallback((c) => {
|
|
438
438
|
const {
|
|
439
|
-
pulsate:
|
|
440
|
-
rippleX:
|
|
439
|
+
pulsate: R,
|
|
440
|
+
rippleX: M,
|
|
441
441
|
rippleY: I,
|
|
442
442
|
rippleSize: v,
|
|
443
443
|
cb: U
|
|
444
444
|
} = c;
|
|
445
|
-
f((
|
|
445
|
+
f((T) => [...T, /* @__PURE__ */ $(rt, {
|
|
446
446
|
classes: {
|
|
447
|
-
ripple:
|
|
448
|
-
rippleVisible:
|
|
449
|
-
ripplePulsate:
|
|
450
|
-
child:
|
|
451
|
-
childLeaving:
|
|
452
|
-
childPulsate:
|
|
447
|
+
ripple: E(r.ripple, b.ripple),
|
|
448
|
+
rippleVisible: E(r.rippleVisible, b.rippleVisible),
|
|
449
|
+
ripplePulsate: E(r.ripplePulsate, b.ripplePulsate),
|
|
450
|
+
child: E(r.child, b.child),
|
|
451
|
+
childLeaving: E(r.childLeaving, b.childLeaving),
|
|
452
|
+
childPulsate: E(r.childPulsate, b.childPulsate)
|
|
453
453
|
},
|
|
454
454
|
timeout: te,
|
|
455
|
-
pulsate:
|
|
456
|
-
rippleX:
|
|
455
|
+
pulsate: R,
|
|
456
|
+
rippleX: M,
|
|
457
457
|
rippleY: I,
|
|
458
458
|
rippleSize: v
|
|
459
|
-
}, h.current)]), h.current += 1,
|
|
460
|
-
}, [r]), j = d.useCallback((c = {},
|
|
459
|
+
}, h.current)]), h.current += 1, y.current = U;
|
|
460
|
+
}, [r]), j = d.useCallback((c = {}, R = {}, M = () => {
|
|
461
461
|
}) => {
|
|
462
462
|
const {
|
|
463
463
|
pulsate: I = !1,
|
|
464
|
-
center: v = i ||
|
|
464
|
+
center: v = i || R.pulsate,
|
|
465
465
|
fakeElement: U = !1
|
|
466
466
|
// For test purposes
|
|
467
|
-
} =
|
|
468
|
-
if ((c == null ? void 0 : c.type) === "mousedown" &&
|
|
469
|
-
|
|
467
|
+
} = R;
|
|
468
|
+
if ((c == null ? void 0 : c.type) === "mousedown" && g.current) {
|
|
469
|
+
g.current = !1;
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
(c == null ? void 0 : c.type) === "touchstart" && (
|
|
473
|
-
const
|
|
472
|
+
(c == null ? void 0 : c.type) === "touchstart" && (g.current = !0);
|
|
473
|
+
const T = U ? null : B.current, V = T ? T.getBoundingClientRect() : {
|
|
474
474
|
width: 0,
|
|
475
475
|
height: 0,
|
|
476
476
|
left: 0,
|
|
477
477
|
top: 0
|
|
478
478
|
};
|
|
479
|
-
let S,
|
|
479
|
+
let S, x, w;
|
|
480
480
|
if (v || c === void 0 || c.clientX === 0 && c.clientY === 0 || !c.clientX && !c.touches)
|
|
481
|
-
S = Math.round(V.width / 2),
|
|
481
|
+
S = Math.round(V.width / 2), x = Math.round(V.height / 2);
|
|
482
482
|
else {
|
|
483
483
|
const {
|
|
484
484
|
clientX: z,
|
|
485
485
|
clientY: L
|
|
486
486
|
} = c.touches && c.touches.length > 0 ? c.touches[0] : c;
|
|
487
|
-
S = Math.round(z - V.left),
|
|
487
|
+
S = Math.round(z - V.left), x = Math.round(L - V.top);
|
|
488
488
|
}
|
|
489
489
|
if (v)
|
|
490
490
|
w = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), w % 2 === 0 && (w += 1);
|
|
491
491
|
else {
|
|
492
|
-
const z = Math.max(Math.abs((
|
|
492
|
+
const z = Math.max(Math.abs((T ? T.clientWidth : 0) - S), S) * 2 + 2, L = Math.max(Math.abs((T ? T.clientHeight : 0) - x), x) * 2 + 2;
|
|
493
493
|
w = Math.sqrt(z ** 2 + L ** 2);
|
|
494
494
|
}
|
|
495
|
-
c != null && c.touches ?
|
|
496
|
-
|
|
495
|
+
c != null && c.touches ? m.current === null && (m.current = () => {
|
|
496
|
+
C({
|
|
497
497
|
pulsate: I,
|
|
498
498
|
rippleX: S,
|
|
499
|
-
rippleY:
|
|
499
|
+
rippleY: x,
|
|
500
500
|
rippleSize: w,
|
|
501
|
-
cb:
|
|
501
|
+
cb: M
|
|
502
502
|
});
|
|
503
|
-
}, D.start(
|
|
504
|
-
|
|
505
|
-
})) :
|
|
503
|
+
}, D.start(et, () => {
|
|
504
|
+
m.current && (m.current(), m.current = null);
|
|
505
|
+
})) : C({
|
|
506
506
|
pulsate: I,
|
|
507
507
|
rippleX: S,
|
|
508
|
-
rippleY:
|
|
508
|
+
rippleY: x,
|
|
509
509
|
rippleSize: w,
|
|
510
|
-
cb:
|
|
510
|
+
cb: M
|
|
511
511
|
});
|
|
512
|
-
}, [i,
|
|
512
|
+
}, [i, C, D]), A = d.useCallback(() => {
|
|
513
513
|
j({}, {
|
|
514
514
|
pulsate: !0
|
|
515
515
|
});
|
|
516
|
-
}, [j]), F = d.useCallback((c,
|
|
517
|
-
if (D.clear(), (c == null ? void 0 : c.type) === "touchend" &&
|
|
518
|
-
|
|
519
|
-
F(c,
|
|
516
|
+
}, [j]), F = d.useCallback((c, R) => {
|
|
517
|
+
if (D.clear(), (c == null ? void 0 : c.type) === "touchend" && m.current) {
|
|
518
|
+
m.current(), m.current = null, D.start(0, () => {
|
|
519
|
+
F(c, R);
|
|
520
520
|
});
|
|
521
521
|
return;
|
|
522
522
|
}
|
|
523
|
-
|
|
523
|
+
m.current = null, f((M) => M.length > 0 ? M.slice(1) : M), y.current = R;
|
|
524
524
|
}, [D]);
|
|
525
|
-
return d.useImperativeHandle(
|
|
525
|
+
return d.useImperativeHandle(n, () => ({
|
|
526
526
|
pulsate: A,
|
|
527
527
|
start: j,
|
|
528
528
|
stop: F
|
|
529
|
-
}), [A, j, F]), /* @__PURE__ */ $(
|
|
530
|
-
className:
|
|
529
|
+
}), [A, j, F]), /* @__PURE__ */ $(it, {
|
|
530
|
+
className: E(b.root, r.root, s),
|
|
531
531
|
ref: B,
|
|
532
532
|
...p,
|
|
533
533
|
children: /* @__PURE__ */ $(re, {
|
|
@@ -537,35 +537,35 @@ const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
537
537
|
})
|
|
538
538
|
});
|
|
539
539
|
});
|
|
540
|
-
process.env.NODE_ENV !== "production" && (
|
|
540
|
+
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
541
541
|
/**
|
|
542
542
|
* If `true`, the ripple starts at the center of the component
|
|
543
543
|
* rather than at the point of interaction.
|
|
544
544
|
*/
|
|
545
|
-
center:
|
|
545
|
+
center: t.bool,
|
|
546
546
|
/**
|
|
547
547
|
* Override or extend the styles applied to the component.
|
|
548
548
|
*/
|
|
549
|
-
classes:
|
|
549
|
+
classes: t.object,
|
|
550
550
|
/**
|
|
551
551
|
* @ignore
|
|
552
552
|
*/
|
|
553
|
-
className:
|
|
553
|
+
className: t.string
|
|
554
554
|
});
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function st(o) {
|
|
556
|
+
return Fe("MuiButtonBase", o);
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (o) => {
|
|
559
559
|
const {
|
|
560
560
|
disabled: e,
|
|
561
|
-
focusVisible:
|
|
562
|
-
focusVisibleClassName:
|
|
561
|
+
focusVisible: n,
|
|
562
|
+
focusVisibleClassName: u,
|
|
563
563
|
classes: i
|
|
564
|
-
} = o, s =
|
|
565
|
-
root: ["root", e && "disabled",
|
|
566
|
-
},
|
|
567
|
-
return
|
|
568
|
-
},
|
|
564
|
+
} = o, s = $e({
|
|
565
|
+
root: ["root", e && "disabled", n && "focusVisible"]
|
|
566
|
+
}, st, i);
|
|
567
|
+
return n && u && (s.root += ` ${u}`), s;
|
|
568
|
+
}, lt = ne("button", {
|
|
569
569
|
name: "MuiButtonBase",
|
|
570
570
|
slot: "Root",
|
|
571
571
|
overridesResolver: (o, e) => e.root
|
|
@@ -600,7 +600,7 @@ const it = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), rt = (o) =
|
|
|
600
600
|
borderStyle: "none"
|
|
601
601
|
// Remove Firefox dotted outline.
|
|
602
602
|
},
|
|
603
|
-
[`&.${
|
|
603
|
+
[`&.${at.disabled}`]: {
|
|
604
604
|
pointerEvents: "none",
|
|
605
605
|
// Disable link interactions
|
|
606
606
|
cursor: "default"
|
|
@@ -608,8 +608,8 @@ const it = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), rt = (o) =
|
|
|
608
608
|
"@media print": {
|
|
609
609
|
colorAdjust: "exact"
|
|
610
610
|
}
|
|
611
|
-
}),
|
|
612
|
-
const
|
|
611
|
+
}), ct = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
612
|
+
const u = he({
|
|
613
613
|
props: e,
|
|
614
614
|
name: "MuiButtonBase"
|
|
615
615
|
}), {
|
|
@@ -620,105 +620,105 @@ const it = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), rt = (o) =
|
|
|
620
620
|
component: l = "button",
|
|
621
621
|
disabled: f = !1,
|
|
622
622
|
disableRipple: h = !1,
|
|
623
|
-
disableTouchRipple:
|
|
624
|
-
focusRipple:
|
|
623
|
+
disableTouchRipple: y = !1,
|
|
624
|
+
focusRipple: g = !1,
|
|
625
625
|
focusVisibleClassName: D,
|
|
626
|
-
LinkComponent:
|
|
626
|
+
LinkComponent: m = "a",
|
|
627
627
|
onBlur: B,
|
|
628
|
-
onClick:
|
|
628
|
+
onClick: C,
|
|
629
629
|
onContextMenu: j,
|
|
630
630
|
onDragLeave: A,
|
|
631
631
|
onFocus: F,
|
|
632
632
|
onFocusVisible: c,
|
|
633
|
-
onKeyDown:
|
|
634
|
-
onKeyUp:
|
|
633
|
+
onKeyDown: R,
|
|
634
|
+
onKeyUp: M,
|
|
635
635
|
onMouseDown: I,
|
|
636
636
|
onMouseLeave: v,
|
|
637
637
|
onMouseUp: U,
|
|
638
|
-
onTouchEnd:
|
|
638
|
+
onTouchEnd: T,
|
|
639
639
|
onTouchMove: V,
|
|
640
640
|
onTouchStart: S,
|
|
641
|
-
tabIndex:
|
|
641
|
+
tabIndex: x = 0,
|
|
642
642
|
TouchRippleProps: w,
|
|
643
643
|
touchRippleRef: z,
|
|
644
644
|
type: L,
|
|
645
645
|
..._
|
|
646
|
-
} =
|
|
646
|
+
} = u, X = d.useRef(null), P = Qe(), ge = pe(P.ref, z), [O, K] = d.useState(!1);
|
|
647
647
|
f && O && K(!1), d.useImperativeHandle(i, () => ({
|
|
648
648
|
focusVisible: () => {
|
|
649
649
|
K(!0), X.current.focus();
|
|
650
650
|
}
|
|
651
651
|
}), []);
|
|
652
|
-
const
|
|
652
|
+
const Me = P.shouldMount && !h && !f;
|
|
653
653
|
d.useEffect(() => {
|
|
654
|
-
O &&
|
|
655
|
-
}, [h,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
654
|
+
O && g && !h && P.pulsate();
|
|
655
|
+
}, [h, g, O, P]);
|
|
656
|
+
function N(a, ae, Le = y) {
|
|
657
|
+
return W((ue) => (ae && ae(ue), Le || P[a](ue), !0));
|
|
658
|
+
}
|
|
659
|
+
const ye = N("start", I), Re = N("stop", j), Te = N("stop", A), Ee = N("stop", U), Ce = N("stop", (a) => {
|
|
660
|
+
O && a.preventDefault(), v && v(a);
|
|
661
|
+
}), xe = N("start", S), Pe = N("stop", T), Ne = N("stop", V), De = N("stop", (a) => {
|
|
662
|
+
fe(a.target) || K(!1), B && B(a);
|
|
663
|
+
}, !1), Ve = W((a) => {
|
|
664
|
+
X.current || (X.current = a.currentTarget), fe(a.target) && (K(!0), c && c(a)), F && F(a);
|
|
662
665
|
}), Z = () => {
|
|
663
|
-
const
|
|
664
|
-
return l && l !== "button" && !(
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}),
|
|
669
|
-
}),
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}),
|
|
666
|
+
const a = X.current;
|
|
667
|
+
return l && l !== "button" && !(a.tagName === "A" && a.href);
|
|
668
|
+
}, Se = W((a) => {
|
|
669
|
+
g && !a.repeat && O && a.key === " " && P.stop(a, () => {
|
|
670
|
+
P.start(a);
|
|
671
|
+
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), R && R(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), C && C(a));
|
|
672
|
+
}), we = W((a) => {
|
|
673
|
+
g && a.key === " " && O && !a.defaultPrevented && P.stop(a, () => {
|
|
674
|
+
P.pulsate(a);
|
|
675
|
+
}), M && M(a), C && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && C(a);
|
|
673
676
|
});
|
|
674
677
|
let q = l;
|
|
675
|
-
q === "button" && (_.href || _.to) && (q =
|
|
678
|
+
q === "button" && (_.href || _.to) && (q = m);
|
|
676
679
|
const Y = {};
|
|
677
680
|
q === "button" ? (Y.type = L === void 0 ? "button" : L, Y.disabled = f) : (!_.href && !_.to && (Y.role = "button"), f && (Y["aria-disabled"] = f));
|
|
678
|
-
const
|
|
679
|
-
...
|
|
681
|
+
const Be = pe(n, X), se = {
|
|
682
|
+
...u,
|
|
680
683
|
centerRipple: r,
|
|
681
684
|
component: l,
|
|
682
685
|
disabled: f,
|
|
683
686
|
disableRipple: h,
|
|
684
|
-
disableTouchRipple:
|
|
685
|
-
focusRipple:
|
|
686
|
-
tabIndex:
|
|
687
|
+
disableTouchRipple: y,
|
|
688
|
+
focusRipple: g,
|
|
689
|
+
tabIndex: x,
|
|
687
690
|
focusVisible: O
|
|
688
|
-
},
|
|
689
|
-
return /* @__PURE__ */
|
|
691
|
+
}, ve = ut(se);
|
|
692
|
+
return /* @__PURE__ */ Ie(lt, {
|
|
690
693
|
as: q,
|
|
691
|
-
className:
|
|
694
|
+
className: E(ve.root, p),
|
|
692
695
|
ownerState: se,
|
|
693
|
-
onBlur:
|
|
694
|
-
onClick:
|
|
695
|
-
onContextMenu:
|
|
696
|
-
onFocus:
|
|
697
|
-
onKeyDown:
|
|
698
|
-
onKeyUp:
|
|
699
|
-
onMouseDown:
|
|
700
|
-
onMouseLeave:
|
|
701
|
-
onMouseUp:
|
|
702
|
-
onDragLeave:
|
|
703
|
-
onTouchEnd:
|
|
704
|
-
onTouchMove:
|
|
705
|
-
onTouchStart:
|
|
706
|
-
ref:
|
|
707
|
-
tabIndex: f ? -1 :
|
|
696
|
+
onBlur: De,
|
|
697
|
+
onClick: C,
|
|
698
|
+
onContextMenu: Re,
|
|
699
|
+
onFocus: Ve,
|
|
700
|
+
onKeyDown: Se,
|
|
701
|
+
onKeyUp: we,
|
|
702
|
+
onMouseDown: ye,
|
|
703
|
+
onMouseLeave: Ce,
|
|
704
|
+
onMouseUp: Ee,
|
|
705
|
+
onDragLeave: Te,
|
|
706
|
+
onTouchEnd: Pe,
|
|
707
|
+
onTouchMove: Ne,
|
|
708
|
+
onTouchStart: xe,
|
|
709
|
+
ref: Be,
|
|
710
|
+
tabIndex: f ? -1 : x,
|
|
708
711
|
type: L,
|
|
709
712
|
...Y,
|
|
710
713
|
..._,
|
|
711
|
-
children: [s,
|
|
712
|
-
ref:
|
|
714
|
+
children: [s, Me ? /* @__PURE__ */ $(be, {
|
|
715
|
+
ref: ge,
|
|
713
716
|
center: r,
|
|
714
717
|
...w
|
|
715
718
|
}) : null]
|
|
716
719
|
});
|
|
717
720
|
});
|
|
718
|
-
|
|
719
|
-
return J((i) => (t && t(i), a || o[e](i), !0));
|
|
720
|
-
}
|
|
721
|
-
process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
721
|
+
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
722
722
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
723
723
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
724
724
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -727,35 +727,35 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
727
727
|
* A ref for imperative actions.
|
|
728
728
|
* It currently only supports `focusVisible()` action.
|
|
729
729
|
*/
|
|
730
|
-
action:
|
|
730
|
+
action: Ye,
|
|
731
731
|
/**
|
|
732
732
|
* If `true`, the ripples are centered.
|
|
733
733
|
* They won't start at the cursor interaction position.
|
|
734
734
|
* @default false
|
|
735
735
|
*/
|
|
736
|
-
centerRipple:
|
|
736
|
+
centerRipple: t.bool,
|
|
737
737
|
/**
|
|
738
738
|
* The content of the component.
|
|
739
739
|
*/
|
|
740
|
-
children:
|
|
740
|
+
children: t.node,
|
|
741
741
|
/**
|
|
742
742
|
* Override or extend the styles applied to the component.
|
|
743
743
|
*/
|
|
744
|
-
classes:
|
|
744
|
+
classes: t.object,
|
|
745
745
|
/**
|
|
746
746
|
* @ignore
|
|
747
747
|
*/
|
|
748
|
-
className:
|
|
748
|
+
className: t.string,
|
|
749
749
|
/**
|
|
750
750
|
* The component used for the root node.
|
|
751
751
|
* Either a string to use a HTML element or a component.
|
|
752
752
|
*/
|
|
753
|
-
component:
|
|
753
|
+
component: Ae,
|
|
754
754
|
/**
|
|
755
755
|
* If `true`, the component is disabled.
|
|
756
756
|
* @default false
|
|
757
757
|
*/
|
|
758
|
-
disabled:
|
|
758
|
+
disabled: t.bool,
|
|
759
759
|
/**
|
|
760
760
|
* If `true`, the ripple effect is disabled.
|
|
761
761
|
*
|
|
@@ -763,17 +763,17 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
763
763
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
764
764
|
* @default false
|
|
765
765
|
*/
|
|
766
|
-
disableRipple:
|
|
766
|
+
disableRipple: t.bool,
|
|
767
767
|
/**
|
|
768
768
|
* If `true`, the touch ripple effect is disabled.
|
|
769
769
|
* @default false
|
|
770
770
|
*/
|
|
771
|
-
disableTouchRipple:
|
|
771
|
+
disableTouchRipple: t.bool,
|
|
772
772
|
/**
|
|
773
773
|
* If `true`, the base button will have a keyboard focus ripple.
|
|
774
774
|
* @default false
|
|
775
775
|
*/
|
|
776
|
-
focusRipple:
|
|
776
|
+
focusRipple: t.bool,
|
|
777
777
|
/**
|
|
778
778
|
* This prop can help identify which element has keyboard focus.
|
|
779
779
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -782,102 +782,102 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
782
782
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
783
783
|
* if needed.
|
|
784
784
|
*/
|
|
785
|
-
focusVisibleClassName:
|
|
785
|
+
focusVisibleClassName: t.string,
|
|
786
786
|
/**
|
|
787
787
|
* @ignore
|
|
788
788
|
*/
|
|
789
|
-
href:
|
|
789
|
+
href: t.any,
|
|
790
790
|
/**
|
|
791
791
|
* The component used to render a link when the `href` prop is provided.
|
|
792
792
|
* @default 'a'
|
|
793
793
|
*/
|
|
794
|
-
LinkComponent:
|
|
794
|
+
LinkComponent: t.elementType,
|
|
795
795
|
/**
|
|
796
796
|
* @ignore
|
|
797
797
|
*/
|
|
798
|
-
onBlur:
|
|
798
|
+
onBlur: t.func,
|
|
799
799
|
/**
|
|
800
800
|
* @ignore
|
|
801
801
|
*/
|
|
802
|
-
onClick:
|
|
802
|
+
onClick: t.func,
|
|
803
803
|
/**
|
|
804
804
|
* @ignore
|
|
805
805
|
*/
|
|
806
|
-
onContextMenu:
|
|
806
|
+
onContextMenu: t.func,
|
|
807
807
|
/**
|
|
808
808
|
* @ignore
|
|
809
809
|
*/
|
|
810
|
-
onDragLeave:
|
|
810
|
+
onDragLeave: t.func,
|
|
811
811
|
/**
|
|
812
812
|
* @ignore
|
|
813
813
|
*/
|
|
814
|
-
onFocus:
|
|
814
|
+
onFocus: t.func,
|
|
815
815
|
/**
|
|
816
816
|
* Callback fired when the component is focused with a keyboard.
|
|
817
817
|
* We trigger a `onFocus` callback too.
|
|
818
818
|
*/
|
|
819
|
-
onFocusVisible:
|
|
819
|
+
onFocusVisible: t.func,
|
|
820
820
|
/**
|
|
821
821
|
* @ignore
|
|
822
822
|
*/
|
|
823
|
-
onKeyDown:
|
|
823
|
+
onKeyDown: t.func,
|
|
824
824
|
/**
|
|
825
825
|
* @ignore
|
|
826
826
|
*/
|
|
827
|
-
onKeyUp:
|
|
827
|
+
onKeyUp: t.func,
|
|
828
828
|
/**
|
|
829
829
|
* @ignore
|
|
830
830
|
*/
|
|
831
|
-
onMouseDown:
|
|
831
|
+
onMouseDown: t.func,
|
|
832
832
|
/**
|
|
833
833
|
* @ignore
|
|
834
834
|
*/
|
|
835
|
-
onMouseLeave:
|
|
835
|
+
onMouseLeave: t.func,
|
|
836
836
|
/**
|
|
837
837
|
* @ignore
|
|
838
838
|
*/
|
|
839
|
-
onMouseUp:
|
|
839
|
+
onMouseUp: t.func,
|
|
840
840
|
/**
|
|
841
841
|
* @ignore
|
|
842
842
|
*/
|
|
843
|
-
onTouchEnd:
|
|
843
|
+
onTouchEnd: t.func,
|
|
844
844
|
/**
|
|
845
845
|
* @ignore
|
|
846
846
|
*/
|
|
847
|
-
onTouchMove:
|
|
847
|
+
onTouchMove: t.func,
|
|
848
848
|
/**
|
|
849
849
|
* @ignore
|
|
850
850
|
*/
|
|
851
|
-
onTouchStart:
|
|
851
|
+
onTouchStart: t.func,
|
|
852
852
|
/**
|
|
853
853
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
854
854
|
*/
|
|
855
|
-
sx:
|
|
855
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
856
856
|
/**
|
|
857
857
|
* @default 0
|
|
858
858
|
*/
|
|
859
|
-
tabIndex:
|
|
859
|
+
tabIndex: t.number,
|
|
860
860
|
/**
|
|
861
861
|
* Props applied to the `TouchRipple` element.
|
|
862
862
|
*/
|
|
863
|
-
TouchRippleProps:
|
|
863
|
+
TouchRippleProps: t.object,
|
|
864
864
|
/**
|
|
865
865
|
* A ref that points to the `TouchRipple` element.
|
|
866
866
|
*/
|
|
867
|
-
touchRippleRef:
|
|
868
|
-
current:
|
|
869
|
-
pulsate:
|
|
870
|
-
start:
|
|
871
|
-
stop:
|
|
867
|
+
touchRippleRef: t.oneOfType([t.func, t.shape({
|
|
868
|
+
current: t.shape({
|
|
869
|
+
pulsate: t.func.isRequired,
|
|
870
|
+
start: t.func.isRequired,
|
|
871
|
+
stop: t.func.isRequired
|
|
872
872
|
})
|
|
873
873
|
})]),
|
|
874
874
|
/**
|
|
875
875
|
* @ignore
|
|
876
876
|
*/
|
|
877
|
-
type:
|
|
877
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string])
|
|
878
878
|
});
|
|
879
879
|
export {
|
|
880
|
-
|
|
880
|
+
ct as B,
|
|
881
881
|
re as T,
|
|
882
882
|
ee as _
|
|
883
883
|
};
|