everest-npm-features 0.0.22 → 0.0.24
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/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
- package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
- package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
- package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
- package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
- package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
- package/dist/Button-C57IMamW.js +660 -0
- package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
- package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
- package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
- package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
- package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
- package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
- package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
- package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
- package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
- package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
- package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
- package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
- package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
- package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
- package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
- package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
- package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
- package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
- package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
- package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
- package/dist/GlobalStyles-DhHHc9O0.js +59 -0
- package/dist/Grid-BXyV_lM8.js +410 -0
- package/dist/Grow-B2p7O_1C.js +196 -0
- package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
- package/dist/IconButton-eWRhV6Q9.js +295 -0
- package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
- package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
- package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
- package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
- package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
- package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
- package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
- package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
- package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
- package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
- package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
- package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
- package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
- package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
- package/dist/SwitchBase-CHO5ZceN.js +317 -0
- package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
- package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
- package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
- package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
- package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
- package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +4 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +9 -9
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
- package/dist/components/Shared/FullKyc/userInfo.js +11 -11
- package/dist/components/Shared/HistoryItem/index.js +7 -7
- package/dist/components/Shared/Incode/index.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +8 -8
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/Wallet/Account/createIban.d.ts +1 -0
- package/dist/components/Wallet/Account/createIban.js +36 -35
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +16 -16
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +76 -70
- package/dist/components/Wallet/Account/sendIban.js +61 -61
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Buy/form.d.ts +2 -2
- package/dist/components/Wallet/Buy/form.js +17 -17
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +61 -62
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
- package/dist/components/Wallet/Portfolio/index.js +95 -95
- package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
- package/dist/components/Wallet/Profile/documents.js +17 -17
- package/dist/components/Wallet/Profile/index.js +225 -206
- package/dist/components/Wallet/Receive/index.js +9 -9
- package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Sell/form.js +17 -17
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +14 -14
- package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
- package/dist/components/Wallet/Shared/CardPayment/index.js +57 -55
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
- package/dist/components/Wallet/Shared/Container/index.js +3 -3
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
- package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
- package/dist/components/Wallet/Shared/addBank.js +11 -11
- package/dist/components/Wallet/Shared/appButton.js +5 -5
- package/dist/components/Wallet/Shared/backBtn.js +8 -8
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/noData.js +2 -2
- package/dist/components/Wallet/Shared/pin.js +3 -3
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/SignUp/terms.js +4 -4
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +10 -10
- package/dist/components/Wallet/Swap/index.js +138 -150
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
- package/dist/components/Wallet/Withdraw/form.js +16 -16
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
- package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
- package/dist/createTheme-DmGCMO09.js +3825 -0
- package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
- package/dist/defaultTheme-9fAph5zo.js +5 -0
- package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
- package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
- package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
- package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
- package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
- package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
- package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
- package/dist/hoc/withThemeProvider.js +518 -417
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +363 -288
- package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +1 -1
- package/dist/icons/failedRedeemIcon.js +1 -1
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/index-BB3__zW3.js +644 -0
- package/dist/index-C86AoaoB.js +43 -0
- package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
- package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
- package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
- package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
- package/dist/index-eEYiDlpX.js +723 -0
- package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
- package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
- package/dist/main.js +6 -6
- package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
- package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
- package/dist/pep-C5Ge-kU4.js +2691 -0
- package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
- package/dist/refType-CaiGhRso.js +56 -0
- package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
- package/dist/tokenRow-BR8f4g7G.js +198 -0
- package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useSlot-DtSnboW7.js +125 -0
- package/dist/useSlotProps-D62tWbb1.js +25 -0
- package/dist/useTheme-Bfw5Gt1b.js +17 -0
- package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
- package/dist/useThemeProps-lRuJRcRX.js +29 -0
- package/dist/util/constants.d.ts +1 -3
- package/dist/util/constants.js +27 -29
- package/dist/wallet-DDW5KCHp.js +39 -0
- package/package.json +7 -6
- package/dist/Button-DCBtFwk3.js +0 -452
- package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
- package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
- package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
- package/dist/Grid-BaaKMDwM.js +0 -501
- package/dist/Grid2-DX2sucnU.js +0 -374
- package/dist/Grow-CC3Va50c.js +0 -216
- package/dist/IconButton-8B2ygvr4.js +0 -238
- package/dist/SwitchBase-B9rcpVZ0.js +0 -261
- package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
- package/dist/createTheme-D_EHVLXp.js +0 -3662
- package/dist/defaultTheme-CGLnLLk_.js +0 -5
- package/dist/index-BEH1PkNC.js +0 -572
- package/dist/index-DSZxScyY.js +0 -704
- package/dist/index-DlZLKtdr.js +0 -72
- package/dist/pep-BsWvrgyM.js +0 -2600
- package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
- package/dist/styled-CyBKg0N-.js +0 -5
- package/dist/tokenRow-QlGBYRKR.js +0 -206
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useSlot-BdP6R4tz.js +0 -50
- package/dist/useTheme-BFI_g9FY.js +0 -9
- package/dist/useThemeProps-BOrAzOS4.js +0 -40
- package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
- package/dist/useTimeout-_ag1gI7y.js +0 -56
- package/dist/utils-B-vKE_Dv.js +0 -50
- package/dist/utils-asicApOI.js +0 -21
- package/dist/wallet-z7NHqtCj.js +0 -35
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { R as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { G as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
super(m), this.prepend = t.sheet.prepend;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
import { jsx as T, jsxs as $e } from "react/jsx-runtime";
|
|
2
|
+
import { J as Ge, P as i, K as Ue, S as He, l as Fe, T as A, c as _e, L as Ye, s as ze } from "../createTheme-DmGCMO09.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { R as Be } from "../index-x9CniyQB.js";
|
|
5
|
+
import { a as De } from "../useTheme-Bfw5Gt1b.js";
|
|
6
|
+
import { u as Je } from "../useId-CK6Kn3Tn.js";
|
|
7
|
+
import { u as Oe } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
8
|
+
import { G as Qe, a as We } from "../GlobalStyles-DhHHc9O0.js";
|
|
9
|
+
import { e as Pe } from "../exactProp-C1Lmtwf_.js";
|
|
10
|
+
import { D as Xe } from "../DefaultPropsProvider-CZh8M2jM.js";
|
|
11
|
+
import '../assets/withThemeProvider.css';const oe = /* @__PURE__ */ new Map(), Ze = (e, o) => {
|
|
12
|
+
const t = Ue(e);
|
|
16
13
|
return t.sheet = new o({
|
|
17
14
|
key: t.key,
|
|
18
15
|
nonce: t.sheet.nonce,
|
|
@@ -22,124 +19,177 @@ import '../assets/withThemeProvider.css';const qe = (e) => {
|
|
|
22
19
|
insertionPoint: t.sheet.insertionPoint
|
|
23
20
|
}), t;
|
|
24
21
|
};
|
|
25
|
-
let
|
|
26
|
-
typeof document == "object" && (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
let D;
|
|
23
|
+
if (typeof document == "object" && (D = document.querySelector('[name="emotion-insertion-point"]'), !D)) {
|
|
24
|
+
D = document.createElement("meta"), D.setAttribute("name", "emotion-insertion-point"), D.setAttribute("content", "");
|
|
25
|
+
const e = document.querySelector("head");
|
|
26
|
+
e && e.prepend(D);
|
|
27
|
+
}
|
|
28
|
+
function et(e, o) {
|
|
29
|
+
if (e || o) {
|
|
30
|
+
class t extends He {
|
|
31
|
+
insert(c, r) {
|
|
32
|
+
return this.key && this.key.endsWith("global") && (this.before = D), super.insert(c, r);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const n = Ze({
|
|
36
|
+
key: "css",
|
|
37
|
+
insertionPoint: e ? D : void 0
|
|
38
|
+
}, t);
|
|
39
|
+
if (o) {
|
|
40
|
+
const s = n.insert;
|
|
41
|
+
n.insert = (...c) => (c[1].styles.match(/^@layer\s+[^{]*$/) || (c[1].styles = `@layer mui {${c[1].styles}}`), s(...c));
|
|
42
|
+
}
|
|
43
|
+
return n;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function Ve(e) {
|
|
31
47
|
const {
|
|
32
|
-
injectFirst:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
injectFirst: o,
|
|
49
|
+
enableCssLayer: t,
|
|
50
|
+
children: n
|
|
51
|
+
} = e, s = a.useMemo(() => {
|
|
52
|
+
const c = `${o}-${t}`;
|
|
53
|
+
if (typeof document == "object" && oe.has(c))
|
|
54
|
+
return oe.get(c);
|
|
55
|
+
const r = et(o, t);
|
|
56
|
+
return oe.set(c, r), r;
|
|
57
|
+
}, [o, t]);
|
|
58
|
+
return s ? /* @__PURE__ */ T(Ge, {
|
|
59
|
+
value: s,
|
|
60
|
+
children: n
|
|
61
|
+
}) : n;
|
|
39
62
|
}
|
|
40
|
-
process.env.NODE_ENV !== "production" && (
|
|
63
|
+
process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
41
64
|
/**
|
|
42
65
|
* Your component tree.
|
|
43
66
|
*/
|
|
44
|
-
children:
|
|
67
|
+
children: i.node,
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, the styles are wrapped in `@layer mui`.
|
|
70
|
+
* Learn more about [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers).
|
|
71
|
+
*/
|
|
72
|
+
enableCssLayer: i.bool,
|
|
45
73
|
/**
|
|
46
74
|
* By default, the styles are injected last in the <head> element of the page.
|
|
47
75
|
* As a result, they gain more specificity than any other style sheet.
|
|
48
76
|
* If you want to override MUI's styles, set this prop.
|
|
49
77
|
*/
|
|
50
|
-
injectFirst:
|
|
78
|
+
injectFirst: i.bool
|
|
51
79
|
});
|
|
52
|
-
const
|
|
53
|
-
process.env.NODE_ENV !== "production" && (
|
|
54
|
-
function
|
|
55
|
-
const e =
|
|
56
|
-
return process.env.NODE_ENV !== "production" &&
|
|
80
|
+
const re = /* @__PURE__ */ a.createContext(null);
|
|
81
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "ThemeContext");
|
|
82
|
+
function se() {
|
|
83
|
+
const e = a.useContext(re);
|
|
84
|
+
return process.env.NODE_ENV !== "production" && a.useDebugValue(e), e;
|
|
57
85
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
if (typeof
|
|
61
|
-
const
|
|
62
|
-
return process.env.NODE_ENV !== "production" && (
|
|
63
|
-
`))),
|
|
86
|
+
const tt = typeof Symbol == "function" && Symbol.for, ot = tt ? Symbol.for("mui.nested") : "__THEME_NESTED__";
|
|
87
|
+
function nt(e, o) {
|
|
88
|
+
if (typeof o == "function") {
|
|
89
|
+
const t = o(e);
|
|
90
|
+
return process.env.NODE_ENV !== "production" && (t || console.error(["MUI: You should return an object from your theme function, i.e.", "<ThemeProvider theme={() => ({})} />"].join(`
|
|
91
|
+
`))), t;
|
|
64
92
|
}
|
|
65
93
|
return {
|
|
66
94
|
...e,
|
|
67
|
-
...
|
|
95
|
+
...o
|
|
68
96
|
};
|
|
69
97
|
}
|
|
70
|
-
function
|
|
98
|
+
function z(e) {
|
|
71
99
|
const {
|
|
72
|
-
children:
|
|
73
|
-
theme:
|
|
74
|
-
} = e,
|
|
75
|
-
process.env.NODE_ENV !== "production" &&
|
|
100
|
+
children: o,
|
|
101
|
+
theme: t
|
|
102
|
+
} = e, n = se();
|
|
103
|
+
process.env.NODE_ENV !== "production" && n === null && typeof t == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
76
104
|
`));
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
...
|
|
80
|
-
} :
|
|
81
|
-
return
|
|
82
|
-
}, [
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
value:
|
|
85
|
-
children:
|
|
105
|
+
const s = a.useMemo(() => {
|
|
106
|
+
const c = n === null ? {
|
|
107
|
+
...t
|
|
108
|
+
} : nt(n, t);
|
|
109
|
+
return c != null && (c[ot] = n !== null), c;
|
|
110
|
+
}, [t, n]);
|
|
111
|
+
return /* @__PURE__ */ T(re.Provider, {
|
|
112
|
+
value: s,
|
|
113
|
+
children: o
|
|
86
114
|
});
|
|
87
115
|
}
|
|
88
|
-
process.env.NODE_ENV !== "production" && (
|
|
116
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
89
117
|
/**
|
|
90
118
|
* Your component tree.
|
|
91
119
|
*/
|
|
92
|
-
children:
|
|
120
|
+
children: i.node,
|
|
93
121
|
/**
|
|
94
122
|
* A theme object. You can provide a function to extend the outer theme.
|
|
95
123
|
*/
|
|
96
|
-
theme:
|
|
124
|
+
theme: i.oneOfType([i.object, i.func]).isRequired
|
|
97
125
|
});
|
|
98
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
126
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (z.propTypes = Pe(z.propTypes));
|
|
127
|
+
function rt(e) {
|
|
128
|
+
const o = De(), t = Je() || "", {
|
|
129
|
+
modularCssLayers: n
|
|
130
|
+
} = e;
|
|
131
|
+
let s = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
132
|
+
return !n || o !== null ? s = "" : typeof n == "string" ? s = n.replace(/mui(?!\.)/g, s) : s = `@layer ${s};`, Oe(() => {
|
|
133
|
+
var h, p;
|
|
134
|
+
const c = document.querySelector("head");
|
|
135
|
+
if (!c)
|
|
136
|
+
return;
|
|
137
|
+
const r = c.firstChild;
|
|
138
|
+
if (s) {
|
|
139
|
+
if (r && ((h = r.hasAttribute) != null && h.call(r, "data-mui-layer-order")) && r.getAttribute("data-mui-layer-order") === t)
|
|
140
|
+
return;
|
|
141
|
+
const C = document.createElement("style");
|
|
142
|
+
C.setAttribute("data-mui-layer-order", t), C.textContent = s, c.prepend(C);
|
|
143
|
+
} else
|
|
144
|
+
(p = c.querySelector(`style[data-mui-layer-order="${t}"]`)) == null || p.remove();
|
|
145
|
+
}, [s, t]), s ? /* @__PURE__ */ T(Qe, {
|
|
146
|
+
styles: s
|
|
147
|
+
}) : null;
|
|
148
|
+
}
|
|
149
|
+
const ke = {};
|
|
150
|
+
function Ne(e, o, t, n = !1) {
|
|
151
|
+
return a.useMemo(() => {
|
|
152
|
+
const s = e && o[e] || o;
|
|
153
|
+
if (typeof t == "function") {
|
|
154
|
+
const c = t(s), r = e ? {
|
|
155
|
+
...o,
|
|
156
|
+
[e]: c
|
|
157
|
+
} : c;
|
|
158
|
+
return n ? () => r : r;
|
|
109
159
|
}
|
|
110
160
|
return e ? {
|
|
111
|
-
...
|
|
112
|
-
[e]:
|
|
161
|
+
...o,
|
|
162
|
+
[e]: t
|
|
113
163
|
} : {
|
|
114
|
-
...
|
|
115
|
-
...
|
|
164
|
+
...o,
|
|
165
|
+
...t
|
|
116
166
|
};
|
|
117
|
-
}, [e,
|
|
167
|
+
}, [e, o, t, n]);
|
|
118
168
|
}
|
|
119
|
-
function
|
|
169
|
+
function U(e) {
|
|
120
170
|
const {
|
|
121
|
-
children:
|
|
122
|
-
theme:
|
|
123
|
-
themeId:
|
|
124
|
-
} = e,
|
|
125
|
-
process.env.NODE_ENV !== "production" && (
|
|
171
|
+
children: o,
|
|
172
|
+
theme: t,
|
|
173
|
+
themeId: n
|
|
174
|
+
} = e, s = De(ke), c = se() || ke;
|
|
175
|
+
process.env.NODE_ENV !== "production" && (s === null && typeof t == "function" || n && s && !s[n] && typeof t == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
126
176
|
`));
|
|
127
|
-
const r =
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
theme:
|
|
130
|
-
children: /* @__PURE__ */
|
|
177
|
+
const r = Ne(n, s, t), h = Ne(n, c, t, !0), p = (n ? r[n] : r).direction === "rtl", C = rt(r);
|
|
178
|
+
return /* @__PURE__ */ T(z, {
|
|
179
|
+
theme: h,
|
|
180
|
+
children: /* @__PURE__ */ T(Fe.Provider, {
|
|
131
181
|
value: r,
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
value:
|
|
134
|
-
children: /* @__PURE__ */
|
|
135
|
-
value:
|
|
136
|
-
children:
|
|
182
|
+
children: /* @__PURE__ */ T(Be, {
|
|
183
|
+
value: p,
|
|
184
|
+
children: /* @__PURE__ */ $e(Xe, {
|
|
185
|
+
value: n ? r[n].components : r.components,
|
|
186
|
+
children: [C, o]
|
|
137
187
|
})
|
|
138
188
|
})
|
|
139
189
|
})
|
|
140
190
|
});
|
|
141
191
|
}
|
|
142
|
-
process.env.NODE_ENV !== "production" && (
|
|
192
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
143
193
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
144
194
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
145
195
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -147,52 +197,53 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
|
147
197
|
/**
|
|
148
198
|
* Your component tree.
|
|
149
199
|
*/
|
|
150
|
-
children:
|
|
200
|
+
children: i.node,
|
|
151
201
|
/**
|
|
152
202
|
* A theme object. You can provide a function to extend the outer theme.
|
|
153
203
|
*/
|
|
154
|
-
theme:
|
|
204
|
+
theme: i.oneOfType([i.func, i.object]).isRequired,
|
|
155
205
|
/**
|
|
156
206
|
* The design system's unique id for getting the corresponded theme when there are multiple design systems.
|
|
157
207
|
*/
|
|
158
|
-
themeId:
|
|
208
|
+
themeId: i.string
|
|
159
209
|
});
|
|
160
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (
|
|
161
|
-
const
|
|
162
|
-
function
|
|
210
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (U.propTypes = Pe(U.propTypes));
|
|
211
|
+
const ce = "mode", ie = "color-scheme", st = "data-color-scheme";
|
|
212
|
+
function ct(e) {
|
|
163
213
|
const {
|
|
214
|
+
defaultMode: o = "system",
|
|
164
215
|
defaultLightColorScheme: t = "light",
|
|
165
|
-
defaultDarkColorScheme:
|
|
166
|
-
modeStorageKey: s =
|
|
167
|
-
colorSchemeStorageKey:
|
|
168
|
-
attribute:
|
|
169
|
-
colorSchemeNode:
|
|
170
|
-
nonce:
|
|
216
|
+
defaultDarkColorScheme: n = "dark",
|
|
217
|
+
modeStorageKey: s = ce,
|
|
218
|
+
colorSchemeStorageKey: c = ie,
|
|
219
|
+
attribute: r = st,
|
|
220
|
+
colorSchemeNode: h = "document.documentElement",
|
|
221
|
+
nonce: p
|
|
171
222
|
} = e || {};
|
|
172
|
-
let
|
|
173
|
-
if (
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
${
|
|
223
|
+
let C = "", b = r;
|
|
224
|
+
if (r === "class" && (b = ".%s"), r === "data" && (b = "[data-%s]"), b.startsWith(".")) {
|
|
225
|
+
const S = b.substring(1);
|
|
226
|
+
C += `${h}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
|
|
227
|
+
${h}.classList.add('${S}'.replace('%s', colorScheme));`;
|
|
177
228
|
}
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
const [
|
|
181
|
-
|
|
182
|
-
${
|
|
183
|
-
${
|
|
229
|
+
const N = b.match(/\[([^\]]+)\]/);
|
|
230
|
+
if (N) {
|
|
231
|
+
const [S, u] = N[1].split("=");
|
|
232
|
+
u || (C += `${h}.removeAttribute('${S}'.replace('%s', light));
|
|
233
|
+
${h}.removeAttribute('${S}'.replace('%s', dark));`), C += `
|
|
234
|
+
${h}.setAttribute('${S}'.replace('%s', colorScheme), ${u ? `${u}.replace('%s', colorScheme)` : '""'});`;
|
|
184
235
|
} else
|
|
185
|
-
|
|
186
|
-
return /* @__PURE__ */
|
|
236
|
+
C += `${h}.setAttribute('${b}', colorScheme);`;
|
|
237
|
+
return /* @__PURE__ */ T("script", {
|
|
187
238
|
suppressHydrationWarning: !0,
|
|
188
|
-
nonce: typeof window > "u" ?
|
|
239
|
+
nonce: typeof window > "u" ? p : "",
|
|
189
240
|
dangerouslySetInnerHTML: {
|
|
190
241
|
__html: `(function() {
|
|
191
242
|
try {
|
|
192
243
|
let colorScheme = '';
|
|
193
|
-
const mode = localStorage.getItem('${s}') || '
|
|
194
|
-
const dark = localStorage.getItem('${
|
|
195
|
-
const light = localStorage.getItem('${
|
|
244
|
+
const mode = localStorage.getItem('${s}') || '${o}';
|
|
245
|
+
const dark = localStorage.getItem('${c}-dark') || '${n}';
|
|
246
|
+
const light = localStorage.getItem('${c}-light') || '${t}';
|
|
196
247
|
if (mode === 'system') {
|
|
197
248
|
// handle system mode
|
|
198
249
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
@@ -209,180 +260,189 @@ try {
|
|
|
209
260
|
colorScheme = dark;
|
|
210
261
|
}
|
|
211
262
|
if (colorScheme) {
|
|
212
|
-
${
|
|
263
|
+
${C}
|
|
213
264
|
}
|
|
214
265
|
} catch(e){}})();`
|
|
215
266
|
}
|
|
216
267
|
}, "mui-color-scheme-init");
|
|
217
268
|
}
|
|
218
|
-
function
|
|
269
|
+
function it() {
|
|
270
|
+
}
|
|
271
|
+
const lt = ({
|
|
272
|
+
key: e,
|
|
273
|
+
storageWindow: o
|
|
274
|
+
}) => (!o && typeof window < "u" && (o = window), {
|
|
275
|
+
get(t) {
|
|
276
|
+
if (typeof window > "u")
|
|
277
|
+
return;
|
|
278
|
+
if (!o)
|
|
279
|
+
return t;
|
|
280
|
+
let n;
|
|
281
|
+
try {
|
|
282
|
+
n = o.localStorage.getItem(e);
|
|
283
|
+
} catch {
|
|
284
|
+
}
|
|
285
|
+
return n || t;
|
|
286
|
+
},
|
|
287
|
+
set: (t) => {
|
|
288
|
+
if (o)
|
|
289
|
+
try {
|
|
290
|
+
o.localStorage.setItem(e, t);
|
|
291
|
+
} catch {
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
subscribe: (t) => {
|
|
295
|
+
if (!o)
|
|
296
|
+
return it;
|
|
297
|
+
const n = (s) => {
|
|
298
|
+
const c = s.newValue;
|
|
299
|
+
s.key === e && t(c);
|
|
300
|
+
};
|
|
301
|
+
return o.addEventListener("storage", n), () => {
|
|
302
|
+
o.removeEventListener("storage", n);
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
function ne() {
|
|
307
|
+
}
|
|
308
|
+
function we(e) {
|
|
219
309
|
if (typeof window < "u" && typeof window.matchMedia == "function" && e === "system")
|
|
220
310
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
221
311
|
}
|
|
222
|
-
function
|
|
312
|
+
function xe(e, o) {
|
|
223
313
|
if (e.mode === "light" || e.mode === "system" && e.systemMode === "light")
|
|
224
|
-
return
|
|
314
|
+
return o("light");
|
|
225
315
|
if (e.mode === "dark" || e.mode === "system" && e.systemMode === "dark")
|
|
226
|
-
return
|
|
316
|
+
return o("dark");
|
|
227
317
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
230
|
-
if (
|
|
318
|
+
function dt(e) {
|
|
319
|
+
return xe(e, (o) => {
|
|
320
|
+
if (o === "light")
|
|
231
321
|
return e.lightColorScheme;
|
|
232
|
-
if (
|
|
322
|
+
if (o === "dark")
|
|
233
323
|
return e.darkColorScheme;
|
|
234
324
|
});
|
|
235
325
|
}
|
|
236
|
-
function
|
|
237
|
-
if (typeof window > "u")
|
|
238
|
-
return;
|
|
239
|
-
let o;
|
|
240
|
-
try {
|
|
241
|
-
o = localStorage.getItem(e) || void 0, o || localStorage.setItem(e, t);
|
|
242
|
-
} catch {
|
|
243
|
-
}
|
|
244
|
-
return o || t;
|
|
245
|
-
}
|
|
246
|
-
function Ze(e) {
|
|
326
|
+
function at(e) {
|
|
247
327
|
const {
|
|
248
|
-
defaultMode:
|
|
249
|
-
defaultLightColorScheme:
|
|
250
|
-
defaultDarkColorScheme:
|
|
251
|
-
supportedColorSchemes:
|
|
252
|
-
modeStorageKey:
|
|
253
|
-
colorSchemeStorageKey: r =
|
|
254
|
-
storageWindow:
|
|
255
|
-
|
|
256
|
-
|
|
328
|
+
defaultMode: o = "light",
|
|
329
|
+
defaultLightColorScheme: t,
|
|
330
|
+
defaultDarkColorScheme: n,
|
|
331
|
+
supportedColorSchemes: s = [],
|
|
332
|
+
modeStorageKey: c = ce,
|
|
333
|
+
colorSchemeStorageKey: r = ie,
|
|
334
|
+
storageWindow: h = typeof window > "u" ? void 0 : window,
|
|
335
|
+
storageManager: p = lt,
|
|
336
|
+
noSsr: C = !1
|
|
337
|
+
} = e, b = s.join(","), N = s.length > 1, S = a.useMemo(() => p == null ? void 0 : p({
|
|
338
|
+
key: c,
|
|
339
|
+
storageWindow: h
|
|
340
|
+
}), [p, c, h]), u = a.useMemo(() => p == null ? void 0 : p({
|
|
341
|
+
key: `${r}-light`,
|
|
342
|
+
storageWindow: h
|
|
343
|
+
}), [p, r, h]), g = a.useMemo(() => p == null ? void 0 : p({
|
|
344
|
+
key: `${r}-dark`,
|
|
345
|
+
storageWindow: h
|
|
346
|
+
}), [p, r, h]), [$, x] = a.useState(() => {
|
|
347
|
+
const l = (S == null ? void 0 : S.get(o)) || o, d = (u == null ? void 0 : u.get(t)) || t, m = (g == null ? void 0 : g.get(n)) || n;
|
|
257
348
|
return {
|
|
258
|
-
mode:
|
|
259
|
-
systemMode:
|
|
260
|
-
lightColorScheme:
|
|
261
|
-
darkColorScheme:
|
|
349
|
+
mode: l,
|
|
350
|
+
systemMode: we(l),
|
|
351
|
+
lightColorScheme: d,
|
|
352
|
+
darkColorScheme: m
|
|
262
353
|
};
|
|
263
|
-
}), [,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}, [
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
if (
|
|
270
|
-
return
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return {
|
|
277
|
-
...c,
|
|
278
|
-
mode: i,
|
|
279
|
-
systemMode: Te(i)
|
|
354
|
+
}), [O, B] = a.useState(C || !N);
|
|
355
|
+
a.useEffect(() => {
|
|
356
|
+
B(!0);
|
|
357
|
+
}, []);
|
|
358
|
+
const K = dt($), R = a.useCallback((l) => {
|
|
359
|
+
x((d) => {
|
|
360
|
+
if (l === d.mode)
|
|
361
|
+
return d;
|
|
362
|
+
const m = l ?? o;
|
|
363
|
+
return S == null || S.set(m), {
|
|
364
|
+
...d,
|
|
365
|
+
mode: m,
|
|
366
|
+
systemMode: we(m)
|
|
280
367
|
};
|
|
281
368
|
});
|
|
282
|
-
}, [
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
...
|
|
369
|
+
}, [S, o]), L = a.useCallback((l) => {
|
|
370
|
+
l ? typeof l == "string" ? l && !b.includes(l) ? console.error(`\`${l}\` does not exist in \`theme.colorSchemes\`.`) : x((d) => {
|
|
371
|
+
const m = {
|
|
372
|
+
...d
|
|
286
373
|
};
|
|
287
|
-
return
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
if (C)
|
|
309
|
-
if (!g.includes(C))
|
|
310
|
-
console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);
|
|
311
|
-
else {
|
|
312
|
-
i.darkColorScheme = C;
|
|
313
|
-
try {
|
|
314
|
-
localStorage.setItem(`${r}-dark`, C);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return i;
|
|
319
|
-
}) : y((c) => {
|
|
320
|
-
try {
|
|
321
|
-
localStorage.setItem(`${r}-light`, o), localStorage.setItem(`${r}-dark`, s);
|
|
322
|
-
} catch {
|
|
323
|
-
}
|
|
324
|
-
return {
|
|
325
|
-
...c,
|
|
326
|
-
lightColorScheme: o,
|
|
327
|
-
darkColorScheme: s
|
|
328
|
-
};
|
|
329
|
-
});
|
|
330
|
-
}, [g, r, o, s]), D = d.useCallback((n) => {
|
|
331
|
-
T.mode === "system" && y((c) => {
|
|
332
|
-
const i = n != null && n.matches ? "dark" : "light";
|
|
333
|
-
return c.systemMode === i ? c : {
|
|
334
|
-
...c,
|
|
335
|
-
systemMode: i
|
|
374
|
+
return xe(d, (f) => {
|
|
375
|
+
f === "light" && (u == null || u.set(l), m.lightColorScheme = l), f === "dark" && (g == null || g.set(l), m.darkColorScheme = l);
|
|
376
|
+
}), m;
|
|
377
|
+
}) : x((d) => {
|
|
378
|
+
const m = {
|
|
379
|
+
...d
|
|
380
|
+
}, f = l.light === null ? t : l.light, P = l.dark === null ? n : l.dark;
|
|
381
|
+
return f && (b.includes(f) ? (m.lightColorScheme = f, u == null || u.set(f)) : console.error(`\`${f}\` does not exist in \`theme.colorSchemes\`.`)), P && (b.includes(P) ? (m.darkColorScheme = P, g == null || g.set(P)) : console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)), m;
|
|
382
|
+
}) : x((d) => (u == null || u.set(t), g == null || g.set(n), {
|
|
383
|
+
...d,
|
|
384
|
+
lightColorScheme: t,
|
|
385
|
+
darkColorScheme: n
|
|
386
|
+
}));
|
|
387
|
+
}, [b, u, g, t, n]), q = a.useCallback((l) => {
|
|
388
|
+
$.mode === "system" && x((d) => {
|
|
389
|
+
const m = l != null && l.matches ? "dark" : "light";
|
|
390
|
+
return d.systemMode === m ? d : {
|
|
391
|
+
...d,
|
|
392
|
+
systemMode: m
|
|
336
393
|
};
|
|
337
394
|
});
|
|
338
|
-
}, [
|
|
339
|
-
return
|
|
340
|
-
if (typeof window.matchMedia != "function" || !
|
|
395
|
+
}, [$.mode]), H = a.useRef(q);
|
|
396
|
+
return H.current = q, a.useEffect(() => {
|
|
397
|
+
if (typeof window.matchMedia != "function" || !N)
|
|
341
398
|
return;
|
|
342
|
-
const
|
|
343
|
-
return
|
|
344
|
-
|
|
399
|
+
const l = (...m) => H.current(...m), d = window.matchMedia("(prefers-color-scheme: dark)");
|
|
400
|
+
return d.addListener(l), l(d), () => {
|
|
401
|
+
d.removeListener(l);
|
|
345
402
|
};
|
|
346
|
-
}, [
|
|
347
|
-
if (
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
403
|
+
}, [N]), a.useEffect(() => {
|
|
404
|
+
if (N) {
|
|
405
|
+
const l = (S == null ? void 0 : S.subscribe((f) => {
|
|
406
|
+
(!f || ["light", "dark", "system"].includes(f)) && R(f || o);
|
|
407
|
+
})) || ne, d = (u == null ? void 0 : u.subscribe((f) => {
|
|
408
|
+
(!f || b.match(f)) && L({
|
|
409
|
+
light: f
|
|
410
|
+
});
|
|
411
|
+
})) || ne, m = (g == null ? void 0 : g.subscribe((f) => {
|
|
412
|
+
(!f || b.match(f)) && L({
|
|
413
|
+
dark: f
|
|
414
|
+
});
|
|
415
|
+
})) || ne;
|
|
416
|
+
return () => {
|
|
417
|
+
l(), d(), m();
|
|
358
418
|
};
|
|
359
419
|
}
|
|
360
|
-
}, [
|
|
361
|
-
|
|
362
|
-
mode:
|
|
363
|
-
systemMode:
|
|
364
|
-
colorScheme:
|
|
365
|
-
setMode:
|
|
366
|
-
setColorScheme:
|
|
420
|
+
}, [L, R, b, o, h, N, S, u, g]), {
|
|
421
|
+
...$,
|
|
422
|
+
mode: O ? $.mode : void 0,
|
|
423
|
+
systemMode: O ? $.systemMode : void 0,
|
|
424
|
+
colorScheme: O ? K : void 0,
|
|
425
|
+
setMode: R,
|
|
426
|
+
setColorScheme: L
|
|
367
427
|
};
|
|
368
428
|
}
|
|
369
|
-
const
|
|
370
|
-
function
|
|
429
|
+
const mt = "*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
|
|
430
|
+
function ut(e) {
|
|
371
431
|
const {
|
|
372
|
-
themeId:
|
|
432
|
+
themeId: o,
|
|
373
433
|
/**
|
|
374
434
|
* This `theme` object needs to follow a certain structure to
|
|
375
435
|
* be used correctly by the finel `CssVarsProvider`. It should have a
|
|
376
436
|
* `colorSchemes` key with the light and dark (and any other) palette.
|
|
377
437
|
* It should also ideally have a vars object created using `prepareCssVars`.
|
|
378
438
|
*/
|
|
379
|
-
theme:
|
|
380
|
-
modeStorageKey:
|
|
381
|
-
colorSchemeStorageKey:
|
|
382
|
-
disableTransitionOnChange:
|
|
439
|
+
theme: t = {},
|
|
440
|
+
modeStorageKey: n = ce,
|
|
441
|
+
colorSchemeStorageKey: s = ie,
|
|
442
|
+
disableTransitionOnChange: c = !1,
|
|
383
443
|
defaultColorScheme: r,
|
|
384
|
-
resolveTheme:
|
|
385
|
-
} = e,
|
|
444
|
+
resolveTheme: h
|
|
445
|
+
} = e, p = {
|
|
386
446
|
allColorSchemes: [],
|
|
387
447
|
colorScheme: void 0,
|
|
388
448
|
darkColorScheme: void 0,
|
|
@@ -393,243 +453,284 @@ function tt(e) {
|
|
|
393
453
|
setMode: () => {
|
|
394
454
|
},
|
|
395
455
|
systemMode: void 0
|
|
396
|
-
},
|
|
397
|
-
process.env.NODE_ENV !== "production" && (
|
|
398
|
-
const
|
|
399
|
-
function
|
|
400
|
-
var
|
|
456
|
+
}, C = /* @__PURE__ */ a.createContext(void 0);
|
|
457
|
+
process.env.NODE_ENV !== "production" && (C.displayName = "ColorSchemeContext");
|
|
458
|
+
const b = () => a.useContext(C) || p, N = {}, S = {};
|
|
459
|
+
function u(O) {
|
|
460
|
+
var Ee, Te, ve, Me;
|
|
401
461
|
const {
|
|
402
|
-
children:
|
|
403
|
-
theme:
|
|
404
|
-
modeStorageKey:
|
|
405
|
-
colorSchemeStorageKey:
|
|
406
|
-
disableTransitionOnChange:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
462
|
+
children: B,
|
|
463
|
+
theme: K,
|
|
464
|
+
modeStorageKey: R = n,
|
|
465
|
+
colorSchemeStorageKey: L = s,
|
|
466
|
+
disableTransitionOnChange: q = c,
|
|
467
|
+
storageManager: H,
|
|
468
|
+
storageWindow: l = typeof window > "u" ? void 0 : window,
|
|
469
|
+
documentNode: d = typeof document > "u" ? void 0 : document,
|
|
470
|
+
colorSchemeNode: m = typeof document > "u" ? void 0 : document.documentElement,
|
|
471
|
+
disableNestedContext: f = !1,
|
|
472
|
+
disableStyleSheetGeneration: P = !1,
|
|
473
|
+
defaultMode: Le = "system",
|
|
474
|
+
forceThemeRerender: le = !1,
|
|
475
|
+
noSsr: je
|
|
476
|
+
} = O, J = a.useRef(!1), Q = se(), W = a.useContext(C), X = !!W && !f, de = a.useMemo(() => K || (typeof t == "function" ? t() : t), [K]), ae = de[o], v = ae || de, {
|
|
477
|
+
colorSchemes: _ = N,
|
|
478
|
+
components: me = S,
|
|
479
|
+
cssVarPrefix: Z
|
|
480
|
+
} = v, ue = Object.keys(_).filter((E) => !!_[E]).join(","), j = a.useMemo(() => ue.split(","), [ue]), he = typeof r == "string" ? r : r.light, fe = typeof r == "string" ? r : r.dark, Ie = _[he] && _[fe] ? Le : ((Te = (Ee = _[v.defaultColorScheme]) == null ? void 0 : Ee.palette) == null ? void 0 : Te.mode) || ((ve = v.palette) == null ? void 0 : ve.mode), {
|
|
481
|
+
mode: Ae,
|
|
482
|
+
setMode: ee,
|
|
483
|
+
systemMode: pe,
|
|
484
|
+
lightColorScheme: Se,
|
|
485
|
+
darkColorScheme: ye,
|
|
486
|
+
colorScheme: Ke,
|
|
487
|
+
setColorScheme: ge
|
|
488
|
+
} = at({
|
|
489
|
+
supportedColorSchemes: j,
|
|
490
|
+
defaultLightColorScheme: he,
|
|
491
|
+
defaultDarkColorScheme: fe,
|
|
492
|
+
modeStorageKey: R,
|
|
493
|
+
colorSchemeStorageKey: L,
|
|
494
|
+
defaultMode: Ie,
|
|
495
|
+
storageManager: H,
|
|
496
|
+
storageWindow: l,
|
|
497
|
+
noSsr: je
|
|
433
498
|
});
|
|
434
|
-
let
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
499
|
+
let te = Ae, M = Ke;
|
|
500
|
+
X && (te = W.mode, M = W.colorScheme), process.env.NODE_ENV !== "production" && le && !v.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
|
|
501
|
+
`));
|
|
502
|
+
let F = M || v.defaultColorScheme;
|
|
503
|
+
v.vars && !le && (F = v.defaultColorScheme);
|
|
504
|
+
const I = a.useMemo(() => {
|
|
505
|
+
var V;
|
|
506
|
+
const E = ((V = v.generateThemeVars) == null ? void 0 : V.call(v)) || v.vars, y = {
|
|
507
|
+
...v,
|
|
508
|
+
components: me,
|
|
509
|
+
colorSchemes: _,
|
|
510
|
+
cssVarPrefix: Z,
|
|
511
|
+
vars: E
|
|
512
|
+
};
|
|
513
|
+
if (typeof y.generateSpacing == "function" && (y.spacing = y.generateSpacing()), F) {
|
|
514
|
+
const w = _[F];
|
|
515
|
+
w && typeof w == "object" && Object.keys(w).forEach((k) => {
|
|
516
|
+
w[k] && typeof w[k] == "object" ? y[k] = {
|
|
517
|
+
...y[k],
|
|
518
|
+
...w[k]
|
|
519
|
+
} : y[k] = w[k];
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
return h ? h(y) : y;
|
|
523
|
+
}, [v, F, me, _, Z]), G = v.colorSchemeSelector;
|
|
524
|
+
Oe(() => {
|
|
525
|
+
if (M && m && G && G !== "media") {
|
|
526
|
+
const E = G;
|
|
527
|
+
let y = G;
|
|
528
|
+
if (E === "class" && (y = ".%s"), E === "data" && (y = "[data-%s]"), E != null && E.startsWith("data-") && !E.includes("%s") && (y = `[${E}="%s"]`), y.startsWith("."))
|
|
529
|
+
m.classList.remove(...j.map((V) => y.substring(1).replace("%s", V))), m.classList.add(y.substring(1).replace("%s", M));
|
|
459
530
|
else {
|
|
460
|
-
const
|
|
461
|
-
if (
|
|
462
|
-
const [
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}),
|
|
531
|
+
const V = y.replace("%s", M).match(/\[([^\]]+)\]/);
|
|
532
|
+
if (V) {
|
|
533
|
+
const [w, k] = V[1].split("=");
|
|
534
|
+
k || j.forEach((qe) => {
|
|
535
|
+
m.removeAttribute(w.replace(M, qe));
|
|
536
|
+
}), m.setAttribute(w, k ? k.replace(/"|'/g, "") : "");
|
|
466
537
|
} else
|
|
467
|
-
|
|
538
|
+
m.setAttribute(y, M);
|
|
468
539
|
}
|
|
469
540
|
}
|
|
470
|
-
}, [
|
|
471
|
-
let
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
|
|
541
|
+
}, [M, G, m, j]), a.useEffect(() => {
|
|
542
|
+
let E;
|
|
543
|
+
if (q && J.current && d) {
|
|
544
|
+
const y = d.createElement("style");
|
|
545
|
+
y.appendChild(d.createTextNode(mt)), d.head.appendChild(y), window.getComputedStyle(d.body), E = setTimeout(() => {
|
|
546
|
+
d.head.removeChild(y);
|
|
476
547
|
}, 1);
|
|
477
548
|
}
|
|
478
549
|
return () => {
|
|
479
|
-
clearTimeout(
|
|
550
|
+
clearTimeout(E);
|
|
480
551
|
};
|
|
481
|
-
}, [
|
|
482
|
-
|
|
552
|
+
}, [M, q, d]), a.useEffect(() => (J.current = !0, () => {
|
|
553
|
+
J.current = !1;
|
|
483
554
|
}), []);
|
|
484
|
-
const
|
|
485
|
-
allColorSchemes:
|
|
486
|
-
colorScheme:
|
|
487
|
-
darkColorScheme:
|
|
488
|
-
lightColorScheme:
|
|
489
|
-
mode:
|
|
490
|
-
setColorScheme:
|
|
491
|
-
setMode:
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
555
|
+
const Re = a.useMemo(() => ({
|
|
556
|
+
allColorSchemes: j,
|
|
557
|
+
colorScheme: M,
|
|
558
|
+
darkColorScheme: ye,
|
|
559
|
+
lightColorScheme: Se,
|
|
560
|
+
mode: te,
|
|
561
|
+
setColorScheme: ge,
|
|
562
|
+
setMode: process.env.NODE_ENV === "production" ? ee : (E) => {
|
|
563
|
+
I.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
564
|
+
`)), ee(E);
|
|
565
|
+
},
|
|
566
|
+
systemMode: pe
|
|
567
|
+
}), [j, M, ye, Se, te, ge, ee, pe, I.colorSchemeSelector]);
|
|
568
|
+
let Ce = !0;
|
|
569
|
+
(P || v.cssVariables === !1 || X && (Q == null ? void 0 : Q.cssVarPrefix) === Z) && (Ce = !1);
|
|
570
|
+
const be = /* @__PURE__ */ $e(a.Fragment, {
|
|
571
|
+
children: [/* @__PURE__ */ T(U, {
|
|
572
|
+
themeId: ae ? o : void 0,
|
|
573
|
+
theme: I,
|
|
574
|
+
children: B
|
|
575
|
+
}), Ce && /* @__PURE__ */ T(We, {
|
|
576
|
+
styles: ((Me = I.generateStyleSheets) == null ? void 0 : Me.call(I)) || []
|
|
503
577
|
})]
|
|
504
578
|
});
|
|
505
|
-
return
|
|
506
|
-
value:
|
|
507
|
-
children:
|
|
579
|
+
return X ? be : /* @__PURE__ */ T(C.Provider, {
|
|
580
|
+
value: Re,
|
|
581
|
+
children: be
|
|
508
582
|
});
|
|
509
583
|
}
|
|
510
|
-
process.env.NODE_ENV !== "production" && (
|
|
584
|
+
process.env.NODE_ENV !== "production" && (u.propTypes = {
|
|
511
585
|
/**
|
|
512
586
|
* The component tree.
|
|
513
587
|
*/
|
|
514
|
-
children:
|
|
588
|
+
children: i.node,
|
|
515
589
|
/**
|
|
516
590
|
* The node used to attach the color-scheme attribute
|
|
517
591
|
*/
|
|
518
|
-
colorSchemeNode:
|
|
592
|
+
colorSchemeNode: i.any,
|
|
519
593
|
/**
|
|
520
594
|
* localStorage key used to store `colorScheme`
|
|
521
595
|
*/
|
|
522
|
-
colorSchemeStorageKey:
|
|
596
|
+
colorSchemeStorageKey: i.string,
|
|
597
|
+
/**
|
|
598
|
+
* The default mode when the storage is empty,
|
|
599
|
+
* require the theme to have `colorSchemes` with light and dark.
|
|
600
|
+
*/
|
|
601
|
+
defaultMode: i.string,
|
|
523
602
|
/**
|
|
524
603
|
* If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.
|
|
525
604
|
*/
|
|
526
|
-
disableNestedContext:
|
|
605
|
+
disableNestedContext: i.bool,
|
|
527
606
|
/**
|
|
528
607
|
* If `true`, the style sheet won't be generated.
|
|
529
608
|
*
|
|
530
609
|
* This is useful for controlling nested CssVarsProvider behavior.
|
|
531
610
|
*/
|
|
532
|
-
disableStyleSheetGeneration:
|
|
611
|
+
disableStyleSheetGeneration: i.bool,
|
|
533
612
|
/**
|
|
534
613
|
* Disable CSS transitions when switching between modes or color schemes.
|
|
535
614
|
*/
|
|
536
|
-
disableTransitionOnChange:
|
|
615
|
+
disableTransitionOnChange: i.bool,
|
|
537
616
|
/**
|
|
538
617
|
* The document to attach the attribute to.
|
|
539
618
|
*/
|
|
540
|
-
documentNode:
|
|
619
|
+
documentNode: i.any,
|
|
620
|
+
/**
|
|
621
|
+
* If `true`, theme values are recalculated when the mode changes.
|
|
622
|
+
*/
|
|
623
|
+
forceThemeRerender: i.bool,
|
|
541
624
|
/**
|
|
542
625
|
* The key in the local storage used to store current color scheme.
|
|
543
626
|
*/
|
|
544
|
-
modeStorageKey:
|
|
627
|
+
modeStorageKey: i.string,
|
|
628
|
+
/**
|
|
629
|
+
* If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.
|
|
630
|
+
* You should use this option in conjuction with `InitColorSchemeScript` component.
|
|
631
|
+
*/
|
|
632
|
+
noSsr: i.bool,
|
|
633
|
+
/**
|
|
634
|
+
* The storage manager to be used for storing the mode and color scheme
|
|
635
|
+
* @default using `window.localStorage`
|
|
636
|
+
*/
|
|
637
|
+
storageManager: i.func,
|
|
545
638
|
/**
|
|
546
639
|
* The window that attaches the 'storage' event listener.
|
|
547
640
|
* @default window
|
|
548
641
|
*/
|
|
549
|
-
storageWindow:
|
|
642
|
+
storageWindow: i.any,
|
|
550
643
|
/**
|
|
551
644
|
* The calculated theme object that will be passed through context.
|
|
552
645
|
*/
|
|
553
|
-
theme:
|
|
646
|
+
theme: i.object
|
|
554
647
|
});
|
|
555
|
-
const
|
|
648
|
+
const g = typeof r == "string" ? r : r.light, $ = typeof r == "string" ? r : r.dark;
|
|
556
649
|
return {
|
|
557
|
-
CssVarsProvider:
|
|
558
|
-
useColorScheme:
|
|
559
|
-
getInitColorSchemeScript: (
|
|
560
|
-
colorSchemeStorageKey:
|
|
561
|
-
defaultLightColorScheme:
|
|
650
|
+
CssVarsProvider: u,
|
|
651
|
+
useColorScheme: b,
|
|
652
|
+
getInitColorSchemeScript: (O) => ct({
|
|
653
|
+
colorSchemeStorageKey: s,
|
|
654
|
+
defaultLightColorScheme: g,
|
|
562
655
|
defaultDarkColorScheme: $,
|
|
563
|
-
modeStorageKey:
|
|
564
|
-
...
|
|
656
|
+
modeStorageKey: n,
|
|
657
|
+
...O
|
|
565
658
|
})
|
|
566
659
|
};
|
|
567
660
|
}
|
|
568
|
-
function
|
|
661
|
+
function ht({
|
|
569
662
|
theme: e,
|
|
570
|
-
...
|
|
663
|
+
...o
|
|
571
664
|
}) {
|
|
572
|
-
const
|
|
573
|
-
return /* @__PURE__ */
|
|
574
|
-
...
|
|
575
|
-
themeId:
|
|
576
|
-
theme:
|
|
665
|
+
const t = A in e ? e[A] : void 0;
|
|
666
|
+
return /* @__PURE__ */ T(U, {
|
|
667
|
+
...o,
|
|
668
|
+
themeId: t ? A : void 0,
|
|
669
|
+
theme: t || e
|
|
577
670
|
});
|
|
578
671
|
}
|
|
579
|
-
const
|
|
672
|
+
const Y = {
|
|
580
673
|
attribute: "data-mui-color-scheme",
|
|
581
674
|
colorSchemeStorageKey: "mui-color-scheme",
|
|
582
675
|
defaultLightColorScheme: "light",
|
|
583
676
|
defaultDarkColorScheme: "dark",
|
|
584
677
|
modeStorageKey: "mui-mode"
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
678
|
+
};
|
|
679
|
+
process.env.NODE_ENV !== "production" && (i.string, i.string, i.string, i.string, i.string, i.oneOf(["dark", "light", "system"]), i.string, i.string);
|
|
680
|
+
const {
|
|
681
|
+
CssVarsProvider: ft,
|
|
682
|
+
useColorScheme: wt,
|
|
683
|
+
getInitColorSchemeScript: $t
|
|
684
|
+
} = ut({
|
|
685
|
+
themeId: A,
|
|
591
686
|
// @ts-ignore ignore module augmentation tests
|
|
592
|
-
theme: () =>
|
|
687
|
+
theme: () => _e({
|
|
593
688
|
cssVariables: !0
|
|
594
689
|
}),
|
|
595
|
-
colorSchemeStorageKey:
|
|
596
|
-
modeStorageKey:
|
|
690
|
+
colorSchemeStorageKey: Y.colorSchemeStorageKey,
|
|
691
|
+
modeStorageKey: Y.modeStorageKey,
|
|
597
692
|
defaultColorScheme: {
|
|
598
|
-
light:
|
|
599
|
-
dark:
|
|
693
|
+
light: Y.defaultLightColorScheme,
|
|
694
|
+
dark: Y.defaultDarkColorScheme
|
|
600
695
|
},
|
|
601
696
|
resolveTheme: (e) => {
|
|
602
|
-
const
|
|
697
|
+
const o = {
|
|
603
698
|
...e,
|
|
604
|
-
typography:
|
|
699
|
+
typography: Ye(e.palette, e.typography)
|
|
605
700
|
};
|
|
606
|
-
return
|
|
607
|
-
return
|
|
608
|
-
sx:
|
|
701
|
+
return o.unstable_sx = function(n) {
|
|
702
|
+
return ze({
|
|
703
|
+
sx: n,
|
|
609
704
|
theme: this
|
|
610
705
|
});
|
|
611
|
-
},
|
|
706
|
+
}, o;
|
|
612
707
|
}
|
|
613
|
-
}),
|
|
614
|
-
function
|
|
708
|
+
}), pt = ft;
|
|
709
|
+
function St({
|
|
615
710
|
theme: e,
|
|
616
|
-
...
|
|
711
|
+
...o
|
|
617
712
|
}) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
713
|
+
const t = a.useMemo(() => {
|
|
714
|
+
if (typeof e == "function")
|
|
715
|
+
return e;
|
|
716
|
+
const n = A in e ? e[A] : e;
|
|
717
|
+
return "colorSchemes" in n ? null : "vars" in n ? e : {
|
|
718
|
+
...e,
|
|
719
|
+
vars: null
|
|
720
|
+
};
|
|
721
|
+
}, [e]);
|
|
722
|
+
return t ? /* @__PURE__ */ T(ht, {
|
|
723
|
+
theme: t,
|
|
724
|
+
...o
|
|
725
|
+
}) : /* @__PURE__ */ T(pt, {
|
|
625
726
|
theme: e,
|
|
626
|
-
...
|
|
727
|
+
...o
|
|
627
728
|
});
|
|
628
729
|
}
|
|
629
|
-
const
|
|
630
|
-
theme:
|
|
631
|
-
...
|
|
632
|
-
}) => /* @__PURE__ */
|
|
730
|
+
const yt = _e(), _t = (e) => ({
|
|
731
|
+
theme: t,
|
|
732
|
+
...n
|
|
733
|
+
}) => /* @__PURE__ */ T(Ve, { injectFirst: !0, children: /* @__PURE__ */ T(St, { theme: t || yt, children: /* @__PURE__ */ T(e, { ...n }) }) });
|
|
633
734
|
export {
|
|
634
|
-
|
|
735
|
+
_t as default
|
|
635
736
|
};
|