@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736340751
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-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- 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 +22 -21
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- 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.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- 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 +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.es.js +228 -220
- 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 +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- 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.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- 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/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- 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 +16 -16
- 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 +9 -9
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- 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-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.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 +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- 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-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.cjs +0 -1
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as
|
|
3
|
-
import { m as
|
|
2
|
+
import { H as pe, I as fe, G as W, P as t } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { m as be } from "./memoTheme-D7Fyh_3C.js";
|
|
4
4
|
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import { s as
|
|
6
|
-
import { B as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import { s as j, u as he, c as me } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
6
|
+
import { B as We } from "./ButtonBase-DAWDecOk.js";
|
|
7
|
+
import { c as ke } from "./capitalize-CkF8kU4n.js";
|
|
8
|
+
import { a as tt } from "./useThemeProps-CwEQ4bv2.js";
|
|
9
|
+
import { r as ot } from "./index-DXD5J5Eu.js";
|
|
10
|
+
import { u as ze, a as re } from "./useSlotProps-B31YQlzb.js";
|
|
11
|
+
import { u as rt } from "./useTheme-DyaNKf4e.js";
|
|
12
|
+
import { u as nt } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
+
import { o as De } from "./ownerWindow-niciwP7I.js";
|
|
14
|
+
import { d as $e } from "./debounce-46wSf_lW.js";
|
|
15
|
+
import { u as de } from "./useEventCallback-BAQJJ3ye.js";
|
|
16
|
+
import { r as lt } from "./refType-DKYKROQk.js";
|
|
17
|
+
import { c as Ae } from "./createSvgIcon-C8nGcfF4.js";
|
|
18
|
+
import { o as st } from "./ownerDocument-CUrv0DIK.js";
|
|
19
|
+
function at(o) {
|
|
20
|
+
return pe("MuiTab", o);
|
|
18
21
|
}
|
|
19
|
-
const T =
|
|
22
|
+
const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), it = (o) => {
|
|
20
23
|
const {
|
|
21
|
-
classes:
|
|
24
|
+
classes: e,
|
|
22
25
|
textColor: l,
|
|
23
26
|
fullWidth: d,
|
|
24
27
|
wrapped: i,
|
|
@@ -27,24 +30,24 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
27
30
|
selected: h,
|
|
28
31
|
disabled: f
|
|
29
32
|
} = o, S = {
|
|
30
|
-
root: ["root", u && b && "labelIcon", `textColor${
|
|
33
|
+
root: ["root", u && b && "labelIcon", `textColor${ke(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
31
34
|
icon: ["iconWrapper", "icon"]
|
|
32
35
|
};
|
|
33
|
-
return
|
|
34
|
-
},
|
|
36
|
+
return me(S, at, e);
|
|
37
|
+
}, ct = j(We, {
|
|
35
38
|
name: "MuiTab",
|
|
36
39
|
slot: "Root",
|
|
37
|
-
overridesResolver: (o,
|
|
40
|
+
overridesResolver: (o, e) => {
|
|
38
41
|
const {
|
|
39
42
|
ownerState: l
|
|
40
43
|
} = o;
|
|
41
|
-
return [
|
|
42
|
-
[`& .${T.iconWrapper}`]:
|
|
44
|
+
return [e.root, l.label && l.icon && e.labelIcon, e[`textColor${ke(l.textColor)}`], l.fullWidth && e.fullWidth, l.wrapped && e.wrapped, {
|
|
45
|
+
[`& .${T.iconWrapper}`]: e.iconWrapper
|
|
43
46
|
}, {
|
|
44
|
-
[`& .${T.icon}`]:
|
|
47
|
+
[`& .${T.icon}`]: e.icon
|
|
45
48
|
}];
|
|
46
49
|
}
|
|
47
|
-
})(
|
|
50
|
+
})(be(({
|
|
48
51
|
theme: o
|
|
49
52
|
}) => ({
|
|
50
53
|
...o.typography.button,
|
|
@@ -60,22 +63,22 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
60
63
|
lineHeight: 1.25,
|
|
61
64
|
variants: [{
|
|
62
65
|
props: ({
|
|
63
|
-
ownerState:
|
|
64
|
-
}) =>
|
|
66
|
+
ownerState: e
|
|
67
|
+
}) => e.label && (e.iconPosition === "top" || e.iconPosition === "bottom"),
|
|
65
68
|
style: {
|
|
66
69
|
flexDirection: "column"
|
|
67
70
|
}
|
|
68
71
|
}, {
|
|
69
72
|
props: ({
|
|
70
|
-
ownerState:
|
|
71
|
-
}) =>
|
|
73
|
+
ownerState: e
|
|
74
|
+
}) => e.label && e.iconPosition !== "top" && e.iconPosition !== "bottom",
|
|
72
75
|
style: {
|
|
73
76
|
flexDirection: "row"
|
|
74
77
|
}
|
|
75
78
|
}, {
|
|
76
79
|
props: ({
|
|
77
|
-
ownerState:
|
|
78
|
-
}) =>
|
|
80
|
+
ownerState: e
|
|
81
|
+
}) => e.icon && e.label,
|
|
79
82
|
style: {
|
|
80
83
|
minHeight: 72,
|
|
81
84
|
paddingTop: 9,
|
|
@@ -83,9 +86,9 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
83
86
|
}
|
|
84
87
|
}, {
|
|
85
88
|
props: ({
|
|
86
|
-
ownerState:
|
|
89
|
+
ownerState: e,
|
|
87
90
|
iconPosition: l
|
|
88
|
-
}) =>
|
|
91
|
+
}) => e.icon && e.label && l === "top",
|
|
89
92
|
style: {
|
|
90
93
|
[`& > .${T.icon}`]: {
|
|
91
94
|
marginBottom: 6
|
|
@@ -93,9 +96,9 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
93
96
|
}
|
|
94
97
|
}, {
|
|
95
98
|
props: ({
|
|
96
|
-
ownerState:
|
|
99
|
+
ownerState: e,
|
|
97
100
|
iconPosition: l
|
|
98
|
-
}) =>
|
|
101
|
+
}) => e.icon && e.label && l === "bottom",
|
|
99
102
|
style: {
|
|
100
103
|
[`& > .${T.icon}`]: {
|
|
101
104
|
marginTop: 6
|
|
@@ -103,9 +106,9 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
103
106
|
}
|
|
104
107
|
}, {
|
|
105
108
|
props: ({
|
|
106
|
-
ownerState:
|
|
109
|
+
ownerState: e,
|
|
107
110
|
iconPosition: l
|
|
108
|
-
}) =>
|
|
111
|
+
}) => e.icon && e.label && l === "start",
|
|
109
112
|
style: {
|
|
110
113
|
[`& > .${T.icon}`]: {
|
|
111
114
|
marginRight: o.spacing(1)
|
|
@@ -113,9 +116,9 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
113
116
|
}
|
|
114
117
|
}, {
|
|
115
118
|
props: ({
|
|
116
|
-
ownerState:
|
|
119
|
+
ownerState: e,
|
|
117
120
|
iconPosition: l
|
|
118
|
-
}) =>
|
|
121
|
+
}) => e.icon && e.label && l === "end",
|
|
119
122
|
style: {
|
|
120
123
|
[`& > .${T.icon}`]: {
|
|
121
124
|
marginLeft: o.spacing(1)
|
|
@@ -164,8 +167,8 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
164
167
|
}
|
|
165
168
|
}, {
|
|
166
169
|
props: ({
|
|
167
|
-
ownerState:
|
|
168
|
-
}) =>
|
|
170
|
+
ownerState: e
|
|
171
|
+
}) => e.fullWidth,
|
|
169
172
|
style: {
|
|
170
173
|
flexShrink: 1,
|
|
171
174
|
flexGrow: 1,
|
|
@@ -174,15 +177,15 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
174
177
|
}
|
|
175
178
|
}, {
|
|
176
179
|
props: ({
|
|
177
|
-
ownerState:
|
|
178
|
-
}) =>
|
|
180
|
+
ownerState: e
|
|
181
|
+
}) => e.wrapped,
|
|
179
182
|
style: {
|
|
180
183
|
fontSize: o.typography.pxToRem(12)
|
|
181
184
|
}
|
|
182
185
|
}]
|
|
183
|
-
}))),
|
|
184
|
-
const d =
|
|
185
|
-
props:
|
|
186
|
+
}))), dt = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
187
|
+
const d = he({
|
|
188
|
+
props: e,
|
|
186
189
|
name: "MuiTab"
|
|
187
190
|
}), {
|
|
188
191
|
className: i,
|
|
@@ -203,9 +206,9 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
203
206
|
// eslint-disable-next-line react/prop-types
|
|
204
207
|
selectionFollowsFocus: g,
|
|
205
208
|
// eslint-disable-next-line react/prop-types
|
|
206
|
-
textColor:
|
|
209
|
+
textColor: L = "inherit",
|
|
207
210
|
value: M,
|
|
208
|
-
wrapped:
|
|
211
|
+
wrapped: ne = !1,
|
|
209
212
|
...H
|
|
210
213
|
} = d, U = {
|
|
211
214
|
...d,
|
|
@@ -216,16 +219,16 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
216
219
|
iconPosition: S,
|
|
217
220
|
label: !!y,
|
|
218
221
|
fullWidth: h,
|
|
219
|
-
textColor:
|
|
220
|
-
wrapped:
|
|
221
|
-
}, V =
|
|
222
|
+
textColor: L,
|
|
223
|
+
wrapped: ne
|
|
224
|
+
}, V = it(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
222
225
|
className: W(V.icon, f.props.className)
|
|
223
226
|
}) : f, G = (R) => {
|
|
224
227
|
!I && m && m(R, M), C && C(R);
|
|
225
228
|
}, N = (R) => {
|
|
226
229
|
g && !I && m && m(R, M), k && k(R);
|
|
227
230
|
};
|
|
228
|
-
return /* @__PURE__ */ q(
|
|
231
|
+
return /* @__PURE__ */ q(ct, {
|
|
229
232
|
focusRipple: !b,
|
|
230
233
|
className: W(V.root, i),
|
|
231
234
|
ref: l,
|
|
@@ -244,7 +247,7 @@ const T = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
244
247
|
}), v]
|
|
245
248
|
});
|
|
246
249
|
});
|
|
247
|
-
process.env.NODE_ENV !== "production" && (
|
|
250
|
+
process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
248
251
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
249
252
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
250
253
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -253,25 +256,25 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
253
256
|
* This prop isn't supported.
|
|
254
257
|
* Use the `component` prop if you need to change the children structure.
|
|
255
258
|
*/
|
|
256
|
-
children:
|
|
259
|
+
children: tt,
|
|
257
260
|
/**
|
|
258
261
|
* Override or extend the styles applied to the component.
|
|
259
262
|
*/
|
|
260
|
-
classes:
|
|
263
|
+
classes: t.object,
|
|
261
264
|
/**
|
|
262
265
|
* @ignore
|
|
263
266
|
*/
|
|
264
|
-
className:
|
|
267
|
+
className: t.string,
|
|
265
268
|
/**
|
|
266
269
|
* If `true`, the component is disabled.
|
|
267
270
|
* @default false
|
|
268
271
|
*/
|
|
269
|
-
disabled:
|
|
272
|
+
disabled: t.bool,
|
|
270
273
|
/**
|
|
271
274
|
* If `true`, the keyboard focus ripple is disabled.
|
|
272
275
|
* @default false
|
|
273
276
|
*/
|
|
274
|
-
disableFocusRipple:
|
|
277
|
+
disableFocusRipple: t.bool,
|
|
275
278
|
/**
|
|
276
279
|
* If `true`, the ripple effect is disabled.
|
|
277
280
|
*
|
|
@@ -279,64 +282,64 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
279
282
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
280
283
|
* @default false
|
|
281
284
|
*/
|
|
282
|
-
disableRipple:
|
|
285
|
+
disableRipple: t.bool,
|
|
283
286
|
/**
|
|
284
287
|
* The icon to display.
|
|
285
288
|
*/
|
|
286
|
-
icon:
|
|
289
|
+
icon: t.oneOfType([t.element, t.string]),
|
|
287
290
|
/**
|
|
288
291
|
* The position of the icon relative to the label.
|
|
289
292
|
* @default 'top'
|
|
290
293
|
*/
|
|
291
|
-
iconPosition:
|
|
294
|
+
iconPosition: t.oneOf(["bottom", "end", "start", "top"]),
|
|
292
295
|
/**
|
|
293
296
|
* The label element.
|
|
294
297
|
*/
|
|
295
|
-
label:
|
|
298
|
+
label: t.node,
|
|
296
299
|
/**
|
|
297
300
|
* @ignore
|
|
298
301
|
*/
|
|
299
|
-
onChange:
|
|
302
|
+
onChange: t.func,
|
|
300
303
|
/**
|
|
301
304
|
* @ignore
|
|
302
305
|
*/
|
|
303
|
-
onClick:
|
|
306
|
+
onClick: t.func,
|
|
304
307
|
/**
|
|
305
308
|
* @ignore
|
|
306
309
|
*/
|
|
307
|
-
onFocus:
|
|
310
|
+
onFocus: t.func,
|
|
308
311
|
/**
|
|
309
312
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
310
313
|
*/
|
|
311
|
-
sx:
|
|
314
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
312
315
|
/**
|
|
313
316
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
314
317
|
*/
|
|
315
|
-
value:
|
|
318
|
+
value: t.any,
|
|
316
319
|
/**
|
|
317
320
|
* Tab labels appear in a single row.
|
|
318
321
|
* They can use a second line if needed.
|
|
319
322
|
* @default false
|
|
320
323
|
*/
|
|
321
|
-
wrapped:
|
|
324
|
+
wrapped: t.bool
|
|
322
325
|
});
|
|
323
|
-
const
|
|
326
|
+
const ut = Ae(/* @__PURE__ */ x("path", {
|
|
324
327
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
325
|
-
}), "KeyboardArrowLeft"),
|
|
328
|
+
}), "KeyboardArrowLeft"), pt = Ae(/* @__PURE__ */ x("path", {
|
|
326
329
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
327
330
|
}), "KeyboardArrowRight");
|
|
328
|
-
function
|
|
331
|
+
function ft(o) {
|
|
329
332
|
return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
|
|
330
333
|
}
|
|
331
|
-
function
|
|
334
|
+
function bt(o, e, l, d = {}, i = () => {
|
|
332
335
|
}) {
|
|
333
336
|
const {
|
|
334
|
-
ease: u =
|
|
337
|
+
ease: u = ft,
|
|
335
338
|
duration: b = 300
|
|
336
339
|
// standard
|
|
337
340
|
} = d;
|
|
338
341
|
let h = null;
|
|
339
|
-
const f =
|
|
342
|
+
const f = e[o];
|
|
340
343
|
let S = !1;
|
|
341
344
|
const v = () => {
|
|
342
345
|
S = !0;
|
|
@@ -347,7 +350,7 @@ function be(o, t, l, d = {}, i = () => {
|
|
|
347
350
|
}
|
|
348
351
|
h === null && (h = m);
|
|
349
352
|
const C = Math.min(1, (m - h) / b);
|
|
350
|
-
if (
|
|
353
|
+
if (e[o] = u(C) * (l - f) + f, C >= 1) {
|
|
351
354
|
requestAnimationFrame(() => {
|
|
352
355
|
i(null);
|
|
353
356
|
});
|
|
@@ -357,65 +360,65 @@ function be(o, t, l, d = {}, i = () => {
|
|
|
357
360
|
};
|
|
358
361
|
return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
|
|
359
362
|
}
|
|
360
|
-
const
|
|
363
|
+
const ht = {
|
|
361
364
|
width: 99,
|
|
362
365
|
height: 99,
|
|
363
366
|
position: "absolute",
|
|
364
367
|
top: -9999,
|
|
365
368
|
overflow: "scroll"
|
|
366
369
|
};
|
|
367
|
-
function
|
|
370
|
+
function Fe(o) {
|
|
368
371
|
const {
|
|
369
|
-
onChange:
|
|
372
|
+
onChange: e,
|
|
370
373
|
...l
|
|
371
374
|
} = o, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
372
375
|
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
373
376
|
};
|
|
374
|
-
return
|
|
375
|
-
const b = $
|
|
377
|
+
return nt(() => {
|
|
378
|
+
const b = $e(() => {
|
|
376
379
|
const f = d.current;
|
|
377
|
-
u(), f !== d.current &&
|
|
378
|
-
}), h =
|
|
380
|
+
u(), f !== d.current && e(d.current);
|
|
381
|
+
}), h = De(i.current);
|
|
379
382
|
return h.addEventListener("resize", b), () => {
|
|
380
383
|
b.clear(), h.removeEventListener("resize", b);
|
|
381
384
|
};
|
|
382
|
-
}, [
|
|
383
|
-
u(),
|
|
384
|
-
}, [
|
|
385
|
-
style:
|
|
385
|
+
}, [e]), c.useEffect(() => {
|
|
386
|
+
u(), e(d.current);
|
|
387
|
+
}, [e]), /* @__PURE__ */ x("div", {
|
|
388
|
+
style: ht,
|
|
386
389
|
ref: i,
|
|
387
390
|
...l
|
|
388
391
|
});
|
|
389
392
|
}
|
|
390
|
-
process.env.NODE_ENV !== "production" && (
|
|
391
|
-
onChange:
|
|
393
|
+
process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
394
|
+
onChange: t.func.isRequired
|
|
392
395
|
});
|
|
393
|
-
function
|
|
394
|
-
return
|
|
396
|
+
function mt(o) {
|
|
397
|
+
return pe("MuiTabScrollButton", o);
|
|
395
398
|
}
|
|
396
|
-
const
|
|
399
|
+
const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), vt = (o) => {
|
|
397
400
|
const {
|
|
398
|
-
classes:
|
|
401
|
+
classes: e,
|
|
399
402
|
orientation: l,
|
|
400
403
|
disabled: d
|
|
401
404
|
} = o;
|
|
402
|
-
return
|
|
405
|
+
return me({
|
|
403
406
|
root: ["root", l, d && "disabled"]
|
|
404
|
-
},
|
|
405
|
-
},
|
|
407
|
+
}, mt, e);
|
|
408
|
+
}, yt = j(We, {
|
|
406
409
|
name: "MuiTabScrollButton",
|
|
407
410
|
slot: "Root",
|
|
408
|
-
overridesResolver: (o,
|
|
411
|
+
overridesResolver: (o, e) => {
|
|
409
412
|
const {
|
|
410
413
|
ownerState: l
|
|
411
414
|
} = o;
|
|
412
|
-
return [
|
|
415
|
+
return [e.root, l.orientation && e[l.orientation]];
|
|
413
416
|
}
|
|
414
417
|
})({
|
|
415
418
|
width: 40,
|
|
416
419
|
flexShrink: 0,
|
|
417
420
|
opacity: 0.8,
|
|
418
|
-
[`&.${
|
|
421
|
+
[`&.${St.disabled}`]: {
|
|
419
422
|
opacity: 0
|
|
420
423
|
},
|
|
421
424
|
variants: [{
|
|
@@ -430,9 +433,9 @@ const Se = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
}]
|
|
433
|
-
}),
|
|
434
|
-
const d =
|
|
435
|
-
props:
|
|
436
|
+
}), je = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
437
|
+
const d = he({
|
|
438
|
+
props: e,
|
|
436
439
|
name: "MuiTabScrollButton"
|
|
437
440
|
}), {
|
|
438
441
|
className: i,
|
|
@@ -442,17 +445,17 @@ const Se = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
442
445
|
orientation: f,
|
|
443
446
|
disabled: S,
|
|
444
447
|
...v
|
|
445
|
-
} = d, y =
|
|
448
|
+
} = d, y = ze(), m = {
|
|
446
449
|
isRtl: y,
|
|
447
450
|
...d
|
|
448
|
-
}, C =
|
|
451
|
+
}, C = vt(m), k = u.StartScrollButtonIcon ?? ut, I = u.EndScrollButtonIcon ?? pt, g = re({
|
|
449
452
|
elementType: k,
|
|
450
453
|
externalSlotProps: b.startScrollButtonIcon,
|
|
451
454
|
additionalProps: {
|
|
452
455
|
fontSize: "small"
|
|
453
456
|
},
|
|
454
457
|
ownerState: m
|
|
455
|
-
}),
|
|
458
|
+
}), L = re({
|
|
456
459
|
elementType: I,
|
|
457
460
|
externalSlotProps: b.endScrollButtonIcon,
|
|
458
461
|
additionalProps: {
|
|
@@ -460,7 +463,7 @@ const Se = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
460
463
|
},
|
|
461
464
|
ownerState: m
|
|
462
465
|
});
|
|
463
|
-
return /* @__PURE__ */ x(
|
|
466
|
+
return /* @__PURE__ */ x(yt, {
|
|
464
467
|
component: "div",
|
|
465
468
|
className: W(C.root, i),
|
|
466
469
|
ref: l,
|
|
@@ -477,11 +480,11 @@ const Se = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
477
480
|
children: h === "left" ? /* @__PURE__ */ x(k, {
|
|
478
481
|
...g
|
|
479
482
|
}) : /* @__PURE__ */ x(I, {
|
|
480
|
-
...
|
|
483
|
+
...L
|
|
481
484
|
})
|
|
482
485
|
});
|
|
483
486
|
});
|
|
484
|
-
process.env.NODE_ENV !== "production" && (
|
|
487
|
+
process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
485
488
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
486
489
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
487
490
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -489,59 +492,59 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
489
492
|
/**
|
|
490
493
|
* The content of the component.
|
|
491
494
|
*/
|
|
492
|
-
children:
|
|
495
|
+
children: t.node,
|
|
493
496
|
/**
|
|
494
497
|
* Override or extend the styles applied to the component.
|
|
495
498
|
*/
|
|
496
|
-
classes:
|
|
499
|
+
classes: t.object,
|
|
497
500
|
/**
|
|
498
501
|
* @ignore
|
|
499
502
|
*/
|
|
500
|
-
className:
|
|
503
|
+
className: t.string,
|
|
501
504
|
/**
|
|
502
505
|
* The direction the button should indicate.
|
|
503
506
|
*/
|
|
504
|
-
direction:
|
|
507
|
+
direction: t.oneOf(["left", "right"]).isRequired,
|
|
505
508
|
/**
|
|
506
509
|
* If `true`, the component is disabled.
|
|
507
510
|
* @default false
|
|
508
511
|
*/
|
|
509
|
-
disabled:
|
|
512
|
+
disabled: t.bool,
|
|
510
513
|
/**
|
|
511
514
|
* The component orientation (layout flow direction).
|
|
512
515
|
*/
|
|
513
|
-
orientation:
|
|
516
|
+
orientation: t.oneOf(["horizontal", "vertical"]).isRequired,
|
|
514
517
|
/**
|
|
515
518
|
* The extra props for the slot components.
|
|
516
519
|
* You can override the existing props or add new ones.
|
|
517
520
|
* @default {}
|
|
518
521
|
*/
|
|
519
|
-
slotProps:
|
|
520
|
-
endScrollButtonIcon:
|
|
521
|
-
startScrollButtonIcon:
|
|
522
|
+
slotProps: t.shape({
|
|
523
|
+
endScrollButtonIcon: t.oneOfType([t.func, t.object]),
|
|
524
|
+
startScrollButtonIcon: t.oneOfType([t.func, t.object])
|
|
522
525
|
}),
|
|
523
526
|
/**
|
|
524
527
|
* The components used for each slot inside.
|
|
525
528
|
* @default {}
|
|
526
529
|
*/
|
|
527
|
-
slots:
|
|
528
|
-
EndScrollButtonIcon:
|
|
529
|
-
StartScrollButtonIcon:
|
|
530
|
+
slots: t.shape({
|
|
531
|
+
EndScrollButtonIcon: t.elementType,
|
|
532
|
+
StartScrollButtonIcon: t.elementType
|
|
530
533
|
}),
|
|
531
534
|
/**
|
|
532
535
|
* @ignore
|
|
533
536
|
*/
|
|
534
|
-
style:
|
|
537
|
+
style: t.object,
|
|
535
538
|
/**
|
|
536
539
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
537
540
|
*/
|
|
538
|
-
sx:
|
|
541
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
539
542
|
});
|
|
540
|
-
function
|
|
541
|
-
return
|
|
543
|
+
function gt(o) {
|
|
544
|
+
return pe("MuiTabs", o);
|
|
542
545
|
}
|
|
543
|
-
const
|
|
544
|
-
let d = !1, i = l(o,
|
|
546
|
+
const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Re = (o, e) => o === e ? o.firstChild : e && e.nextElementSibling ? e.nextElementSibling : o.firstChild, Oe = (o, e) => o === e ? o.lastChild : e && e.previousElementSibling ? e.previousElementSibling : o.lastChild, oe = (o, e, l) => {
|
|
547
|
+
let d = !1, i = l(o, e);
|
|
545
548
|
for (; i; ) {
|
|
546
549
|
if (i === o.firstChild) {
|
|
547
550
|
if (d)
|
|
@@ -556,9 +559,9 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
556
559
|
return;
|
|
557
560
|
}
|
|
558
561
|
}
|
|
559
|
-
},
|
|
562
|
+
}, Tt = (o) => {
|
|
560
563
|
const {
|
|
561
|
-
vertical:
|
|
564
|
+
vertical: e,
|
|
562
565
|
fixed: l,
|
|
563
566
|
hideScrollbar: d,
|
|
564
567
|
scrollableX: i,
|
|
@@ -567,29 +570,29 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
567
570
|
scrollButtonsHideMobile: h,
|
|
568
571
|
classes: f
|
|
569
572
|
} = o;
|
|
570
|
-
return
|
|
571
|
-
root: ["root",
|
|
573
|
+
return me({
|
|
574
|
+
root: ["root", e && "vertical"],
|
|
572
575
|
scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
|
|
573
|
-
flexContainer: ["flexContainer",
|
|
576
|
+
flexContainer: ["flexContainer", e && "flexContainerVertical", b && "centered"],
|
|
574
577
|
indicator: ["indicator"],
|
|
575
578
|
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
576
579
|
scrollableX: [i && "scrollableX"],
|
|
577
580
|
hideScrollbar: [d && "hideScrollbar"]
|
|
578
|
-
},
|
|
579
|
-
},
|
|
581
|
+
}, gt, f);
|
|
582
|
+
}, wt = j("div", {
|
|
580
583
|
name: "MuiTabs",
|
|
581
584
|
slot: "Root",
|
|
582
|
-
overridesResolver: (o,
|
|
585
|
+
overridesResolver: (o, e) => {
|
|
583
586
|
const {
|
|
584
587
|
ownerState: l
|
|
585
588
|
} = o;
|
|
586
589
|
return [{
|
|
587
|
-
[`& .${
|
|
590
|
+
[`& .${ue.scrollButtons}`]: e.scrollButtons
|
|
588
591
|
}, {
|
|
589
|
-
[`& .${
|
|
590
|
-
},
|
|
592
|
+
[`& .${ue.scrollButtons}`]: l.scrollButtonsHideMobile && e.scrollButtonsHideMobile
|
|
593
|
+
}, e.root, l.vertical && e.vertical];
|
|
591
594
|
}
|
|
592
|
-
})(
|
|
595
|
+
})(be(({
|
|
593
596
|
theme: o
|
|
594
597
|
}) => ({
|
|
595
598
|
overflow: "hidden",
|
|
@@ -599,31 +602,31 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
599
602
|
display: "flex",
|
|
600
603
|
variants: [{
|
|
601
604
|
props: ({
|
|
602
|
-
ownerState:
|
|
603
|
-
}) =>
|
|
605
|
+
ownerState: e
|
|
606
|
+
}) => e.vertical,
|
|
604
607
|
style: {
|
|
605
608
|
flexDirection: "column"
|
|
606
609
|
}
|
|
607
610
|
}, {
|
|
608
611
|
props: ({
|
|
609
|
-
ownerState:
|
|
610
|
-
}) =>
|
|
612
|
+
ownerState: e
|
|
613
|
+
}) => e.scrollButtonsHideMobile,
|
|
611
614
|
style: {
|
|
612
|
-
[`& .${
|
|
615
|
+
[`& .${ue.scrollButtons}`]: {
|
|
613
616
|
[o.breakpoints.down("sm")]: {
|
|
614
617
|
display: "none"
|
|
615
618
|
}
|
|
616
619
|
}
|
|
617
620
|
}
|
|
618
621
|
}]
|
|
619
|
-
}))),
|
|
622
|
+
}))), Bt = j("div", {
|
|
620
623
|
name: "MuiTabs",
|
|
621
624
|
slot: "Scroller",
|
|
622
|
-
overridesResolver: (o,
|
|
625
|
+
overridesResolver: (o, e) => {
|
|
623
626
|
const {
|
|
624
627
|
ownerState: l
|
|
625
628
|
} = o;
|
|
626
|
-
return [
|
|
629
|
+
return [e.scroller, l.fixed && e.fixed, l.hideScrollbar && e.hideScrollbar, l.scrollableX && e.scrollableX, l.scrollableY && e.scrollableY];
|
|
627
630
|
}
|
|
628
631
|
})({
|
|
629
632
|
position: "relative",
|
|
@@ -668,14 +671,14 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
668
671
|
overflowX: "hidden"
|
|
669
672
|
}
|
|
670
673
|
}]
|
|
671
|
-
}),
|
|
674
|
+
}), xt = j("div", {
|
|
672
675
|
name: "MuiTabs",
|
|
673
676
|
slot: "FlexContainer",
|
|
674
|
-
overridesResolver: (o,
|
|
677
|
+
overridesResolver: (o, e) => {
|
|
675
678
|
const {
|
|
676
679
|
ownerState: l
|
|
677
680
|
} = o;
|
|
678
|
-
return [
|
|
681
|
+
return [e.flexContainer, l.vertical && e.flexContainerVertical, l.centered && e.centered];
|
|
679
682
|
}
|
|
680
683
|
})({
|
|
681
684
|
display: "flex",
|
|
@@ -694,11 +697,11 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
694
697
|
justifyContent: "center"
|
|
695
698
|
}
|
|
696
699
|
}]
|
|
697
|
-
}),
|
|
700
|
+
}), Ct = j("span", {
|
|
698
701
|
name: "MuiTabs",
|
|
699
702
|
slot: "Indicator",
|
|
700
|
-
overridesResolver: (o,
|
|
701
|
-
})(
|
|
703
|
+
overridesResolver: (o, e) => e.indicator
|
|
704
|
+
})(be(({
|
|
702
705
|
theme: o
|
|
703
706
|
}) => ({
|
|
704
707
|
position: "absolute",
|
|
@@ -722,15 +725,15 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
722
725
|
}
|
|
723
726
|
}, {
|
|
724
727
|
props: ({
|
|
725
|
-
ownerState:
|
|
726
|
-
}) =>
|
|
728
|
+
ownerState: e
|
|
729
|
+
}) => e.vertical,
|
|
727
730
|
style: {
|
|
728
731
|
height: "100%",
|
|
729
732
|
width: 2,
|
|
730
733
|
right: 0
|
|
731
734
|
}
|
|
732
735
|
}]
|
|
733
|
-
}))),
|
|
736
|
+
}))), It = j(Fe)({
|
|
734
737
|
overflowX: "auto",
|
|
735
738
|
overflowY: "hidden",
|
|
736
739
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -740,13 +743,13 @@ const ut = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
740
743
|
display: "none"
|
|
741
744
|
// Safari + Chrome
|
|
742
745
|
}
|
|
743
|
-
}),
|
|
744
|
-
let
|
|
745
|
-
const
|
|
746
|
-
const d =
|
|
747
|
-
props:
|
|
746
|
+
}), Ne = {};
|
|
747
|
+
let Pe = !1;
|
|
748
|
+
const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
749
|
+
const d = he({
|
|
750
|
+
props: e,
|
|
748
751
|
name: "MuiTabs"
|
|
749
|
-
}), i =
|
|
752
|
+
}), i = rt(), u = ze(), {
|
|
750
753
|
"aria-label": b,
|
|
751
754
|
"aria-labelledby": h,
|
|
752
755
|
action: f,
|
|
@@ -758,9 +761,9 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
758
761
|
indicatorColor: k = "primary",
|
|
759
762
|
onChange: I,
|
|
760
763
|
orientation: g = "horizontal",
|
|
761
|
-
ScrollButtonComponent:
|
|
764
|
+
ScrollButtonComponent: L = je,
|
|
762
765
|
scrollButtons: M = "auto",
|
|
763
|
-
selectionFollowsFocus:
|
|
766
|
+
selectionFollowsFocus: ne,
|
|
764
767
|
slots: H = {},
|
|
765
768
|
slotProps: U = {},
|
|
766
769
|
TabIndicatorProps: V = {},
|
|
@@ -768,9 +771,9 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
768
771
|
textColor: G = "primary",
|
|
769
772
|
value: N,
|
|
770
773
|
variant: R = "standard",
|
|
771
|
-
visibleScrollbar:
|
|
772
|
-
...
|
|
773
|
-
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right",
|
|
774
|
+
visibleScrollbar: le = !1,
|
|
775
|
+
...Le
|
|
776
|
+
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", se = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
774
777
|
...d,
|
|
775
778
|
component: m,
|
|
776
779
|
allowScrollButtonsMobile: C,
|
|
@@ -780,27 +783,27 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
780
783
|
scrollButtons: M,
|
|
781
784
|
textColor: G,
|
|
782
785
|
variant: R,
|
|
783
|
-
visibleScrollbar:
|
|
786
|
+
visibleScrollbar: le,
|
|
784
787
|
fixed: !w,
|
|
785
|
-
hideScrollbar: w && !
|
|
788
|
+
hideScrollbar: w && !le,
|
|
786
789
|
scrollableX: w && !B,
|
|
787
790
|
scrollableY: w && B,
|
|
788
791
|
centered: S && !w,
|
|
789
792
|
scrollButtonsHideMobile: !C
|
|
790
|
-
}, P =
|
|
793
|
+
}, P = Tt(D), He = re({
|
|
791
794
|
elementType: H.StartScrollButtonIcon,
|
|
792
795
|
externalSlotProps: U.startScrollButtonIcon,
|
|
793
796
|
ownerState: D
|
|
794
|
-
}),
|
|
797
|
+
}), Ve = re({
|
|
795
798
|
elementType: H.EndScrollButtonIcon,
|
|
796
799
|
externalSlotProps: U.endScrollButtonIcon,
|
|
797
800
|
ownerState: D
|
|
798
801
|
});
|
|
799
802
|
process.env.NODE_ENV !== "production" && S && w && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
800
|
-
const [
|
|
803
|
+
const [Se, Ue] = c.useState(!1), [$, ve] = c.useState(Ne), [ye, Xe] = c.useState(!1), [ge, Ye] = c.useState(!1), [Te, Ke] = c.useState(!1), [we, _e] = c.useState({
|
|
801
804
|
overflow: "hidden",
|
|
802
805
|
scrollbarWidth: 0
|
|
803
|
-
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null),
|
|
806
|
+
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Be = () => {
|
|
804
807
|
const r = O.current;
|
|
805
808
|
let n;
|
|
806
809
|
if (r) {
|
|
@@ -822,20 +825,20 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
822
825
|
if (a.length > 0) {
|
|
823
826
|
const p = a[Z.get(N)];
|
|
824
827
|
process.env.NODE_ENV !== "production" && (p || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, Z.keys ? `You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.` : null].join(`
|
|
825
|
-
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !
|
|
828
|
+
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pe && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
826
829
|
n.clientWidth !== 0 && (n = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
827
|
-
`)),
|
|
830
|
+
`)), Pe = !0);
|
|
828
831
|
}
|
|
829
832
|
}
|
|
830
833
|
return {
|
|
831
834
|
tabsMeta: n,
|
|
832
835
|
tabMeta: s
|
|
833
836
|
};
|
|
834
|
-
}, K =
|
|
837
|
+
}, K = de(() => {
|
|
835
838
|
const {
|
|
836
839
|
tabsMeta: r,
|
|
837
840
|
tabMeta: n
|
|
838
|
-
} =
|
|
841
|
+
} = Be();
|
|
839
842
|
let s = 0, a;
|
|
840
843
|
B ? (a = "top", n && r && (s = n.top - r.top + r.scrollTop)) : (a = u ? "right" : "left", n && r && (s = (u ? -1 : 1) * (n[a] - r[a] + r.scrollLeft)));
|
|
841
844
|
const p = {
|
|
@@ -844,99 +847,99 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
844
847
|
[Y]: n ? n[Y] : 0
|
|
845
848
|
};
|
|
846
849
|
if (typeof $[a] != "number" || typeof $[Y] != "number")
|
|
847
|
-
|
|
850
|
+
ve(p);
|
|
848
851
|
else {
|
|
849
852
|
const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
|
|
850
|
-
(E >= 1 || F >= 1) &&
|
|
853
|
+
(E >= 1 || F >= 1) && ve(p);
|
|
851
854
|
}
|
|
852
|
-
}),
|
|
855
|
+
}), ae = (r, {
|
|
853
856
|
animation: n = !0
|
|
854
857
|
} = {}) => {
|
|
855
|
-
n ?
|
|
858
|
+
n ? bt(X, O.current, r, {
|
|
856
859
|
duration: i.transitions.duration.standard
|
|
857
860
|
}) : O.current[X] = r;
|
|
858
|
-
},
|
|
861
|
+
}, xe = (r) => {
|
|
859
862
|
let n = O.current[X];
|
|
860
|
-
B ? n += r : n += r * (u ? -1 : 1),
|
|
861
|
-
},
|
|
862
|
-
const r = O.current[
|
|
863
|
+
B ? n += r : n += r * (u ? -1 : 1), ae(n);
|
|
864
|
+
}, Ce = () => {
|
|
865
|
+
const r = O.current[se];
|
|
863
866
|
let n = 0;
|
|
864
867
|
const s = Array.from(A.current.children);
|
|
865
868
|
for (let a = 0; a < s.length; a += 1) {
|
|
866
869
|
const p = s[a];
|
|
867
|
-
if (n + p[
|
|
870
|
+
if (n + p[se] > r) {
|
|
868
871
|
a === 0 && (n = r);
|
|
869
872
|
break;
|
|
870
873
|
}
|
|
871
|
-
n += p[
|
|
874
|
+
n += p[se];
|
|
872
875
|
}
|
|
873
876
|
return n;
|
|
874
|
-
},
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
|
|
878
|
-
},
|
|
879
|
-
|
|
877
|
+
}, qe = () => {
|
|
878
|
+
xe(-1 * Ce());
|
|
879
|
+
}, Ge = () => {
|
|
880
|
+
xe(Ce());
|
|
881
|
+
}, Je = c.useCallback((r) => {
|
|
882
|
+
_e({
|
|
880
883
|
overflow: null,
|
|
881
884
|
scrollbarWidth: r
|
|
882
885
|
});
|
|
883
|
-
}, []),
|
|
886
|
+
}, []), Qe = () => {
|
|
884
887
|
const r = {};
|
|
885
|
-
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(
|
|
886
|
-
onChange:
|
|
888
|
+
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(It, {
|
|
889
|
+
onChange: Je,
|
|
887
890
|
className: W(P.scrollableX, P.hideScrollbar)
|
|
888
891
|
}) : null;
|
|
889
|
-
const s = w && (M === "auto" && (
|
|
890
|
-
return r.scrollButtonStart = s ? /* @__PURE__ */ x(
|
|
892
|
+
const s = w && (M === "auto" && (ye || ge) || M === !0);
|
|
893
|
+
return r.scrollButtonStart = s ? /* @__PURE__ */ x(L, {
|
|
891
894
|
slots: {
|
|
892
895
|
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
893
896
|
},
|
|
894
897
|
slotProps: {
|
|
895
|
-
startScrollButtonIcon:
|
|
898
|
+
startScrollButtonIcon: He
|
|
896
899
|
},
|
|
897
900
|
orientation: g,
|
|
898
901
|
direction: u ? "right" : "left",
|
|
899
|
-
onClick:
|
|
900
|
-
disabled: !
|
|
902
|
+
onClick: qe,
|
|
903
|
+
disabled: !ye,
|
|
901
904
|
...z,
|
|
902
905
|
className: W(P.scrollButtons, z.className)
|
|
903
|
-
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(
|
|
906
|
+
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(L, {
|
|
904
907
|
slots: {
|
|
905
908
|
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
906
909
|
},
|
|
907
910
|
slotProps: {
|
|
908
|
-
endScrollButtonIcon:
|
|
911
|
+
endScrollButtonIcon: Ve
|
|
909
912
|
},
|
|
910
913
|
orientation: g,
|
|
911
914
|
direction: u ? "left" : "right",
|
|
912
|
-
onClick:
|
|
913
|
-
disabled: !
|
|
915
|
+
onClick: Ge,
|
|
916
|
+
disabled: !ge,
|
|
914
917
|
...z,
|
|
915
918
|
className: W(P.scrollButtons, z.className)
|
|
916
919
|
}) : null, r;
|
|
917
|
-
},
|
|
920
|
+
}, Ie = de((r) => {
|
|
918
921
|
const {
|
|
919
922
|
tabsMeta: n,
|
|
920
923
|
tabMeta: s
|
|
921
|
-
} =
|
|
924
|
+
} = Be();
|
|
922
925
|
if (!(!s || !n)) {
|
|
923
926
|
if (s[J] < n[J]) {
|
|
924
927
|
const a = n[X] + (s[J] - n[J]);
|
|
925
|
-
|
|
928
|
+
ae(a, {
|
|
926
929
|
animation: r
|
|
927
930
|
});
|
|
928
931
|
} else if (s[Q] > n[Q]) {
|
|
929
932
|
const a = n[X] + (s[Q] - n[Q]);
|
|
930
|
-
|
|
933
|
+
ae(a, {
|
|
931
934
|
animation: r
|
|
932
935
|
});
|
|
933
936
|
}
|
|
934
937
|
}
|
|
935
|
-
}),
|
|
936
|
-
w && M !== !1 &&
|
|
938
|
+
}), ee = de(() => {
|
|
939
|
+
w && M !== !1 && Ke(!Te);
|
|
937
940
|
});
|
|
938
941
|
c.useEffect(() => {
|
|
939
|
-
const r = $
|
|
942
|
+
const r = $e(() => {
|
|
940
943
|
O.current && K();
|
|
941
944
|
});
|
|
942
945
|
let n;
|
|
@@ -947,8 +950,8 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
947
950
|
}), F.addedNodes.forEach((_) => {
|
|
948
951
|
n == null || n.observe(_);
|
|
949
952
|
});
|
|
950
|
-
}), r(),
|
|
951
|
-
}, a =
|
|
953
|
+
}), r(), ee();
|
|
954
|
+
}, a = De(O.current);
|
|
952
955
|
a.addEventListener("resize", r);
|
|
953
956
|
let p;
|
|
954
957
|
return typeof ResizeObserver < "u" && (n = new ResizeObserver(r), Array.from(A.current.children).forEach((E) => {
|
|
@@ -958,34 +961,34 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
958
961
|
})), () => {
|
|
959
962
|
r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
|
|
960
963
|
};
|
|
961
|
-
}, [K,
|
|
964
|
+
}, [K, ee]), c.useEffect(() => {
|
|
962
965
|
const r = Array.from(A.current.children), n = r.length;
|
|
963
966
|
if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
|
|
964
967
|
const s = r[0], a = r[n - 1], p = {
|
|
965
968
|
root: O.current,
|
|
966
969
|
threshold: 0.99
|
|
967
|
-
}, E = (
|
|
968
|
-
|
|
970
|
+
}, E = (ce) => {
|
|
971
|
+
Xe(!ce[0].isIntersecting);
|
|
969
972
|
}, F = new IntersectionObserver(E, p);
|
|
970
973
|
F.observe(s);
|
|
971
|
-
const _ = (
|
|
972
|
-
|
|
973
|
-
},
|
|
974
|
-
return
|
|
975
|
-
F.disconnect(),
|
|
974
|
+
const _ = (ce) => {
|
|
975
|
+
Ye(!ce[0].isIntersecting);
|
|
976
|
+
}, Me = new IntersectionObserver(_, p);
|
|
977
|
+
return Me.observe(a), () => {
|
|
978
|
+
F.disconnect(), Me.disconnect();
|
|
976
979
|
};
|
|
977
980
|
}
|
|
978
|
-
}, [w, M,
|
|
979
|
-
|
|
981
|
+
}, [w, M, Te, v == null ? void 0 : v.length]), c.useEffect(() => {
|
|
982
|
+
Ue(!0);
|
|
980
983
|
}, []), c.useEffect(() => {
|
|
981
984
|
K();
|
|
982
985
|
}), c.useEffect(() => {
|
|
983
|
-
|
|
984
|
-
}, [
|
|
986
|
+
Ie(Ne !== $);
|
|
987
|
+
}, [Ie, $]), c.useImperativeHandle(f, () => ({
|
|
985
988
|
updateIndicator: K,
|
|
986
|
-
updateScrollButtons:
|
|
987
|
-
}), [K,
|
|
988
|
-
const
|
|
989
|
+
updateScrollButtons: ee
|
|
990
|
+
}), [K, ee]);
|
|
991
|
+
const Ee = /* @__PURE__ */ x(Ct, {
|
|
989
992
|
...V,
|
|
990
993
|
className: W(P.indicator, V.className),
|
|
991
994
|
ownerState: D,
|
|
@@ -994,76 +997,76 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
994
997
|
...V.style
|
|
995
998
|
}
|
|
996
999
|
});
|
|
997
|
-
let
|
|
998
|
-
const
|
|
1000
|
+
let te = 0;
|
|
1001
|
+
const Ze = c.Children.map(v, (r) => {
|
|
999
1002
|
if (!/* @__PURE__ */ c.isValidElement(r))
|
|
1000
1003
|
return null;
|
|
1001
|
-
process.env.NODE_ENV !== "production" &&
|
|
1004
|
+
process.env.NODE_ENV !== "production" && ot.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1002
1005
|
`));
|
|
1003
|
-
const n = r.props.value === void 0 ?
|
|
1004
|
-
Z.set(n,
|
|
1006
|
+
const n = r.props.value === void 0 ? te : r.props.value;
|
|
1007
|
+
Z.set(n, te);
|
|
1005
1008
|
const s = n === N;
|
|
1006
|
-
return
|
|
1009
|
+
return te += 1, /* @__PURE__ */ c.cloneElement(r, {
|
|
1007
1010
|
fullWidth: R === "fullWidth",
|
|
1008
|
-
indicator: s && !
|
|
1011
|
+
indicator: s && !Se && Ee,
|
|
1009
1012
|
selected: s,
|
|
1010
|
-
selectionFollowsFocus:
|
|
1013
|
+
selectionFollowsFocus: ne,
|
|
1011
1014
|
onChange: I,
|
|
1012
1015
|
textColor: G,
|
|
1013
1016
|
value: n,
|
|
1014
|
-
...
|
|
1017
|
+
...te === 1 && N === !1 && !r.props.tabIndex ? {
|
|
1015
1018
|
tabIndex: 0
|
|
1016
1019
|
} : {}
|
|
1017
1020
|
});
|
|
1018
|
-
}),
|
|
1019
|
-
const n = A.current, s =
|
|
1021
|
+
}), et = (r) => {
|
|
1022
|
+
const n = A.current, s = st(n).activeElement;
|
|
1020
1023
|
if (s.getAttribute("role") !== "tab")
|
|
1021
1024
|
return;
|
|
1022
1025
|
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1023
1026
|
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
|
|
1024
1027
|
case p:
|
|
1025
|
-
r.preventDefault(),
|
|
1028
|
+
r.preventDefault(), oe(n, s, Oe);
|
|
1026
1029
|
break;
|
|
1027
1030
|
case E:
|
|
1028
|
-
r.preventDefault(),
|
|
1031
|
+
r.preventDefault(), oe(n, s, Re);
|
|
1029
1032
|
break;
|
|
1030
1033
|
case "Home":
|
|
1031
|
-
r.preventDefault(),
|
|
1034
|
+
r.preventDefault(), oe(n, null, Re);
|
|
1032
1035
|
break;
|
|
1033
1036
|
case "End":
|
|
1034
|
-
r.preventDefault(),
|
|
1037
|
+
r.preventDefault(), oe(n, null, Oe);
|
|
1035
1038
|
break;
|
|
1036
1039
|
}
|
|
1037
|
-
},
|
|
1038
|
-
return /* @__PURE__ */ q(
|
|
1040
|
+
}, ie = Qe();
|
|
1041
|
+
return /* @__PURE__ */ q(wt, {
|
|
1039
1042
|
className: W(P.root, y),
|
|
1040
1043
|
ownerState: D,
|
|
1041
1044
|
ref: l,
|
|
1042
1045
|
as: m,
|
|
1043
|
-
...
|
|
1044
|
-
children: [
|
|
1046
|
+
...Le,
|
|
1047
|
+
children: [ie.scrollButtonStart, ie.scrollbarSizeListener, /* @__PURE__ */ q(Bt, {
|
|
1045
1048
|
className: P.scroller,
|
|
1046
1049
|
ownerState: D,
|
|
1047
1050
|
style: {
|
|
1048
|
-
overflow:
|
|
1049
|
-
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]:
|
|
1051
|
+
overflow: we.overflow,
|
|
1052
|
+
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: le ? void 0 : -we.scrollbarWidth
|
|
1050
1053
|
},
|
|
1051
1054
|
ref: O,
|
|
1052
|
-
children: [/* @__PURE__ */ x(
|
|
1055
|
+
children: [/* @__PURE__ */ x(xt, {
|
|
1053
1056
|
"aria-label": b,
|
|
1054
1057
|
"aria-labelledby": h,
|
|
1055
1058
|
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
1056
1059
|
className: P.flexContainer,
|
|
1057
1060
|
ownerState: D,
|
|
1058
|
-
onKeyDown:
|
|
1061
|
+
onKeyDown: et,
|
|
1059
1062
|
ref: A,
|
|
1060
1063
|
role: "tablist",
|
|
1061
|
-
children:
|
|
1062
|
-
}),
|
|
1063
|
-
}),
|
|
1064
|
+
children: Ze
|
|
1065
|
+
}), Se && Ee]
|
|
1066
|
+
}), ie.scrollButtonEnd]
|
|
1064
1067
|
});
|
|
1065
1068
|
});
|
|
1066
|
-
process.env.NODE_ENV !== "production" && (
|
|
1069
|
+
process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
1067
1070
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1068
1071
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1069
1072
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1076,66 +1079,66 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1076
1079
|
* @param {object} actions This object contains all possible actions
|
|
1077
1080
|
* that can be triggered programmatically.
|
|
1078
1081
|
*/
|
|
1079
|
-
action:
|
|
1082
|
+
action: lt,
|
|
1080
1083
|
/**
|
|
1081
1084
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
1082
1085
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
1083
1086
|
* @default false
|
|
1084
1087
|
*/
|
|
1085
|
-
allowScrollButtonsMobile:
|
|
1088
|
+
allowScrollButtonsMobile: t.bool,
|
|
1086
1089
|
/**
|
|
1087
1090
|
* The label for the Tabs as a string.
|
|
1088
1091
|
*/
|
|
1089
|
-
"aria-label":
|
|
1092
|
+
"aria-label": t.string,
|
|
1090
1093
|
/**
|
|
1091
1094
|
* An id or list of ids separated by a space that label the Tabs.
|
|
1092
1095
|
*/
|
|
1093
|
-
"aria-labelledby":
|
|
1096
|
+
"aria-labelledby": t.string,
|
|
1094
1097
|
/**
|
|
1095
1098
|
* If `true`, the tabs are centered.
|
|
1096
1099
|
* This prop is intended for large views.
|
|
1097
1100
|
* @default false
|
|
1098
1101
|
*/
|
|
1099
|
-
centered:
|
|
1102
|
+
centered: t.bool,
|
|
1100
1103
|
/**
|
|
1101
1104
|
* The content of the component.
|
|
1102
1105
|
*/
|
|
1103
|
-
children:
|
|
1106
|
+
children: t.node,
|
|
1104
1107
|
/**
|
|
1105
1108
|
* Override or extend the styles applied to the component.
|
|
1106
1109
|
*/
|
|
1107
|
-
classes:
|
|
1110
|
+
classes: t.object,
|
|
1108
1111
|
/**
|
|
1109
1112
|
* @ignore
|
|
1110
1113
|
*/
|
|
1111
|
-
className:
|
|
1114
|
+
className: t.string,
|
|
1112
1115
|
/**
|
|
1113
1116
|
* The component used for the root node.
|
|
1114
1117
|
* Either a string to use a HTML element or a component.
|
|
1115
1118
|
*/
|
|
1116
|
-
component:
|
|
1119
|
+
component: t.elementType,
|
|
1117
1120
|
/**
|
|
1118
1121
|
* Determines the color of the indicator.
|
|
1119
1122
|
* @default 'primary'
|
|
1120
1123
|
*/
|
|
1121
|
-
indicatorColor:
|
|
1124
|
+
indicatorColor: t.oneOfType([t.oneOf(["primary", "secondary"]), t.string]),
|
|
1122
1125
|
/**
|
|
1123
1126
|
* Callback fired when the value changes.
|
|
1124
1127
|
*
|
|
1125
1128
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1126
1129
|
* @param {any} value We default to the index of the child (number)
|
|
1127
1130
|
*/
|
|
1128
|
-
onChange:
|
|
1131
|
+
onChange: t.func,
|
|
1129
1132
|
/**
|
|
1130
1133
|
* The component orientation (layout flow direction).
|
|
1131
1134
|
* @default 'horizontal'
|
|
1132
1135
|
*/
|
|
1133
|
-
orientation:
|
|
1136
|
+
orientation: t.oneOf(["horizontal", "vertical"]),
|
|
1134
1137
|
/**
|
|
1135
1138
|
* The component used to render the scroll buttons.
|
|
1136
1139
|
* @default TabScrollButton
|
|
1137
1140
|
*/
|
|
1138
|
-
ScrollButtonComponent:
|
|
1141
|
+
ScrollButtonComponent: t.elementType,
|
|
1139
1142
|
/**
|
|
1140
1143
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1141
1144
|
*
|
|
@@ -1147,53 +1150,53 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1147
1150
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1148
1151
|
* @default 'auto'
|
|
1149
1152
|
*/
|
|
1150
|
-
scrollButtons:
|
|
1153
|
+
scrollButtons: t.oneOf(["auto", !1, !0]),
|
|
1151
1154
|
/**
|
|
1152
1155
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1153
1156
|
* changes on activation.
|
|
1154
1157
|
*/
|
|
1155
|
-
selectionFollowsFocus:
|
|
1158
|
+
selectionFollowsFocus: t.bool,
|
|
1156
1159
|
/**
|
|
1157
1160
|
* The extra props for the slot components.
|
|
1158
1161
|
* You can override the existing props or add new ones.
|
|
1159
1162
|
* @default {}
|
|
1160
1163
|
*/
|
|
1161
|
-
slotProps:
|
|
1162
|
-
endScrollButtonIcon:
|
|
1163
|
-
startScrollButtonIcon:
|
|
1164
|
+
slotProps: t.shape({
|
|
1165
|
+
endScrollButtonIcon: t.oneOfType([t.func, t.object]),
|
|
1166
|
+
startScrollButtonIcon: t.oneOfType([t.func, t.object])
|
|
1164
1167
|
}),
|
|
1165
1168
|
/**
|
|
1166
1169
|
* The components used for each slot inside.
|
|
1167
1170
|
* @default {}
|
|
1168
1171
|
*/
|
|
1169
|
-
slots:
|
|
1170
|
-
EndScrollButtonIcon:
|
|
1171
|
-
StartScrollButtonIcon:
|
|
1172
|
+
slots: t.shape({
|
|
1173
|
+
EndScrollButtonIcon: t.elementType,
|
|
1174
|
+
StartScrollButtonIcon: t.elementType
|
|
1172
1175
|
}),
|
|
1173
1176
|
/**
|
|
1174
1177
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1175
1178
|
*/
|
|
1176
|
-
sx:
|
|
1179
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
1177
1180
|
/**
|
|
1178
1181
|
* Props applied to the tab indicator element.
|
|
1179
1182
|
* @default {}
|
|
1180
1183
|
*/
|
|
1181
|
-
TabIndicatorProps:
|
|
1184
|
+
TabIndicatorProps: t.object,
|
|
1182
1185
|
/**
|
|
1183
1186
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
1184
1187
|
* @default {}
|
|
1185
1188
|
*/
|
|
1186
|
-
TabScrollButtonProps:
|
|
1189
|
+
TabScrollButtonProps: t.object,
|
|
1187
1190
|
/**
|
|
1188
1191
|
* Determines the color of the `Tab`.
|
|
1189
1192
|
* @default 'primary'
|
|
1190
1193
|
*/
|
|
1191
|
-
textColor:
|
|
1194
|
+
textColor: t.oneOf(["inherit", "primary", "secondary"]),
|
|
1192
1195
|
/**
|
|
1193
1196
|
* The value of the currently selected `Tab`.
|
|
1194
1197
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1195
1198
|
*/
|
|
1196
|
-
value:
|
|
1199
|
+
value: t.any,
|
|
1197
1200
|
/**
|
|
1198
1201
|
* Determines additional display behavior of the tabs:
|
|
1199
1202
|
*
|
|
@@ -1204,21 +1207,21 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1204
1207
|
* - `standard` will render the default state.
|
|
1205
1208
|
* @default 'standard'
|
|
1206
1209
|
*/
|
|
1207
|
-
variant:
|
|
1210
|
+
variant: t.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1208
1211
|
/**
|
|
1209
1212
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1210
1213
|
* a long vertical list of tabs.
|
|
1211
1214
|
* @default false
|
|
1212
1215
|
*/
|
|
1213
|
-
visibleScrollbar:
|
|
1216
|
+
visibleScrollbar: t.bool
|
|
1214
1217
|
});
|
|
1215
1218
|
export {
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1219
|
+
pt as K,
|
|
1220
|
+
dt as T,
|
|
1221
|
+
Et as a,
|
|
1222
|
+
ue as b,
|
|
1223
|
+
gt as c,
|
|
1224
|
+
ut as d,
|
|
1225
|
+
at as g,
|
|
1223
1226
|
T as t
|
|
1224
1227
|
};
|