everest-npm-features 0.0.1 → 0.0.3
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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D_p2nwO8.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-DDk8JxR-.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-BvPXd5sM.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +31 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +33 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-SKm7VF9k.js +3982 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-7w9u2Oig.js} +123 -122
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-BhmBCie8.js +796 -0
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-CO4ra5N-.js +27 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-DHpsHQbJ.js +17 -0
- package/dist/store.d.ts +66 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-CeKqBfJU.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-BtAQ78cv.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { g as w, a as f, n as m, P as a } from "./createTheme-F9Dk4FhK.js";
|
|
3
|
+
import { g as N, s as T, m as $, u as R, c as x, a as E } from "./DefaultPropsProvider-DmUB0SYC.js";
|
|
4
|
+
import { u as O } from "./useTheme-c0OHvtiA.js";
|
|
5
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
6
|
+
import { c as j } from "./TransitionGroupContext-VwpFXTPO.js";
|
|
7
|
+
function C(e) {
|
|
8
|
+
const o = typeof e;
|
|
9
|
+
switch (o) {
|
|
10
|
+
case "number":
|
|
11
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
12
|
+
case "object":
|
|
13
|
+
return e === null ? "null" : e.constructor.name;
|
|
14
|
+
default:
|
|
15
|
+
return o;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function y(e, o, t, n) {
|
|
19
|
+
const r = e[o];
|
|
20
|
+
if (r == null || !Number.isInteger(r)) {
|
|
21
|
+
const s = C(r);
|
|
22
|
+
return new RangeError(`Invalid ${n} \`${o}\` of type \`${s}\` supplied to \`${t}\`, expected \`integer\`.`);
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
function b(e, o, ...t) {
|
|
27
|
+
return e[o] === void 0 ? null : y(e, o, ...t);
|
|
28
|
+
}
|
|
29
|
+
function l() {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
b.isRequired = y;
|
|
33
|
+
l.isRequired = l;
|
|
34
|
+
const I = process.env.NODE_ENV === "production" ? l : b;
|
|
35
|
+
function M(e) {
|
|
36
|
+
return w("MuiPaper", e);
|
|
37
|
+
}
|
|
38
|
+
N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
39
|
+
const V = (e) => {
|
|
40
|
+
const {
|
|
41
|
+
square: o,
|
|
42
|
+
elevation: t,
|
|
43
|
+
variant: n,
|
|
44
|
+
classes: r
|
|
45
|
+
} = e, s = {
|
|
46
|
+
root: ["root", n, !o && "rounded", n === "elevation" && `elevation${t}`]
|
|
47
|
+
};
|
|
48
|
+
return E(s, M, r);
|
|
49
|
+
}, U = T("div", {
|
|
50
|
+
name: "MuiPaper",
|
|
51
|
+
slot: "Root",
|
|
52
|
+
overridesResolver: (e, o) => {
|
|
53
|
+
const {
|
|
54
|
+
ownerState: t
|
|
55
|
+
} = e;
|
|
56
|
+
return [o.root, o[t.variant], !t.square && o.rounded, t.variant === "elevation" && o[`elevation${t.elevation}`]];
|
|
57
|
+
}
|
|
58
|
+
})($(({
|
|
59
|
+
theme: e
|
|
60
|
+
}) => ({
|
|
61
|
+
backgroundColor: (e.vars || e).palette.background.paper,
|
|
62
|
+
color: (e.vars || e).palette.text.primary,
|
|
63
|
+
transition: e.transitions.create("box-shadow"),
|
|
64
|
+
variants: [{
|
|
65
|
+
props: ({
|
|
66
|
+
ownerState: o
|
|
67
|
+
}) => !o.square,
|
|
68
|
+
style: {
|
|
69
|
+
borderRadius: e.shape.borderRadius
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: {
|
|
73
|
+
variant: "outlined"
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
border: `1px solid ${(e.vars || e).palette.divider}`
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
props: {
|
|
80
|
+
variant: "elevation"
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
boxShadow: "var(--Paper-shadow)",
|
|
84
|
+
backgroundImage: "var(--Paper-overlay)"
|
|
85
|
+
}
|
|
86
|
+
}]
|
|
87
|
+
}))), k = /* @__PURE__ */ h.forwardRef(function(o, t) {
|
|
88
|
+
var d;
|
|
89
|
+
const n = R({
|
|
90
|
+
props: o,
|
|
91
|
+
name: "MuiPaper"
|
|
92
|
+
}), r = O(), {
|
|
93
|
+
className: s,
|
|
94
|
+
component: u = "div",
|
|
95
|
+
elevation: i = 1,
|
|
96
|
+
square: P = !1,
|
|
97
|
+
variant: p = "elevation",
|
|
98
|
+
...v
|
|
99
|
+
} = n, c = {
|
|
100
|
+
...n,
|
|
101
|
+
component: u,
|
|
102
|
+
elevation: i,
|
|
103
|
+
square: P,
|
|
104
|
+
variant: p
|
|
105
|
+
}, g = V(c);
|
|
106
|
+
return process.env.NODE_ENV !== "production" && r.shadows[i] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
|
|
107
|
+
`)), /* @__PURE__ */ q(U, {
|
|
108
|
+
as: u,
|
|
109
|
+
ownerState: c,
|
|
110
|
+
className: x(g.root, s),
|
|
111
|
+
ref: t,
|
|
112
|
+
...v,
|
|
113
|
+
style: {
|
|
114
|
+
...p === "elevation" && {
|
|
115
|
+
"--Paper-shadow": (r.vars || r).shadows[i],
|
|
116
|
+
...r.vars && {
|
|
117
|
+
"--Paper-overlay": (d = r.vars.overlays) == null ? void 0 : d[i]
|
|
118
|
+
},
|
|
119
|
+
...!r.vars && r.palette.mode === "dark" && {
|
|
120
|
+
"--Paper-overlay": `linear-gradient(${f("#fff", m(i))}, ${f("#fff", m(i))})`
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
...v.style
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
128
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
129
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
130
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
131
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
132
|
+
/**
|
|
133
|
+
* The content of the component.
|
|
134
|
+
*/
|
|
135
|
+
children: a.node,
|
|
136
|
+
/**
|
|
137
|
+
* Override or extend the styles applied to the component.
|
|
138
|
+
*/
|
|
139
|
+
classes: a.object,
|
|
140
|
+
/**
|
|
141
|
+
* @ignore
|
|
142
|
+
*/
|
|
143
|
+
className: a.string,
|
|
144
|
+
/**
|
|
145
|
+
* The component used for the root node.
|
|
146
|
+
* Either a string to use a HTML element or a component.
|
|
147
|
+
*/
|
|
148
|
+
component: a.elementType,
|
|
149
|
+
/**
|
|
150
|
+
* Shadow depth, corresponds to `dp` in the spec.
|
|
151
|
+
* It accepts values between 0 and 24 inclusive.
|
|
152
|
+
* @default 1
|
|
153
|
+
*/
|
|
154
|
+
elevation: j(I, (e) => {
|
|
155
|
+
const {
|
|
156
|
+
elevation: o,
|
|
157
|
+
variant: t
|
|
158
|
+
} = e;
|
|
159
|
+
return o > 0 && t === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
160
|
+
}),
|
|
161
|
+
/**
|
|
162
|
+
* If `true`, rounded corners are disabled.
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
square: a.bool,
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
style: a.object,
|
|
170
|
+
/**
|
|
171
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
172
|
+
*/
|
|
173
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
174
|
+
/**
|
|
175
|
+
* The variant to use.
|
|
176
|
+
* @default 'elevation'
|
|
177
|
+
*/
|
|
178
|
+
variant: a.oneOfType([a.oneOf(["elevation", "outlined"]), a.string])
|
|
179
|
+
});
|
|
180
|
+
export {
|
|
181
|
+
k as P,
|
|
182
|
+
I as i
|
|
183
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { I as t, J as a, K as o } from "./constants-SKm7VF9k.js";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { c as e } from "./createSvgIcon-jkXneOQN.js";
|
|
4
|
+
const y = (s) => ({
|
|
5
|
+
type: t,
|
|
6
|
+
payload: s
|
|
7
|
+
}), A = (s) => ({
|
|
8
|
+
type: a,
|
|
9
|
+
payload: s
|
|
10
|
+
}), E = (s) => ({
|
|
11
|
+
type: o,
|
|
12
|
+
payload: s
|
|
13
|
+
}), R = e(/* @__PURE__ */ r("path", {
|
|
14
|
+
d: "M8 5v14l11-7z"
|
|
15
|
+
}), "PlayArrow");
|
|
16
|
+
export {
|
|
17
|
+
E as F,
|
|
18
|
+
R as P,
|
|
19
|
+
A as a,
|
|
20
|
+
y as c
|
|
21
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { g as b, b as I, H as N } from "./utils-EFg3So7T.js";
|
|
3
|
+
import { P as u } from "./createTheme-F9Dk4FhK.js";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
import { u as T, s as i } from "./TransitionGroupContext-VwpFXTPO.js";
|
|
6
|
+
import { u as p } from "./useTimeout-D29bZ7Gz.js";
|
|
7
|
+
import { e as g } from "./exactProp-C1Lmtwf_.js";
|
|
8
|
+
let m = 0;
|
|
9
|
+
function h(e) {
|
|
10
|
+
const [o, r] = t.useState(e), n = e || o;
|
|
11
|
+
return t.useEffect(() => {
|
|
12
|
+
o == null && (m += 1, r(`mui-${m}`));
|
|
13
|
+
}, [o]), n;
|
|
14
|
+
}
|
|
15
|
+
const R = {
|
|
16
|
+
...t
|
|
17
|
+
}, d = R.useId;
|
|
18
|
+
function _(e) {
|
|
19
|
+
if (d !== void 0) {
|
|
20
|
+
const o = d();
|
|
21
|
+
return e ?? o;
|
|
22
|
+
}
|
|
23
|
+
return h(e);
|
|
24
|
+
}
|
|
25
|
+
function x(e) {
|
|
26
|
+
return typeof e == "function" ? e() : e;
|
|
27
|
+
}
|
|
28
|
+
const c = /* @__PURE__ */ t.forwardRef(function(o, r) {
|
|
29
|
+
const {
|
|
30
|
+
children: n,
|
|
31
|
+
container: f,
|
|
32
|
+
disablePortal: a = !1
|
|
33
|
+
} = o, [s, E] = t.useState(null), P = T(b(n), r);
|
|
34
|
+
if (p(() => {
|
|
35
|
+
a || E(x(f) || document.body);
|
|
36
|
+
}, [f, a]), p(() => {
|
|
37
|
+
if (s && !a)
|
|
38
|
+
return i(r, s), () => {
|
|
39
|
+
i(r, null);
|
|
40
|
+
};
|
|
41
|
+
}, [r, s, a]), a) {
|
|
42
|
+
if (/* @__PURE__ */ t.isValidElement(n)) {
|
|
43
|
+
const y = {
|
|
44
|
+
ref: P
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ t.cloneElement(n, y);
|
|
47
|
+
}
|
|
48
|
+
return /* @__PURE__ */ l(t.Fragment, {
|
|
49
|
+
children: n
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return /* @__PURE__ */ l(t.Fragment, {
|
|
53
|
+
children: s && /* @__PURE__ */ I.createPortal(n, s)
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
process.env.NODE_ENV !== "production" && (c.propTypes = {
|
|
57
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
58
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
59
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
60
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
61
|
+
/**
|
|
62
|
+
* The children to render into the `container`.
|
|
63
|
+
*/
|
|
64
|
+
children: u.node,
|
|
65
|
+
/**
|
|
66
|
+
* An HTML element or function that returns one.
|
|
67
|
+
* The `container` will have the portal children appended to it.
|
|
68
|
+
*
|
|
69
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
70
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
71
|
+
*
|
|
72
|
+
* By default, it uses the body of the top-level document object,
|
|
73
|
+
* so it's simply `document.body` most of the time.
|
|
74
|
+
*/
|
|
75
|
+
container: u.oneOfType([N, u.func]),
|
|
76
|
+
/**
|
|
77
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
disablePortal: u.bool
|
|
81
|
+
});
|
|
82
|
+
process.env.NODE_ENV !== "production" && (c.propTypes = g(c.propTypes));
|
|
83
|
+
export {
|
|
84
|
+
c as P,
|
|
85
|
+
_ as u
|
|
86
|
+
};
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import { P as e, g as se,
|
|
3
|
-
import { g as ie, s as F, m as ae, u as Se,
|
|
4
|
-
import { u as Ko } from "./index-
|
|
2
|
+
import { P as e, g as se, f as be, y as Io, k as to } from "./createTheme-F9Dk4FhK.js";
|
|
3
|
+
import { g as ie, s as F, m as ae, u as Se, c as re, a as le, r as he, e as no, f as _o } from "./DefaultPropsProvider-DmUB0SYC.js";
|
|
4
|
+
import { u as Ko } from "./index-BJlsh9ro.js";
|
|
5
5
|
import { jsxs as we, jsx as P } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
import { g as
|
|
8
|
-
import {
|
|
6
|
+
import { u as fo } from "./useSlot-DaP6eodX.js";
|
|
7
|
+
import { g as qo, M as Go } from "./Modal-DceAu_d2.js";
|
|
8
|
+
import { P as Xo, i as Yo } from "./Paper-L8ipwfkc.js";
|
|
9
|
+
import { o as ze, H as eo, g as Zo } from "./utils-EFg3So7T.js";
|
|
10
|
+
import { o as He } from "./ownerWindow-C-760D__.js";
|
|
9
11
|
import { d as Po } from "./debounce-46wSf_lW.js";
|
|
10
|
-
import { u as Me, c as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { u as Me, c as Jo } from "./TransitionGroupContext-VwpFXTPO.js";
|
|
13
|
+
import { u as _e, r as Ce } from "./useTimeout-D29bZ7Gz.js";
|
|
14
|
+
import { e as xo } from "./elementTypeAcceptingRef-BufevUW8.js";
|
|
15
|
+
import { G as Qo, u as mo } from "./Grow-dkRwE_ok.js";
|
|
16
|
+
import { u as bo } from "./useControlled-BYdyS7Pn.js";
|
|
17
|
+
import { u as et } from "./Portal-DxdKGEvu.js";
|
|
18
|
+
import { u as ro, f as so, F as ot } from "./useFormControl-CfmEP6sW.js";
|
|
19
|
+
import { c as tt } from "./createSvgIcon-jkXneOQN.js";
|
|
20
|
+
import { a as nt } from "./useThemeProps-CV9AmzHf.js";
|
|
21
|
+
import { c as io } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
22
|
+
import { g as rt } from "./index-_kqRfgnc.js";
|
|
17
23
|
function Ue(o) {
|
|
18
24
|
return parseInt(o, 10) || 0;
|
|
19
25
|
}
|
|
@@ -160,7 +166,7 @@ function ho(o) {
|
|
|
160
166
|
function No(o, t = !1) {
|
|
161
167
|
return o && (ho(o.value) && o.value !== "" || t && ho(o.defaultValue) && o.defaultValue !== "");
|
|
162
168
|
}
|
|
163
|
-
function
|
|
169
|
+
function On(o) {
|
|
164
170
|
return o.startAdornment;
|
|
165
171
|
}
|
|
166
172
|
function at(o) {
|
|
@@ -418,12 +424,12 @@ const Xe = (o, t) => {
|
|
|
418
424
|
} = a.useRef(ue != null), oe = a.useRef(), D = a.useCallback((M) => {
|
|
419
425
|
process.env.NODE_ENV !== "production" && M && M.nodeName !== "INPUT" && !M.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
420
426
|
`));
|
|
421
|
-
}, []), N = Me(oe, f, r.ref, D), [B, X] = a.useState(!1), x =
|
|
427
|
+
}, []), N = Me(oe, f, r.ref, D), [B, X] = a.useState(!1), x = ro();
|
|
422
428
|
process.env.NODE_ENV !== "production" && a.useEffect(() => {
|
|
423
429
|
if (x)
|
|
424
430
|
return x.registerEffect();
|
|
425
431
|
}, [x]);
|
|
426
|
-
const A =
|
|
432
|
+
const A = so({
|
|
427
433
|
props: s,
|
|
428
434
|
muiFormControl: x,
|
|
429
435
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
@@ -908,7 +914,7 @@ const Oe = {
|
|
|
908
914
|
borderBottomStyle: "dotted"
|
|
909
915
|
}
|
|
910
916
|
}
|
|
911
|
-
}, ...Object.entries(o.palette).filter(
|
|
917
|
+
}, ...Object.entries(o.palette).filter(io()).map(([i]) => {
|
|
912
918
|
var u;
|
|
913
919
|
return {
|
|
914
920
|
props: {
|
|
@@ -1382,7 +1388,7 @@ const ht = (o) => {
|
|
|
1382
1388
|
borderBottomStyle: "dotted"
|
|
1383
1389
|
}
|
|
1384
1390
|
}
|
|
1385
|
-
}, ...Object.entries(o.palette).filter(
|
|
1391
|
+
}, ...Object.entries(o.palette).filter(io()).map(([s]) => ({
|
|
1386
1392
|
props: {
|
|
1387
1393
|
color: s,
|
|
1388
1394
|
disableUnderline: !1
|
|
@@ -1798,7 +1804,7 @@ const Do = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
|
1798
1804
|
}) => {
|
|
1799
1805
|
const C = !m.current.style.width;
|
|
1800
1806
|
if (r.clientHeight < m.current.clientHeight && C) {
|
|
1801
|
-
const $ = `${
|
|
1807
|
+
const $ = `${qo(ze(r))}px`;
|
|
1802
1808
|
m.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = $, m.current.style.width = `calc(100% + ${$})`;
|
|
1803
1809
|
}
|
|
1804
1810
|
return m.current;
|
|
@@ -1833,7 +1839,7 @@ const Do = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
|
1833
1839
|
d === f && (d += 1, d >= i.length && (d = -1));
|
|
1834
1840
|
return;
|
|
1835
1841
|
}
|
|
1836
|
-
process.env.NODE_ENV !== "production" &&
|
|
1842
|
+
process.env.NODE_ENV !== "production" && no.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1837
1843
|
`)), r.props.disabled || (v === "selectedMenu" && r.props.selected || d === -1) && (d = f), d === f && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (d += 1, d >= i.length && (d = -1));
|
|
1838
1844
|
});
|
|
1839
1845
|
const g = a.Children.map(i, (r, f) => {
|
|
@@ -1924,11 +1930,11 @@ const Ct = (o) => {
|
|
|
1924
1930
|
root: ["root"],
|
|
1925
1931
|
paper: ["paper"]
|
|
1926
1932
|
}, St, t);
|
|
1927
|
-
}, Rt = F(
|
|
1933
|
+
}, Rt = F(Go, {
|
|
1928
1934
|
name: "MuiPopover",
|
|
1929
1935
|
slot: "Root",
|
|
1930
1936
|
overridesResolver: (o, t) => t.root
|
|
1931
|
-
})({}), $o = F(
|
|
1937
|
+
})({}), $o = F(Xo, {
|
|
1932
1938
|
name: "MuiPopover",
|
|
1933
1939
|
slot: "Paper",
|
|
1934
1940
|
overridesResolver: (o, t) => t.paper
|
|
@@ -1970,7 +1976,7 @@ const Ct = (o) => {
|
|
|
1970
1976
|
vertical: "top",
|
|
1971
1977
|
horizontal: "left"
|
|
1972
1978
|
},
|
|
1973
|
-
TransitionComponent: r =
|
|
1979
|
+
TransitionComponent: r = Qo,
|
|
1974
1980
|
transitionDuration: f = "auto",
|
|
1975
1981
|
TransitionProps: {
|
|
1976
1982
|
onEntering: C,
|
|
@@ -2144,7 +2150,7 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
2144
2150
|
* or a function that returns either.
|
|
2145
2151
|
* It's used to set the position of the popover.
|
|
2146
2152
|
*/
|
|
2147
|
-
anchorEl:
|
|
2153
|
+
anchorEl: Jo(e.oneOfType([eo, e.func]), (o) => {
|
|
2148
2154
|
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
2149
2155
|
const t = Ve(o.anchorEl);
|
|
2150
2156
|
if (t && t.nodeType === 1) {
|
|
@@ -2238,7 +2244,7 @@ process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
|
2238
2244
|
* The elevation of the popover.
|
|
2239
2245
|
* @default 8
|
|
2240
2246
|
*/
|
|
2241
|
-
elevation:
|
|
2247
|
+
elevation: Yo,
|
|
2242
2248
|
/**
|
|
2243
2249
|
* Specifies how close to the edge of the window the popover can appear.
|
|
2244
2250
|
* If null, the popover will not be constrained by the window.
|
|
@@ -2407,7 +2413,7 @@ const It = {
|
|
|
2407
2413
|
};
|
|
2408
2414
|
let z = -1;
|
|
2409
2415
|
a.Children.map(l, (U, H) => {
|
|
2410
|
-
/* @__PURE__ */ a.isValidElement(U) && (process.env.NODE_ENV !== "production" &&
|
|
2416
|
+
/* @__PURE__ */ a.isValidElement(U) && (process.env.NODE_ENV !== "production" && no.isFragment(U) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2411
2417
|
`)), U.props.disabled || (R === "selectedMenu" && U.props.selected || z === -1) && (z = H));
|
|
2412
2418
|
});
|
|
2413
2419
|
const V = d.paper ?? Nt, K = g.paper ?? v, Y = mo({
|
|
@@ -2952,7 +2958,7 @@ const At = (o) => {
|
|
|
2952
2958
|
[`&.${ne.focused} .${ne.notchedOutline}`]: {
|
|
2953
2959
|
borderWidth: 2
|
|
2954
2960
|
},
|
|
2955
|
-
variants: [...Object.entries(o.palette).filter(
|
|
2961
|
+
variants: [...Object.entries(o.palette).filter(io()).map(([n]) => ({
|
|
2956
2962
|
props: {
|
|
2957
2963
|
color: n
|
|
2958
2964
|
},
|
|
@@ -3092,7 +3098,7 @@ const At = (o) => {
|
|
|
3092
3098
|
slots: v = {},
|
|
3093
3099
|
type: w = "text",
|
|
3094
3100
|
...m
|
|
3095
|
-
} = p, S = At(p), k =
|
|
3101
|
+
} = p, S = At(p), k = ro(), R = so({
|
|
3096
3102
|
props: p,
|
|
3097
3103
|
muiFormControl: k,
|
|
3098
3104
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -3511,7 +3517,7 @@ const qt = (o) => {
|
|
|
3511
3517
|
const Le = A.map((c) => {
|
|
3512
3518
|
if (!/* @__PURE__ */ a.isValidElement(c))
|
|
3513
3519
|
return null;
|
|
3514
|
-
process.env.NODE_ENV !== "production" &&
|
|
3520
|
+
process.env.NODE_ENV !== "production" && no.isFragment(c) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
3515
3521
|
`));
|
|
3516
3522
|
let I;
|
|
3517
3523
|
if (g) {
|
|
@@ -3554,7 +3560,7 @@ const qt = (o) => {
|
|
|
3554
3560
|
}, M = qt(ve), xe = {
|
|
3555
3561
|
...d.PaperProps,
|
|
3556
3562
|
...(uo = d.slotProps) == null ? void 0 : uo.paper
|
|
3557
|
-
}, $e =
|
|
3563
|
+
}, $e = et();
|
|
3558
3564
|
return /* @__PURE__ */ we(a.Fragment, {
|
|
3559
3565
|
children: [/* @__PURE__ */ P(Vt, {
|
|
3560
3566
|
as: "div",
|
|
@@ -3817,7 +3823,7 @@ const Gt = (o) => {
|
|
|
3817
3823
|
SelectDisplayProps: L,
|
|
3818
3824
|
variant: T = "outlined",
|
|
3819
3825
|
...j
|
|
3820
|
-
} = s, E = g ? Wo : Vo, z =
|
|
3826
|
+
} = s, E = g ? Wo : Vo, z = ro(), V = so({
|
|
3821
3827
|
props: s,
|
|
3822
3828
|
muiFormControl: z,
|
|
3823
3829
|
states: ["variant", "error"]
|
|
@@ -3839,7 +3845,7 @@ const Gt = (o) => {
|
|
|
3839
3845
|
filled: /* @__PURE__ */ P(Zt, {
|
|
3840
3846
|
ownerState: Y
|
|
3841
3847
|
})
|
|
3842
|
-
}[K], ee = Me(n,
|
|
3848
|
+
}[K], ee = Me(n, Zo(O));
|
|
3843
3849
|
return /* @__PURE__ */ P(a.Fragment, {
|
|
3844
3850
|
children: /* @__PURE__ */ a.cloneElement(O, {
|
|
3845
3851
|
// Most of the logic is implemented in `SelectInput`.
|
|
@@ -4042,5 +4048,5 @@ export {
|
|
|
4042
4048
|
Ge as O,
|
|
4043
4049
|
Ho as S,
|
|
4044
4050
|
No as a,
|
|
4045
|
-
|
|
4051
|
+
On as i
|
|
4046
4052
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { P as t } from "./createTheme-
|
|
3
|
-
import { u as D } from "./useTheme-
|
|
2
|
+
import { P as t } from "./createTheme-F9Dk4FhK.js";
|
|
3
|
+
import { u as D } from "./useTheme-c0OHvtiA.js";
|
|
4
4
|
import { jsx as U } from "react/jsx-runtime";
|
|
5
|
-
import { g as _,
|
|
5
|
+
import { g as _, e as q, H as A, T as F, r as G, a as P } from "./utils-EFg3So7T.js";
|
|
6
6
|
import { u as J, c as K } from "./TransitionGroupContext-VwpFXTPO.js";
|
|
7
|
+
import { o as $ } from "./ownerWindow-C-760D__.js";
|
|
7
8
|
import { d as Q } from "./debounce-46wSf_lW.js";
|
|
8
9
|
function Z(s, r, f) {
|
|
9
10
|
const n = r.getBoundingClientRect(), i = f && f.getBoundingClientRect(), E = $(r);
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { P as e, b as C, h as g, r as m, j as S, k as R, m as D, g as N, l as b } from "./createTheme-F9Dk4FhK.js";
|
|
2
|
+
import { c as E, a as F, s as B } from "./DefaultPropsProvider-DmUB0SYC.js";
|
|
3
|
+
import { u as M, a as w } from "./useThemeProps-CV9AmzHf.js";
|
|
4
|
+
import * as f from "react";
|
|
5
|
+
import { jsx as G } from "react/jsx-runtime";
|
|
6
|
+
import { s as $ } from "./styled-BTIMwpiX.js";
|
|
7
|
+
import { e as U } from "./extendSxProp-Cm2UBzGf.js";
|
|
8
|
+
const A = C(), _ = $("div", {
|
|
9
|
+
name: "MuiStack",
|
|
10
|
+
slot: "Root",
|
|
11
|
+
overridesResolver: (o, r) => r.root
|
|
12
|
+
});
|
|
13
|
+
function I(o) {
|
|
14
|
+
return M({
|
|
15
|
+
props: o,
|
|
16
|
+
name: "MuiStack",
|
|
17
|
+
defaultTheme: A
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function L(o, r) {
|
|
21
|
+
const c = f.Children.toArray(o).filter(Boolean);
|
|
22
|
+
return c.reduce((a, i, n) => (a.push(i), n < c.length - 1 && a.push(/* @__PURE__ */ f.cloneElement(r, {
|
|
23
|
+
key: `separator-${n}`
|
|
24
|
+
})), a), []);
|
|
25
|
+
}
|
|
26
|
+
const q = (o) => ({
|
|
27
|
+
row: "Left",
|
|
28
|
+
"row-reverse": "Right",
|
|
29
|
+
column: "Top",
|
|
30
|
+
"column-reverse": "Bottom"
|
|
31
|
+
})[o], z = ({
|
|
32
|
+
ownerState: o,
|
|
33
|
+
theme: r
|
|
34
|
+
}) => {
|
|
35
|
+
let c = {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
...g({
|
|
39
|
+
theme: r
|
|
40
|
+
}, m({
|
|
41
|
+
values: o.direction,
|
|
42
|
+
breakpoints: r.breakpoints.values
|
|
43
|
+
}), (a) => ({
|
|
44
|
+
flexDirection: a
|
|
45
|
+
}))
|
|
46
|
+
};
|
|
47
|
+
if (o.spacing) {
|
|
48
|
+
const a = S(r), i = Object.keys(r.breakpoints.values).reduce((s, t) => ((typeof o.spacing == "object" && o.spacing[t] != null || typeof o.direction == "object" && o.direction[t] != null) && (s[t] = !0), s), {}), n = m({
|
|
49
|
+
values: o.direction,
|
|
50
|
+
base: i
|
|
51
|
+
}), l = m({
|
|
52
|
+
values: o.spacing,
|
|
53
|
+
base: i
|
|
54
|
+
});
|
|
55
|
+
typeof n == "object" && Object.keys(n).forEach((s, t, p) => {
|
|
56
|
+
if (!n[s]) {
|
|
57
|
+
const u = t > 0 ? n[p[t - 1]] : "column";
|
|
58
|
+
n[s] = u;
|
|
59
|
+
}
|
|
60
|
+
}), c = R(c, g({
|
|
61
|
+
theme: r
|
|
62
|
+
}, l, (s, t) => o.useFlexGap ? {
|
|
63
|
+
gap: b(a, s)
|
|
64
|
+
} : {
|
|
65
|
+
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
66
|
+
// We need to reset the margin to avoid double spacing.
|
|
67
|
+
"& > :not(style):not(style)": {
|
|
68
|
+
margin: 0
|
|
69
|
+
},
|
|
70
|
+
"& > :not(style) ~ :not(style)": {
|
|
71
|
+
[`margin${q(t ? n[t] : o.direction)}`]: b(a, s)
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
return c = D(r.breakpoints, c), c;
|
|
76
|
+
};
|
|
77
|
+
function H(o = {}) {
|
|
78
|
+
const {
|
|
79
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
80
|
+
createStyledComponent: r = _,
|
|
81
|
+
useThemeProps: c = I,
|
|
82
|
+
componentName: a = "MuiStack"
|
|
83
|
+
} = o, i = () => F({
|
|
84
|
+
root: ["root"]
|
|
85
|
+
}, (s) => N(a, s), {}), n = r(z), l = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
86
|
+
const p = c(s), y = U(p), {
|
|
87
|
+
component: u = "div",
|
|
88
|
+
direction: T = "column",
|
|
89
|
+
spacing: h = 0,
|
|
90
|
+
divider: v,
|
|
91
|
+
children: O,
|
|
92
|
+
className: j,
|
|
93
|
+
useFlexGap: k = !1,
|
|
94
|
+
...x
|
|
95
|
+
} = y, P = {
|
|
96
|
+
direction: T,
|
|
97
|
+
spacing: h,
|
|
98
|
+
useFlexGap: k
|
|
99
|
+
}, V = i();
|
|
100
|
+
return /* @__PURE__ */ G(n, {
|
|
101
|
+
as: u,
|
|
102
|
+
ownerState: P,
|
|
103
|
+
ref: t,
|
|
104
|
+
className: E(V.root, j),
|
|
105
|
+
...x,
|
|
106
|
+
children: v ? L(O, v) : O
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
return process.env.NODE_ENV !== "production" && (l.propTypes = {
|
|
110
|
+
children: e.node,
|
|
111
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
112
|
+
divider: e.node,
|
|
113
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
114
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
115
|
+
}), l;
|
|
116
|
+
}
|
|
117
|
+
const J = H({
|
|
118
|
+
createStyledComponent: B("div", {
|
|
119
|
+
name: "MuiStack",
|
|
120
|
+
slot: "Root",
|
|
121
|
+
overridesResolver: (o, r) => r.root
|
|
122
|
+
}),
|
|
123
|
+
useThemeProps: (o) => w({
|
|
124
|
+
props: o,
|
|
125
|
+
name: "MuiStack"
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
129
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
130
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
131
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
132
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
133
|
+
/**
|
|
134
|
+
* The content of the component.
|
|
135
|
+
*/
|
|
136
|
+
children: e.node,
|
|
137
|
+
/**
|
|
138
|
+
* The component used for the root node.
|
|
139
|
+
* Either a string to use a HTML element or a component.
|
|
140
|
+
*/
|
|
141
|
+
component: e.elementType,
|
|
142
|
+
/**
|
|
143
|
+
* Defines the `flex-direction` style property.
|
|
144
|
+
* It is applied for all screen sizes.
|
|
145
|
+
* @default 'column'
|
|
146
|
+
*/
|
|
147
|
+
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
148
|
+
/**
|
|
149
|
+
* Add an element between each child.
|
|
150
|
+
*/
|
|
151
|
+
divider: e.node,
|
|
152
|
+
/**
|
|
153
|
+
* Defines the space between immediate children.
|
|
154
|
+
* @default 0
|
|
155
|
+
*/
|
|
156
|
+
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
157
|
+
/**
|
|
158
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
159
|
+
*/
|
|
160
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
161
|
+
/**
|
|
162
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
163
|
+
*
|
|
164
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
165
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
166
|
+
*
|
|
167
|
+
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
useFlexGap: e.bool
|
|
171
|
+
});
|
|
172
|
+
export {
|
|
173
|
+
J as S
|
|
174
|
+
};
|