@solostylist/ui-kit 1.0.69 → 1.0.70
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/{Box-6v9dDzdR.js → Box-reWd7MO-.js} +16 -16
- package/dist/{Close-Cq0bfDqS.js → Close-CVFQMMUW.js} +2 -2
- package/dist/{HelpOutlineOutlined-CrsJM_1C.js → HelpOutlineOutlined-Dw_XSjYK.js} +2 -2
- package/dist/{Menu-C3Ku2lqS.js → Menu-CGTDGEoX.js} +23 -23
- package/dist/{MenuItem-ODcKB-fe.js → MenuItem-Bdna3McP.js} +84 -86
- package/dist/{Select-CukDtghB.js → Select-D54ugORZ.js} +473 -466
- package/dist/{Stack-DvJ0EY9Z.js → Stack-ISlVeD89.js} +23 -24
- package/dist/{TransitionGroup-D2o-MIVr.js → TransitionGroup-DuMpOHcM.js} +1 -1
- package/dist/{Typography-BnBI5JmA.js → Typography-D38zoHJr.js} +42 -44
- package/dist/{buttonBaseClasses-jvvoR1a5.js → buttonBaseClasses-CF7RfAgE.js} +2 -2
- package/dist/{chipClasses-DCs-mJQc.js → chipClasses-WFcUH6gU.js} +2 -2
- package/dist/chunk-5P46WS5M-OG9gpzOE.js +4862 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/createSvgIcon-DN-sh_sr.js +520 -0
- package/dist/createTheme-DuP3DZSF.js +3005 -0
- package/dist/defaultTheme-BDQAWvCM.js +55 -0
- package/dist/{extendSxProp-B_wB9j9Z.js → extendSxProp-KtEeHd8h.js} +1 -1
- package/dist/{generateUtilityClasses-DMkCz287.js → generateUtilityClasses-BpNk3DNr.js} +2 -2
- package/dist/{iconButtonClasses-FfLS-X2M.js → iconButtonClasses-DMst1jJO.js} +2 -2
- package/dist/identifier-BKLqN993.js +4 -0
- package/dist/{index-Bs0mGmsj.js → index-x815ub0T.js} +46 -40
- package/dist/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +13 -13
- package/dist/{outlinedInputClasses-rfxFh721.js → outlinedInputClasses-E4FwVkZh.js} +2 -2
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-button-link/s-button-link.js +1 -1
- package/dist/s-checkbox/s-checkbox.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +2 -2
- package/dist/s-data-table/s-data-table.js +271 -270
- package/dist/s-date-picker/s-date-picker.js +28 -30
- package/dist/s-datetime-picker/s-datetime-picker.js +655 -657
- package/dist/s-dialog/s-dialog.js +2 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
- package/dist/s-file-icon/s-file-icon.js +2 -2
- package/dist/s-form/s-form.js +2 -2
- package/dist/s-glow-button/s-glow-button.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
- package/dist/s-icon-button/s-icon-button.js +1 -1
- package/dist/s-label/s-label.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.js +196 -199
- package/dist/s-moving-border/s-moving-border.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +4 -4
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-skeleton/s-skeleton.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +4252 -4226
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-stripe/stripe-input.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-truncation/s-text-truncation.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +4 -4
- package/dist/{tabClasses-PH6lKUvl.js → tabClasses-LXCeUS4i.js} +2 -2
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/customizations/data-display.js +8 -8
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +4 -4
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-ZiwLh_jE.js → typographyClasses-QAKcrTAX.js} +2 -2
- package/dist/{useMobilePicker-BzxyifzK.js → useMobilePicker-DlmTFHhN.js} +2811 -2789
- package/dist/{useSlot-C4SHe-Bx.js → useSlot-CiHsL61G.js} +134 -134
- package/dist/{useTheme-Bn9C3FUK.js → useTheme-Dy5JmnOe.js} +1 -1
- package/dist/{useThemeProps-BUFb1TtB.js → useThemeProps-BGjjVPlJ.js} +2 -2
- package/dist/utils/dayjs.js +14 -14
- package/dist/{warning-D7W5-6D5.js → warning-DWsjz4u6.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-GIMSRCVW-DUi-T6vz.js +0 -10072
- package/dist/createSvgIcon-BTLVR-ad.js +0 -504
- package/dist/createTheme-BlQh0eyI.js +0 -2268
- package/dist/defaultTheme-CkLTWyeE.js +0 -42
- package/dist/identifier-CGgVMHib.js +0 -18
- package/dist/index-5OJKu9qh.js +0 -667
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var W = (e, n, t) =>
|
|
4
|
-
import {
|
|
1
|
+
var ke = Object.defineProperty;
|
|
2
|
+
var je = (e, n, t) => n in e ? ke(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var W = (e, n, t) => je(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { b as M, u as re, a as P, d as Oe } from "./createSvgIcon-DN-sh_sr.js";
|
|
5
5
|
import * as h from "react";
|
|
6
|
-
import { P as o } from "./
|
|
7
|
-
import { j as x } from "./jsx-runtime-
|
|
8
|
-
import { g as
|
|
9
|
-
import {
|
|
10
|
-
import { T as Ae } from "./TransitionGroup-D2o-MIVr.js";
|
|
6
|
+
import { P as o } from "./createTheme-DuP3DZSF.js";
|
|
7
|
+
import { j as x } from "./jsx-runtime-DywqP_6a.js";
|
|
8
|
+
import { g as $e } from "./generateUtilityClasses-BpNk3DNr.js";
|
|
9
|
+
import { T as Ae } from "./TransitionGroup-DuMpOHcM.js";
|
|
11
10
|
import { keyframes as ee } from "@emotion/react";
|
|
12
|
-
import { g as De, b as Le } from "./buttonBaseClasses-
|
|
13
|
-
import { u as
|
|
11
|
+
import { g as De, b as Le } from "./buttonBaseClasses-CF7RfAgE.js";
|
|
12
|
+
import { u as Be } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
+
import { c as se } from "./defaultTheme-BDQAWvCM.js";
|
|
14
14
|
function v(e) {
|
|
15
15
|
const n = h.useRef(e);
|
|
16
|
-
return
|
|
16
|
+
return Be(() => {
|
|
17
17
|
n.current = e;
|
|
18
18
|
}), h.useRef((...t) => (
|
|
19
19
|
// @ts-expect-error hide `this`
|
|
@@ -43,17 +43,17 @@ function Q(...e) {
|
|
|
43
43
|
n.current && (n.current(), n.current = void 0), s != null && (n.current = t(s));
|
|
44
44
|
}, e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function He(e, n) {
|
|
47
47
|
const t = e.charCodeAt(2);
|
|
48
48
|
return e[0] === "o" && e[1] === "n" && t >= 65 && t <= 90 && typeof n == "function";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function yt(e, n) {
|
|
51
51
|
if (!e)
|
|
52
52
|
return n;
|
|
53
53
|
function t(f, i) {
|
|
54
54
|
const l = {};
|
|
55
55
|
return Object.keys(i).forEach((a) => {
|
|
56
|
-
|
|
56
|
+
He(a, i[a]) && typeof f[a] == "function" && (l[a] = (...d) => {
|
|
57
57
|
f[a](...d), i[a](...d);
|
|
58
58
|
});
|
|
59
59
|
}), l;
|
|
@@ -101,19 +101,19 @@ function mt(e, n) {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ue(e, n) {
|
|
105
105
|
return process.env.NODE_ENV === "production" ? () => null : function(...s) {
|
|
106
106
|
return e(...s) || n(...s);
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
109
|
+
const xe = o.oneOfType([o.func, o.object]);
|
|
110
|
+
function ze(e) {
|
|
111
111
|
const {
|
|
112
112
|
prototype: n = {}
|
|
113
113
|
} = e;
|
|
114
114
|
return !!n.isReactComponent;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ke(e, n, t, s, r) {
|
|
117
117
|
const u = e[n], f = r || n;
|
|
118
118
|
if (u == null || // When server-side rendering React doesn't warn either.
|
|
119
119
|
// This is not an accurate check for SSR.
|
|
@@ -122,10 +122,10 @@ function ze(e, n, t, s, r) {
|
|
|
122
122
|
typeof window > "u")
|
|
123
123
|
return null;
|
|
124
124
|
let i;
|
|
125
|
-
return typeof u == "function" && !
|
|
125
|
+
return typeof u == "function" && !ze(u) && (i = "Did you accidentally provide a plain function component instead?"), i !== void 0 ? new Error(`Invalid ${s} \`${f}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
function
|
|
127
|
+
const Ve = Ue(o.elementType, Ke);
|
|
128
|
+
function oe(e) {
|
|
129
129
|
try {
|
|
130
130
|
return e.matches(":focus-visible");
|
|
131
131
|
} catch {
|
|
@@ -134,10 +134,10 @@ function se(e) {
|
|
|
134
134
|
}
|
|
135
135
|
return !1;
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
const t = h.useRef(
|
|
140
|
-
return t.current ===
|
|
137
|
+
const ie = {};
|
|
138
|
+
function ue(e, n) {
|
|
139
|
+
const t = h.useRef(ie);
|
|
140
|
+
return t.current === ie && (t.current = e(n)), t;
|
|
141
141
|
}
|
|
142
142
|
class G {
|
|
143
143
|
constructor() {
|
|
@@ -157,11 +157,11 @@ class G {
|
|
|
157
157
|
return new G();
|
|
158
158
|
}
|
|
159
159
|
static use() {
|
|
160
|
-
const n =
|
|
160
|
+
const n = ue(G.create).current, [t, s] = h.useState(!1);
|
|
161
161
|
return n.shouldMount = t, n.setShouldMount = s, h.useEffect(n.mountEffect, [t]), n;
|
|
162
162
|
}
|
|
163
163
|
mount() {
|
|
164
|
-
return this.mounted || (this.mounted =
|
|
164
|
+
return this.mounted || (this.mounted = Xe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
165
165
|
}
|
|
166
166
|
/* Ripple API */
|
|
167
167
|
start(...n) {
|
|
@@ -183,19 +183,19 @@ class G {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Ye() {
|
|
187
187
|
return G.use();
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Xe() {
|
|
190
190
|
let e, n;
|
|
191
191
|
const t = new Promise((s, r) => {
|
|
192
192
|
e = s, n = r;
|
|
193
193
|
});
|
|
194
194
|
return t.resolve = e, t.reject = n, t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
h.useEffect(e,
|
|
196
|
+
const qe = [];
|
|
197
|
+
function Fe(e) {
|
|
198
|
+
h.useEffect(e, qe);
|
|
199
199
|
}
|
|
200
200
|
class te {
|
|
201
201
|
constructor() {
|
|
@@ -217,11 +217,11 @@ class te {
|
|
|
217
217
|
}, n);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const e =
|
|
222
|
-
return
|
|
220
|
+
function We() {
|
|
221
|
+
const e = ue(te.create).current;
|
|
222
|
+
return Fe(e.disposeEffect), e;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ae(e) {
|
|
225
225
|
const {
|
|
226
226
|
className: n,
|
|
227
227
|
classes: t,
|
|
@@ -253,7 +253,7 @@ function ue(e) {
|
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
process.env.NODE_ENV !== "production" && (
|
|
256
|
+
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
257
257
|
/**
|
|
258
258
|
* Override or extend the styles applied to the component.
|
|
259
259
|
*/
|
|
@@ -288,7 +288,7 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
|
288
288
|
*/
|
|
289
289
|
timeout: o.number.isRequired
|
|
290
290
|
});
|
|
291
|
-
const E =
|
|
291
|
+
const E = $e("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), S = 550, Ze = 80, _e = ee`
|
|
292
292
|
0% {
|
|
293
293
|
transform: scale(0);
|
|
294
294
|
opacity: 0.1;
|
|
@@ -298,7 +298,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
298
298
|
transform: scale(1);
|
|
299
299
|
opacity: 0.3;
|
|
300
300
|
}
|
|
301
|
-
`,
|
|
301
|
+
`, ve = ee`
|
|
302
302
|
0% {
|
|
303
303
|
opacity: 1;
|
|
304
304
|
}
|
|
@@ -306,7 +306,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
306
306
|
100% {
|
|
307
307
|
opacity: 0;
|
|
308
308
|
}
|
|
309
|
-
`,
|
|
309
|
+
`, Ge = ee`
|
|
310
310
|
0% {
|
|
311
311
|
transform: scale(1);
|
|
312
312
|
}
|
|
@@ -318,7 +318,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
318
318
|
100% {
|
|
319
319
|
transform: scale(1);
|
|
320
320
|
}
|
|
321
|
-
`,
|
|
321
|
+
`, Je = P("span", {
|
|
322
322
|
name: "MuiTouchRipple",
|
|
323
323
|
slot: "Root"
|
|
324
324
|
})({
|
|
@@ -331,7 +331,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
331
331
|
bottom: 0,
|
|
332
332
|
left: 0,
|
|
333
333
|
borderRadius: "inherit"
|
|
334
|
-
}),
|
|
334
|
+
}), Qe = P(ae, {
|
|
335
335
|
name: "MuiTouchRipple",
|
|
336
336
|
slot: "Ripple"
|
|
337
337
|
})`
|
|
@@ -341,7 +341,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
341
341
|
&.${E.rippleVisible} {
|
|
342
342
|
opacity: 0.3;
|
|
343
343
|
transform: scale(1);
|
|
344
|
-
animation-name: ${
|
|
344
|
+
animation-name: ${_e};
|
|
345
345
|
animation-duration: ${S}ms;
|
|
346
346
|
animation-timing-function: ${({
|
|
347
347
|
theme: e
|
|
@@ -365,7 +365,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
365
365
|
|
|
366
366
|
& .${E.childLeaving} {
|
|
367
367
|
opacity: 0;
|
|
368
|
-
animation-name: ${
|
|
368
|
+
animation-name: ${ve};
|
|
369
369
|
animation-duration: ${S}ms;
|
|
370
370
|
animation-timing-function: ${({
|
|
371
371
|
theme: e
|
|
@@ -377,7 +377,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
377
377
|
/* @noflip */
|
|
378
378
|
left: 0px;
|
|
379
379
|
top: 0;
|
|
380
|
-
animation-name: ${
|
|
380
|
+
animation-name: ${Ge};
|
|
381
381
|
animation-duration: 2500ms;
|
|
382
382
|
animation-timing-function: ${({
|
|
383
383
|
theme: e
|
|
@@ -385,8 +385,8 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
385
385
|
animation-iteration-count: infinite;
|
|
386
386
|
animation-delay: 200ms;
|
|
387
387
|
}
|
|
388
|
-
`,
|
|
389
|
-
const s =
|
|
388
|
+
`, le = /* @__PURE__ */ h.forwardRef(function(n, t) {
|
|
389
|
+
const s = re({
|
|
390
390
|
props: n,
|
|
391
391
|
name: "MuiTouchRipple"
|
|
392
392
|
}), {
|
|
@@ -398,7 +398,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
398
398
|
h.useEffect(() => {
|
|
399
399
|
m.current && (m.current(), m.current = null);
|
|
400
400
|
}, [l]);
|
|
401
|
-
const b = h.useRef(!1), R =
|
|
401
|
+
const b = h.useRef(!1), R = We(), y = h.useRef(null), T = h.useRef(null), N = h.useCallback((p) => {
|
|
402
402
|
const {
|
|
403
403
|
pulsate: I,
|
|
404
404
|
rippleX: w,
|
|
@@ -406,7 +406,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
406
406
|
rippleSize: B,
|
|
407
407
|
cb: V
|
|
408
408
|
} = p;
|
|
409
|
-
a((k) => [...k, /* @__PURE__ */ x.jsx(
|
|
409
|
+
a((k) => [...k, /* @__PURE__ */ x.jsx(Qe, {
|
|
410
410
|
classes: {
|
|
411
411
|
ripple: M(u.ripple, E.ripple),
|
|
412
412
|
rippleVisible: M(u.rippleVisible, E.rippleVisible),
|
|
@@ -421,7 +421,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
421
421
|
rippleY: K,
|
|
422
422
|
rippleSize: B
|
|
423
423
|
}, d.current)]), d.current += 1, m.current = V;
|
|
424
|
-
}, [u]),
|
|
424
|
+
}, [u]), $ = h.useCallback((p = {}, I = {}, w = () => {
|
|
425
425
|
}) => {
|
|
426
426
|
const {
|
|
427
427
|
pulsate: K = !1,
|
|
@@ -434,50 +434,50 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
436
|
(p == null ? void 0 : p.type) === "touchstart" && (b.current = !0);
|
|
437
|
-
const k = V ? null : T.current,
|
|
437
|
+
const k = V ? null : T.current, A = k ? k.getBoundingClientRect() : {
|
|
438
438
|
width: 0,
|
|
439
439
|
height: 0,
|
|
440
440
|
left: 0,
|
|
441
441
|
top: 0
|
|
442
442
|
};
|
|
443
|
-
let
|
|
443
|
+
let D, j, L;
|
|
444
444
|
if (B || p === void 0 || p.clientX === 0 && p.clientY === 0 || !p.clientX && !p.touches)
|
|
445
|
-
|
|
445
|
+
D = Math.round(A.width / 2), j = Math.round(A.height / 2);
|
|
446
446
|
else {
|
|
447
447
|
const {
|
|
448
448
|
clientX: Y,
|
|
449
449
|
clientY: H
|
|
450
450
|
} = p.touches && p.touches.length > 0 ? p.touches[0] : p;
|
|
451
|
-
|
|
451
|
+
D = Math.round(Y - A.left), j = Math.round(H - A.top);
|
|
452
452
|
}
|
|
453
453
|
if (B)
|
|
454
|
-
|
|
454
|
+
L = Math.sqrt((2 * A.width ** 2 + A.height ** 2) / 3), L % 2 === 0 && (L += 1);
|
|
455
455
|
else {
|
|
456
|
-
const Y = Math.max(Math.abs((k ? k.clientWidth : 0) -
|
|
457
|
-
|
|
456
|
+
const Y = Math.max(Math.abs((k ? k.clientWidth : 0) - D), D) * 2 + 2, H = Math.max(Math.abs((k ? k.clientHeight : 0) - j), j) * 2 + 2;
|
|
457
|
+
L = Math.sqrt(Y ** 2 + H ** 2);
|
|
458
458
|
}
|
|
459
459
|
p != null && p.touches ? y.current === null && (y.current = () => {
|
|
460
460
|
N({
|
|
461
461
|
pulsate: K,
|
|
462
|
-
rippleX:
|
|
462
|
+
rippleX: D,
|
|
463
463
|
rippleY: j,
|
|
464
|
-
rippleSize:
|
|
464
|
+
rippleSize: L,
|
|
465
465
|
cb: w
|
|
466
466
|
});
|
|
467
|
-
}, R.start(
|
|
467
|
+
}, R.start(Ze, () => {
|
|
468
468
|
y.current && (y.current(), y.current = null);
|
|
469
469
|
})) : N({
|
|
470
470
|
pulsate: K,
|
|
471
|
-
rippleX:
|
|
471
|
+
rippleX: D,
|
|
472
472
|
rippleY: j,
|
|
473
|
-
rippleSize:
|
|
473
|
+
rippleSize: L,
|
|
474
474
|
cb: w
|
|
475
475
|
});
|
|
476
476
|
}, [r, N, R]), z = h.useCallback(() => {
|
|
477
|
-
|
|
477
|
+
$({}, {
|
|
478
478
|
pulsate: !0
|
|
479
479
|
});
|
|
480
|
-
}, [
|
|
480
|
+
}, [$]), C = h.useCallback((p, I) => {
|
|
481
481
|
if (R.clear(), (p == null ? void 0 : p.type) === "touchend" && y.current) {
|
|
482
482
|
y.current(), y.current = null, R.start(0, () => {
|
|
483
483
|
C(p, I);
|
|
@@ -488,9 +488,9 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
488
488
|
}, [R]);
|
|
489
489
|
return h.useImperativeHandle(t, () => ({
|
|
490
490
|
pulsate: z,
|
|
491
|
-
start:
|
|
491
|
+
start: $,
|
|
492
492
|
stop: C
|
|
493
|
-
}), [z,
|
|
493
|
+
}), [z, $, C]), /* @__PURE__ */ x.jsx(Je, {
|
|
494
494
|
className: M(E.root, u.root, f),
|
|
495
495
|
ref: T,
|
|
496
496
|
...i,
|
|
@@ -501,7 +501,7 @@ const E = je("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
|
|
|
501
501
|
})
|
|
502
502
|
});
|
|
503
503
|
});
|
|
504
|
-
process.env.NODE_ENV !== "production" && (
|
|
504
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
505
505
|
/**
|
|
506
506
|
* If `true`, the ripple starts at the center of the component
|
|
507
507
|
* rather than at the point of interaction.
|
|
@@ -516,7 +516,7 @@ process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
|
516
516
|
*/
|
|
517
517
|
className: o.string
|
|
518
518
|
});
|
|
519
|
-
const
|
|
519
|
+
const Se = (e) => {
|
|
520
520
|
const {
|
|
521
521
|
disabled: n,
|
|
522
522
|
focusVisible: t,
|
|
@@ -526,7 +526,7 @@ const Qe = (e) => {
|
|
|
526
526
|
root: ["root", n && "disabled", t && "focusVisible"]
|
|
527
527
|
}, De, r);
|
|
528
528
|
return t && s && (f.root += ` ${s}`), f;
|
|
529
|
-
},
|
|
529
|
+
}, Pe = P("button", {
|
|
530
530
|
name: "MuiButtonBase",
|
|
531
531
|
slot: "Root"
|
|
532
532
|
})({
|
|
@@ -568,8 +568,8 @@ const Qe = (e) => {
|
|
|
568
568
|
"@media print": {
|
|
569
569
|
colorAdjust: "exact"
|
|
570
570
|
}
|
|
571
|
-
}),
|
|
572
|
-
const s =
|
|
571
|
+
}), et = /* @__PURE__ */ h.forwardRef(function(n, t) {
|
|
572
|
+
const s = re({
|
|
573
573
|
props: n,
|
|
574
574
|
name: "MuiButtonBase"
|
|
575
575
|
}), {
|
|
@@ -586,7 +586,7 @@ const Qe = (e) => {
|
|
|
586
586
|
LinkComponent: y = "a",
|
|
587
587
|
onBlur: T,
|
|
588
588
|
onClick: N,
|
|
589
|
-
onContextMenu:
|
|
589
|
+
onContextMenu: $,
|
|
590
590
|
onDragLeave: z,
|
|
591
591
|
onFocus: C,
|
|
592
592
|
onFocusVisible: p,
|
|
@@ -596,37 +596,37 @@ const Qe = (e) => {
|
|
|
596
596
|
onMouseLeave: B,
|
|
597
597
|
onMouseUp: V,
|
|
598
598
|
onTouchEnd: k,
|
|
599
|
-
onTouchMove:
|
|
600
|
-
onTouchStart:
|
|
599
|
+
onTouchMove: A,
|
|
600
|
+
onTouchStart: D,
|
|
601
601
|
tabIndex: j = 0,
|
|
602
|
-
TouchRippleProps:
|
|
602
|
+
TouchRippleProps: L,
|
|
603
603
|
touchRippleRef: Y,
|
|
604
604
|
type: H,
|
|
605
605
|
...X
|
|
606
|
-
} = s, q = h.useRef(null), g =
|
|
606
|
+
} = s, q = h.useRef(null), g = Ye(), fe = Q(g.ref, Y), [U, Z] = h.useState(!1);
|
|
607
607
|
a && U && Z(!1), h.useImperativeHandle(r, () => ({
|
|
608
608
|
focusVisible: () => {
|
|
609
609
|
Z(!0), q.current.focus();
|
|
610
610
|
}
|
|
611
611
|
}), []);
|
|
612
|
-
const
|
|
612
|
+
const pe = g.shouldMount && !d && !a;
|
|
613
613
|
h.useEffect(() => {
|
|
614
614
|
U && b && !d && g.pulsate();
|
|
615
615
|
}, [d, b, U, g]);
|
|
616
|
-
const
|
|
616
|
+
const he = O(g, "start", K, m), de = O(g, "stop", $, m), me = O(g, "stop", z, m), ye = O(g, "stop", V, m), be = O(g, "stop", (c) => {
|
|
617
617
|
U && c.preventDefault(), B && B(c);
|
|
618
|
-
}, m),
|
|
619
|
-
|
|
620
|
-
}, !1),
|
|
621
|
-
q.current || (q.current = c.currentTarget),
|
|
618
|
+
}, m), ge = O(g, "start", D, m), Re = O(g, "stop", k, m), Te = O(g, "stop", A, m), Me = O(g, "stop", (c) => {
|
|
619
|
+
oe(c.target) || Z(!1), T && T(c);
|
|
620
|
+
}, !1), Ee = v((c) => {
|
|
621
|
+
q.current || (q.current = c.currentTarget), oe(c.target) && (Z(!0), p && p(c)), C && C(c);
|
|
622
622
|
}), J = () => {
|
|
623
623
|
const c = q.current;
|
|
624
624
|
return l && l !== "button" && !(c.tagName === "A" && c.href);
|
|
625
|
-
},
|
|
625
|
+
}, Ne = v((c) => {
|
|
626
626
|
b && !c.repeat && U && c.key === " " && g.stop(c, () => {
|
|
627
627
|
g.start(c);
|
|
628
628
|
}), c.target === c.currentTarget && J() && c.key === " " && c.preventDefault(), I && I(c), c.target === c.currentTarget && J() && c.key === "Enter" && !a && (c.preventDefault(), N && N(c));
|
|
629
|
-
}),
|
|
629
|
+
}), Ce = v((c) => {
|
|
630
630
|
b && c.key === " " && U && !c.defaultPrevented && g.stop(c, () => {
|
|
631
631
|
g.pulsate(c);
|
|
632
632
|
}), w && w(c), N && c.target === c.currentTarget && J() && c.key === " " && !c.defaultPrevented && N(c);
|
|
@@ -635,7 +635,7 @@ const Qe = (e) => {
|
|
|
635
635
|
_ === "button" && (X.href || X.to) && (_ = y);
|
|
636
636
|
const F = {};
|
|
637
637
|
_ === "button" ? (F.type = H === void 0 ? "button" : H, F.disabled = a) : (!X.href && !X.to && (F.role = "button"), a && (F["aria-disabled"] = a));
|
|
638
|
-
const
|
|
638
|
+
const we = Q(t, q), ne = {
|
|
639
639
|
...s,
|
|
640
640
|
centerRipple: u,
|
|
641
641
|
component: l,
|
|
@@ -645,40 +645,40 @@ const Qe = (e) => {
|
|
|
645
645
|
focusRipple: b,
|
|
646
646
|
tabIndex: j,
|
|
647
647
|
focusVisible: U
|
|
648
|
-
},
|
|
649
|
-
return /* @__PURE__ */ x.jsxs(
|
|
648
|
+
}, Ie = Se(ne);
|
|
649
|
+
return /* @__PURE__ */ x.jsxs(Pe, {
|
|
650
650
|
as: _,
|
|
651
|
-
className: M(
|
|
651
|
+
className: M(Ie.root, i),
|
|
652
652
|
ownerState: ne,
|
|
653
|
-
onBlur:
|
|
653
|
+
onBlur: Me,
|
|
654
654
|
onClick: N,
|
|
655
|
-
onContextMenu:
|
|
656
|
-
onFocus:
|
|
657
|
-
onKeyDown:
|
|
658
|
-
onKeyUp:
|
|
659
|
-
onMouseDown:
|
|
660
|
-
onMouseLeave:
|
|
661
|
-
onMouseUp:
|
|
662
|
-
onDragLeave:
|
|
663
|
-
onTouchEnd:
|
|
664
|
-
onTouchMove:
|
|
665
|
-
onTouchStart:
|
|
666
|
-
ref:
|
|
655
|
+
onContextMenu: de,
|
|
656
|
+
onFocus: Ee,
|
|
657
|
+
onKeyDown: Ne,
|
|
658
|
+
onKeyUp: Ce,
|
|
659
|
+
onMouseDown: he,
|
|
660
|
+
onMouseLeave: be,
|
|
661
|
+
onMouseUp: ye,
|
|
662
|
+
onDragLeave: me,
|
|
663
|
+
onTouchEnd: Re,
|
|
664
|
+
onTouchMove: Te,
|
|
665
|
+
onTouchStart: ge,
|
|
666
|
+
ref: we,
|
|
667
667
|
tabIndex: a ? -1 : j,
|
|
668
668
|
type: H,
|
|
669
669
|
...F,
|
|
670
670
|
...X,
|
|
671
|
-
children: [f,
|
|
672
|
-
ref:
|
|
671
|
+
children: [f, pe ? /* @__PURE__ */ x.jsx(le, {
|
|
672
|
+
ref: fe,
|
|
673
673
|
center: u,
|
|
674
|
-
|
|
674
|
+
...L
|
|
675
675
|
}) : null]
|
|
676
676
|
});
|
|
677
677
|
});
|
|
678
678
|
function O(e, n, t, s = !1) {
|
|
679
679
|
return v((r) => (t && t(r), s || e[n](r), !0));
|
|
680
680
|
}
|
|
681
|
-
process.env.NODE_ENV !== "production" && (
|
|
681
|
+
process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
682
682
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
683
683
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
684
684
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -687,7 +687,7 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
687
687
|
* A ref for imperative actions.
|
|
688
688
|
* It currently only supports `focusVisible()` action.
|
|
689
689
|
*/
|
|
690
|
-
action:
|
|
690
|
+
action: xe,
|
|
691
691
|
/**
|
|
692
692
|
* If `true`, the ripples are centered.
|
|
693
693
|
* They won't start at the cursor interaction position.
|
|
@@ -710,7 +710,7 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
710
710
|
* The component used for the root node.
|
|
711
711
|
* Either a string to use a HTML element or a component.
|
|
712
712
|
*/
|
|
713
|
-
component:
|
|
713
|
+
component: Ve,
|
|
714
714
|
/**
|
|
715
715
|
* If `true`, the component is disabled.
|
|
716
716
|
* @default false
|
|
@@ -836,11 +836,11 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
836
836
|
*/
|
|
837
837
|
type: o.oneOfType([o.oneOf(["button", "reset", "submit"]), o.string])
|
|
838
838
|
});
|
|
839
|
-
function
|
|
839
|
+
function tt(e) {
|
|
840
840
|
return typeof e == "string";
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
return e === void 0 ||
|
|
842
|
+
function nt(e, n, t) {
|
|
843
|
+
return e === void 0 || tt(e) ? n : {
|
|
844
844
|
...n,
|
|
845
845
|
ownerState: {
|
|
846
846
|
...n.ownerState,
|
|
@@ -848,10 +848,10 @@ function tt(e, n, t) {
|
|
|
848
848
|
}
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function st(e, n, t) {
|
|
852
852
|
return typeof e == "function" ? e(n, t) : e;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function ot(e, n = []) {
|
|
855
855
|
if (e === void 0)
|
|
856
856
|
return {};
|
|
857
857
|
const t = {};
|
|
@@ -859,7 +859,7 @@ function st(e, n = []) {
|
|
|
859
859
|
t[s] = e[s];
|
|
860
860
|
}), t;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function ce(e) {
|
|
863
863
|
if (e === void 0)
|
|
864
864
|
return {};
|
|
865
865
|
const n = {};
|
|
@@ -867,7 +867,7 @@ function ie(e) {
|
|
|
867
867
|
n[t] = e[t];
|
|
868
868
|
}), n;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function it(e) {
|
|
871
871
|
const {
|
|
872
872
|
getSlotProps: n,
|
|
873
873
|
additionalProps: t,
|
|
@@ -876,7 +876,7 @@ function ot(e) {
|
|
|
876
876
|
className: u
|
|
877
877
|
} = e;
|
|
878
878
|
if (!n) {
|
|
879
|
-
const R =
|
|
879
|
+
const R = se(t == null ? void 0 : t.className, u, r == null ? void 0 : r.className, s == null ? void 0 : s.className), y = {
|
|
880
880
|
...t == null ? void 0 : t.style,
|
|
881
881
|
...r == null ? void 0 : r.style,
|
|
882
882
|
...s == null ? void 0 : s.style
|
|
@@ -890,10 +890,10 @@ function ot(e) {
|
|
|
890
890
|
internalRef: void 0
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
const f =
|
|
893
|
+
const f = ot({
|
|
894
894
|
...r,
|
|
895
895
|
...s
|
|
896
|
-
}), i =
|
|
896
|
+
}), i = ce(s), l = ce(r), a = n(f), d = se(a == null ? void 0 : a.className, t == null ? void 0 : t.className, u, r == null ? void 0 : r.className, s == null ? void 0 : s.className), m = {
|
|
897
897
|
...a == null ? void 0 : a.style,
|
|
898
898
|
...t == null ? void 0 : t.style,
|
|
899
899
|
...r == null ? void 0 : r.style,
|
|
@@ -909,7 +909,7 @@ function ot(e) {
|
|
|
909
909
|
internalRef: a.ref
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function bt(e, n) {
|
|
913
913
|
const {
|
|
914
914
|
className: t,
|
|
915
915
|
elementType: s,
|
|
@@ -927,18 +927,18 @@ function yt(e, n) {
|
|
|
927
927
|
[e]: void 0
|
|
928
928
|
},
|
|
929
929
|
...b
|
|
930
|
-
} = u, R = d[e] || s, y =
|
|
930
|
+
} = u, R = d[e] || s, y = st(m[e], r), {
|
|
931
931
|
props: {
|
|
932
932
|
component: T,
|
|
933
933
|
...N
|
|
934
934
|
},
|
|
935
|
-
internalRef:
|
|
936
|
-
} =
|
|
935
|
+
internalRef: $
|
|
936
|
+
} = it({
|
|
937
937
|
className: t,
|
|
938
938
|
...l,
|
|
939
939
|
externalForwardedProps: e === "root" ? b : void 0,
|
|
940
940
|
externalSlotProps: y
|
|
941
|
-
}), z = Q(
|
|
941
|
+
}), z = Q($, y == null ? void 0 : y.ref, n.ref), C = e === "root" ? T || a : T, p = nt(R, {
|
|
942
942
|
...e === "root" && !a && !d[e] && f,
|
|
943
943
|
...e !== "root" && !d[e] && f,
|
|
944
944
|
...N,
|
|
@@ -953,17 +953,17 @@ function yt(e, n) {
|
|
|
953
953
|
return [R, p];
|
|
954
954
|
}
|
|
955
955
|
export {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
956
|
+
et as B,
|
|
957
|
+
st as a,
|
|
958
|
+
bt as b,
|
|
959
|
+
Ue as c,
|
|
960
960
|
v as d,
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
961
|
+
Ve as e,
|
|
962
|
+
We as f,
|
|
963
|
+
ot as g,
|
|
964
|
+
it as h,
|
|
965
|
+
nt as i,
|
|
966
|
+
yt as m,
|
|
967
|
+
xe as r,
|
|
968
968
|
Q as u
|
|
969
969
|
};
|