everest-npm-features 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/ArrowRight-C6tjImpU.js +300 -0
- package/dist/Box-wAem3MQD.js +58 -0
- package/dist/Button-fWdSk-yh.js +451 -0
- package/dist/ButtonBase-SYP7klDp.js +876 -0
- package/dist/CircularProgress-DcXA6nAu.js +249 -0
- package/dist/Close-CdRA3xUs.js +75 -0
- package/dist/Container-CIMHcpEe.js +181 -0
- package/dist/ContentCopy-CexUUXuC.js +8 -0
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +555 -0
- package/dist/DialogContent-JgT9A6nk.js +501 -0
- package/dist/FormControl-D4QuPCnV.js +249 -0
- package/dist/GlobalStyles-BOnEiMUE.js +23 -0
- package/dist/Grid-dtT_MVn3.js +501 -0
- package/dist/Grow-B3Swdn2Z.js +215 -0
- package/dist/IconButton-CRGy76pJ.js +237 -0
- package/dist/Modal-0q_y4zbS.js +1170 -0
- package/dist/Select-BNAaKK32.js +4046 -0
- package/dist/Slide-BlS6unRJ.js +229 -0
- package/dist/TextField-CPZo0_di.js +963 -0
- package/dist/TransitionGroupContext-VwpFXTPO.js +43 -0
- package/dist/Typography-kyxogyUq.js +256 -0
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +4 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/documents.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/keyboard.css +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/assets/styles2.css +1 -0
- package/dist/assets/tokenRow.css +1 -0
- package/dist/assets/withThemeProvider.css +1 -0
- package/dist/auth-Cj5FKr_m.js +19 -0
- package/dist/axios-xPiQW9EP.js +118114 -0
- package/dist/components/Profile/documents.d.ts +6 -0
- package/dist/components/Profile/documents.js +24 -0
- package/dist/components/Profile/index.d.ts +6 -0
- package/dist/components/Profile/index.js +592 -0
- package/dist/components/Receive/index.d.ts +2 -0
- package/dist/components/Receive/index.js +75 -0
- package/dist/components/Send/index.d.ts +6 -0
- package/dist/components/Send/index.js +387 -0
- package/dist/components/Shared/Keyboard/index.d.ts +1 -0
- package/dist/components/Shared/Keyboard/index.js +4 -0
- package/dist/components/Shared/Keyboard/keyboard.d.ts +8 -0
- package/dist/components/Shared/Keyboard/keyboard.js +152 -0
- package/dist/components/Shared/button.d.ts +11 -0
- package/dist/components/Shared/button.js +64 -0
- package/dist/components/Shared/incode.d.ts +20 -0
- package/dist/components/Shared/incode.js +202 -0
- package/dist/components/Shared/inputField.d.ts +7 -0
- package/dist/components/Shared/inputField.js +48 -0
- package/dist/components/Shared/pin.d.ts +9 -0
- package/dist/components/Shared/pin.js +96 -0
- package/dist/components/Shared/step.d.ts +8 -0
- package/dist/components/Shared/step.js +48 -0
- package/dist/components/Shared/transition.d.ts +7 -0
- package/dist/components/Shared/transition.js +11 -0
- package/dist/components/SignIn/index.d.ts +4 -0
- package/dist/components/SignIn/index.js +266 -0
- package/dist/components/SignIn/types.d.ts +7 -0
- package/dist/components/SignIn/types.js +1 -0
- package/dist/components/SignUp/biometric.d.ts +3 -0
- package/dist/components/SignUp/biometric.js +77 -0
- package/dist/components/SignUp/index.d.ts +3 -0
- package/dist/components/SignUp/index.js +393 -0
- package/dist/components/SignUp/pin.d.ts +3 -0
- package/dist/components/SignUp/pin.js +950 -0
- package/dist/components/SignUp/privacy.d.ts +2 -0
- package/dist/components/SignUp/privacy.js +259 -0
- package/dist/components/SignUp/terms.d.ts +2 -0
- package/dist/components/SignUp/terms.js +524 -0
- package/dist/components/SignUp/types.d.ts +54 -0
- package/dist/components/SignUp/types.js +1 -0
- package/dist/components/SignUp/userInfo.d.ts +3 -0
- package/dist/components/SignUp/userInfo.js +47 -0
- package/dist/components/WalletPortfolio/index.d.ts +3 -0
- package/dist/components/WalletPortfolio/index.js +557 -0
- package/dist/components/WalletPortfolio/tokenRow.d.ts +17 -0
- package/dist/components/WalletPortfolio/tokenRow.js +11 -0
- package/dist/components/WalletPortfolio/types.d.ts +10 -0
- package/dist/components/WalletPortfolio/types.js +1 -0
- package/dist/createSimplePaletteValueFilter-CsgjlRAs.js +659 -0
- package/dist/createSvgIcon-CAZr4ukt.js +249 -0
- package/dist/createTheme-NrBCWesw.js +3386 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/defaultTheme-OIfL8Ia7.js +5 -0
- package/dist/dialog-success-BDNJV4Tk.js +4 -0
- package/dist/dividerClasses-Z7VLlu5C.js +10 -0
- package/dist/documents-CL4Ajr_B.js +569 -0
- package/dist/exactProp-C1Lmtwf_.js +13 -0
- package/dist/extendSxProp-CuERe1TA.js +37 -0
- package/dist/hoc/withThemeProvider.d.ts +6 -0
- package/dist/hoc/withThemeProvider.js +635 -0
- package/dist/hooks/useDialog/index.d.ts +5 -0
- package/dist/hooks/useDialog/index.js +78 -0
- package/dist/hooks/useDialog/types.d.ts +14 -0
- package/dist/hooks/useDialog/types.js +1 -0
- package/dist/hooks/useSnackBar.d.ts +14 -0
- package/dist/hooks/useSnackBar.js +968 -0
- package/dist/index-CAoLi5Qq.js +827 -0
- package/dist/index-Cq3eHOnB.js +22 -0
- package/dist/index-DKTkUdik.js +6 -0
- package/dist/index-iAyNk1r6.js +72 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +16 -0
- package/dist/pin-empty-D9665KFr.js +6 -0
- package/dist/react-redux-VW99uJjf.js +5908 -0
- package/dist/react-webcam-Cov1TP0q.js +639 -0
- package/dist/styled-Da6GnxEE.js +5 -0
- package/dist/styles.module-Ctfaq7f2.js +10 -0
- package/dist/styles.module-KeND8lCR.js +9 -0
- package/dist/tokenRow-Cdd_jFjp.js +206 -0
- package/dist/useFormControl-Bo6Tf_xo.js +46 -0
- package/dist/useSlot-CURNJ3JC.js +306 -0
- package/dist/useTheme-DWRMvRU8.js +9 -0
- package/dist/useTheme-nlj1B_-c.js +11 -0
- package/dist/useThemeProps-BqWuFW3z.js +40 -0
- package/dist/useThemeWithoutDefault-BdYkMk0o.js +12 -0
- package/dist/useTimeout-lr7ryrda.js +75 -0
- package/dist/util/constants.d.ts +20 -0
- package/dist/util/constants.js +23 -0
- package/dist/util/conversions.d.ts +9 -0
- package/dist/util/conversions.js +22284 -0
- package/dist/util/functions.d.ts +15 -0
- package/dist/util/functions.js +94 -0
- package/dist/utils-_FXWkn40.js +19473 -0
- package/dist/wallet-DN7ej6mj.js +273 -0
- package/package.json +59 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { g as L, e, f as c, P as a } from "./createTheme-NrBCWesw.js";
|
|
3
|
+
import { g as j, s as b, r as D, m as F, d as G, u as U, a as I, b as _ } from "./createSimplePaletteValueFilter-CsgjlRAs.js";
|
|
4
|
+
import { jsxs as H, jsx as $ } from "react/jsx-runtime";
|
|
5
|
+
import { B as A } from "./ButtonBase-SYP7klDp.js";
|
|
6
|
+
import { r as q } from "./DefaultPropsProvider-Y8MI-J-I.js";
|
|
7
|
+
function J(o) {
|
|
8
|
+
return L("MuiButton", o);
|
|
9
|
+
}
|
|
10
|
+
const l = j("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), w = /* @__PURE__ */ u.createContext({});
|
|
11
|
+
process.env.NODE_ENV !== "production" && (w.displayName = "ButtonGroupContext");
|
|
12
|
+
const m = /* @__PURE__ */ u.createContext(void 0);
|
|
13
|
+
process.env.NODE_ENV !== "production" && (m.displayName = "ButtonGroupButtonContext");
|
|
14
|
+
const K = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
color: t,
|
|
17
|
+
disableElevation: n,
|
|
18
|
+
fullWidth: s,
|
|
19
|
+
size: i,
|
|
20
|
+
variant: r,
|
|
21
|
+
classes: d
|
|
22
|
+
} = o, g = {
|
|
23
|
+
root: ["root", r, `${r}${e(t)}`, `size${e(i)}`, `${r}Size${e(i)}`, `color${e(t)}`, n && "disableElevation", s && "fullWidth"],
|
|
24
|
+
label: ["label"],
|
|
25
|
+
startIcon: ["icon", "startIcon", `iconSize${e(i)}`],
|
|
26
|
+
endIcon: ["icon", "endIcon", `iconSize${e(i)}`]
|
|
27
|
+
}, x = _(g, J, d);
|
|
28
|
+
return {
|
|
29
|
+
...d,
|
|
30
|
+
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
31
|
+
...x
|
|
32
|
+
};
|
|
33
|
+
}, O = [{
|
|
34
|
+
props: {
|
|
35
|
+
size: "small"
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
"& > *:nth-of-type(1)": {
|
|
39
|
+
fontSize: 18
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
props: {
|
|
44
|
+
size: "medium"
|
|
45
|
+
},
|
|
46
|
+
style: {
|
|
47
|
+
"& > *:nth-of-type(1)": {
|
|
48
|
+
fontSize: 20
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
props: {
|
|
53
|
+
size: "large"
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
"& > *:nth-of-type(1)": {
|
|
57
|
+
fontSize: 22
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}], Q = b(A, {
|
|
61
|
+
shouldForwardProp: (o) => D(o) || o === "classes",
|
|
62
|
+
name: "MuiButton",
|
|
63
|
+
slot: "Root",
|
|
64
|
+
overridesResolver: (o, t) => {
|
|
65
|
+
const {
|
|
66
|
+
ownerState: n
|
|
67
|
+
} = o;
|
|
68
|
+
return [t.root, t[n.variant], t[`${n.variant}${e(n.color)}`], t[`size${e(n.size)}`], t[`${n.variant}Size${e(n.size)}`], n.color === "inherit" && t.colorInherit, n.disableElevation && t.disableElevation, n.fullWidth && t.fullWidth];
|
|
69
|
+
}
|
|
70
|
+
})(F(({
|
|
71
|
+
theme: o
|
|
72
|
+
}) => {
|
|
73
|
+
var s, i;
|
|
74
|
+
const t = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
75
|
+
return {
|
|
76
|
+
...o.typography.button,
|
|
77
|
+
minWidth: 64,
|
|
78
|
+
padding: "6px 16px",
|
|
79
|
+
border: 0,
|
|
80
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
81
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
82
|
+
duration: o.transitions.duration.short
|
|
83
|
+
}),
|
|
84
|
+
"&:hover": {
|
|
85
|
+
textDecoration: "none"
|
|
86
|
+
},
|
|
87
|
+
[`&.${l.disabled}`]: {
|
|
88
|
+
color: (o.vars || o).palette.action.disabled
|
|
89
|
+
},
|
|
90
|
+
variants: [{
|
|
91
|
+
props: {
|
|
92
|
+
variant: "contained"
|
|
93
|
+
},
|
|
94
|
+
style: {
|
|
95
|
+
color: "var(--variant-containedColor)",
|
|
96
|
+
backgroundColor: "var(--variant-containedBg)",
|
|
97
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
98
|
+
"&:hover": {
|
|
99
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
100
|
+
// Reset on touch devices, it doesn't add specificity
|
|
101
|
+
"@media (hover: none)": {
|
|
102
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"&:active": {
|
|
106
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
107
|
+
},
|
|
108
|
+
[`&.${l.focusVisible}`]: {
|
|
109
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
110
|
+
},
|
|
111
|
+
[`&.${l.disabled}`]: {
|
|
112
|
+
color: (o.vars || o).palette.action.disabled,
|
|
113
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
114
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
props: {
|
|
119
|
+
variant: "outlined"
|
|
120
|
+
},
|
|
121
|
+
style: {
|
|
122
|
+
padding: "5px 15px",
|
|
123
|
+
border: "1px solid currentColor",
|
|
124
|
+
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
125
|
+
backgroundColor: "var(--variant-outlinedBg)",
|
|
126
|
+
color: "var(--variant-outlinedColor)",
|
|
127
|
+
[`&.${l.disabled}`]: {
|
|
128
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
props: {
|
|
133
|
+
variant: "text"
|
|
134
|
+
},
|
|
135
|
+
style: {
|
|
136
|
+
padding: "6px 8px",
|
|
137
|
+
color: "var(--variant-textColor)",
|
|
138
|
+
backgroundColor: "var(--variant-textBg)"
|
|
139
|
+
}
|
|
140
|
+
}, ...Object.entries(o.palette).filter(G(["dark", "contrastText"])).map(([r]) => ({
|
|
141
|
+
props: {
|
|
142
|
+
color: r
|
|
143
|
+
},
|
|
144
|
+
style: {
|
|
145
|
+
"--variant-textColor": (o.vars || o).palette[r].main,
|
|
146
|
+
"--variant-outlinedColor": (o.vars || o).palette[r].main,
|
|
147
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : c(o.palette[r].main, 0.5),
|
|
148
|
+
"--variant-containedColor": (o.vars || o).palette[r].contrastText,
|
|
149
|
+
"--variant-containedBg": (o.vars || o).palette[r].main,
|
|
150
|
+
"@media (hover: hover)": {
|
|
151
|
+
"&:hover": {
|
|
152
|
+
"--variant-containedBg": (o.vars || o).palette[r].dark,
|
|
153
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette[r].main, o.palette.action.hoverOpacity),
|
|
154
|
+
"--variant-outlinedBorder": (o.vars || o).palette[r].main,
|
|
155
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette[r].main, o.palette.action.hoverOpacity)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
})), {
|
|
160
|
+
props: {
|
|
161
|
+
color: "inherit"
|
|
162
|
+
},
|
|
163
|
+
style: {
|
|
164
|
+
"--variant-containedColor": o.vars ? (
|
|
165
|
+
// this is safe because grey does not change between default light/dark mode
|
|
166
|
+
o.vars.palette.text.primary
|
|
167
|
+
) : (i = (s = o.palette).getContrastText) == null ? void 0 : i.call(s, t),
|
|
168
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : t,
|
|
169
|
+
"@media (hover: hover)": {
|
|
170
|
+
"&:hover": {
|
|
171
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
|
|
172
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
173
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
props: {
|
|
179
|
+
size: "small",
|
|
180
|
+
variant: "text"
|
|
181
|
+
},
|
|
182
|
+
style: {
|
|
183
|
+
padding: "4px 5px",
|
|
184
|
+
fontSize: o.typography.pxToRem(13)
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
props: {
|
|
188
|
+
size: "large",
|
|
189
|
+
variant: "text"
|
|
190
|
+
},
|
|
191
|
+
style: {
|
|
192
|
+
padding: "8px 11px",
|
|
193
|
+
fontSize: o.typography.pxToRem(15)
|
|
194
|
+
}
|
|
195
|
+
}, {
|
|
196
|
+
props: {
|
|
197
|
+
size: "small",
|
|
198
|
+
variant: "outlined"
|
|
199
|
+
},
|
|
200
|
+
style: {
|
|
201
|
+
padding: "3px 9px",
|
|
202
|
+
fontSize: o.typography.pxToRem(13)
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
props: {
|
|
206
|
+
size: "large",
|
|
207
|
+
variant: "outlined"
|
|
208
|
+
},
|
|
209
|
+
style: {
|
|
210
|
+
padding: "7px 21px",
|
|
211
|
+
fontSize: o.typography.pxToRem(15)
|
|
212
|
+
}
|
|
213
|
+
}, {
|
|
214
|
+
props: {
|
|
215
|
+
size: "small",
|
|
216
|
+
variant: "contained"
|
|
217
|
+
},
|
|
218
|
+
style: {
|
|
219
|
+
padding: "4px 10px",
|
|
220
|
+
fontSize: o.typography.pxToRem(13)
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
props: {
|
|
224
|
+
size: "large",
|
|
225
|
+
variant: "contained"
|
|
226
|
+
},
|
|
227
|
+
style: {
|
|
228
|
+
padding: "8px 22px",
|
|
229
|
+
fontSize: o.typography.pxToRem(15)
|
|
230
|
+
}
|
|
231
|
+
}, {
|
|
232
|
+
props: {
|
|
233
|
+
disableElevation: !0
|
|
234
|
+
},
|
|
235
|
+
style: {
|
|
236
|
+
boxShadow: "none",
|
|
237
|
+
"&:hover": {
|
|
238
|
+
boxShadow: "none"
|
|
239
|
+
},
|
|
240
|
+
[`&.${l.focusVisible}`]: {
|
|
241
|
+
boxShadow: "none"
|
|
242
|
+
},
|
|
243
|
+
"&:active": {
|
|
244
|
+
boxShadow: "none"
|
|
245
|
+
},
|
|
246
|
+
[`&.${l.disabled}`]: {
|
|
247
|
+
boxShadow: "none"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
props: {
|
|
252
|
+
fullWidth: !0
|
|
253
|
+
},
|
|
254
|
+
style: {
|
|
255
|
+
width: "100%"
|
|
256
|
+
}
|
|
257
|
+
}]
|
|
258
|
+
};
|
|
259
|
+
})), X = b("span", {
|
|
260
|
+
name: "MuiButton",
|
|
261
|
+
slot: "StartIcon",
|
|
262
|
+
overridesResolver: (o, t) => {
|
|
263
|
+
const {
|
|
264
|
+
ownerState: n
|
|
265
|
+
} = o;
|
|
266
|
+
return [t.startIcon, t[`iconSize${e(n.size)}`]];
|
|
267
|
+
}
|
|
268
|
+
})({
|
|
269
|
+
display: "inherit",
|
|
270
|
+
marginRight: 8,
|
|
271
|
+
marginLeft: -4,
|
|
272
|
+
variants: [{
|
|
273
|
+
props: {
|
|
274
|
+
size: "small"
|
|
275
|
+
},
|
|
276
|
+
style: {
|
|
277
|
+
marginLeft: -2
|
|
278
|
+
}
|
|
279
|
+
}, ...O]
|
|
280
|
+
}), Y = b("span", {
|
|
281
|
+
name: "MuiButton",
|
|
282
|
+
slot: "EndIcon",
|
|
283
|
+
overridesResolver: (o, t) => {
|
|
284
|
+
const {
|
|
285
|
+
ownerState: n
|
|
286
|
+
} = o;
|
|
287
|
+
return [t.endIcon, t[`iconSize${e(n.size)}`]];
|
|
288
|
+
}
|
|
289
|
+
})({
|
|
290
|
+
display: "inherit",
|
|
291
|
+
marginRight: -4,
|
|
292
|
+
marginLeft: 8,
|
|
293
|
+
variants: [{
|
|
294
|
+
props: {
|
|
295
|
+
size: "small"
|
|
296
|
+
},
|
|
297
|
+
style: {
|
|
298
|
+
marginRight: -2
|
|
299
|
+
}
|
|
300
|
+
}, ...O]
|
|
301
|
+
}), Z = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
302
|
+
const s = u.useContext(w), i = u.useContext(m), r = q(s, t), d = U({
|
|
303
|
+
props: r,
|
|
304
|
+
name: "MuiButton"
|
|
305
|
+
}), {
|
|
306
|
+
children: g,
|
|
307
|
+
color: x = "primary",
|
|
308
|
+
component: y = "button",
|
|
309
|
+
className: R,
|
|
310
|
+
disabled: f = !1,
|
|
311
|
+
disableElevation: E = !1,
|
|
312
|
+
disableFocusRipple: S = !1,
|
|
313
|
+
endIcon: z,
|
|
314
|
+
focusVisibleClassName: N,
|
|
315
|
+
fullWidth: T = !1,
|
|
316
|
+
size: P = "medium",
|
|
317
|
+
startIcon: C,
|
|
318
|
+
type: B,
|
|
319
|
+
variant: h = "text",
|
|
320
|
+
...W
|
|
321
|
+
} = d, v = {
|
|
322
|
+
...d,
|
|
323
|
+
color: x,
|
|
324
|
+
component: y,
|
|
325
|
+
disabled: f,
|
|
326
|
+
disableElevation: E,
|
|
327
|
+
disableFocusRipple: S,
|
|
328
|
+
fullWidth: T,
|
|
329
|
+
size: P,
|
|
330
|
+
type: B,
|
|
331
|
+
variant: h
|
|
332
|
+
}, p = K(v), k = C && /* @__PURE__ */ $(X, {
|
|
333
|
+
className: p.startIcon,
|
|
334
|
+
ownerState: v,
|
|
335
|
+
children: C
|
|
336
|
+
}), M = z && /* @__PURE__ */ $(Y, {
|
|
337
|
+
className: p.endIcon,
|
|
338
|
+
ownerState: v,
|
|
339
|
+
children: z
|
|
340
|
+
}), V = i || "";
|
|
341
|
+
return /* @__PURE__ */ H(Q, {
|
|
342
|
+
ownerState: v,
|
|
343
|
+
className: I(s.className, p.root, R, V),
|
|
344
|
+
component: y,
|
|
345
|
+
disabled: f,
|
|
346
|
+
focusRipple: !S,
|
|
347
|
+
focusVisibleClassName: I(p.focusVisible, N),
|
|
348
|
+
ref: n,
|
|
349
|
+
type: B,
|
|
350
|
+
...W,
|
|
351
|
+
classes: p,
|
|
352
|
+
children: [k, g, M]
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
356
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
357
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
358
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
359
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
360
|
+
/**
|
|
361
|
+
* The content of the component.
|
|
362
|
+
*/
|
|
363
|
+
children: a.node,
|
|
364
|
+
/**
|
|
365
|
+
* Override or extend the styles applied to the component.
|
|
366
|
+
*/
|
|
367
|
+
classes: a.object,
|
|
368
|
+
/**
|
|
369
|
+
* @ignore
|
|
370
|
+
*/
|
|
371
|
+
className: a.string,
|
|
372
|
+
/**
|
|
373
|
+
* The color of the component.
|
|
374
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
375
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
376
|
+
* @default 'primary'
|
|
377
|
+
*/
|
|
378
|
+
color: a.oneOfType([a.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), a.string]),
|
|
379
|
+
/**
|
|
380
|
+
* The component used for the root node.
|
|
381
|
+
* Either a string to use a HTML element or a component.
|
|
382
|
+
*/
|
|
383
|
+
component: a.elementType,
|
|
384
|
+
/**
|
|
385
|
+
* If `true`, the component is disabled.
|
|
386
|
+
* @default false
|
|
387
|
+
*/
|
|
388
|
+
disabled: a.bool,
|
|
389
|
+
/**
|
|
390
|
+
* If `true`, no elevation is used.
|
|
391
|
+
* @default false
|
|
392
|
+
*/
|
|
393
|
+
disableElevation: a.bool,
|
|
394
|
+
/**
|
|
395
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
disableFocusRipple: a.bool,
|
|
399
|
+
/**
|
|
400
|
+
* If `true`, the ripple effect is disabled.
|
|
401
|
+
*
|
|
402
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
403
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
404
|
+
* @default false
|
|
405
|
+
*/
|
|
406
|
+
disableRipple: a.bool,
|
|
407
|
+
/**
|
|
408
|
+
* Element placed after the children.
|
|
409
|
+
*/
|
|
410
|
+
endIcon: a.node,
|
|
411
|
+
/**
|
|
412
|
+
* @ignore
|
|
413
|
+
*/
|
|
414
|
+
focusVisibleClassName: a.string,
|
|
415
|
+
/**
|
|
416
|
+
* If `true`, the button will take up the full width of its container.
|
|
417
|
+
* @default false
|
|
418
|
+
*/
|
|
419
|
+
fullWidth: a.bool,
|
|
420
|
+
/**
|
|
421
|
+
* The URL to link to when the button is clicked.
|
|
422
|
+
* If defined, an `a` element will be used as the root node.
|
|
423
|
+
*/
|
|
424
|
+
href: a.string,
|
|
425
|
+
/**
|
|
426
|
+
* The size of the component.
|
|
427
|
+
* `small` is equivalent to the dense button styling.
|
|
428
|
+
* @default 'medium'
|
|
429
|
+
*/
|
|
430
|
+
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
431
|
+
/**
|
|
432
|
+
* Element placed before the children.
|
|
433
|
+
*/
|
|
434
|
+
startIcon: a.node,
|
|
435
|
+
/**
|
|
436
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
437
|
+
*/
|
|
438
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
439
|
+
/**
|
|
440
|
+
* @ignore
|
|
441
|
+
*/
|
|
442
|
+
type: a.oneOfType([a.oneOf(["button", "reset", "submit"]), a.string]),
|
|
443
|
+
/**
|
|
444
|
+
* The variant to use.
|
|
445
|
+
* @default 'text'
|
|
446
|
+
*/
|
|
447
|
+
variant: a.oneOfType([a.oneOf(["contained", "outlined", "text"]), a.string])
|
|
448
|
+
});
|
|
449
|
+
export {
|
|
450
|
+
Z as B
|
|
451
|
+
};
|