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,876 @@
|
|
|
1
|
+
var Le = Object.defineProperty;
|
|
2
|
+
var ke = (n, t, o) => t in n ? Le(n, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[t] = o;
|
|
3
|
+
var ue = (n, t, o) => ke(n, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
+
import { P as e, g as je } from "./createTheme-NrBCWesw.js";
|
|
7
|
+
import { _ as Fe, a as E, g as fe, s as te, u as de, b as Ie } from "./createSimplePaletteValueFilter-CsgjlRAs.js";
|
|
8
|
+
import { jsx as U, jsxs as Ue } from "react/jsx-runtime";
|
|
9
|
+
import { k as ne } from "./DefaultPropsProvider-Y8MI-J-I.js";
|
|
10
|
+
import { b as $e, u as ze, c as H, r as _e, e as Ae } from "./useTimeout-lr7ryrda.js";
|
|
11
|
+
import { _ as Xe, a as Ye, T as le, u as ce } from "./TransitionGroupContext-VwpFXTPO.js";
|
|
12
|
+
function pe(n) {
|
|
13
|
+
try {
|
|
14
|
+
return n.matches(":focus-visible");
|
|
15
|
+
} catch {
|
|
16
|
+
process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
|
|
17
|
+
`));
|
|
18
|
+
}
|
|
19
|
+
return !1;
|
|
20
|
+
}
|
|
21
|
+
function Ke(n) {
|
|
22
|
+
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
function oe(n, t) {
|
|
26
|
+
var o = function(s) {
|
|
27
|
+
return t && G(s) ? t(s) : s;
|
|
28
|
+
}, u = /* @__PURE__ */ Object.create(null);
|
|
29
|
+
return n && Oe.map(n, function(i) {
|
|
30
|
+
return i;
|
|
31
|
+
}).forEach(function(i) {
|
|
32
|
+
u[i.key] = o(i);
|
|
33
|
+
}), u;
|
|
34
|
+
}
|
|
35
|
+
function qe(n, t) {
|
|
36
|
+
n = n || {}, t = t || {};
|
|
37
|
+
function o(h) {
|
|
38
|
+
return h in t ? t[h] : n[h];
|
|
39
|
+
}
|
|
40
|
+
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
41
|
+
for (var s in n)
|
|
42
|
+
s in t ? i.length && (u[s] = i, i = []) : i.push(s);
|
|
43
|
+
var r, p = {};
|
|
44
|
+
for (var l in t) {
|
|
45
|
+
if (u[l])
|
|
46
|
+
for (r = 0; r < u[l].length; r++) {
|
|
47
|
+
var f = u[l][r];
|
|
48
|
+
p[u[l][r]] = o(f);
|
|
49
|
+
}
|
|
50
|
+
p[l] = o(l);
|
|
51
|
+
}
|
|
52
|
+
for (r = 0; r < i.length; r++)
|
|
53
|
+
p[i[r]] = o(i[r]);
|
|
54
|
+
return p;
|
|
55
|
+
}
|
|
56
|
+
function O(n, t, o) {
|
|
57
|
+
return o[t] != null ? o[t] : n.props[t];
|
|
58
|
+
}
|
|
59
|
+
function We(n, t) {
|
|
60
|
+
return oe(n.children, function(o) {
|
|
61
|
+
return J(o, {
|
|
62
|
+
onExited: t.bind(null, o),
|
|
63
|
+
in: !0,
|
|
64
|
+
appear: O(o, "appear", n),
|
|
65
|
+
enter: O(o, "enter", n),
|
|
66
|
+
exit: O(o, "exit", n)
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function He(n, t, o) {
|
|
71
|
+
var u = oe(n.children), i = qe(t, u);
|
|
72
|
+
return Object.keys(i).forEach(function(s) {
|
|
73
|
+
var r = i[s];
|
|
74
|
+
if (G(r)) {
|
|
75
|
+
var p = s in t, l = s in u, f = t[s], h = G(f) && !f.props.in;
|
|
76
|
+
l && (!p || h) ? i[s] = J(r, {
|
|
77
|
+
onExited: o.bind(null, r),
|
|
78
|
+
in: !0,
|
|
79
|
+
exit: O(r, "exit", n),
|
|
80
|
+
enter: O(r, "enter", n)
|
|
81
|
+
}) : !l && p && !h ? i[s] = J(r, {
|
|
82
|
+
in: !1
|
|
83
|
+
}) : l && p && G(f) && (i[s] = J(r, {
|
|
84
|
+
onExited: o.bind(null, r),
|
|
85
|
+
in: f.props.in,
|
|
86
|
+
exit: O(r, "exit", n),
|
|
87
|
+
enter: O(r, "enter", n)
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
}), i;
|
|
91
|
+
}
|
|
92
|
+
var Ge = Object.values || function(n) {
|
|
93
|
+
return Object.keys(n).map(function(t) {
|
|
94
|
+
return n[t];
|
|
95
|
+
});
|
|
96
|
+
}, Je = {
|
|
97
|
+
component: "div",
|
|
98
|
+
childFactory: function(t) {
|
|
99
|
+
return t;
|
|
100
|
+
}
|
|
101
|
+
}, ie = /* @__PURE__ */ function(n) {
|
|
102
|
+
Xe(t, n);
|
|
103
|
+
function t(u, i) {
|
|
104
|
+
var s;
|
|
105
|
+
s = n.call(this, u, i) || this;
|
|
106
|
+
var r = s.handleExited.bind(Ke(s));
|
|
107
|
+
return s.state = {
|
|
108
|
+
contextValue: {
|
|
109
|
+
isMounting: !0
|
|
110
|
+
},
|
|
111
|
+
handleExited: r,
|
|
112
|
+
firstRender: !0
|
|
113
|
+
}, s;
|
|
114
|
+
}
|
|
115
|
+
var o = t.prototype;
|
|
116
|
+
return o.componentDidMount = function() {
|
|
117
|
+
this.mounted = !0, this.setState({
|
|
118
|
+
contextValue: {
|
|
119
|
+
isMounting: !1
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}, o.componentWillUnmount = function() {
|
|
123
|
+
this.mounted = !1;
|
|
124
|
+
}, t.getDerivedStateFromProps = function(i, s) {
|
|
125
|
+
var r = s.children, p = s.handleExited, l = s.firstRender;
|
|
126
|
+
return {
|
|
127
|
+
children: l ? We(i, p) : He(i, r, p),
|
|
128
|
+
firstRender: !1
|
|
129
|
+
};
|
|
130
|
+
}, o.handleExited = function(i, s) {
|
|
131
|
+
var r = oe(this.props.children);
|
|
132
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
|
|
133
|
+
var l = Fe({}, p.children);
|
|
134
|
+
return delete l[i.key], {
|
|
135
|
+
children: l
|
|
136
|
+
};
|
|
137
|
+
}));
|
|
138
|
+
}, o.render = function() {
|
|
139
|
+
var i = this.props, s = i.component, r = i.childFactory, p = Ye(i, ["component", "childFactory"]), l = this.state.contextValue, f = Ge(this.state.children).map(r);
|
|
140
|
+
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(le.Provider, {
|
|
141
|
+
value: l
|
|
142
|
+
}, f) : /* @__PURE__ */ W.createElement(le.Provider, {
|
|
143
|
+
value: l
|
|
144
|
+
}, /* @__PURE__ */ W.createElement(s, p, f));
|
|
145
|
+
}, t;
|
|
146
|
+
}(W.Component);
|
|
147
|
+
ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
148
|
+
/**
|
|
149
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
150
|
+
* behavior by providing a `component` prop.
|
|
151
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
152
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
153
|
+
* borks your css styles.
|
|
154
|
+
*/
|
|
155
|
+
component: e.any,
|
|
156
|
+
/**
|
|
157
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
158
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
159
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
160
|
+
* with our `<Fade>` example.
|
|
161
|
+
*
|
|
162
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
163
|
+
* children, sometimes you may want to have a single transition child with
|
|
164
|
+
* content that you want to be transitioned out and in when you change it
|
|
165
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
166
|
+
* the transition child as you change its content, this will cause
|
|
167
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
168
|
+
*/
|
|
169
|
+
children: e.node,
|
|
170
|
+
/**
|
|
171
|
+
* A convenience prop that enables or disables appear animations
|
|
172
|
+
* for all children. Note that specifying this will override any defaults set
|
|
173
|
+
* on individual children Transitions.
|
|
174
|
+
*/
|
|
175
|
+
appear: e.bool,
|
|
176
|
+
/**
|
|
177
|
+
* A convenience prop that enables or disables enter animations
|
|
178
|
+
* for all children. Note that specifying this will override any defaults set
|
|
179
|
+
* on individual children Transitions.
|
|
180
|
+
*/
|
|
181
|
+
enter: e.bool,
|
|
182
|
+
/**
|
|
183
|
+
* A convenience prop that enables or disables exit animations
|
|
184
|
+
* for all children. Note that specifying this will override any defaults set
|
|
185
|
+
* on individual children Transitions.
|
|
186
|
+
*/
|
|
187
|
+
exit: e.bool,
|
|
188
|
+
/**
|
|
189
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
190
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
191
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
192
|
+
*
|
|
193
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
194
|
+
* to wrap every child, even the ones that are leaving.
|
|
195
|
+
*
|
|
196
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
197
|
+
*/
|
|
198
|
+
childFactory: e.func
|
|
199
|
+
} : {};
|
|
200
|
+
ie.defaultProps = Je;
|
|
201
|
+
class Q {
|
|
202
|
+
constructor() {
|
|
203
|
+
ue(this, "mountEffect", () => {
|
|
204
|
+
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
205
|
+
});
|
|
206
|
+
this.ref = {
|
|
207
|
+
current: null
|
|
208
|
+
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
209
|
+
}
|
|
210
|
+
/** React ref to the ripple instance */
|
|
211
|
+
/** If the ripple component should be mounted */
|
|
212
|
+
/** Promise that resolves when the ripple component is mounted */
|
|
213
|
+
/** If the ripple component has been mounted */
|
|
214
|
+
/** React state hook setter */
|
|
215
|
+
static create() {
|
|
216
|
+
return new Q();
|
|
217
|
+
}
|
|
218
|
+
static use() {
|
|
219
|
+
const t = $e(Q.create).current, [o, u] = d.useState(!1);
|
|
220
|
+
return t.shouldMount = o, t.setShouldMount = u, d.useEffect(t.mountEffect, [o]), t;
|
|
221
|
+
}
|
|
222
|
+
mount() {
|
|
223
|
+
return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
224
|
+
}
|
|
225
|
+
/* Ripple API */
|
|
226
|
+
start(...t) {
|
|
227
|
+
this.mount().then(() => {
|
|
228
|
+
var o;
|
|
229
|
+
return (o = this.ref.current) == null ? void 0 : o.start(...t);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
stop(...t) {
|
|
233
|
+
this.mount().then(() => {
|
|
234
|
+
var o;
|
|
235
|
+
return (o = this.ref.current) == null ? void 0 : o.stop(...t);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
pulsate(...t) {
|
|
239
|
+
this.mount().then(() => {
|
|
240
|
+
var o;
|
|
241
|
+
return (o = this.ref.current) == null ? void 0 : o.pulsate(...t);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function Qe() {
|
|
246
|
+
return Q.use();
|
|
247
|
+
}
|
|
248
|
+
function Ze() {
|
|
249
|
+
let n, t;
|
|
250
|
+
const o = new Promise((u, i) => {
|
|
251
|
+
n = u, t = i;
|
|
252
|
+
});
|
|
253
|
+
return o.resolve = n, o.reject = t, o;
|
|
254
|
+
}
|
|
255
|
+
function he(n) {
|
|
256
|
+
const {
|
|
257
|
+
className: t,
|
|
258
|
+
classes: o,
|
|
259
|
+
pulsate: u = !1,
|
|
260
|
+
rippleX: i,
|
|
261
|
+
rippleY: s,
|
|
262
|
+
rippleSize: r,
|
|
263
|
+
in: p,
|
|
264
|
+
onExited: l,
|
|
265
|
+
timeout: f
|
|
266
|
+
} = n, [h, y] = d.useState(!1), g = E(t, o.ripple, o.rippleVisible, u && o.ripplePulsate), w = {
|
|
267
|
+
width: r,
|
|
268
|
+
height: r,
|
|
269
|
+
top: -(r / 2) + s,
|
|
270
|
+
left: -(r / 2) + i
|
|
271
|
+
}, m = E(o.child, h && o.childLeaving, u && o.childPulsate);
|
|
272
|
+
return !p && !h && y(!0), d.useEffect(() => {
|
|
273
|
+
if (!p && l != null) {
|
|
274
|
+
const S = setTimeout(l, f);
|
|
275
|
+
return () => {
|
|
276
|
+
clearTimeout(S);
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
}, [l, p, f]), /* @__PURE__ */ U("span", {
|
|
280
|
+
className: g,
|
|
281
|
+
style: w,
|
|
282
|
+
children: /* @__PURE__ */ U("span", {
|
|
283
|
+
className: m
|
|
284
|
+
})
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
process.env.NODE_ENV !== "production" && (he.propTypes = {
|
|
288
|
+
/**
|
|
289
|
+
* Override or extend the styles applied to the component.
|
|
290
|
+
*/
|
|
291
|
+
classes: e.object.isRequired,
|
|
292
|
+
className: e.string,
|
|
293
|
+
/**
|
|
294
|
+
* @ignore - injected from TransitionGroup
|
|
295
|
+
*/
|
|
296
|
+
in: e.bool,
|
|
297
|
+
/**
|
|
298
|
+
* @ignore - injected from TransitionGroup
|
|
299
|
+
*/
|
|
300
|
+
onExited: e.func,
|
|
301
|
+
/**
|
|
302
|
+
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
303
|
+
*/
|
|
304
|
+
pulsate: e.bool,
|
|
305
|
+
/**
|
|
306
|
+
* Diameter of the ripple.
|
|
307
|
+
*/
|
|
308
|
+
rippleSize: e.number,
|
|
309
|
+
/**
|
|
310
|
+
* Horizontal position of the ripple center.
|
|
311
|
+
*/
|
|
312
|
+
rippleX: e.number,
|
|
313
|
+
/**
|
|
314
|
+
* Vertical position of the ripple center.
|
|
315
|
+
*/
|
|
316
|
+
rippleY: e.number,
|
|
317
|
+
/**
|
|
318
|
+
* exit delay
|
|
319
|
+
*/
|
|
320
|
+
timeout: e.number.isRequired
|
|
321
|
+
});
|
|
322
|
+
const b = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ee = 550, et = 80, tt = ne`
|
|
323
|
+
0% {
|
|
324
|
+
transform: scale(0);
|
|
325
|
+
opacity: 0.1;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
100% {
|
|
329
|
+
transform: scale(1);
|
|
330
|
+
opacity: 0.3;
|
|
331
|
+
}
|
|
332
|
+
`, nt = ne`
|
|
333
|
+
0% {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
100% {
|
|
338
|
+
opacity: 0;
|
|
339
|
+
}
|
|
340
|
+
`, ot = ne`
|
|
341
|
+
0% {
|
|
342
|
+
transform: scale(1);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
50% {
|
|
346
|
+
transform: scale(0.92);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
100% {
|
|
350
|
+
transform: scale(1);
|
|
351
|
+
}
|
|
352
|
+
`, it = te("span", {
|
|
353
|
+
name: "MuiTouchRipple",
|
|
354
|
+
slot: "Root"
|
|
355
|
+
})({
|
|
356
|
+
overflow: "hidden",
|
|
357
|
+
pointerEvents: "none",
|
|
358
|
+
position: "absolute",
|
|
359
|
+
zIndex: 0,
|
|
360
|
+
top: 0,
|
|
361
|
+
right: 0,
|
|
362
|
+
bottom: 0,
|
|
363
|
+
left: 0,
|
|
364
|
+
borderRadius: "inherit"
|
|
365
|
+
}), st = te(he, {
|
|
366
|
+
name: "MuiTouchRipple",
|
|
367
|
+
slot: "Ripple"
|
|
368
|
+
})`
|
|
369
|
+
opacity: 0;
|
|
370
|
+
position: absolute;
|
|
371
|
+
|
|
372
|
+
&.${b.rippleVisible} {
|
|
373
|
+
opacity: 0.3;
|
|
374
|
+
transform: scale(1);
|
|
375
|
+
animation-name: ${tt};
|
|
376
|
+
animation-duration: ${ee}ms;
|
|
377
|
+
animation-timing-function: ${({
|
|
378
|
+
theme: n
|
|
379
|
+
}) => n.transitions.easing.easeInOut};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&.${b.ripplePulsate} {
|
|
383
|
+
animation-duration: ${({
|
|
384
|
+
theme: n
|
|
385
|
+
}) => n.transitions.duration.shorter}ms;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
& .${b.child} {
|
|
389
|
+
opacity: 1;
|
|
390
|
+
display: block;
|
|
391
|
+
width: 100%;
|
|
392
|
+
height: 100%;
|
|
393
|
+
border-radius: 50%;
|
|
394
|
+
background-color: currentColor;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
& .${b.childLeaving} {
|
|
398
|
+
opacity: 0;
|
|
399
|
+
animation-name: ${nt};
|
|
400
|
+
animation-duration: ${ee}ms;
|
|
401
|
+
animation-timing-function: ${({
|
|
402
|
+
theme: n
|
|
403
|
+
}) => n.transitions.easing.easeInOut};
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
& .${b.childPulsate} {
|
|
407
|
+
position: absolute;
|
|
408
|
+
/* @noflip */
|
|
409
|
+
left: 0px;
|
|
410
|
+
top: 0;
|
|
411
|
+
animation-name: ${ot};
|
|
412
|
+
animation-duration: 2500ms;
|
|
413
|
+
animation-timing-function: ${({
|
|
414
|
+
theme: n
|
|
415
|
+
}) => n.transitions.easing.easeInOut};
|
|
416
|
+
animation-iteration-count: infinite;
|
|
417
|
+
animation-delay: 200ms;
|
|
418
|
+
}
|
|
419
|
+
`, me = /* @__PURE__ */ d.forwardRef(function(t, o) {
|
|
420
|
+
const u = de({
|
|
421
|
+
props: t,
|
|
422
|
+
name: "MuiTouchRipple"
|
|
423
|
+
}), {
|
|
424
|
+
center: i = !1,
|
|
425
|
+
classes: s = {},
|
|
426
|
+
className: r,
|
|
427
|
+
...p
|
|
428
|
+
} = u, [l, f] = d.useState([]), h = d.useRef(0), y = d.useRef(null);
|
|
429
|
+
d.useEffect(() => {
|
|
430
|
+
y.current && (y.current(), y.current = null);
|
|
431
|
+
}, [l]);
|
|
432
|
+
const g = d.useRef(!1), w = ze(), m = d.useRef(null), S = d.useRef(null), C = d.useCallback((c) => {
|
|
433
|
+
const {
|
|
434
|
+
pulsate: R,
|
|
435
|
+
rippleX: M,
|
|
436
|
+
rippleY: I,
|
|
437
|
+
rippleSize: B,
|
|
438
|
+
cb: $
|
|
439
|
+
} = c;
|
|
440
|
+
f((T) => [...T, /* @__PURE__ */ U(st, {
|
|
441
|
+
classes: {
|
|
442
|
+
ripple: E(s.ripple, b.ripple),
|
|
443
|
+
rippleVisible: E(s.rippleVisible, b.rippleVisible),
|
|
444
|
+
ripplePulsate: E(s.ripplePulsate, b.ripplePulsate),
|
|
445
|
+
child: E(s.child, b.child),
|
|
446
|
+
childLeaving: E(s.childLeaving, b.childLeaving),
|
|
447
|
+
childPulsate: E(s.childPulsate, b.childPulsate)
|
|
448
|
+
},
|
|
449
|
+
timeout: ee,
|
|
450
|
+
pulsate: R,
|
|
451
|
+
rippleX: M,
|
|
452
|
+
rippleY: I,
|
|
453
|
+
rippleSize: B
|
|
454
|
+
}, h.current)]), h.current += 1, y.current = $;
|
|
455
|
+
}, [s]), j = d.useCallback((c = {}, R = {}, M = () => {
|
|
456
|
+
}) => {
|
|
457
|
+
const {
|
|
458
|
+
pulsate: I = !1,
|
|
459
|
+
center: B = i || R.pulsate,
|
|
460
|
+
fakeElement: $ = !1
|
|
461
|
+
// For test purposes
|
|
462
|
+
} = R;
|
|
463
|
+
if ((c == null ? void 0 : c.type) === "mousedown" && g.current) {
|
|
464
|
+
g.current = !1;
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
(c == null ? void 0 : c.type) === "touchstart" && (g.current = !0);
|
|
468
|
+
const T = $ ? null : S.current, D = T ? T.getBoundingClientRect() : {
|
|
469
|
+
width: 0,
|
|
470
|
+
height: 0,
|
|
471
|
+
left: 0,
|
|
472
|
+
top: 0
|
|
473
|
+
};
|
|
474
|
+
let V, x, v;
|
|
475
|
+
if (B || c === void 0 || c.clientX === 0 && c.clientY === 0 || !c.clientX && !c.touches)
|
|
476
|
+
V = Math.round(D.width / 2), x = Math.round(D.height / 2);
|
|
477
|
+
else {
|
|
478
|
+
const {
|
|
479
|
+
clientX: z,
|
|
480
|
+
clientY: L
|
|
481
|
+
} = c.touches && c.touches.length > 0 ? c.touches[0] : c;
|
|
482
|
+
V = Math.round(z - D.left), x = Math.round(L - D.top);
|
|
483
|
+
}
|
|
484
|
+
if (B)
|
|
485
|
+
v = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), v % 2 === 0 && (v += 1);
|
|
486
|
+
else {
|
|
487
|
+
const z = Math.max(Math.abs((T ? T.clientWidth : 0) - V), V) * 2 + 2, L = Math.max(Math.abs((T ? T.clientHeight : 0) - x), x) * 2 + 2;
|
|
488
|
+
v = Math.sqrt(z ** 2 + L ** 2);
|
|
489
|
+
}
|
|
490
|
+
c != null && c.touches ? m.current === null && (m.current = () => {
|
|
491
|
+
C({
|
|
492
|
+
pulsate: I,
|
|
493
|
+
rippleX: V,
|
|
494
|
+
rippleY: x,
|
|
495
|
+
rippleSize: v,
|
|
496
|
+
cb: M
|
|
497
|
+
});
|
|
498
|
+
}, w.start(et, () => {
|
|
499
|
+
m.current && (m.current(), m.current = null);
|
|
500
|
+
})) : C({
|
|
501
|
+
pulsate: I,
|
|
502
|
+
rippleX: V,
|
|
503
|
+
rippleY: x,
|
|
504
|
+
rippleSize: v,
|
|
505
|
+
cb: M
|
|
506
|
+
});
|
|
507
|
+
}, [i, C, w]), Y = d.useCallback(() => {
|
|
508
|
+
j({}, {
|
|
509
|
+
pulsate: !0
|
|
510
|
+
});
|
|
511
|
+
}, [j]), F = d.useCallback((c, R) => {
|
|
512
|
+
if (w.clear(), (c == null ? void 0 : c.type) === "touchend" && m.current) {
|
|
513
|
+
m.current(), m.current = null, w.start(0, () => {
|
|
514
|
+
F(c, R);
|
|
515
|
+
});
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
m.current = null, f((M) => M.length > 0 ? M.slice(1) : M), y.current = R;
|
|
519
|
+
}, [w]);
|
|
520
|
+
return d.useImperativeHandle(o, () => ({
|
|
521
|
+
pulsate: Y,
|
|
522
|
+
start: j,
|
|
523
|
+
stop: F
|
|
524
|
+
}), [Y, j, F]), /* @__PURE__ */ U(it, {
|
|
525
|
+
className: E(b.root, s.root, r),
|
|
526
|
+
ref: S,
|
|
527
|
+
...p,
|
|
528
|
+
children: /* @__PURE__ */ U(ie, {
|
|
529
|
+
component: null,
|
|
530
|
+
exit: !0,
|
|
531
|
+
children: l
|
|
532
|
+
})
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
536
|
+
/**
|
|
537
|
+
* If `true`, the ripple starts at the center of the component
|
|
538
|
+
* rather than at the point of interaction.
|
|
539
|
+
*/
|
|
540
|
+
center: e.bool,
|
|
541
|
+
/**
|
|
542
|
+
* Override or extend the styles applied to the component.
|
|
543
|
+
*/
|
|
544
|
+
classes: e.object,
|
|
545
|
+
/**
|
|
546
|
+
* @ignore
|
|
547
|
+
*/
|
|
548
|
+
className: e.string
|
|
549
|
+
});
|
|
550
|
+
function rt(n) {
|
|
551
|
+
return je("MuiButtonBase", n);
|
|
552
|
+
}
|
|
553
|
+
const at = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) => {
|
|
554
|
+
const {
|
|
555
|
+
disabled: t,
|
|
556
|
+
focusVisible: o,
|
|
557
|
+
focusVisibleClassName: u,
|
|
558
|
+
classes: i
|
|
559
|
+
} = n, r = Ie({
|
|
560
|
+
root: ["root", t && "disabled", o && "focusVisible"]
|
|
561
|
+
}, rt, i);
|
|
562
|
+
return o && u && (r.root += ` ${u}`), r;
|
|
563
|
+
}, lt = te("button", {
|
|
564
|
+
name: "MuiButtonBase",
|
|
565
|
+
slot: "Root",
|
|
566
|
+
overridesResolver: (n, t) => t.root
|
|
567
|
+
})({
|
|
568
|
+
display: "inline-flex",
|
|
569
|
+
alignItems: "center",
|
|
570
|
+
justifyContent: "center",
|
|
571
|
+
position: "relative",
|
|
572
|
+
boxSizing: "border-box",
|
|
573
|
+
WebkitTapHighlightColor: "transparent",
|
|
574
|
+
backgroundColor: "transparent",
|
|
575
|
+
// Reset default value
|
|
576
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
577
|
+
outline: 0,
|
|
578
|
+
border: 0,
|
|
579
|
+
margin: 0,
|
|
580
|
+
// Remove the margin in Safari
|
|
581
|
+
borderRadius: 0,
|
|
582
|
+
padding: 0,
|
|
583
|
+
// Remove the padding in Firefox
|
|
584
|
+
cursor: "pointer",
|
|
585
|
+
userSelect: "none",
|
|
586
|
+
verticalAlign: "middle",
|
|
587
|
+
MozAppearance: "none",
|
|
588
|
+
// Reset
|
|
589
|
+
WebkitAppearance: "none",
|
|
590
|
+
// Reset
|
|
591
|
+
textDecoration: "none",
|
|
592
|
+
// So we take precedent over the style of a native <a /> element.
|
|
593
|
+
color: "inherit",
|
|
594
|
+
"&::-moz-focus-inner": {
|
|
595
|
+
borderStyle: "none"
|
|
596
|
+
// Remove Firefox dotted outline.
|
|
597
|
+
},
|
|
598
|
+
[`&.${at.disabled}`]: {
|
|
599
|
+
pointerEvents: "none",
|
|
600
|
+
// Disable link interactions
|
|
601
|
+
cursor: "default"
|
|
602
|
+
},
|
|
603
|
+
"@media print": {
|
|
604
|
+
colorAdjust: "exact"
|
|
605
|
+
}
|
|
606
|
+
}), ct = /* @__PURE__ */ d.forwardRef(function(t, o) {
|
|
607
|
+
const u = de({
|
|
608
|
+
props: t,
|
|
609
|
+
name: "MuiButtonBase"
|
|
610
|
+
}), {
|
|
611
|
+
action: i,
|
|
612
|
+
centerRipple: s = !1,
|
|
613
|
+
children: r,
|
|
614
|
+
className: p,
|
|
615
|
+
component: l = "button",
|
|
616
|
+
disabled: f = !1,
|
|
617
|
+
disableRipple: h = !1,
|
|
618
|
+
disableTouchRipple: y = !1,
|
|
619
|
+
focusRipple: g = !1,
|
|
620
|
+
focusVisibleClassName: w,
|
|
621
|
+
LinkComponent: m = "a",
|
|
622
|
+
onBlur: S,
|
|
623
|
+
onClick: C,
|
|
624
|
+
onContextMenu: j,
|
|
625
|
+
onDragLeave: Y,
|
|
626
|
+
onFocus: F,
|
|
627
|
+
onFocusVisible: c,
|
|
628
|
+
onKeyDown: R,
|
|
629
|
+
onKeyUp: M,
|
|
630
|
+
onMouseDown: I,
|
|
631
|
+
onMouseLeave: B,
|
|
632
|
+
onMouseUp: $,
|
|
633
|
+
onTouchEnd: T,
|
|
634
|
+
onTouchMove: D,
|
|
635
|
+
onTouchStart: V,
|
|
636
|
+
tabIndex: x = 0,
|
|
637
|
+
TouchRippleProps: v,
|
|
638
|
+
touchRippleRef: z,
|
|
639
|
+
type: L,
|
|
640
|
+
..._
|
|
641
|
+
} = u, A = d.useRef(null), P = Qe(), be = ce(P.ref, z), [k, K] = d.useState(!1);
|
|
642
|
+
f && k && K(!1), d.useImperativeHandle(i, () => ({
|
|
643
|
+
focusVisible: () => {
|
|
644
|
+
K(!0), A.current.focus();
|
|
645
|
+
}
|
|
646
|
+
}), []);
|
|
647
|
+
const ge = P.shouldMount && !h && !f;
|
|
648
|
+
d.useEffect(() => {
|
|
649
|
+
k && g && !h && P.pulsate();
|
|
650
|
+
}, [h, g, k, P]);
|
|
651
|
+
function N(a, re, Be = y) {
|
|
652
|
+
return H((ae) => (re && re(ae), Be || P[a](ae), !0));
|
|
653
|
+
}
|
|
654
|
+
const Me = N("start", I), ye = N("stop", j), Re = N("stop", Y), Te = N("stop", $), Ee = N("stop", (a) => {
|
|
655
|
+
k && a.preventDefault(), B && B(a);
|
|
656
|
+
}), Ce = N("start", V), xe = N("stop", T), Pe = N("stop", D), Ne = N("stop", (a) => {
|
|
657
|
+
pe(a.target) || K(!1), S && S(a);
|
|
658
|
+
}, !1), we = H((a) => {
|
|
659
|
+
A.current || (A.current = a.currentTarget), pe(a.target) && (K(!0), c && c(a)), F && F(a);
|
|
660
|
+
}), Z = () => {
|
|
661
|
+
const a = A.current;
|
|
662
|
+
return l && l !== "button" && !(a.tagName === "A" && a.href);
|
|
663
|
+
}, De = H((a) => {
|
|
664
|
+
g && !a.repeat && k && a.key === " " && P.stop(a, () => {
|
|
665
|
+
P.start(a);
|
|
666
|
+
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), R && R(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), C && C(a));
|
|
667
|
+
}), Ve = H((a) => {
|
|
668
|
+
g && a.key === " " && k && !a.defaultPrevented && P.stop(a, () => {
|
|
669
|
+
P.pulsate(a);
|
|
670
|
+
}), M && M(a), C && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && C(a);
|
|
671
|
+
});
|
|
672
|
+
let q = l;
|
|
673
|
+
q === "button" && (_.href || _.to) && (q = m);
|
|
674
|
+
const X = {};
|
|
675
|
+
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
676
|
+
const ve = ce(o, A), se = {
|
|
677
|
+
...u,
|
|
678
|
+
centerRipple: s,
|
|
679
|
+
component: l,
|
|
680
|
+
disabled: f,
|
|
681
|
+
disableRipple: h,
|
|
682
|
+
disableTouchRipple: y,
|
|
683
|
+
focusRipple: g,
|
|
684
|
+
tabIndex: x,
|
|
685
|
+
focusVisible: k
|
|
686
|
+
}, Se = ut(se);
|
|
687
|
+
return /* @__PURE__ */ Ue(lt, {
|
|
688
|
+
as: q,
|
|
689
|
+
className: E(Se.root, p),
|
|
690
|
+
ownerState: se,
|
|
691
|
+
onBlur: Ne,
|
|
692
|
+
onClick: C,
|
|
693
|
+
onContextMenu: ye,
|
|
694
|
+
onFocus: we,
|
|
695
|
+
onKeyDown: De,
|
|
696
|
+
onKeyUp: Ve,
|
|
697
|
+
onMouseDown: Me,
|
|
698
|
+
onMouseLeave: Ee,
|
|
699
|
+
onMouseUp: Te,
|
|
700
|
+
onDragLeave: Re,
|
|
701
|
+
onTouchEnd: xe,
|
|
702
|
+
onTouchMove: Pe,
|
|
703
|
+
onTouchStart: Ce,
|
|
704
|
+
ref: ve,
|
|
705
|
+
tabIndex: f ? -1 : x,
|
|
706
|
+
type: L,
|
|
707
|
+
...X,
|
|
708
|
+
..._,
|
|
709
|
+
children: [r, ge ? /* @__PURE__ */ U(me, {
|
|
710
|
+
ref: be,
|
|
711
|
+
center: s,
|
|
712
|
+
...v
|
|
713
|
+
}) : null]
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
717
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
718
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
719
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
720
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
721
|
+
/**
|
|
722
|
+
* A ref for imperative actions.
|
|
723
|
+
* It currently only supports `focusVisible()` action.
|
|
724
|
+
*/
|
|
725
|
+
action: _e,
|
|
726
|
+
/**
|
|
727
|
+
* If `true`, the ripples are centered.
|
|
728
|
+
* They won't start at the cursor interaction position.
|
|
729
|
+
* @default false
|
|
730
|
+
*/
|
|
731
|
+
centerRipple: e.bool,
|
|
732
|
+
/**
|
|
733
|
+
* The content of the component.
|
|
734
|
+
*/
|
|
735
|
+
children: e.node,
|
|
736
|
+
/**
|
|
737
|
+
* Override or extend the styles applied to the component.
|
|
738
|
+
*/
|
|
739
|
+
classes: e.object,
|
|
740
|
+
/**
|
|
741
|
+
* @ignore
|
|
742
|
+
*/
|
|
743
|
+
className: e.string,
|
|
744
|
+
/**
|
|
745
|
+
* The component used for the root node.
|
|
746
|
+
* Either a string to use a HTML element or a component.
|
|
747
|
+
*/
|
|
748
|
+
component: Ae,
|
|
749
|
+
/**
|
|
750
|
+
* If `true`, the component is disabled.
|
|
751
|
+
* @default false
|
|
752
|
+
*/
|
|
753
|
+
disabled: e.bool,
|
|
754
|
+
/**
|
|
755
|
+
* If `true`, the ripple effect is disabled.
|
|
756
|
+
*
|
|
757
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
758
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
759
|
+
* @default false
|
|
760
|
+
*/
|
|
761
|
+
disableRipple: e.bool,
|
|
762
|
+
/**
|
|
763
|
+
* If `true`, the touch ripple effect is disabled.
|
|
764
|
+
* @default false
|
|
765
|
+
*/
|
|
766
|
+
disableTouchRipple: e.bool,
|
|
767
|
+
/**
|
|
768
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
|
769
|
+
* @default false
|
|
770
|
+
*/
|
|
771
|
+
focusRipple: e.bool,
|
|
772
|
+
/**
|
|
773
|
+
* This prop can help identify which element has keyboard focus.
|
|
774
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
775
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
776
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
777
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
778
|
+
* if needed.
|
|
779
|
+
*/
|
|
780
|
+
focusVisibleClassName: e.string,
|
|
781
|
+
/**
|
|
782
|
+
* @ignore
|
|
783
|
+
*/
|
|
784
|
+
href: e.any,
|
|
785
|
+
/**
|
|
786
|
+
* The component used to render a link when the `href` prop is provided.
|
|
787
|
+
* @default 'a'
|
|
788
|
+
*/
|
|
789
|
+
LinkComponent: e.elementType,
|
|
790
|
+
/**
|
|
791
|
+
* @ignore
|
|
792
|
+
*/
|
|
793
|
+
onBlur: e.func,
|
|
794
|
+
/**
|
|
795
|
+
* @ignore
|
|
796
|
+
*/
|
|
797
|
+
onClick: e.func,
|
|
798
|
+
/**
|
|
799
|
+
* @ignore
|
|
800
|
+
*/
|
|
801
|
+
onContextMenu: e.func,
|
|
802
|
+
/**
|
|
803
|
+
* @ignore
|
|
804
|
+
*/
|
|
805
|
+
onDragLeave: e.func,
|
|
806
|
+
/**
|
|
807
|
+
* @ignore
|
|
808
|
+
*/
|
|
809
|
+
onFocus: e.func,
|
|
810
|
+
/**
|
|
811
|
+
* Callback fired when the component is focused with a keyboard.
|
|
812
|
+
* We trigger a `onFocus` callback too.
|
|
813
|
+
*/
|
|
814
|
+
onFocusVisible: e.func,
|
|
815
|
+
/**
|
|
816
|
+
* @ignore
|
|
817
|
+
*/
|
|
818
|
+
onKeyDown: e.func,
|
|
819
|
+
/**
|
|
820
|
+
* @ignore
|
|
821
|
+
*/
|
|
822
|
+
onKeyUp: e.func,
|
|
823
|
+
/**
|
|
824
|
+
* @ignore
|
|
825
|
+
*/
|
|
826
|
+
onMouseDown: e.func,
|
|
827
|
+
/**
|
|
828
|
+
* @ignore
|
|
829
|
+
*/
|
|
830
|
+
onMouseLeave: e.func,
|
|
831
|
+
/**
|
|
832
|
+
* @ignore
|
|
833
|
+
*/
|
|
834
|
+
onMouseUp: e.func,
|
|
835
|
+
/**
|
|
836
|
+
* @ignore
|
|
837
|
+
*/
|
|
838
|
+
onTouchEnd: e.func,
|
|
839
|
+
/**
|
|
840
|
+
* @ignore
|
|
841
|
+
*/
|
|
842
|
+
onTouchMove: e.func,
|
|
843
|
+
/**
|
|
844
|
+
* @ignore
|
|
845
|
+
*/
|
|
846
|
+
onTouchStart: e.func,
|
|
847
|
+
/**
|
|
848
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
849
|
+
*/
|
|
850
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
851
|
+
/**
|
|
852
|
+
* @default 0
|
|
853
|
+
*/
|
|
854
|
+
tabIndex: e.number,
|
|
855
|
+
/**
|
|
856
|
+
* Props applied to the `TouchRipple` element.
|
|
857
|
+
*/
|
|
858
|
+
TouchRippleProps: e.object,
|
|
859
|
+
/**
|
|
860
|
+
* A ref that points to the `TouchRipple` element.
|
|
861
|
+
*/
|
|
862
|
+
touchRippleRef: e.oneOfType([e.func, e.shape({
|
|
863
|
+
current: e.shape({
|
|
864
|
+
pulsate: e.func.isRequired,
|
|
865
|
+
start: e.func.isRequired,
|
|
866
|
+
stop: e.func.isRequired
|
|
867
|
+
})
|
|
868
|
+
})]),
|
|
869
|
+
/**
|
|
870
|
+
* @ignore
|
|
871
|
+
*/
|
|
872
|
+
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
|
873
|
+
});
|
|
874
|
+
export {
|
|
875
|
+
ct as B
|
|
876
|
+
};
|