@sisense/sdk-shared-ui 1.28.0 → 1.30.0
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/Breadcrumbs-B46ViOSv.cjs +3 -0
- package/dist/Breadcrumbs-CQNCIJ2Y.js +301 -0
- package/dist/Button-CoMaroSC.cjs +1 -0
- package/dist/Button-D5ZAS_sd.js +569 -0
- package/dist/ButtonBase-Camgk6s8.cjs +74 -0
- package/dist/{createSvgIcon-CXJWSg3i.js → ButtonBase-DPVWpC8-.js} +331 -350
- package/dist/{Checkbox-CrbGw8d7.js → Checkbox-3bG1OLg3.js} +21 -18
- package/dist/Checkbox-oJOn5Vb9.cjs +1 -0
- package/dist/{Icon-B1V-T6UH.cjs → Icon-CqoYg88-.cjs} +1 -1
- package/dist/{Icon-Cs6oGRgo.js → Icon-D0uZg6iJ.js} +31 -10
- package/dist/{SvgIcon-SnObJHZS.cjs → SvgIcon-Dg-EBYZz.cjs} +1 -1
- package/dist/{SvgIcon-LwOuESoH.js → SvgIcon-DsAvI5iY.js} +1 -1
- package/dist/{TablePagination-B8I5QURH.js → TablePagination-DUkJaWJG.js} +2133 -2304
- package/dist/TablePagination-Yp8eKLZB.cjs +15 -0
- package/dist/{ThemeProvider-aq1EWT1u.js → ThemeProvider-BCsnqK18.js} +1198 -1154
- package/dist/ThemeProvider-BjBWRt7C.cjs +114 -0
- package/dist/{Tooltip-vVc6Lxew.js → Tooltip-B0-7TF8b.js} +15 -13
- package/dist/Tooltip-DE1hlnS3.cjs +7 -0
- package/dist/{Typography-C891hjk2.js → Typography-BGFgTnYN.js} +3 -2
- package/dist/{Typography-vldQClJj.cjs → Typography-CGsd6zC4.cjs} +1 -1
- package/dist/createSvgIcon-DDrcw4wZ.cjs +1 -0
- package/dist/createSvgIcon-rAujRRtd.js +17 -0
- package/dist/deepmerge-BuAjuQR6.cjs +17 -0
- package/dist/deepmerge-DNqbOtFI.js +177 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +30 -24
- package/dist/integerPropType-B8hl-7D0.js +180 -0
- package/dist/integerPropType-BGlNA6vX.cjs +17 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +7 -0
- package/dist/lib/Breadcrumbs/index.d.ts +5 -0
- package/dist/lib/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
- package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts +2 -0
- package/dist/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
- package/dist/lib/Button/Button.cjs +1 -0
- package/dist/lib/Button/Button.d.ts +10 -0
- package/dist/lib/Button/Button.d.ts.map +1 -0
- package/dist/lib/Button/Button.js +7 -0
- package/dist/lib/Button/index.d.ts +5 -0
- package/dist/lib/Button/index.d.ts.map +1 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts +11 -0
- package/dist/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
- package/dist/lib/Button/themes/index.d.ts +2 -0
- package/dist/lib/Button/themes/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +2 -2
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.d.ts +1 -1
- package/dist/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/package.json +18 -1
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-7x9FkqBW.js +720 -0
- package/dist/useSlot-B_P_o-pz.cjs +1 -0
- package/dist/useSlotProps-BpXHXb21.js +102 -0
- package/dist/useSlotProps-COvANhgg.cjs +1 -0
- package/dist/{useTheme-DJmNR5EL.cjs → useTheme-BN6DGaDZ.cjs} +1 -1
- package/dist/{useTheme-CtIZL8WJ.js → useTheme-eCVqNAnk.js} +1 -1
- package/dist/useTimeout-BG7TPjEm.js +92 -0
- package/dist/useTimeout-DQN9lwd_.cjs +2 -0
- package/package.json +18 -1
- package/dist/Checkbox-Dy9BTXfS.cjs +0 -1
- package/dist/TablePagination-DH0TZ21v.cjs +0 -31
- package/dist/ThemeProvider-sqppyE-5.cjs +0 -114
- package/dist/Tooltip-Dokek6y8.cjs +0 -7
- package/dist/TransitionGroupContext-BlR3HYBG.cjs +0 -4
- package/dist/TransitionGroupContext-Ci_clMyv.js +0 -120
- package/dist/createSvgIcon-DF4qzIJY.cjs +0 -74
- package/dist/useSlot-BfQr8KCN.js +0 -803
- package/dist/useSlot-C3-OaWva.cjs +0 -1
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import H, { Children as
|
|
6
|
-
import { P as
|
|
7
|
-
import { f as E, b as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { c as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
|
|
14
|
-
function Ke(o) {
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var ve = (o, e, n) => e in o ? Se(o, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[e] = n;
|
|
3
|
+
var re = (o, e, n) => ve(o, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import H, { Children as Be, isValidElement as W, cloneElement as G } from "react";
|
|
6
|
+
import { P as t } from "./index-D0lMis-I.js";
|
|
7
|
+
import { f as E, b as ce, p as te, s as ne, e as pe, g as Le, h as $e } from "./ThemeProvider-BCsnqK18.js";
|
|
8
|
+
import { jsx as I, jsxs as ke } from "react/jsx-runtime";
|
|
9
|
+
import { c as Oe, a as Fe, _ as je, T as ae, b as Ie, u as le, d as J, i as ue, r as Ue } from "./useTimeout-BG7TPjEm.js";
|
|
10
|
+
import { _ as ze } from "./setPrototypeOf-CEtRTXk2.js";
|
|
11
|
+
import { _ as _e } from "./extends-DX42hfxm.js";
|
|
12
|
+
import { _ as Ae } from "./assertThisInitialized-lz6cHcRv.js";
|
|
13
|
+
function Xe(o) {
|
|
15
14
|
const {
|
|
16
15
|
prototype: e = {}
|
|
17
16
|
} = o;
|
|
18
17
|
return !!e.isReactComponent;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
19
|
+
function Ye(o, e, n, l, i) {
|
|
20
|
+
const s = o[e], r = i || e;
|
|
21
|
+
if (s == null || // When server-side rendering React doesn't warn either.
|
|
23
22
|
// This is not an accurate check for SSR.
|
|
24
23
|
// This is only in place for emotion compat.
|
|
25
24
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
26
25
|
typeof window > "u")
|
|
27
26
|
return null;
|
|
28
|
-
let
|
|
29
|
-
return typeof
|
|
30
|
-
}
|
|
31
|
-
const He = Ie(n.elementType, qe), de = /* @__PURE__ */ f.createContext(void 0);
|
|
32
|
-
process.env.NODE_ENV !== "production" && (de.displayName = "FormControlContext");
|
|
33
|
-
function Et() {
|
|
34
|
-
return f.useContext(de);
|
|
27
|
+
let u;
|
|
28
|
+
return typeof s == "function" && !Xe(s) && (u = "Did you accidentally provide a plain function component instead?"), u !== void 0 ? new Error(`Invalid ${l} \`${r}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
35
29
|
}
|
|
30
|
+
const Ke = Oe(t.elementType, Ye);
|
|
36
31
|
class Q {
|
|
37
32
|
constructor() {
|
|
38
|
-
|
|
33
|
+
re(this, "mountEffect", () => {
|
|
39
34
|
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
40
35
|
});
|
|
41
36
|
this.ref = {
|
|
@@ -51,162 +46,162 @@ class Q {
|
|
|
51
46
|
return new Q();
|
|
52
47
|
}
|
|
53
48
|
static use() {
|
|
54
|
-
const e =
|
|
55
|
-
return e.shouldMount =
|
|
49
|
+
const e = Fe(Q.create).current, [n, l] = d.useState(!1);
|
|
50
|
+
return e.shouldMount = n, e.setShouldMount = l, d.useEffect(e.mountEffect, [n]), e;
|
|
56
51
|
}
|
|
57
52
|
mount() {
|
|
58
|
-
return this.mounted || (this.mounted =
|
|
53
|
+
return this.mounted || (this.mounted = He(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
59
54
|
}
|
|
60
55
|
/* Ripple API */
|
|
61
56
|
start(...e) {
|
|
62
57
|
this.mount().then(() => {
|
|
63
|
-
var
|
|
64
|
-
return (
|
|
58
|
+
var n;
|
|
59
|
+
return (n = this.ref.current) == null ? void 0 : n.start(...e);
|
|
65
60
|
});
|
|
66
61
|
}
|
|
67
62
|
stop(...e) {
|
|
68
63
|
this.mount().then(() => {
|
|
69
|
-
var
|
|
70
|
-
return (
|
|
64
|
+
var n;
|
|
65
|
+
return (n = this.ref.current) == null ? void 0 : n.stop(...e);
|
|
71
66
|
});
|
|
72
67
|
}
|
|
73
68
|
pulsate(...e) {
|
|
74
69
|
this.mount().then(() => {
|
|
75
|
-
var
|
|
76
|
-
return (
|
|
70
|
+
var n;
|
|
71
|
+
return (n = this.ref.current) == null ? void 0 : n.pulsate(...e);
|
|
77
72
|
});
|
|
78
73
|
}
|
|
79
74
|
}
|
|
80
|
-
function
|
|
75
|
+
function qe() {
|
|
81
76
|
return Q.use();
|
|
82
77
|
}
|
|
83
|
-
function
|
|
78
|
+
function He() {
|
|
84
79
|
let o, e;
|
|
85
|
-
const
|
|
86
|
-
o =
|
|
80
|
+
const n = new Promise((l, i) => {
|
|
81
|
+
o = l, e = i;
|
|
87
82
|
});
|
|
88
|
-
return
|
|
83
|
+
return n.resolve = o, n.reject = e, n;
|
|
89
84
|
}
|
|
90
85
|
function oe(o, e) {
|
|
91
|
-
var
|
|
92
|
-
return e && W(
|
|
93
|
-
},
|
|
94
|
-
return o &&
|
|
86
|
+
var n = function(s) {
|
|
87
|
+
return e && W(s) ? e(s) : s;
|
|
88
|
+
}, l = /* @__PURE__ */ Object.create(null);
|
|
89
|
+
return o && Be.map(o, function(i) {
|
|
95
90
|
return i;
|
|
96
91
|
}).forEach(function(i) {
|
|
97
|
-
|
|
98
|
-
}),
|
|
92
|
+
l[i.key] = n(i);
|
|
93
|
+
}), l;
|
|
99
94
|
}
|
|
100
|
-
function
|
|
95
|
+
function We(o, e) {
|
|
101
96
|
o = o || {}, e = e || {};
|
|
102
|
-
function
|
|
97
|
+
function n(h) {
|
|
103
98
|
return h in e ? e[h] : o[h];
|
|
104
99
|
}
|
|
105
|
-
var
|
|
106
|
-
for (var
|
|
107
|
-
|
|
108
|
-
var
|
|
100
|
+
var l = /* @__PURE__ */ Object.create(null), i = [];
|
|
101
|
+
for (var s in o)
|
|
102
|
+
s in e ? i.length && (l[s] = i, i = []) : i.push(s);
|
|
103
|
+
var r, u = {};
|
|
109
104
|
for (var c in e) {
|
|
110
|
-
if (
|
|
111
|
-
for (
|
|
112
|
-
var
|
|
113
|
-
l[
|
|
105
|
+
if (l[c])
|
|
106
|
+
for (r = 0; r < l[c].length; r++) {
|
|
107
|
+
var f = l[c][r];
|
|
108
|
+
u[l[c][r]] = n(f);
|
|
114
109
|
}
|
|
115
|
-
|
|
110
|
+
u[c] = n(c);
|
|
116
111
|
}
|
|
117
|
-
for (
|
|
118
|
-
|
|
119
|
-
return
|
|
112
|
+
for (r = 0; r < i.length; r++)
|
|
113
|
+
u[i[r]] = n(i[r]);
|
|
114
|
+
return u;
|
|
120
115
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
116
|
+
function k(o, e, n) {
|
|
117
|
+
return n[e] != null ? n[e] : o.props[e];
|
|
123
118
|
}
|
|
124
|
-
function
|
|
125
|
-
return oe(o.children, function(
|
|
126
|
-
return G(
|
|
127
|
-
onExited: e.bind(null,
|
|
119
|
+
function Ge(o, e) {
|
|
120
|
+
return oe(o.children, function(n) {
|
|
121
|
+
return G(n, {
|
|
122
|
+
onExited: e.bind(null, n),
|
|
128
123
|
in: !0,
|
|
129
|
-
appear:
|
|
130
|
-
enter:
|
|
131
|
-
exit:
|
|
124
|
+
appear: k(n, "appear", o),
|
|
125
|
+
enter: k(n, "enter", o),
|
|
126
|
+
exit: k(n, "exit", o)
|
|
132
127
|
});
|
|
133
128
|
});
|
|
134
129
|
}
|
|
135
|
-
function
|
|
136
|
-
var
|
|
137
|
-
return Object.keys(i).forEach(function(
|
|
138
|
-
var
|
|
139
|
-
if (W(
|
|
140
|
-
var
|
|
141
|
-
c && (!
|
|
142
|
-
onExited:
|
|
130
|
+
function Je(o, e, n) {
|
|
131
|
+
var l = oe(o.children), i = We(e, l);
|
|
132
|
+
return Object.keys(i).forEach(function(s) {
|
|
133
|
+
var r = i[s];
|
|
134
|
+
if (W(r)) {
|
|
135
|
+
var u = s in e, c = s in l, f = e[s], h = W(f) && !f.props.in;
|
|
136
|
+
c && (!u || h) ? i[s] = G(r, {
|
|
137
|
+
onExited: n.bind(null, r),
|
|
143
138
|
in: !0,
|
|
144
|
-
exit:
|
|
145
|
-
enter:
|
|
146
|
-
}) : !c &&
|
|
139
|
+
exit: k(r, "exit", o),
|
|
140
|
+
enter: k(r, "enter", o)
|
|
141
|
+
}) : !c && u && !h ? i[s] = G(r, {
|
|
147
142
|
in: !1
|
|
148
|
-
}) : c &&
|
|
149
|
-
onExited:
|
|
150
|
-
in:
|
|
151
|
-
exit:
|
|
152
|
-
enter:
|
|
143
|
+
}) : c && u && W(f) && (i[s] = G(r, {
|
|
144
|
+
onExited: n.bind(null, r),
|
|
145
|
+
in: f.props.in,
|
|
146
|
+
exit: k(r, "exit", o),
|
|
147
|
+
enter: k(r, "enter", o)
|
|
153
148
|
}));
|
|
154
149
|
}
|
|
155
150
|
}), i;
|
|
156
151
|
}
|
|
157
|
-
var
|
|
152
|
+
var Qe = Object.values || function(o) {
|
|
158
153
|
return Object.keys(o).map(function(e) {
|
|
159
154
|
return o[e];
|
|
160
155
|
});
|
|
161
|
-
},
|
|
156
|
+
}, Ze = {
|
|
162
157
|
component: "div",
|
|
163
158
|
childFactory: function(e) {
|
|
164
159
|
return e;
|
|
165
160
|
}
|
|
166
161
|
}, ie = /* @__PURE__ */ function(o) {
|
|
167
|
-
|
|
168
|
-
function e(
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
var
|
|
172
|
-
return
|
|
162
|
+
je(e, o);
|
|
163
|
+
function e(l, i) {
|
|
164
|
+
var s;
|
|
165
|
+
s = o.call(this, l, i) || this;
|
|
166
|
+
var r = s.handleExited.bind(Ae(s));
|
|
167
|
+
return s.state = {
|
|
173
168
|
contextValue: {
|
|
174
169
|
isMounting: !0
|
|
175
170
|
},
|
|
176
|
-
handleExited:
|
|
171
|
+
handleExited: r,
|
|
177
172
|
firstRender: !0
|
|
178
|
-
},
|
|
173
|
+
}, s;
|
|
179
174
|
}
|
|
180
|
-
var
|
|
181
|
-
return
|
|
175
|
+
var n = e.prototype;
|
|
176
|
+
return n.componentDidMount = function() {
|
|
182
177
|
this.mounted = !0, this.setState({
|
|
183
178
|
contextValue: {
|
|
184
179
|
isMounting: !1
|
|
185
180
|
}
|
|
186
181
|
});
|
|
187
|
-
},
|
|
182
|
+
}, n.componentWillUnmount = function() {
|
|
188
183
|
this.mounted = !1;
|
|
189
|
-
}, e.getDerivedStateFromProps = function(i,
|
|
190
|
-
var
|
|
184
|
+
}, e.getDerivedStateFromProps = function(i, s) {
|
|
185
|
+
var r = s.children, u = s.handleExited, c = s.firstRender;
|
|
191
186
|
return {
|
|
192
|
-
children: c ?
|
|
187
|
+
children: c ? Ge(i, u) : Je(i, r, u),
|
|
193
188
|
firstRender: !1
|
|
194
189
|
};
|
|
195
|
-
},
|
|
196
|
-
var
|
|
197
|
-
i.key in
|
|
198
|
-
var c =
|
|
190
|
+
}, n.handleExited = function(i, s) {
|
|
191
|
+
var r = oe(this.props.children);
|
|
192
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(u) {
|
|
193
|
+
var c = _e({}, u.children);
|
|
199
194
|
return delete c[i.key], {
|
|
200
195
|
children: c
|
|
201
196
|
};
|
|
202
197
|
}));
|
|
203
|
-
},
|
|
204
|
-
var i = this.props,
|
|
205
|
-
return delete
|
|
198
|
+
}, n.render = function() {
|
|
199
|
+
var i = this.props, s = i.component, r = i.childFactory, u = ze(i, ["component", "childFactory"]), c = this.state.contextValue, f = Qe(this.state.children).map(r);
|
|
200
|
+
return delete u.appear, delete u.enter, delete u.exit, s === null ? /* @__PURE__ */ H.createElement(ae.Provider, {
|
|
206
201
|
value: c
|
|
207
|
-
},
|
|
202
|
+
}, f) : /* @__PURE__ */ H.createElement(ae.Provider, {
|
|
208
203
|
value: c
|
|
209
|
-
}, /* @__PURE__ */ H.createElement(
|
|
204
|
+
}, /* @__PURE__ */ H.createElement(s, u, f));
|
|
210
205
|
}, e;
|
|
211
206
|
}(H.Component);
|
|
212
207
|
ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -217,7 +212,7 @@ ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
217
212
|
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
218
213
|
* borks your css styles.
|
|
219
214
|
*/
|
|
220
|
-
component:
|
|
215
|
+
component: t.any,
|
|
221
216
|
/**
|
|
222
217
|
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
223
218
|
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
@@ -231,25 +226,25 @@ ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
231
226
|
* the transition child as you change its content, this will cause
|
|
232
227
|
* `TransitionGroup` to transition the child out and back in.
|
|
233
228
|
*/
|
|
234
|
-
children:
|
|
229
|
+
children: t.node,
|
|
235
230
|
/**
|
|
236
231
|
* A convenience prop that enables or disables appear animations
|
|
237
232
|
* for all children. Note that specifying this will override any defaults set
|
|
238
233
|
* on individual children Transitions.
|
|
239
234
|
*/
|
|
240
|
-
appear:
|
|
235
|
+
appear: t.bool,
|
|
241
236
|
/**
|
|
242
237
|
* A convenience prop that enables or disables enter animations
|
|
243
238
|
* for all children. Note that specifying this will override any defaults set
|
|
244
239
|
* on individual children Transitions.
|
|
245
240
|
*/
|
|
246
|
-
enter:
|
|
241
|
+
enter: t.bool,
|
|
247
242
|
/**
|
|
248
243
|
* A convenience prop that enables or disables exit animations
|
|
249
244
|
* for all children. Note that specifying this will override any defaults set
|
|
250
245
|
* on individual children Transitions.
|
|
251
246
|
*/
|
|
252
|
-
exit:
|
|
247
|
+
exit: t.bool,
|
|
253
248
|
/**
|
|
254
249
|
* You may need to apply reactive updates to a child as it is exiting.
|
|
255
250
|
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
@@ -260,77 +255,77 @@ ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
260
255
|
*
|
|
261
256
|
* @type Function(child: ReactElement) -> ReactElement
|
|
262
257
|
*/
|
|
263
|
-
childFactory:
|
|
258
|
+
childFactory: t.func
|
|
264
259
|
} : {};
|
|
265
|
-
ie.defaultProps =
|
|
266
|
-
function
|
|
260
|
+
ie.defaultProps = Ze;
|
|
261
|
+
function fe(o) {
|
|
267
262
|
const {
|
|
268
263
|
className: e,
|
|
269
|
-
classes:
|
|
270
|
-
pulsate:
|
|
264
|
+
classes: n,
|
|
265
|
+
pulsate: l = !1,
|
|
271
266
|
rippleX: i,
|
|
272
|
-
rippleY:
|
|
273
|
-
rippleSize:
|
|
274
|
-
in:
|
|
267
|
+
rippleY: s,
|
|
268
|
+
rippleSize: r,
|
|
269
|
+
in: u,
|
|
275
270
|
onExited: c,
|
|
276
|
-
timeout:
|
|
277
|
-
} = o, [h, m] =
|
|
278
|
-
width:
|
|
279
|
-
height:
|
|
280
|
-
top: -(
|
|
281
|
-
left: -(
|
|
282
|
-
}, g = E(
|
|
283
|
-
return !
|
|
284
|
-
if (!
|
|
285
|
-
const
|
|
271
|
+
timeout: f
|
|
272
|
+
} = o, [h, m] = d.useState(!1), M = E(e, n.ripple, n.rippleVisible, l && n.ripplePulsate), N = {
|
|
273
|
+
width: r,
|
|
274
|
+
height: r,
|
|
275
|
+
top: -(r / 2) + s,
|
|
276
|
+
left: -(r / 2) + i
|
|
277
|
+
}, g = E(n.child, h && n.childLeaving, l && n.childPulsate);
|
|
278
|
+
return !u && !h && m(!0), d.useEffect(() => {
|
|
279
|
+
if (!u && c != null) {
|
|
280
|
+
const v = setTimeout(c, f);
|
|
286
281
|
return () => {
|
|
287
|
-
clearTimeout(
|
|
282
|
+
clearTimeout(v);
|
|
288
283
|
};
|
|
289
284
|
}
|
|
290
|
-
}, [c,
|
|
291
|
-
className:
|
|
292
|
-
style:
|
|
293
|
-
children: /* @__PURE__ */
|
|
285
|
+
}, [c, u, f]), /* @__PURE__ */ I("span", {
|
|
286
|
+
className: M,
|
|
287
|
+
style: N,
|
|
288
|
+
children: /* @__PURE__ */ I("span", {
|
|
294
289
|
className: g
|
|
295
290
|
})
|
|
296
291
|
});
|
|
297
292
|
}
|
|
298
|
-
process.env.NODE_ENV !== "production" && (
|
|
293
|
+
process.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
299
294
|
/**
|
|
300
295
|
* Override or extend the styles applied to the component.
|
|
301
296
|
*/
|
|
302
|
-
classes:
|
|
303
|
-
className:
|
|
297
|
+
classes: t.object.isRequired,
|
|
298
|
+
className: t.string,
|
|
304
299
|
/**
|
|
305
300
|
* @ignore - injected from TransitionGroup
|
|
306
301
|
*/
|
|
307
|
-
in:
|
|
302
|
+
in: t.bool,
|
|
308
303
|
/**
|
|
309
304
|
* @ignore - injected from TransitionGroup
|
|
310
305
|
*/
|
|
311
|
-
onExited:
|
|
306
|
+
onExited: t.func,
|
|
312
307
|
/**
|
|
313
308
|
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
314
309
|
*/
|
|
315
|
-
pulsate:
|
|
310
|
+
pulsate: t.bool,
|
|
316
311
|
/**
|
|
317
312
|
* Diameter of the ripple.
|
|
318
313
|
*/
|
|
319
|
-
rippleSize:
|
|
314
|
+
rippleSize: t.number,
|
|
320
315
|
/**
|
|
321
316
|
* Horizontal position of the ripple center.
|
|
322
317
|
*/
|
|
323
|
-
rippleX:
|
|
318
|
+
rippleX: t.number,
|
|
324
319
|
/**
|
|
325
320
|
* Vertical position of the ripple center.
|
|
326
321
|
*/
|
|
327
|
-
rippleY:
|
|
322
|
+
rippleY: t.number,
|
|
328
323
|
/**
|
|
329
324
|
* exit delay
|
|
330
325
|
*/
|
|
331
|
-
timeout:
|
|
326
|
+
timeout: t.number.isRequired
|
|
332
327
|
});
|
|
333
|
-
const y =
|
|
328
|
+
const y = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ee = 550, et = 80, tt = te`
|
|
334
329
|
0% {
|
|
335
330
|
transform: scale(0);
|
|
336
331
|
opacity: 0.1;
|
|
@@ -340,7 +335,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
340
335
|
transform: scale(1);
|
|
341
336
|
opacity: 0.3;
|
|
342
337
|
}
|
|
343
|
-
`,
|
|
338
|
+
`, nt = te`
|
|
344
339
|
0% {
|
|
345
340
|
opacity: 1;
|
|
346
341
|
}
|
|
@@ -348,7 +343,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
348
343
|
100% {
|
|
349
344
|
opacity: 0;
|
|
350
345
|
}
|
|
351
|
-
`,
|
|
346
|
+
`, ot = te`
|
|
352
347
|
0% {
|
|
353
348
|
transform: scale(1);
|
|
354
349
|
}
|
|
@@ -360,7 +355,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
360
355
|
100% {
|
|
361
356
|
transform: scale(1);
|
|
362
357
|
}
|
|
363
|
-
`,
|
|
358
|
+
`, it = ne("span", {
|
|
364
359
|
name: "MuiTouchRipple",
|
|
365
360
|
slot: "Root"
|
|
366
361
|
})({
|
|
@@ -373,7 +368,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
373
368
|
bottom: 0,
|
|
374
369
|
left: 0,
|
|
375
370
|
borderRadius: "inherit"
|
|
376
|
-
}),
|
|
371
|
+
}), st = ne(fe, {
|
|
377
372
|
name: "MuiTouchRipple",
|
|
378
373
|
slot: "Ripple"
|
|
379
374
|
})`
|
|
@@ -383,7 +378,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
383
378
|
&.${y.rippleVisible} {
|
|
384
379
|
opacity: 0.3;
|
|
385
380
|
transform: scale(1);
|
|
386
|
-
animation-name: ${
|
|
381
|
+
animation-name: ${tt};
|
|
387
382
|
animation-duration: ${ee}ms;
|
|
388
383
|
animation-timing-function: ${({
|
|
389
384
|
theme: o
|
|
@@ -407,7 +402,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
407
402
|
|
|
408
403
|
& .${y.childLeaving} {
|
|
409
404
|
opacity: 0;
|
|
410
|
-
animation-name: ${
|
|
405
|
+
animation-name: ${nt};
|
|
411
406
|
animation-duration: ${ee}ms;
|
|
412
407
|
animation-timing-function: ${({
|
|
413
408
|
theme: o
|
|
@@ -419,7 +414,7 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
419
414
|
/* @noflip */
|
|
420
415
|
left: 0px;
|
|
421
416
|
top: 0;
|
|
422
|
-
animation-name: ${
|
|
417
|
+
animation-name: ${ot};
|
|
423
418
|
animation-duration: 2500ms;
|
|
424
419
|
animation-timing-function: ${({
|
|
425
420
|
theme: o
|
|
@@ -427,151 +422,151 @@ const y = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
427
422
|
animation-iteration-count: infinite;
|
|
428
423
|
animation-delay: 200ms;
|
|
429
424
|
}
|
|
430
|
-
`,
|
|
431
|
-
const
|
|
425
|
+
`, de = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
426
|
+
const l = pe({
|
|
432
427
|
props: e,
|
|
433
428
|
name: "MuiTouchRipple"
|
|
434
429
|
}), {
|
|
435
430
|
center: i = !1,
|
|
436
|
-
classes:
|
|
437
|
-
className:
|
|
438
|
-
...
|
|
439
|
-
} =
|
|
440
|
-
|
|
431
|
+
classes: s = {},
|
|
432
|
+
className: r,
|
|
433
|
+
...u
|
|
434
|
+
} = l, [c, f] = d.useState([]), h = d.useRef(0), m = d.useRef(null);
|
|
435
|
+
d.useEffect(() => {
|
|
441
436
|
m.current && (m.current(), m.current = null);
|
|
442
437
|
}, [c]);
|
|
443
|
-
const
|
|
438
|
+
const M = d.useRef(!1), N = Ie(), g = d.useRef(null), v = d.useRef(null), x = d.useCallback((p) => {
|
|
444
439
|
const {
|
|
445
|
-
pulsate:
|
|
446
|
-
rippleX:
|
|
440
|
+
pulsate: T,
|
|
441
|
+
rippleX: R,
|
|
447
442
|
rippleY: j,
|
|
448
443
|
rippleSize: B,
|
|
449
444
|
cb: U
|
|
450
445
|
} = p;
|
|
451
|
-
|
|
446
|
+
f((C) => [...C, /* @__PURE__ */ I(st, {
|
|
452
447
|
classes: {
|
|
453
|
-
ripple: E(
|
|
454
|
-
rippleVisible: E(
|
|
455
|
-
ripplePulsate: E(
|
|
456
|
-
child: E(
|
|
457
|
-
childLeaving: E(
|
|
458
|
-
childPulsate: E(
|
|
448
|
+
ripple: E(s.ripple, y.ripple),
|
|
449
|
+
rippleVisible: E(s.rippleVisible, y.rippleVisible),
|
|
450
|
+
ripplePulsate: E(s.ripplePulsate, y.ripplePulsate),
|
|
451
|
+
child: E(s.child, y.child),
|
|
452
|
+
childLeaving: E(s.childLeaving, y.childLeaving),
|
|
453
|
+
childPulsate: E(s.childPulsate, y.childPulsate)
|
|
459
454
|
},
|
|
460
455
|
timeout: ee,
|
|
461
|
-
pulsate:
|
|
462
|
-
rippleX:
|
|
456
|
+
pulsate: T,
|
|
457
|
+
rippleX: R,
|
|
463
458
|
rippleY: j,
|
|
464
459
|
rippleSize: B
|
|
465
460
|
}, h.current)]), h.current += 1, m.current = U;
|
|
466
|
-
}, [
|
|
461
|
+
}, [s]), O = d.useCallback((p = {}, T = {}, R = () => {
|
|
467
462
|
}) => {
|
|
468
463
|
const {
|
|
469
464
|
pulsate: j = !1,
|
|
470
|
-
center: B = i ||
|
|
465
|
+
center: B = i || T.pulsate,
|
|
471
466
|
fakeElement: U = !1
|
|
472
467
|
// For test purposes
|
|
473
|
-
} =
|
|
474
|
-
if ((p == null ? void 0 : p.type) === "mousedown" &&
|
|
475
|
-
|
|
468
|
+
} = T;
|
|
469
|
+
if ((p == null ? void 0 : p.type) === "mousedown" && M.current) {
|
|
470
|
+
M.current = !1;
|
|
476
471
|
return;
|
|
477
472
|
}
|
|
478
|
-
(p == null ? void 0 : p.type) === "touchstart" && (
|
|
479
|
-
const
|
|
473
|
+
(p == null ? void 0 : p.type) === "touchstart" && (M.current = !0);
|
|
474
|
+
const C = U ? null : v.current, V = C ? C.getBoundingClientRect() : {
|
|
480
475
|
width: 0,
|
|
481
476
|
height: 0,
|
|
482
477
|
left: 0,
|
|
483
478
|
top: 0
|
|
484
479
|
};
|
|
485
|
-
let
|
|
480
|
+
let w, P, S;
|
|
486
481
|
if (B || p === void 0 || p.clientX === 0 && p.clientY === 0 || !p.clientX && !p.touches)
|
|
487
|
-
|
|
482
|
+
w = Math.round(V.width / 2), P = Math.round(V.height / 2);
|
|
488
483
|
else {
|
|
489
484
|
const {
|
|
490
|
-
clientX:
|
|
485
|
+
clientX: z,
|
|
491
486
|
clientY: L
|
|
492
487
|
} = p.touches && p.touches.length > 0 ? p.touches[0] : p;
|
|
493
|
-
|
|
488
|
+
w = Math.round(z - V.left), P = Math.round(L - V.top);
|
|
494
489
|
}
|
|
495
490
|
if (B)
|
|
496
491
|
S = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), S % 2 === 0 && (S += 1);
|
|
497
492
|
else {
|
|
498
|
-
const
|
|
499
|
-
S = Math.sqrt(
|
|
493
|
+
const z = Math.max(Math.abs((C ? C.clientWidth : 0) - w), w) * 2 + 2, L = Math.max(Math.abs((C ? C.clientHeight : 0) - P), P) * 2 + 2;
|
|
494
|
+
S = Math.sqrt(z ** 2 + L ** 2);
|
|
500
495
|
}
|
|
501
496
|
p != null && p.touches ? g.current === null && (g.current = () => {
|
|
502
497
|
x({
|
|
503
498
|
pulsate: j,
|
|
504
|
-
rippleX:
|
|
505
|
-
rippleY:
|
|
499
|
+
rippleX: w,
|
|
500
|
+
rippleY: P,
|
|
506
501
|
rippleSize: S,
|
|
507
|
-
cb:
|
|
502
|
+
cb: R
|
|
508
503
|
});
|
|
509
|
-
},
|
|
504
|
+
}, N.start(et, () => {
|
|
510
505
|
g.current && (g.current(), g.current = null);
|
|
511
506
|
})) : x({
|
|
512
507
|
pulsate: j,
|
|
513
|
-
rippleX:
|
|
514
|
-
rippleY:
|
|
508
|
+
rippleX: w,
|
|
509
|
+
rippleY: P,
|
|
515
510
|
rippleSize: S,
|
|
516
|
-
cb:
|
|
511
|
+
cb: R
|
|
517
512
|
});
|
|
518
|
-
}, [i, x,
|
|
519
|
-
|
|
513
|
+
}, [i, x, N]), Y = d.useCallback(() => {
|
|
514
|
+
O({}, {
|
|
520
515
|
pulsate: !0
|
|
521
516
|
});
|
|
522
|
-
}, [
|
|
523
|
-
if (
|
|
524
|
-
g.current(), g.current = null,
|
|
525
|
-
|
|
517
|
+
}, [O]), F = d.useCallback((p, T) => {
|
|
518
|
+
if (N.clear(), (p == null ? void 0 : p.type) === "touchend" && g.current) {
|
|
519
|
+
g.current(), g.current = null, N.start(0, () => {
|
|
520
|
+
F(p, T);
|
|
526
521
|
});
|
|
527
522
|
return;
|
|
528
523
|
}
|
|
529
|
-
g.current = null,
|
|
530
|
-
}, [
|
|
531
|
-
return
|
|
524
|
+
g.current = null, f((R) => R.length > 0 ? R.slice(1) : R), m.current = T;
|
|
525
|
+
}, [N]);
|
|
526
|
+
return d.useImperativeHandle(n, () => ({
|
|
532
527
|
pulsate: Y,
|
|
533
|
-
start:
|
|
534
|
-
stop:
|
|
535
|
-
}), [Y,
|
|
536
|
-
className: E(y.root,
|
|
537
|
-
ref:
|
|
538
|
-
...
|
|
539
|
-
children: /* @__PURE__ */
|
|
528
|
+
start: O,
|
|
529
|
+
stop: F
|
|
530
|
+
}), [Y, O, F]), /* @__PURE__ */ I(it, {
|
|
531
|
+
className: E(y.root, s.root, r),
|
|
532
|
+
ref: v,
|
|
533
|
+
...u,
|
|
534
|
+
children: /* @__PURE__ */ I(ie, {
|
|
540
535
|
component: null,
|
|
541
536
|
exit: !0,
|
|
542
537
|
children: c
|
|
543
538
|
})
|
|
544
539
|
});
|
|
545
540
|
});
|
|
546
|
-
process.env.NODE_ENV !== "production" && (
|
|
541
|
+
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
547
542
|
/**
|
|
548
543
|
* If `true`, the ripple starts at the center of the component
|
|
549
544
|
* rather than at the point of interaction.
|
|
550
545
|
*/
|
|
551
|
-
center:
|
|
546
|
+
center: t.bool,
|
|
552
547
|
/**
|
|
553
548
|
* Override or extend the styles applied to the component.
|
|
554
549
|
*/
|
|
555
|
-
classes:
|
|
550
|
+
classes: t.object,
|
|
556
551
|
/**
|
|
557
552
|
* @ignore
|
|
558
553
|
*/
|
|
559
|
-
className:
|
|
554
|
+
className: t.string
|
|
560
555
|
});
|
|
561
|
-
function
|
|
562
|
-
return
|
|
556
|
+
function rt(o) {
|
|
557
|
+
return Le("MuiButtonBase", o);
|
|
563
558
|
}
|
|
564
|
-
const
|
|
559
|
+
const at = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), lt = (o) => {
|
|
565
560
|
const {
|
|
566
561
|
disabled: e,
|
|
567
|
-
focusVisible:
|
|
568
|
-
focusVisibleClassName:
|
|
562
|
+
focusVisible: n,
|
|
563
|
+
focusVisibleClassName: l,
|
|
569
564
|
classes: i
|
|
570
|
-
} = o,
|
|
571
|
-
root: ["root", e && "disabled",
|
|
572
|
-
},
|
|
573
|
-
return
|
|
574
|
-
},
|
|
565
|
+
} = o, r = $e({
|
|
566
|
+
root: ["root", e && "disabled", n && "focusVisible"]
|
|
567
|
+
}, rt, i);
|
|
568
|
+
return n && l && (r.root += ` ${l}`), r;
|
|
569
|
+
}, ut = ne("button", {
|
|
575
570
|
name: "MuiButtonBase",
|
|
576
571
|
slot: "Root",
|
|
577
572
|
overridesResolver: (o, e) => e.root
|
|
@@ -606,7 +601,7 @@ const lt = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ct = (o) =
|
|
|
606
601
|
borderStyle: "none"
|
|
607
602
|
// Remove Firefox dotted outline.
|
|
608
603
|
},
|
|
609
|
-
[`&.${
|
|
604
|
+
[`&.${at.disabled}`]: {
|
|
610
605
|
pointerEvents: "none",
|
|
611
606
|
// Disable link interactions
|
|
612
607
|
cursor: "default"
|
|
@@ -614,117 +609,117 @@ const lt = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), ct = (o) =
|
|
|
614
609
|
"@media print": {
|
|
615
610
|
colorAdjust: "exact"
|
|
616
611
|
}
|
|
617
|
-
}),
|
|
618
|
-
const
|
|
612
|
+
}), ct = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
613
|
+
const l = pe({
|
|
619
614
|
props: e,
|
|
620
615
|
name: "MuiButtonBase"
|
|
621
616
|
}), {
|
|
622
617
|
action: i,
|
|
623
|
-
centerRipple:
|
|
624
|
-
children:
|
|
625
|
-
className:
|
|
618
|
+
centerRipple: s = !1,
|
|
619
|
+
children: r,
|
|
620
|
+
className: u,
|
|
626
621
|
component: c = "button",
|
|
627
|
-
disabled:
|
|
622
|
+
disabled: f = !1,
|
|
628
623
|
disableRipple: h = !1,
|
|
629
624
|
disableTouchRipple: m = !1,
|
|
630
|
-
focusRipple:
|
|
631
|
-
focusVisibleClassName:
|
|
625
|
+
focusRipple: M = !1,
|
|
626
|
+
focusVisibleClassName: N,
|
|
632
627
|
LinkComponent: g = "a",
|
|
633
|
-
onBlur:
|
|
628
|
+
onBlur: v,
|
|
634
629
|
onClick: x,
|
|
635
|
-
onContextMenu:
|
|
630
|
+
onContextMenu: O,
|
|
636
631
|
onDragLeave: Y,
|
|
637
|
-
onFocus:
|
|
632
|
+
onFocus: F,
|
|
638
633
|
onFocusVisible: p,
|
|
639
|
-
onKeyDown:
|
|
640
|
-
onKeyUp:
|
|
634
|
+
onKeyDown: T,
|
|
635
|
+
onKeyUp: R,
|
|
641
636
|
onMouseDown: j,
|
|
642
637
|
onMouseLeave: B,
|
|
643
638
|
onMouseUp: U,
|
|
644
|
-
onTouchEnd:
|
|
639
|
+
onTouchEnd: C,
|
|
645
640
|
onTouchMove: V,
|
|
646
|
-
onTouchStart:
|
|
647
|
-
tabIndex:
|
|
641
|
+
onTouchStart: w,
|
|
642
|
+
tabIndex: P = 0,
|
|
648
643
|
TouchRippleProps: S,
|
|
649
|
-
touchRippleRef:
|
|
644
|
+
touchRippleRef: z,
|
|
650
645
|
type: L,
|
|
651
|
-
...
|
|
652
|
-
} =
|
|
653
|
-
|
|
646
|
+
..._
|
|
647
|
+
} = l, A = d.useRef(null), b = qe(), he = le(b.ref, z), [$, K] = d.useState(!1);
|
|
648
|
+
f && $ && K(!1), d.useImperativeHandle(i, () => ({
|
|
654
649
|
focusVisible: () => {
|
|
655
650
|
K(!0), A.current.focus();
|
|
656
651
|
}
|
|
657
652
|
}), []);
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
$ &&
|
|
661
|
-
}, [h,
|
|
662
|
-
const
|
|
663
|
-
$ &&
|
|
664
|
-
}, m),
|
|
665
|
-
|
|
666
|
-
}, !1),
|
|
667
|
-
A.current || (A.current =
|
|
653
|
+
const me = b.shouldMount && !h && !f;
|
|
654
|
+
d.useEffect(() => {
|
|
655
|
+
$ && M && !h && b.pulsate();
|
|
656
|
+
}, [h, M, $, b]);
|
|
657
|
+
const be = D(b, "start", j, m), ge = D(b, "stop", O, m), ye = D(b, "stop", Y, m), Me = D(b, "stop", U, m), Re = D(b, "stop", (a) => {
|
|
658
|
+
$ && a.preventDefault(), B && B(a);
|
|
659
|
+
}, m), Te = D(b, "start", w, m), Ce = D(b, "stop", C, m), Ee = D(b, "stop", V, m), xe = D(b, "stop", (a) => {
|
|
660
|
+
ue(a.target) || K(!1), v && v(a);
|
|
661
|
+
}, !1), Pe = J((a) => {
|
|
662
|
+
A.current || (A.current = a.currentTarget), ue(a.target) && (K(!0), p && p(a)), F && F(a);
|
|
668
663
|
}), Z = () => {
|
|
669
|
-
const
|
|
670
|
-
return c && c !== "button" && !(
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
b.start(
|
|
674
|
-
}),
|
|
675
|
-
}),
|
|
676
|
-
|
|
677
|
-
b.pulsate(
|
|
678
|
-
}),
|
|
664
|
+
const a = A.current;
|
|
665
|
+
return c && c !== "button" && !(a.tagName === "A" && a.href);
|
|
666
|
+
}, De = J((a) => {
|
|
667
|
+
M && !a.repeat && $ && a.key === " " && b.stop(a, () => {
|
|
668
|
+
b.start(a);
|
|
669
|
+
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), T && T(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), x && x(a));
|
|
670
|
+
}), Ne = J((a) => {
|
|
671
|
+
M && a.key === " " && $ && !a.defaultPrevented && b.stop(a, () => {
|
|
672
|
+
b.pulsate(a);
|
|
673
|
+
}), R && R(a), x && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && x(a);
|
|
679
674
|
});
|
|
680
675
|
let q = c;
|
|
681
|
-
q === "button" && (
|
|
676
|
+
q === "button" && (_.href || _.to) && (q = g);
|
|
682
677
|
const X = {};
|
|
683
|
-
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled =
|
|
684
|
-
const
|
|
685
|
-
...
|
|
686
|
-
centerRipple:
|
|
678
|
+
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
679
|
+
const Ve = le(n, A), se = {
|
|
680
|
+
...l,
|
|
681
|
+
centerRipple: s,
|
|
687
682
|
component: c,
|
|
688
|
-
disabled:
|
|
683
|
+
disabled: f,
|
|
689
684
|
disableRipple: h,
|
|
690
685
|
disableTouchRipple: m,
|
|
691
|
-
focusRipple:
|
|
692
|
-
tabIndex:
|
|
686
|
+
focusRipple: M,
|
|
687
|
+
tabIndex: P,
|
|
693
688
|
focusVisible: $
|
|
694
|
-
}, we =
|
|
695
|
-
return /* @__PURE__ */ ke(
|
|
689
|
+
}, we = lt(se);
|
|
690
|
+
return /* @__PURE__ */ ke(ut, {
|
|
696
691
|
as: q,
|
|
697
|
-
className: E(we.root,
|
|
698
|
-
ownerState:
|
|
699
|
-
onBlur:
|
|
692
|
+
className: E(we.root, u),
|
|
693
|
+
ownerState: se,
|
|
694
|
+
onBlur: xe,
|
|
700
695
|
onClick: x,
|
|
701
|
-
onContextMenu:
|
|
702
|
-
onFocus:
|
|
703
|
-
onKeyDown:
|
|
704
|
-
onKeyUp:
|
|
705
|
-
onMouseDown:
|
|
706
|
-
onMouseLeave:
|
|
707
|
-
onMouseUp:
|
|
708
|
-
onDragLeave:
|
|
709
|
-
onTouchEnd:
|
|
710
|
-
onTouchMove:
|
|
711
|
-
onTouchStart:
|
|
712
|
-
ref:
|
|
713
|
-
tabIndex:
|
|
696
|
+
onContextMenu: ge,
|
|
697
|
+
onFocus: Pe,
|
|
698
|
+
onKeyDown: De,
|
|
699
|
+
onKeyUp: Ne,
|
|
700
|
+
onMouseDown: be,
|
|
701
|
+
onMouseLeave: Re,
|
|
702
|
+
onMouseUp: Me,
|
|
703
|
+
onDragLeave: ye,
|
|
704
|
+
onTouchEnd: Ce,
|
|
705
|
+
onTouchMove: Ee,
|
|
706
|
+
onTouchStart: Te,
|
|
707
|
+
ref: Ve,
|
|
708
|
+
tabIndex: f ? -1 : P,
|
|
714
709
|
type: L,
|
|
715
710
|
...X,
|
|
716
|
-
...
|
|
717
|
-
children: [
|
|
718
|
-
ref:
|
|
719
|
-
center:
|
|
711
|
+
..._,
|
|
712
|
+
children: [r, me ? /* @__PURE__ */ I(de, {
|
|
713
|
+
ref: he,
|
|
714
|
+
center: s,
|
|
720
715
|
...S
|
|
721
716
|
}) : null]
|
|
722
717
|
});
|
|
723
718
|
});
|
|
724
|
-
function
|
|
725
|
-
return J((i) => (
|
|
719
|
+
function D(o, e, n, l = !1) {
|
|
720
|
+
return J((i) => (n && n(i), l || o[e](i), !0));
|
|
726
721
|
}
|
|
727
|
-
process.env.NODE_ENV !== "production" && (
|
|
722
|
+
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
728
723
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
729
724
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
730
725
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -733,35 +728,35 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
|
733
728
|
* A ref for imperative actions.
|
|
734
729
|
* It currently only supports `focusVisible()` action.
|
|
735
730
|
*/
|
|
736
|
-
action:
|
|
731
|
+
action: Ue,
|
|
737
732
|
/**
|
|
738
733
|
* If `true`, the ripples are centered.
|
|
739
734
|
* They won't start at the cursor interaction position.
|
|
740
735
|
* @default false
|
|
741
736
|
*/
|
|
742
|
-
centerRipple:
|
|
737
|
+
centerRipple: t.bool,
|
|
743
738
|
/**
|
|
744
739
|
* The content of the component.
|
|
745
740
|
*/
|
|
746
|
-
children:
|
|
741
|
+
children: t.node,
|
|
747
742
|
/**
|
|
748
743
|
* Override or extend the styles applied to the component.
|
|
749
744
|
*/
|
|
750
|
-
classes:
|
|
745
|
+
classes: t.object,
|
|
751
746
|
/**
|
|
752
747
|
* @ignore
|
|
753
748
|
*/
|
|
754
|
-
className:
|
|
749
|
+
className: t.string,
|
|
755
750
|
/**
|
|
756
751
|
* The component used for the root node.
|
|
757
752
|
* Either a string to use a HTML element or a component.
|
|
758
753
|
*/
|
|
759
|
-
component:
|
|
754
|
+
component: Ke,
|
|
760
755
|
/**
|
|
761
756
|
* If `true`, the component is disabled.
|
|
762
757
|
* @default false
|
|
763
758
|
*/
|
|
764
|
-
disabled:
|
|
759
|
+
disabled: t.bool,
|
|
765
760
|
/**
|
|
766
761
|
* If `true`, the ripple effect is disabled.
|
|
767
762
|
*
|
|
@@ -769,17 +764,17 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
|
769
764
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
770
765
|
* @default false
|
|
771
766
|
*/
|
|
772
|
-
disableRipple:
|
|
767
|
+
disableRipple: t.bool,
|
|
773
768
|
/**
|
|
774
769
|
* If `true`, the touch ripple effect is disabled.
|
|
775
770
|
* @default false
|
|
776
771
|
*/
|
|
777
|
-
disableTouchRipple:
|
|
772
|
+
disableTouchRipple: t.bool,
|
|
778
773
|
/**
|
|
779
774
|
* If `true`, the base button will have a keyboard focus ripple.
|
|
780
775
|
* @default false
|
|
781
776
|
*/
|
|
782
|
-
focusRipple:
|
|
777
|
+
focusRipple: t.bool,
|
|
783
778
|
/**
|
|
784
779
|
* This prop can help identify which element has keyboard focus.
|
|
785
780
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -788,115 +783,101 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
|
788
783
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
789
784
|
* if needed.
|
|
790
785
|
*/
|
|
791
|
-
focusVisibleClassName:
|
|
786
|
+
focusVisibleClassName: t.string,
|
|
792
787
|
/**
|
|
793
788
|
* @ignore
|
|
794
789
|
*/
|
|
795
|
-
href:
|
|
790
|
+
href: t.any,
|
|
796
791
|
/**
|
|
797
792
|
* The component used to render a link when the `href` prop is provided.
|
|
798
793
|
* @default 'a'
|
|
799
794
|
*/
|
|
800
|
-
LinkComponent:
|
|
795
|
+
LinkComponent: t.elementType,
|
|
801
796
|
/**
|
|
802
797
|
* @ignore
|
|
803
798
|
*/
|
|
804
|
-
onBlur:
|
|
799
|
+
onBlur: t.func,
|
|
805
800
|
/**
|
|
806
801
|
* @ignore
|
|
807
802
|
*/
|
|
808
|
-
onClick:
|
|
803
|
+
onClick: t.func,
|
|
809
804
|
/**
|
|
810
805
|
* @ignore
|
|
811
806
|
*/
|
|
812
|
-
onContextMenu:
|
|
807
|
+
onContextMenu: t.func,
|
|
813
808
|
/**
|
|
814
809
|
* @ignore
|
|
815
810
|
*/
|
|
816
|
-
onDragLeave:
|
|
811
|
+
onDragLeave: t.func,
|
|
817
812
|
/**
|
|
818
813
|
* @ignore
|
|
819
814
|
*/
|
|
820
|
-
onFocus:
|
|
815
|
+
onFocus: t.func,
|
|
821
816
|
/**
|
|
822
817
|
* Callback fired when the component is focused with a keyboard.
|
|
823
818
|
* We trigger a `onFocus` callback too.
|
|
824
819
|
*/
|
|
825
|
-
onFocusVisible:
|
|
820
|
+
onFocusVisible: t.func,
|
|
826
821
|
/**
|
|
827
822
|
* @ignore
|
|
828
823
|
*/
|
|
829
|
-
onKeyDown:
|
|
824
|
+
onKeyDown: t.func,
|
|
830
825
|
/**
|
|
831
826
|
* @ignore
|
|
832
827
|
*/
|
|
833
|
-
onKeyUp:
|
|
828
|
+
onKeyUp: t.func,
|
|
834
829
|
/**
|
|
835
830
|
* @ignore
|
|
836
831
|
*/
|
|
837
|
-
onMouseDown:
|
|
832
|
+
onMouseDown: t.func,
|
|
838
833
|
/**
|
|
839
834
|
* @ignore
|
|
840
835
|
*/
|
|
841
|
-
onMouseLeave:
|
|
836
|
+
onMouseLeave: t.func,
|
|
842
837
|
/**
|
|
843
838
|
* @ignore
|
|
844
839
|
*/
|
|
845
|
-
onMouseUp:
|
|
840
|
+
onMouseUp: t.func,
|
|
846
841
|
/**
|
|
847
842
|
* @ignore
|
|
848
843
|
*/
|
|
849
|
-
onTouchEnd:
|
|
844
|
+
onTouchEnd: t.func,
|
|
850
845
|
/**
|
|
851
846
|
* @ignore
|
|
852
847
|
*/
|
|
853
|
-
onTouchMove:
|
|
848
|
+
onTouchMove: t.func,
|
|
854
849
|
/**
|
|
855
850
|
* @ignore
|
|
856
851
|
*/
|
|
857
|
-
onTouchStart:
|
|
852
|
+
onTouchStart: t.func,
|
|
858
853
|
/**
|
|
859
854
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
860
855
|
*/
|
|
861
|
-
sx:
|
|
856
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
862
857
|
/**
|
|
863
858
|
* @default 0
|
|
864
859
|
*/
|
|
865
|
-
tabIndex:
|
|
860
|
+
tabIndex: t.number,
|
|
866
861
|
/**
|
|
867
862
|
* Props applied to the `TouchRipple` element.
|
|
868
863
|
*/
|
|
869
|
-
TouchRippleProps:
|
|
864
|
+
TouchRippleProps: t.object,
|
|
870
865
|
/**
|
|
871
866
|
* A ref that points to the `TouchRipple` element.
|
|
872
867
|
*/
|
|
873
|
-
touchRippleRef:
|
|
874
|
-
current:
|
|
875
|
-
pulsate:
|
|
876
|
-
start:
|
|
877
|
-
stop:
|
|
868
|
+
touchRippleRef: t.oneOfType([t.func, t.shape({
|
|
869
|
+
current: t.shape({
|
|
870
|
+
pulsate: t.func.isRequired,
|
|
871
|
+
start: t.func.isRequired,
|
|
872
|
+
stop: t.func.isRequired
|
|
878
873
|
})
|
|
879
874
|
})]),
|
|
880
875
|
/**
|
|
881
876
|
* @ignore
|
|
882
877
|
*/
|
|
883
|
-
type:
|
|
878
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string])
|
|
884
879
|
});
|
|
885
|
-
function xt(o, e) {
|
|
886
|
-
function t(a, i) {
|
|
887
|
-
return /* @__PURE__ */ O(ce, {
|
|
888
|
-
"data-testid": `${e}Icon`,
|
|
889
|
-
ref: i,
|
|
890
|
-
...a,
|
|
891
|
-
children: o
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
return process.env.NODE_ENV !== "production" && (t.displayName = `${e}Icon`), t.muiName = ce.muiName, /* @__PURE__ */ f.memo(/* @__PURE__ */ f.forwardRef(t));
|
|
895
|
-
}
|
|
896
880
|
export {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
xt as c,
|
|
900
|
-
He as e,
|
|
901
|
-
Et as u
|
|
881
|
+
ct as B,
|
|
882
|
+
Ke as e
|
|
902
883
|
};
|