@clearstory/drywall-react 1.2.1 → 1.3.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/{AccordionSummary-BBzy17VA.js → AccordionSummary-C2WduOvw.js} +1 -1
- package/dist/{AdapterDayjs-DHQqsLxp.js → AdapterDayjs-BOLWylMD.js} +2 -2
- package/dist/{Alert-CwVHuUeb.js → Alert-4WYM0NA5.js} +1 -1
- package/dist/{Autocomplete-BJRGyATm.js → Autocomplete-BFrPAO1Z.js} +2 -2
- package/dist/{Breadcrumbs-fB-IPg0A.js → Breadcrumbs-BCuC1VRi.js} +1 -1
- package/dist/{Button-CGfvySfX.js → Button-D5FpepiD.js} +1 -1
- package/dist/{ButtonBase-BPJ8MSTg.js → ButtonBase-t_kdVaqI.js} +153 -146
- package/dist/{CardActionArea-Bn4UpyQS.js → CardActionArea-CJoEgqCm.js} +1 -1
- package/dist/{Checkbox-BoQfL31i.js → Checkbox-BlVkkvFG.js} +1 -1
- package/dist/{Chip-CGkjw3qR.js → Chip-Dald_f2Y.js} +1 -1
- package/dist/{Datepicker-DBHJAV8B.js → Datepicker-CqhyyHOO.js} +4 -4
- package/dist/{IconButton-DhZf0uZp.js → IconButton-CMvCM_Lp.js} +1 -1
- package/dist/{ListItemButton-C53i6rKK.js → ListItemButton-DuUhNIFe.js} +1 -1
- package/dist/{MenuItem-Dw7SGa8b.js → MenuItem-B2uAesJs.js} +1 -1
- package/dist/{Radio-i1P4YKI7.js → Radio-JRcvAFCw.js} +1 -1
- package/dist/{SelectControl-Dq4iJSPa.js → SelectControl-CPPHpibo.js} +2 -2
- package/dist/{StepButton-4b7hYvlK.js → StepButton-DSXTT103.js} +1 -1
- package/dist/{Switch-yy-QweXX.js → Switch-Cvd5G-7l.js} +1 -1
- package/dist/{SwitchBase-D0pEK_t_.js → SwitchBase-CufBsptm.js} +1 -1
- package/dist/{Tab-DWUzd7y1.js → Tab-zSeGVRiK.js} +1 -1
- package/dist/{Tabs-BwX10hQ7.js → Tabs-Cksd8YLg.js} +1 -1
- package/dist/components/AccordionSummary/index.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/AutocompleteControl/AutocompleteControl.js +3 -3
- package/dist/components/AutocompleteControl/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBase/index.d.ts +2 -0
- package/dist/components/ButtonBase/index.js +8 -0
- package/dist/components/CardActionArea/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +2 -2
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.js +3 -3
- package/dist/components/DatepickerControl/index.js +1 -1
- package/dist/components/FormSublabel/FormSublabel.js +3 -3
- package/dist/components/FormSublabel/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/InputControl/InputControl.js +3 -3
- package/dist/components/InputControl/index.js +1 -1
- package/dist/components/ListItemButton/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.js +3 -3
- package/dist/components/SelectControl/index.js +1 -1
- package/dist/components/StepButton/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/ToastContainer/useToast.js +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +354 -348
- package/dist/theme/components.js +1 -1
- package/package.json +2 -2
- /package/dist/components/{Button → ButtonBase}/ButtonBase.theme.d.ts +0 -0
- /package/dist/components/{Button → ButtonBase}/ButtonBase.theme.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import W, { isValidElement as H, cloneElement as G, Children as
|
|
3
|
-
import { P as e, c as
|
|
4
|
-
import { c as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { g as
|
|
7
|
-
import { u as
|
|
2
|
+
import W, { isValidElement as H, cloneElement as G, Children as we } from "react";
|
|
3
|
+
import { P as e, c as ce } from "./createTheme-D79OrE1w.js";
|
|
4
|
+
import { c as E } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { jsx as $, jsxs as Be } from "react/jsx-runtime";
|
|
6
|
+
import { g as pe } from "./generateUtilityClasses-CwzvHfCm.js";
|
|
7
|
+
import { u as fe } from "./DefaultPropsProvider-PBxTVeaD.js";
|
|
8
8
|
import { a as Le, u as Oe } from "./useTimeout-DRd4LBXb.js";
|
|
9
9
|
import { s as ne } from "./styled-bJ6DXD3Z.js";
|
|
10
10
|
import { _ as ke, a as je, T as ae } from "./TransitionGroupContext-DbLioz_6.js";
|
|
@@ -13,41 +13,41 @@ import { u as ue } from "./useForkRef-9kN4DArm.js";
|
|
|
13
13
|
import { u as J } from "./useEventCallback-BAQJJ3ye.js";
|
|
14
14
|
import { i as le } from "./isFocusVisible-CPZqtjv2.js";
|
|
15
15
|
import { c as Fe } from "./composeClasses-2Ou-RZJr.js";
|
|
16
|
-
import { e as
|
|
17
|
-
import { r as
|
|
16
|
+
import { e as Ue } from "./elementTypeAcceptingRef-CnEbk7Q_.js";
|
|
17
|
+
import { r as $e } from "./refType-CCckNw0a.js";
|
|
18
18
|
function ee() {
|
|
19
|
-
return ee = Object.assign ? Object.assign.bind() : function(
|
|
20
|
-
for (var
|
|
21
|
-
var o = arguments[
|
|
22
|
-
for (var a in o) ({}).hasOwnProperty.call(o, a) && (
|
|
19
|
+
return ee = Object.assign ? Object.assign.bind() : function(t) {
|
|
20
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
21
|
+
var o = arguments[n];
|
|
22
|
+
for (var a in o) ({}).hasOwnProperty.call(o, a) && (t[a] = o[a]);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return t;
|
|
25
25
|
}, ee.apply(null, arguments);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
27
|
+
function Ie(t) {
|
|
28
|
+
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29
|
+
return t;
|
|
30
30
|
}
|
|
31
|
-
function ie(
|
|
31
|
+
function ie(t, n) {
|
|
32
32
|
var o = function(r) {
|
|
33
|
-
return
|
|
33
|
+
return n && H(r) ? n(r) : r;
|
|
34
34
|
}, a = /* @__PURE__ */ Object.create(null);
|
|
35
|
-
return
|
|
35
|
+
return t && we.map(t, function(i) {
|
|
36
36
|
return i;
|
|
37
37
|
}).forEach(function(i) {
|
|
38
38
|
a[i.key] = o(i);
|
|
39
39
|
}), a;
|
|
40
40
|
}
|
|
41
|
-
function ze(
|
|
42
|
-
|
|
41
|
+
function ze(t, n) {
|
|
42
|
+
t = t || {}, n = n || {};
|
|
43
43
|
function o(h) {
|
|
44
|
-
return h in
|
|
44
|
+
return h in n ? n[h] : t[h];
|
|
45
45
|
}
|
|
46
46
|
var a = /* @__PURE__ */ Object.create(null), i = [];
|
|
47
|
-
for (var r in
|
|
48
|
-
r in
|
|
47
|
+
for (var r in t)
|
|
48
|
+
r in n ? i.length && (a[r] = i, i = []) : i.push(r);
|
|
49
49
|
var s, c = {};
|
|
50
|
-
for (var l in
|
|
50
|
+
for (var l in n) {
|
|
51
51
|
if (a[l])
|
|
52
52
|
for (s = 0; s < a[l].length; s++) {
|
|
53
53
|
var p = a[l][s];
|
|
@@ -59,57 +59,57 @@ function ze(n, t) {
|
|
|
59
59
|
c[i[s]] = o(i[s]);
|
|
60
60
|
return c;
|
|
61
61
|
}
|
|
62
|
-
function k(
|
|
63
|
-
return o[
|
|
62
|
+
function k(t, n, o) {
|
|
63
|
+
return o[n] != null ? o[n] : t.props[n];
|
|
64
64
|
}
|
|
65
|
-
function _e(
|
|
66
|
-
return ie(
|
|
65
|
+
function _e(t, n) {
|
|
66
|
+
return ie(t.children, function(o) {
|
|
67
67
|
return G(o, {
|
|
68
|
-
onExited:
|
|
68
|
+
onExited: n.bind(null, o),
|
|
69
69
|
in: !0,
|
|
70
|
-
appear: k(o, "appear",
|
|
71
|
-
enter: k(o, "enter",
|
|
72
|
-
exit: k(o, "exit",
|
|
70
|
+
appear: k(o, "appear", t),
|
|
71
|
+
enter: k(o, "enter", t),
|
|
72
|
+
exit: k(o, "exit", t)
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function Xe(
|
|
77
|
-
var a = ie(
|
|
76
|
+
function Xe(t, n, o) {
|
|
77
|
+
var a = ie(t.children), i = ze(n, a);
|
|
78
78
|
return Object.keys(i).forEach(function(r) {
|
|
79
79
|
var s = i[r];
|
|
80
80
|
if (H(s)) {
|
|
81
|
-
var c = r in
|
|
81
|
+
var c = r in n, l = r in a, p = n[r], h = H(p) && !p.props.in;
|
|
82
82
|
l && (!c || h) ? i[r] = G(s, {
|
|
83
83
|
onExited: o.bind(null, s),
|
|
84
84
|
in: !0,
|
|
85
|
-
exit: k(s, "exit",
|
|
86
|
-
enter: k(s, "enter",
|
|
85
|
+
exit: k(s, "exit", t),
|
|
86
|
+
enter: k(s, "enter", t)
|
|
87
87
|
}) : !l && c && !h ? i[r] = G(s, {
|
|
88
88
|
in: !1
|
|
89
89
|
}) : l && c && H(p) && (i[r] = G(s, {
|
|
90
90
|
onExited: o.bind(null, s),
|
|
91
91
|
in: p.props.in,
|
|
92
|
-
exit: k(s, "exit",
|
|
93
|
-
enter: k(s, "enter",
|
|
92
|
+
exit: k(s, "exit", t),
|
|
93
|
+
enter: k(s, "enter", t)
|
|
94
94
|
}));
|
|
95
95
|
}
|
|
96
96
|
}), i;
|
|
97
97
|
}
|
|
98
|
-
var Ye = Object.values || function(
|
|
99
|
-
return Object.keys(
|
|
100
|
-
return n
|
|
98
|
+
var Ye = Object.values || function(t) {
|
|
99
|
+
return Object.keys(t).map(function(n) {
|
|
100
|
+
return t[n];
|
|
101
101
|
});
|
|
102
102
|
}, Ae = {
|
|
103
103
|
component: "div",
|
|
104
|
-
childFactory: function(
|
|
105
|
-
return
|
|
104
|
+
childFactory: function(n) {
|
|
105
|
+
return n;
|
|
106
106
|
}
|
|
107
|
-
}, re = /* @__PURE__ */ (function(
|
|
108
|
-
ke(
|
|
109
|
-
function
|
|
107
|
+
}, re = /* @__PURE__ */ (function(t) {
|
|
108
|
+
ke(n, t);
|
|
109
|
+
function n(a, i) {
|
|
110
110
|
var r;
|
|
111
|
-
r =
|
|
112
|
-
var s = r.handleExited.bind(
|
|
111
|
+
r = t.call(this, a, i) || this;
|
|
112
|
+
var s = r.handleExited.bind(Ie(r));
|
|
113
113
|
return r.state = {
|
|
114
114
|
contextValue: {
|
|
115
115
|
isMounting: !0
|
|
@@ -118,7 +118,7 @@ var Ye = Object.values || function(n) {
|
|
|
118
118
|
firstRender: !0
|
|
119
119
|
}, r;
|
|
120
120
|
}
|
|
121
|
-
var o =
|
|
121
|
+
var o = n.prototype;
|
|
122
122
|
return o.componentDidMount = function() {
|
|
123
123
|
this.mounted = !0, this.setState({
|
|
124
124
|
contextValue: {
|
|
@@ -127,7 +127,7 @@ var Ye = Object.values || function(n) {
|
|
|
127
127
|
});
|
|
128
128
|
}, o.componentWillUnmount = function() {
|
|
129
129
|
this.mounted = !1;
|
|
130
|
-
},
|
|
130
|
+
}, n.getDerivedStateFromProps = function(i, r) {
|
|
131
131
|
var s = r.children, c = r.handleExited, l = r.firstRender;
|
|
132
132
|
return {
|
|
133
133
|
children: l ? _e(i, c) : Xe(i, s, c),
|
|
@@ -148,7 +148,7 @@ var Ye = Object.values || function(n) {
|
|
|
148
148
|
}, p) : /* @__PURE__ */ W.createElement(ae.Provider, {
|
|
149
149
|
value: l
|
|
150
150
|
}, /* @__PURE__ */ W.createElement(r, c, p));
|
|
151
|
-
},
|
|
151
|
+
}, n;
|
|
152
152
|
})(W.Component);
|
|
153
153
|
re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
154
154
|
/**
|
|
@@ -214,8 +214,8 @@ class Q {
|
|
|
214
214
|
return new Q();
|
|
215
215
|
}
|
|
216
216
|
static use() {
|
|
217
|
-
const
|
|
218
|
-
return
|
|
217
|
+
const n = Le(Q.create).current, [o, a] = f.useState(!1);
|
|
218
|
+
return n.shouldMount = o, n.setShouldMount = a, f.useEffect(n.mountEffect, [o]), n;
|
|
219
219
|
}
|
|
220
220
|
constructor() {
|
|
221
221
|
this.ref = {
|
|
@@ -229,29 +229,29 @@ class Q {
|
|
|
229
229
|
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
230
230
|
};
|
|
231
231
|
/* Ripple API */
|
|
232
|
-
start(...
|
|
233
|
-
this.mount().then(() => this.ref.current?.start(...
|
|
232
|
+
start(...n) {
|
|
233
|
+
this.mount().then(() => this.ref.current?.start(...n));
|
|
234
234
|
}
|
|
235
|
-
stop(...
|
|
236
|
-
this.mount().then(() => this.ref.current?.stop(...
|
|
235
|
+
stop(...n) {
|
|
236
|
+
this.mount().then(() => this.ref.current?.stop(...n));
|
|
237
237
|
}
|
|
238
|
-
pulsate(...
|
|
239
|
-
this.mount().then(() => this.ref.current?.pulsate(...
|
|
238
|
+
pulsate(...n) {
|
|
239
|
+
this.mount().then(() => this.ref.current?.pulsate(...n));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
function Ke() {
|
|
243
243
|
return Q.use();
|
|
244
244
|
}
|
|
245
245
|
function qe() {
|
|
246
|
-
let
|
|
246
|
+
let t, n;
|
|
247
247
|
const o = new Promise((a, i) => {
|
|
248
|
-
|
|
248
|
+
t = a, n = i;
|
|
249
249
|
});
|
|
250
|
-
return o.resolve =
|
|
250
|
+
return o.resolve = t, o.reject = n, o;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function de(t) {
|
|
253
253
|
const {
|
|
254
|
-
className:
|
|
254
|
+
className: n,
|
|
255
255
|
classes: o,
|
|
256
256
|
pulsate: a = !1,
|
|
257
257
|
rippleX: i,
|
|
@@ -260,12 +260,12 @@ function fe(n) {
|
|
|
260
260
|
in: c,
|
|
261
261
|
onExited: l,
|
|
262
262
|
timeout: p
|
|
263
|
-
} =
|
|
263
|
+
} = t, [h, m] = f.useState(!1), y = E(n, o.ripple, o.rippleVisible, a && o.ripplePulsate), N = {
|
|
264
264
|
width: s,
|
|
265
265
|
height: s,
|
|
266
266
|
top: -(s / 2) + r,
|
|
267
267
|
left: -(s / 2) + i
|
|
268
|
-
}, g =
|
|
268
|
+
}, g = E(o.child, h && o.childLeaving, a && o.childPulsate);
|
|
269
269
|
return !c && !h && m(!0), f.useEffect(() => {
|
|
270
270
|
if (!c && l != null) {
|
|
271
271
|
const w = setTimeout(l, p);
|
|
@@ -273,15 +273,15 @@ function fe(n) {
|
|
|
273
273
|
clearTimeout(w);
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
}, [l, c, p]), /* @__PURE__ */
|
|
276
|
+
}, [l, c, p]), /* @__PURE__ */ $("span", {
|
|
277
277
|
className: y,
|
|
278
278
|
style: N,
|
|
279
|
-
children: /* @__PURE__ */
|
|
279
|
+
children: /* @__PURE__ */ $("span", {
|
|
280
280
|
className: g
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
process.env.NODE_ENV !== "production" && (
|
|
284
|
+
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
285
285
|
/**
|
|
286
286
|
* Override or extend the styles applied to the component.
|
|
287
287
|
*/
|
|
@@ -316,7 +316,10 @@ process.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
|
316
316
|
*/
|
|
317
317
|
timeout: e.number.isRequired
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
function Tt(t) {
|
|
320
|
+
return ce("MuiTouchRipple", t);
|
|
321
|
+
}
|
|
322
|
+
const M = pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), te = 550, We = 80, He = oe`
|
|
320
323
|
0% {
|
|
321
324
|
transform: scale(0);
|
|
322
325
|
opacity: 0.1;
|
|
@@ -359,7 +362,7 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
359
362
|
bottom: 0,
|
|
360
363
|
left: 0,
|
|
361
364
|
borderRadius: "inherit"
|
|
362
|
-
}), Ze = ne(
|
|
365
|
+
}), Ze = ne(de, {
|
|
363
366
|
name: "MuiTouchRipple",
|
|
364
367
|
slot: "Ripple"
|
|
365
368
|
})`
|
|
@@ -372,14 +375,14 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
372
375
|
animation-name: ${He};
|
|
373
376
|
animation-duration: ${te}ms;
|
|
374
377
|
animation-timing-function: ${({
|
|
375
|
-
theme:
|
|
376
|
-
}) =>
|
|
378
|
+
theme: t
|
|
379
|
+
}) => t.transitions.easing.easeInOut};
|
|
377
380
|
}
|
|
378
381
|
|
|
379
382
|
&.${M.ripplePulsate} {
|
|
380
383
|
animation-duration: ${({
|
|
381
|
-
theme:
|
|
382
|
-
}) =>
|
|
384
|
+
theme: t
|
|
385
|
+
}) => t.transitions.duration.shorter}ms;
|
|
383
386
|
}
|
|
384
387
|
|
|
385
388
|
& .${M.child} {
|
|
@@ -396,8 +399,8 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
396
399
|
animation-name: ${Ge};
|
|
397
400
|
animation-duration: ${te}ms;
|
|
398
401
|
animation-timing-function: ${({
|
|
399
|
-
theme:
|
|
400
|
-
}) =>
|
|
402
|
+
theme: t
|
|
403
|
+
}) => t.transitions.easing.easeInOut};
|
|
401
404
|
}
|
|
402
405
|
|
|
403
406
|
& .${M.childPulsate} {
|
|
@@ -408,14 +411,14 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
408
411
|
animation-name: ${Je};
|
|
409
412
|
animation-duration: 2500ms;
|
|
410
413
|
animation-timing-function: ${({
|
|
411
|
-
theme:
|
|
412
|
-
}) =>
|
|
414
|
+
theme: t
|
|
415
|
+
}) => t.transitions.easing.easeInOut};
|
|
413
416
|
animation-iteration-count: infinite;
|
|
414
417
|
animation-delay: 200ms;
|
|
415
418
|
}
|
|
416
|
-
`,
|
|
417
|
-
const a =
|
|
418
|
-
props:
|
|
419
|
+
`, he = /* @__PURE__ */ f.forwardRef(function(n, o) {
|
|
420
|
+
const a = fe({
|
|
421
|
+
props: n,
|
|
419
422
|
name: "MuiTouchRipple"
|
|
420
423
|
}), {
|
|
421
424
|
center: i = !1,
|
|
@@ -430,31 +433,31 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
430
433
|
const {
|
|
431
434
|
pulsate: T,
|
|
432
435
|
rippleX: R,
|
|
433
|
-
rippleY:
|
|
436
|
+
rippleY: U,
|
|
434
437
|
rippleSize: B,
|
|
435
|
-
cb:
|
|
438
|
+
cb: I
|
|
436
439
|
} = d;
|
|
437
|
-
p((
|
|
440
|
+
p((C) => [...C, /* @__PURE__ */ $(Ze, {
|
|
438
441
|
classes: {
|
|
439
|
-
ripple:
|
|
440
|
-
rippleVisible:
|
|
441
|
-
ripplePulsate:
|
|
442
|
-
child:
|
|
443
|
-
childLeaving:
|
|
444
|
-
childPulsate:
|
|
442
|
+
ripple: E(r.ripple, M.ripple),
|
|
443
|
+
rippleVisible: E(r.rippleVisible, M.rippleVisible),
|
|
444
|
+
ripplePulsate: E(r.ripplePulsate, M.ripplePulsate),
|
|
445
|
+
child: E(r.child, M.child),
|
|
446
|
+
childLeaving: E(r.childLeaving, M.childLeaving),
|
|
447
|
+
childPulsate: E(r.childPulsate, M.childPulsate)
|
|
445
448
|
},
|
|
446
449
|
timeout: te,
|
|
447
450
|
pulsate: T,
|
|
448
451
|
rippleX: R,
|
|
449
|
-
rippleY:
|
|
452
|
+
rippleY: U,
|
|
450
453
|
rippleSize: B
|
|
451
|
-
}, h.current)]), h.current += 1, m.current =
|
|
454
|
+
}, h.current)]), h.current += 1, m.current = I;
|
|
452
455
|
}, [r]), j = f.useCallback((d = {}, T = {}, R = () => {
|
|
453
456
|
}) => {
|
|
454
457
|
const {
|
|
455
|
-
pulsate:
|
|
458
|
+
pulsate: U = !1,
|
|
456
459
|
center: B = i || T.pulsate,
|
|
457
|
-
fakeElement:
|
|
460
|
+
fakeElement: I = !1
|
|
458
461
|
// For test purposes
|
|
459
462
|
} = T;
|
|
460
463
|
if (d?.type === "mousedown" && y.current) {
|
|
@@ -462,7 +465,7 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
462
465
|
return;
|
|
463
466
|
}
|
|
464
467
|
d?.type === "touchstart" && (y.current = !0);
|
|
465
|
-
const
|
|
468
|
+
const C = I ? null : w.current, D = C ? C.getBoundingClientRect() : {
|
|
466
469
|
width: 0,
|
|
467
470
|
height: 0,
|
|
468
471
|
left: 0,
|
|
@@ -481,12 +484,12 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
481
484
|
if (B)
|
|
482
485
|
S = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), S % 2 === 0 && (S += 1);
|
|
483
486
|
else {
|
|
484
|
-
const z = Math.max(Math.abs((
|
|
487
|
+
const z = Math.max(Math.abs((C ? C.clientWidth : 0) - V), V) * 2 + 2, L = Math.max(Math.abs((C ? C.clientHeight : 0) - x), x) * 2 + 2;
|
|
485
488
|
S = Math.sqrt(z ** 2 + L ** 2);
|
|
486
489
|
}
|
|
487
490
|
d?.touches ? g.current === null && (g.current = () => {
|
|
488
491
|
v({
|
|
489
|
-
pulsate:
|
|
492
|
+
pulsate: U,
|
|
490
493
|
rippleX: V,
|
|
491
494
|
rippleY: x,
|
|
492
495
|
rippleSize: S,
|
|
@@ -495,7 +498,7 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
495
498
|
}, N.start(We, () => {
|
|
496
499
|
g.current && (g.current(), g.current = null);
|
|
497
500
|
})) : v({
|
|
498
|
-
pulsate:
|
|
501
|
+
pulsate: U,
|
|
499
502
|
rippleX: V,
|
|
500
503
|
rippleY: x,
|
|
501
504
|
rippleSize: S,
|
|
@@ -518,18 +521,18 @@ const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
518
521
|
pulsate: A,
|
|
519
522
|
start: j,
|
|
520
523
|
stop: F
|
|
521
|
-
}), [A, j, F]), /* @__PURE__ */
|
|
522
|
-
className:
|
|
524
|
+
}), [A, j, F]), /* @__PURE__ */ $(Qe, {
|
|
525
|
+
className: E(M.root, r.root, s),
|
|
523
526
|
ref: w,
|
|
524
527
|
...c,
|
|
525
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ $(re, {
|
|
526
529
|
component: null,
|
|
527
530
|
exit: !0,
|
|
528
531
|
children: l
|
|
529
532
|
})
|
|
530
533
|
});
|
|
531
534
|
});
|
|
532
|
-
process.env.NODE_ENV !== "production" && (
|
|
535
|
+
process.env.NODE_ENV !== "production" && (he.propTypes = {
|
|
533
536
|
/**
|
|
534
537
|
* If `true`, the ripple starts at the center of the component
|
|
535
538
|
* rather than at the point of interaction.
|
|
@@ -544,17 +547,17 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
544
547
|
*/
|
|
545
548
|
className: e.string
|
|
546
549
|
});
|
|
547
|
-
function et(
|
|
548
|
-
return
|
|
550
|
+
function et(t) {
|
|
551
|
+
return ce("MuiButtonBase", t);
|
|
549
552
|
}
|
|
550
|
-
const tt =
|
|
553
|
+
const tt = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (t) => {
|
|
551
554
|
const {
|
|
552
|
-
disabled:
|
|
555
|
+
disabled: n,
|
|
553
556
|
focusVisible: o,
|
|
554
557
|
focusVisibleClassName: a,
|
|
555
558
|
classes: i
|
|
556
|
-
} =
|
|
557
|
-
root: ["root",
|
|
559
|
+
} = t, s = Fe({
|
|
560
|
+
root: ["root", n && "disabled", o && "focusVisible"]
|
|
558
561
|
}, et, i);
|
|
559
562
|
return o && a && (s.root += ` ${a}`), s;
|
|
560
563
|
}, ot = ne("button", {
|
|
@@ -599,9 +602,9 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
599
602
|
"@media print": {
|
|
600
603
|
colorAdjust: "exact"
|
|
601
604
|
}
|
|
602
|
-
}), it = /* @__PURE__ */ f.forwardRef(function(
|
|
603
|
-
const a =
|
|
604
|
-
props:
|
|
605
|
+
}), it = /* @__PURE__ */ f.forwardRef(function(n, o) {
|
|
606
|
+
const a = fe({
|
|
607
|
+
props: n,
|
|
605
608
|
name: "MuiButtonBase"
|
|
606
609
|
}), {
|
|
607
610
|
action: i,
|
|
@@ -623,10 +626,10 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
623
626
|
onFocusVisible: d,
|
|
624
627
|
onKeyDown: T,
|
|
625
628
|
onKeyUp: R,
|
|
626
|
-
onMouseDown:
|
|
629
|
+
onMouseDown: U,
|
|
627
630
|
onMouseLeave: B,
|
|
628
|
-
onMouseUp:
|
|
629
|
-
onTouchEnd:
|
|
631
|
+
onMouseUp: I,
|
|
632
|
+
onTouchEnd: C,
|
|
630
633
|
onTouchMove: D,
|
|
631
634
|
onTouchStart: V,
|
|
632
635
|
tabIndex: x = 0,
|
|
@@ -634,30 +637,30 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
634
637
|
touchRippleRef: z,
|
|
635
638
|
type: L,
|
|
636
639
|
..._
|
|
637
|
-
} = a, X = f.useRef(null), b = Ke(),
|
|
640
|
+
} = a, X = f.useRef(null), b = Ke(), me = ue(b.ref, z), [O, K] = f.useState(!1);
|
|
638
641
|
p && O && K(!1), f.useImperativeHandle(i, () => ({
|
|
639
642
|
focusVisible: () => {
|
|
640
643
|
K(!0), X.current.focus();
|
|
641
644
|
}
|
|
642
645
|
}), []);
|
|
643
|
-
const
|
|
646
|
+
const be = b.shouldMount && !h && !p;
|
|
644
647
|
f.useEffect(() => {
|
|
645
648
|
O && y && !h && b.pulsate();
|
|
646
649
|
}, [h, y, O, b]);
|
|
647
|
-
const
|
|
650
|
+
const ge = P(b, "start", U, m), Me = P(b, "stop", j, m), ye = P(b, "stop", A, m), Re = P(b, "stop", I, m), Te = P(b, "stop", (u) => {
|
|
648
651
|
O && u.preventDefault(), B && B(u);
|
|
649
|
-
}, m),
|
|
652
|
+
}, m), Ce = P(b, "start", V, m), Ee = P(b, "stop", C, m), ve = P(b, "stop", D, m), xe = P(b, "stop", (u) => {
|
|
650
653
|
le(u.target) || K(!1), w && w(u);
|
|
651
|
-
}, !1),
|
|
654
|
+
}, !1), Pe = J((u) => {
|
|
652
655
|
X.current || (X.current = u.currentTarget), le(u.target) && (K(!0), d && d(u)), F && F(u);
|
|
653
656
|
}), Z = () => {
|
|
654
657
|
const u = X.current;
|
|
655
658
|
return l && l !== "button" && !(u.tagName === "A" && u.href);
|
|
656
|
-
},
|
|
659
|
+
}, Ne = J((u) => {
|
|
657
660
|
y && !u.repeat && O && u.key === " " && b.stop(u, () => {
|
|
658
661
|
b.start(u);
|
|
659
662
|
}), u.target === u.currentTarget && Z() && u.key === " " && u.preventDefault(), T && T(u), u.target === u.currentTarget && Z() && u.key === "Enter" && !p && (u.preventDefault(), v && v(u));
|
|
660
|
-
}),
|
|
663
|
+
}), De = J((u) => {
|
|
661
664
|
y && u.key === " " && O && !u.defaultPrevented && b.stop(u, () => {
|
|
662
665
|
b.pulsate(u);
|
|
663
666
|
}), R && R(u), v && u.target === u.currentTarget && Z() && u.key === " " && !u.defaultPrevented && v(u);
|
|
@@ -666,7 +669,7 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
666
669
|
q === "button" && (_.href || _.to) && (q = g);
|
|
667
670
|
const Y = {};
|
|
668
671
|
q === "button" ? (Y.type = L === void 0 ? "button" : L, Y.disabled = p) : (!_.href && !_.to && (Y.role = "button"), p && (Y["aria-disabled"] = p));
|
|
669
|
-
const
|
|
672
|
+
const Ve = ue(o, X), se = {
|
|
670
673
|
...a,
|
|
671
674
|
centerRipple: r,
|
|
672
675
|
component: l,
|
|
@@ -676,38 +679,38 @@ const tt = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), nt = (n) =
|
|
|
676
679
|
focusRipple: y,
|
|
677
680
|
tabIndex: x,
|
|
678
681
|
focusVisible: O
|
|
679
|
-
},
|
|
682
|
+
}, Se = nt(se);
|
|
680
683
|
return /* @__PURE__ */ Be(ot, {
|
|
681
684
|
as: q,
|
|
682
|
-
className:
|
|
685
|
+
className: E(Se.root, c),
|
|
683
686
|
ownerState: se,
|
|
684
|
-
onBlur:
|
|
687
|
+
onBlur: xe,
|
|
685
688
|
onClick: v,
|
|
686
|
-
onContextMenu:
|
|
687
|
-
onFocus:
|
|
688
|
-
onKeyDown:
|
|
689
|
-
onKeyUp:
|
|
690
|
-
onMouseDown:
|
|
691
|
-
onMouseLeave:
|
|
692
|
-
onMouseUp:
|
|
693
|
-
onDragLeave:
|
|
689
|
+
onContextMenu: Me,
|
|
690
|
+
onFocus: Pe,
|
|
691
|
+
onKeyDown: Ne,
|
|
692
|
+
onKeyUp: De,
|
|
693
|
+
onMouseDown: ge,
|
|
694
|
+
onMouseLeave: Te,
|
|
695
|
+
onMouseUp: Re,
|
|
696
|
+
onDragLeave: ye,
|
|
694
697
|
onTouchEnd: Ee,
|
|
695
|
-
onTouchMove:
|
|
696
|
-
onTouchStart:
|
|
697
|
-
ref:
|
|
698
|
+
onTouchMove: ve,
|
|
699
|
+
onTouchStart: Ce,
|
|
700
|
+
ref: Ve,
|
|
698
701
|
tabIndex: p ? -1 : x,
|
|
699
702
|
type: L,
|
|
700
703
|
...Y,
|
|
701
704
|
..._,
|
|
702
|
-
children: [s,
|
|
703
|
-
ref:
|
|
705
|
+
children: [s, be ? /* @__PURE__ */ $(he, {
|
|
706
|
+
ref: me,
|
|
704
707
|
center: r,
|
|
705
708
|
...S
|
|
706
709
|
}) : null]
|
|
707
710
|
});
|
|
708
711
|
});
|
|
709
|
-
function P(
|
|
710
|
-
return J((i) => (o && o(i), a || n
|
|
712
|
+
function P(t, n, o, a = !1) {
|
|
713
|
+
return J((i) => (o && o(i), a || t[n](i), !0));
|
|
711
714
|
}
|
|
712
715
|
process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
713
716
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -718,7 +721,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
718
721
|
* A ref for imperative actions.
|
|
719
722
|
* It currently only supports `focusVisible()` action.
|
|
720
723
|
*/
|
|
721
|
-
action:
|
|
724
|
+
action: $e,
|
|
722
725
|
/**
|
|
723
726
|
* If `true`, the ripples are centered.
|
|
724
727
|
* They won't start at the cursor interaction position.
|
|
@@ -741,7 +744,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
741
744
|
* The component used for the root node.
|
|
742
745
|
* Either a string to use a HTML element or a component.
|
|
743
746
|
*/
|
|
744
|
-
component:
|
|
747
|
+
component: Ue,
|
|
745
748
|
/**
|
|
746
749
|
* If `true`, the component is disabled.
|
|
747
750
|
* @default false
|
|
@@ -870,5 +873,9 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
870
873
|
export {
|
|
871
874
|
it as B,
|
|
872
875
|
re as T,
|
|
873
|
-
ee as _
|
|
876
|
+
ee as _,
|
|
877
|
+
Tt as a,
|
|
878
|
+
tt as b,
|
|
879
|
+
et as g,
|
|
880
|
+
M as t
|
|
874
881
|
};
|
|
@@ -8,7 +8,7 @@ import { jsxs as x, jsx as O } from "react/jsx-runtime";
|
|
|
8
8
|
import { u as j } from "./DefaultPropsProvider-PBxTVeaD.js";
|
|
9
9
|
import { s as f } from "./styled-bJ6DXD3Z.js";
|
|
10
10
|
import { c as w } from "./composeClasses-2Ou-RZJr.js";
|
|
11
|
-
import { B as R } from "./ButtonBase-
|
|
11
|
+
import { B as R } from "./ButtonBase-t_kdVaqI.js";
|
|
12
12
|
function V(s) {
|
|
13
13
|
return v("MuiCardActionArea", s);
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { c as j, j as c, P as o } from "./createTheme-D79OrE1w.js";
|
|
3
3
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { S as B } from "./SwitchBase-
|
|
4
|
+
import { S as B } from "./SwitchBase-CufBsptm.js";
|
|
5
5
|
import { c as h } from "./createSvgIcon-D1SROVbP.js";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
import { s as M, r as $ } from "./styled-bJ6DXD3Z.js";
|
|
@@ -9,7 +9,7 @@ import { g as to } from "./generateUtilityClasses-CwzvHfCm.js";
|
|
|
9
9
|
import { u as V } from "./useSlot-BVGwJA4b.js";
|
|
10
10
|
import { u as no } from "./DefaultPropsProvider-PBxTVeaD.js";
|
|
11
11
|
import { u as io } from "./useForkRef-9kN4DArm.js";
|
|
12
|
-
import { B as j } from "./ButtonBase-
|
|
12
|
+
import { B as j } from "./ButtonBase-t_kdVaqI.js";
|
|
13
13
|
import { s as M } from "./styled-bJ6DXD3Z.js";
|
|
14
14
|
import { c as co } from "./composeClasses-2Ou-RZJr.js";
|
|
15
15
|
import { u as so } from "./unsupportedProp-BuVD30Gh.js";
|