@amateescu/portal-ui-components 0.0.35-beta0 → 0.0.37-beta0
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/README.md +113 -0
- package/dist/{Button-DG4uye8X.js → Button-BM72-1G6.js} +107 -106
- package/dist/ButtonBase-D6nf3ymf.js +990 -0
- package/dist/{CircularProgress-DpvktFBW.js → CircularProgress-BlQFR6DW.js} +107 -80
- package/dist/Clear-BauR3cPE.js +8 -0
- package/dist/DefaultPropsProvider-BtPfTrMq.js +3449 -0
- package/dist/UserInfoDropdown-rBF0pwlq.js +23 -0
- package/dist/assets/PassportConfirmationModal.css +1 -0
- package/dist/assets/PassportErrorModal.css +1 -0
- package/dist/assets/PassportKpiCard.css +1 -0
- package/dist/assets/PassportTabHeader.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts +3 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.js +31 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts +23 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts +8 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.d.ts +2 -1
- package/dist/components/InfoModal/InfoModal.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.js +26 -15
- package/dist/components/InfoModal/InfoModal.stories.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.stories.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +66 -6
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.d.ts +2 -1
- package/dist/components/Login/Login.d.ts.map +1 -0
- package/dist/components/Login/Login.js +43 -8885
- package/dist/components/Login/Login.stories.d.ts +3 -2
- package/dist/components/Login/Login.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.types.d.ts +1 -0
- package/dist/components/Login/Login.types.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts +3 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.js +41 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts +22 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts +14 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.d.ts +4 -0
- package/dist/components/PassportButton/PassportButton.d.ts.map +1 -0
- package/dist/components/{CustomButton/CustomButton.js → PassportButton/PassportButton.js} +10 -6
- package/dist/components/{CustomButton/CustomButton.stories.d.ts → PassportButton/PassportButton.stories.d.ts} +2 -1
- package/dist/components/PassportButton/PassportButton.stories.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts +9 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts +9 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.js +108 -0
- package/dist/components/{ErrorModal/ErrorModal.stories.d.ts → PassportConfirmationModal/PassportConfirmationModal.stories.d.ts} +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts +3 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.js +1514 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts +25 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts +15 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts +3 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +5419 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts +30 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts +16 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts +3 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.js +37 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts +25 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts +14 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts.map +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts +8 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts.map +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.js +68 -0
- package/dist/components/{ConfirmationModal/ConfirmationModal.stories.d.ts → PassportErrorModal/PassportErrorModal.stories.d.ts} +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.stories.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts +3 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.js +56 -0
- package/dist/components/{CustomFooter/CustomFooter.stories.d.ts → PassportFooter/PassportFooter.stories.d.ts} +1 -0
- package/dist/components/PassportFooter/PassportFooter.stories.d.ts.map +1 -0
- package/dist/components/{CustomFooter/CustomFooter.types.d.ts → PassportFooter/PassportFooter.types.d.ts} +3 -2
- package/dist/components/PassportFooter/PassportFooter.types.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.d.ts +3 -0
- package/dist/components/PassportInput/PassportInput.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.js +51 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts +24 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts +9 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.js +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts +3 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.js +43 -0
- package/dist/components/{KpiCard/KpiCard.stories.d.ts → PassportKpiCard/PassportKpiCard.stories.d.ts} +3 -2
- package/dist/components/PassportKpiCard/PassportKpiCard.stories.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts +11 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.js +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts +3 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.js +22 -0
- package/dist/components/{KpiWrapper/KpiWrapper.stories.d.ts → PassportKpiWrapper/PassportKpiWrapper.stories.d.ts} +6 -5
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.stories.d.ts.map +1 -0
- package/dist/components/{KpiWrapper/KpiWrapper.types.d.ts → PassportKpiWrapper/PassportKpiWrapper.types.d.ts} +2 -1
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.js +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts +3 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +72 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts +24 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts +12 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.js +1 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts +3 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.js → PassportPagination/PassportPagination.js} +215 -218
- package/dist/components/{CustomPagination/CustomPagination.stories.d.ts → PassportPagination/PassportPagination.stories.d.ts} +3 -2
- package/dist/components/PassportPagination/PassportPagination.stories.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.types.d.ts → PassportPagination/PassportPagination.types.d.ts} +2 -1
- package/dist/components/PassportPagination/PassportPagination.types.d.ts.map +1 -0
- package/dist/components/PassportPagination/PassportPagination.types.js +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts +7 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts.map +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.js +14 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts +21 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts +3 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.js +23 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts +22 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.js +89 -41
- package/dist/components/SideMenu/SideMenu.stories.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +3 -3
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +3 -2
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts.map +1 -0
- package/dist/components/index.d.ts +17 -7
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +45 -28
- package/dist/createSimplePaletteValueFilter-Bz8RuRaa.js +23 -0
- package/dist/{createSvgIcon-DNSRtm3a.js → createSvgIcon-B-eIQ7rU.js} +118 -124
- package/dist/extendSxProp-QNe1Nf_s.js +51 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +63 -46
- package/dist/mock.d.ts +1 -0
- package/dist/mock.d.ts.map +1 -0
- package/dist/portal-utils/chunkArray.d.ts +1 -0
- package/dist/portal-utils/chunkArray.d.ts.map +1 -0
- package/dist/portal-utils/cn.d.ts +1 -0
- package/dist/portal-utils/cn.d.ts.map +1 -0
- package/dist/portal-utils/formatters.d.ts +1 -0
- package/dist/portal-utils/formatters.d.ts.map +1 -0
- package/dist/portal-utils/formatters.js +291 -334
- package/dist/portal-utils/index.d.ts +2 -1
- package/dist/portal-utils/index.d.ts.map +1 -0
- package/dist/portal-utils/loggerService.d.ts +1 -0
- package/dist/portal-utils/loggerService.d.ts.map +1 -0
- package/dist/portal-utils/pageCount.d.ts +1 -0
- package/dist/portal-utils/pageCount.d.ts.map +1 -0
- package/dist/types/BusinessDayRange.d.ts +1 -0
- package/dist/types/BusinessDayRange.d.ts.map +1 -0
- package/dist/types/Column.d.ts +1 -0
- package/dist/types/Column.d.ts.map +1 -0
- package/dist/types/CultureStore.d.ts +1 -0
- package/dist/types/CultureStore.d.ts.map +1 -0
- package/dist/types/CustomSvg.d.ts +1 -0
- package/dist/types/CustomSvg.d.ts.map +1 -0
- package/dist/types/LoginRequest.d.ts +1 -0
- package/dist/types/LoginRequest.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/useMobilePicker-hk2kq6ev.js +19662 -0
- package/dist/useSlot-CXnK24LX.js +189 -0
- package/package.json +39 -38
- package/dist/Box-C-zPAMZN.js +0 -102
- package/dist/ButtonBase-DrxMtoTW.js +0 -966
- package/dist/EllipsisOutlined-DfCu6q_b.js +0 -2467
- package/dist/InvencoGVR-qnTq-d6S.js +0 -5
- package/dist/PurePanel-DvQTygSo.js +0 -2209
- package/dist/Skeleton-Bh0A9xju.js +0 -565
- package/dist/UserInfoDropdown-CWTcdnqL.js +0 -3755
- package/dist/VModalIcon-D7L4bQLO.js +0 -5
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/assets/ConfirmationModal.css +0 -1
- package/dist/assets/KpiCard.css +0 -1
- package/dist/assets/globals.css +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -51
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -36
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +0 -11
- package/dist/components/CustomButton/CustomButton.d.ts +0 -3
- package/dist/components/CustomButton/CustomButton.stories.js +0 -42
- package/dist/components/CustomButton/CustomeButton.types.d.ts +0 -8
- package/dist/components/CustomFooter/CustomFooter.d.ts +0 -2
- package/dist/components/CustomFooter/CustomFooter.js +0 -32
- package/dist/components/CustomFooter/CustomFooter.stories.js +0 -40
- package/dist/components/CustomPagination/CustomPagination.d.ts +0 -3
- package/dist/components/CustomPagination/CustomPagination.stories.js +0 -25
- package/dist/components/ErrorModal/ErrorModal.d.ts +0 -2
- package/dist/components/ErrorModal/ErrorModal.js +0 -40
- package/dist/components/ErrorModal/ErrorModal.stories.js +0 -33
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +0 -8
- package/dist/components/InfoModal/InfoModal.stories.js +0 -33
- package/dist/components/KpiCard/KpiCard.d.ts +0 -2
- package/dist/components/KpiCard/KpiCard.js +0 -2439
- package/dist/components/KpiCard/KpiCard.stories.js +0 -26
- package/dist/components/KpiCard/KpiCard.types.d.ts +0 -8
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +0 -2
- package/dist/components/KpiWrapper/KpiWrapper.js +0 -11
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +0 -56
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +0 -14
- package/dist/components/Login/Login.stories.js +0 -24212
- package/dist/components/SideMenu/SideMenu.stories.js +0 -81
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +0 -23
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +0 -36
- package/dist/context-dCWAMvX5.js +0 -7320
- package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +0 -3457
- package/dist/index-B00P9-H3.js +0 -1681
- package/dist/index-BBBjHj3B.js +0 -411
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
- package/dist/useSlot-B4sbbhYz.js +0 -188
- /package/dist/assets/{ErrorModal.css → InfoModal.css} +0 -0
- /package/dist/assets/{CustomFooter.css → PassportFooter.css} +0 -0
- /package/dist/assets/{KpiWrapper.css → PassportKpiWrapper.css} +0 -0
- /package/dist/components/{ConfirmationModal/ConfirmationModal.types.js → DebouncedPassportInput/DebouncedPassportInput.types.js} +0 -0
- /package/dist/components/{CustomButton/CustomeButton.types.js → PassportAutocomplete/PassportAutocomplete.types.js} +0 -0
- /package/dist/components/{CustomFooter/CustomFooter.types.js → PassportButton/PassportButton.types.js} +0 -0
- /package/dist/components/{CustomPagination/CustomPagination.types.js → PassportDatePicker/PassportDatePicker.types.js} +0 -0
- /package/dist/components/{ErrorModal/ErrorModal.types.js → PassportDateTimePicker/PassportDateTimePicker.types.js} +0 -0
- /package/dist/components/{KpiCard/KpiCard.types.js → PassportDropdown/PassportDropdown.types.js} +0 -0
- /package/dist/components/{KpiWrapper/KpiWrapper.types.js → PassportFooter/PassportFooter.types.js} +0 -0
|
@@ -1,966 +0,0 @@
|
|
|
1
|
-
var Be = Object.defineProperty;
|
|
2
|
-
var Le = (t, e, n) => e in t ? Be(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var X = (t, e, n) => Le(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import * as c from "react";
|
|
5
|
-
import K, { isValidElement as G, cloneElement as Z, Children as Oe } from "react";
|
|
6
|
-
import { P as o, f as ke, c as C, a as fe, u as de, s as ne, g as je, d as $e } from "./createSimplePaletteValueFilter-CwLqlaaZ.js";
|
|
7
|
-
import { jsx as F, jsxs as Fe } from "react/jsx-runtime";
|
|
8
|
-
import { a as Ue, _ as ze, b as _e, c as Ae } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
9
|
-
import { keyframes as oe } from "@emotion/react";
|
|
10
|
-
const Ye = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
|
|
11
|
-
function J(t) {
|
|
12
|
-
const e = c.useRef(t);
|
|
13
|
-
return Ye(() => {
|
|
14
|
-
e.current = t;
|
|
15
|
-
}), c.useRef((...n) => (
|
|
16
|
-
// @ts-expect-error hide `this`
|
|
17
|
-
(0, e.current)(...n)
|
|
18
|
-
)).current;
|
|
19
|
-
}
|
|
20
|
-
function ae(...t) {
|
|
21
|
-
const e = c.useRef(void 0), n = c.useCallback((u) => {
|
|
22
|
-
const i = t.map((r) => {
|
|
23
|
-
if (r == null)
|
|
24
|
-
return null;
|
|
25
|
-
if (typeof r == "function") {
|
|
26
|
-
const s = r, l = s(u);
|
|
27
|
-
return typeof l == "function" ? l : () => {
|
|
28
|
-
s(null);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return r.current = u, () => {
|
|
32
|
-
r.current = null;
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
return () => {
|
|
36
|
-
i.forEach((r) => r == null ? void 0 : r());
|
|
37
|
-
};
|
|
38
|
-
}, t);
|
|
39
|
-
return c.useMemo(() => t.every((u) => u == null) ? null : (u) => {
|
|
40
|
-
e.current && (e.current(), e.current = void 0), u != null && (e.current = n(u));
|
|
41
|
-
}, t);
|
|
42
|
-
}
|
|
43
|
-
const Xe = o.oneOfType([o.func, o.object]);
|
|
44
|
-
function Ke(t) {
|
|
45
|
-
const {
|
|
46
|
-
prototype: e = {}
|
|
47
|
-
} = t;
|
|
48
|
-
return !!e.isReactComponent;
|
|
49
|
-
}
|
|
50
|
-
function qe(t, e, n, u, i) {
|
|
51
|
-
const r = t[e], s = i || e;
|
|
52
|
-
if (r == null || // When server-side rendering React doesn't warn either.
|
|
53
|
-
// This is not an accurate check for SSR.
|
|
54
|
-
// This is only in place for emotion compat.
|
|
55
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
56
|
-
typeof window > "u")
|
|
57
|
-
return null;
|
|
58
|
-
let l;
|
|
59
|
-
return typeof r == "function" && !Ke(r) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${u} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
60
|
-
}
|
|
61
|
-
const He = ke(o.elementType, qe);
|
|
62
|
-
function le(t) {
|
|
63
|
-
try {
|
|
64
|
-
return t.matches(":focus-visible");
|
|
65
|
-
} catch {
|
|
66
|
-
process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
|
|
67
|
-
`));
|
|
68
|
-
}
|
|
69
|
-
return !1;
|
|
70
|
-
}
|
|
71
|
-
const ce = {};
|
|
72
|
-
function he(t, e) {
|
|
73
|
-
const n = c.useRef(ce);
|
|
74
|
-
return n.current === ce && (n.current = t(e)), n;
|
|
75
|
-
}
|
|
76
|
-
class Q {
|
|
77
|
-
constructor() {
|
|
78
|
-
X(this, "mountEffect", () => {
|
|
79
|
-
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
80
|
-
});
|
|
81
|
-
this.ref = {
|
|
82
|
-
current: null
|
|
83
|
-
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
84
|
-
}
|
|
85
|
-
/** React ref to the ripple instance */
|
|
86
|
-
/** If the ripple component should be mounted */
|
|
87
|
-
/** Promise that resolves when the ripple component is mounted */
|
|
88
|
-
/** If the ripple component has been mounted */
|
|
89
|
-
/** React state hook setter */
|
|
90
|
-
static create() {
|
|
91
|
-
return new Q();
|
|
92
|
-
}
|
|
93
|
-
static use() {
|
|
94
|
-
const e = he(Q.create).current, [n, u] = c.useState(!1);
|
|
95
|
-
return e.shouldMount = n, e.setShouldMount = u, c.useEffect(e.mountEffect, [n]), e;
|
|
96
|
-
}
|
|
97
|
-
mount() {
|
|
98
|
-
return this.mounted || (this.mounted = Ge(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
99
|
-
}
|
|
100
|
-
/* Ripple API */
|
|
101
|
-
start(...e) {
|
|
102
|
-
this.mount().then(() => {
|
|
103
|
-
var n;
|
|
104
|
-
return (n = this.ref.current) == null ? void 0 : n.start(...e);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
stop(...e) {
|
|
108
|
-
this.mount().then(() => {
|
|
109
|
-
var n;
|
|
110
|
-
return (n = this.ref.current) == null ? void 0 : n.stop(...e);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
pulsate(...e) {
|
|
114
|
-
this.mount().then(() => {
|
|
115
|
-
var n;
|
|
116
|
-
return (n = this.ref.current) == null ? void 0 : n.pulsate(...e);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function We() {
|
|
121
|
-
return Q.use();
|
|
122
|
-
}
|
|
123
|
-
function Ge() {
|
|
124
|
-
let t, e;
|
|
125
|
-
const n = new Promise((u, i) => {
|
|
126
|
-
t = u, e = i;
|
|
127
|
-
});
|
|
128
|
-
return n.resolve = t, n.reject = e, n;
|
|
129
|
-
}
|
|
130
|
-
function Ze(t, e) {
|
|
131
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ue(t, e);
|
|
132
|
-
}
|
|
133
|
-
const pe = K.createContext(null);
|
|
134
|
-
function re(t, e) {
|
|
135
|
-
var n = function(r) {
|
|
136
|
-
return e && G(r) ? e(r) : r;
|
|
137
|
-
}, u = /* @__PURE__ */ Object.create(null);
|
|
138
|
-
return t && Oe.map(t, function(i) {
|
|
139
|
-
return i;
|
|
140
|
-
}).forEach(function(i) {
|
|
141
|
-
u[i.key] = n(i);
|
|
142
|
-
}), u;
|
|
143
|
-
}
|
|
144
|
-
function Je(t, e) {
|
|
145
|
-
t = t || {}, e = e || {};
|
|
146
|
-
function n(h) {
|
|
147
|
-
return h in e ? e[h] : t[h];
|
|
148
|
-
}
|
|
149
|
-
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
150
|
-
for (var r in t)
|
|
151
|
-
r in e ? i.length && (u[r] = i, i = []) : i.push(r);
|
|
152
|
-
var s, l = {};
|
|
153
|
-
for (var p in e) {
|
|
154
|
-
if (u[p])
|
|
155
|
-
for (s = 0; s < u[p].length; s++) {
|
|
156
|
-
var d = u[p][s];
|
|
157
|
-
l[u[p][s]] = n(d);
|
|
158
|
-
}
|
|
159
|
-
l[p] = n(p);
|
|
160
|
-
}
|
|
161
|
-
for (s = 0; s < i.length; s++)
|
|
162
|
-
l[i[s]] = n(i[s]);
|
|
163
|
-
return l;
|
|
164
|
-
}
|
|
165
|
-
function O(t, e, n) {
|
|
166
|
-
return n[e] != null ? n[e] : t.props[e];
|
|
167
|
-
}
|
|
168
|
-
function Qe(t, e) {
|
|
169
|
-
return re(t.children, function(n) {
|
|
170
|
-
return Z(n, {
|
|
171
|
-
onExited: e.bind(null, n),
|
|
172
|
-
in: !0,
|
|
173
|
-
appear: O(n, "appear", t),
|
|
174
|
-
enter: O(n, "enter", t),
|
|
175
|
-
exit: O(n, "exit", t)
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
function et(t, e, n) {
|
|
180
|
-
var u = re(t.children), i = Je(e, u);
|
|
181
|
-
return Object.keys(i).forEach(function(r) {
|
|
182
|
-
var s = i[r];
|
|
183
|
-
if (G(s)) {
|
|
184
|
-
var l = r in e, p = r in u, d = e[r], h = G(d) && !d.props.in;
|
|
185
|
-
p && (!l || h) ? i[r] = Z(s, {
|
|
186
|
-
onExited: n.bind(null, s),
|
|
187
|
-
in: !0,
|
|
188
|
-
exit: O(s, "exit", t),
|
|
189
|
-
enter: O(s, "enter", t)
|
|
190
|
-
}) : !p && l && !h ? i[r] = Z(s, {
|
|
191
|
-
in: !1
|
|
192
|
-
}) : p && l && G(d) && (i[r] = Z(s, {
|
|
193
|
-
onExited: n.bind(null, s),
|
|
194
|
-
in: d.props.in,
|
|
195
|
-
exit: O(s, "exit", t),
|
|
196
|
-
enter: O(s, "enter", t)
|
|
197
|
-
}));
|
|
198
|
-
}
|
|
199
|
-
}), i;
|
|
200
|
-
}
|
|
201
|
-
var tt = Object.values || function(t) {
|
|
202
|
-
return Object.keys(t).map(function(e) {
|
|
203
|
-
return t[e];
|
|
204
|
-
});
|
|
205
|
-
}, nt = {
|
|
206
|
-
component: "div",
|
|
207
|
-
childFactory: function(e) {
|
|
208
|
-
return e;
|
|
209
|
-
}
|
|
210
|
-
}, ie = /* @__PURE__ */ function(t) {
|
|
211
|
-
Ze(e, t);
|
|
212
|
-
function e(u, i) {
|
|
213
|
-
var r;
|
|
214
|
-
r = t.call(this, u, i) || this;
|
|
215
|
-
var s = r.handleExited.bind(Ae(r));
|
|
216
|
-
return r.state = {
|
|
217
|
-
contextValue: {
|
|
218
|
-
isMounting: !0
|
|
219
|
-
},
|
|
220
|
-
handleExited: s,
|
|
221
|
-
firstRender: !0
|
|
222
|
-
}, r;
|
|
223
|
-
}
|
|
224
|
-
var n = e.prototype;
|
|
225
|
-
return n.componentDidMount = function() {
|
|
226
|
-
this.mounted = !0, this.setState({
|
|
227
|
-
contextValue: {
|
|
228
|
-
isMounting: !1
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}, n.componentWillUnmount = function() {
|
|
232
|
-
this.mounted = !1;
|
|
233
|
-
}, e.getDerivedStateFromProps = function(i, r) {
|
|
234
|
-
var s = r.children, l = r.handleExited, p = r.firstRender;
|
|
235
|
-
return {
|
|
236
|
-
children: p ? Qe(i, l) : et(i, s, l),
|
|
237
|
-
firstRender: !1
|
|
238
|
-
};
|
|
239
|
-
}, n.handleExited = function(i, r) {
|
|
240
|
-
var s = re(this.props.children);
|
|
241
|
-
i.key in s || (i.props.onExited && i.props.onExited(r), this.mounted && this.setState(function(l) {
|
|
242
|
-
var p = ze({}, l.children);
|
|
243
|
-
return delete p[i.key], {
|
|
244
|
-
children: p
|
|
245
|
-
};
|
|
246
|
-
}));
|
|
247
|
-
}, n.render = function() {
|
|
248
|
-
var i = this.props, r = i.component, s = i.childFactory, l = _e(i, ["component", "childFactory"]), p = this.state.contextValue, d = tt(this.state.children).map(s);
|
|
249
|
-
return delete l.appear, delete l.enter, delete l.exit, r === null ? /* @__PURE__ */ K.createElement(pe.Provider, {
|
|
250
|
-
value: p
|
|
251
|
-
}, d) : /* @__PURE__ */ K.createElement(pe.Provider, {
|
|
252
|
-
value: p
|
|
253
|
-
}, /* @__PURE__ */ K.createElement(r, l, d));
|
|
254
|
-
}, e;
|
|
255
|
-
}(K.Component);
|
|
256
|
-
ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
257
|
-
/**
|
|
258
|
-
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
259
|
-
* behavior by providing a `component` prop.
|
|
260
|
-
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
261
|
-
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
262
|
-
* borks your css styles.
|
|
263
|
-
*/
|
|
264
|
-
component: o.any,
|
|
265
|
-
/**
|
|
266
|
-
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
267
|
-
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
268
|
-
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
269
|
-
* with our `<Fade>` example.
|
|
270
|
-
*
|
|
271
|
-
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
272
|
-
* children, sometimes you may want to have a single transition child with
|
|
273
|
-
* content that you want to be transitioned out and in when you change it
|
|
274
|
-
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
275
|
-
* the transition child as you change its content, this will cause
|
|
276
|
-
* `TransitionGroup` to transition the child out and back in.
|
|
277
|
-
*/
|
|
278
|
-
children: o.node,
|
|
279
|
-
/**
|
|
280
|
-
* A convenience prop that enables or disables appear animations
|
|
281
|
-
* for all children. Note that specifying this will override any defaults set
|
|
282
|
-
* on individual children Transitions.
|
|
283
|
-
*/
|
|
284
|
-
appear: o.bool,
|
|
285
|
-
/**
|
|
286
|
-
* A convenience prop that enables or disables enter animations
|
|
287
|
-
* for all children. Note that specifying this will override any defaults set
|
|
288
|
-
* on individual children Transitions.
|
|
289
|
-
*/
|
|
290
|
-
enter: o.bool,
|
|
291
|
-
/**
|
|
292
|
-
* A convenience prop that enables or disables exit animations
|
|
293
|
-
* for all children. Note that specifying this will override any defaults set
|
|
294
|
-
* on individual children Transitions.
|
|
295
|
-
*/
|
|
296
|
-
exit: o.bool,
|
|
297
|
-
/**
|
|
298
|
-
* You may need to apply reactive updates to a child as it is exiting.
|
|
299
|
-
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
300
|
-
* child the element has already been removed and not accessible to the consumer.
|
|
301
|
-
*
|
|
302
|
-
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
303
|
-
* to wrap every child, even the ones that are leaving.
|
|
304
|
-
*
|
|
305
|
-
* @type Function(child: ReactElement) -> ReactElement
|
|
306
|
-
*/
|
|
307
|
-
childFactory: o.func
|
|
308
|
-
} : {};
|
|
309
|
-
ie.defaultProps = nt;
|
|
310
|
-
const ot = [];
|
|
311
|
-
function rt(t) {
|
|
312
|
-
c.useEffect(t, ot);
|
|
313
|
-
}
|
|
314
|
-
class se {
|
|
315
|
-
constructor() {
|
|
316
|
-
X(this, "currentId", null);
|
|
317
|
-
X(this, "clear", () => {
|
|
318
|
-
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
319
|
-
});
|
|
320
|
-
X(this, "disposeEffect", () => this.clear);
|
|
321
|
-
}
|
|
322
|
-
static create() {
|
|
323
|
-
return new se();
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
327
|
-
*/
|
|
328
|
-
start(e, n) {
|
|
329
|
-
this.clear(), this.currentId = setTimeout(() => {
|
|
330
|
-
this.currentId = null, n();
|
|
331
|
-
}, e);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
function it() {
|
|
335
|
-
const t = he(se.create).current;
|
|
336
|
-
return rt(t.disposeEffect), t;
|
|
337
|
-
}
|
|
338
|
-
function me(t) {
|
|
339
|
-
const {
|
|
340
|
-
className: e,
|
|
341
|
-
classes: n,
|
|
342
|
-
pulsate: u = !1,
|
|
343
|
-
rippleX: i,
|
|
344
|
-
rippleY: r,
|
|
345
|
-
rippleSize: s,
|
|
346
|
-
in: l,
|
|
347
|
-
onExited: p,
|
|
348
|
-
timeout: d
|
|
349
|
-
} = t, [h, m] = c.useState(!1), M = C(e, n.ripple, n.rippleVisible, u && n.ripplePulsate), N = {
|
|
350
|
-
width: s,
|
|
351
|
-
height: s,
|
|
352
|
-
top: -(s / 2) + r,
|
|
353
|
-
left: -(s / 2) + i
|
|
354
|
-
}, g = C(n.child, h && n.childLeaving, u && n.childPulsate);
|
|
355
|
-
return !l && !h && m(!0), c.useEffect(() => {
|
|
356
|
-
if (!l && p != null) {
|
|
357
|
-
const S = setTimeout(p, d);
|
|
358
|
-
return () => {
|
|
359
|
-
clearTimeout(S);
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
}, [p, l, d]), /* @__PURE__ */ F("span", {
|
|
363
|
-
className: M,
|
|
364
|
-
style: N,
|
|
365
|
-
children: /* @__PURE__ */ F("span", {
|
|
366
|
-
className: g
|
|
367
|
-
})
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
371
|
-
/**
|
|
372
|
-
* Override or extend the styles applied to the component.
|
|
373
|
-
*/
|
|
374
|
-
classes: o.object.isRequired,
|
|
375
|
-
className: o.string,
|
|
376
|
-
/**
|
|
377
|
-
* @ignore - injected from TransitionGroup
|
|
378
|
-
*/
|
|
379
|
-
in: o.bool,
|
|
380
|
-
/**
|
|
381
|
-
* @ignore - injected from TransitionGroup
|
|
382
|
-
*/
|
|
383
|
-
onExited: o.func,
|
|
384
|
-
/**
|
|
385
|
-
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
386
|
-
*/
|
|
387
|
-
pulsate: o.bool,
|
|
388
|
-
/**
|
|
389
|
-
* Diameter of the ripple.
|
|
390
|
-
*/
|
|
391
|
-
rippleSize: o.number,
|
|
392
|
-
/**
|
|
393
|
-
* Horizontal position of the ripple center.
|
|
394
|
-
*/
|
|
395
|
-
rippleX: o.number,
|
|
396
|
-
/**
|
|
397
|
-
* Vertical position of the ripple center.
|
|
398
|
-
*/
|
|
399
|
-
rippleY: o.number,
|
|
400
|
-
/**
|
|
401
|
-
* exit delay
|
|
402
|
-
*/
|
|
403
|
-
timeout: o.number.isRequired
|
|
404
|
-
});
|
|
405
|
-
const y = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), te = 550, st = 80, ut = oe`
|
|
406
|
-
0% {
|
|
407
|
-
transform: scale(0);
|
|
408
|
-
opacity: 0.1;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
100% {
|
|
412
|
-
transform: scale(1);
|
|
413
|
-
opacity: 0.3;
|
|
414
|
-
}
|
|
415
|
-
`, at = oe`
|
|
416
|
-
0% {
|
|
417
|
-
opacity: 1;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
100% {
|
|
421
|
-
opacity: 0;
|
|
422
|
-
}
|
|
423
|
-
`, lt = oe`
|
|
424
|
-
0% {
|
|
425
|
-
transform: scale(1);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
50% {
|
|
429
|
-
transform: scale(0.92);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
100% {
|
|
433
|
-
transform: scale(1);
|
|
434
|
-
}
|
|
435
|
-
`, ct = ne("span", {
|
|
436
|
-
name: "MuiTouchRipple",
|
|
437
|
-
slot: "Root"
|
|
438
|
-
})({
|
|
439
|
-
overflow: "hidden",
|
|
440
|
-
pointerEvents: "none",
|
|
441
|
-
position: "absolute",
|
|
442
|
-
zIndex: 0,
|
|
443
|
-
top: 0,
|
|
444
|
-
right: 0,
|
|
445
|
-
bottom: 0,
|
|
446
|
-
left: 0,
|
|
447
|
-
borderRadius: "inherit"
|
|
448
|
-
}), pt = ne(me, {
|
|
449
|
-
name: "MuiTouchRipple",
|
|
450
|
-
slot: "Ripple"
|
|
451
|
-
})`
|
|
452
|
-
opacity: 0;
|
|
453
|
-
position: absolute;
|
|
454
|
-
|
|
455
|
-
&.${y.rippleVisible} {
|
|
456
|
-
opacity: 0.3;
|
|
457
|
-
transform: scale(1);
|
|
458
|
-
animation-name: ${ut};
|
|
459
|
-
animation-duration: ${te}ms;
|
|
460
|
-
animation-timing-function: ${({
|
|
461
|
-
theme: t
|
|
462
|
-
}) => t.transitions.easing.easeInOut};
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
&.${y.ripplePulsate} {
|
|
466
|
-
animation-duration: ${({
|
|
467
|
-
theme: t
|
|
468
|
-
}) => t.transitions.duration.shorter}ms;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
& .${y.child} {
|
|
472
|
-
opacity: 1;
|
|
473
|
-
display: block;
|
|
474
|
-
width: 100%;
|
|
475
|
-
height: 100%;
|
|
476
|
-
border-radius: 50%;
|
|
477
|
-
background-color: currentColor;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
& .${y.childLeaving} {
|
|
481
|
-
opacity: 0;
|
|
482
|
-
animation-name: ${at};
|
|
483
|
-
animation-duration: ${te}ms;
|
|
484
|
-
animation-timing-function: ${({
|
|
485
|
-
theme: t
|
|
486
|
-
}) => t.transitions.easing.easeInOut};
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
& .${y.childPulsate} {
|
|
490
|
-
position: absolute;
|
|
491
|
-
/* @noflip */
|
|
492
|
-
left: 0px;
|
|
493
|
-
top: 0;
|
|
494
|
-
animation-name: ${lt};
|
|
495
|
-
animation-duration: 2500ms;
|
|
496
|
-
animation-timing-function: ${({
|
|
497
|
-
theme: t
|
|
498
|
-
}) => t.transitions.easing.easeInOut};
|
|
499
|
-
animation-iteration-count: infinite;
|
|
500
|
-
animation-delay: 200ms;
|
|
501
|
-
}
|
|
502
|
-
`, be = /* @__PURE__ */ c.forwardRef(function(e, n) {
|
|
503
|
-
const u = de({
|
|
504
|
-
props: e,
|
|
505
|
-
name: "MuiTouchRipple"
|
|
506
|
-
}), {
|
|
507
|
-
center: i = !1,
|
|
508
|
-
classes: r = {},
|
|
509
|
-
className: s,
|
|
510
|
-
...l
|
|
511
|
-
} = u, [p, d] = c.useState([]), h = c.useRef(0), m = c.useRef(null);
|
|
512
|
-
c.useEffect(() => {
|
|
513
|
-
m.current && (m.current(), m.current = null);
|
|
514
|
-
}, [p]);
|
|
515
|
-
const M = c.useRef(!1), N = it(), g = c.useRef(null), S = c.useRef(null), x = c.useCallback((f) => {
|
|
516
|
-
const {
|
|
517
|
-
pulsate: T,
|
|
518
|
-
rippleX: R,
|
|
519
|
-
rippleY: $,
|
|
520
|
-
rippleSize: I,
|
|
521
|
-
cb: U
|
|
522
|
-
} = f;
|
|
523
|
-
d((E) => [...E, /* @__PURE__ */ F(pt, {
|
|
524
|
-
classes: {
|
|
525
|
-
ripple: C(r.ripple, y.ripple),
|
|
526
|
-
rippleVisible: C(r.rippleVisible, y.rippleVisible),
|
|
527
|
-
ripplePulsate: C(r.ripplePulsate, y.ripplePulsate),
|
|
528
|
-
child: C(r.child, y.child),
|
|
529
|
-
childLeaving: C(r.childLeaving, y.childLeaving),
|
|
530
|
-
childPulsate: C(r.childPulsate, y.childPulsate)
|
|
531
|
-
},
|
|
532
|
-
timeout: te,
|
|
533
|
-
pulsate: T,
|
|
534
|
-
rippleX: R,
|
|
535
|
-
rippleY: $,
|
|
536
|
-
rippleSize: I
|
|
537
|
-
}, h.current)]), h.current += 1, m.current = U;
|
|
538
|
-
}, [r]), k = c.useCallback((f = {}, T = {}, R = () => {
|
|
539
|
-
}) => {
|
|
540
|
-
const {
|
|
541
|
-
pulsate: $ = !1,
|
|
542
|
-
center: I = i || T.pulsate,
|
|
543
|
-
fakeElement: U = !1
|
|
544
|
-
// For test purposes
|
|
545
|
-
} = T;
|
|
546
|
-
if ((f == null ? void 0 : f.type) === "mousedown" && M.current) {
|
|
547
|
-
M.current = !1;
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
(f == null ? void 0 : f.type) === "touchstart" && (M.current = !0);
|
|
551
|
-
const E = U ? null : S.current, D = E ? E.getBoundingClientRect() : {
|
|
552
|
-
width: 0,
|
|
553
|
-
height: 0,
|
|
554
|
-
left: 0,
|
|
555
|
-
top: 0
|
|
556
|
-
};
|
|
557
|
-
let V, P, v;
|
|
558
|
-
if (I || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
|
|
559
|
-
V = Math.round(D.width / 2), P = Math.round(D.height / 2);
|
|
560
|
-
else {
|
|
561
|
-
const {
|
|
562
|
-
clientX: z,
|
|
563
|
-
clientY: B
|
|
564
|
-
} = f.touches && f.touches.length > 0 ? f.touches[0] : f;
|
|
565
|
-
V = Math.round(z - D.left), P = Math.round(B - D.top);
|
|
566
|
-
}
|
|
567
|
-
if (I)
|
|
568
|
-
v = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), v % 2 === 0 && (v += 1);
|
|
569
|
-
else {
|
|
570
|
-
const z = Math.max(Math.abs((E ? E.clientWidth : 0) - V), V) * 2 + 2, B = Math.max(Math.abs((E ? E.clientHeight : 0) - P), P) * 2 + 2;
|
|
571
|
-
v = Math.sqrt(z ** 2 + B ** 2);
|
|
572
|
-
}
|
|
573
|
-
f != null && f.touches ? g.current === null && (g.current = () => {
|
|
574
|
-
x({
|
|
575
|
-
pulsate: $,
|
|
576
|
-
rippleX: V,
|
|
577
|
-
rippleY: P,
|
|
578
|
-
rippleSize: v,
|
|
579
|
-
cb: R
|
|
580
|
-
});
|
|
581
|
-
}, N.start(st, () => {
|
|
582
|
-
g.current && (g.current(), g.current = null);
|
|
583
|
-
})) : x({
|
|
584
|
-
pulsate: $,
|
|
585
|
-
rippleX: V,
|
|
586
|
-
rippleY: P,
|
|
587
|
-
rippleSize: v,
|
|
588
|
-
cb: R
|
|
589
|
-
});
|
|
590
|
-
}, [i, x, N]), q = c.useCallback(() => {
|
|
591
|
-
k({}, {
|
|
592
|
-
pulsate: !0
|
|
593
|
-
});
|
|
594
|
-
}, [k]), j = c.useCallback((f, T) => {
|
|
595
|
-
if (N.clear(), (f == null ? void 0 : f.type) === "touchend" && g.current) {
|
|
596
|
-
g.current(), g.current = null, N.start(0, () => {
|
|
597
|
-
j(f, T);
|
|
598
|
-
});
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
g.current = null, d((R) => R.length > 0 ? R.slice(1) : R), m.current = T;
|
|
602
|
-
}, [N]);
|
|
603
|
-
return c.useImperativeHandle(n, () => ({
|
|
604
|
-
pulsate: q,
|
|
605
|
-
start: k,
|
|
606
|
-
stop: j
|
|
607
|
-
}), [q, k, j]), /* @__PURE__ */ F(ct, {
|
|
608
|
-
className: C(y.root, r.root, s),
|
|
609
|
-
ref: S,
|
|
610
|
-
...l,
|
|
611
|
-
children: /* @__PURE__ */ F(ie, {
|
|
612
|
-
component: null,
|
|
613
|
-
exit: !0,
|
|
614
|
-
children: p
|
|
615
|
-
})
|
|
616
|
-
});
|
|
617
|
-
});
|
|
618
|
-
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
619
|
-
/**
|
|
620
|
-
* If `true`, the ripple starts at the center of the component
|
|
621
|
-
* rather than at the point of interaction.
|
|
622
|
-
*/
|
|
623
|
-
center: o.bool,
|
|
624
|
-
/**
|
|
625
|
-
* Override or extend the styles applied to the component.
|
|
626
|
-
*/
|
|
627
|
-
classes: o.object,
|
|
628
|
-
/**
|
|
629
|
-
* @ignore
|
|
630
|
-
*/
|
|
631
|
-
className: o.string
|
|
632
|
-
});
|
|
633
|
-
function ft(t) {
|
|
634
|
-
return je("MuiButtonBase", t);
|
|
635
|
-
}
|
|
636
|
-
const dt = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ht = (t) => {
|
|
637
|
-
const {
|
|
638
|
-
disabled: e,
|
|
639
|
-
focusVisible: n,
|
|
640
|
-
focusVisibleClassName: u,
|
|
641
|
-
classes: i
|
|
642
|
-
} = t, s = $e({
|
|
643
|
-
root: ["root", e && "disabled", n && "focusVisible"]
|
|
644
|
-
}, ft, i);
|
|
645
|
-
return n && u && (s.root += ` ${u}`), s;
|
|
646
|
-
}, mt = ne("button", {
|
|
647
|
-
name: "MuiButtonBase",
|
|
648
|
-
slot: "Root"
|
|
649
|
-
})({
|
|
650
|
-
display: "inline-flex",
|
|
651
|
-
alignItems: "center",
|
|
652
|
-
justifyContent: "center",
|
|
653
|
-
position: "relative",
|
|
654
|
-
boxSizing: "border-box",
|
|
655
|
-
WebkitTapHighlightColor: "transparent",
|
|
656
|
-
backgroundColor: "transparent",
|
|
657
|
-
// Reset default value
|
|
658
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
659
|
-
outline: 0,
|
|
660
|
-
border: 0,
|
|
661
|
-
margin: 0,
|
|
662
|
-
// Remove the margin in Safari
|
|
663
|
-
borderRadius: 0,
|
|
664
|
-
padding: 0,
|
|
665
|
-
// Remove the padding in Firefox
|
|
666
|
-
cursor: "pointer",
|
|
667
|
-
userSelect: "none",
|
|
668
|
-
verticalAlign: "middle",
|
|
669
|
-
MozAppearance: "none",
|
|
670
|
-
// Reset
|
|
671
|
-
WebkitAppearance: "none",
|
|
672
|
-
// Reset
|
|
673
|
-
textDecoration: "none",
|
|
674
|
-
// So we take precedent over the style of a native <a /> element.
|
|
675
|
-
color: "inherit",
|
|
676
|
-
"&::-moz-focus-inner": {
|
|
677
|
-
borderStyle: "none"
|
|
678
|
-
// Remove Firefox dotted outline.
|
|
679
|
-
},
|
|
680
|
-
[`&.${dt.disabled}`]: {
|
|
681
|
-
pointerEvents: "none",
|
|
682
|
-
// Disable link interactions
|
|
683
|
-
cursor: "default"
|
|
684
|
-
},
|
|
685
|
-
"@media print": {
|
|
686
|
-
colorAdjust: "exact"
|
|
687
|
-
}
|
|
688
|
-
}), bt = /* @__PURE__ */ c.forwardRef(function(e, n) {
|
|
689
|
-
const u = de({
|
|
690
|
-
props: e,
|
|
691
|
-
name: "MuiButtonBase"
|
|
692
|
-
}), {
|
|
693
|
-
action: i,
|
|
694
|
-
centerRipple: r = !1,
|
|
695
|
-
children: s,
|
|
696
|
-
className: l,
|
|
697
|
-
component: p = "button",
|
|
698
|
-
disabled: d = !1,
|
|
699
|
-
disableRipple: h = !1,
|
|
700
|
-
disableTouchRipple: m = !1,
|
|
701
|
-
focusRipple: M = !1,
|
|
702
|
-
focusVisibleClassName: N,
|
|
703
|
-
LinkComponent: g = "a",
|
|
704
|
-
onBlur: S,
|
|
705
|
-
onClick: x,
|
|
706
|
-
onContextMenu: k,
|
|
707
|
-
onDragLeave: q,
|
|
708
|
-
onFocus: j,
|
|
709
|
-
onFocusVisible: f,
|
|
710
|
-
onKeyDown: T,
|
|
711
|
-
onKeyUp: R,
|
|
712
|
-
onMouseDown: $,
|
|
713
|
-
onMouseLeave: I,
|
|
714
|
-
onMouseUp: U,
|
|
715
|
-
onTouchEnd: E,
|
|
716
|
-
onTouchMove: D,
|
|
717
|
-
onTouchStart: V,
|
|
718
|
-
tabIndex: P = 0,
|
|
719
|
-
TouchRippleProps: v,
|
|
720
|
-
touchRippleRef: z,
|
|
721
|
-
type: B,
|
|
722
|
-
..._
|
|
723
|
-
} = u, A = c.useRef(null), b = We(), ge = ae(b.ref, z), [L, H] = c.useState(!1);
|
|
724
|
-
d && L && H(!1), c.useImperativeHandle(i, () => ({
|
|
725
|
-
focusVisible: () => {
|
|
726
|
-
H(!0), A.current.focus();
|
|
727
|
-
}
|
|
728
|
-
}), []);
|
|
729
|
-
const ye = b.shouldMount && !h && !d;
|
|
730
|
-
c.useEffect(() => {
|
|
731
|
-
L && M && !h && b.pulsate();
|
|
732
|
-
}, [h, M, L, b]);
|
|
733
|
-
const Me = w(b, "start", $, m), Re = w(b, "stop", k, m), Te = w(b, "stop", q, m), Ee = w(b, "stop", U, m), Ce = w(b, "stop", (a) => {
|
|
734
|
-
L && a.preventDefault(), I && I(a);
|
|
735
|
-
}, m), xe = w(b, "start", V, m), Pe = w(b, "stop", E, m), we = w(b, "stop", D, m), Ne = w(b, "stop", (a) => {
|
|
736
|
-
le(a.target) || H(!1), S && S(a);
|
|
737
|
-
}, !1), De = J((a) => {
|
|
738
|
-
A.current || (A.current = a.currentTarget), le(a.target) && (H(!0), f && f(a)), j && j(a);
|
|
739
|
-
}), ee = () => {
|
|
740
|
-
const a = A.current;
|
|
741
|
-
return p && p !== "button" && !(a.tagName === "A" && a.href);
|
|
742
|
-
}, Ve = J((a) => {
|
|
743
|
-
M && !a.repeat && L && a.key === " " && b.stop(a, () => {
|
|
744
|
-
b.start(a);
|
|
745
|
-
}), a.target === a.currentTarget && ee() && a.key === " " && a.preventDefault(), T && T(a), a.target === a.currentTarget && ee() && a.key === "Enter" && !d && (a.preventDefault(), x && x(a));
|
|
746
|
-
}), ve = J((a) => {
|
|
747
|
-
M && a.key === " " && L && !a.defaultPrevented && b.stop(a, () => {
|
|
748
|
-
b.pulsate(a);
|
|
749
|
-
}), R && R(a), x && a.target === a.currentTarget && ee() && a.key === " " && !a.defaultPrevented && x(a);
|
|
750
|
-
});
|
|
751
|
-
let W = p;
|
|
752
|
-
W === "button" && (_.href || _.to) && (W = g);
|
|
753
|
-
const Y = {};
|
|
754
|
-
W === "button" ? (Y.type = B === void 0 ? "button" : B, Y.disabled = d) : (!_.href && !_.to && (Y.role = "button"), d && (Y["aria-disabled"] = d));
|
|
755
|
-
const Se = ae(n, A), ue = {
|
|
756
|
-
...u,
|
|
757
|
-
centerRipple: r,
|
|
758
|
-
component: p,
|
|
759
|
-
disabled: d,
|
|
760
|
-
disableRipple: h,
|
|
761
|
-
disableTouchRipple: m,
|
|
762
|
-
focusRipple: M,
|
|
763
|
-
tabIndex: P,
|
|
764
|
-
focusVisible: L
|
|
765
|
-
}, Ie = ht(ue);
|
|
766
|
-
return /* @__PURE__ */ Fe(mt, {
|
|
767
|
-
as: W,
|
|
768
|
-
className: C(Ie.root, l),
|
|
769
|
-
ownerState: ue,
|
|
770
|
-
onBlur: Ne,
|
|
771
|
-
onClick: x,
|
|
772
|
-
onContextMenu: Re,
|
|
773
|
-
onFocus: De,
|
|
774
|
-
onKeyDown: Ve,
|
|
775
|
-
onKeyUp: ve,
|
|
776
|
-
onMouseDown: Me,
|
|
777
|
-
onMouseLeave: Ce,
|
|
778
|
-
onMouseUp: Ee,
|
|
779
|
-
onDragLeave: Te,
|
|
780
|
-
onTouchEnd: Pe,
|
|
781
|
-
onTouchMove: we,
|
|
782
|
-
onTouchStart: xe,
|
|
783
|
-
ref: Se,
|
|
784
|
-
tabIndex: d ? -1 : P,
|
|
785
|
-
type: B,
|
|
786
|
-
...Y,
|
|
787
|
-
..._,
|
|
788
|
-
children: [s, ye ? /* @__PURE__ */ F(be, {
|
|
789
|
-
ref: ge,
|
|
790
|
-
center: r,
|
|
791
|
-
...v
|
|
792
|
-
}) : null]
|
|
793
|
-
});
|
|
794
|
-
});
|
|
795
|
-
function w(t, e, n, u = !1) {
|
|
796
|
-
return J((i) => (n && n(i), u || t[e](i), !0));
|
|
797
|
-
}
|
|
798
|
-
process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
799
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
800
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
801
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
802
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
803
|
-
/**
|
|
804
|
-
* A ref for imperative actions.
|
|
805
|
-
* It currently only supports `focusVisible()` action.
|
|
806
|
-
*/
|
|
807
|
-
action: Xe,
|
|
808
|
-
/**
|
|
809
|
-
* If `true`, the ripples are centered.
|
|
810
|
-
* They won't start at the cursor interaction position.
|
|
811
|
-
* @default false
|
|
812
|
-
*/
|
|
813
|
-
centerRipple: o.bool,
|
|
814
|
-
/**
|
|
815
|
-
* The content of the component.
|
|
816
|
-
*/
|
|
817
|
-
children: o.node,
|
|
818
|
-
/**
|
|
819
|
-
* Override or extend the styles applied to the component.
|
|
820
|
-
*/
|
|
821
|
-
classes: o.object,
|
|
822
|
-
/**
|
|
823
|
-
* @ignore
|
|
824
|
-
*/
|
|
825
|
-
className: o.string,
|
|
826
|
-
/**
|
|
827
|
-
* The component used for the root node.
|
|
828
|
-
* Either a string to use a HTML element or a component.
|
|
829
|
-
*/
|
|
830
|
-
component: He,
|
|
831
|
-
/**
|
|
832
|
-
* If `true`, the component is disabled.
|
|
833
|
-
* @default false
|
|
834
|
-
*/
|
|
835
|
-
disabled: o.bool,
|
|
836
|
-
/**
|
|
837
|
-
* If `true`, the ripple effect is disabled.
|
|
838
|
-
*
|
|
839
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
840
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
841
|
-
* @default false
|
|
842
|
-
*/
|
|
843
|
-
disableRipple: o.bool,
|
|
844
|
-
/**
|
|
845
|
-
* If `true`, the touch ripple effect is disabled.
|
|
846
|
-
* @default false
|
|
847
|
-
*/
|
|
848
|
-
disableTouchRipple: o.bool,
|
|
849
|
-
/**
|
|
850
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
851
|
-
* @default false
|
|
852
|
-
*/
|
|
853
|
-
focusRipple: o.bool,
|
|
854
|
-
/**
|
|
855
|
-
* This prop can help identify which element has keyboard focus.
|
|
856
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
857
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
858
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
859
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
860
|
-
* if needed.
|
|
861
|
-
*/
|
|
862
|
-
focusVisibleClassName: o.string,
|
|
863
|
-
/**
|
|
864
|
-
* @ignore
|
|
865
|
-
*/
|
|
866
|
-
href: o.any,
|
|
867
|
-
/**
|
|
868
|
-
* The component used to render a link when the `href` prop is provided.
|
|
869
|
-
* @default 'a'
|
|
870
|
-
*/
|
|
871
|
-
LinkComponent: o.elementType,
|
|
872
|
-
/**
|
|
873
|
-
* @ignore
|
|
874
|
-
*/
|
|
875
|
-
onBlur: o.func,
|
|
876
|
-
/**
|
|
877
|
-
* @ignore
|
|
878
|
-
*/
|
|
879
|
-
onClick: o.func,
|
|
880
|
-
/**
|
|
881
|
-
* @ignore
|
|
882
|
-
*/
|
|
883
|
-
onContextMenu: o.func,
|
|
884
|
-
/**
|
|
885
|
-
* @ignore
|
|
886
|
-
*/
|
|
887
|
-
onDragLeave: o.func,
|
|
888
|
-
/**
|
|
889
|
-
* @ignore
|
|
890
|
-
*/
|
|
891
|
-
onFocus: o.func,
|
|
892
|
-
/**
|
|
893
|
-
* Callback fired when the component is focused with a keyboard.
|
|
894
|
-
* We trigger a `onFocus` callback too.
|
|
895
|
-
*/
|
|
896
|
-
onFocusVisible: o.func,
|
|
897
|
-
/**
|
|
898
|
-
* @ignore
|
|
899
|
-
*/
|
|
900
|
-
onKeyDown: o.func,
|
|
901
|
-
/**
|
|
902
|
-
* @ignore
|
|
903
|
-
*/
|
|
904
|
-
onKeyUp: o.func,
|
|
905
|
-
/**
|
|
906
|
-
* @ignore
|
|
907
|
-
*/
|
|
908
|
-
onMouseDown: o.func,
|
|
909
|
-
/**
|
|
910
|
-
* @ignore
|
|
911
|
-
*/
|
|
912
|
-
onMouseLeave: o.func,
|
|
913
|
-
/**
|
|
914
|
-
* @ignore
|
|
915
|
-
*/
|
|
916
|
-
onMouseUp: o.func,
|
|
917
|
-
/**
|
|
918
|
-
* @ignore
|
|
919
|
-
*/
|
|
920
|
-
onTouchEnd: o.func,
|
|
921
|
-
/**
|
|
922
|
-
* @ignore
|
|
923
|
-
*/
|
|
924
|
-
onTouchMove: o.func,
|
|
925
|
-
/**
|
|
926
|
-
* @ignore
|
|
927
|
-
*/
|
|
928
|
-
onTouchStart: o.func,
|
|
929
|
-
/**
|
|
930
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
931
|
-
*/
|
|
932
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
933
|
-
/**
|
|
934
|
-
* @default 0
|
|
935
|
-
*/
|
|
936
|
-
tabIndex: o.number,
|
|
937
|
-
/**
|
|
938
|
-
* Props applied to the `TouchRipple` element.
|
|
939
|
-
*/
|
|
940
|
-
TouchRippleProps: o.object,
|
|
941
|
-
/**
|
|
942
|
-
* A ref that points to the `TouchRipple` element.
|
|
943
|
-
*/
|
|
944
|
-
touchRippleRef: o.oneOfType([o.func, o.shape({
|
|
945
|
-
current: o.shape({
|
|
946
|
-
pulsate: o.func.isRequired,
|
|
947
|
-
start: o.func.isRequired,
|
|
948
|
-
stop: o.func.isRequired
|
|
949
|
-
})
|
|
950
|
-
})]),
|
|
951
|
-
/**
|
|
952
|
-
* @ignore
|
|
953
|
-
*/
|
|
954
|
-
type: o.oneOfType([o.oneOf(["button", "reset", "submit"]), o.string])
|
|
955
|
-
});
|
|
956
|
-
export {
|
|
957
|
-
bt as B,
|
|
958
|
-
pe as T,
|
|
959
|
-
Ze as _,
|
|
960
|
-
Ye as a,
|
|
961
|
-
J as b,
|
|
962
|
-
it as c,
|
|
963
|
-
He as e,
|
|
964
|
-
Xe as r,
|
|
965
|
-
ae as u
|
|
966
|
-
};
|