@cgi-learning-hub/ui 1.2.0-dev.1730799290 → 1.2.0-dev.1730802047
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/Backdrop-Br80Nd7t.cjs +1 -0
- package/dist/{Backdrop-NYR-wJpx.js → Backdrop-DZxABi0e.js} +290 -289
- package/dist/{Box-BOwB0WGP.js → Box-CCNJo4xc.js} +3 -3
- package/dist/Box-CHgIMOMk.cjs +1 -0
- package/dist/Button-BZ3CM4Ou.cjs +1 -0
- package/dist/{Button-DOz72eRZ.js → Button-BbB53SmV.js} +76 -78
- package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-CWK9_uNc.js} +78 -79
- package/dist/ButtonBase-CfGA-YGO.cjs +75 -0
- package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-CCcQGuv7.js} +60 -59
- package/dist/CircularProgress-CjmXu0NI.cjs +28 -0
- package/dist/DatePicker-BSHPkMOi.cjs +17 -0
- package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-DhT2Azgz.js} +3796 -3827
- package/dist/DefaultButton-BDGm3E32.cjs +1 -0
- package/dist/{DefaultButton-xBiX39mb.js → DefaultButton-DRX60ZWo.js} +22 -23
- package/dist/DefaultPropsProvider-BL9ahJBw.cjs +17 -0
- package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-DtDY-TZb.js} +2 -1
- package/dist/{IconButton-DQ115lN0.js → IconButton-CJADlk4N.js} +60 -70
- package/dist/IconButton-CQIpnm5Y.cjs +2 -0
- package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-BgclYUXK.cjs} +1 -1
- package/dist/{InputAdornment-C91s059c.js → InputAdornment-DB3IsWy6.js} +5 -5
- package/dist/InputBase-BgPlZIwC.cjs +3 -0
- package/dist/{InputBase-BqiRpsZm.js → InputBase-D4oDoC6z.js} +76 -77
- package/dist/{Stack-CRf_NOj5.js → Stack-DkKYFn95.js} +13 -13
- package/dist/Stack-h0ulkByu.cjs +1 -0
- package/dist/{Tabs-ClaQRksF.js → Tabs-COdZZ9QD.js} +13 -14
- package/dist/Tabs-CVG205ba.cjs +4 -0
- package/dist/TextField-DYHbqOp9.cjs +14 -0
- package/dist/{TextField-poQmKhLJ.js → TextField-PKXBC85g.js} +1457 -1415
- package/dist/{Tooltip-h4eHRca2.js → Tooltip-Bjvuk-Lb.js} +1117 -1099
- package/dist/Tooltip-D8bjRAAW.cjs +100 -0
- package/dist/Typography-Ddo2XgEF.cjs +1 -0
- package/dist/{Typography-Brk7us7e.js → Typography-NOCV1w8B.js} +38 -37
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +15 -14
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +1675 -679
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -33
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +11 -17
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +13 -19
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +11 -12
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +17 -17
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-BH5C6nT9.cjs} +1 -1
- package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-CCVUTVqS.js} +3 -3
- package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-CxNq_K9W.cjs} +1 -1
- package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-ZFHbVaVf.js} +1 -1
- package/dist/{fr-CrUmNQ8y.js → fr-D-ljiFMc.js} +1 -1
- package/dist/{fr-Dh4vpkIL.cjs → fr-W-CTnhjw.cjs} +1 -1
- package/dist/identifier-8mtH7ZcP.cjs +59 -0
- package/dist/{identifier-vL3mZxtO.js → identifier-C_jicJ2R.js} +1001 -1013
- package/dist/{index-PJSlkMUh.js → index-1jrO2HSs.js} +3 -3
- package/dist/{index-DJfvQgvG.cjs → index-8rVsYib2.cjs} +1 -1
- package/dist/{index-CrWaTytV.js → index-C-X1cQ2Z.js} +4 -4
- package/dist/index-DoBWXbUD.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +17 -17
- package/dist/memoTheme-B1D0RO58.js +15 -0
- package/dist/memoTheme-K38b4dAY.cjs +1 -0
- package/dist/{refType-CslmN23s.js → useEnhancedEffect-De8QYV_L.js} +11 -9
- package/dist/useEnhancedEffect-Dl7COs_u.cjs +1 -0
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/{useTheme-BZN9T64v.js → useTheme-C18aJRpp.js} +1 -1
- package/dist/{useTheme-Cy30-54x.cjs → useTheme-D0cUaNbZ.cjs} +1 -1
- package/dist/{useTheme-BcsinTgi.cjs → useTheme-DMgnO6le.cjs} +1 -1
- package/dist/{useTheme-Cs6W-67J.js → useTheme-DR3unGHQ.js} +3 -3
- package/dist/useThemeProps-9fosi2Au.cjs +1 -0
- package/dist/useThemeProps-B8ZTH6Oh.cjs +1 -0
- package/dist/useThemeProps-BcqXKsD0.js +24 -0
- package/dist/useThemeProps-BwLSmftx.js +27 -0
- package/dist/useTimeout-CUZ4CtvQ.js +53 -0
- package/dist/useTimeout-Dfi8FwFc.cjs +1 -0
- package/package.json +10 -10
- package/dist/Backdrop-2u2eUNhW.cjs +0 -1
- package/dist/Box-BM-kEZ6w.cjs +0 -1
- package/dist/Button-DF4FLm9c.cjs +0 -1
- package/dist/ButtonBase-D-LBunY3.cjs +0 -75
- package/dist/CircularProgress-Bc4Jb-wh.cjs +0 -28
- package/dist/DatePicker-B7Kxulzh.cjs +0 -19
- package/dist/DefaultButton-BiytyhNr.cjs +0 -1
- package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +0 -17
- package/dist/IconButton-C1Q6F-WI.cjs +0 -2
- package/dist/InputBase-BhTvM4pD.cjs +0 -3
- package/dist/Stack-C-pSEK_U.cjs +0 -1
- package/dist/Tabs-DQQR_Rej.cjs +0 -4
- package/dist/TextField-ESuNQ6_j.cjs +0 -12
- package/dist/Tooltip-iexr64ud.cjs +0 -100
- package/dist/Typography-DXUkMq5K.cjs +0 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-C9v8HKxu.cjs +0 -2
- package/dist/createSvgIcon-ampgkdBR.js +0 -89
- package/dist/identifier-lU3TQXv0.cjs +0 -59
- package/dist/index-B4-7REI3.cjs +0 -1
- package/dist/memoTheme-B2EWpIp3.cjs +0 -1
- package/dist/memoTheme-O-hJ9iBh.js +0 -13
- package/dist/refType-xt9KmJ1e.cjs +0 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useThemeProps-CjDUEYiA.js +0 -40
- package/dist/useThemeProps-DxowsTec.cjs +0 -1
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CcRdgCDK.js +0 -42
|
@@ -3,15 +3,14 @@ var je = (n, e, o) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var le = (n, e, o) => je(n, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import * as d from "react";
|
|
5
5
|
import W, { Children as ke, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
-
import { P as t, L as E, J as de, I as Fe } from "./identifier-
|
|
6
|
+
import { P as t, L as E, J as de, I as Fe } from "./identifier-C_jicJ2R.js";
|
|
7
7
|
import { jsx as U, jsxs as Ie } from "react/jsx-runtime";
|
|
8
|
-
import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-
|
|
9
|
-
import {
|
|
8
|
+
import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-DtDY-TZb.js";
|
|
9
|
+
import { a as $e, b as ze, u as H } from "./useTimeout-CUZ4CtvQ.js";
|
|
10
10
|
import { _ as _e, a as Ae, T as ce } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
11
11
|
import { keyframes as oe } from "@emotion/react";
|
|
12
|
-
import { u as pe } from "./useForkRef-
|
|
13
|
-
import {
|
|
14
|
-
import { r as Xe, e as Ye } from "./refType-CslmN23s.js";
|
|
12
|
+
import { u as pe } from "./useForkRef-D-DyzOXj.js";
|
|
13
|
+
import { r as Xe, e as Ye } from "./useEnhancedEffect-De8QYV_L.js";
|
|
15
14
|
function fe(n) {
|
|
16
15
|
try {
|
|
17
16
|
return n.matches(":focus-visible");
|
|
@@ -89,8 +88,8 @@ function We(n) {
|
|
|
89
88
|
return n;
|
|
90
89
|
}
|
|
91
90
|
function ie(n, e) {
|
|
92
|
-
var o = function(
|
|
93
|
-
return e && G(
|
|
91
|
+
var o = function(s) {
|
|
92
|
+
return e && G(s) ? e(s) : s;
|
|
94
93
|
}, u = /* @__PURE__ */ Object.create(null);
|
|
95
94
|
return n && ke.map(n, function(i) {
|
|
96
95
|
return i;
|
|
@@ -104,19 +103,19 @@ function He(n, e) {
|
|
|
104
103
|
return h in e ? e[h] : n[h];
|
|
105
104
|
}
|
|
106
105
|
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
107
|
-
for (var
|
|
108
|
-
|
|
109
|
-
var
|
|
106
|
+
for (var s in n)
|
|
107
|
+
s in e ? i.length && (u[s] = i, i = []) : i.push(s);
|
|
108
|
+
var r, p = {};
|
|
110
109
|
for (var l in e) {
|
|
111
110
|
if (u[l])
|
|
112
|
-
for (
|
|
113
|
-
var f = u[l][
|
|
114
|
-
p[u[l][
|
|
111
|
+
for (r = 0; r < u[l].length; r++) {
|
|
112
|
+
var f = u[l][r];
|
|
113
|
+
p[u[l][r]] = o(f);
|
|
115
114
|
}
|
|
116
115
|
p[l] = o(l);
|
|
117
116
|
}
|
|
118
|
-
for (
|
|
119
|
-
p[i[
|
|
117
|
+
for (r = 0; r < i.length; r++)
|
|
118
|
+
p[i[r]] = o(i[r]);
|
|
120
119
|
return p;
|
|
121
120
|
}
|
|
122
121
|
function j(n, e, o) {
|
|
@@ -135,22 +134,22 @@ function Ge(n, e) {
|
|
|
135
134
|
}
|
|
136
135
|
function Je(n, e, o) {
|
|
137
136
|
var u = ie(n.children), i = He(e, u);
|
|
138
|
-
return Object.keys(i).forEach(function(
|
|
139
|
-
var
|
|
140
|
-
if (G(
|
|
141
|
-
var p =
|
|
142
|
-
l && (!p || h) ? i[
|
|
143
|
-
onExited: o.bind(null,
|
|
137
|
+
return Object.keys(i).forEach(function(s) {
|
|
138
|
+
var r = i[s];
|
|
139
|
+
if (G(r)) {
|
|
140
|
+
var p = s in e, l = s in u, f = e[s], h = G(f) && !f.props.in;
|
|
141
|
+
l && (!p || h) ? i[s] = J(r, {
|
|
142
|
+
onExited: o.bind(null, r),
|
|
144
143
|
in: !0,
|
|
145
|
-
exit: j(
|
|
146
|
-
enter: j(
|
|
147
|
-
}) : !l && p && !h ? i[
|
|
144
|
+
exit: j(r, "exit", n),
|
|
145
|
+
enter: j(r, "enter", n)
|
|
146
|
+
}) : !l && p && !h ? i[s] = J(r, {
|
|
148
147
|
in: !1
|
|
149
|
-
}) : l && p && G(f) && (i[
|
|
150
|
-
onExited: o.bind(null,
|
|
148
|
+
}) : l && p && G(f) && (i[s] = J(r, {
|
|
149
|
+
onExited: o.bind(null, r),
|
|
151
150
|
in: f.props.in,
|
|
152
|
-
exit: j(
|
|
153
|
-
enter: j(
|
|
151
|
+
exit: j(r, "exit", n),
|
|
152
|
+
enter: j(r, "enter", n)
|
|
154
153
|
}));
|
|
155
154
|
}
|
|
156
155
|
}), i;
|
|
@@ -164,19 +163,19 @@ var Qe = Object.values || function(n) {
|
|
|
164
163
|
childFactory: function(e) {
|
|
165
164
|
return e;
|
|
166
165
|
}
|
|
167
|
-
},
|
|
166
|
+
}, se = /* @__PURE__ */ function(n) {
|
|
168
167
|
_e(e, n);
|
|
169
168
|
function e(u, i) {
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
-
return
|
|
169
|
+
var s;
|
|
170
|
+
s = n.call(this, u, i) || this;
|
|
171
|
+
var r = s.handleExited.bind(We(s));
|
|
172
|
+
return s.state = {
|
|
174
173
|
contextValue: {
|
|
175
174
|
isMounting: !0
|
|
176
175
|
},
|
|
177
|
-
handleExited:
|
|
176
|
+
handleExited: r,
|
|
178
177
|
firstRender: !0
|
|
179
|
-
},
|
|
178
|
+
}, s;
|
|
180
179
|
}
|
|
181
180
|
var o = e.prototype;
|
|
182
181
|
return o.componentDidMount = function() {
|
|
@@ -187,30 +186,30 @@ var Qe = Object.values || function(n) {
|
|
|
187
186
|
});
|
|
188
187
|
}, o.componentWillUnmount = function() {
|
|
189
188
|
this.mounted = !1;
|
|
190
|
-
}, e.getDerivedStateFromProps = function(i,
|
|
191
|
-
var
|
|
189
|
+
}, e.getDerivedStateFromProps = function(i, s) {
|
|
190
|
+
var r = s.children, p = s.handleExited, l = s.firstRender;
|
|
192
191
|
return {
|
|
193
|
-
children: l ? Ge(i, p) : Je(i,
|
|
192
|
+
children: l ? Ge(i, p) : Je(i, r, p),
|
|
194
193
|
firstRender: !1
|
|
195
194
|
};
|
|
196
|
-
}, o.handleExited = function(i,
|
|
197
|
-
var
|
|
198
|
-
i.key in
|
|
195
|
+
}, o.handleExited = function(i, s) {
|
|
196
|
+
var r = ie(this.props.children);
|
|
197
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
|
|
199
198
|
var l = ee({}, p.children);
|
|
200
199
|
return delete l[i.key], {
|
|
201
200
|
children: l
|
|
202
201
|
};
|
|
203
202
|
}));
|
|
204
203
|
}, o.render = function() {
|
|
205
|
-
var i = this.props,
|
|
206
|
-
return delete p.appear, delete p.enter, delete p.exit,
|
|
204
|
+
var i = this.props, s = i.component, r = i.childFactory, p = Ae(i, ["component", "childFactory"]), l = this.state.contextValue, f = Qe(this.state.children).map(r);
|
|
205
|
+
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
207
206
|
value: l
|
|
208
207
|
}, f) : /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
209
208
|
value: l
|
|
210
|
-
}, /* @__PURE__ */ W.createElement(
|
|
209
|
+
}, /* @__PURE__ */ W.createElement(s, p, f));
|
|
211
210
|
}, e;
|
|
212
211
|
}(W.Component);
|
|
213
|
-
|
|
212
|
+
se.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
214
213
|
/**
|
|
215
214
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
216
215
|
* behavior by providing a `component` prop.
|
|
@@ -263,23 +262,23 @@ re.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
263
262
|
*/
|
|
264
263
|
childFactory: t.func
|
|
265
264
|
} : {};
|
|
266
|
-
|
|
265
|
+
se.defaultProps = Ze;
|
|
267
266
|
function me(n) {
|
|
268
267
|
const {
|
|
269
268
|
className: e,
|
|
270
269
|
classes: o,
|
|
271
270
|
pulsate: u = !1,
|
|
272
271
|
rippleX: i,
|
|
273
|
-
rippleY:
|
|
274
|
-
rippleSize:
|
|
272
|
+
rippleY: s,
|
|
273
|
+
rippleSize: r,
|
|
275
274
|
in: p,
|
|
276
275
|
onExited: l,
|
|
277
276
|
timeout: f
|
|
278
277
|
} = n, [h, M] = d.useState(!1), g = E(e, o.ripple, o.rippleVisible, u && o.ripplePulsate), N = {
|
|
279
|
-
width:
|
|
280
|
-
height:
|
|
281
|
-
top: -(
|
|
282
|
-
left: -(
|
|
278
|
+
width: r,
|
|
279
|
+
height: r,
|
|
280
|
+
top: -(r / 2) + s,
|
|
281
|
+
left: -(r / 2) + i
|
|
283
282
|
}, m = E(o.child, h && o.childLeaving, u && o.childPulsate);
|
|
284
283
|
return !p && !h && M(!0), d.useEffect(() => {
|
|
285
284
|
if (!p && l != null) {
|
|
@@ -374,7 +373,7 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
374
373
|
bottom: 0,
|
|
375
374
|
left: 0,
|
|
376
375
|
borderRadius: "inherit"
|
|
377
|
-
}),
|
|
376
|
+
}), st = ne(me, {
|
|
378
377
|
name: "MuiTouchRipple",
|
|
379
378
|
slot: "Ripple"
|
|
380
379
|
})`
|
|
@@ -434,8 +433,8 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
434
433
|
name: "MuiTouchRipple"
|
|
435
434
|
}), {
|
|
436
435
|
center: i = !1,
|
|
437
|
-
classes:
|
|
438
|
-
className:
|
|
436
|
+
classes: s = {},
|
|
437
|
+
className: r,
|
|
439
438
|
...p
|
|
440
439
|
} = u, [l, f] = d.useState([]), h = d.useRef(0), M = d.useRef(null);
|
|
441
440
|
d.useEffect(() => {
|
|
@@ -449,14 +448,14 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
449
448
|
rippleSize: B,
|
|
450
449
|
cb: $
|
|
451
450
|
} = c;
|
|
452
|
-
f((T) => [...T, /* @__PURE__ */ U(
|
|
451
|
+
f((T) => [...T, /* @__PURE__ */ U(st, {
|
|
453
452
|
classes: {
|
|
454
|
-
ripple: E(
|
|
455
|
-
rippleVisible: E(
|
|
456
|
-
ripplePulsate: E(
|
|
457
|
-
child: E(
|
|
458
|
-
childLeaving: E(
|
|
459
|
-
childPulsate: E(
|
|
453
|
+
ripple: E(s.ripple, b.ripple),
|
|
454
|
+
rippleVisible: E(s.rippleVisible, b.rippleVisible),
|
|
455
|
+
ripplePulsate: E(s.ripplePulsate, b.ripplePulsate),
|
|
456
|
+
child: E(s.child, b.child),
|
|
457
|
+
childLeaving: E(s.childLeaving, b.childLeaving),
|
|
458
|
+
childPulsate: E(s.childPulsate, b.childPulsate)
|
|
460
459
|
},
|
|
461
460
|
timeout: te,
|
|
462
461
|
pulsate: R,
|
|
@@ -464,7 +463,7 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
464
463
|
rippleY: I,
|
|
465
464
|
rippleSize: B
|
|
466
465
|
}, h.current)]), h.current += 1, M.current = $;
|
|
467
|
-
}, [
|
|
466
|
+
}, [s]), k = d.useCallback((c = {}, R = {}, y = () => {
|
|
468
467
|
}) => {
|
|
469
468
|
const {
|
|
470
469
|
pulsate: I = !1,
|
|
@@ -534,10 +533,10 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
534
533
|
start: k,
|
|
535
534
|
stop: F
|
|
536
535
|
}), [Y, k, F]), /* @__PURE__ */ U(it, {
|
|
537
|
-
className: E(b.root,
|
|
536
|
+
className: E(b.root, s.root, r),
|
|
538
537
|
ref: S,
|
|
539
538
|
...p,
|
|
540
|
-
children: /* @__PURE__ */ U(
|
|
539
|
+
children: /* @__PURE__ */ U(se, {
|
|
541
540
|
component: null,
|
|
542
541
|
exit: !0,
|
|
543
542
|
children: l
|
|
@@ -559,7 +558,7 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
|
559
558
|
*/
|
|
560
559
|
className: t.string
|
|
561
560
|
});
|
|
562
|
-
function
|
|
561
|
+
function rt(n) {
|
|
563
562
|
return Fe("MuiButtonBase", n);
|
|
564
563
|
}
|
|
565
564
|
const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) => {
|
|
@@ -568,10 +567,10 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
568
567
|
focusVisible: o,
|
|
569
568
|
focusVisibleClassName: u,
|
|
570
569
|
classes: i
|
|
571
|
-
} = n,
|
|
570
|
+
} = n, r = Ue({
|
|
572
571
|
root: ["root", e && "disabled", o && "focusVisible"]
|
|
573
|
-
},
|
|
574
|
-
return o && u && (
|
|
572
|
+
}, rt, i);
|
|
573
|
+
return o && u && (r.root += ` ${u}`), r;
|
|
575
574
|
}, lt = ne("button", {
|
|
576
575
|
name: "MuiButtonBase",
|
|
577
576
|
slot: "Root",
|
|
@@ -621,8 +620,8 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
621
620
|
name: "MuiButtonBase"
|
|
622
621
|
}), {
|
|
623
622
|
action: i,
|
|
624
|
-
centerRipple:
|
|
625
|
-
children:
|
|
623
|
+
centerRipple: s = !1,
|
|
624
|
+
children: r,
|
|
626
625
|
className: p,
|
|
627
626
|
component: l = "button",
|
|
628
627
|
disabled: f = !1,
|
|
@@ -685,9 +684,9 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
685
684
|
q === "button" && (_.href || _.to) && (q = m);
|
|
686
685
|
const X = {};
|
|
687
686
|
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
688
|
-
const Se = pe(o, A),
|
|
687
|
+
const Se = pe(o, A), re = {
|
|
689
688
|
...u,
|
|
690
|
-
centerRipple:
|
|
689
|
+
centerRipple: s,
|
|
691
690
|
component: l,
|
|
692
691
|
disabled: f,
|
|
693
692
|
disableRipple: h,
|
|
@@ -695,11 +694,11 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
695
694
|
focusRipple: g,
|
|
696
695
|
tabIndex: x,
|
|
697
696
|
focusVisible: O
|
|
698
|
-
}, Be = ut(
|
|
697
|
+
}, Be = ut(re);
|
|
699
698
|
return /* @__PURE__ */ Ie(lt, {
|
|
700
699
|
as: q,
|
|
701
700
|
className: E(Be.root, p),
|
|
702
|
-
ownerState:
|
|
701
|
+
ownerState: re,
|
|
703
702
|
onBlur: Ne,
|
|
704
703
|
onClick: C,
|
|
705
704
|
onContextMenu: Re,
|
|
@@ -718,9 +717,9 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
|
|
|
718
717
|
type: L,
|
|
719
718
|
...X,
|
|
720
719
|
..._,
|
|
721
|
-
children: [
|
|
720
|
+
children: [r, ye ? /* @__PURE__ */ U(be, {
|
|
722
721
|
ref: ge,
|
|
723
|
-
center:
|
|
722
|
+
center: s,
|
|
724
723
|
...V
|
|
725
724
|
}) : null]
|
|
726
725
|
});
|
|
@@ -885,7 +884,7 @@ process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
|
885
884
|
});
|
|
886
885
|
export {
|
|
887
886
|
ct as B,
|
|
888
|
-
|
|
887
|
+
se as T,
|
|
889
888
|
ee as _,
|
|
890
889
|
fe as i
|
|
891
890
|
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";var we=Object.defineProperty;var Se=(n,t,o)=>t in n?we(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var ue=(n,t,o)=>Se(n,typeof t!="symbol"?t+"":t,o);const m=require("react"),e=require("./identifier-8mtH7ZcP.cjs"),L=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-BL9ahJBw.cjs"),I=require("./useTimeout-Dfi8FwFc.cjs"),H=require("./TransitionGroupContext-DbXD5xqS.cjs"),oe=require("@emotion/react"),ae=require("./useForkRef-D81w5oMb.cjs"),ce=require("./useEnhancedEffect-Dl7COs_u.cjs");function ke(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=ke(m);function te(n){try{return n.matches(":focus-visible")}catch{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(`
|
|
2
|
+
`))}return!1}class J{constructor(){ue(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new J}static use(){const t=I.useLazyRef(J.create).current,[o,u]=d.useState(!1);return t.shouldMount=o,t.setShouldMount=u,d.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=Be(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function Oe(){return J.use()}function Be(){let n,t;const o=new Promise((u,r)=>{n=u,t=r});return o.resolve=n,o.reject=t,o}function Q(){return Q=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var u in o)({}).hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},Q.apply(null,arguments)}function Le(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function se(n,t){var o=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return n&&m.Children.map(n,function(r){return r}).forEach(function(r){u[r.key]=o(r)}),u}function Fe(n,t){n=n||{},t=t||{};function o(h){return h in t?t[h]:n[h]}var u=Object.create(null),r=[];for(var s in n)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,p={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];p[u[a][i]]=o(f)}p[a]=o(a)}for(i=0;i<r.length;i++)p[r[i]]=o(r[i]);return p}function B(n,t,o){return o[t]!=null?o[t]:n.props[t]}function Ue(n,t){return se(n.children,function(o){return m.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:B(o,"appear",n),enter:B(o,"enter",n),exit:B(o,"exit",n)})})}function qe(n,t,o){var u=se(n.children),r=Fe(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var p=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!p||h)?r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:!0,exit:B(i,"exit",n),enter:B(i,"enter",n)}):!a&&p&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&p&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:f.props.in,exit:B(i,"exit",n),enter:B(i,"enter",n)}))}}),r}var Ie=Object.values||function(n){return Object.keys(n).map(function(t){return n[t]})},$e={component:"div",childFactory:function(t){return t}},Z=function(n){H._inheritsLoose(t,n);function t(u,r){var s;s=n.call(this,u,r)||this;var i=s.handleExited.bind(Le(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,p=s.handleExited,a=s.firstRender;return{children:a?Ue(r,p):qe(r,i,p),firstRender:!1}},o.handleExited=function(r,s){var i=se(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(p){var a=Q({},p.children);return delete a[r.key],{children:a}}))},o.render=function(){var r=this.props,s=r.component,i=r.childFactory,p=H._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=Ie(this.state.children).map(i);return delete p.appear,delete p.enter,delete p.exit,s===null?m.createElement(H.TransitionGroupContext.Provider,{value:a},f):m.createElement(H.TransitionGroupContext.Provider,{value:a},m.createElement(s,p,f))},t}(m.Component);Z.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};Z.defaultProps=$e;function pe(n){const{className:t,classes:o,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:p,onExited:a,timeout:f}=n,[h,g]=d.useState(!1),T=e.clsx(t,o.ripple,o.rippleVisible,u&&o.ripplePulsate),D={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(o.child,h&&o.childLeaving,u&&o.childPulsate);return!p&&!h&&g(!0),d.useEffect(()=>{if(!p&&a!=null){const w=setTimeout(a,f);return()=>{clearTimeout(w)}}},[a,p,f]),L.jsx("span",{className:T,style:D,children:L.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(pe.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const b=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ne=550,ze=80,_e=oe.keyframes`
|
|
3
|
+
0% {
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
opacity: 0.1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
100% {
|
|
9
|
+
transform: scale(1);
|
|
10
|
+
opacity: 0.3;
|
|
11
|
+
}
|
|
12
|
+
`,Ae=oe.keyframes`
|
|
13
|
+
0% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
`,Xe=oe.keyframes`
|
|
21
|
+
0% {
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
50% {
|
|
26
|
+
transform: scale(0.92);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
transform: scale(1);
|
|
31
|
+
}
|
|
32
|
+
`,Ye=$.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ke=$.styled(pe,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
33
|
+
opacity: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
|
|
36
|
+
&.${b.rippleVisible} {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
transform: scale(1);
|
|
39
|
+
animation-name: ${_e};
|
|
40
|
+
animation-duration: ${ne}ms;
|
|
41
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.${b.ripplePulsate} {
|
|
45
|
+
animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& .${b.child} {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background-color: currentColor;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .${b.childLeaving} {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
animation-name: ${Ae};
|
|
60
|
+
animation-duration: ${ne}ms;
|
|
61
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .${b.childPulsate} {
|
|
65
|
+
position: absolute;
|
|
66
|
+
/* @noflip */
|
|
67
|
+
left: 0px;
|
|
68
|
+
top: 0;
|
|
69
|
+
animation-name: ${Xe};
|
|
70
|
+
animation-duration: 2500ms;
|
|
71
|
+
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
72
|
+
animation-iteration-count: infinite;
|
|
73
|
+
animation-delay: 200ms;
|
|
74
|
+
}
|
|
75
|
+
`,fe=d.forwardRef(function(t,o){const u=$.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...p}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const T=d.useRef(!1),D=I.useTimeout(),y=d.useRef(null),w=d.useRef(null),E=d.useCallback(c=>{const{pulsate:M,rippleX:P,rippleY:q,rippleSize:S,cb:z}=c;f(R=>[...R,L.jsx(Ke,{classes:{ripple:e.clsx(s.ripple,b.ripple),rippleVisible:e.clsx(s.rippleVisible,b.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,b.ripplePulsate),child:e.clsx(s.child,b.child),childLeaving:e.clsx(s.childLeaving,b.childLeaving),childPulsate:e.clsx(s.childPulsate,b.childPulsate)},timeout:ne,pulsate:M,rippleX:P,rippleY:q,rippleSize:S},h.current)]),h.current+=1,g.current=z},[s]),F=d.useCallback((c={},M={},P=()=>{})=>{const{pulsate:q=!1,center:S=r||M.pulsate,fakeElement:z=!1}=M;if((c==null?void 0:c.type)==="mousedown"&&T.current){T.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(T.current=!0);const R=z?null:w.current,V=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,x,j;if(S||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)N=Math.round(V.width/2),x=Math.round(V.height/2);else{const{clientX:_,clientY:k}=c.touches&&c.touches.length>0?c.touches[0]:c;N=Math.round(_-V.left),x=Math.round(k-V.top)}if(S)j=Math.sqrt((2*V.width**2+V.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-N),N)*2+2,k=Math.max(Math.abs((R?R.clientHeight:0)-x),x)*2+2;j=Math.sqrt(_**2+k**2)}c!=null&&c.touches?y.current===null&&(y.current=()=>{E({pulsate:q,rippleX:N,rippleY:x,rippleSize:j,cb:P})},D.start(ze,()=>{y.current&&(y.current(),y.current=null)})):E({pulsate:q,rippleX:N,rippleY:x,rippleSize:j,cb:P})},[r,E,D]),K=d.useCallback(()=>{F({},{pulsate:!0})},[F]),U=d.useCallback((c,M)=>{if(D.clear(),(c==null?void 0:c.type)==="touchend"&&y.current){y.current(),y.current=null,D.start(0,()=>{U(c,M)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=M},[D]);return d.useImperativeHandle(o,()=>({pulsate:K,start:F,stop:U}),[K,F,U]),L.jsx(Ye,{className:e.clsx(b.root,s.root,i),ref:w,...p,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(fe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function Ge(n){return e.generateUtilityClass("MuiButtonBase",n)}const We=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),He=n=>{const{disabled:t,focusVisible:o,focusVisibleClassName:u,classes:r}=n,s={root:["root",t&&"disabled",o&&"focusVisible"]},i=$.composeClasses(s,Ge,r);return o&&u&&(i.root+=` ${u}`),i},Je=$.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${We.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=d.forwardRef(function(t,o){const u=$.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:p,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:T=!1,focusVisibleClassName:D,LinkComponent:y="a",onBlur:w,onClick:E,onContextMenu:F,onDragLeave:K,onFocus:U,onFocusVisible:c,onKeyDown:M,onKeyUp:P,onMouseDown:q,onMouseLeave:S,onMouseUp:z,onTouchEnd:R,onTouchMove:V,onTouchStart:N,tabIndex:x=0,TouchRippleProps:j,touchRippleRef:_,type:k,...A}=u,X=d.useRef(null),C=Oe(),he=ae.useForkRef(C.ref,_),[O,G]=d.useState(!1);f&&O&&G(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const me=C.shouldMount&&!h&&!f;d.useEffect(()=>{O&&T&&!h&&C.pulsate()},[h,T,O,C]);function v(l,ie,je=g){return I.useEventCallback(le=>(ie&&ie(le),je||C[l](le),!0))}const ye=v("start",q),be=v("stop",F),Te=v("stop",K),Pe=v("stop",z),ge=v("stop",l=>{O&&l.preventDefault(),S&&S(l)}),Me=v("start",N),Re=v("stop",R),Ee=v("stop",V),xe=v("stop",l=>{te(l.target)||G(!1),w&&w(l)},!1),Ce=I.useEventCallback(l=>{X.current||(X.current=l.currentTarget),te(l.target)&&(G(!0),c&&c(l)),U&&U(l)}),ee=()=>{const l=X.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},ve=I.useEventCallback(l=>{T&&!l.repeat&&O&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),M&&M(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),E&&E(l))}),De=I.useEventCallback(l=>{T&&l.key===" "&&O&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),E&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&E(l)});let W=a;W==="button"&&(A.href||A.to)&&(W=y);const Y={};W==="button"?(Y.type=k===void 0?"button":k,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const Ve=ae.useForkRef(o,X),re={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:T,tabIndex:x,focusVisible:O},Ne=He(re);return L.jsxs(Je,{as:W,className:e.clsx(Ne.root,p),ownerState:re,onBlur:xe,onClick:E,onContextMenu:be,onFocus:Ce,onKeyDown:ve,onKeyUp:De,onMouseDown:ye,onMouseLeave:ge,onMouseUp:Pe,onDragLeave:Te,onTouchEnd:Re,onTouchMove:Ee,onTouchStart:Me,ref:Ve,tabIndex:f?-1:x,type:k,...Y,...A,children:[i,me?L.jsx(fe,{ref:he,center:s,...j}):null]})});process.env.NODE_ENV!=="production"&&(de.propTypes={action:ce.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:ce.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});exports.ButtonBase=de;exports.TransitionGroup=Z;exports._extends=Q;exports.isFocusVisible=te;
|