@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
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-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- 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 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +118 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- 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 +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- 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 +35 -0
- package/dist/components/index.es.js +348 -294
- 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 +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +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 +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- 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 +14 -14
- 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-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as
|
|
3
|
-
import { m as
|
|
2
|
+
import { H as pt, I as ft, G as W, P as o, Z as oo } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { m as bt } from "./memoTheme-CqmIydD-.js";
|
|
4
4
|
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import { o as
|
|
14
|
-
import {
|
|
15
|
-
import { u as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return pe("MuiTab", o);
|
|
5
|
+
import { u as ht, s as j, c as mt } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
6
|
+
import { c as Wt } from "./capitalize-3KLkrEtk.js";
|
|
7
|
+
import { B as kt } from "./ButtonBase-IZ_QjbpE.js";
|
|
8
|
+
import { u as eo } from "./unsupportedProp-BuVD30Gh.js";
|
|
9
|
+
import { u as zt, a as rt } from "./useSlotProps-C9tsxDNg.js";
|
|
10
|
+
import { u as ro } from "./useTheme-BA7tMglY.js";
|
|
11
|
+
import { u as no } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
12
|
+
import { d as Dt } from "./debounce-46wSf_lW.js";
|
|
13
|
+
import { o as $t } from "./ownerWindow-niciwP7I.js";
|
|
14
|
+
import { c as At } from "./createSvgIcon-K2ZAdASa.js";
|
|
15
|
+
import { u as dt } from "./useEventCallback-BAQJJ3ye.js";
|
|
16
|
+
import { o as lo } from "./ownerDocument-CUrv0DIK.js";
|
|
17
|
+
import { r as so } from "./refType-C210ipRY.js";
|
|
18
|
+
function ao(e) {
|
|
19
|
+
return ft("MuiTab", e);
|
|
21
20
|
}
|
|
22
|
-
const T =
|
|
21
|
+
const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), io = (e) => {
|
|
23
22
|
const {
|
|
24
|
-
classes:
|
|
23
|
+
classes: t,
|
|
25
24
|
textColor: l,
|
|
26
25
|
fullWidth: d,
|
|
27
26
|
wrapped: i,
|
|
@@ -29,28 +28,28 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
29
28
|
label: b,
|
|
30
29
|
selected: h,
|
|
31
30
|
disabled: f
|
|
32
|
-
} =
|
|
33
|
-
root: ["root", u && b && "labelIcon", `textColor${
|
|
31
|
+
} = e, S = {
|
|
32
|
+
root: ["root", u && b && "labelIcon", `textColor${Wt(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
34
33
|
icon: ["iconWrapper", "icon"]
|
|
35
34
|
};
|
|
36
|
-
return
|
|
37
|
-
},
|
|
35
|
+
return mt(S, ao, t);
|
|
36
|
+
}, co = j(kt, {
|
|
38
37
|
name: "MuiTab",
|
|
39
38
|
slot: "Root",
|
|
40
|
-
overridesResolver: (
|
|
39
|
+
overridesResolver: (e, t) => {
|
|
41
40
|
const {
|
|
42
41
|
ownerState: l
|
|
43
|
-
} =
|
|
44
|
-
return [
|
|
45
|
-
[`& .${T.iconWrapper}`]:
|
|
42
|
+
} = e;
|
|
43
|
+
return [t.root, l.label && l.icon && t.labelIcon, t[`textColor${Wt(l.textColor)}`], l.fullWidth && t.fullWidth, l.wrapped && t.wrapped, {
|
|
44
|
+
[`& .${T.iconWrapper}`]: t.iconWrapper
|
|
46
45
|
}, {
|
|
47
|
-
[`& .${T.icon}`]:
|
|
46
|
+
[`& .${T.icon}`]: t.icon
|
|
48
47
|
}];
|
|
49
48
|
}
|
|
50
|
-
})(
|
|
51
|
-
theme:
|
|
49
|
+
})(bt(({
|
|
50
|
+
theme: e
|
|
52
51
|
}) => ({
|
|
53
|
-
...
|
|
52
|
+
...e.typography.button,
|
|
54
53
|
maxWidth: 360,
|
|
55
54
|
minWidth: 90,
|
|
56
55
|
position: "relative",
|
|
@@ -63,22 +62,22 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
63
62
|
lineHeight: 1.25,
|
|
64
63
|
variants: [{
|
|
65
64
|
props: ({
|
|
66
|
-
ownerState:
|
|
67
|
-
}) =>
|
|
65
|
+
ownerState: t
|
|
66
|
+
}) => t.label && (t.iconPosition === "top" || t.iconPosition === "bottom"),
|
|
68
67
|
style: {
|
|
69
68
|
flexDirection: "column"
|
|
70
69
|
}
|
|
71
70
|
}, {
|
|
72
71
|
props: ({
|
|
73
|
-
ownerState:
|
|
74
|
-
}) =>
|
|
72
|
+
ownerState: t
|
|
73
|
+
}) => t.label && t.iconPosition !== "top" && t.iconPosition !== "bottom",
|
|
75
74
|
style: {
|
|
76
75
|
flexDirection: "row"
|
|
77
76
|
}
|
|
78
77
|
}, {
|
|
79
78
|
props: ({
|
|
80
|
-
ownerState:
|
|
81
|
-
}) =>
|
|
79
|
+
ownerState: t
|
|
80
|
+
}) => t.icon && t.label,
|
|
82
81
|
style: {
|
|
83
82
|
minHeight: 72,
|
|
84
83
|
paddingTop: 9,
|
|
@@ -86,9 +85,9 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
86
85
|
}
|
|
87
86
|
}, {
|
|
88
87
|
props: ({
|
|
89
|
-
ownerState:
|
|
88
|
+
ownerState: t,
|
|
90
89
|
iconPosition: l
|
|
91
|
-
}) =>
|
|
90
|
+
}) => t.icon && t.label && l === "top",
|
|
92
91
|
style: {
|
|
93
92
|
[`& > .${T.icon}`]: {
|
|
94
93
|
marginBottom: 6
|
|
@@ -96,9 +95,9 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
96
95
|
}
|
|
97
96
|
}, {
|
|
98
97
|
props: ({
|
|
99
|
-
ownerState:
|
|
98
|
+
ownerState: t,
|
|
100
99
|
iconPosition: l
|
|
101
|
-
}) =>
|
|
100
|
+
}) => t.icon && t.label && l === "bottom",
|
|
102
101
|
style: {
|
|
103
102
|
[`& > .${T.icon}`]: {
|
|
104
103
|
marginTop: 6
|
|
@@ -106,22 +105,22 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
106
105
|
}
|
|
107
106
|
}, {
|
|
108
107
|
props: ({
|
|
109
|
-
ownerState:
|
|
108
|
+
ownerState: t,
|
|
110
109
|
iconPosition: l
|
|
111
|
-
}) =>
|
|
110
|
+
}) => t.icon && t.label && l === "start",
|
|
112
111
|
style: {
|
|
113
112
|
[`& > .${T.icon}`]: {
|
|
114
|
-
marginRight:
|
|
113
|
+
marginRight: e.spacing(1)
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
}, {
|
|
118
117
|
props: ({
|
|
119
|
-
ownerState:
|
|
118
|
+
ownerState: t,
|
|
120
119
|
iconPosition: l
|
|
121
|
-
}) =>
|
|
120
|
+
}) => t.icon && t.label && l === "end",
|
|
122
121
|
style: {
|
|
123
122
|
[`& > .${T.icon}`]: {
|
|
124
|
-
marginLeft:
|
|
123
|
+
marginLeft: e.spacing(1)
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
}, {
|
|
@@ -136,7 +135,7 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
136
135
|
opacity: 1
|
|
137
136
|
},
|
|
138
137
|
[`&.${T.disabled}`]: {
|
|
139
|
-
opacity: (
|
|
138
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
}, {
|
|
@@ -144,12 +143,12 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
144
143
|
textColor: "primary"
|
|
145
144
|
},
|
|
146
145
|
style: {
|
|
147
|
-
color: (
|
|
146
|
+
color: (e.vars || e).palette.text.secondary,
|
|
148
147
|
[`&.${T.selected}`]: {
|
|
149
|
-
color: (
|
|
148
|
+
color: (e.vars || e).palette.primary.main
|
|
150
149
|
},
|
|
151
150
|
[`&.${T.disabled}`]: {
|
|
152
|
-
color: (
|
|
151
|
+
color: (e.vars || e).palette.text.disabled
|
|
153
152
|
}
|
|
154
153
|
}
|
|
155
154
|
}, {
|
|
@@ -157,18 +156,18 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
157
156
|
textColor: "secondary"
|
|
158
157
|
},
|
|
159
158
|
style: {
|
|
160
|
-
color: (
|
|
159
|
+
color: (e.vars || e).palette.text.secondary,
|
|
161
160
|
[`&.${T.selected}`]: {
|
|
162
|
-
color: (
|
|
161
|
+
color: (e.vars || e).palette.secondary.main
|
|
163
162
|
},
|
|
164
163
|
[`&.${T.disabled}`]: {
|
|
165
|
-
color: (
|
|
164
|
+
color: (e.vars || e).palette.text.disabled
|
|
166
165
|
}
|
|
167
166
|
}
|
|
168
167
|
}, {
|
|
169
168
|
props: ({
|
|
170
|
-
ownerState:
|
|
171
|
-
}) =>
|
|
169
|
+
ownerState: t
|
|
170
|
+
}) => t.fullWidth,
|
|
172
171
|
style: {
|
|
173
172
|
flexShrink: 1,
|
|
174
173
|
flexGrow: 1,
|
|
@@ -177,15 +176,15 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
177
176
|
}
|
|
178
177
|
}, {
|
|
179
178
|
props: ({
|
|
180
|
-
ownerState:
|
|
181
|
-
}) =>
|
|
179
|
+
ownerState: t
|
|
180
|
+
}) => t.wrapped,
|
|
182
181
|
style: {
|
|
183
|
-
fontSize:
|
|
182
|
+
fontSize: e.typography.pxToRem(12)
|
|
184
183
|
}
|
|
185
184
|
}]
|
|
186
|
-
}))),
|
|
187
|
-
const d =
|
|
188
|
-
props:
|
|
185
|
+
}))), uo = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
186
|
+
const d = ht({
|
|
187
|
+
props: t,
|
|
189
188
|
name: "MuiTab"
|
|
190
189
|
}), {
|
|
191
190
|
className: i,
|
|
@@ -208,7 +207,7 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
208
207
|
// eslint-disable-next-line react/prop-types
|
|
209
208
|
textColor: L = "inherit",
|
|
210
209
|
value: M,
|
|
211
|
-
wrapped:
|
|
210
|
+
wrapped: nt = !1,
|
|
212
211
|
...H
|
|
213
212
|
} = d, U = {
|
|
214
213
|
...d,
|
|
@@ -220,15 +219,15 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
220
219
|
label: !!y,
|
|
221
220
|
fullWidth: h,
|
|
222
221
|
textColor: L,
|
|
223
|
-
wrapped:
|
|
224
|
-
}, V =
|
|
222
|
+
wrapped: nt
|
|
223
|
+
}, V = io(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
225
224
|
className: W(V.icon, f.props.className)
|
|
226
225
|
}) : f, G = (R) => {
|
|
227
226
|
!I && m && m(R, M), C && C(R);
|
|
228
227
|
}, N = (R) => {
|
|
229
228
|
g && !I && m && m(R, M), k && k(R);
|
|
230
229
|
};
|
|
231
|
-
return /* @__PURE__ */ q(
|
|
230
|
+
return /* @__PURE__ */ q(co, {
|
|
232
231
|
focusRipple: !b,
|
|
233
232
|
className: W(V.root, i),
|
|
234
233
|
ref: l,
|
|
@@ -247,7 +246,7 @@ const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
247
246
|
}), v]
|
|
248
247
|
});
|
|
249
248
|
});
|
|
250
|
-
process.env.NODE_ENV !== "production" && (
|
|
249
|
+
process.env.NODE_ENV !== "production" && (uo.propTypes = {
|
|
251
250
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
252
251
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
253
252
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -256,25 +255,25 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
256
255
|
* This prop isn't supported.
|
|
257
256
|
* Use the `component` prop if you need to change the children structure.
|
|
258
257
|
*/
|
|
259
|
-
children:
|
|
258
|
+
children: eo,
|
|
260
259
|
/**
|
|
261
260
|
* Override or extend the styles applied to the component.
|
|
262
261
|
*/
|
|
263
|
-
classes:
|
|
262
|
+
classes: o.object,
|
|
264
263
|
/**
|
|
265
264
|
* @ignore
|
|
266
265
|
*/
|
|
267
|
-
className:
|
|
266
|
+
className: o.string,
|
|
268
267
|
/**
|
|
269
268
|
* If `true`, the component is disabled.
|
|
270
269
|
* @default false
|
|
271
270
|
*/
|
|
272
|
-
disabled:
|
|
271
|
+
disabled: o.bool,
|
|
273
272
|
/**
|
|
274
273
|
* If `true`, the keyboard focus ripple is disabled.
|
|
275
274
|
* @default false
|
|
276
275
|
*/
|
|
277
|
-
disableFocusRipple:
|
|
276
|
+
disableFocusRipple: o.bool,
|
|
278
277
|
/**
|
|
279
278
|
* If `true`, the ripple effect is disabled.
|
|
280
279
|
*
|
|
@@ -282,64 +281,64 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
282
281
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
283
282
|
* @default false
|
|
284
283
|
*/
|
|
285
|
-
disableRipple:
|
|
284
|
+
disableRipple: o.bool,
|
|
286
285
|
/**
|
|
287
286
|
* The icon to display.
|
|
288
287
|
*/
|
|
289
|
-
icon:
|
|
288
|
+
icon: o.oneOfType([o.element, o.string]),
|
|
290
289
|
/**
|
|
291
290
|
* The position of the icon relative to the label.
|
|
292
291
|
* @default 'top'
|
|
293
292
|
*/
|
|
294
|
-
iconPosition:
|
|
293
|
+
iconPosition: o.oneOf(["bottom", "end", "start", "top"]),
|
|
295
294
|
/**
|
|
296
295
|
* The label element.
|
|
297
296
|
*/
|
|
298
|
-
label:
|
|
297
|
+
label: o.node,
|
|
299
298
|
/**
|
|
300
299
|
* @ignore
|
|
301
300
|
*/
|
|
302
|
-
onChange:
|
|
301
|
+
onChange: o.func,
|
|
303
302
|
/**
|
|
304
303
|
* @ignore
|
|
305
304
|
*/
|
|
306
|
-
onClick:
|
|
305
|
+
onClick: o.func,
|
|
307
306
|
/**
|
|
308
307
|
* @ignore
|
|
309
308
|
*/
|
|
310
|
-
onFocus:
|
|
309
|
+
onFocus: o.func,
|
|
311
310
|
/**
|
|
312
311
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
313
312
|
*/
|
|
314
|
-
sx:
|
|
313
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
315
314
|
/**
|
|
316
315
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
317
316
|
*/
|
|
318
|
-
value:
|
|
317
|
+
value: o.any,
|
|
319
318
|
/**
|
|
320
319
|
* Tab labels appear in a single row.
|
|
321
320
|
* They can use a second line if needed.
|
|
322
321
|
* @default false
|
|
323
322
|
*/
|
|
324
|
-
wrapped:
|
|
323
|
+
wrapped: o.bool
|
|
325
324
|
});
|
|
326
|
-
const
|
|
325
|
+
const po = At(/* @__PURE__ */ x("path", {
|
|
327
326
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
328
|
-
}), "KeyboardArrowLeft"),
|
|
327
|
+
}), "KeyboardArrowLeft"), fo = At(/* @__PURE__ */ x("path", {
|
|
329
328
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
330
329
|
}), "KeyboardArrowRight");
|
|
331
|
-
function
|
|
332
|
-
return (1 + Math.sin(Math.PI *
|
|
330
|
+
function bo(e) {
|
|
331
|
+
return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function ho(e, t, l, d = {}, i = () => {
|
|
335
334
|
}) {
|
|
336
335
|
const {
|
|
337
|
-
ease: u =
|
|
336
|
+
ease: u = bo,
|
|
338
337
|
duration: b = 300
|
|
339
338
|
// standard
|
|
340
339
|
} = d;
|
|
341
340
|
let h = null;
|
|
342
|
-
const f = e
|
|
341
|
+
const f = t[e];
|
|
343
342
|
let S = !1;
|
|
344
343
|
const v = () => {
|
|
345
344
|
S = !0;
|
|
@@ -350,7 +349,7 @@ function bt(o, e, l, d = {}, i = () => {
|
|
|
350
349
|
}
|
|
351
350
|
h === null && (h = m);
|
|
352
351
|
const C = Math.min(1, (m - h) / b);
|
|
353
|
-
if (e
|
|
352
|
+
if (t[e] = u(C) * (l - f) + f, C >= 1) {
|
|
354
353
|
requestAnimationFrame(() => {
|
|
355
354
|
i(null);
|
|
356
355
|
});
|
|
@@ -360,65 +359,65 @@ function bt(o, e, l, d = {}, i = () => {
|
|
|
360
359
|
};
|
|
361
360
|
return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
|
|
362
361
|
}
|
|
363
|
-
const
|
|
362
|
+
const mo = {
|
|
364
363
|
width: 99,
|
|
365
364
|
height: 99,
|
|
366
365
|
position: "absolute",
|
|
367
366
|
top: -9999,
|
|
368
367
|
overflow: "scroll"
|
|
369
368
|
};
|
|
370
|
-
function
|
|
369
|
+
function Ft(e) {
|
|
371
370
|
const {
|
|
372
|
-
onChange:
|
|
371
|
+
onChange: t,
|
|
373
372
|
...l
|
|
374
|
-
} =
|
|
373
|
+
} = e, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
375
374
|
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
376
375
|
};
|
|
377
|
-
return
|
|
378
|
-
const b =
|
|
376
|
+
return no(() => {
|
|
377
|
+
const b = Dt(() => {
|
|
379
378
|
const f = d.current;
|
|
380
|
-
u(), f !== d.current &&
|
|
381
|
-
}), h =
|
|
379
|
+
u(), f !== d.current && t(d.current);
|
|
380
|
+
}), h = $t(i.current);
|
|
382
381
|
return h.addEventListener("resize", b), () => {
|
|
383
382
|
b.clear(), h.removeEventListener("resize", b);
|
|
384
383
|
};
|
|
385
|
-
}, [
|
|
386
|
-
u(),
|
|
387
|
-
}, [
|
|
388
|
-
style:
|
|
389
|
-
|
|
390
|
-
|
|
384
|
+
}, [t]), c.useEffect(() => {
|
|
385
|
+
u(), t(d.current);
|
|
386
|
+
}, [t]), /* @__PURE__ */ x("div", {
|
|
387
|
+
style: mo,
|
|
388
|
+
...l,
|
|
389
|
+
ref: i
|
|
391
390
|
});
|
|
392
391
|
}
|
|
393
|
-
process.env.NODE_ENV !== "production" && (
|
|
394
|
-
onChange:
|
|
392
|
+
process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
393
|
+
onChange: o.func.isRequired
|
|
395
394
|
});
|
|
396
|
-
function
|
|
397
|
-
return
|
|
395
|
+
function So(e) {
|
|
396
|
+
return ft("MuiTabScrollButton", e);
|
|
398
397
|
}
|
|
399
|
-
const
|
|
398
|
+
const vo = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), yo = (e) => {
|
|
400
399
|
const {
|
|
401
|
-
classes:
|
|
400
|
+
classes: t,
|
|
402
401
|
orientation: l,
|
|
403
402
|
disabled: d
|
|
404
|
-
} =
|
|
405
|
-
return
|
|
403
|
+
} = e;
|
|
404
|
+
return mt({
|
|
406
405
|
root: ["root", l, d && "disabled"]
|
|
407
|
-
},
|
|
408
|
-
},
|
|
406
|
+
}, So, t);
|
|
407
|
+
}, go = j(kt, {
|
|
409
408
|
name: "MuiTabScrollButton",
|
|
410
409
|
slot: "Root",
|
|
411
|
-
overridesResolver: (
|
|
410
|
+
overridesResolver: (e, t) => {
|
|
412
411
|
const {
|
|
413
412
|
ownerState: l
|
|
414
|
-
} =
|
|
415
|
-
return [
|
|
413
|
+
} = e;
|
|
414
|
+
return [t.root, l.orientation && t[l.orientation]];
|
|
416
415
|
}
|
|
417
416
|
})({
|
|
418
417
|
width: 40,
|
|
419
418
|
flexShrink: 0,
|
|
420
419
|
opacity: 0.8,
|
|
421
|
-
[`&.${
|
|
420
|
+
[`&.${vo.disabled}`]: {
|
|
422
421
|
opacity: 0
|
|
423
422
|
},
|
|
424
423
|
variants: [{
|
|
@@ -433,9 +432,9 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
433
432
|
}
|
|
434
433
|
}
|
|
435
434
|
}]
|
|
436
|
-
}),
|
|
437
|
-
const d =
|
|
438
|
-
props:
|
|
435
|
+
}), jt = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
436
|
+
const d = ht({
|
|
437
|
+
props: t,
|
|
439
438
|
name: "MuiTabScrollButton"
|
|
440
439
|
}), {
|
|
441
440
|
className: i,
|
|
@@ -445,17 +444,17 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
445
444
|
orientation: f,
|
|
446
445
|
disabled: S,
|
|
447
446
|
...v
|
|
448
|
-
} = d, y =
|
|
447
|
+
} = d, y = zt(), m = {
|
|
449
448
|
isRtl: y,
|
|
450
449
|
...d
|
|
451
|
-
}, C =
|
|
450
|
+
}, C = yo(m), k = u.StartScrollButtonIcon ?? po, I = u.EndScrollButtonIcon ?? fo, g = rt({
|
|
452
451
|
elementType: k,
|
|
453
452
|
externalSlotProps: b.startScrollButtonIcon,
|
|
454
453
|
additionalProps: {
|
|
455
454
|
fontSize: "small"
|
|
456
455
|
},
|
|
457
456
|
ownerState: m
|
|
458
|
-
}), L =
|
|
457
|
+
}), L = rt({
|
|
459
458
|
elementType: I,
|
|
460
459
|
externalSlotProps: b.endScrollButtonIcon,
|
|
461
460
|
additionalProps: {
|
|
@@ -463,7 +462,7 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
463
462
|
},
|
|
464
463
|
ownerState: m
|
|
465
464
|
});
|
|
466
|
-
return /* @__PURE__ */ x(
|
|
465
|
+
return /* @__PURE__ */ x(go, {
|
|
467
466
|
component: "div",
|
|
468
467
|
className: W(C.root, i),
|
|
469
468
|
ref: l,
|
|
@@ -484,7 +483,7 @@ const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
484
483
|
})
|
|
485
484
|
});
|
|
486
485
|
});
|
|
487
|
-
process.env.NODE_ENV !== "production" && (
|
|
486
|
+
process.env.NODE_ENV !== "production" && (jt.propTypes = {
|
|
488
487
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
489
488
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
490
489
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -492,76 +491,76 @@ process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
|
492
491
|
/**
|
|
493
492
|
* The content of the component.
|
|
494
493
|
*/
|
|
495
|
-
children:
|
|
494
|
+
children: o.node,
|
|
496
495
|
/**
|
|
497
496
|
* Override or extend the styles applied to the component.
|
|
498
497
|
*/
|
|
499
|
-
classes:
|
|
498
|
+
classes: o.object,
|
|
500
499
|
/**
|
|
501
500
|
* @ignore
|
|
502
501
|
*/
|
|
503
|
-
className:
|
|
502
|
+
className: o.string,
|
|
504
503
|
/**
|
|
505
504
|
* The direction the button should indicate.
|
|
506
505
|
*/
|
|
507
|
-
direction:
|
|
506
|
+
direction: o.oneOf(["left", "right"]).isRequired,
|
|
508
507
|
/**
|
|
509
508
|
* If `true`, the component is disabled.
|
|
510
509
|
* @default false
|
|
511
510
|
*/
|
|
512
|
-
disabled:
|
|
511
|
+
disabled: o.bool,
|
|
513
512
|
/**
|
|
514
513
|
* The component orientation (layout flow direction).
|
|
515
514
|
*/
|
|
516
|
-
orientation:
|
|
515
|
+
orientation: o.oneOf(["horizontal", "vertical"]).isRequired,
|
|
517
516
|
/**
|
|
518
517
|
* The extra props for the slot components.
|
|
519
518
|
* You can override the existing props or add new ones.
|
|
520
519
|
* @default {}
|
|
521
520
|
*/
|
|
522
|
-
slotProps:
|
|
523
|
-
endScrollButtonIcon:
|
|
524
|
-
startScrollButtonIcon:
|
|
521
|
+
slotProps: o.shape({
|
|
522
|
+
endScrollButtonIcon: o.oneOfType([o.func, o.object]),
|
|
523
|
+
startScrollButtonIcon: o.oneOfType([o.func, o.object])
|
|
525
524
|
}),
|
|
526
525
|
/**
|
|
527
526
|
* The components used for each slot inside.
|
|
528
527
|
* @default {}
|
|
529
528
|
*/
|
|
530
|
-
slots:
|
|
531
|
-
EndScrollButtonIcon:
|
|
532
|
-
StartScrollButtonIcon:
|
|
529
|
+
slots: o.shape({
|
|
530
|
+
EndScrollButtonIcon: o.elementType,
|
|
531
|
+
StartScrollButtonIcon: o.elementType
|
|
533
532
|
}),
|
|
534
533
|
/**
|
|
535
534
|
* @ignore
|
|
536
535
|
*/
|
|
537
|
-
style:
|
|
536
|
+
style: o.object,
|
|
538
537
|
/**
|
|
539
538
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
540
539
|
*/
|
|
541
|
-
sx:
|
|
540
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
542
541
|
});
|
|
543
|
-
function
|
|
544
|
-
return
|
|
542
|
+
function To(e) {
|
|
543
|
+
return ft("MuiTabs", e);
|
|
545
544
|
}
|
|
546
|
-
const
|
|
547
|
-
let d = !1, i = l(
|
|
545
|
+
const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Rt = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Ot = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, et = (e, t, l) => {
|
|
546
|
+
let d = !1, i = l(e, t);
|
|
548
547
|
for (; i; ) {
|
|
549
|
-
if (i ===
|
|
548
|
+
if (i === e.firstChild) {
|
|
550
549
|
if (d)
|
|
551
550
|
return;
|
|
552
551
|
d = !0;
|
|
553
552
|
}
|
|
554
553
|
const u = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
555
554
|
if (!i.hasAttribute("tabindex") || u)
|
|
556
|
-
i = l(
|
|
555
|
+
i = l(e, i);
|
|
557
556
|
else {
|
|
558
557
|
i.focus();
|
|
559
558
|
return;
|
|
560
559
|
}
|
|
561
560
|
}
|
|
562
|
-
},
|
|
561
|
+
}, wo = (e) => {
|
|
563
562
|
const {
|
|
564
|
-
vertical:
|
|
563
|
+
vertical: t,
|
|
565
564
|
fixed: l,
|
|
566
565
|
hideScrollbar: d,
|
|
567
566
|
scrollableX: i,
|
|
@@ -569,31 +568,31 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
569
568
|
centered: b,
|
|
570
569
|
scrollButtonsHideMobile: h,
|
|
571
570
|
classes: f
|
|
572
|
-
} =
|
|
573
|
-
return
|
|
574
|
-
root: ["root",
|
|
571
|
+
} = e;
|
|
572
|
+
return mt({
|
|
573
|
+
root: ["root", t && "vertical"],
|
|
575
574
|
scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
|
|
576
|
-
flexContainer: ["flexContainer",
|
|
575
|
+
flexContainer: ["flexContainer", t && "flexContainerVertical", b && "centered"],
|
|
577
576
|
indicator: ["indicator"],
|
|
578
577
|
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
579
578
|
scrollableX: [i && "scrollableX"],
|
|
580
579
|
hideScrollbar: [d && "hideScrollbar"]
|
|
581
|
-
},
|
|
582
|
-
},
|
|
580
|
+
}, To, f);
|
|
581
|
+
}, Bo = j("div", {
|
|
583
582
|
name: "MuiTabs",
|
|
584
583
|
slot: "Root",
|
|
585
|
-
overridesResolver: (
|
|
584
|
+
overridesResolver: (e, t) => {
|
|
586
585
|
const {
|
|
587
586
|
ownerState: l
|
|
588
|
-
} =
|
|
587
|
+
} = e;
|
|
589
588
|
return [{
|
|
590
|
-
[`& .${
|
|
589
|
+
[`& .${ut.scrollButtons}`]: t.scrollButtons
|
|
591
590
|
}, {
|
|
592
|
-
[`& .${
|
|
593
|
-
},
|
|
591
|
+
[`& .${ut.scrollButtons}`]: l.scrollButtonsHideMobile && t.scrollButtonsHideMobile
|
|
592
|
+
}, t.root, l.vertical && t.vertical];
|
|
594
593
|
}
|
|
595
|
-
})(
|
|
596
|
-
theme:
|
|
594
|
+
})(bt(({
|
|
595
|
+
theme: e
|
|
597
596
|
}) => ({
|
|
598
597
|
overflow: "hidden",
|
|
599
598
|
minHeight: 48,
|
|
@@ -602,31 +601,31 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
602
601
|
display: "flex",
|
|
603
602
|
variants: [{
|
|
604
603
|
props: ({
|
|
605
|
-
ownerState:
|
|
606
|
-
}) =>
|
|
604
|
+
ownerState: t
|
|
605
|
+
}) => t.vertical,
|
|
607
606
|
style: {
|
|
608
607
|
flexDirection: "column"
|
|
609
608
|
}
|
|
610
609
|
}, {
|
|
611
610
|
props: ({
|
|
612
|
-
ownerState:
|
|
613
|
-
}) =>
|
|
611
|
+
ownerState: t
|
|
612
|
+
}) => t.scrollButtonsHideMobile,
|
|
614
613
|
style: {
|
|
615
|
-
[`& .${
|
|
616
|
-
[
|
|
614
|
+
[`& .${ut.scrollButtons}`]: {
|
|
615
|
+
[e.breakpoints.down("sm")]: {
|
|
617
616
|
display: "none"
|
|
618
617
|
}
|
|
619
618
|
}
|
|
620
619
|
}
|
|
621
620
|
}]
|
|
622
|
-
}))),
|
|
621
|
+
}))), xo = j("div", {
|
|
623
622
|
name: "MuiTabs",
|
|
624
623
|
slot: "Scroller",
|
|
625
|
-
overridesResolver: (
|
|
624
|
+
overridesResolver: (e, t) => {
|
|
626
625
|
const {
|
|
627
626
|
ownerState: l
|
|
628
|
-
} =
|
|
629
|
-
return [
|
|
627
|
+
} = e;
|
|
628
|
+
return [t.scroller, l.fixed && t.fixed, l.hideScrollbar && t.hideScrollbar, l.scrollableX && t.scrollableX, l.scrollableY && t.scrollableY];
|
|
630
629
|
}
|
|
631
630
|
})({
|
|
632
631
|
position: "relative",
|
|
@@ -635,16 +634,16 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
635
634
|
whiteSpace: "nowrap",
|
|
636
635
|
variants: [{
|
|
637
636
|
props: ({
|
|
638
|
-
ownerState:
|
|
639
|
-
}) =>
|
|
637
|
+
ownerState: e
|
|
638
|
+
}) => e.fixed,
|
|
640
639
|
style: {
|
|
641
640
|
overflowX: "hidden",
|
|
642
641
|
width: "100%"
|
|
643
642
|
}
|
|
644
643
|
}, {
|
|
645
644
|
props: ({
|
|
646
|
-
ownerState:
|
|
647
|
-
}) =>
|
|
645
|
+
ownerState: e
|
|
646
|
+
}) => e.hideScrollbar,
|
|
648
647
|
style: {
|
|
649
648
|
// Hide dimensionless scrollbar on macOS
|
|
650
649
|
scrollbarWidth: "none",
|
|
@@ -656,84 +655,84 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
656
655
|
}
|
|
657
656
|
}, {
|
|
658
657
|
props: ({
|
|
659
|
-
ownerState:
|
|
660
|
-
}) =>
|
|
658
|
+
ownerState: e
|
|
659
|
+
}) => e.scrollableX,
|
|
661
660
|
style: {
|
|
662
661
|
overflowX: "auto",
|
|
663
662
|
overflowY: "hidden"
|
|
664
663
|
}
|
|
665
664
|
}, {
|
|
666
665
|
props: ({
|
|
667
|
-
ownerState:
|
|
668
|
-
}) =>
|
|
666
|
+
ownerState: e
|
|
667
|
+
}) => e.scrollableY,
|
|
669
668
|
style: {
|
|
670
669
|
overflowY: "auto",
|
|
671
670
|
overflowX: "hidden"
|
|
672
671
|
}
|
|
673
672
|
}]
|
|
674
|
-
}),
|
|
673
|
+
}), Co = j("div", {
|
|
675
674
|
name: "MuiTabs",
|
|
676
675
|
slot: "FlexContainer",
|
|
677
|
-
overridesResolver: (
|
|
676
|
+
overridesResolver: (e, t) => {
|
|
678
677
|
const {
|
|
679
678
|
ownerState: l
|
|
680
|
-
} =
|
|
681
|
-
return [
|
|
679
|
+
} = e;
|
|
680
|
+
return [t.flexContainer, l.vertical && t.flexContainerVertical, l.centered && t.centered];
|
|
682
681
|
}
|
|
683
682
|
})({
|
|
684
683
|
display: "flex",
|
|
685
684
|
variants: [{
|
|
686
685
|
props: ({
|
|
687
|
-
ownerState:
|
|
688
|
-
}) =>
|
|
686
|
+
ownerState: e
|
|
687
|
+
}) => e.vertical,
|
|
689
688
|
style: {
|
|
690
689
|
flexDirection: "column"
|
|
691
690
|
}
|
|
692
691
|
}, {
|
|
693
692
|
props: ({
|
|
694
|
-
ownerState:
|
|
695
|
-
}) =>
|
|
693
|
+
ownerState: e
|
|
694
|
+
}) => e.centered,
|
|
696
695
|
style: {
|
|
697
696
|
justifyContent: "center"
|
|
698
697
|
}
|
|
699
698
|
}]
|
|
700
|
-
}),
|
|
699
|
+
}), Io = j("span", {
|
|
701
700
|
name: "MuiTabs",
|
|
702
701
|
slot: "Indicator",
|
|
703
|
-
overridesResolver: (
|
|
704
|
-
})(
|
|
705
|
-
theme:
|
|
702
|
+
overridesResolver: (e, t) => t.indicator
|
|
703
|
+
})(bt(({
|
|
704
|
+
theme: e
|
|
706
705
|
}) => ({
|
|
707
706
|
position: "absolute",
|
|
708
707
|
height: 2,
|
|
709
708
|
bottom: 0,
|
|
710
709
|
width: "100%",
|
|
711
|
-
transition:
|
|
710
|
+
transition: e.transitions.create(),
|
|
712
711
|
variants: [{
|
|
713
712
|
props: {
|
|
714
713
|
indicatorColor: "primary"
|
|
715
714
|
},
|
|
716
715
|
style: {
|
|
717
|
-
backgroundColor: (
|
|
716
|
+
backgroundColor: (e.vars || e).palette.primary.main
|
|
718
717
|
}
|
|
719
718
|
}, {
|
|
720
719
|
props: {
|
|
721
720
|
indicatorColor: "secondary"
|
|
722
721
|
},
|
|
723
722
|
style: {
|
|
724
|
-
backgroundColor: (
|
|
723
|
+
backgroundColor: (e.vars || e).palette.secondary.main
|
|
725
724
|
}
|
|
726
725
|
}, {
|
|
727
726
|
props: ({
|
|
728
|
-
ownerState:
|
|
729
|
-
}) =>
|
|
727
|
+
ownerState: t
|
|
728
|
+
}) => t.vertical,
|
|
730
729
|
style: {
|
|
731
730
|
height: "100%",
|
|
732
731
|
width: 2,
|
|
733
732
|
right: 0
|
|
734
733
|
}
|
|
735
734
|
}]
|
|
736
|
-
}))),
|
|
735
|
+
}))), Eo = j(Ft)({
|
|
737
736
|
overflowX: "auto",
|
|
738
737
|
overflowY: "hidden",
|
|
739
738
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -743,13 +742,13 @@ const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
743
742
|
display: "none"
|
|
744
743
|
// Safari + Chrome
|
|
745
744
|
}
|
|
746
|
-
}),
|
|
747
|
-
let
|
|
748
|
-
const
|
|
749
|
-
const d =
|
|
750
|
-
props:
|
|
745
|
+
}), Nt = {};
|
|
746
|
+
let Pt = !1;
|
|
747
|
+
const Mo = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
748
|
+
const d = ht({
|
|
749
|
+
props: t,
|
|
751
750
|
name: "MuiTabs"
|
|
752
|
-
}), i =
|
|
751
|
+
}), i = ro(), u = zt(), {
|
|
753
752
|
"aria-label": b,
|
|
754
753
|
"aria-labelledby": h,
|
|
755
754
|
action: f,
|
|
@@ -761,9 +760,9 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
761
760
|
indicatorColor: k = "primary",
|
|
762
761
|
onChange: I,
|
|
763
762
|
orientation: g = "horizontal",
|
|
764
|
-
ScrollButtonComponent: L =
|
|
763
|
+
ScrollButtonComponent: L = jt,
|
|
765
764
|
scrollButtons: M = "auto",
|
|
766
|
-
selectionFollowsFocus:
|
|
765
|
+
selectionFollowsFocus: nt,
|
|
767
766
|
slots: H = {},
|
|
768
767
|
slotProps: U = {},
|
|
769
768
|
TabIndicatorProps: V = {},
|
|
@@ -771,9 +770,9 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
771
770
|
textColor: G = "primary",
|
|
772
771
|
value: N,
|
|
773
772
|
variant: R = "standard",
|
|
774
|
-
visibleScrollbar:
|
|
775
|
-
...
|
|
776
|
-
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft",
|
|
773
|
+
visibleScrollbar: lt = !1,
|
|
774
|
+
...Lt
|
|
775
|
+
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", Z = B ? "top" : "left", J = B ? "bottom" : "right", st = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
777
776
|
...d,
|
|
778
777
|
component: m,
|
|
779
778
|
allowScrollButtonsMobile: C,
|
|
@@ -783,27 +782,27 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
783
782
|
scrollButtons: M,
|
|
784
783
|
textColor: G,
|
|
785
784
|
variant: R,
|
|
786
|
-
visibleScrollbar:
|
|
785
|
+
visibleScrollbar: lt,
|
|
787
786
|
fixed: !w,
|
|
788
|
-
hideScrollbar: w && !
|
|
787
|
+
hideScrollbar: w && !lt,
|
|
789
788
|
scrollableX: w && !B,
|
|
790
789
|
scrollableY: w && B,
|
|
791
790
|
centered: S && !w,
|
|
792
791
|
scrollButtonsHideMobile: !C
|
|
793
|
-
}, P =
|
|
792
|
+
}, P = wo(D), Ht = rt({
|
|
794
793
|
elementType: H.StartScrollButtonIcon,
|
|
795
794
|
externalSlotProps: U.startScrollButtonIcon,
|
|
796
795
|
ownerState: D
|
|
797
|
-
}),
|
|
796
|
+
}), Vt = rt({
|
|
798
797
|
elementType: H.EndScrollButtonIcon,
|
|
799
798
|
externalSlotProps: U.endScrollButtonIcon,
|
|
800
799
|
ownerState: D
|
|
801
800
|
});
|
|
802
801
|
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.');
|
|
803
|
-
const [
|
|
802
|
+
const [St, Ut] = c.useState(!1), [$, vt] = c.useState(Nt), [yt, Xt] = c.useState(!1), [gt, Yt] = c.useState(!1), [Tt, Kt] = c.useState(!1), [wt, _t] = c.useState({
|
|
804
803
|
overflow: "hidden",
|
|
805
804
|
scrollbarWidth: 0
|
|
806
|
-
}),
|
|
805
|
+
}), Q = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Bt = () => {
|
|
807
806
|
const r = O.current;
|
|
808
807
|
let n;
|
|
809
808
|
if (r) {
|
|
@@ -823,22 +822,22 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
823
822
|
if (r && N !== !1) {
|
|
824
823
|
const a = A.current.children;
|
|
825
824
|
if (a.length > 0) {
|
|
826
|
-
const p = a[
|
|
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}".`,
|
|
828
|
-
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !
|
|
825
|
+
const p = a[Q.get(N)];
|
|
826
|
+
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}".`, Q.keys ? `You can provide one of the following values: ${Array.from(Q.keys()).join(", ")}.` : null].join(`
|
|
827
|
+
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pt && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
829
828
|
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(`
|
|
830
|
-
`)),
|
|
829
|
+
`)), Pt = !0);
|
|
831
830
|
}
|
|
832
831
|
}
|
|
833
832
|
return {
|
|
834
833
|
tabsMeta: n,
|
|
835
834
|
tabMeta: s
|
|
836
835
|
};
|
|
837
|
-
}, K =
|
|
836
|
+
}, K = dt(() => {
|
|
838
837
|
const {
|
|
839
838
|
tabsMeta: r,
|
|
840
839
|
tabMeta: n
|
|
841
|
-
} =
|
|
840
|
+
} = Bt();
|
|
842
841
|
let s = 0, a;
|
|
843
842
|
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)));
|
|
844
843
|
const p = {
|
|
@@ -847,60 +846,60 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
847
846
|
[Y]: n ? n[Y] : 0
|
|
848
847
|
};
|
|
849
848
|
if (typeof $[a] != "number" || typeof $[Y] != "number")
|
|
850
|
-
|
|
849
|
+
vt(p);
|
|
851
850
|
else {
|
|
852
851
|
const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
|
|
853
|
-
(E >= 1 || F >= 1) &&
|
|
852
|
+
(E >= 1 || F >= 1) && vt(p);
|
|
854
853
|
}
|
|
855
|
-
}),
|
|
854
|
+
}), at = (r, {
|
|
856
855
|
animation: n = !0
|
|
857
856
|
} = {}) => {
|
|
858
|
-
n ?
|
|
857
|
+
n ? ho(X, O.current, r, {
|
|
859
858
|
duration: i.transitions.duration.standard
|
|
860
859
|
}) : O.current[X] = r;
|
|
861
|
-
},
|
|
860
|
+
}, xt = (r) => {
|
|
862
861
|
let n = O.current[X];
|
|
863
|
-
B ? n += r : n += r * (u ? -1 : 1),
|
|
864
|
-
},
|
|
865
|
-
const r = O.current[
|
|
862
|
+
B ? n += r : n += r * (u ? -1 : 1), at(n);
|
|
863
|
+
}, Ct = () => {
|
|
864
|
+
const r = O.current[st];
|
|
866
865
|
let n = 0;
|
|
867
866
|
const s = Array.from(A.current.children);
|
|
868
867
|
for (let a = 0; a < s.length; a += 1) {
|
|
869
868
|
const p = s[a];
|
|
870
|
-
if (n + p[
|
|
869
|
+
if (n + p[st] > r) {
|
|
871
870
|
a === 0 && (n = r);
|
|
872
871
|
break;
|
|
873
872
|
}
|
|
874
|
-
n += p[
|
|
873
|
+
n += p[st];
|
|
875
874
|
}
|
|
876
875
|
return n;
|
|
877
|
-
},
|
|
878
|
-
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
},
|
|
882
|
-
|
|
876
|
+
}, qt = () => {
|
|
877
|
+
xt(-1 * Ct());
|
|
878
|
+
}, Gt = () => {
|
|
879
|
+
xt(Ct());
|
|
880
|
+
}, Zt = c.useCallback((r) => {
|
|
881
|
+
_t({
|
|
883
882
|
overflow: null,
|
|
884
883
|
scrollbarWidth: r
|
|
885
884
|
});
|
|
886
|
-
}, []),
|
|
885
|
+
}, []), Jt = () => {
|
|
887
886
|
const r = {};
|
|
888
|
-
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(
|
|
889
|
-
onChange:
|
|
887
|
+
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(Eo, {
|
|
888
|
+
onChange: Zt,
|
|
890
889
|
className: W(P.scrollableX, P.hideScrollbar)
|
|
891
890
|
}) : null;
|
|
892
|
-
const s = w && (M === "auto" && (
|
|
891
|
+
const s = w && (M === "auto" && (yt || gt) || M === !0);
|
|
893
892
|
return r.scrollButtonStart = s ? /* @__PURE__ */ x(L, {
|
|
894
893
|
slots: {
|
|
895
894
|
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
896
895
|
},
|
|
897
896
|
slotProps: {
|
|
898
|
-
startScrollButtonIcon:
|
|
897
|
+
startScrollButtonIcon: Ht
|
|
899
898
|
},
|
|
900
899
|
orientation: g,
|
|
901
900
|
direction: u ? "right" : "left",
|
|
902
|
-
onClick:
|
|
903
|
-
disabled: !
|
|
901
|
+
onClick: qt,
|
|
902
|
+
disabled: !yt,
|
|
904
903
|
...z,
|
|
905
904
|
className: W(P.scrollButtons, z.className)
|
|
906
905
|
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(L, {
|
|
@@ -908,38 +907,38 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
908
907
|
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
909
908
|
},
|
|
910
909
|
slotProps: {
|
|
911
|
-
endScrollButtonIcon:
|
|
910
|
+
endScrollButtonIcon: Vt
|
|
912
911
|
},
|
|
913
912
|
orientation: g,
|
|
914
913
|
direction: u ? "left" : "right",
|
|
915
|
-
onClick:
|
|
916
|
-
disabled: !
|
|
914
|
+
onClick: Gt,
|
|
915
|
+
disabled: !gt,
|
|
917
916
|
...z,
|
|
918
917
|
className: W(P.scrollButtons, z.className)
|
|
919
918
|
}) : null, r;
|
|
920
|
-
},
|
|
919
|
+
}, It = dt((r) => {
|
|
921
920
|
const {
|
|
922
921
|
tabsMeta: n,
|
|
923
922
|
tabMeta: s
|
|
924
|
-
} =
|
|
923
|
+
} = Bt();
|
|
925
924
|
if (!(!s || !n)) {
|
|
926
|
-
if (s[
|
|
927
|
-
const a = n[X] + (s[
|
|
928
|
-
|
|
925
|
+
if (s[Z] < n[Z]) {
|
|
926
|
+
const a = n[X] + (s[Z] - n[Z]);
|
|
927
|
+
at(a, {
|
|
929
928
|
animation: r
|
|
930
929
|
});
|
|
931
|
-
} else if (s[
|
|
932
|
-
const a = n[X] + (s[
|
|
933
|
-
|
|
930
|
+
} else if (s[J] > n[J]) {
|
|
931
|
+
const a = n[X] + (s[J] - n[J]);
|
|
932
|
+
at(a, {
|
|
934
933
|
animation: r
|
|
935
934
|
});
|
|
936
935
|
}
|
|
937
936
|
}
|
|
938
|
-
}),
|
|
939
|
-
w && M !== !1 &&
|
|
937
|
+
}), tt = dt(() => {
|
|
938
|
+
w && M !== !1 && Kt(!Tt);
|
|
940
939
|
});
|
|
941
940
|
c.useEffect(() => {
|
|
942
|
-
const r =
|
|
941
|
+
const r = Dt(() => {
|
|
943
942
|
O.current && K();
|
|
944
943
|
});
|
|
945
944
|
let n;
|
|
@@ -950,8 +949,8 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
950
949
|
}), F.addedNodes.forEach((_) => {
|
|
951
950
|
n == null || n.observe(_);
|
|
952
951
|
});
|
|
953
|
-
}), r(),
|
|
954
|
-
}, a =
|
|
952
|
+
}), r(), tt();
|
|
953
|
+
}, a = $t(O.current);
|
|
955
954
|
a.addEventListener("resize", r);
|
|
956
955
|
let p;
|
|
957
956
|
return typeof ResizeObserver < "u" && (n = new ResizeObserver(r), Array.from(A.current.children).forEach((E) => {
|
|
@@ -961,34 +960,34 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
961
960
|
})), () => {
|
|
962
961
|
r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
|
|
963
962
|
};
|
|
964
|
-
}, [K,
|
|
963
|
+
}, [K, tt]), c.useEffect(() => {
|
|
965
964
|
const r = Array.from(A.current.children), n = r.length;
|
|
966
965
|
if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
|
|
967
966
|
const s = r[0], a = r[n - 1], p = {
|
|
968
967
|
root: O.current,
|
|
969
968
|
threshold: 0.99
|
|
970
|
-
}, E = (
|
|
971
|
-
|
|
969
|
+
}, E = (ct) => {
|
|
970
|
+
Xt(!ct[0].isIntersecting);
|
|
972
971
|
}, F = new IntersectionObserver(E, p);
|
|
973
972
|
F.observe(s);
|
|
974
|
-
const _ = (
|
|
975
|
-
|
|
976
|
-
},
|
|
977
|
-
return
|
|
978
|
-
F.disconnect(),
|
|
973
|
+
const _ = (ct) => {
|
|
974
|
+
Yt(!ct[0].isIntersecting);
|
|
975
|
+
}, Mt = new IntersectionObserver(_, p);
|
|
976
|
+
return Mt.observe(a), () => {
|
|
977
|
+
F.disconnect(), Mt.disconnect();
|
|
979
978
|
};
|
|
980
979
|
}
|
|
981
|
-
}, [w, M,
|
|
982
|
-
|
|
980
|
+
}, [w, M, Tt, v == null ? void 0 : v.length]), c.useEffect(() => {
|
|
981
|
+
Ut(!0);
|
|
983
982
|
}, []), c.useEffect(() => {
|
|
984
983
|
K();
|
|
985
984
|
}), c.useEffect(() => {
|
|
986
|
-
|
|
987
|
-
}, [
|
|
985
|
+
It(Nt !== $);
|
|
986
|
+
}, [It, $]), c.useImperativeHandle(f, () => ({
|
|
988
987
|
updateIndicator: K,
|
|
989
|
-
updateScrollButtons:
|
|
990
|
-
}), [K,
|
|
991
|
-
const
|
|
988
|
+
updateScrollButtons: tt
|
|
989
|
+
}), [K, tt]);
|
|
990
|
+
const Et = /* @__PURE__ */ x(Io, {
|
|
992
991
|
...V,
|
|
993
992
|
className: W(P.indicator, V.className),
|
|
994
993
|
ownerState: D,
|
|
@@ -997,76 +996,76 @@ const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
|
997
996
|
...V.style
|
|
998
997
|
}
|
|
999
998
|
});
|
|
1000
|
-
let
|
|
1001
|
-
const
|
|
999
|
+
let ot = 0;
|
|
1000
|
+
const Qt = c.Children.map(v, (r) => {
|
|
1002
1001
|
if (!/* @__PURE__ */ c.isValidElement(r))
|
|
1003
1002
|
return null;
|
|
1004
|
-
process.env.NODE_ENV !== "production" &&
|
|
1003
|
+
process.env.NODE_ENV !== "production" && oo.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1005
1004
|
`));
|
|
1006
|
-
const n = r.props.value === void 0 ?
|
|
1007
|
-
|
|
1005
|
+
const n = r.props.value === void 0 ? ot : r.props.value;
|
|
1006
|
+
Q.set(n, ot);
|
|
1008
1007
|
const s = n === N;
|
|
1009
|
-
return
|
|
1008
|
+
return ot += 1, /* @__PURE__ */ c.cloneElement(r, {
|
|
1010
1009
|
fullWidth: R === "fullWidth",
|
|
1011
|
-
indicator: s && !
|
|
1010
|
+
indicator: s && !St && Et,
|
|
1012
1011
|
selected: s,
|
|
1013
|
-
selectionFollowsFocus:
|
|
1012
|
+
selectionFollowsFocus: nt,
|
|
1014
1013
|
onChange: I,
|
|
1015
1014
|
textColor: G,
|
|
1016
1015
|
value: n,
|
|
1017
|
-
...
|
|
1016
|
+
...ot === 1 && N === !1 && !r.props.tabIndex ? {
|
|
1018
1017
|
tabIndex: 0
|
|
1019
1018
|
} : {}
|
|
1020
1019
|
});
|
|
1021
|
-
}),
|
|
1022
|
-
const n = A.current, s =
|
|
1020
|
+
}), to = (r) => {
|
|
1021
|
+
const n = A.current, s = lo(n).activeElement;
|
|
1023
1022
|
if (s.getAttribute("role") !== "tab")
|
|
1024
1023
|
return;
|
|
1025
1024
|
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1026
1025
|
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
|
|
1027
1026
|
case p:
|
|
1028
|
-
r.preventDefault(),
|
|
1027
|
+
r.preventDefault(), et(n, s, Ot);
|
|
1029
1028
|
break;
|
|
1030
1029
|
case E:
|
|
1031
|
-
r.preventDefault(),
|
|
1030
|
+
r.preventDefault(), et(n, s, Rt);
|
|
1032
1031
|
break;
|
|
1033
1032
|
case "Home":
|
|
1034
|
-
r.preventDefault(),
|
|
1033
|
+
r.preventDefault(), et(n, null, Rt);
|
|
1035
1034
|
break;
|
|
1036
1035
|
case "End":
|
|
1037
|
-
r.preventDefault(),
|
|
1036
|
+
r.preventDefault(), et(n, null, Ot);
|
|
1038
1037
|
break;
|
|
1039
1038
|
}
|
|
1040
|
-
},
|
|
1041
|
-
return /* @__PURE__ */ q(
|
|
1039
|
+
}, it = Jt();
|
|
1040
|
+
return /* @__PURE__ */ q(Bo, {
|
|
1042
1041
|
className: W(P.root, y),
|
|
1043
1042
|
ownerState: D,
|
|
1044
1043
|
ref: l,
|
|
1045
1044
|
as: m,
|
|
1046
|
-
...
|
|
1047
|
-
children: [
|
|
1045
|
+
...Lt,
|
|
1046
|
+
children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(xo, {
|
|
1048
1047
|
className: P.scroller,
|
|
1049
1048
|
ownerState: D,
|
|
1050
1049
|
style: {
|
|
1051
|
-
overflow:
|
|
1052
|
-
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]:
|
|
1050
|
+
overflow: wt.overflow,
|
|
1051
|
+
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: lt ? void 0 : -wt.scrollbarWidth
|
|
1053
1052
|
},
|
|
1054
1053
|
ref: O,
|
|
1055
|
-
children: [/* @__PURE__ */ x(
|
|
1054
|
+
children: [/* @__PURE__ */ x(Co, {
|
|
1056
1055
|
"aria-label": b,
|
|
1057
1056
|
"aria-labelledby": h,
|
|
1058
1057
|
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
1059
1058
|
className: P.flexContainer,
|
|
1060
1059
|
ownerState: D,
|
|
1061
|
-
onKeyDown:
|
|
1060
|
+
onKeyDown: to,
|
|
1062
1061
|
ref: A,
|
|
1063
1062
|
role: "tablist",
|
|
1064
|
-
children:
|
|
1065
|
-
}),
|
|
1066
|
-
}),
|
|
1063
|
+
children: Qt
|
|
1064
|
+
}), St && Et]
|
|
1065
|
+
}), it.scrollButtonEnd]
|
|
1067
1066
|
});
|
|
1068
1067
|
});
|
|
1069
|
-
process.env.NODE_ENV !== "production" && (
|
|
1068
|
+
process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
1070
1069
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1071
1070
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1072
1071
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1079,66 +1078,66 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1079
1078
|
* @param {object} actions This object contains all possible actions
|
|
1080
1079
|
* that can be triggered programmatically.
|
|
1081
1080
|
*/
|
|
1082
|
-
action:
|
|
1081
|
+
action: so,
|
|
1083
1082
|
/**
|
|
1084
1083
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
1085
1084
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
1086
1085
|
* @default false
|
|
1087
1086
|
*/
|
|
1088
|
-
allowScrollButtonsMobile:
|
|
1087
|
+
allowScrollButtonsMobile: o.bool,
|
|
1089
1088
|
/**
|
|
1090
1089
|
* The label for the Tabs as a string.
|
|
1091
1090
|
*/
|
|
1092
|
-
"aria-label":
|
|
1091
|
+
"aria-label": o.string,
|
|
1093
1092
|
/**
|
|
1094
1093
|
* An id or list of ids separated by a space that label the Tabs.
|
|
1095
1094
|
*/
|
|
1096
|
-
"aria-labelledby":
|
|
1095
|
+
"aria-labelledby": o.string,
|
|
1097
1096
|
/**
|
|
1098
1097
|
* If `true`, the tabs are centered.
|
|
1099
1098
|
* This prop is intended for large views.
|
|
1100
1099
|
* @default false
|
|
1101
1100
|
*/
|
|
1102
|
-
centered:
|
|
1101
|
+
centered: o.bool,
|
|
1103
1102
|
/**
|
|
1104
1103
|
* The content of the component.
|
|
1105
1104
|
*/
|
|
1106
|
-
children:
|
|
1105
|
+
children: o.node,
|
|
1107
1106
|
/**
|
|
1108
1107
|
* Override or extend the styles applied to the component.
|
|
1109
1108
|
*/
|
|
1110
|
-
classes:
|
|
1109
|
+
classes: o.object,
|
|
1111
1110
|
/**
|
|
1112
1111
|
* @ignore
|
|
1113
1112
|
*/
|
|
1114
|
-
className:
|
|
1113
|
+
className: o.string,
|
|
1115
1114
|
/**
|
|
1116
1115
|
* The component used for the root node.
|
|
1117
1116
|
* Either a string to use a HTML element or a component.
|
|
1118
1117
|
*/
|
|
1119
|
-
component:
|
|
1118
|
+
component: o.elementType,
|
|
1120
1119
|
/**
|
|
1121
1120
|
* Determines the color of the indicator.
|
|
1122
1121
|
* @default 'primary'
|
|
1123
1122
|
*/
|
|
1124
|
-
indicatorColor:
|
|
1123
|
+
indicatorColor: o.oneOfType([o.oneOf(["primary", "secondary"]), o.string]),
|
|
1125
1124
|
/**
|
|
1126
1125
|
* Callback fired when the value changes.
|
|
1127
1126
|
*
|
|
1128
1127
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1129
1128
|
* @param {any} value We default to the index of the child (number)
|
|
1130
1129
|
*/
|
|
1131
|
-
onChange:
|
|
1130
|
+
onChange: o.func,
|
|
1132
1131
|
/**
|
|
1133
1132
|
* The component orientation (layout flow direction).
|
|
1134
1133
|
* @default 'horizontal'
|
|
1135
1134
|
*/
|
|
1136
|
-
orientation:
|
|
1135
|
+
orientation: o.oneOf(["horizontal", "vertical"]),
|
|
1137
1136
|
/**
|
|
1138
1137
|
* The component used to render the scroll buttons.
|
|
1139
1138
|
* @default TabScrollButton
|
|
1140
1139
|
*/
|
|
1141
|
-
ScrollButtonComponent:
|
|
1140
|
+
ScrollButtonComponent: o.elementType,
|
|
1142
1141
|
/**
|
|
1143
1142
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1144
1143
|
*
|
|
@@ -1150,53 +1149,53 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1150
1149
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1151
1150
|
* @default 'auto'
|
|
1152
1151
|
*/
|
|
1153
|
-
scrollButtons:
|
|
1152
|
+
scrollButtons: o.oneOf(["auto", !1, !0]),
|
|
1154
1153
|
/**
|
|
1155
1154
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1156
1155
|
* changes on activation.
|
|
1157
1156
|
*/
|
|
1158
|
-
selectionFollowsFocus:
|
|
1157
|
+
selectionFollowsFocus: o.bool,
|
|
1159
1158
|
/**
|
|
1160
1159
|
* The extra props for the slot components.
|
|
1161
1160
|
* You can override the existing props or add new ones.
|
|
1162
1161
|
* @default {}
|
|
1163
1162
|
*/
|
|
1164
|
-
slotProps:
|
|
1165
|
-
endScrollButtonIcon:
|
|
1166
|
-
startScrollButtonIcon:
|
|
1163
|
+
slotProps: o.shape({
|
|
1164
|
+
endScrollButtonIcon: o.oneOfType([o.func, o.object]),
|
|
1165
|
+
startScrollButtonIcon: o.oneOfType([o.func, o.object])
|
|
1167
1166
|
}),
|
|
1168
1167
|
/**
|
|
1169
1168
|
* The components used for each slot inside.
|
|
1170
1169
|
* @default {}
|
|
1171
1170
|
*/
|
|
1172
|
-
slots:
|
|
1173
|
-
EndScrollButtonIcon:
|
|
1174
|
-
StartScrollButtonIcon:
|
|
1171
|
+
slots: o.shape({
|
|
1172
|
+
EndScrollButtonIcon: o.elementType,
|
|
1173
|
+
StartScrollButtonIcon: o.elementType
|
|
1175
1174
|
}),
|
|
1176
1175
|
/**
|
|
1177
1176
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1178
1177
|
*/
|
|
1179
|
-
sx:
|
|
1178
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
1180
1179
|
/**
|
|
1181
1180
|
* Props applied to the tab indicator element.
|
|
1182
1181
|
* @default {}
|
|
1183
1182
|
*/
|
|
1184
|
-
TabIndicatorProps:
|
|
1183
|
+
TabIndicatorProps: o.object,
|
|
1185
1184
|
/**
|
|
1186
1185
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
1187
1186
|
* @default {}
|
|
1188
1187
|
*/
|
|
1189
|
-
TabScrollButtonProps:
|
|
1188
|
+
TabScrollButtonProps: o.object,
|
|
1190
1189
|
/**
|
|
1191
1190
|
* Determines the color of the `Tab`.
|
|
1192
1191
|
* @default 'primary'
|
|
1193
1192
|
*/
|
|
1194
|
-
textColor:
|
|
1193
|
+
textColor: o.oneOf(["inherit", "primary", "secondary"]),
|
|
1195
1194
|
/**
|
|
1196
1195
|
* The value of the currently selected `Tab`.
|
|
1197
1196
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1198
1197
|
*/
|
|
1199
|
-
value:
|
|
1198
|
+
value: o.any,
|
|
1200
1199
|
/**
|
|
1201
1200
|
* Determines additional display behavior of the tabs:
|
|
1202
1201
|
*
|
|
@@ -1207,21 +1206,21 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1207
1206
|
* - `standard` will render the default state.
|
|
1208
1207
|
* @default 'standard'
|
|
1209
1208
|
*/
|
|
1210
|
-
variant:
|
|
1209
|
+
variant: o.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1211
1210
|
/**
|
|
1212
1211
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1213
1212
|
* a long vertical list of tabs.
|
|
1214
1213
|
* @default false
|
|
1215
1214
|
*/
|
|
1216
|
-
visibleScrollbar:
|
|
1215
|
+
visibleScrollbar: o.bool
|
|
1217
1216
|
});
|
|
1218
1217
|
export {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1218
|
+
fo as K,
|
|
1219
|
+
uo as T,
|
|
1220
|
+
Mo as a,
|
|
1221
|
+
ut as b,
|
|
1222
|
+
To as c,
|
|
1223
|
+
po as d,
|
|
1224
|
+
ao as g,
|
|
1226
1225
|
T as t
|
|
1227
1226
|
};
|