@sinco/react 1.2.5-rc.5 → 1.2.5-rc.7
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 +1381 -424
- package/package.json +1 -1
- package/src/lib/Components/index.d.ts +1 -0
package/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { Children, isValidElement, cloneElement, useState, useCallback, useEffect } from 'react';
|
3
|
-
import { CheckCircleRounded, ErrorRounded, WarningRounded, InfoRounded, Close, KeyboardArrowDown, KeyboardArrowUp, Info, Warning, SearchOutlined } from '@mui/icons-material';
|
3
|
+
import { CheckCircleRounded, ErrorRounded, WarningRounded, InfoRounded, Close, KeyboardArrowDown, KeyboardArrowUp, Info, Warning, 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';
|
@@ -484,7 +484,7 @@ function _extends() {
|
|
484
484
|
}, _extends.apply(null, arguments);
|
485
485
|
}
|
486
486
|
|
487
|
-
function memoize$
|
487
|
+
function memoize$2(fn) {
|
488
488
|
var cache = Object.create(null);
|
489
489
|
return function (arg) {
|
490
490
|
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
@@ -492,10 +492,9 @@ function memoize$1(fn) {
|
|
492
492
|
};
|
493
493
|
}
|
494
494
|
|
495
|
-
//
|
496
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
495
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
497
496
|
|
498
|
-
var isPropValid = /* #__PURE__ */memoize$
|
497
|
+
var isPropValid = /* #__PURE__ */memoize$2(function (prop) {
|
499
498
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
500
499
|
/* o */
|
501
500
|
&& prop.charCodeAt(1) === 110
|
@@ -663,6 +662,14 @@ var unitlessKeys = {
|
|
663
662
|
strokeWidth: 1
|
664
663
|
};
|
665
664
|
|
665
|
+
function memoize$1(fn) {
|
666
|
+
var cache = Object.create(null);
|
667
|
+
return function (arg) {
|
668
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
669
|
+
return cache[arg];
|
670
|
+
};
|
671
|
+
}
|
672
|
+
|
666
673
|
var isDevelopment = false;
|
667
674
|
|
668
675
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
@@ -1105,7 +1112,7 @@ var propTypes = {exports: {}};
|
|
1105
1112
|
|
1106
1113
|
var reactIs$1 = {exports: {}};
|
1107
1114
|
|
1108
|
-
var reactIs_production_min
|
1115
|
+
var reactIs_production_min = {};
|
1109
1116
|
|
1110
1117
|
/** @license React v16.13.1
|
1111
1118
|
* react-is.production.min.js
|
@@ -1116,18 +1123,18 @@ var reactIs_production_min$1 = {};
|
|
1116
1123
|
* LICENSE file in the root directory of this source tree.
|
1117
1124
|
*/
|
1118
1125
|
|
1119
|
-
var hasRequiredReactIs_production_min
|
1126
|
+
var hasRequiredReactIs_production_min;
|
1120
1127
|
|
1121
|
-
function requireReactIs_production_min
|
1122
|
-
if (hasRequiredReactIs_production_min
|
1123
|
-
hasRequiredReactIs_production_min
|
1128
|
+
function requireReactIs_production_min () {
|
1129
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
1130
|
+
hasRequiredReactIs_production_min = 1;
|
1124
1131
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
1125
1132
|
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
1126
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min
|
1127
|
-
reactIs_production_min
|
1128
|
-
reactIs_production_min
|
1129
|
-
reactIs_production_min
|
1130
|
-
return reactIs_production_min
|
1133
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
1134
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
1135
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
1136
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
1137
|
+
return reactIs_production_min;
|
1131
1138
|
}
|
1132
1139
|
|
1133
1140
|
var reactIs_development$1 = {};
|
@@ -1326,7 +1333,7 @@ function requireReactIs () {
|
|
1326
1333
|
hasRequiredReactIs = 1;
|
1327
1334
|
|
1328
1335
|
if (process.env.NODE_ENV === 'production') {
|
1329
|
-
reactIs$1.exports = requireReactIs_production_min
|
1336
|
+
reactIs$1.exports = requireReactIs_production_min();
|
1330
1337
|
} else {
|
1331
1338
|
reactIs$1.exports = requireReactIs_development$1();
|
1332
1339
|
}
|
@@ -2303,7 +2310,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
|
|
2303
2310
|
} : void 0;
|
2304
2311
|
|
2305
2312
|
/**
|
2306
|
-
* @mui/styled-engine v6.
|
2313
|
+
* @mui/styled-engine v6.4.0
|
2307
2314
|
*
|
2308
2315
|
* @license MIT
|
2309
2316
|
* This source code is licensed under the MIT license found in the
|
@@ -2343,6 +2350,295 @@ function internal_serializeStyles(styles) {
|
|
2343
2350
|
return serializeStyles(wrapper);
|
2344
2351
|
}
|
2345
2352
|
|
2353
|
+
var reactIs = {exports: {}};
|
2354
|
+
|
2355
|
+
var reactIs_production = {};
|
2356
|
+
|
2357
|
+
/**
|
2358
|
+
* @license React
|
2359
|
+
* react-is.production.js
|
2360
|
+
*
|
2361
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2362
|
+
*
|
2363
|
+
* This source code is licensed under the MIT license found in the
|
2364
|
+
* LICENSE file in the root directory of this source tree.
|
2365
|
+
*/
|
2366
|
+
|
2367
|
+
var hasRequiredReactIs_production;
|
2368
|
+
|
2369
|
+
function requireReactIs_production () {
|
2370
|
+
if (hasRequiredReactIs_production) return reactIs_production;
|
2371
|
+
hasRequiredReactIs_production = 1;
|
2372
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
2373
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
2374
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
2375
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
2376
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
2377
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
2378
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
2379
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
2380
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
2381
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
2382
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
2383
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
2384
|
+
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
2385
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
2386
|
+
function typeOf(object) {
|
2387
|
+
if ("object" === typeof object && null !== object) {
|
2388
|
+
var $$typeof = object.$$typeof;
|
2389
|
+
switch ($$typeof) {
|
2390
|
+
case REACT_ELEMENT_TYPE:
|
2391
|
+
switch (((object = object.type), object)) {
|
2392
|
+
case REACT_FRAGMENT_TYPE:
|
2393
|
+
case REACT_PROFILER_TYPE:
|
2394
|
+
case REACT_STRICT_MODE_TYPE:
|
2395
|
+
case REACT_SUSPENSE_TYPE:
|
2396
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
2397
|
+
return object;
|
2398
|
+
default:
|
2399
|
+
switch (((object = object && object.$$typeof), object)) {
|
2400
|
+
case REACT_CONTEXT_TYPE:
|
2401
|
+
case REACT_FORWARD_REF_TYPE:
|
2402
|
+
case REACT_LAZY_TYPE:
|
2403
|
+
case REACT_MEMO_TYPE:
|
2404
|
+
return object;
|
2405
|
+
case REACT_CONSUMER_TYPE:
|
2406
|
+
return object;
|
2407
|
+
default:
|
2408
|
+
return $$typeof;
|
2409
|
+
}
|
2410
|
+
}
|
2411
|
+
case REACT_PORTAL_TYPE:
|
2412
|
+
return $$typeof;
|
2413
|
+
}
|
2414
|
+
}
|
2415
|
+
}
|
2416
|
+
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
2417
|
+
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
2418
|
+
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
2419
|
+
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
2420
|
+
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
2421
|
+
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
2422
|
+
reactIs_production.Memo = REACT_MEMO_TYPE;
|
2423
|
+
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
2424
|
+
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
2425
|
+
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
2426
|
+
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
2427
|
+
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
2428
|
+
reactIs_production.isContextConsumer = function (object) {
|
2429
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
2430
|
+
};
|
2431
|
+
reactIs_production.isContextProvider = function (object) {
|
2432
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
2433
|
+
};
|
2434
|
+
reactIs_production.isElement = function (object) {
|
2435
|
+
return (
|
2436
|
+
"object" === typeof object &&
|
2437
|
+
null !== object &&
|
2438
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
2439
|
+
);
|
2440
|
+
};
|
2441
|
+
reactIs_production.isForwardRef = function (object) {
|
2442
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
2443
|
+
};
|
2444
|
+
reactIs_production.isFragment = function (object) {
|
2445
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
2446
|
+
};
|
2447
|
+
reactIs_production.isLazy = function (object) {
|
2448
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
2449
|
+
};
|
2450
|
+
reactIs_production.isMemo = function (object) {
|
2451
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
2452
|
+
};
|
2453
|
+
reactIs_production.isPortal = function (object) {
|
2454
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
2455
|
+
};
|
2456
|
+
reactIs_production.isProfiler = function (object) {
|
2457
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
2458
|
+
};
|
2459
|
+
reactIs_production.isStrictMode = function (object) {
|
2460
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
2461
|
+
};
|
2462
|
+
reactIs_production.isSuspense = function (object) {
|
2463
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
2464
|
+
};
|
2465
|
+
reactIs_production.isSuspenseList = function (object) {
|
2466
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
2467
|
+
};
|
2468
|
+
reactIs_production.isValidElementType = function (type) {
|
2469
|
+
return "string" === typeof type ||
|
2470
|
+
"function" === typeof type ||
|
2471
|
+
type === REACT_FRAGMENT_TYPE ||
|
2472
|
+
type === REACT_PROFILER_TYPE ||
|
2473
|
+
type === REACT_STRICT_MODE_TYPE ||
|
2474
|
+
type === REACT_SUSPENSE_TYPE ||
|
2475
|
+
type === REACT_SUSPENSE_LIST_TYPE ||
|
2476
|
+
type === REACT_OFFSCREEN_TYPE ||
|
2477
|
+
("object" === typeof type &&
|
2478
|
+
null !== type &&
|
2479
|
+
(type.$$typeof === REACT_LAZY_TYPE ||
|
2480
|
+
type.$$typeof === REACT_MEMO_TYPE ||
|
2481
|
+
type.$$typeof === REACT_CONTEXT_TYPE ||
|
2482
|
+
type.$$typeof === REACT_CONSUMER_TYPE ||
|
2483
|
+
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
2484
|
+
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
2485
|
+
void 0 !== type.getModuleId))
|
2486
|
+
? !0
|
2487
|
+
: !1;
|
2488
|
+
};
|
2489
|
+
reactIs_production.typeOf = typeOf;
|
2490
|
+
return reactIs_production;
|
2491
|
+
}
|
2492
|
+
|
2493
|
+
var reactIs_development = {};
|
2494
|
+
|
2495
|
+
/**
|
2496
|
+
* @license React
|
2497
|
+
* react-is.development.js
|
2498
|
+
*
|
2499
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2500
|
+
*
|
2501
|
+
* This source code is licensed under the MIT license found in the
|
2502
|
+
* LICENSE file in the root directory of this source tree.
|
2503
|
+
*/
|
2504
|
+
|
2505
|
+
var hasRequiredReactIs_development;
|
2506
|
+
|
2507
|
+
function requireReactIs_development () {
|
2508
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
2509
|
+
hasRequiredReactIs_development = 1;
|
2510
|
+
"production" !== process.env.NODE_ENV &&
|
2511
|
+
(function () {
|
2512
|
+
function typeOf(object) {
|
2513
|
+
if ("object" === typeof object && null !== object) {
|
2514
|
+
var $$typeof = object.$$typeof;
|
2515
|
+
switch ($$typeof) {
|
2516
|
+
case REACT_ELEMENT_TYPE:
|
2517
|
+
switch (((object = object.type), object)) {
|
2518
|
+
case REACT_FRAGMENT_TYPE:
|
2519
|
+
case REACT_PROFILER_TYPE:
|
2520
|
+
case REACT_STRICT_MODE_TYPE:
|
2521
|
+
case REACT_SUSPENSE_TYPE:
|
2522
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
2523
|
+
return object;
|
2524
|
+
default:
|
2525
|
+
switch (((object = object && object.$$typeof), object)) {
|
2526
|
+
case REACT_CONTEXT_TYPE:
|
2527
|
+
case REACT_FORWARD_REF_TYPE:
|
2528
|
+
case REACT_LAZY_TYPE:
|
2529
|
+
case REACT_MEMO_TYPE:
|
2530
|
+
return object;
|
2531
|
+
case REACT_CONSUMER_TYPE:
|
2532
|
+
return object;
|
2533
|
+
default:
|
2534
|
+
return $$typeof;
|
2535
|
+
}
|
2536
|
+
}
|
2537
|
+
case REACT_PORTAL_TYPE:
|
2538
|
+
return $$typeof;
|
2539
|
+
}
|
2540
|
+
}
|
2541
|
+
}
|
2542
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
2543
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
2544
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
2545
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
2546
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
2547
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
2548
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
2549
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
2550
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
2551
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
2552
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
2553
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
2554
|
+
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
2555
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
2556
|
+
reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
|
2557
|
+
reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
|
2558
|
+
reactIs_development.Element = REACT_ELEMENT_TYPE;
|
2559
|
+
reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
|
2560
|
+
reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
|
2561
|
+
reactIs_development.Lazy = REACT_LAZY_TYPE;
|
2562
|
+
reactIs_development.Memo = REACT_MEMO_TYPE;
|
2563
|
+
reactIs_development.Portal = REACT_PORTAL_TYPE;
|
2564
|
+
reactIs_development.Profiler = REACT_PROFILER_TYPE;
|
2565
|
+
reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
2566
|
+
reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
|
2567
|
+
reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
2568
|
+
reactIs_development.isContextConsumer = function (object) {
|
2569
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
2570
|
+
};
|
2571
|
+
reactIs_development.isContextProvider = function (object) {
|
2572
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
2573
|
+
};
|
2574
|
+
reactIs_development.isElement = function (object) {
|
2575
|
+
return (
|
2576
|
+
"object" === typeof object &&
|
2577
|
+
null !== object &&
|
2578
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
2579
|
+
);
|
2580
|
+
};
|
2581
|
+
reactIs_development.isForwardRef = function (object) {
|
2582
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
2583
|
+
};
|
2584
|
+
reactIs_development.isFragment = function (object) {
|
2585
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
2586
|
+
};
|
2587
|
+
reactIs_development.isLazy = function (object) {
|
2588
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
2589
|
+
};
|
2590
|
+
reactIs_development.isMemo = function (object) {
|
2591
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
2592
|
+
};
|
2593
|
+
reactIs_development.isPortal = function (object) {
|
2594
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
2595
|
+
};
|
2596
|
+
reactIs_development.isProfiler = function (object) {
|
2597
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
2598
|
+
};
|
2599
|
+
reactIs_development.isStrictMode = function (object) {
|
2600
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
2601
|
+
};
|
2602
|
+
reactIs_development.isSuspense = function (object) {
|
2603
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
2604
|
+
};
|
2605
|
+
reactIs_development.isSuspenseList = function (object) {
|
2606
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
2607
|
+
};
|
2608
|
+
reactIs_development.isValidElementType = function (type) {
|
2609
|
+
return "string" === typeof type ||
|
2610
|
+
"function" === typeof type ||
|
2611
|
+
type === REACT_FRAGMENT_TYPE ||
|
2612
|
+
type === REACT_PROFILER_TYPE ||
|
2613
|
+
type === REACT_STRICT_MODE_TYPE ||
|
2614
|
+
type === REACT_SUSPENSE_TYPE ||
|
2615
|
+
type === REACT_SUSPENSE_LIST_TYPE ||
|
2616
|
+
type === REACT_OFFSCREEN_TYPE ||
|
2617
|
+
("object" === typeof type &&
|
2618
|
+
null !== type &&
|
2619
|
+
(type.$$typeof === REACT_LAZY_TYPE ||
|
2620
|
+
type.$$typeof === REACT_MEMO_TYPE ||
|
2621
|
+
type.$$typeof === REACT_CONTEXT_TYPE ||
|
2622
|
+
type.$$typeof === REACT_CONSUMER_TYPE ||
|
2623
|
+
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
2624
|
+
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
2625
|
+
void 0 !== type.getModuleId))
|
2626
|
+
? !0
|
2627
|
+
: !1;
|
2628
|
+
};
|
2629
|
+
reactIs_development.typeOf = typeOf;
|
2630
|
+
})();
|
2631
|
+
return reactIs_development;
|
2632
|
+
}
|
2633
|
+
|
2634
|
+
if (process.env.NODE_ENV === 'production') {
|
2635
|
+
reactIs.exports = requireReactIs_production();
|
2636
|
+
} else {
|
2637
|
+
reactIs.exports = requireReactIs_development();
|
2638
|
+
}
|
2639
|
+
|
2640
|
+
var reactIsExports = reactIs.exports;
|
2641
|
+
|
2346
2642
|
// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
|
2347
2643
|
function isPlainObject(item) {
|
2348
2644
|
if (typeof item !== 'object' || item === null) {
|
@@ -2352,7 +2648,7 @@ function isPlainObject(item) {
|
|
2352
2648
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
2353
2649
|
}
|
2354
2650
|
function deepClone(source) {
|
2355
|
-
if (/*#__PURE__*/React.isValidElement(source) || !isPlainObject(source)) {
|
2651
|
+
if (/*#__PURE__*/React.isValidElement(source) || reactIsExports.isValidElementType(source) || !isPlainObject(source)) {
|
2356
2652
|
return source;
|
2357
2653
|
}
|
2358
2654
|
const output = {};
|
@@ -2361,6 +2657,25 @@ function deepClone(source) {
|
|
2361
2657
|
});
|
2362
2658
|
return output;
|
2363
2659
|
}
|
2660
|
+
|
2661
|
+
/**
|
2662
|
+
* Merge objects deeply.
|
2663
|
+
* It will shallow copy React elements.
|
2664
|
+
*
|
2665
|
+
* If `options.clone` is set to `false` the source object will be merged directly into the target object.
|
2666
|
+
*
|
2667
|
+
* @example
|
2668
|
+
* ```ts
|
2669
|
+
* deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });
|
2670
|
+
* // => { a: { b: 1, c: 2 }, d: 4 }
|
2671
|
+
* ````
|
2672
|
+
*
|
2673
|
+
* @param target The target object.
|
2674
|
+
* @param source The source object.
|
2675
|
+
* @param options The merge options.
|
2676
|
+
* @param options.clone Set to `false` to merge the source object directly into the target object.
|
2677
|
+
* @returns The merged object.
|
2678
|
+
*/
|
2364
2679
|
function deepmerge(target, source, options = {
|
2365
2680
|
clone: true
|
2366
2681
|
}) {
|
@@ -2369,7 +2684,7 @@ function deepmerge(target, source, options = {
|
|
2369
2684
|
} : target;
|
2370
2685
|
if (isPlainObject(target) && isPlainObject(source)) {
|
2371
2686
|
Object.keys(source).forEach(key => {
|
2372
|
-
if (/*#__PURE__*/React.isValidElement(source[key])) {
|
2687
|
+
if (/*#__PURE__*/React.isValidElement(source[key]) || reactIsExports.isValidElementType(source[key])) {
|
2373
2688
|
output[key] = source[key];
|
2374
2689
|
} else if (isPlainObject(source[key]) &&
|
2375
2690
|
// Avoid prototype pollution
|
@@ -2388,7 +2703,7 @@ function deepmerge(target, source, options = {
|
|
2388
2703
|
|
2389
2704
|
// Sorted ASC by size. That's important.
|
2390
2705
|
// It can't be configured as it's used statically for propTypes.
|
2391
|
-
const sortBreakpointsValues = values => {
|
2706
|
+
const sortBreakpointsValues$1 = values => {
|
2392
2707
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
2393
2708
|
key,
|
2394
2709
|
val: values[key]
|
@@ -2404,7 +2719,7 @@ const sortBreakpointsValues = values => {
|
|
2404
2719
|
};
|
2405
2720
|
|
2406
2721
|
// Keep in mind that @media is inclusive by the CSS specification.
|
2407
|
-
function createBreakpoints(breakpoints) {
|
2722
|
+
function createBreakpoints$1(breakpoints) {
|
2408
2723
|
const {
|
2409
2724
|
// The breakpoint **start** at this value.
|
2410
2725
|
// For instance with the first breakpoint xs: [xs, sm).
|
@@ -2423,7 +2738,7 @@ function createBreakpoints(breakpoints) {
|
|
2423
2738
|
step = 5,
|
2424
2739
|
...other
|
2425
2740
|
} = breakpoints;
|
2426
|
-
const sortedValues = sortBreakpointsValues(values);
|
2741
|
+
const sortedValues = sortBreakpointsValues$1(values);
|
2427
2742
|
const keys = Object.keys(sortedValues);
|
2428
2743
|
function up(key) {
|
2429
2744
|
const value = typeof values[key] === 'number' ? values[key] : key;
|
@@ -3599,10 +3914,14 @@ styleFunctionSx.filterProps = ['sx'];
|
|
3599
3914
|
*
|
3600
3915
|
* Tips: Use an array over object spread and place `theme.applyStyles()` last.
|
3601
3916
|
*
|
3917
|
+
* With the styled function:
|
3602
3918
|
* ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]
|
3603
|
-
*
|
3604
3919
|
* 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}
|
3605
3920
|
*
|
3921
|
+
* With the sx prop:
|
3922
|
+
* ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]
|
3923
|
+
* 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}
|
3924
|
+
*
|
3606
3925
|
* @example
|
3607
3926
|
* 1. using with `styled`:
|
3608
3927
|
* ```jsx
|
@@ -3618,9 +3937,9 @@ styleFunctionSx.filterProps = ['sx'];
|
|
3618
3937
|
* @example
|
3619
3938
|
* 2. using with `sx` prop:
|
3620
3939
|
* ```jsx
|
3621
|
-
* <Box sx={
|
3940
|
+
* <Box sx={[
|
3622
3941
|
* { background: '#e5e5e5' },
|
3623
|
-
* theme.applyStyles('dark', {
|
3942
|
+
* theme => theme.applyStyles('dark', {
|
3624
3943
|
* background: '#1c1c1c',
|
3625
3944
|
* color: '#fff',
|
3626
3945
|
* }),
|
@@ -3682,7 +4001,7 @@ function createTheme$1(options = {}, ...args) {
|
|
3682
4001
|
shape: shapeInput = {},
|
3683
4002
|
...other
|
3684
4003
|
} = options;
|
3685
|
-
const breakpoints = createBreakpoints(breakpointsInput);
|
4004
|
+
const breakpoints = createBreakpoints$1(breakpointsInput);
|
3686
4005
|
const spacing = createSpacing(spacingInput);
|
3687
4006
|
let muiTheme = deepmerge({
|
3688
4007
|
breakpoints,
|
@@ -3882,270 +4201,6 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui')
|
|
3882
4201
|
return result;
|
3883
4202
|
}
|
3884
4203
|
|
3885
|
-
var reactIs = {exports: {}};
|
3886
|
-
|
3887
|
-
var reactIs_production_min = {};
|
3888
|
-
|
3889
|
-
/**
|
3890
|
-
* @license React
|
3891
|
-
* react-is.production.min.js
|
3892
|
-
*
|
3893
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
3894
|
-
*
|
3895
|
-
* This source code is licensed under the MIT license found in the
|
3896
|
-
* LICENSE file in the root directory of this source tree.
|
3897
|
-
*/
|
3898
|
-
|
3899
|
-
var hasRequiredReactIs_production_min;
|
3900
|
-
|
3901
|
-
function requireReactIs_production_min () {
|
3902
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
3903
|
-
hasRequiredReactIs_production_min = 1;
|
3904
|
-
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
3905
|
-
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
3906
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
3907
|
-
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
3908
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
3909
|
-
return reactIs_production_min;
|
3910
|
-
}
|
3911
|
-
|
3912
|
-
var reactIs_development = {};
|
3913
|
-
|
3914
|
-
/**
|
3915
|
-
* @license React
|
3916
|
-
* react-is.development.js
|
3917
|
-
*
|
3918
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
3919
|
-
*
|
3920
|
-
* This source code is licensed under the MIT license found in the
|
3921
|
-
* LICENSE file in the root directory of this source tree.
|
3922
|
-
*/
|
3923
|
-
|
3924
|
-
var hasRequiredReactIs_development;
|
3925
|
-
|
3926
|
-
function requireReactIs_development () {
|
3927
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
3928
|
-
hasRequiredReactIs_development = 1;
|
3929
|
-
|
3930
|
-
if (process.env.NODE_ENV !== "production") {
|
3931
|
-
(function() {
|
3932
|
-
|
3933
|
-
// ATTENTION
|
3934
|
-
// When adding new symbols to this file,
|
3935
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
3936
|
-
// The Symbol used to tag the ReactElement-like types.
|
3937
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
3938
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
3939
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
3940
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
3941
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
3942
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
3943
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
3944
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
3945
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
3946
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
3947
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
3948
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
3949
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
3950
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
3951
|
-
|
3952
|
-
// -----------------------------------------------------------------------------
|
3953
|
-
|
3954
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
3955
|
-
var enableCacheElement = false;
|
3956
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
3957
|
-
|
3958
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
3959
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
3960
|
-
// issues in DEV builds.
|
3961
|
-
|
3962
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
3963
|
-
|
3964
|
-
var REACT_MODULE_REFERENCE;
|
3965
|
-
|
3966
|
-
{
|
3967
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
3968
|
-
}
|
3969
|
-
|
3970
|
-
function isValidElementType(type) {
|
3971
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
3972
|
-
return true;
|
3973
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
3974
|
-
|
3975
|
-
|
3976
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
3977
|
-
return true;
|
3978
|
-
}
|
3979
|
-
|
3980
|
-
if (typeof type === 'object' && type !== null) {
|
3981
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
3982
|
-
// types supported by any Flight configuration anywhere since
|
3983
|
-
// we don't know which Flight build this will end up being used
|
3984
|
-
// with.
|
3985
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
3986
|
-
return true;
|
3987
|
-
}
|
3988
|
-
}
|
3989
|
-
|
3990
|
-
return false;
|
3991
|
-
}
|
3992
|
-
|
3993
|
-
function typeOf(object) {
|
3994
|
-
if (typeof object === 'object' && object !== null) {
|
3995
|
-
var $$typeof = object.$$typeof;
|
3996
|
-
|
3997
|
-
switch ($$typeof) {
|
3998
|
-
case REACT_ELEMENT_TYPE:
|
3999
|
-
var type = object.type;
|
4000
|
-
|
4001
|
-
switch (type) {
|
4002
|
-
case REACT_FRAGMENT_TYPE:
|
4003
|
-
case REACT_PROFILER_TYPE:
|
4004
|
-
case REACT_STRICT_MODE_TYPE:
|
4005
|
-
case REACT_SUSPENSE_TYPE:
|
4006
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
4007
|
-
return type;
|
4008
|
-
|
4009
|
-
default:
|
4010
|
-
var $$typeofType = type && type.$$typeof;
|
4011
|
-
|
4012
|
-
switch ($$typeofType) {
|
4013
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
4014
|
-
case REACT_CONTEXT_TYPE:
|
4015
|
-
case REACT_FORWARD_REF_TYPE:
|
4016
|
-
case REACT_LAZY_TYPE:
|
4017
|
-
case REACT_MEMO_TYPE:
|
4018
|
-
case REACT_PROVIDER_TYPE:
|
4019
|
-
return $$typeofType;
|
4020
|
-
|
4021
|
-
default:
|
4022
|
-
return $$typeof;
|
4023
|
-
}
|
4024
|
-
|
4025
|
-
}
|
4026
|
-
|
4027
|
-
case REACT_PORTAL_TYPE:
|
4028
|
-
return $$typeof;
|
4029
|
-
}
|
4030
|
-
}
|
4031
|
-
|
4032
|
-
return undefined;
|
4033
|
-
}
|
4034
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
4035
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
4036
|
-
var Element = REACT_ELEMENT_TYPE;
|
4037
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
4038
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
4039
|
-
var Lazy = REACT_LAZY_TYPE;
|
4040
|
-
var Memo = REACT_MEMO_TYPE;
|
4041
|
-
var Portal = REACT_PORTAL_TYPE;
|
4042
|
-
var Profiler = REACT_PROFILER_TYPE;
|
4043
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
4044
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
4045
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
4046
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
4047
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
4048
|
-
|
4049
|
-
function isAsyncMode(object) {
|
4050
|
-
{
|
4051
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
4052
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
4053
|
-
|
4054
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
4055
|
-
}
|
4056
|
-
}
|
4057
|
-
|
4058
|
-
return false;
|
4059
|
-
}
|
4060
|
-
function isConcurrentMode(object) {
|
4061
|
-
{
|
4062
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
4063
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
4064
|
-
|
4065
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
4066
|
-
}
|
4067
|
-
}
|
4068
|
-
|
4069
|
-
return false;
|
4070
|
-
}
|
4071
|
-
function isContextConsumer(object) {
|
4072
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
4073
|
-
}
|
4074
|
-
function isContextProvider(object) {
|
4075
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
4076
|
-
}
|
4077
|
-
function isElement(object) {
|
4078
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
4079
|
-
}
|
4080
|
-
function isForwardRef(object) {
|
4081
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
4082
|
-
}
|
4083
|
-
function isFragment(object) {
|
4084
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
4085
|
-
}
|
4086
|
-
function isLazy(object) {
|
4087
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
4088
|
-
}
|
4089
|
-
function isMemo(object) {
|
4090
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
4091
|
-
}
|
4092
|
-
function isPortal(object) {
|
4093
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
4094
|
-
}
|
4095
|
-
function isProfiler(object) {
|
4096
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
4097
|
-
}
|
4098
|
-
function isStrictMode(object) {
|
4099
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
4100
|
-
}
|
4101
|
-
function isSuspense(object) {
|
4102
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
4103
|
-
}
|
4104
|
-
function isSuspenseList(object) {
|
4105
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
4106
|
-
}
|
4107
|
-
|
4108
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
4109
|
-
reactIs_development.ContextProvider = ContextProvider;
|
4110
|
-
reactIs_development.Element = Element;
|
4111
|
-
reactIs_development.ForwardRef = ForwardRef;
|
4112
|
-
reactIs_development.Fragment = Fragment;
|
4113
|
-
reactIs_development.Lazy = Lazy;
|
4114
|
-
reactIs_development.Memo = Memo;
|
4115
|
-
reactIs_development.Portal = Portal;
|
4116
|
-
reactIs_development.Profiler = Profiler;
|
4117
|
-
reactIs_development.StrictMode = StrictMode;
|
4118
|
-
reactIs_development.Suspense = Suspense;
|
4119
|
-
reactIs_development.SuspenseList = SuspenseList;
|
4120
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
4121
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
4122
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
4123
|
-
reactIs_development.isContextProvider = isContextProvider;
|
4124
|
-
reactIs_development.isElement = isElement;
|
4125
|
-
reactIs_development.isForwardRef = isForwardRef;
|
4126
|
-
reactIs_development.isFragment = isFragment;
|
4127
|
-
reactIs_development.isLazy = isLazy;
|
4128
|
-
reactIs_development.isMemo = isMemo;
|
4129
|
-
reactIs_development.isPortal = isPortal;
|
4130
|
-
reactIs_development.isProfiler = isProfiler;
|
4131
|
-
reactIs_development.isStrictMode = isStrictMode;
|
4132
|
-
reactIs_development.isSuspense = isSuspense;
|
4133
|
-
reactIs_development.isSuspenseList = isSuspenseList;
|
4134
|
-
reactIs_development.isValidElementType = isValidElementType;
|
4135
|
-
reactIs_development.typeOf = typeOf;
|
4136
|
-
})();
|
4137
|
-
}
|
4138
|
-
return reactIs_development;
|
4139
|
-
}
|
4140
|
-
|
4141
|
-
if (process.env.NODE_ENV === 'production') {
|
4142
|
-
reactIs.exports = requireReactIs_production_min();
|
4143
|
-
} else {
|
4144
|
-
reactIs.exports = requireReactIs_development();
|
4145
|
-
}
|
4146
|
-
|
4147
|
-
var reactIsExports = reactIs.exports;
|
4148
|
-
|
4149
4204
|
function getFunctionComponentName(Component, fallback = '') {
|
4150
4205
|
return Component.displayName || Component.name || fallback;
|
4151
4206
|
}
|
@@ -4594,6 +4649,11 @@ function hexToRgb(color) {
|
|
4594
4649
|
if (colors && colors[0].length === 1) {
|
4595
4650
|
colors = colors.map(n => n + n);
|
4596
4651
|
}
|
4652
|
+
if (process.env.NODE_ENV !== 'production') {
|
4653
|
+
if (color.length !== color.trim().length) {
|
4654
|
+
console.error(`MUI: The color: "${color}" is invalid. Make sure the color input doesn't contain leading/trailing space.`);
|
4655
|
+
}
|
4656
|
+
}
|
4597
4657
|
return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {
|
4598
4658
|
return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
|
4599
4659
|
}).join(', ')})` : '';
|
@@ -5048,6 +5108,49 @@ function setRef(ref, value) {
|
|
5048
5108
|
}
|
5049
5109
|
}
|
5050
5110
|
|
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
|
+
|
5051
5154
|
function useControlled({
|
5052
5155
|
controlled,
|
5053
5156
|
default: defaultProp,
|
@@ -5271,6 +5374,34 @@ var integerPropType = process.env.NODE_ENV === 'production' ? validatorNoop : va
|
|
5271
5374
|
These rules are preventing the performance optimizations below.
|
5272
5375
|
*/
|
5273
5376
|
|
5377
|
+
/**
|
5378
|
+
* Compose classes from multiple sources.
|
5379
|
+
*
|
5380
|
+
* @example
|
5381
|
+
* ```tsx
|
5382
|
+
* const slots = {
|
5383
|
+
* root: ['root', 'primary'],
|
5384
|
+
* label: ['label'],
|
5385
|
+
* };
|
5386
|
+
*
|
5387
|
+
* const getUtilityClass = (slot) => `MuiButton-${slot}`;
|
5388
|
+
*
|
5389
|
+
* const classes = {
|
5390
|
+
* root: 'my-root-class',
|
5391
|
+
* };
|
5392
|
+
*
|
5393
|
+
* const output = composeClasses(slots, getUtilityClass, classes);
|
5394
|
+
* // {
|
5395
|
+
* // root: 'MuiButton-root MuiButton-primary my-root-class',
|
5396
|
+
* // label: 'MuiButton-label',
|
5397
|
+
* // }
|
5398
|
+
* ```
|
5399
|
+
*
|
5400
|
+
* @param slots a list of classes for each possible slot
|
5401
|
+
* @param getUtilityClass a function to resolve the class based on the slot name
|
5402
|
+
* @param classes the input classes from props
|
5403
|
+
* @returns the resolved classes for all slots
|
5404
|
+
*/
|
5274
5405
|
function composeClasses(slots, getUtilityClass, classes = undefined) {
|
5275
5406
|
const output = {};
|
5276
5407
|
for (const slotName in slots) {
|
@@ -6965,7 +7096,7 @@ function setColor(obj, key, defaultValue) {
|
|
6965
7096
|
}
|
6966
7097
|
}
|
6967
7098
|
function toRgb(color) {
|
6968
|
-
if (
|
7099
|
+
if (typeof color !== 'string' || !color.startsWith('hsl')) {
|
6969
7100
|
return color;
|
6970
7101
|
}
|
6971
7102
|
return hslToRgb(color);
|
@@ -7257,7 +7388,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
7257
7388
|
|
7258
7389
|
// The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.
|
7259
7390
|
|
7260
|
-
if (colors && typeof colors === 'object') {
|
7391
|
+
if (color !== 'tonalOffset' && colors && typeof colors === 'object') {
|
7261
7392
|
// Silent the error for custom palettes.
|
7262
7393
|
if (colors.main) {
|
7263
7394
|
setColor(palette[color], 'mainChannel', private_safeColorChannel(toRgb(colors.main)));
|
@@ -9076,7 +9207,95 @@ var paletteADC = _objectSpread2({
|
|
9076
9207
|
light: "#EBEBEB",
|
9077
9208
|
contrastText: "#545E73"
|
9078
9209
|
}
|
9079
|
-
}, BasicPalette);
|
9210
|
+
}, BasicPalette);
|
9211
|
+
|
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
|
+
}
|
9080
9299
|
|
9081
9300
|
var breakpoints = createBreakpoints({
|
9082
9301
|
values: {
|
@@ -9213,7 +9432,7 @@ const v6Colors = {
|
|
9213
9432
|
textDisabled: true
|
9214
9433
|
};
|
9215
9434
|
const extendSxProp = internal_createExtendSxProp();
|
9216
|
-
const useUtilityClasses$
|
9435
|
+
const useUtilityClasses$m = ownerState => {
|
9217
9436
|
const {
|
9218
9437
|
align,
|
9219
9438
|
gutterBottom,
|
@@ -9354,7 +9573,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
9354
9573
|
variantMapping
|
9355
9574
|
};
|
9356
9575
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
9357
|
-
const classes = useUtilityClasses$
|
9576
|
+
const classes = useUtilityClasses$m(ownerState);
|
9358
9577
|
return /*#__PURE__*/jsx(TypographyRoot, {
|
9359
9578
|
as: Component,
|
9360
9579
|
ref: ref,
|
@@ -9550,16 +9769,6 @@ function createControlledPromise() {
|
|
9550
9769
|
return p;
|
9551
9770
|
}
|
9552
9771
|
|
9553
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
9554
|
-
if (null == r) return {};
|
9555
|
-
var t = {};
|
9556
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
9557
|
-
if (e.indexOf(n) >= 0) continue;
|
9558
|
-
t[n] = r[n];
|
9559
|
-
}
|
9560
|
-
return t;
|
9561
|
-
}
|
9562
|
-
|
9563
9772
|
function _setPrototypeOf(t, e) {
|
9564
9773
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
9565
9774
|
return t.__proto__ = e, t;
|
@@ -10192,7 +10401,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
10192
10401
|
onExited: PropTypes.func
|
10193
10402
|
} : {}; // Name the function so it is clearer in the documentation
|
10194
10403
|
|
10195
|
-
function noop() {}
|
10404
|
+
function noop$1() {}
|
10196
10405
|
|
10197
10406
|
Transition.defaultProps = {
|
10198
10407
|
in: false,
|
@@ -10201,12 +10410,12 @@ Transition.defaultProps = {
|
|
10201
10410
|
appear: false,
|
10202
10411
|
enter: true,
|
10203
10412
|
exit: true,
|
10204
|
-
onEnter: noop,
|
10205
|
-
onEntering: noop,
|
10206
|
-
onEntered: noop,
|
10207
|
-
onExit: noop,
|
10208
|
-
onExiting: noop,
|
10209
|
-
onExited: noop
|
10413
|
+
onEnter: noop$1,
|
10414
|
+
onEntering: noop$1,
|
10415
|
+
onEntered: noop$1,
|
10416
|
+
onExit: noop$1,
|
10417
|
+
onExiting: noop$1,
|
10418
|
+
onExited: noop$1
|
10210
10419
|
};
|
10211
10420
|
Transition.UNMOUNTED = UNMOUNTED;
|
10212
10421
|
Transition.EXITED = EXITED;
|
@@ -10936,7 +11145,7 @@ function getButtonBaseUtilityClass(slot) {
|
|
10936
11145
|
}
|
10937
11146
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
10938
11147
|
|
10939
|
-
const useUtilityClasses$
|
11148
|
+
const useUtilityClasses$l = ownerState => {
|
10940
11149
|
const {
|
10941
11150
|
disabled,
|
10942
11151
|
focusVisible,
|
@@ -11057,34 +11266,22 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11057
11266
|
ripple.pulsate();
|
11058
11267
|
}
|
11059
11268
|
}, [disableRipple, focusRipple, focusVisible, ripple]);
|
11060
|
-
|
11061
|
-
|
11062
|
-
|
11063
|
-
|
11064
|
-
|
11065
|
-
const ignore = skipRippleAction;
|
11066
|
-
if (!ignore) {
|
11067
|
-
ripple[rippleAction](event);
|
11068
|
-
}
|
11069
|
-
return true;
|
11070
|
-
});
|
11071
|
-
}
|
11072
|
-
const handleMouseDown = useRippleHandler('start', onMouseDown);
|
11073
|
-
const handleContextMenu = useRippleHandler('stop', onContextMenu);
|
11074
|
-
const handleDragLeave = useRippleHandler('stop', onDragLeave);
|
11075
|
-
const handleMouseUp = useRippleHandler('stop', onMouseUp);
|
11076
|
-
const handleMouseLeave = useRippleHandler('stop', event => {
|
11269
|
+
const handleMouseDown = useRippleHandler(ripple, 'start', onMouseDown, disableTouchRipple);
|
11270
|
+
const handleContextMenu = useRippleHandler(ripple, 'stop', onContextMenu, disableTouchRipple);
|
11271
|
+
const handleDragLeave = useRippleHandler(ripple, 'stop', onDragLeave, disableTouchRipple);
|
11272
|
+
const handleMouseUp = useRippleHandler(ripple, 'stop', onMouseUp, disableTouchRipple);
|
11273
|
+
const handleMouseLeave = useRippleHandler(ripple, 'stop', event => {
|
11077
11274
|
if (focusVisible) {
|
11078
11275
|
event.preventDefault();
|
11079
11276
|
}
|
11080
11277
|
if (onMouseLeave) {
|
11081
11278
|
onMouseLeave(event);
|
11082
11279
|
}
|
11083
|
-
});
|
11084
|
-
const handleTouchStart = useRippleHandler('start', onTouchStart);
|
11085
|
-
const handleTouchEnd = useRippleHandler('stop', onTouchEnd);
|
11086
|
-
const handleTouchMove = useRippleHandler('stop', onTouchMove);
|
11087
|
-
const handleBlur = useRippleHandler('stop', event => {
|
11280
|
+
}, disableTouchRipple);
|
11281
|
+
const handleTouchStart = useRippleHandler(ripple, 'start', onTouchStart, disableTouchRipple);
|
11282
|
+
const handleTouchEnd = useRippleHandler(ripple, 'stop', onTouchEnd, disableTouchRipple);
|
11283
|
+
const handleTouchMove = useRippleHandler(ripple, 'stop', onTouchMove, disableTouchRipple);
|
11284
|
+
const handleBlur = useRippleHandler(ripple, 'stop', event => {
|
11088
11285
|
if (!isFocusVisible(event.target)) {
|
11089
11286
|
setFocusVisible(false);
|
11090
11287
|
}
|
@@ -11178,7 +11375,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11178
11375
|
tabIndex,
|
11179
11376
|
focusVisible
|
11180
11377
|
};
|
11181
|
-
const classes = useUtilityClasses$
|
11378
|
+
const classes = useUtilityClasses$l(ownerState);
|
11182
11379
|
return /*#__PURE__*/jsxs(ButtonBaseRoot, {
|
11183
11380
|
as: ComponentProp,
|
11184
11381
|
className: clsx(classes.root, className),
|
@@ -11208,6 +11405,17 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11208
11405
|
}) : null]
|
11209
11406
|
});
|
11210
11407
|
});
|
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
|
+
}
|
11211
11419
|
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes /* remove-proptypes */ = {
|
11212
11420
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
11213
11421
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
@@ -11372,7 +11580,7 @@ function getSwitchBaseUtilityClass(slot) {
|
|
11372
11580
|
}
|
11373
11581
|
generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
|
11374
11582
|
|
11375
|
-
const useUtilityClasses$
|
11583
|
+
const useUtilityClasses$k = ownerState => {
|
11376
11584
|
const {
|
11377
11585
|
classes,
|
11378
11586
|
checked,
|
@@ -11514,7 +11722,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
11514
11722
|
disableFocusRipple,
|
11515
11723
|
edge
|
11516
11724
|
};
|
11517
|
-
const classes = useUtilityClasses$
|
11725
|
+
const classes = useUtilityClasses$k(ownerState);
|
11518
11726
|
return /*#__PURE__*/jsxs(SwitchBaseRoot, {
|
11519
11727
|
component: "span",
|
11520
11728
|
className: clsx(classes.root, className),
|
@@ -11662,7 +11870,7 @@ function getSvgIconUtilityClass(slot) {
|
|
11662
11870
|
}
|
11663
11871
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
11664
11872
|
|
11665
|
-
const useUtilityClasses$
|
11873
|
+
const useUtilityClasses$j = ownerState => {
|
11666
11874
|
const {
|
11667
11875
|
color,
|
11668
11876
|
fontSize,
|
@@ -11792,7 +12000,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
11792
12000
|
if (!inheritViewBox) {
|
11793
12001
|
more.viewBox = viewBox;
|
11794
12002
|
}
|
11795
|
-
const classes = useUtilityClasses$
|
12003
|
+
const classes = useUtilityClasses$j(ownerState);
|
11796
12004
|
return /*#__PURE__*/jsxs(SvgIconRoot, {
|
11797
12005
|
as: component,
|
11798
12006
|
className: clsx(classes.root, className),
|
@@ -11882,9 +12090,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
11882
12090
|
*/
|
11883
12091
|
viewBox: PropTypes.string
|
11884
12092
|
} : void 0;
|
11885
|
-
|
11886
|
-
SvgIcon.muiName = 'SvgIcon';
|
11887
|
-
}
|
12093
|
+
SvgIcon.muiName = 'SvgIcon';
|
11888
12094
|
|
11889
12095
|
function createSvgIcon(path, displayName) {
|
11890
12096
|
function Component(props, ref) {
|
@@ -12006,7 +12212,7 @@ function getRadioUtilityClass(slot) {
|
|
12006
12212
|
}
|
12007
12213
|
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
12008
12214
|
|
12009
|
-
const useUtilityClasses$
|
12215
|
+
const useUtilityClasses$i = ownerState => {
|
12010
12216
|
const {
|
12011
12217
|
classes,
|
12012
12218
|
color,
|
@@ -12129,7 +12335,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
12129
12335
|
color,
|
12130
12336
|
size
|
12131
12337
|
};
|
12132
|
-
const classes = useUtilityClasses$
|
12338
|
+
const classes = useUtilityClasses$i(ownerState);
|
12133
12339
|
const radioGroup = useRadioGroup();
|
12134
12340
|
let checked = checkedProp;
|
12135
12341
|
const onChange = createChainedFunction(onChangeProp, radioGroup && radioGroup.onChange);
|
@@ -12266,7 +12472,7 @@ function getCheckboxUtilityClass(slot) {
|
|
12266
12472
|
}
|
12267
12473
|
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
|
12268
12474
|
|
12269
|
-
const useUtilityClasses$
|
12475
|
+
const useUtilityClasses$h = ownerState => {
|
12270
12476
|
const {
|
12271
12477
|
classes,
|
12272
12478
|
indeterminate,
|
@@ -12373,7 +12579,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
12373
12579
|
indeterminate,
|
12374
12580
|
size
|
12375
12581
|
};
|
12376
|
-
const classes = useUtilityClasses$
|
12582
|
+
const classes = useUtilityClasses$h(ownerState);
|
12377
12583
|
return /*#__PURE__*/jsx(CheckboxRoot, {
|
12378
12584
|
type: "checkbox",
|
12379
12585
|
inputProps: {
|
@@ -12659,7 +12865,7 @@ function getPaperUtilityClass(slot) {
|
|
12659
12865
|
}
|
12660
12866
|
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']);
|
12661
12867
|
|
12662
|
-
const useUtilityClasses$
|
12868
|
+
const useUtilityClasses$g = ownerState => {
|
12663
12869
|
const {
|
12664
12870
|
square,
|
12665
12871
|
elevation,
|
@@ -12731,7 +12937,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
12731
12937
|
square,
|
12732
12938
|
variant
|
12733
12939
|
};
|
12734
|
-
const classes = useUtilityClasses$
|
12940
|
+
const classes = useUtilityClasses$g(ownerState);
|
12735
12941
|
if (process.env.NODE_ENV !== 'production') {
|
12736
12942
|
if (theme.shadows[elevation] === undefined) {
|
12737
12943
|
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'));
|
@@ -12841,8 +13047,8 @@ name, parameters) {
|
|
12841
13047
|
elementType: initialElementType,
|
12842
13048
|
ownerState,
|
12843
13049
|
externalForwardedProps,
|
12844
|
-
getSlotOwnerState,
|
12845
13050
|
internalForwardedProps,
|
13051
|
+
shouldForwardComponentProp = false,
|
12846
13052
|
...useSlotPropsParams
|
12847
13053
|
} = parameters;
|
12848
13054
|
const {
|
@@ -12873,31 +13079,302 @@ name, parameters) {
|
|
12873
13079
|
externalSlotProps: resolvedComponentsProps
|
12874
13080
|
});
|
12875
13081
|
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
12876
|
-
const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};
|
12877
|
-
const finalOwnerState = {
|
12878
|
-
...ownerState,
|
12879
|
-
...slotOwnerState
|
12880
|
-
};
|
12881
13082
|
const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;
|
12882
13083
|
const props = appendOwnerState(elementType, {
|
12883
13084
|
...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),
|
12884
13085
|
...(name !== 'root' && !slots[name] && internalForwardedProps),
|
12885
13086
|
...mergedProps,
|
12886
|
-
...(LeafComponent && {
|
13087
|
+
...(LeafComponent && !shouldForwardComponentProp && {
|
12887
13088
|
as: LeafComponent
|
12888
13089
|
}),
|
13090
|
+
...(LeafComponent && shouldForwardComponentProp && {
|
13091
|
+
component: LeafComponent
|
13092
|
+
}),
|
12889
13093
|
ref
|
12890
|
-
},
|
12891
|
-
Object.keys(slotOwnerState).forEach(propName => {
|
12892
|
-
delete props[propName];
|
12893
|
-
});
|
13094
|
+
}, ownerState);
|
12894
13095
|
return [elementType, props];
|
12895
13096
|
}
|
12896
13097
|
|
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
|
+
|
12897
13374
|
function getIconButtonUtilityClass(slot) {
|
12898
13375
|
return generateUtilityClass('MuiIconButton', slot);
|
12899
13376
|
}
|
12900
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
13377
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'loading', 'loadingIndicator', 'loadingWrapper']);
|
12901
13378
|
|
12902
13379
|
const useUtilityClasses$e = ownerState => {
|
12903
13380
|
const {
|
@@ -12905,10 +13382,13 @@ const useUtilityClasses$e = ownerState => {
|
|
12905
13382
|
disabled,
|
12906
13383
|
color,
|
12907
13384
|
edge,
|
12908
|
-
size
|
13385
|
+
size,
|
13386
|
+
loading
|
12909
13387
|
} = ownerState;
|
12910
13388
|
const slots = {
|
12911
|
-
root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]
|
13389
|
+
root: ['root', loading && 'loading', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],
|
13390
|
+
loadingIndicator: ['loadingIndicator'],
|
13391
|
+
loadingWrapper: ['loadingWrapper']
|
12912
13392
|
};
|
12913
13393
|
return composeClasses(slots, getIconButtonUtilityClass, classes);
|
12914
13394
|
};
|
@@ -12919,7 +13399,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
12919
13399
|
const {
|
12920
13400
|
ownerState
|
12921
13401
|
} = props;
|
12922
|
-
return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
|
13402
|
+
return [styles.root, ownerState.loading && styles.loading, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
|
12923
13403
|
}
|
12924
13404
|
})(memoTheme(({
|
12925
13405
|
theme
|
@@ -13022,8 +13502,34 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
13022
13502
|
[`&.${iconButtonClasses.disabled}`]: {
|
13023
13503
|
backgroundColor: 'transparent',
|
13024
13504
|
color: (theme.vars || theme).palette.action.disabled
|
13505
|
+
},
|
13506
|
+
[`&.${iconButtonClasses.loading}`]: {
|
13507
|
+
color: 'transparent'
|
13025
13508
|
}
|
13026
13509
|
})));
|
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
|
+
}));
|
13027
13533
|
|
13028
13534
|
/**
|
13029
13535
|
* Refer to the [Icons](/material-ui/icons/) section of the documentation
|
@@ -13042,26 +13548,51 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
13042
13548
|
disabled = false,
|
13043
13549
|
disableFocusRipple = false,
|
13044
13550
|
size = 'medium',
|
13551
|
+
id: idProp,
|
13552
|
+
loading = null,
|
13553
|
+
loadingIndicator: loadingIndicatorProp,
|
13045
13554
|
...other
|
13046
13555
|
} = props;
|
13556
|
+
const id = useId(idProp);
|
13557
|
+
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/jsx(CircularProgress, {
|
13558
|
+
"aria-labelledby": id,
|
13559
|
+
color: "inherit",
|
13560
|
+
size: 16
|
13561
|
+
});
|
13047
13562
|
const ownerState = {
|
13048
13563
|
...props,
|
13049
13564
|
edge,
|
13050
13565
|
color,
|
13051
13566
|
disabled,
|
13052
13567
|
disableFocusRipple,
|
13568
|
+
loading,
|
13569
|
+
loadingIndicator,
|
13053
13570
|
size
|
13054
13571
|
};
|
13055
13572
|
const classes = useUtilityClasses$e(ownerState);
|
13056
|
-
return /*#__PURE__*/
|
13573
|
+
return /*#__PURE__*/jsxs(IconButtonRoot, {
|
13574
|
+
id: id,
|
13057
13575
|
className: clsx(classes.root, className),
|
13058
13576
|
centerRipple: true,
|
13059
13577
|
focusRipple: !disableFocusRipple,
|
13060
|
-
disabled: disabled,
|
13578
|
+
disabled: disabled || loading,
|
13061
13579
|
ref: ref,
|
13062
13580
|
...other,
|
13063
13581
|
ownerState: ownerState,
|
13064
|
-
children:
|
13582
|
+
children: [typeof loading === 'boolean' &&
|
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]
|
13065
13596
|
});
|
13066
13597
|
});
|
13067
13598
|
process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes */ = {
|
@@ -13120,6 +13651,23 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
13120
13651
|
* @default false
|
13121
13652
|
*/
|
13122
13653
|
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,
|
13123
13671
|
/**
|
13124
13672
|
* The size of the component.
|
13125
13673
|
* `small` is equivalent to the dense button styling.
|
@@ -13339,7 +13887,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
13339
13887
|
enableColorOnDark: PropTypes.bool,
|
13340
13888
|
/**
|
13341
13889
|
* The positioning type. The behavior of the different options is described
|
13342
|
-
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/
|
13890
|
+
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position).
|
13343
13891
|
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
13344
13892
|
* @default 'fixed'
|
13345
13893
|
*/
|
@@ -13395,13 +13943,9 @@ const Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef
|
|
13395
13943
|
};
|
13396
13944
|
return /*#__PURE__*/React.cloneElement(children, newProps);
|
13397
13945
|
}
|
13398
|
-
return
|
13399
|
-
children: children
|
13400
|
-
});
|
13946
|
+
return children;
|
13401
13947
|
}
|
13402
|
-
return /*#__PURE__*/
|
13403
|
-
children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode
|
13404
|
-
});
|
13948
|
+
return mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode;
|
13405
13949
|
});
|
13406
13950
|
process.env.NODE_ENV !== "production" ? Portal.propTypes /* remove-proptypes */ = {
|
13407
13951
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
@@ -14424,6 +14968,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
14424
14968
|
*/
|
14425
14969
|
value: PropTypes.any
|
14426
14970
|
} : void 0;
|
14971
|
+
var InputBase$1 = InputBase;
|
14427
14972
|
|
14428
14973
|
function getOutlinedInputUtilityClass(slot) {
|
14429
14974
|
return generateUtilityClass('MuiOutlinedInput', slot);
|
@@ -14537,7 +15082,10 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
14537
15082
|
addEndListener: handleAddEndListener,
|
14538
15083
|
timeout: timeout,
|
14539
15084
|
...other,
|
14540
|
-
children: (state,
|
15085
|
+
children: (state, {
|
15086
|
+
ownerState,
|
15087
|
+
...restChildProps
|
15088
|
+
}) => {
|
14541
15089
|
return /*#__PURE__*/React.cloneElement(children, {
|
14542
15090
|
style: {
|
14543
15091
|
opacity: 0,
|
@@ -14547,7 +15095,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
14547
15095
|
...children.props.style
|
14548
15096
|
},
|
14549
15097
|
ref: handleRef,
|
14550
|
-
...
|
15098
|
+
...restChildProps
|
14551
15099
|
});
|
14552
15100
|
}
|
14553
15101
|
});
|
@@ -14633,13 +15181,6 @@ function getBackdropUtilityClass(slot) {
|
|
14633
15181
|
}
|
14634
15182
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
14635
15183
|
|
14636
|
-
const removeOwnerState = props => {
|
14637
|
-
const {
|
14638
|
-
ownerState,
|
14639
|
-
...rest
|
14640
|
-
} = props;
|
14641
|
-
return rest;
|
14642
|
-
};
|
14643
15184
|
const useUtilityClasses$b = ownerState => {
|
14644
15185
|
const {
|
14645
15186
|
classes,
|
@@ -14728,12 +15269,11 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
14728
15269
|
externalForwardedProps,
|
14729
15270
|
ownerState
|
14730
15271
|
});
|
14731
|
-
const transitionPropsRemoved = removeOwnerState(transitionProps);
|
14732
15272
|
return /*#__PURE__*/jsx(TransitionSlot, {
|
14733
15273
|
in: open,
|
14734
15274
|
timeout: transitionDuration,
|
14735
15275
|
...other,
|
14736
|
-
...
|
15276
|
+
...transitionProps,
|
14737
15277
|
children: /*#__PURE__*/jsx(RootSlot, {
|
14738
15278
|
"aria-hidden": true,
|
14739
15279
|
...rootProps,
|
@@ -14866,7 +15406,7 @@ process.env.NODE_ENV !== "production" ? Box$2.propTypes /* remove-proptypes */ =
|
|
14866
15406
|
function getButtonUtilityClass(slot) {
|
14867
15407
|
return generateUtilityClass('MuiButton', slot);
|
14868
15408
|
}
|
14869
|
-
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']);
|
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', 'loading', 'loadingWrapper', 'loadingIconPlaceholder', 'loadingIndicator', 'loadingPositionCenter', 'loadingPositionStart', 'loadingPositionEnd']);
|
14870
15410
|
|
14871
15411
|
/**
|
14872
15412
|
* @ignore - internal component.
|
@@ -14891,13 +15431,16 @@ const useUtilityClasses$a = ownerState => {
|
|
14891
15431
|
fullWidth,
|
14892
15432
|
size,
|
14893
15433
|
variant,
|
15434
|
+
loading,
|
15435
|
+
loadingPosition,
|
14894
15436
|
classes
|
14895
15437
|
} = ownerState;
|
14896
15438
|
const slots = {
|
14897
|
-
root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
14898
|
-
label: ['label'],
|
15439
|
+
root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],
|
14899
15440
|
startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],
|
14900
|
-
endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]
|
15441
|
+
endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],
|
15442
|
+
loadingIndicator: ['loadingIndicator'],
|
15443
|
+
loadingWrapper: ['loadingWrapper']
|
14901
15444
|
};
|
14902
15445
|
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
14903
15446
|
return {
|
@@ -14942,7 +15485,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
14942
15485
|
const {
|
14943
15486
|
ownerState
|
14944
15487
|
} = props;
|
14945
|
-
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];
|
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, ownerState.loading && styles.loading];
|
14946
15489
|
}
|
14947
15490
|
})(memoTheme(({
|
14948
15491
|
theme
|
@@ -15129,6 +15672,18 @@ const ButtonRoot = styled(ButtonBase, {
|
|
15129
15672
|
style: {
|
15130
15673
|
width: '100%'
|
15131
15674
|
}
|
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
|
+
}
|
15132
15687
|
}]
|
15133
15688
|
};
|
15134
15689
|
}));
|
@@ -15139,9 +15694,11 @@ const ButtonStartIcon = styled('span', {
|
|
15139
15694
|
const {
|
15140
15695
|
ownerState
|
15141
15696
|
} = props;
|
15142
|
-
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15697
|
+
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15143
15698
|
}
|
15144
|
-
})({
|
15699
|
+
})(({
|
15700
|
+
theme
|
15701
|
+
}) => ({
|
15145
15702
|
display: 'inherit',
|
15146
15703
|
marginRight: 8,
|
15147
15704
|
marginLeft: -4,
|
@@ -15152,8 +15709,28 @@ const ButtonStartIcon = styled('span', {
|
|
15152
15709
|
style: {
|
15153
15710
|
marginLeft: -2
|
15154
15711
|
}
|
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
|
+
}
|
15155
15732
|
}, ...commonIconStyles]
|
15156
|
-
});
|
15733
|
+
}));
|
15157
15734
|
const ButtonEndIcon = styled('span', {
|
15158
15735
|
name: 'MuiButton',
|
15159
15736
|
slot: 'EndIcon',
|
@@ -15161,9 +15738,11 @@ const ButtonEndIcon = styled('span', {
|
|
15161
15738
|
const {
|
15162
15739
|
ownerState
|
15163
15740
|
} = props;
|
15164
|
-
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15741
|
+
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];
|
15165
15742
|
}
|
15166
|
-
})({
|
15743
|
+
})(({
|
15744
|
+
theme
|
15745
|
+
}) => ({
|
15167
15746
|
display: 'inherit',
|
15168
15747
|
marginRight: -4,
|
15169
15748
|
marginLeft: 8,
|
@@ -15174,7 +15753,128 @@ const ButtonEndIcon = styled('span', {
|
|
15174
15753
|
style: {
|
15175
15754
|
marginRight: -2
|
15176
15755
|
}
|
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
|
+
}
|
15177
15776
|
}, ...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'
|
15178
15878
|
});
|
15179
15879
|
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
15180
15880
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
@@ -15196,12 +15896,22 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
15196
15896
|
endIcon: endIconProp,
|
15197
15897
|
focusVisibleClassName,
|
15198
15898
|
fullWidth = false,
|
15899
|
+
id: idProp,
|
15900
|
+
loading = null,
|
15901
|
+
loadingIndicator: loadingIndicatorProp,
|
15902
|
+
loadingPosition = 'center',
|
15199
15903
|
size = 'medium',
|
15200
15904
|
startIcon: startIconProp,
|
15201
15905
|
type,
|
15202
15906
|
variant = 'text',
|
15203
15907
|
...other
|
15204
15908
|
} = props;
|
15909
|
+
const id = useId(idProp);
|
15910
|
+
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/jsx(CircularProgress, {
|
15911
|
+
"aria-labelledby": id,
|
15912
|
+
color: "inherit",
|
15913
|
+
size: 16
|
15914
|
+
});
|
15205
15915
|
const ownerState = {
|
15206
15916
|
...props,
|
15207
15917
|
color,
|
@@ -15210,34 +15920,58 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
15210
15920
|
disableElevation,
|
15211
15921
|
disableFocusRipple,
|
15212
15922
|
fullWidth,
|
15923
|
+
loading,
|
15924
|
+
loadingIndicator,
|
15925
|
+
loadingPosition,
|
15213
15926
|
size,
|
15214
15927
|
type,
|
15215
15928
|
variant
|
15216
15929
|
};
|
15217
15930
|
const classes = useUtilityClasses$a(ownerState);
|
15218
|
-
const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
|
15931
|
+
const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/jsx(ButtonStartIcon, {
|
15219
15932
|
className: classes.startIcon,
|
15220
15933
|
ownerState: ownerState,
|
15221
|
-
children: startIconProp
|
15934
|
+
children: startIconProp || /*#__PURE__*/jsx(ButtonLoadingIconPlaceholder, {
|
15935
|
+
className: classes.loadingIconPlaceholder,
|
15936
|
+
ownerState: ownerState
|
15937
|
+
})
|
15222
15938
|
});
|
15223
|
-
const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
|
15939
|
+
const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/jsx(ButtonEndIcon, {
|
15224
15940
|
className: classes.endIcon,
|
15225
15941
|
ownerState: ownerState,
|
15226
|
-
children: endIconProp
|
15942
|
+
children: endIconProp || /*#__PURE__*/jsx(ButtonLoadingIconPlaceholder, {
|
15943
|
+
className: classes.loadingIconPlaceholder,
|
15944
|
+
ownerState: ownerState
|
15945
|
+
})
|
15227
15946
|
});
|
15228
15947
|
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;
|
15229
15962
|
return /*#__PURE__*/jsxs(ButtonRoot, {
|
15230
15963
|
ownerState: ownerState,
|
15231
15964
|
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
15232
15965
|
component: component,
|
15233
|
-
disabled: disabled,
|
15966
|
+
disabled: disabled || loading,
|
15234
15967
|
focusRipple: !disableFocusRipple,
|
15235
15968
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
15236
15969
|
ref: ref,
|
15237
15970
|
type: type,
|
15971
|
+
id: id,
|
15238
15972
|
...other,
|
15239
15973
|
classes: classes,
|
15240
|
-
children: [startIcon, children, endIcon]
|
15974
|
+
children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
|
15241
15975
|
});
|
15242
15976
|
});
|
15243
15977
|
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
@@ -15310,6 +16044,28 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
15310
16044
|
* If defined, an `a` element will be used as the root node.
|
15311
16045
|
*/
|
15312
16046
|
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']),
|
15313
16069
|
/**
|
15314
16070
|
* The size of the component.
|
15315
16071
|
* `small` is equivalent to the dense button styling.
|
@@ -15874,6 +16630,7 @@ function getContainer(container) {
|
|
15874
16630
|
function getHasTransition(children) {
|
15875
16631
|
return children ? children.props.hasOwnProperty('in') : false;
|
15876
16632
|
}
|
16633
|
+
const noop = () => {};
|
15877
16634
|
|
15878
16635
|
// A modal manager used to track and manage the state of open Modals.
|
15879
16636
|
// Modals don't open on the server so this won't conflict with concurrent requests.
|
@@ -16045,8 +16802,8 @@ function useModal(parameters) {
|
|
16045
16802
|
}
|
16046
16803
|
};
|
16047
16804
|
return {
|
16048
|
-
onEnter: createChainedFunction(handleEnter, children?.props.onEnter),
|
16049
|
-
onExited: createChainedFunction(handleExited, children?.props.onExited)
|
16805
|
+
onEnter: createChainedFunction(handleEnter, children?.props.onEnter ?? noop),
|
16806
|
+
onExited: createChainedFunction(handleExited, children?.props.onExited ?? noop)
|
16050
16807
|
};
|
16051
16808
|
};
|
16052
16809
|
return {
|
@@ -16961,7 +17718,10 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
16961
17718
|
in: inProp,
|
16962
17719
|
timeout: timeout,
|
16963
17720
|
...other,
|
16964
|
-
children: (state,
|
17721
|
+
children: (state, {
|
17722
|
+
ownerState,
|
17723
|
+
...restChildProps
|
17724
|
+
}) => {
|
16965
17725
|
return /*#__PURE__*/React.cloneElement(children, {
|
16966
17726
|
ref: handleRef,
|
16967
17727
|
style: {
|
@@ -16969,7 +17729,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
16969
17729
|
...style,
|
16970
17730
|
...children.props.style
|
16971
17731
|
},
|
16972
|
-
...
|
17732
|
+
...restChildProps
|
16973
17733
|
});
|
16974
17734
|
}
|
16975
17735
|
});
|
@@ -17080,7 +17840,7 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
17080
17840
|
function getDrawerUtilityClass(slot) {
|
17081
17841
|
return generateUtilityClass('MuiDrawer', slot);
|
17082
17842
|
}
|
17083
|
-
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
17843
|
+
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
17084
17844
|
|
17085
17845
|
const overridesResolver$2 = (props, styles) => {
|
17086
17846
|
const {
|
@@ -17095,7 +17855,7 @@ const useUtilityClasses$7 = ownerState => {
|
|
17095
17855
|
variant
|
17096
17856
|
} = ownerState;
|
17097
17857
|
const slots = {
|
17098
|
-
root: ['root'],
|
17858
|
+
root: ['root', `anchor${capitalize(anchor)}`],
|
17099
17859
|
docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
|
17100
17860
|
modal: ['modal'],
|
17101
17861
|
paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
|
@@ -17579,7 +18339,10 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
17579
18339
|
addEndListener: handleAddEndListener,
|
17580
18340
|
timeout: timeout === 'auto' ? null : timeout,
|
17581
18341
|
...other,
|
17582
|
-
children: (state,
|
18342
|
+
children: (state, {
|
18343
|
+
ownerState,
|
18344
|
+
...restChildProps
|
18345
|
+
}) => {
|
17583
18346
|
return /*#__PURE__*/React.cloneElement(children, {
|
17584
18347
|
style: {
|
17585
18348
|
opacity: 0,
|
@@ -17590,7 +18353,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
17590
18353
|
...children.props.style
|
17591
18354
|
},
|
17592
18355
|
ref: handleRef,
|
17593
|
-
...
|
18356
|
+
...restChildProps
|
17594
18357
|
});
|
17595
18358
|
}
|
17596
18359
|
});
|
@@ -17793,6 +18556,7 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
17793
18556
|
}) : /*#__PURE__*/jsxs(React.Fragment, {
|
17794
18557
|
children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span$1 || (_span$1 = /*#__PURE__*/jsx("span", {
|
17795
18558
|
className: "notranslate",
|
18559
|
+
"aria-hidden": true,
|
17796
18560
|
children: "\u200B"
|
17797
18561
|
}))) : null, children]
|
17798
18562
|
})
|
@@ -17851,7 +18615,7 @@ process.env.NODE_ENV !== "production" ? InputAdornment.propTypes /* remove-propt
|
|
17851
18615
|
function getLinearProgressUtilityClass(slot) {
|
17852
18616
|
return generateUtilityClass('MuiLinearProgress', slot);
|
17853
18617
|
}
|
17854
|
-
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
18618
|
+
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'bar1', 'bar2', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
17855
18619
|
|
17856
18620
|
const TRANSITION_DURATION = 4; // seconds
|
17857
18621
|
const indeterminate1Keyframe = keyframes`
|
@@ -17924,8 +18688,8 @@ const useUtilityClasses$5 = ownerState => {
|
|
17924
18688
|
const slots = {
|
17925
18689
|
root: ['root', `color${capitalize(color)}`, variant],
|
17926
18690
|
dashed: ['dashed', `dashedColor${capitalize(color)}`],
|
17927
|
-
bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
17928
|
-
bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
18691
|
+
bar1: ['bar', 'bar1', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
18692
|
+
bar2: ['bar', 'bar2', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
17929
18693
|
};
|
17930
18694
|
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
17931
18695
|
};
|
@@ -18043,7 +18807,7 @@ const LinearProgressBar1 = styled('span', {
|
|
18043
18807
|
const {
|
18044
18808
|
ownerState
|
18045
18809
|
} = props;
|
18046
|
-
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];
|
18810
|
+
return [styles.bar, styles.bar1, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
18047
18811
|
}
|
18048
18812
|
})(memoTheme(({
|
18049
18813
|
theme
|
@@ -18107,7 +18871,7 @@ const LinearProgressBar2 = styled('span', {
|
|
18107
18871
|
const {
|
18108
18872
|
ownerState
|
18109
18873
|
} = props;
|
18110
|
-
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
18874
|
+
return [styles.bar, styles.bar2, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
18111
18875
|
}
|
18112
18876
|
})(memoTheme(({
|
18113
18877
|
theme
|
@@ -19312,6 +20076,7 @@ function NotchedOutline(props) {
|
|
19312
20076
|
}) : // notranslate needed while Google Translate will not fix zero-width space issue
|
19313
20077
|
_span || (_span = /*#__PURE__*/jsx("span", {
|
19314
20078
|
className: "notranslate",
|
20079
|
+
"aria-hidden": true,
|
19315
20080
|
children: "\u200B"
|
19316
20081
|
}))
|
19317
20082
|
})
|
@@ -19545,7 +20310,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
19545
20310
|
};
|
19546
20311
|
const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;
|
19547
20312
|
const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;
|
19548
|
-
return /*#__PURE__*/jsx(InputBase, {
|
20313
|
+
return /*#__PURE__*/jsx(InputBase$1, {
|
19549
20314
|
slots: {
|
19550
20315
|
root: RootSlot,
|
19551
20316
|
input: InputSlot
|
@@ -19735,9 +20500,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
19735
20500
|
*/
|
19736
20501
|
value: PropTypes.any
|
19737
20502
|
} : void 0;
|
19738
|
-
|
19739
|
-
OutlinedInput.muiName = 'Input';
|
19740
|
-
}
|
20503
|
+
OutlinedInput.muiName = 'Input';
|
19741
20504
|
|
19742
20505
|
const Stack = createStack({
|
19743
20506
|
createStyledComponent: styled('div', {
|
@@ -20043,7 +20806,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
20043
20806
|
py: 1.5,
|
20044
20807
|
px: 1,
|
20045
20808
|
sx: _objectSpread2({
|
20046
|
-
backgroundColor: headerColor || "
|
20809
|
+
backgroundColor: headerColor || "primary.50"
|
20047
20810
|
}, sxHeader)
|
20048
20811
|
}, React__default.createElement(Typography, {
|
20049
20812
|
color: color || "background.paper",
|
@@ -20066,11 +20829,14 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
20066
20829
|
flex: 1,
|
20067
20830
|
onClick: handleDrawerActions
|
20068
20831
|
}, children), stateActions && React__default.createElement(Stack, {
|
20832
|
+
flexDirection: "row",
|
20833
|
+
border: "1px solid",
|
20834
|
+
borderColor: "divider",
|
20069
20835
|
alignItems: anchorActions,
|
20070
20836
|
gap: 1,
|
20071
20837
|
py: 1.5,
|
20072
20838
|
px: 1,
|
20073
|
-
bgcolor: "background.
|
20839
|
+
bgcolor: "background.paper",
|
20074
20840
|
sx: sxActions
|
20075
20841
|
}, actions)));
|
20076
20842
|
};
|
@@ -20268,7 +21034,6 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
|
|
20268
21034
|
return React__default.createElement(Stack, {
|
20269
21035
|
id: "main-container",
|
20270
21036
|
height: 48,
|
20271
|
-
justifyContent: "center",
|
20272
21037
|
position: fixed ? "fixed" : "relative",
|
20273
21038
|
width: fixed ? "100%" : "inherit",
|
20274
21039
|
bgcolor: "background.paper",
|
@@ -20279,7 +21044,7 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
|
|
20279
21044
|
zIndex: 10
|
20280
21045
|
}
|
20281
21046
|
}, React__default.createElement(Stack, {
|
20282
|
-
id: "
|
21047
|
+
id: "acionts",
|
20283
21048
|
height: 40,
|
20284
21049
|
padding: buttonBack ? "4px 24px 4px 6px" : "4px 24px 4px 24px",
|
20285
21050
|
justifyContent: "space-between",
|
@@ -23562,6 +24327,198 @@ function MultiSelect(_ref) {
|
|
23562
24327
|
}, "Aplicar"))));
|
23563
24328
|
}
|
23564
24329
|
|
24330
|
+
var AdjuntarArchivo = function AdjuntarArchivo(_ref) {
|
24331
|
+
var compact = _ref.compact,
|
24332
|
+
sx = _ref.sx;
|
24333
|
+
_ref.guardarArchivo;
|
24334
|
+
var transformarArchivo = _ref.transformarArchivo;
|
24335
|
+
var _useState = useState([]),
|
24336
|
+
_useState2 = _slicedToArray(_useState, 2),
|
24337
|
+
archivos = _useState2[0],
|
24338
|
+
setArchivos = _useState2[1];
|
24339
|
+
useEffect(function () {
|
24340
|
+
archivos.forEach(function (archivo, indice) {
|
24341
|
+
if (archivo.progreso < 100) {
|
24342
|
+
var intervalo = setInterval(function () {
|
24343
|
+
setArchivos(function (archivosPrevios) {
|
24344
|
+
return archivosPrevios.map(function (item, idx) {
|
24345
|
+
return idx === indice ? _objectSpread2(_objectSpread2({}, item), {}, {
|
24346
|
+
progreso: Math.min(item.progreso + 10, 100),
|
24347
|
+
cargaCompleta: Math.min(item.progreso + 10, 100) === 100
|
24348
|
+
}) : item;
|
24349
|
+
});
|
24350
|
+
});
|
24351
|
+
}, 1000);
|
24352
|
+
return function () {
|
24353
|
+
return clearInterval(intervalo);
|
24354
|
+
};
|
24355
|
+
}
|
24356
|
+
});
|
24357
|
+
}, [archivos]);
|
24358
|
+
var manejarSeleccionDeArchivos = function manejarSeleccionDeArchivos(archivosSeleccionados) {
|
24359
|
+
if (archivosSeleccionados) {
|
24360
|
+
setArchivos(function (prev) {
|
24361
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(Array.from(archivosSeleccionados).map(function (archivo) {
|
24362
|
+
return {
|
24363
|
+
archivo: archivo,
|
24364
|
+
transformado: transformarArchivo(archivo),
|
24365
|
+
progreso: 0,
|
24366
|
+
cargaCompleta: false
|
24367
|
+
};
|
24368
|
+
})));
|
24369
|
+
});
|
24370
|
+
}
|
24371
|
+
};
|
24372
|
+
var eliminarArchivo = useCallback(function (indice) {
|
24373
|
+
setArchivos(function (archivosPrevios) {
|
24374
|
+
return archivosPrevios.filter(function (_, idx) {
|
24375
|
+
return idx !== indice;
|
24376
|
+
});
|
24377
|
+
});
|
24378
|
+
}, [setArchivos]);
|
24379
|
+
var manejarSoltarArchivos = function manejarSoltarArchivos(evento) {
|
24380
|
+
evento.preventDefault();
|
24381
|
+
evento.stopPropagation();
|
24382
|
+
manejarSeleccionDeArchivos(evento.dataTransfer.files);
|
24383
|
+
};
|
24384
|
+
var manejarArrastrarSobreZona = function manejarArrastrarSobreZona(evento) {
|
24385
|
+
evento.preventDefault();
|
24386
|
+
};
|
24387
|
+
return React__default.createElement(Stack, {
|
24388
|
+
width: "100%",
|
24389
|
+
alignItems: "center",
|
24390
|
+
bgcolor: "transparent",
|
24391
|
+
height: "100%",
|
24392
|
+
gap: 1
|
24393
|
+
}, React__default.createElement(Stack, {
|
24394
|
+
id: "zona-arrastre",
|
24395
|
+
alignItems: "center",
|
24396
|
+
flexDirection: compact === true ? "row" : "column",
|
24397
|
+
justifyContent: "center",
|
24398
|
+
bgcolor: "transparent",
|
24399
|
+
width: "100%",
|
24400
|
+
boxShadow: 0,
|
24401
|
+
gap: 1,
|
24402
|
+
borderRadius: 1,
|
24403
|
+
py: 3,
|
24404
|
+
onDrop: manejarSoltarArchivos,
|
24405
|
+
onDragOver: manejarArrastrarSobreZona,
|
24406
|
+
sx: _objectSpread2({
|
24407
|
+
border: function border(theme) {
|
24408
|
+
return "1px dashed ".concat(theme.palette.grey[500]);
|
24409
|
+
},
|
24410
|
+
cursor: "pointer",
|
24411
|
+
":hover": {
|
24412
|
+
backgroundColor: "action.hover"
|
24413
|
+
}
|
24414
|
+
}, sx)
|
24415
|
+
}, React__default.createElement(Cloud, {
|
24416
|
+
color: "primary",
|
24417
|
+
fontSize: "large"
|
24418
|
+
}), React__default.createElement("input", {
|
24419
|
+
type: "file",
|
24420
|
+
multiple: true,
|
24421
|
+
onChange: function onChange(e) {
|
24422
|
+
return manejarSeleccionDeArchivos(e.target.files);
|
24423
|
+
},
|
24424
|
+
style: {
|
24425
|
+
display: "none"
|
24426
|
+
}
|
24427
|
+
}), React__default.createElement(Typography, {
|
24428
|
+
variant: "body2",
|
24429
|
+
color: "text.secondary",
|
24430
|
+
id: "TipoArchivo"
|
24431
|
+
}, "Arrastra o adjunta archivos"), React__default.createElement(Typography, {
|
24432
|
+
variant: "caption",
|
24433
|
+
color: "text.secondary"
|
24434
|
+
}, "DOCX, XML, PNG, JPG \xB0 ", " ", React__default.createElement(Typography, {
|
24435
|
+
variant: "caption",
|
24436
|
+
color: "text.secondary",
|
24437
|
+
id: "PesoArchivo"
|
24438
|
+
}, "M\xE1x. 00MB")), React__default.createElement(Button, {
|
24439
|
+
size: "small",
|
24440
|
+
startIcon: React__default.createElement(AttachFile, {
|
24441
|
+
fontSize: "small"
|
24442
|
+
}),
|
24443
|
+
component: "label"
|
24444
|
+
}, "Adjuntar", React__default.createElement("input", {
|
24445
|
+
type: "file",
|
24446
|
+
hidden: true,
|
24447
|
+
multiple: true,
|
24448
|
+
onChange: function onChange(e) {
|
24449
|
+
return manejarSeleccionDeArchivos(e.target.files);
|
24450
|
+
}
|
24451
|
+
}))), React__default.createElement(Stack, {
|
24452
|
+
id: "informacion",
|
24453
|
+
width: "100%",
|
24454
|
+
height: "auto",
|
24455
|
+
gap: 1,
|
24456
|
+
sx: {
|
24457
|
+
overflowY: "auto"
|
24458
|
+
}
|
24459
|
+
}, archivos.map(function (_ref2, indice) {
|
24460
|
+
var archivo = _ref2.archivo,
|
24461
|
+
progreso = _ref2.progreso,
|
24462
|
+
cargaCompleta = _ref2.cargaCompleta;
|
24463
|
+
return React__default.createElement(Stack, {
|
24464
|
+
flexDirection: "row",
|
24465
|
+
key: "".concat(archivo.name, "-").concat(indice),
|
24466
|
+
width: "100%",
|
24467
|
+
gap: 1,
|
24468
|
+
borderRadius: 0.5,
|
24469
|
+
sx: {
|
24470
|
+
":hover": {
|
24471
|
+
backgroundColor: "action.hover"
|
24472
|
+
}
|
24473
|
+
}
|
24474
|
+
}, React__default.createElement(Stack, {
|
24475
|
+
width: "100%",
|
24476
|
+
alignItems: "center",
|
24477
|
+
flexDirection: "row",
|
24478
|
+
gap: 2,
|
24479
|
+
p: 1
|
24480
|
+
}, React__default.createElement(Stack, {
|
24481
|
+
width: "100%",
|
24482
|
+
flexDirection: "row",
|
24483
|
+
alignItems: "center",
|
24484
|
+
gap: 0.5
|
24485
|
+
}, React__default.createElement(UploadFileOutlined, {
|
24486
|
+
color: "primary",
|
24487
|
+
fontSize: "small"
|
24488
|
+
}), React__default.createElement(Stack, {
|
24489
|
+
flexDirection: "column",
|
24490
|
+
width: "100%"
|
24491
|
+
}, React__default.createElement(Typography, {
|
24492
|
+
variant: "body2",
|
24493
|
+
color: "text.primary"
|
24494
|
+
}, archivo.name), React__default.createElement(Typography, {
|
24495
|
+
id: "estado-carga-completo",
|
24496
|
+
variant: "caption",
|
24497
|
+
color: "text.secondary"
|
24498
|
+
}, cargaCompleta ? "".concat(new Date().toLocaleDateString(), " \u2022 ").concat(Math.round(archivo.size / 1024), " KB") : "Cargando... \u2022 ".concat(Math.round(archivo.size / 1024), " KB")), !cargaCompleta && React__default.createElement(LinearProgress, {
|
24499
|
+
id: "barra-progreso",
|
24500
|
+
color: "primary",
|
24501
|
+
variant: "determinate",
|
24502
|
+
value: progreso,
|
24503
|
+
sx: {
|
24504
|
+
width: "100%"
|
24505
|
+
}
|
24506
|
+
})))), React__default.createElement(Box$2, {
|
24507
|
+
display: "flex",
|
24508
|
+
justifyContent: "center",
|
24509
|
+
alignItems: "center"
|
24510
|
+
}, React__default.createElement(IconButton, {
|
24511
|
+
size: "medium",
|
24512
|
+
onClick: function onClick() {
|
24513
|
+
return eliminarArchivo(indice);
|
24514
|
+
}
|
24515
|
+
}, React__default.createElement(DeleteOutline, {
|
24516
|
+
fontSize: "small",
|
24517
|
+
color: "action"
|
24518
|
+
}))));
|
24519
|
+
})));
|
24520
|
+
};
|
24521
|
+
|
23565
24522
|
/**
|
23566
24523
|
* @license
|
23567
24524
|
* Copyright 2021 Google LLC
|
@@ -27880,7 +28837,7 @@ function customColor(source, color) {
|
|
27880
28837
|
}
|
27881
28838
|
|
27882
28839
|
var DynamicColor = /*#__PURE__*/function () {
|
27883
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(src) {
|
28840
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(src) {
|
27884
28841
|
var imageElement, dynamicPalette, extractHctInstance, _dynamicPalette$palet, primary, secondary, _dynamicPalette$schem, dark, light, primaryMain, secondaryMain, primaryLight, primaryDark, secondaryLight, secondaryDark, primaryColor, secondaryColor, backgroundColor;
|
27885
28842
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
27886
28843
|
while (1) switch (_context.prev = _context.next) {
|
@@ -27975,4 +28932,4 @@ var useDynamicColor = function useDynamicColor(url) {
|
|
27975
28932
|
};
|
27976
28933
|
};
|
27977
28934
|
|
27978
|
-
export { ADCSincoTheme, AddCalendar, AdproSincoTheme, Ai, BarChart, BarChartHorizontal, BasicCalendar, Books, Box$1 as Box, BoxReceived, Boxes, Brick, Building, BussinesTarget, CalendarUserEvents, Call, CardRadio, Cement, Chat, CheckBill, CheckBillSearch, CheckDocSearch, CheckedCalendar, CircularChart, Click, ClipBoard, ClipBoardUser, Clock, Cloud, Coin, Config, ContactMails, Contacts, Conversation, Coupon, Crane, DaysCalendar, Develop, Diagram, Discount, Doc, DonutChart, DownloadDoc, DrawerComponent as Drawer, DrawerComponent, Drill, DuplicateTemplate, DynamicColor, EmailAddress, EmptyStateComponent as EmptyState, EmptyStateComponent, Engine, ErrorCalendar, ErrorDoc, EventsCalendar, Excavator, ExclamationBox, ExclamationCalendar, Flag, Flow, FooterAction, Gasoline, General, Hammer, Img, Law, Lego, Lift, Location, LockedFolder, Mail, Megaphone, Microphone, ModalSinco, MoneyBill, MoneyBillSearch, MoneyDoc, MoneyDocSearch, MountainFlag, MultiSelect, Notification, OpenBox, OpenFolder, Padlock, PageHeaderComponent as PageHeader, PageHeaderComponent, PaintRoller, Pdf, PintPot, Ppt, ProgressSinco, Puzzle, QuestionBill, QuestionBillSearch, QuestionBox, QuestionDocSearch, Rar, ReceivedMail, ReloadDoc, SealedBox, SearchCountry, SearchHome, SearchMoney, SearchUser, ShippingBox, Sholve, SincoTheme, Speedometer, StackedChart, StarChart, StartPennant, Support, TextDoc, TextFolder, ToastNotification, ToolBox, TrafficCone, TrendChart, Trolly, TrollyBox, Truck, Txt, UnlockedCalendar, Upload, UploadDoc, UserConfig, UserFolder, Users, WhatsApp, Xls, Zip, stateConfig, useDynamicColor };
|
28935
|
+
export { ADCSincoTheme, AddCalendar, AdjuntarArchivo, AdproSincoTheme, Ai, BarChart, BarChartHorizontal, BasicCalendar, Books, Box$1 as Box, BoxReceived, Boxes, Brick, Building, BussinesTarget, CalendarUserEvents, Call, CardRadio, Cement, Chat, CheckBill, CheckBillSearch, CheckDocSearch, CheckedCalendar, CircularChart, Click, ClipBoard, ClipBoardUser, Clock, Cloud, Coin, Config, ContactMails, Contacts, Conversation, Coupon, Crane, DaysCalendar, Develop, Diagram, Discount, Doc, DonutChart, DownloadDoc, DrawerComponent as Drawer, DrawerComponent, Drill, DuplicateTemplate, DynamicColor, EmailAddress, EmptyStateComponent as EmptyState, EmptyStateComponent, Engine, ErrorCalendar, ErrorDoc, EventsCalendar, Excavator, ExclamationBox, ExclamationCalendar, Flag, Flow, FooterAction, Gasoline, General, Hammer, Img, Law, Lego, Lift, Location, LockedFolder, Mail, Megaphone, Microphone, ModalSinco, MoneyBill, MoneyBillSearch, MoneyDoc, MoneyDocSearch, MountainFlag, MultiSelect, Notification, OpenBox, OpenFolder, Padlock, PageHeaderComponent as PageHeader, PageHeaderComponent, PaintRoller, Pdf, PintPot, Ppt, ProgressSinco, Puzzle, QuestionBill, QuestionBillSearch, QuestionBox, QuestionDocSearch, Rar, ReceivedMail, ReloadDoc, SealedBox, SearchCountry, SearchHome, SearchMoney, SearchUser, ShippingBox, Sholve, SincoTheme, Speedometer, StackedChart, StarChart, StartPennant, Support, TextDoc, TextFolder, ToastNotification, ToolBox, TrafficCone, TrendChart, Trolly, TrollyBox, Truck, Txt, UnlockedCalendar, Upload, UploadDoc, UserConfig, UserFolder, Users, WhatsApp, Xls, Zip, stateConfig, useDynamicColor };
|