@sinco/react 1.2.5-rc.7 → 1.2.5-rc.9
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/index.esm.js +190 -930
- package/package.json +2 -2
package/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import React__default, {
|
3
|
-
import {
|
2
|
+
import React__default, { isValidElement, cloneElement, Children, useState, useCallback, useEffect } from 'react';
|
3
|
+
import { InfoRounded, WarningRounded, ErrorRounded, CheckCircleRounded, Close, KeyboardArrowDown, KeyboardArrowUp, Warning, Info, SearchOutlined, AttachFile, UploadFileOutlined, DeleteOutline } from '@mui/icons-material';
|
4
4
|
import { withEmotionCache, ThemeContext, Global, keyframes, css } from '@emotion/react';
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
6
6
|
import * as ReactDOM from 'react-dom';
|
@@ -45,9 +45,9 @@ function _asyncToGenerator(n) {
|
|
45
45
|
function _defineProperty(e, r, t) {
|
46
46
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
47
47
|
value: t,
|
48
|
-
enumerable:
|
49
|
-
configurable:
|
50
|
-
writable:
|
48
|
+
enumerable: true,
|
49
|
+
configurable: true,
|
50
|
+
writable: true
|
51
51
|
}) : e[r] = t, e;
|
52
52
|
}
|
53
53
|
function _iterableToArray(r) {
|
@@ -61,15 +61,15 @@ function _iterableToArrayLimit(r, l) {
|
|
61
61
|
i,
|
62
62
|
u,
|
63
63
|
a = [],
|
64
|
-
f =
|
65
|
-
o =
|
64
|
+
f = true,
|
65
|
+
o = false;
|
66
66
|
try {
|
67
67
|
if (i = (t = t.call(r)).next, 0 === l) {
|
68
68
|
if (Object(t) !== t) return;
|
69
69
|
f = !1;
|
70
70
|
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
71
71
|
} catch (r) {
|
72
|
-
o =
|
72
|
+
o = true, n = r;
|
73
73
|
} finally {
|
74
74
|
try {
|
75
75
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
@@ -99,7 +99,7 @@ function ownKeys(e, r) {
|
|
99
99
|
function _objectSpread2(e) {
|
100
100
|
for (var r = 1; r < arguments.length; r++) {
|
101
101
|
var t = null != arguments[r] ? arguments[r] : {};
|
102
|
-
r % 2 ? ownKeys(Object(t),
|
102
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
103
103
|
_defineProperty(e, r, t[r]);
|
104
104
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
105
105
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
@@ -113,8 +113,8 @@ function _objectWithoutProperties(e, t) {
|
|
113
113
|
r,
|
114
114
|
i = _objectWithoutPropertiesLoose$1(e, t);
|
115
115
|
if (Object.getOwnPropertySymbols) {
|
116
|
-
var
|
117
|
-
for (r = 0; r <
|
116
|
+
var n = Object.getOwnPropertySymbols(e);
|
117
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
118
118
|
}
|
119
119
|
return i;
|
120
120
|
}
|
@@ -122,7 +122,7 @@ function _objectWithoutPropertiesLoose$1(r, e) {
|
|
122
122
|
if (null == r) return {};
|
123
123
|
var t = {};
|
124
124
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
125
|
-
if (e.
|
125
|
+
if (-1 !== e.indexOf(n)) continue;
|
126
126
|
t[n] = r[n];
|
127
127
|
}
|
128
128
|
return t;
|
@@ -145,9 +145,9 @@ function _regeneratorRuntime() {
|
|
145
145
|
function define(t, e, r) {
|
146
146
|
return Object.defineProperty(t, e, {
|
147
147
|
value: r,
|
148
|
-
enumerable:
|
149
|
-
configurable:
|
150
|
-
writable:
|
148
|
+
enumerable: true,
|
149
|
+
configurable: true,
|
150
|
+
writable: true
|
151
151
|
}), t[e];
|
152
152
|
}
|
153
153
|
try {
|
@@ -240,7 +240,7 @@ function _regeneratorRuntime() {
|
|
240
240
|
if ("throw" === i) throw a;
|
241
241
|
return {
|
242
242
|
value: t,
|
243
|
-
done:
|
243
|
+
done: true
|
244
244
|
};
|
245
245
|
}
|
246
246
|
for (n.method = i, n.arg = a;;) {
|
@@ -291,7 +291,7 @@ function _regeneratorRuntime() {
|
|
291
291
|
function Context(t) {
|
292
292
|
this.tryEntries = [{
|
293
293
|
tryLoc: "root"
|
294
|
-
}], t.forEach(pushTryEntry, this), this.reset(
|
294
|
+
}], t.forEach(pushTryEntry, this), this.reset(true);
|
295
295
|
}
|
296
296
|
function values(e) {
|
297
297
|
if (e || "" === e) {
|
@@ -301,8 +301,8 @@ function _regeneratorRuntime() {
|
|
301
301
|
if (!isNaN(e.length)) {
|
302
302
|
var o = -1,
|
303
303
|
i = function next() {
|
304
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done =
|
305
|
-
return next.value = t, next.done =
|
304
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
|
305
|
+
return next.value = t, next.done = true, next;
|
306
306
|
};
|
307
307
|
return i.next = i;
|
308
308
|
}
|
@@ -311,10 +311,10 @@ function _regeneratorRuntime() {
|
|
311
311
|
}
|
312
312
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
313
313
|
value: GeneratorFunctionPrototype,
|
314
|
-
configurable:
|
314
|
+
configurable: true
|
315
315
|
}), o(GeneratorFunctionPrototype, "constructor", {
|
316
316
|
value: GeneratorFunction,
|
317
|
-
configurable:
|
317
|
+
configurable: true
|
318
318
|
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
319
319
|
var e = "function" == typeof t && t.constructor;
|
320
320
|
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
@@ -343,17 +343,17 @@ function _regeneratorRuntime() {
|
|
343
343
|
return r.reverse(), function next() {
|
344
344
|
for (; r.length;) {
|
345
345
|
var t = r.pop();
|
346
|
-
if (t in e) return next.value = t, next.done =
|
346
|
+
if (t in e) return next.value = t, next.done = false, next;
|
347
347
|
}
|
348
|
-
return next.done =
|
348
|
+
return next.done = true, next;
|
349
349
|
};
|
350
350
|
}, e.values = values, Context.prototype = {
|
351
351
|
constructor: Context,
|
352
352
|
reset: function (e) {
|
353
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done =
|
353
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
354
354
|
},
|
355
355
|
stop: function () {
|
356
|
-
this.done =
|
356
|
+
this.done = true;
|
357
357
|
var t = this.tryEntries[0].completion;
|
358
358
|
if ("throw" === t.type) throw t.arg;
|
359
359
|
return this.rval;
|
@@ -372,10 +372,10 @@ function _regeneratorRuntime() {
|
|
372
372
|
var c = n.call(i, "catchLoc"),
|
373
373
|
u = n.call(i, "finallyLoc");
|
374
374
|
if (c && u) {
|
375
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc,
|
375
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
376
376
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
377
377
|
} else if (c) {
|
378
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc,
|
378
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
379
379
|
} else {
|
380
380
|
if (!u) throw Error("try statement without catch or finally");
|
381
381
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
@@ -438,7 +438,7 @@ function _toPrimitive(t, r) {
|
|
438
438
|
if ("object" != typeof t || !t) return t;
|
439
439
|
var e = t[Symbol.toPrimitive];
|
440
440
|
if (void 0 !== e) {
|
441
|
-
var i = e.call(t, r
|
441
|
+
var i = e.call(t, r);
|
442
442
|
if ("object" != typeof i) return i;
|
443
443
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
444
444
|
}
|
@@ -670,8 +670,6 @@ function memoize$1(fn) {
|
|
670
670
|
};
|
671
671
|
}
|
672
672
|
|
673
|
-
var isDevelopment = false;
|
674
|
-
|
675
673
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
676
674
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
677
675
|
|
@@ -712,8 +710,6 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
712
710
|
return value;
|
713
711
|
};
|
714
712
|
|
715
|
-
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
716
|
-
|
717
713
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
718
714
|
if (interpolation == null) {
|
719
715
|
return '';
|
@@ -814,9 +810,6 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
814
810
|
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
815
811
|
}
|
816
812
|
} else {
|
817
|
-
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {
|
818
|
-
throw new Error(noComponentSelectorMessage);
|
819
|
-
}
|
820
813
|
|
821
814
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
822
815
|
for (var _i = 0; _i < value.length; _i++) {
|
@@ -2310,7 +2303,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
|
|
2310
2303
|
} : void 0;
|
2311
2304
|
|
2312
2305
|
/**
|
2313
|
-
* @mui/styled-engine v6.4.
|
2306
|
+
* @mui/styled-engine v6.4.6
|
2314
2307
|
*
|
2315
2308
|
* @license MIT
|
2316
2309
|
* This source code is licensed under the MIT license found in the
|
@@ -2483,8 +2476,8 @@ function requireReactIs_production () {
|
|
2483
2476
|
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
2484
2477
|
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
2485
2478
|
void 0 !== type.getModuleId))
|
2486
|
-
?
|
2487
|
-
:
|
2479
|
+
? true
|
2480
|
+
: false;
|
2488
2481
|
};
|
2489
2482
|
reactIs_production.typeOf = typeOf;
|
2490
2483
|
return reactIs_production;
|
@@ -2623,8 +2616,8 @@ function requireReactIs_development () {
|
|
2623
2616
|
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
2624
2617
|
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
2625
2618
|
void 0 !== type.getModuleId))
|
2626
|
-
?
|
2627
|
-
:
|
2619
|
+
? true
|
2620
|
+
: false;
|
2628
2621
|
};
|
2629
2622
|
reactIs_development.typeOf = typeOf;
|
2630
2623
|
})();
|
@@ -2703,7 +2696,7 @@ function deepmerge(target, source, options = {
|
|
2703
2696
|
|
2704
2697
|
// Sorted ASC by size. That's important.
|
2705
2698
|
// It can't be configured as it's used statically for propTypes.
|
2706
|
-
const sortBreakpointsValues
|
2699
|
+
const sortBreakpointsValues = values => {
|
2707
2700
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
2708
2701
|
key,
|
2709
2702
|
val: values[key]
|
@@ -2719,7 +2712,7 @@ const sortBreakpointsValues$1 = values => {
|
|
2719
2712
|
};
|
2720
2713
|
|
2721
2714
|
// Keep in mind that @media is inclusive by the CSS specification.
|
2722
|
-
function createBreakpoints
|
2715
|
+
function createBreakpoints(breakpoints) {
|
2723
2716
|
const {
|
2724
2717
|
// The breakpoint **start** at this value.
|
2725
2718
|
// For instance with the first breakpoint xs: [xs, sm).
|
@@ -2738,7 +2731,7 @@ function createBreakpoints$1(breakpoints) {
|
|
2738
2731
|
step = 5,
|
2739
2732
|
...other
|
2740
2733
|
} = breakpoints;
|
2741
|
-
const sortedValues = sortBreakpointsValues
|
2734
|
+
const sortedValues = sortBreakpointsValues(values);
|
2742
2735
|
const keys = Object.keys(sortedValues);
|
2743
2736
|
function up(key) {
|
2744
2737
|
const value = typeof values[key] === 'number' ? values[key] : key;
|
@@ -4001,7 +3994,7 @@ function createTheme$1(options = {}, ...args) {
|
|
4001
3994
|
shape: shapeInput = {},
|
4002
3995
|
...other
|
4003
3996
|
} = options;
|
4004
|
-
const breakpoints = createBreakpoints
|
3997
|
+
const breakpoints = createBreakpoints(breakpointsInput);
|
4005
3998
|
const spacing = createSpacing(spacingInput);
|
4006
3999
|
let muiTheme = deepmerge({
|
4007
4000
|
breakpoints,
|
@@ -5108,49 +5101,6 @@ function setRef(ref, value) {
|
|
5108
5101
|
}
|
5109
5102
|
}
|
5110
5103
|
|
5111
|
-
let globalId = 0;
|
5112
|
-
|
5113
|
-
// TODO React 17: Remove `useGlobalId` once React 17 support is removed
|
5114
|
-
function useGlobalId(idOverride) {
|
5115
|
-
const [defaultId, setDefaultId] = React.useState(idOverride);
|
5116
|
-
const id = idOverride || defaultId;
|
5117
|
-
React.useEffect(() => {
|
5118
|
-
if (defaultId == null) {
|
5119
|
-
// Fallback to this default id when possible.
|
5120
|
-
// Use the incrementing value for client-side rendering only.
|
5121
|
-
// We can't use it server-side.
|
5122
|
-
// If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem
|
5123
|
-
globalId += 1;
|
5124
|
-
setDefaultId(`mui-${globalId}`);
|
5125
|
-
}
|
5126
|
-
}, [defaultId]);
|
5127
|
-
return id;
|
5128
|
-
}
|
5129
|
-
|
5130
|
-
// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why
|
5131
|
-
const safeReact = {
|
5132
|
-
...React
|
5133
|
-
};
|
5134
|
-
const maybeReactUseId = safeReact.useId;
|
5135
|
-
|
5136
|
-
/**
|
5137
|
-
*
|
5138
|
-
* @example <div id={useId()} />
|
5139
|
-
* @param idOverride
|
5140
|
-
* @returns {string}
|
5141
|
-
*/
|
5142
|
-
function useId(idOverride) {
|
5143
|
-
// React.useId() is only available from React 17.0.0.
|
5144
|
-
if (maybeReactUseId !== undefined) {
|
5145
|
-
const reactId = maybeReactUseId();
|
5146
|
-
return idOverride ?? reactId;
|
5147
|
-
}
|
5148
|
-
|
5149
|
-
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
5150
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
|
5151
|
-
return useGlobalId(idOverride);
|
5152
|
-
}
|
5153
|
-
|
5154
5104
|
function useControlled({
|
5155
5105
|
controlled,
|
5156
5106
|
default: defaultProp,
|
@@ -6207,105 +6157,47 @@ const grey = {
|
|
6207
6157
|
|
6208
6158
|
const purple = {
|
6209
6159
|
50: '#f3e5f5',
|
6210
|
-
100: '#e1bee7',
|
6211
6160
|
200: '#ce93d8',
|
6212
6161
|
300: '#ba68c8',
|
6213
6162
|
400: '#ab47bc',
|
6214
6163
|
500: '#9c27b0',
|
6215
|
-
|
6216
|
-
700: '#7b1fa2',
|
6217
|
-
800: '#6a1b9a',
|
6218
|
-
900: '#4a148c',
|
6219
|
-
A100: '#ea80fc',
|
6220
|
-
A200: '#e040fb',
|
6221
|
-
A400: '#d500f9',
|
6222
|
-
A700: '#aa00ff'
|
6223
|
-
};
|
6164
|
+
700: '#7b1fa2'};
|
6224
6165
|
|
6225
6166
|
const red = {
|
6226
|
-
50: '#ffebee',
|
6227
|
-
100: '#ffcdd2',
|
6228
|
-
200: '#ef9a9a',
|
6229
6167
|
300: '#e57373',
|
6230
6168
|
400: '#ef5350',
|
6231
6169
|
500: '#f44336',
|
6232
|
-
600: '#e53935',
|
6233
6170
|
700: '#d32f2f',
|
6234
|
-
800: '#c62828'
|
6235
|
-
900: '#b71c1c',
|
6236
|
-
A100: '#ff8a80',
|
6237
|
-
A200: '#ff5252',
|
6238
|
-
A400: '#ff1744',
|
6239
|
-
A700: '#d50000'
|
6240
|
-
};
|
6171
|
+
800: '#c62828'};
|
6241
6172
|
|
6242
6173
|
const orange = {
|
6243
|
-
50: '#fff3e0',
|
6244
|
-
100: '#ffe0b2',
|
6245
|
-
200: '#ffcc80',
|
6246
6174
|
300: '#ffb74d',
|
6247
6175
|
400: '#ffa726',
|
6248
6176
|
500: '#ff9800',
|
6249
|
-
600: '#fb8c00',
|
6250
6177
|
700: '#f57c00',
|
6251
|
-
|
6252
|
-
900: '#e65100',
|
6253
|
-
A100: '#ffd180',
|
6254
|
-
A200: '#ffab40',
|
6255
|
-
A400: '#ff9100',
|
6256
|
-
A700: '#ff6d00'
|
6257
|
-
};
|
6178
|
+
900: '#e65100'};
|
6258
6179
|
|
6259
6180
|
const blue = {
|
6260
6181
|
50: '#e3f2fd',
|
6261
|
-
100: '#bbdefb',
|
6262
6182
|
200: '#90caf9',
|
6263
|
-
300: '#64b5f6',
|
6264
6183
|
400: '#42a5f5',
|
6265
|
-
500: '#2196f3',
|
6266
|
-
600: '#1e88e5',
|
6267
6184
|
700: '#1976d2',
|
6268
|
-
800: '#1565c0'
|
6269
|
-
900: '#0d47a1',
|
6270
|
-
A100: '#82b1ff',
|
6271
|
-
A200: '#448aff',
|
6272
|
-
A400: '#2979ff',
|
6273
|
-
A700: '#2962ff'
|
6274
|
-
};
|
6185
|
+
800: '#1565c0'};
|
6275
6186
|
|
6276
6187
|
const lightBlue = {
|
6277
|
-
50: '#e1f5fe',
|
6278
|
-
100: '#b3e5fc',
|
6279
|
-
200: '#81d4fa',
|
6280
6188
|
300: '#4fc3f7',
|
6281
6189
|
400: '#29b6f6',
|
6282
6190
|
500: '#03a9f4',
|
6283
|
-
600: '#039be5',
|
6284
6191
|
700: '#0288d1',
|
6285
|
-
|
6286
|
-
900: '#01579b',
|
6287
|
-
A100: '#80d8ff',
|
6288
|
-
A200: '#40c4ff',
|
6289
|
-
A400: '#00b0ff',
|
6290
|
-
A700: '#0091ea'
|
6291
|
-
};
|
6192
|
+
900: '#01579b'};
|
6292
6193
|
|
6293
6194
|
const green = {
|
6294
|
-
50: '#e8f5e9',
|
6295
|
-
100: '#c8e6c9',
|
6296
|
-
200: '#a5d6a7',
|
6297
6195
|
300: '#81c784',
|
6298
6196
|
400: '#66bb6a',
|
6299
6197
|
500: '#4caf50',
|
6300
|
-
600: '#43a047',
|
6301
6198
|
700: '#388e3c',
|
6302
6199
|
800: '#2e7d32',
|
6303
|
-
900: '#1b5e20'
|
6304
|
-
A100: '#b9f6ca',
|
6305
|
-
A200: '#69f0ae',
|
6306
|
-
A400: '#00e676',
|
6307
|
-
A700: '#00c853'
|
6308
|
-
};
|
6200
|
+
900: '#1b5e20'};
|
6309
6201
|
|
6310
6202
|
function getLight() {
|
6311
6203
|
return {
|
@@ -7096,7 +6988,7 @@ function setColor(obj, key, defaultValue) {
|
|
7096
6988
|
}
|
7097
6989
|
}
|
7098
6990
|
function toRgb(color) {
|
7099
|
-
if (
|
6991
|
+
if (!color || !color.startsWith('hsl')) {
|
7100
6992
|
return color;
|
7101
6993
|
}
|
7102
6994
|
return hslToRgb(color);
|
@@ -7388,7 +7280,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
7388
7280
|
|
7389
7281
|
// The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.
|
7390
7282
|
|
7391
|
-
if (
|
7283
|
+
if (colors && typeof colors === 'object') {
|
7392
7284
|
// Silent the error for custom palettes.
|
7393
7285
|
if (colors.main) {
|
7394
7286
|
setColor(palette[color], 'mainChannel', private_safeColorChannel(toRgb(colors.main)));
|
@@ -9209,94 +9101,6 @@ var paletteADC = _objectSpread2({
|
|
9209
9101
|
}
|
9210
9102
|
}, BasicPalette);
|
9211
9103
|
|
9212
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
9213
|
-
if (null == r) return {};
|
9214
|
-
var t = {};
|
9215
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
9216
|
-
if (e.indexOf(n) >= 0) continue;
|
9217
|
-
t[n] = r[n];
|
9218
|
-
}
|
9219
|
-
return t;
|
9220
|
-
}
|
9221
|
-
|
9222
|
-
const _excluded$1 = ["values", "unit", "step"];
|
9223
|
-
const sortBreakpointsValues = values => {
|
9224
|
-
const breakpointsAsArray = Object.keys(values).map(key => ({
|
9225
|
-
key,
|
9226
|
-
val: values[key]
|
9227
|
-
})) || [];
|
9228
|
-
// Sort in ascending order
|
9229
|
-
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
9230
|
-
return breakpointsAsArray.reduce((acc, obj) => {
|
9231
|
-
return _extends({}, acc, {
|
9232
|
-
[obj.key]: obj.val
|
9233
|
-
});
|
9234
|
-
}, {});
|
9235
|
-
};
|
9236
|
-
|
9237
|
-
// Keep in mind that @media is inclusive by the CSS specification.
|
9238
|
-
function createBreakpoints(breakpoints) {
|
9239
|
-
const {
|
9240
|
-
// The breakpoint **start** at this value.
|
9241
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
9242
|
-
values = {
|
9243
|
-
xs: 0,
|
9244
|
-
// phone
|
9245
|
-
sm: 600,
|
9246
|
-
// tablet
|
9247
|
-
md: 900,
|
9248
|
-
// small laptop
|
9249
|
-
lg: 1200,
|
9250
|
-
// desktop
|
9251
|
-
xl: 1536 // large screen
|
9252
|
-
},
|
9253
|
-
unit = 'px',
|
9254
|
-
step = 5
|
9255
|
-
} = breakpoints,
|
9256
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$1);
|
9257
|
-
const sortedValues = sortBreakpointsValues(values);
|
9258
|
-
const keys = Object.keys(sortedValues);
|
9259
|
-
function up(key) {
|
9260
|
-
const value = typeof values[key] === 'number' ? values[key] : key;
|
9261
|
-
return `@media (min-width:${value}${unit})`;
|
9262
|
-
}
|
9263
|
-
function down(key) {
|
9264
|
-
const value = typeof values[key] === 'number' ? values[key] : key;
|
9265
|
-
return `@media (max-width:${value - step / 100}${unit})`;
|
9266
|
-
}
|
9267
|
-
function between(start, end) {
|
9268
|
-
const endIndex = keys.indexOf(end);
|
9269
|
-
return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;
|
9270
|
-
}
|
9271
|
-
function only(key) {
|
9272
|
-
if (keys.indexOf(key) + 1 < keys.length) {
|
9273
|
-
return between(key, keys[keys.indexOf(key) + 1]);
|
9274
|
-
}
|
9275
|
-
return up(key);
|
9276
|
-
}
|
9277
|
-
function not(key) {
|
9278
|
-
// handle first and last key separately, for better readability
|
9279
|
-
const keyIndex = keys.indexOf(key);
|
9280
|
-
if (keyIndex === 0) {
|
9281
|
-
return up(keys[1]);
|
9282
|
-
}
|
9283
|
-
if (keyIndex === keys.length - 1) {
|
9284
|
-
return down(keys[keyIndex]);
|
9285
|
-
}
|
9286
|
-
return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
|
9287
|
-
}
|
9288
|
-
return _extends({
|
9289
|
-
keys,
|
9290
|
-
values: sortedValues,
|
9291
|
-
up,
|
9292
|
-
down,
|
9293
|
-
between,
|
9294
|
-
only,
|
9295
|
-
not,
|
9296
|
-
unit
|
9297
|
-
}, other);
|
9298
|
-
}
|
9299
|
-
|
9300
9104
|
var breakpoints = createBreakpoints({
|
9301
9105
|
values: {
|
9302
9106
|
xs: 0,
|
@@ -9432,7 +9236,7 @@ const v6Colors = {
|
|
9432
9236
|
textDisabled: true
|
9433
9237
|
};
|
9434
9238
|
const extendSxProp = internal_createExtendSxProp();
|
9435
|
-
const useUtilityClasses$
|
9239
|
+
const useUtilityClasses$l = ownerState => {
|
9436
9240
|
const {
|
9437
9241
|
align,
|
9438
9242
|
gutterBottom,
|
@@ -9573,7 +9377,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
9573
9377
|
variantMapping
|
9574
9378
|
};
|
9575
9379
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
9576
|
-
const classes = useUtilityClasses$
|
9380
|
+
const classes = useUtilityClasses$l(ownerState);
|
9577
9381
|
return /*#__PURE__*/jsx(TypographyRoot, {
|
9578
9382
|
as: Component,
|
9579
9383
|
ref: ref,
|
@@ -9769,6 +9573,16 @@ function createControlledPromise() {
|
|
9769
9573
|
return p;
|
9770
9574
|
}
|
9771
9575
|
|
9576
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
9577
|
+
if (null == r) return {};
|
9578
|
+
var t = {};
|
9579
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
9580
|
+
if (-1 !== e.indexOf(n)) continue;
|
9581
|
+
t[n] = r[n];
|
9582
|
+
}
|
9583
|
+
return t;
|
9584
|
+
}
|
9585
|
+
|
9772
9586
|
function _setPrototypeOf(t, e) {
|
9773
9587
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
9774
9588
|
return t.__proto__ = e, t;
|
@@ -10401,7 +10215,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
10401
10215
|
onExited: PropTypes.func
|
10402
10216
|
} : {}; // Name the function so it is clearer in the documentation
|
10403
10217
|
|
10404
|
-
function noop
|
10218
|
+
function noop() {}
|
10405
10219
|
|
10406
10220
|
Transition.defaultProps = {
|
10407
10221
|
in: false,
|
@@ -10410,12 +10224,12 @@ Transition.defaultProps = {
|
|
10410
10224
|
appear: false,
|
10411
10225
|
enter: true,
|
10412
10226
|
exit: true,
|
10413
|
-
onEnter: noop
|
10414
|
-
onEntering: noop
|
10415
|
-
onEntered: noop
|
10416
|
-
onExit: noop
|
10417
|
-
onExiting: noop
|
10418
|
-
onExited: noop
|
10227
|
+
onEnter: noop,
|
10228
|
+
onEntering: noop,
|
10229
|
+
onEntered: noop,
|
10230
|
+
onExit: noop,
|
10231
|
+
onExiting: noop,
|
10232
|
+
onExited: noop
|
10419
10233
|
};
|
10420
10234
|
Transition.UNMOUNTED = UNMOUNTED;
|
10421
10235
|
Transition.EXITED = EXITED;
|
@@ -11145,7 +10959,7 @@ function getButtonBaseUtilityClass(slot) {
|
|
11145
10959
|
}
|
11146
10960
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
11147
10961
|
|
11148
|
-
const useUtilityClasses$
|
10962
|
+
const useUtilityClasses$k = ownerState => {
|
11149
10963
|
const {
|
11150
10964
|
disabled,
|
11151
10965
|
focusVisible,
|
@@ -11266,22 +11080,34 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11266
11080
|
ripple.pulsate();
|
11267
11081
|
}
|
11268
11082
|
}, [disableRipple, focusRipple, focusVisible, ripple]);
|
11269
|
-
|
11270
|
-
|
11271
|
-
|
11272
|
-
|
11273
|
-
|
11083
|
+
function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
|
11084
|
+
return useEventCallback(event => {
|
11085
|
+
if (eventCallback) {
|
11086
|
+
eventCallback(event);
|
11087
|
+
}
|
11088
|
+
const ignore = skipRippleAction;
|
11089
|
+
if (!ignore) {
|
11090
|
+
ripple[rippleAction](event);
|
11091
|
+
}
|
11092
|
+
return true;
|
11093
|
+
});
|
11094
|
+
}
|
11095
|
+
const handleMouseDown = useRippleHandler('start', onMouseDown);
|
11096
|
+
const handleContextMenu = useRippleHandler('stop', onContextMenu);
|
11097
|
+
const handleDragLeave = useRippleHandler('stop', onDragLeave);
|
11098
|
+
const handleMouseUp = useRippleHandler('stop', onMouseUp);
|
11099
|
+
const handleMouseLeave = useRippleHandler('stop', event => {
|
11274
11100
|
if (focusVisible) {
|
11275
11101
|
event.preventDefault();
|
11276
11102
|
}
|
11277
11103
|
if (onMouseLeave) {
|
11278
11104
|
onMouseLeave(event);
|
11279
11105
|
}
|
11280
|
-
}
|
11281
|
-
const handleTouchStart = useRippleHandler(
|
11282
|
-
const handleTouchEnd = useRippleHandler(
|
11283
|
-
const handleTouchMove = useRippleHandler(
|
11284
|
-
const handleBlur = useRippleHandler(
|
11106
|
+
});
|
11107
|
+
const handleTouchStart = useRippleHandler('start', onTouchStart);
|
11108
|
+
const handleTouchEnd = useRippleHandler('stop', onTouchEnd);
|
11109
|
+
const handleTouchMove = useRippleHandler('stop', onTouchMove);
|
11110
|
+
const handleBlur = useRippleHandler('stop', event => {
|
11285
11111
|
if (!isFocusVisible(event.target)) {
|
11286
11112
|
setFocusVisible(false);
|
11287
11113
|
}
|
@@ -11375,7 +11201,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11375
11201
|
tabIndex,
|
11376
11202
|
focusVisible
|
11377
11203
|
};
|
11378
|
-
const classes = useUtilityClasses$
|
11204
|
+
const classes = useUtilityClasses$k(ownerState);
|
11379
11205
|
return /*#__PURE__*/jsxs(ButtonBaseRoot, {
|
11380
11206
|
as: ComponentProp,
|
11381
11207
|
className: clsx(classes.root, className),
|
@@ -11405,17 +11231,6 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11405
11231
|
}) : null]
|
11406
11232
|
});
|
11407
11233
|
});
|
11408
|
-
function useRippleHandler(ripple, rippleAction, eventCallback, skipRippleAction = false) {
|
11409
|
-
return useEventCallback(event => {
|
11410
|
-
if (eventCallback) {
|
11411
|
-
eventCallback(event);
|
11412
|
-
}
|
11413
|
-
if (!skipRippleAction) {
|
11414
|
-
ripple[rippleAction](event);
|
11415
|
-
}
|
11416
|
-
return true;
|
11417
|
-
});
|
11418
|
-
}
|
11419
11234
|
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes /* remove-proptypes */ = {
|
11420
11235
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
11421
11236
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
@@ -11580,7 +11395,7 @@ function getSwitchBaseUtilityClass(slot) {
|
|
11580
11395
|
}
|
11581
11396
|
generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
|
11582
11397
|
|
11583
|
-
const useUtilityClasses$
|
11398
|
+
const useUtilityClasses$j = ownerState => {
|
11584
11399
|
const {
|
11585
11400
|
classes,
|
11586
11401
|
checked,
|
@@ -11722,7 +11537,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
11722
11537
|
disableFocusRipple,
|
11723
11538
|
edge
|
11724
11539
|
};
|
11725
|
-
const classes = useUtilityClasses$
|
11540
|
+
const classes = useUtilityClasses$j(ownerState);
|
11726
11541
|
return /*#__PURE__*/jsxs(SwitchBaseRoot, {
|
11727
11542
|
component: "span",
|
11728
11543
|
className: clsx(classes.root, className),
|
@@ -11870,7 +11685,7 @@ function getSvgIconUtilityClass(slot) {
|
|
11870
11685
|
}
|
11871
11686
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
11872
11687
|
|
11873
|
-
const useUtilityClasses$
|
11688
|
+
const useUtilityClasses$i = ownerState => {
|
11874
11689
|
const {
|
11875
11690
|
color,
|
11876
11691
|
fontSize,
|
@@ -12000,7 +11815,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
12000
11815
|
if (!inheritViewBox) {
|
12001
11816
|
more.viewBox = viewBox;
|
12002
11817
|
}
|
12003
|
-
const classes = useUtilityClasses$
|
11818
|
+
const classes = useUtilityClasses$i(ownerState);
|
12004
11819
|
return /*#__PURE__*/jsxs(SvgIconRoot, {
|
12005
11820
|
as: component,
|
12006
11821
|
className: clsx(classes.root, className),
|
@@ -12090,7 +11905,9 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
12090
11905
|
*/
|
12091
11906
|
viewBox: PropTypes.string
|
12092
11907
|
} : void 0;
|
12093
|
-
SvgIcon
|
11908
|
+
if (SvgIcon) {
|
11909
|
+
SvgIcon.muiName = 'SvgIcon';
|
11910
|
+
}
|
12094
11911
|
|
12095
11912
|
function createSvgIcon(path, displayName) {
|
12096
11913
|
function Component(props, ref) {
|
@@ -12212,7 +12029,7 @@ function getRadioUtilityClass(slot) {
|
|
12212
12029
|
}
|
12213
12030
|
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
12214
12031
|
|
12215
|
-
const useUtilityClasses$
|
12032
|
+
const useUtilityClasses$h = ownerState => {
|
12216
12033
|
const {
|
12217
12034
|
classes,
|
12218
12035
|
color,
|
@@ -12335,7 +12152,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
12335
12152
|
color,
|
12336
12153
|
size
|
12337
12154
|
};
|
12338
|
-
const classes = useUtilityClasses$
|
12155
|
+
const classes = useUtilityClasses$h(ownerState);
|
12339
12156
|
const radioGroup = useRadioGroup();
|
12340
12157
|
let checked = checkedProp;
|
12341
12158
|
const onChange = createChainedFunction(onChangeProp, radioGroup && radioGroup.onChange);
|
@@ -12472,7 +12289,7 @@ function getCheckboxUtilityClass(slot) {
|
|
12472
12289
|
}
|
12473
12290
|
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
|
12474
12291
|
|
12475
|
-
const useUtilityClasses$
|
12292
|
+
const useUtilityClasses$g = ownerState => {
|
12476
12293
|
const {
|
12477
12294
|
classes,
|
12478
12295
|
indeterminate,
|
@@ -12579,7 +12396,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
12579
12396
|
indeterminate,
|
12580
12397
|
size
|
12581
12398
|
};
|
12582
|
-
const classes = useUtilityClasses$
|
12399
|
+
const classes = useUtilityClasses$g(ownerState);
|
12583
12400
|
return /*#__PURE__*/jsx(CheckboxRoot, {
|
12584
12401
|
type: "checkbox",
|
12585
12402
|
inputProps: {
|
@@ -12865,7 +12682,7 @@ function getPaperUtilityClass(slot) {
|
|
12865
12682
|
}
|
12866
12683
|
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
12867
12684
|
|
12868
|
-
const useUtilityClasses$
|
12685
|
+
const useUtilityClasses$f = ownerState => {
|
12869
12686
|
const {
|
12870
12687
|
square,
|
12871
12688
|
elevation,
|
@@ -12937,7 +12754,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
12937
12754
|
square,
|
12938
12755
|
variant
|
12939
12756
|
};
|
12940
|
-
const classes = useUtilityClasses$
|
12757
|
+
const classes = useUtilityClasses$f(ownerState);
|
12941
12758
|
if (process.env.NODE_ENV !== 'production') {
|
12942
12759
|
if (theme.shadows[elevation] === undefined) {
|
12943
12760
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
@@ -13047,8 +12864,8 @@ name, parameters) {
|
|
13047
12864
|
elementType: initialElementType,
|
13048
12865
|
ownerState,
|
13049
12866
|
externalForwardedProps,
|
12867
|
+
getSlotOwnerState,
|
13050
12868
|
internalForwardedProps,
|
13051
|
-
shouldForwardComponentProp = false,
|
13052
12869
|
...useSlotPropsParams
|
13053
12870
|
} = parameters;
|
13054
12871
|
const {
|
@@ -13079,302 +12896,31 @@ name, parameters) {
|
|
13079
12896
|
externalSlotProps: resolvedComponentsProps
|
13080
12897
|
});
|
13081
12898
|
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
12899
|
+
const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};
|
12900
|
+
const finalOwnerState = {
|
12901
|
+
...ownerState,
|
12902
|
+
...slotOwnerState
|
12903
|
+
};
|
13082
12904
|
const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;
|
13083
12905
|
const props = appendOwnerState(elementType, {
|
13084
12906
|
...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),
|
13085
12907
|
...(name !== 'root' && !slots[name] && internalForwardedProps),
|
13086
12908
|
...mergedProps,
|
13087
|
-
...(LeafComponent &&
|
12909
|
+
...(LeafComponent && {
|
13088
12910
|
as: LeafComponent
|
13089
12911
|
}),
|
13090
|
-
...(LeafComponent && shouldForwardComponentProp && {
|
13091
|
-
component: LeafComponent
|
13092
|
-
}),
|
13093
12912
|
ref
|
13094
|
-
},
|
12913
|
+
}, finalOwnerState);
|
12914
|
+
Object.keys(slotOwnerState).forEach(propName => {
|
12915
|
+
delete props[propName];
|
12916
|
+
});
|
13095
12917
|
return [elementType, props];
|
13096
12918
|
}
|
13097
12919
|
|
13098
|
-
function getCircularProgressUtilityClass(slot) {
|
13099
|
-
return generateUtilityClass('MuiCircularProgress', slot);
|
13100
|
-
}
|
13101
|
-
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
13102
|
-
|
13103
|
-
const SIZE = 44;
|
13104
|
-
const circularRotateKeyframe = keyframes`
|
13105
|
-
0% {
|
13106
|
-
transform: rotate(0deg);
|
13107
|
-
}
|
13108
|
-
|
13109
|
-
100% {
|
13110
|
-
transform: rotate(360deg);
|
13111
|
-
}
|
13112
|
-
`;
|
13113
|
-
const circularDashKeyframe = keyframes`
|
13114
|
-
0% {
|
13115
|
-
stroke-dasharray: 1px, 200px;
|
13116
|
-
stroke-dashoffset: 0;
|
13117
|
-
}
|
13118
|
-
|
13119
|
-
50% {
|
13120
|
-
stroke-dasharray: 100px, 200px;
|
13121
|
-
stroke-dashoffset: -15px;
|
13122
|
-
}
|
13123
|
-
|
13124
|
-
100% {
|
13125
|
-
stroke-dasharray: 1px, 200px;
|
13126
|
-
stroke-dashoffset: -126px;
|
13127
|
-
}
|
13128
|
-
`;
|
13129
|
-
|
13130
|
-
// This implementation is for supporting both Styled-components v4+ and Pigment CSS.
|
13131
|
-
// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).
|
13132
|
-
// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).
|
13133
|
-
const rotateAnimation = typeof circularRotateKeyframe !== 'string' ? css`
|
13134
|
-
animation: ${circularRotateKeyframe} 1.4s linear infinite;
|
13135
|
-
` : null;
|
13136
|
-
const dashAnimation = typeof circularDashKeyframe !== 'string' ? css`
|
13137
|
-
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
13138
|
-
` : null;
|
13139
|
-
const useUtilityClasses$f = ownerState => {
|
13140
|
-
const {
|
13141
|
-
classes,
|
13142
|
-
variant,
|
13143
|
-
color,
|
13144
|
-
disableShrink
|
13145
|
-
} = ownerState;
|
13146
|
-
const slots = {
|
13147
|
-
root: ['root', variant, `color${capitalize(color)}`],
|
13148
|
-
svg: ['svg'],
|
13149
|
-
circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']
|
13150
|
-
};
|
13151
|
-
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
13152
|
-
};
|
13153
|
-
const CircularProgressRoot = styled('span', {
|
13154
|
-
name: 'MuiCircularProgress',
|
13155
|
-
slot: 'Root',
|
13156
|
-
overridesResolver: (props, styles) => {
|
13157
|
-
const {
|
13158
|
-
ownerState
|
13159
|
-
} = props;
|
13160
|
-
return [styles.root, styles[ownerState.variant], styles[`color${capitalize(ownerState.color)}`]];
|
13161
|
-
}
|
13162
|
-
})(memoTheme(({
|
13163
|
-
theme
|
13164
|
-
}) => ({
|
13165
|
-
display: 'inline-block',
|
13166
|
-
variants: [{
|
13167
|
-
props: {
|
13168
|
-
variant: 'determinate'
|
13169
|
-
},
|
13170
|
-
style: {
|
13171
|
-
transition: theme.transitions.create('transform')
|
13172
|
-
}
|
13173
|
-
}, {
|
13174
|
-
props: {
|
13175
|
-
variant: 'indeterminate'
|
13176
|
-
},
|
13177
|
-
style: rotateAnimation || {
|
13178
|
-
animation: `${circularRotateKeyframe} 1.4s linear infinite`
|
13179
|
-
}
|
13180
|
-
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
13181
|
-
props: {
|
13182
|
-
color
|
13183
|
-
},
|
13184
|
-
style: {
|
13185
|
-
color: (theme.vars || theme).palette[color].main
|
13186
|
-
}
|
13187
|
-
}))]
|
13188
|
-
})));
|
13189
|
-
const CircularProgressSVG = styled('svg', {
|
13190
|
-
name: 'MuiCircularProgress',
|
13191
|
-
slot: 'Svg',
|
13192
|
-
overridesResolver: (props, styles) => styles.svg
|
13193
|
-
})({
|
13194
|
-
display: 'block' // Keeps the progress centered
|
13195
|
-
});
|
13196
|
-
const CircularProgressCircle = styled('circle', {
|
13197
|
-
name: 'MuiCircularProgress',
|
13198
|
-
slot: 'Circle',
|
13199
|
-
overridesResolver: (props, styles) => {
|
13200
|
-
const {
|
13201
|
-
ownerState
|
13202
|
-
} = props;
|
13203
|
-
return [styles.circle, styles[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];
|
13204
|
-
}
|
13205
|
-
})(memoTheme(({
|
13206
|
-
theme
|
13207
|
-
}) => ({
|
13208
|
-
stroke: 'currentColor',
|
13209
|
-
variants: [{
|
13210
|
-
props: {
|
13211
|
-
variant: 'determinate'
|
13212
|
-
},
|
13213
|
-
style: {
|
13214
|
-
transition: theme.transitions.create('stroke-dashoffset')
|
13215
|
-
}
|
13216
|
-
}, {
|
13217
|
-
props: {
|
13218
|
-
variant: 'indeterminate'
|
13219
|
-
},
|
13220
|
-
style: {
|
13221
|
-
// Some default value that looks fine waiting for the animation to kicks in.
|
13222
|
-
strokeDasharray: '80px, 200px',
|
13223
|
-
strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.
|
13224
|
-
}
|
13225
|
-
}, {
|
13226
|
-
props: ({
|
13227
|
-
ownerState
|
13228
|
-
}) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink,
|
13229
|
-
style: dashAnimation || {
|
13230
|
-
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
13231
|
-
animation: `${circularDashKeyframe} 1.4s ease-in-out infinite`
|
13232
|
-
}
|
13233
|
-
}]
|
13234
|
-
})));
|
13235
|
-
|
13236
|
-
/**
|
13237
|
-
* ## ARIA
|
13238
|
-
*
|
13239
|
-
* If the progress bar is describing the loading progress of a particular region of a page,
|
13240
|
-
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
13241
|
-
* attribute to `true` on that region until it has finished loading.
|
13242
|
-
*/
|
13243
|
-
const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {
|
13244
|
-
const props = useDefaultProps({
|
13245
|
-
props: inProps,
|
13246
|
-
name: 'MuiCircularProgress'
|
13247
|
-
});
|
13248
|
-
const {
|
13249
|
-
className,
|
13250
|
-
color = 'primary',
|
13251
|
-
disableShrink = false,
|
13252
|
-
size = 40,
|
13253
|
-
style,
|
13254
|
-
thickness = 3.6,
|
13255
|
-
value = 0,
|
13256
|
-
variant = 'indeterminate',
|
13257
|
-
...other
|
13258
|
-
} = props;
|
13259
|
-
const ownerState = {
|
13260
|
-
...props,
|
13261
|
-
color,
|
13262
|
-
disableShrink,
|
13263
|
-
size,
|
13264
|
-
thickness,
|
13265
|
-
value,
|
13266
|
-
variant
|
13267
|
-
};
|
13268
|
-
const classes = useUtilityClasses$f(ownerState);
|
13269
|
-
const circleStyle = {};
|
13270
|
-
const rootStyle = {};
|
13271
|
-
const rootProps = {};
|
13272
|
-
if (variant === 'determinate') {
|
13273
|
-
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
13274
|
-
circleStyle.strokeDasharray = circumference.toFixed(3);
|
13275
|
-
rootProps['aria-valuenow'] = Math.round(value);
|
13276
|
-
circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;
|
13277
|
-
rootStyle.transform = 'rotate(-90deg)';
|
13278
|
-
}
|
13279
|
-
return /*#__PURE__*/jsx(CircularProgressRoot, {
|
13280
|
-
className: clsx(classes.root, className),
|
13281
|
-
style: {
|
13282
|
-
width: size,
|
13283
|
-
height: size,
|
13284
|
-
...rootStyle,
|
13285
|
-
...style
|
13286
|
-
},
|
13287
|
-
ownerState: ownerState,
|
13288
|
-
ref: ref,
|
13289
|
-
role: "progressbar",
|
13290
|
-
...rootProps,
|
13291
|
-
...other,
|
13292
|
-
children: /*#__PURE__*/jsx(CircularProgressSVG, {
|
13293
|
-
className: classes.svg,
|
13294
|
-
ownerState: ownerState,
|
13295
|
-
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
13296
|
-
children: /*#__PURE__*/jsx(CircularProgressCircle, {
|
13297
|
-
className: classes.circle,
|
13298
|
-
style: circleStyle,
|
13299
|
-
ownerState: ownerState,
|
13300
|
-
cx: SIZE,
|
13301
|
-
cy: SIZE,
|
13302
|
-
r: (SIZE - thickness) / 2,
|
13303
|
-
fill: "none",
|
13304
|
-
strokeWidth: thickness
|
13305
|
-
})
|
13306
|
-
})
|
13307
|
-
});
|
13308
|
-
});
|
13309
|
-
process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-proptypes */ = {
|
13310
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
13311
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
13312
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
13313
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
13314
|
-
/**
|
13315
|
-
* Override or extend the styles applied to the component.
|
13316
|
-
*/
|
13317
|
-
classes: PropTypes.object,
|
13318
|
-
/**
|
13319
|
-
* @ignore
|
13320
|
-
*/
|
13321
|
-
className: PropTypes.string,
|
13322
|
-
/**
|
13323
|
-
* The color of the component.
|
13324
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
13325
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
13326
|
-
* @default 'primary'
|
13327
|
-
*/
|
13328
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
13329
|
-
/**
|
13330
|
-
* If `true`, the shrink animation is disabled.
|
13331
|
-
* This only works if variant is `indeterminate`.
|
13332
|
-
* @default false
|
13333
|
-
*/
|
13334
|
-
disableShrink: chainPropTypes(PropTypes.bool, props => {
|
13335
|
-
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
13336
|
-
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
13337
|
-
}
|
13338
|
-
return null;
|
13339
|
-
}),
|
13340
|
-
/**
|
13341
|
-
* The size of the component.
|
13342
|
-
* If using a number, the pixel unit is assumed.
|
13343
|
-
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
13344
|
-
* @default 40
|
13345
|
-
*/
|
13346
|
-
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
13347
|
-
/**
|
13348
|
-
* @ignore
|
13349
|
-
*/
|
13350
|
-
style: PropTypes.object,
|
13351
|
-
/**
|
13352
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
13353
|
-
*/
|
13354
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
13355
|
-
/**
|
13356
|
-
* The thickness of the circle.
|
13357
|
-
* @default 3.6
|
13358
|
-
*/
|
13359
|
-
thickness: PropTypes.number,
|
13360
|
-
/**
|
13361
|
-
* The value of the progress indicator for the determinate variant.
|
13362
|
-
* Value between 0 and 100.
|
13363
|
-
* @default 0
|
13364
|
-
*/
|
13365
|
-
value: PropTypes.number,
|
13366
|
-
/**
|
13367
|
-
* The variant to use.
|
13368
|
-
* Use indeterminate when there is no progress value.
|
13369
|
-
* @default 'indeterminate'
|
13370
|
-
*/
|
13371
|
-
variant: PropTypes.oneOf(['determinate', 'indeterminate'])
|
13372
|
-
} : void 0;
|
13373
|
-
|
13374
12920
|
function getIconButtonUtilityClass(slot) {
|
13375
12921
|
return generateUtilityClass('MuiIconButton', slot);
|
13376
12922
|
}
|
13377
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge'
|
12923
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
13378
12924
|
|
13379
12925
|
const useUtilityClasses$e = ownerState => {
|
13380
12926
|
const {
|
@@ -13382,13 +12928,10 @@ const useUtilityClasses$e = ownerState => {
|
|
13382
12928
|
disabled,
|
13383
12929
|
color,
|
13384
12930
|
edge,
|
13385
|
-
size
|
13386
|
-
loading
|
12931
|
+
size
|
13387
12932
|
} = ownerState;
|
13388
12933
|
const slots = {
|
13389
|
-
root: ['root',
|
13390
|
-
loadingIndicator: ['loadingIndicator'],
|
13391
|
-
loadingWrapper: ['loadingWrapper']
|
12934
|
+
root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]
|
13392
12935
|
};
|
13393
12936
|
return composeClasses(slots, getIconButtonUtilityClass, classes);
|
13394
12937
|
};
|
@@ -13399,7 +12942,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
13399
12942
|
const {
|
13400
12943
|
ownerState
|
13401
12944
|
} = props;
|
13402
|
-
return [styles.root, ownerState.
|
12945
|
+
return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
|
13403
12946
|
}
|
13404
12947
|
})(memoTheme(({
|
13405
12948
|
theme
|
@@ -13502,34 +13045,8 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
13502
13045
|
[`&.${iconButtonClasses.disabled}`]: {
|
13503
13046
|
backgroundColor: 'transparent',
|
13504
13047
|
color: (theme.vars || theme).palette.action.disabled
|
13505
|
-
},
|
13506
|
-
[`&.${iconButtonClasses.loading}`]: {
|
13507
|
-
color: 'transparent'
|
13508
13048
|
}
|
13509
13049
|
})));
|
13510
|
-
const IconButtonLoadingIndicator = styled('span', {
|
13511
|
-
name: 'MuiIconButton',
|
13512
|
-
slot: 'LoadingIndicator',
|
13513
|
-
overridesResolver: (props, styles) => styles.loadingIndicator
|
13514
|
-
})(({
|
13515
|
-
theme
|
13516
|
-
}) => ({
|
13517
|
-
display: 'none',
|
13518
|
-
position: 'absolute',
|
13519
|
-
visibility: 'visible',
|
13520
|
-
top: '50%',
|
13521
|
-
left: '50%',
|
13522
|
-
transform: 'translate(-50%, -50%)',
|
13523
|
-
color: (theme.vars || theme).palette.action.disabled,
|
13524
|
-
variants: [{
|
13525
|
-
props: {
|
13526
|
-
loading: true
|
13527
|
-
},
|
13528
|
-
style: {
|
13529
|
-
display: 'flex'
|
13530
|
-
}
|
13531
|
-
}]
|
13532
|
-
}));
|
13533
13050
|
|
13534
13051
|
/**
|
13535
13052
|
* Refer to the [Icons](/material-ui/icons/) section of the documentation
|
@@ -13548,51 +13065,26 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
13548
13065
|
disabled = false,
|
13549
13066
|
disableFocusRipple = false,
|
13550
13067
|
size = 'medium',
|
13551
|
-
id: idProp,
|
13552
|
-
loading = null,
|
13553
|
-
loadingIndicator: loadingIndicatorProp,
|
13554
13068
|
...other
|
13555
13069
|
} = props;
|
13556
|
-
const id = useId(idProp);
|
13557
|
-
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/jsx(CircularProgress, {
|
13558
|
-
"aria-labelledby": id,
|
13559
|
-
color: "inherit",
|
13560
|
-
size: 16
|
13561
|
-
});
|
13562
13070
|
const ownerState = {
|
13563
13071
|
...props,
|
13564
13072
|
edge,
|
13565
13073
|
color,
|
13566
13074
|
disabled,
|
13567
13075
|
disableFocusRipple,
|
13568
|
-
loading,
|
13569
|
-
loadingIndicator,
|
13570
13076
|
size
|
13571
13077
|
};
|
13572
13078
|
const classes = useUtilityClasses$e(ownerState);
|
13573
|
-
return /*#__PURE__*/
|
13574
|
-
id: id,
|
13079
|
+
return /*#__PURE__*/jsx(IconButtonRoot, {
|
13575
13080
|
className: clsx(classes.root, className),
|
13576
13081
|
centerRipple: true,
|
13577
13082
|
focusRipple: !disableFocusRipple,
|
13578
|
-
disabled: disabled
|
13083
|
+
disabled: disabled,
|
13579
13084
|
ref: ref,
|
13580
13085
|
...other,
|
13581
13086
|
ownerState: ownerState,
|
13582
|
-
children:
|
13583
|
-
/*#__PURE__*/
|
13584
|
-
// use plain HTML span to minimize the runtime overhead
|
13585
|
-
jsx("span", {
|
13586
|
-
className: classes.loadingWrapper,
|
13587
|
-
style: {
|
13588
|
-
display: 'contents'
|
13589
|
-
},
|
13590
|
-
children: /*#__PURE__*/jsx(IconButtonLoadingIndicator, {
|
13591
|
-
className: classes.loadingIndicator,
|
13592
|
-
ownerState: ownerState,
|
13593
|
-
children: loading && loadingIndicator
|
13594
|
-
})
|
13595
|
-
}), children]
|
13087
|
+
children: children
|
13596
13088
|
});
|
13597
13089
|
});
|
13598
13090
|
process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes */ = {
|
@@ -13651,23 +13143,6 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
13651
13143
|
* @default false
|
13652
13144
|
*/
|
13653
13145
|
edge: PropTypes.oneOf(['end', 'start', false]),
|
13654
|
-
/**
|
13655
|
-
* @ignore
|
13656
|
-
*/
|
13657
|
-
id: PropTypes.string,
|
13658
|
-
/**
|
13659
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
13660
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
13661
|
-
* @default null
|
13662
|
-
*/
|
13663
|
-
loading: PropTypes.bool,
|
13664
|
-
/**
|
13665
|
-
* Element placed before the children if the button is in loading state.
|
13666
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
13667
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
13668
|
-
* @default <CircularProgress color="inherit" size={16} />
|
13669
|
-
*/
|
13670
|
-
loadingIndicator: PropTypes.node,
|
13671
13146
|
/**
|
13672
13147
|
* The size of the component.
|
13673
13148
|
* `small` is equivalent to the dense button styling.
|
@@ -13887,7 +13362,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
13887
13362
|
enableColorOnDark: PropTypes.bool,
|
13888
13363
|
/**
|
13889
13364
|
* The positioning type. The behavior of the different options is described
|
13890
|
-
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/
|
13365
|
+
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
13891
13366
|
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
13892
13367
|
* @default 'fixed'
|
13893
13368
|
*/
|
@@ -13943,9 +13418,13 @@ const Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef
|
|
13943
13418
|
};
|
13944
13419
|
return /*#__PURE__*/React.cloneElement(children, newProps);
|
13945
13420
|
}
|
13946
|
-
return
|
13421
|
+
return /*#__PURE__*/jsx(React.Fragment, {
|
13422
|
+
children: children
|
13423
|
+
});
|
13947
13424
|
}
|
13948
|
-
return
|
13425
|
+
return /*#__PURE__*/jsx(React.Fragment, {
|
13426
|
+
children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode
|
13427
|
+
});
|
13949
13428
|
});
|
13950
13429
|
process.env.NODE_ENV !== "production" ? Portal.propTypes /* remove-proptypes */ = {
|
13951
13430
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
@@ -14968,7 +14447,6 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
14968
14447
|
*/
|
14969
14448
|
value: PropTypes.any
|
14970
14449
|
} : void 0;
|
14971
|
-
var InputBase$1 = InputBase;
|
14972
14450
|
|
14973
14451
|
function getOutlinedInputUtilityClass(slot) {
|
14974
14452
|
return generateUtilityClass('MuiOutlinedInput', slot);
|
@@ -15082,10 +14560,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
15082
14560
|
addEndListener: handleAddEndListener,
|
15083
14561
|
timeout: timeout,
|
15084
14562
|
...other,
|
15085
|
-
children: (state, {
|
15086
|
-
ownerState,
|
15087
|
-
...restChildProps
|
15088
|
-
}) => {
|
14563
|
+
children: (state, childProps) => {
|
15089
14564
|
return /*#__PURE__*/React.cloneElement(children, {
|
15090
14565
|
style: {
|
15091
14566
|
opacity: 0,
|
@@ -15095,7 +14570,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
15095
14570
|
...children.props.style
|
15096
14571
|
},
|
15097
14572
|
ref: handleRef,
|
15098
|
-
...
|
14573
|
+
...childProps
|
15099
14574
|
});
|
15100
14575
|
}
|
15101
14576
|
});
|
@@ -15181,6 +14656,13 @@ function getBackdropUtilityClass(slot) {
|
|
15181
14656
|
}
|
15182
14657
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
15183
14658
|
|
14659
|
+
const removeOwnerState = props => {
|
14660
|
+
const {
|
14661
|
+
ownerState,
|
14662
|
+
...rest
|
14663
|
+
} = props;
|
14664
|
+
return rest;
|
14665
|
+
};
|
15184
14666
|
const useUtilityClasses$b = ownerState => {
|
15185
14667
|
const {
|
15186
14668
|
classes,
|
@@ -15269,11 +14751,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
15269
14751
|
externalForwardedProps,
|
15270
14752
|
ownerState
|
15271
14753
|
});
|
14754
|
+
const transitionPropsRemoved = removeOwnerState(transitionProps);
|
15272
14755
|
return /*#__PURE__*/jsx(TransitionSlot, {
|
15273
14756
|
in: open,
|
15274
14757
|
timeout: transitionDuration,
|
15275
14758
|
...other,
|
15276
|
-
...
|
14759
|
+
...transitionPropsRemoved,
|
15277
14760
|
children: /*#__PURE__*/jsx(RootSlot, {
|
15278
14761
|
"aria-hidden": true,
|
15279
14762
|
...rootProps,
|
@@ -15406,7 +14889,7 @@ process.env.NODE_ENV !== "production" ? Box$2.propTypes /* remove-proptypes */ =
|
|
15406
14889
|
function getButtonUtilityClass(slot) {
|
15407
14890
|
return generateUtilityClass('MuiButton', slot);
|
15408
14891
|
}
|
15409
|
-
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge'
|
14892
|
+
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
15410
14893
|
|
15411
14894
|
/**
|
15412
14895
|
* @ignore - internal component.
|
@@ -15431,16 +14914,13 @@ const useUtilityClasses$a = ownerState => {
|
|
15431
14914
|
fullWidth,
|
15432
14915
|
size,
|
15433
14916
|
variant,
|
15434
|
-
loading,
|
15435
|
-
loadingPosition,
|
15436
14917
|
classes
|
15437
14918
|
} = ownerState;
|
15438
14919
|
const slots = {
|
15439
|
-
root: ['root',
|
14920
|
+
root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
14921
|
+
label: ['label'],
|
15440
14922
|
startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],
|
15441
|
-
endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]
|
15442
|
-
loadingIndicator: ['loadingIndicator'],
|
15443
|
-
loadingWrapper: ['loadingWrapper']
|
14923
|
+
endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]
|
15444
14924
|
};
|
15445
14925
|
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
15446
14926
|
return {
|
@@ -15485,7 +14965,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
15485
14965
|
const {
|
15486
14966
|
ownerState
|
15487
14967
|
} = props;
|
15488
|
-
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth
|
14968
|
+
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
15489
14969
|
}
|
15490
14970
|
})(memoTheme(({
|
15491
14971
|
theme
|
@@ -15672,18 +15152,6 @@ const ButtonRoot = styled(ButtonBase, {
|
|
15672
15152
|
style: {
|
15673
15153
|
width: '100%'
|
15674
15154
|
}
|
15675
|
-
}, {
|
15676
|
-
props: {
|
15677
|
-
loadingPosition: 'center'
|
15678
|
-
},
|
15679
|
-
style: {
|
15680
|
-
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
15681
|
-
duration: theme.transitions.duration.short
|
15682
|
-
}),
|
15683
|
-
[`&.${buttonClasses.loading}`]: {
|
15684
|
-
color: 'transparent'
|
15685
|
-
}
|
15686
|
-
}
|
15687
15155
|
}]
|
15688
15156
|
};
|
15689
15157
|
}));
|
@@ -15694,11 +15162,9 @@ const ButtonStartIcon = styled('span', {
|
|
15694
15162
|
const {
|
15695
15163
|
ownerState
|
15696
15164
|
} = props;
|
15697
|
-
return [styles.startIcon,
|
15165
|
+
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15698
15166
|
}
|
15699
|
-
})(
|
15700
|
-
theme
|
15701
|
-
}) => ({
|
15167
|
+
})({
|
15702
15168
|
display: 'inherit',
|
15703
15169
|
marginRight: 8,
|
15704
15170
|
marginLeft: -4,
|
@@ -15709,28 +15175,8 @@ const ButtonStartIcon = styled('span', {
|
|
15709
15175
|
style: {
|
15710
15176
|
marginLeft: -2
|
15711
15177
|
}
|
15712
|
-
}, {
|
15713
|
-
props: {
|
15714
|
-
loadingPosition: 'start',
|
15715
|
-
loading: true
|
15716
|
-
},
|
15717
|
-
style: {
|
15718
|
-
transition: theme.transitions.create(['opacity'], {
|
15719
|
-
duration: theme.transitions.duration.short
|
15720
|
-
}),
|
15721
|
-
opacity: 0
|
15722
|
-
}
|
15723
|
-
}, {
|
15724
|
-
props: {
|
15725
|
-
loadingPosition: 'start',
|
15726
|
-
loading: true,
|
15727
|
-
fullWidth: true
|
15728
|
-
},
|
15729
|
-
style: {
|
15730
|
-
marginRight: -8
|
15731
|
-
}
|
15732
15178
|
}, ...commonIconStyles]
|
15733
|
-
})
|
15179
|
+
});
|
15734
15180
|
const ButtonEndIcon = styled('span', {
|
15735
15181
|
name: 'MuiButton',
|
15736
15182
|
slot: 'EndIcon',
|
@@ -15738,11 +15184,9 @@ const ButtonEndIcon = styled('span', {
|
|
15738
15184
|
const {
|
15739
15185
|
ownerState
|
15740
15186
|
} = props;
|
15741
|
-
return [styles.endIcon,
|
15187
|
+
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15742
15188
|
}
|
15743
|
-
})(
|
15744
|
-
theme
|
15745
|
-
}) => ({
|
15189
|
+
})({
|
15746
15190
|
display: 'inherit',
|
15747
15191
|
marginRight: -4,
|
15748
15192
|
marginLeft: 8,
|
@@ -15753,128 +15197,7 @@ const ButtonEndIcon = styled('span', {
|
|
15753
15197
|
style: {
|
15754
15198
|
marginRight: -2
|
15755
15199
|
}
|
15756
|
-
}, {
|
15757
|
-
props: {
|
15758
|
-
loadingPosition: 'end',
|
15759
|
-
loading: true
|
15760
|
-
},
|
15761
|
-
style: {
|
15762
|
-
transition: theme.transitions.create(['opacity'], {
|
15763
|
-
duration: theme.transitions.duration.short
|
15764
|
-
}),
|
15765
|
-
opacity: 0
|
15766
|
-
}
|
15767
|
-
}, {
|
15768
|
-
props: {
|
15769
|
-
loadingPosition: 'end',
|
15770
|
-
loading: true,
|
15771
|
-
fullWidth: true
|
15772
|
-
},
|
15773
|
-
style: {
|
15774
|
-
marginLeft: -8
|
15775
|
-
}
|
15776
15200
|
}, ...commonIconStyles]
|
15777
|
-
}));
|
15778
|
-
const ButtonLoadingIndicator = styled('span', {
|
15779
|
-
name: 'MuiButton',
|
15780
|
-
slot: 'LoadingIndicator',
|
15781
|
-
overridesResolver: (props, styles) => styles.loadingIndicator
|
15782
|
-
})(({
|
15783
|
-
theme
|
15784
|
-
}) => ({
|
15785
|
-
display: 'none',
|
15786
|
-
position: 'absolute',
|
15787
|
-
visibility: 'visible',
|
15788
|
-
variants: [{
|
15789
|
-
props: {
|
15790
|
-
loading: true
|
15791
|
-
},
|
15792
|
-
style: {
|
15793
|
-
display: 'flex'
|
15794
|
-
}
|
15795
|
-
}, {
|
15796
|
-
props: {
|
15797
|
-
loadingPosition: 'start'
|
15798
|
-
},
|
15799
|
-
style: {
|
15800
|
-
left: 14
|
15801
|
-
}
|
15802
|
-
}, {
|
15803
|
-
props: {
|
15804
|
-
loadingPosition: 'start',
|
15805
|
-
size: 'small'
|
15806
|
-
},
|
15807
|
-
style: {
|
15808
|
-
left: 10
|
15809
|
-
}
|
15810
|
-
}, {
|
15811
|
-
props: {
|
15812
|
-
variant: 'text',
|
15813
|
-
loadingPosition: 'start'
|
15814
|
-
},
|
15815
|
-
style: {
|
15816
|
-
left: 6
|
15817
|
-
}
|
15818
|
-
}, {
|
15819
|
-
props: {
|
15820
|
-
loadingPosition: 'center'
|
15821
|
-
},
|
15822
|
-
style: {
|
15823
|
-
left: '50%',
|
15824
|
-
transform: 'translate(-50%)',
|
15825
|
-
color: (theme.vars || theme).palette.action.disabled
|
15826
|
-
}
|
15827
|
-
}, {
|
15828
|
-
props: {
|
15829
|
-
loadingPosition: 'end'
|
15830
|
-
},
|
15831
|
-
style: {
|
15832
|
-
right: 14
|
15833
|
-
}
|
15834
|
-
}, {
|
15835
|
-
props: {
|
15836
|
-
loadingPosition: 'end',
|
15837
|
-
size: 'small'
|
15838
|
-
},
|
15839
|
-
style: {
|
15840
|
-
right: 10
|
15841
|
-
}
|
15842
|
-
}, {
|
15843
|
-
props: {
|
15844
|
-
variant: 'text',
|
15845
|
-
loadingPosition: 'end'
|
15846
|
-
},
|
15847
|
-
style: {
|
15848
|
-
right: 6
|
15849
|
-
}
|
15850
|
-
}, {
|
15851
|
-
props: {
|
15852
|
-
loadingPosition: 'start',
|
15853
|
-
fullWidth: true
|
15854
|
-
},
|
15855
|
-
style: {
|
15856
|
-
position: 'relative',
|
15857
|
-
left: -10
|
15858
|
-
}
|
15859
|
-
}, {
|
15860
|
-
props: {
|
15861
|
-
loadingPosition: 'end',
|
15862
|
-
fullWidth: true
|
15863
|
-
},
|
15864
|
-
style: {
|
15865
|
-
position: 'relative',
|
15866
|
-
right: -10
|
15867
|
-
}
|
15868
|
-
}]
|
15869
|
-
}));
|
15870
|
-
const ButtonLoadingIconPlaceholder = styled('span', {
|
15871
|
-
name: 'MuiButton',
|
15872
|
-
slot: 'LoadingIconPlaceholder',
|
15873
|
-
overridesResolver: (props, styles) => styles.loadingIconPlaceholder
|
15874
|
-
})({
|
15875
|
-
display: 'inline-block',
|
15876
|
-
width: '1em',
|
15877
|
-
height: '1em'
|
15878
15201
|
});
|
15879
15202
|
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
15880
15203
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
@@ -15896,22 +15219,12 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
15896
15219
|
endIcon: endIconProp,
|
15897
15220
|
focusVisibleClassName,
|
15898
15221
|
fullWidth = false,
|
15899
|
-
id: idProp,
|
15900
|
-
loading = null,
|
15901
|
-
loadingIndicator: loadingIndicatorProp,
|
15902
|
-
loadingPosition = 'center',
|
15903
15222
|
size = 'medium',
|
15904
15223
|
startIcon: startIconProp,
|
15905
15224
|
type,
|
15906
15225
|
variant = 'text',
|
15907
15226
|
...other
|
15908
15227
|
} = props;
|
15909
|
-
const id = useId(idProp);
|
15910
|
-
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/jsx(CircularProgress, {
|
15911
|
-
"aria-labelledby": id,
|
15912
|
-
color: "inherit",
|
15913
|
-
size: 16
|
15914
|
-
});
|
15915
15228
|
const ownerState = {
|
15916
15229
|
...props,
|
15917
15230
|
color,
|
@@ -15920,58 +15233,34 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
15920
15233
|
disableElevation,
|
15921
15234
|
disableFocusRipple,
|
15922
15235
|
fullWidth,
|
15923
|
-
loading,
|
15924
|
-
loadingIndicator,
|
15925
|
-
loadingPosition,
|
15926
15236
|
size,
|
15927
15237
|
type,
|
15928
15238
|
variant
|
15929
15239
|
};
|
15930
15240
|
const classes = useUtilityClasses$a(ownerState);
|
15931
|
-
const startIcon =
|
15241
|
+
const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
|
15932
15242
|
className: classes.startIcon,
|
15933
15243
|
ownerState: ownerState,
|
15934
|
-
children: startIconProp
|
15935
|
-
className: classes.loadingIconPlaceholder,
|
15936
|
-
ownerState: ownerState
|
15937
|
-
})
|
15244
|
+
children: startIconProp
|
15938
15245
|
});
|
15939
|
-
const endIcon =
|
15246
|
+
const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
|
15940
15247
|
className: classes.endIcon,
|
15941
15248
|
ownerState: ownerState,
|
15942
|
-
children: endIconProp
|
15943
|
-
className: classes.loadingIconPlaceholder,
|
15944
|
-
ownerState: ownerState
|
15945
|
-
})
|
15249
|
+
children: endIconProp
|
15946
15250
|
});
|
15947
15251
|
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
15948
|
-
const loader = typeof loading === 'boolean' ?
|
15949
|
-
/*#__PURE__*/
|
15950
|
-
// use plain HTML span to minimize the runtime overhead
|
15951
|
-
jsx("span", {
|
15952
|
-
className: classes.loadingWrapper,
|
15953
|
-
style: {
|
15954
|
-
display: 'contents'
|
15955
|
-
},
|
15956
|
-
children: loading && /*#__PURE__*/jsx(ButtonLoadingIndicator, {
|
15957
|
-
className: classes.loadingIndicator,
|
15958
|
-
ownerState: ownerState,
|
15959
|
-
children: loadingIndicator
|
15960
|
-
})
|
15961
|
-
}) : null;
|
15962
15252
|
return /*#__PURE__*/jsxs(ButtonRoot, {
|
15963
15253
|
ownerState: ownerState,
|
15964
15254
|
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
15965
15255
|
component: component,
|
15966
|
-
disabled: disabled
|
15256
|
+
disabled: disabled,
|
15967
15257
|
focusRipple: !disableFocusRipple,
|
15968
15258
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
15969
15259
|
ref: ref,
|
15970
15260
|
type: type,
|
15971
|
-
id: id,
|
15972
15261
|
...other,
|
15973
15262
|
classes: classes,
|
15974
|
-
children: [startIcon,
|
15263
|
+
children: [startIcon, children, endIcon]
|
15975
15264
|
});
|
15976
15265
|
});
|
15977
15266
|
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
@@ -16044,28 +15333,6 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
16044
15333
|
* If defined, an `a` element will be used as the root node.
|
16045
15334
|
*/
|
16046
15335
|
href: PropTypes.string,
|
16047
|
-
/**
|
16048
|
-
* @ignore
|
16049
|
-
*/
|
16050
|
-
id: PropTypes.string,
|
16051
|
-
/**
|
16052
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
16053
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
16054
|
-
* @default null
|
16055
|
-
*/
|
16056
|
-
loading: PropTypes.bool,
|
16057
|
-
/**
|
16058
|
-
* Element placed before the children if the button is in loading state.
|
16059
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
16060
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
16061
|
-
* @default <CircularProgress color="inherit" size={16} />
|
16062
|
-
*/
|
16063
|
-
loadingIndicator: PropTypes.node,
|
16064
|
-
/**
|
16065
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
16066
|
-
* @default 'center'
|
16067
|
-
*/
|
16068
|
-
loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),
|
16069
15336
|
/**
|
16070
15337
|
* The size of the component.
|
16071
15338
|
* `small` is equivalent to the dense button styling.
|
@@ -16630,7 +15897,6 @@ function getContainer(container) {
|
|
16630
15897
|
function getHasTransition(children) {
|
16631
15898
|
return children ? children.props.hasOwnProperty('in') : false;
|
16632
15899
|
}
|
16633
|
-
const noop = () => {};
|
16634
15900
|
|
16635
15901
|
// A modal manager used to track and manage the state of open Modals.
|
16636
15902
|
// Modals don't open on the server so this won't conflict with concurrent requests.
|
@@ -16802,8 +16068,8 @@ function useModal(parameters) {
|
|
16802
16068
|
}
|
16803
16069
|
};
|
16804
16070
|
return {
|
16805
|
-
onEnter: createChainedFunction(handleEnter, children?.props.onEnter
|
16806
|
-
onExited: createChainedFunction(handleExited, children?.props.onExited
|
16071
|
+
onEnter: createChainedFunction(handleEnter, children?.props.onEnter),
|
16072
|
+
onExited: createChainedFunction(handleExited, children?.props.onExited)
|
16807
16073
|
};
|
16808
16074
|
};
|
16809
16075
|
return {
|
@@ -17718,10 +16984,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
17718
16984
|
in: inProp,
|
17719
16985
|
timeout: timeout,
|
17720
16986
|
...other,
|
17721
|
-
children: (state, {
|
17722
|
-
ownerState,
|
17723
|
-
...restChildProps
|
17724
|
-
}) => {
|
16987
|
+
children: (state, childProps) => {
|
17725
16988
|
return /*#__PURE__*/React.cloneElement(children, {
|
17726
16989
|
ref: handleRef,
|
17727
16990
|
style: {
|
@@ -17729,7 +16992,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
17729
16992
|
...style,
|
17730
16993
|
...children.props.style
|
17731
16994
|
},
|
17732
|
-
...
|
16995
|
+
...childProps
|
17733
16996
|
});
|
17734
16997
|
}
|
17735
16998
|
});
|
@@ -17840,7 +17103,7 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
17840
17103
|
function getDrawerUtilityClass(slot) {
|
17841
17104
|
return generateUtilityClass('MuiDrawer', slot);
|
17842
17105
|
}
|
17843
|
-
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', '
|
17106
|
+
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
17844
17107
|
|
17845
17108
|
const overridesResolver$2 = (props, styles) => {
|
17846
17109
|
const {
|
@@ -17855,7 +17118,7 @@ const useUtilityClasses$7 = ownerState => {
|
|
17855
17118
|
variant
|
17856
17119
|
} = ownerState;
|
17857
17120
|
const slots = {
|
17858
|
-
root: ['root'
|
17121
|
+
root: ['root'],
|
17859
17122
|
docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
|
17860
17123
|
modal: ['modal'],
|
17861
17124
|
paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
|
@@ -18339,10 +17602,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
18339
17602
|
addEndListener: handleAddEndListener,
|
18340
17603
|
timeout: timeout === 'auto' ? null : timeout,
|
18341
17604
|
...other,
|
18342
|
-
children: (state, {
|
18343
|
-
ownerState,
|
18344
|
-
...restChildProps
|
18345
|
-
}) => {
|
17605
|
+
children: (state, childProps) => {
|
18346
17606
|
return /*#__PURE__*/React.cloneElement(children, {
|
18347
17607
|
style: {
|
18348
17608
|
opacity: 0,
|
@@ -18353,7 +17613,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
18353
17613
|
...children.props.style
|
18354
17614
|
},
|
18355
17615
|
ref: handleRef,
|
18356
|
-
...
|
17616
|
+
...childProps
|
18357
17617
|
});
|
18358
17618
|
}
|
18359
17619
|
});
|
@@ -18556,7 +17816,6 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
18556
17816
|
}) : /*#__PURE__*/jsxs(React.Fragment, {
|
18557
17817
|
children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span$1 || (_span$1 = /*#__PURE__*/jsx("span", {
|
18558
17818
|
className: "notranslate",
|
18559
|
-
"aria-hidden": true,
|
18560
17819
|
children: "\u200B"
|
18561
17820
|
}))) : null, children]
|
18562
17821
|
})
|
@@ -18615,7 +17874,7 @@ process.env.NODE_ENV !== "production" ? InputAdornment.propTypes /* remove-propt
|
|
18615
17874
|
function getLinearProgressUtilityClass(slot) {
|
18616
17875
|
return generateUtilityClass('MuiLinearProgress', slot);
|
18617
17876
|
}
|
18618
|
-
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', '
|
17877
|
+
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
18619
17878
|
|
18620
17879
|
const TRANSITION_DURATION = 4; // seconds
|
18621
17880
|
const indeterminate1Keyframe = keyframes`
|
@@ -18688,8 +17947,8 @@ const useUtilityClasses$5 = ownerState => {
|
|
18688
17947
|
const slots = {
|
18689
17948
|
root: ['root', `color${capitalize(color)}`, variant],
|
18690
17949
|
dashed: ['dashed', `dashedColor${capitalize(color)}`],
|
18691
|
-
bar1: ['bar',
|
18692
|
-
bar2: ['bar',
|
17950
|
+
bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
17951
|
+
bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
18693
17952
|
};
|
18694
17953
|
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
18695
17954
|
};
|
@@ -18807,7 +18066,7 @@ const LinearProgressBar1 = styled('span', {
|
|
18807
18066
|
const {
|
18808
18067
|
ownerState
|
18809
18068
|
} = props;
|
18810
|
-
return [styles.bar, styles
|
18069
|
+
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
18811
18070
|
}
|
18812
18071
|
})(memoTheme(({
|
18813
18072
|
theme
|
@@ -18871,7 +18130,7 @@ const LinearProgressBar2 = styled('span', {
|
|
18871
18130
|
const {
|
18872
18131
|
ownerState
|
18873
18132
|
} = props;
|
18874
|
-
return [styles.bar, styles
|
18133
|
+
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
18875
18134
|
}
|
18876
18135
|
})(memoTheme(({
|
18877
18136
|
theme
|
@@ -20076,7 +19335,6 @@ function NotchedOutline(props) {
|
|
20076
19335
|
}) : // notranslate needed while Google Translate will not fix zero-width space issue
|
20077
19336
|
_span || (_span = /*#__PURE__*/jsx("span", {
|
20078
19337
|
className: "notranslate",
|
20079
|
-
"aria-hidden": true,
|
20080
19338
|
children: "\u200B"
|
20081
19339
|
}))
|
20082
19340
|
})
|
@@ -20310,7 +19568,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
20310
19568
|
};
|
20311
19569
|
const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;
|
20312
19570
|
const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;
|
20313
|
-
return /*#__PURE__*/jsx(InputBase
|
19571
|
+
return /*#__PURE__*/jsx(InputBase, {
|
20314
19572
|
slots: {
|
20315
19573
|
root: RootSlot,
|
20316
19574
|
input: InputSlot
|
@@ -20500,7 +19758,9 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
20500
19758
|
*/
|
20501
19759
|
value: PropTypes.any
|
20502
19760
|
} : void 0;
|
20503
|
-
OutlinedInput
|
19761
|
+
if (OutlinedInput) {
|
19762
|
+
OutlinedInput.muiName = 'Input';
|
19763
|
+
}
|
20504
19764
|
|
20505
19765
|
const Stack = createStack({
|
20506
19766
|
createStyledComponent: styled('div', {
|
@@ -24635,7 +23895,7 @@ function sanitizeDegreesDouble(degrees) {
|
|
24635
23895
|
*/
|
24636
23896
|
function rotationDirection(from, to) {
|
24637
23897
|
const increasingDifference = sanitizeDegreesDouble(to - from);
|
24638
|
-
return increasingDifference <= 180.0 ? 1.0 : -1
|
23898
|
+
return increasingDifference <= 180.0 ? 1.0 : -1;
|
24639
23899
|
}
|
24640
23900
|
/**
|
24641
23901
|
* Distance of two points on a circle, represented using degrees.
|
@@ -24977,7 +24237,7 @@ class ViewingConditions {
|
|
24977
24237
|
const xyz = whitePoint;
|
24978
24238
|
const rW = xyz[0] * 0.401288 + xyz[1] * 0.650173 + xyz[2] * -0.051461;
|
24979
24239
|
const gW = xyz[0] * -0.250268 + xyz[1] * 1.204414 + xyz[2] * 0.045854;
|
24980
|
-
const bW = xyz[0] * -
|
24240
|
+
const bW = xyz[0] * -2079e-6 + xyz[1] * 0.048952 + xyz[2] * 0.953127;
|
24981
24241
|
const f = 0.8 + surround / 10.0;
|
24982
24242
|
const c = f >= 0.9 ? lerp(0.59, 0.69, (f - 0.9) * 10.0) :
|
24983
24243
|
lerp(0.525, 0.59, (f - 0.8) * 10.0);
|
@@ -25140,7 +24400,7 @@ class Cam16 {
|
|
25140
24400
|
const z = 0.01932141 * redL + 0.11916382 * greenL + 0.95034478 * blueL;
|
25141
24401
|
const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;
|
25142
24402
|
const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;
|
25143
|
-
const bC = -
|
24403
|
+
const bC = -2079e-6 * x + 0.048952 * y + 0.953127 * z;
|
25144
24404
|
const rD = viewingConditions.rgbD[0] * rC;
|
25145
24405
|
const gD = viewingConditions.rgbD[1] * gC;
|
25146
24406
|
const bD = viewingConditions.rgbD[2] * bC;
|
@@ -25150,7 +24410,7 @@ class Cam16 {
|
|
25150
24410
|
const rA = (signum(rD) * 400.0 * rAF) / (rAF + 27.13);
|
25151
24411
|
const gA = (signum(gD) * 400.0 * gAF) / (gAF + 27.13);
|
25152
24412
|
const bA = (signum(bD) * 400.0 * bAF) / (bAF + 27.13);
|
25153
|
-
const a = (11.0 * rA + -12
|
24413
|
+
const a = (11.0 * rA + -12 * gA + bA) / 11.0;
|
25154
24414
|
const b = (rA + gA - 2.0 * bA) / 9.0;
|
25155
24415
|
const u = (20.0 * rA + 20.0 * gA + 21.0 * bA) / 20.0;
|
25156
24416
|
const p2 = (40.0 * rA + 20.0 * gA + bA) / 20.0;
|
@@ -25289,7 +24549,7 @@ class Cam16 {
|
|
25289
24549
|
const bF = bC / viewingConditions.rgbD[2];
|
25290
24550
|
const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;
|
25291
24551
|
const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;
|
25292
|
-
const z = -0.
|
24552
|
+
const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;
|
25293
24553
|
const argb = argbFromXyz(x, y, z);
|
25294
24554
|
return argb;
|
25295
24555
|
}
|
@@ -25299,7 +24559,7 @@ class Cam16 {
|
|
25299
24559
|
// Transform XYZ to 'cone'/'rgb' responses
|
25300
24560
|
const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;
|
25301
24561
|
const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;
|
25302
|
-
const bC = -
|
24562
|
+
const bC = -2079e-6 * x + 0.048952 * y + 0.953127 * z;
|
25303
24563
|
// Discount illuminant
|
25304
24564
|
const rD = viewingConditions.rgbD[0] * rC;
|
25305
24565
|
const gD = viewingConditions.rgbD[1] * gC;
|
@@ -25312,7 +24572,7 @@ class Cam16 {
|
|
25312
24572
|
const gA = signum(gD) * 400.0 * gAF / (gAF + 27.13);
|
25313
24573
|
const bA = signum(bD) * 400.0 * bAF / (bAF + 27.13);
|
25314
24574
|
// redness-greenness
|
25315
|
-
const a = (11.0 * rA + -12
|
24575
|
+
const a = (11.0 * rA + -12 * gA + bA) / 11.0;
|
25316
24576
|
// yellowness-blueness
|
25317
24577
|
const b = (rA + gA - 2.0 * bA) / 9.0;
|
25318
24578
|
// auxiliary components
|
@@ -25385,7 +24645,7 @@ class Cam16 {
|
|
25385
24645
|
const bF = bC / viewingConditions.rgbD[2];
|
25386
24646
|
const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;
|
25387
24647
|
const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;
|
25388
|
-
const z = -0.
|
24648
|
+
const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;
|
25389
24649
|
return [x, y, z];
|
25390
24650
|
}
|
25391
24651
|
}
|
@@ -25462,7 +24722,7 @@ class HctSolver {
|
|
25462
24722
|
const gA = HctSolver.chromaticAdaptation(scaledDiscount[1]);
|
25463
24723
|
const bA = HctSolver.chromaticAdaptation(scaledDiscount[2]);
|
25464
24724
|
// redness-greenness
|
25465
|
-
const a = (11.0 * rA + -12
|
24725
|
+
const a = (11.0 * rA + -12 * gA + bA) / 11.0;
|
25466
24726
|
// yellowness-blueness
|
25467
24727
|
const b = (rA + gA - 2.0 * bA) / 9.0;
|
25468
24728
|
return Math.atan2(b, a);
|
@@ -25532,7 +24792,7 @@ class HctSolver {
|
|
25532
24792
|
return [r, g, b];
|
25533
24793
|
}
|
25534
24794
|
else {
|
25535
|
-
return [-1
|
24795
|
+
return [-1, -1, -1];
|
25536
24796
|
}
|
25537
24797
|
}
|
25538
24798
|
else if (n < 8) {
|
@@ -25543,7 +24803,7 @@ class HctSolver {
|
|
25543
24803
|
return [r, g, b];
|
25544
24804
|
}
|
25545
24805
|
else {
|
25546
|
-
return [-1
|
24806
|
+
return [-1, -1, -1];
|
25547
24807
|
}
|
25548
24808
|
}
|
25549
24809
|
else {
|
@@ -25554,7 +24814,7 @@ class HctSolver {
|
|
25554
24814
|
return [r, g, b];
|
25555
24815
|
}
|
25556
24816
|
else {
|
25557
|
-
return [-1
|
24817
|
+
return [-1, -1, -1];
|
25558
24818
|
}
|
25559
24819
|
}
|
25560
24820
|
}
|
@@ -25568,7 +24828,7 @@ class HctSolver {
|
|
25568
24828
|
* desired color.
|
25569
24829
|
*/
|
25570
24830
|
static bisectToSegment(y, targetHue) {
|
25571
|
-
let left = [-1
|
24831
|
+
let left = [-1, -1, -1];
|
25572
24832
|
let right = left;
|
25573
24833
|
let leftHue = 0.0;
|
25574
24834
|
let rightHue = 0.0;
|
@@ -26182,7 +25442,7 @@ class Contrast {
|
|
26182
25442
|
*/
|
26183
25443
|
static lighter(tone, ratio) {
|
26184
25444
|
if (tone < 0.0 || tone > 100.0) {
|
26185
|
-
return -1
|
25445
|
+
return -1;
|
26186
25446
|
}
|
26187
25447
|
const darkY = yFromLstar(tone);
|
26188
25448
|
const lightY = ratio * (darkY + 5.0) - 5.0;
|
@@ -26211,7 +25471,7 @@ class Contrast {
|
|
26211
25471
|
*/
|
26212
25472
|
static darker(tone, ratio) {
|
26213
25473
|
if (tone < 0.0 || tone > 100.0) {
|
26214
|
-
return -1
|
25474
|
+
return -1;
|
26215
25475
|
}
|
26216
25476
|
const lightY = yFromLstar(tone);
|
26217
25477
|
const darkY = ((lightY + 5.0) / ratio) - 5.0;
|
@@ -26754,7 +26014,7 @@ class ContrastCurve {
|
|
26754
26014
|
* @return The contrast ratio, a number between 1.0 and 21.0.
|
26755
26015
|
*/
|
26756
26016
|
getContrast(contrastLevel) {
|
26757
|
-
if (contrastLevel <= -1
|
26017
|
+
if (contrastLevel <= -1) {
|
26758
26018
|
return this.low;
|
26759
26019
|
}
|
26760
26020
|
else if (contrastLevel < 0.0) {
|
@@ -26858,7 +26118,7 @@ function findDesiredChromaByTone(hue, chroma, tone, byDecreasingTone) {
|
|
26858
26118
|
if (closestToChroma.chroma < chroma) {
|
26859
26119
|
let chromaPeak = closestToChroma.chroma;
|
26860
26120
|
while (closestToChroma.chroma < chroma) {
|
26861
|
-
answer += byDecreasingTone ? -1
|
26121
|
+
answer += byDecreasingTone ? -1 : 1.0;
|
26862
26122
|
const potentialSolution = Hct.from(hue, chroma, answer);
|
26863
26123
|
if (chromaPeak > potentialSolution.chroma) {
|
26864
26124
|
break;
|
@@ -27701,8 +26961,8 @@ class QuantizerWsmeans {
|
|
27701
26961
|
if (startingClusters.length === 0 && additionalClustersNeeded > 0) {
|
27702
26962
|
for (let i = 0; i < additionalClustersNeeded; i++) {
|
27703
26963
|
const l = Math.random() * 100.0;
|
27704
|
-
const a = Math.random() * (100.0 - (-100
|
27705
|
-
const b = Math.random() * (100.0 - (-100
|
26964
|
+
const a = Math.random() * (100.0 - (-100) + 1) + -100;
|
26965
|
+
const b = Math.random() * (100.0 - (-100) + 1) + -100;
|
27706
26966
|
clusters.push(new Array(l, a, b));
|
27707
26967
|
}
|
27708
26968
|
}
|
@@ -28837,7 +28097,7 @@ function customColor(source, color) {
|
|
28837
28097
|
}
|
28838
28098
|
|
28839
28099
|
var DynamicColor = /*#__PURE__*/function () {
|
28840
|
-
var _ref = _asyncToGenerator(
|
28100
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(src) {
|
28841
28101
|
var imageElement, dynamicPalette, extractHctInstance, _dynamicPalette$palet, primary, secondary, _dynamicPalette$schem, dark, light, primaryMain, secondaryMain, primaryLight, primaryDark, secondaryLight, secondaryDark, primaryColor, secondaryColor, backgroundColor;
|
28842
28102
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
28843
28103
|
while (1) switch (_context.prev = _context.next) {
|