@suportepos/split-checkout 0.4.5 → 0.4.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/README.md +207 -207
- package/dist/README.md +207 -207
- package/dist/index.es.js +708 -893
- package/dist/index.umd.js +3 -3
- package/dist/standalone/suportepos-checkout.js +2 -2
- package/dist/types/CheckoutFlow.d.ts +1 -0
- package/dist/types/CheckoutFlowContent.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/lib/CheckoutFlow.d.ts +1 -0
- package/dist/types/lib/CheckoutFlowContent.d.ts +1 -1
- package/dist/types/lib/theme.d.ts +1 -12
- package/dist/types/standalone.d.ts +2 -1
- package/dist/types/theme.d.ts +1 -12
- package/package.json +46 -46
package/dist/index.es.js
CHANGED
|
@@ -1181,7 +1181,7 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
var propTypes = { exports: {} };
|
|
1184
|
-
var reactIs$
|
|
1184
|
+
var reactIs$1 = { exports: {} };
|
|
1185
1185
|
var reactIs_production_min = {};
|
|
1186
1186
|
/** @license React v16.13.1
|
|
1187
1187
|
* react-is.production.min.js
|
|
@@ -1285,7 +1285,7 @@ function requireReactIs_production_min() {
|
|
|
1285
1285
|
reactIs_production_min.typeOf = z;
|
|
1286
1286
|
return reactIs_production_min;
|
|
1287
1287
|
}
|
|
1288
|
-
var reactIs_development$
|
|
1288
|
+
var reactIs_development$1 = {};
|
|
1289
1289
|
/** @license React v16.13.1
|
|
1290
1290
|
* react-is.development.js
|
|
1291
1291
|
*
|
|
@@ -1294,10 +1294,10 @@ var reactIs_development$2 = {};
|
|
|
1294
1294
|
* This source code is licensed under the MIT license found in the
|
|
1295
1295
|
* LICENSE file in the root directory of this source tree.
|
|
1296
1296
|
*/
|
|
1297
|
-
var hasRequiredReactIs_development$
|
|
1298
|
-
function requireReactIs_development$
|
|
1299
|
-
if (hasRequiredReactIs_development$
|
|
1300
|
-
hasRequiredReactIs_development$
|
|
1297
|
+
var hasRequiredReactIs_development$1;
|
|
1298
|
+
function requireReactIs_development$1() {
|
|
1299
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
1300
|
+
hasRequiredReactIs_development$1 = 1;
|
|
1301
1301
|
if (process.env.NODE_ENV !== "production") {
|
|
1302
1302
|
(function() {
|
|
1303
1303
|
var hasSymbol2 = typeof Symbol === "function" && Symbol.for;
|
|
@@ -1415,48 +1415,48 @@ function requireReactIs_development$2() {
|
|
|
1415
1415
|
function isSuspense(object) {
|
|
1416
1416
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1417
1417
|
}
|
|
1418
|
-
reactIs_development$
|
|
1419
|
-
reactIs_development$
|
|
1420
|
-
reactIs_development$
|
|
1421
|
-
reactIs_development$
|
|
1422
|
-
reactIs_development$
|
|
1423
|
-
reactIs_development$
|
|
1424
|
-
reactIs_development$
|
|
1425
|
-
reactIs_development$
|
|
1426
|
-
reactIs_development$
|
|
1427
|
-
reactIs_development$
|
|
1428
|
-
reactIs_development$
|
|
1429
|
-
reactIs_development$
|
|
1430
|
-
reactIs_development$
|
|
1431
|
-
reactIs_development$
|
|
1432
|
-
reactIs_development$
|
|
1433
|
-
reactIs_development$
|
|
1434
|
-
reactIs_development$
|
|
1435
|
-
reactIs_development$
|
|
1436
|
-
reactIs_development$
|
|
1437
|
-
reactIs_development$
|
|
1438
|
-
reactIs_development$
|
|
1439
|
-
reactIs_development$
|
|
1440
|
-
reactIs_development$
|
|
1441
|
-
reactIs_development$
|
|
1442
|
-
reactIs_development$
|
|
1443
|
-
reactIs_development$
|
|
1444
|
-
reactIs_development$
|
|
1445
|
-
reactIs_development$
|
|
1418
|
+
reactIs_development$1.AsyncMode = AsyncMode;
|
|
1419
|
+
reactIs_development$1.ConcurrentMode = ConcurrentMode;
|
|
1420
|
+
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
1421
|
+
reactIs_development$1.ContextProvider = ContextProvider;
|
|
1422
|
+
reactIs_development$1.Element = Element2;
|
|
1423
|
+
reactIs_development$1.ForwardRef = ForwardRef;
|
|
1424
|
+
reactIs_development$1.Fragment = Fragment;
|
|
1425
|
+
reactIs_development$1.Lazy = Lazy;
|
|
1426
|
+
reactIs_development$1.Memo = Memo;
|
|
1427
|
+
reactIs_development$1.Portal = Portal3;
|
|
1428
|
+
reactIs_development$1.Profiler = Profiler;
|
|
1429
|
+
reactIs_development$1.StrictMode = StrictMode;
|
|
1430
|
+
reactIs_development$1.Suspense = Suspense;
|
|
1431
|
+
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
1432
|
+
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
1433
|
+
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
1434
|
+
reactIs_development$1.isContextProvider = isContextProvider;
|
|
1435
|
+
reactIs_development$1.isElement = isElement;
|
|
1436
|
+
reactIs_development$1.isForwardRef = isForwardRef;
|
|
1437
|
+
reactIs_development$1.isFragment = isFragment;
|
|
1438
|
+
reactIs_development$1.isLazy = isLazy;
|
|
1439
|
+
reactIs_development$1.isMemo = isMemo;
|
|
1440
|
+
reactIs_development$1.isPortal = isPortal;
|
|
1441
|
+
reactIs_development$1.isProfiler = isProfiler;
|
|
1442
|
+
reactIs_development$1.isStrictMode = isStrictMode;
|
|
1443
|
+
reactIs_development$1.isSuspense = isSuspense;
|
|
1444
|
+
reactIs_development$1.isValidElementType = isValidElementType;
|
|
1445
|
+
reactIs_development$1.typeOf = typeOf;
|
|
1446
1446
|
})();
|
|
1447
1447
|
}
|
|
1448
|
-
return reactIs_development$
|
|
1448
|
+
return reactIs_development$1;
|
|
1449
1449
|
}
|
|
1450
|
-
var hasRequiredReactIs$
|
|
1451
|
-
function requireReactIs$
|
|
1452
|
-
if (hasRequiredReactIs$
|
|
1453
|
-
hasRequiredReactIs$
|
|
1450
|
+
var hasRequiredReactIs$1;
|
|
1451
|
+
function requireReactIs$1() {
|
|
1452
|
+
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
1453
|
+
hasRequiredReactIs$1 = 1;
|
|
1454
1454
|
if (process.env.NODE_ENV === "production") {
|
|
1455
|
-
reactIs$
|
|
1455
|
+
reactIs$1.exports = requireReactIs_production_min();
|
|
1456
1456
|
} else {
|
|
1457
|
-
reactIs$
|
|
1457
|
+
reactIs$1.exports = requireReactIs_development$1();
|
|
1458
1458
|
}
|
|
1459
|
-
return reactIs$
|
|
1459
|
+
return reactIs$1.exports;
|
|
1460
1460
|
}
|
|
1461
1461
|
/*
|
|
1462
1462
|
object-assign
|
|
@@ -1618,7 +1618,7 @@ var hasRequiredFactoryWithTypeCheckers;
|
|
|
1618
1618
|
function requireFactoryWithTypeCheckers() {
|
|
1619
1619
|
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
1620
1620
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
1621
|
-
var ReactIs = requireReactIs$
|
|
1621
|
+
var ReactIs = requireReactIs$1();
|
|
1622
1622
|
var assign = requireObjectAssign();
|
|
1623
1623
|
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
1624
1624
|
var has2 = /* @__PURE__ */ requireHas();
|
|
@@ -2115,7 +2115,7 @@ function requirePropTypes() {
|
|
|
2115
2115
|
if (hasRequiredPropTypes) return propTypes.exports;
|
|
2116
2116
|
hasRequiredPropTypes = 1;
|
|
2117
2117
|
if (process.env.NODE_ENV !== "production") {
|
|
2118
|
-
var ReactIs = requireReactIs$
|
|
2118
|
+
var ReactIs = requireReactIs$1();
|
|
2119
2119
|
var throwOnDirectAccess = true;
|
|
2120
2120
|
propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
2121
2121
|
} else {
|
|
@@ -2143,7 +2143,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
|
|
|
2143
2143
|
styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])
|
|
2144
2144
|
} : void 0;
|
|
2145
2145
|
/**
|
|
2146
|
-
* @mui/styled-engine v7.3.
|
|
2146
|
+
* @mui/styled-engine v7.3.1
|
|
2147
2147
|
*
|
|
2148
2148
|
* @license MIT
|
|
2149
2149
|
* This source code is licensed under the MIT license found in the
|
|
@@ -2174,8 +2174,8 @@ function internal_serializeStyles(styles2) {
|
|
|
2174
2174
|
wrapper[0] = styles2;
|
|
2175
2175
|
return serializeStyles(wrapper);
|
|
2176
2176
|
}
|
|
2177
|
-
var reactIs
|
|
2178
|
-
var reactIs_production
|
|
2177
|
+
var reactIs = { exports: {} };
|
|
2178
|
+
var reactIs_production = {};
|
|
2179
2179
|
/**
|
|
2180
2180
|
* @license React
|
|
2181
2181
|
* react-is.production.js
|
|
@@ -2185,10 +2185,10 @@ var reactIs_production$1 = {};
|
|
|
2185
2185
|
* This source code is licensed under the MIT license found in the
|
|
2186
2186
|
* LICENSE file in the root directory of this source tree.
|
|
2187
2187
|
*/
|
|
2188
|
-
var hasRequiredReactIs_production
|
|
2189
|
-
function requireReactIs_production
|
|
2190
|
-
if (hasRequiredReactIs_production
|
|
2191
|
-
hasRequiredReactIs_production
|
|
2188
|
+
var hasRequiredReactIs_production;
|
|
2189
|
+
function requireReactIs_production() {
|
|
2190
|
+
if (hasRequiredReactIs_production) return reactIs_production;
|
|
2191
|
+
hasRequiredReactIs_production = 1;
|
|
2192
2192
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2193
2193
|
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
2194
2194
|
function typeOf(object) {
|
|
@@ -2222,61 +2222,61 @@ function requireReactIs_production$1() {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
reactIs_production
|
|
2226
|
-
reactIs_production
|
|
2227
|
-
reactIs_production
|
|
2228
|
-
reactIs_production
|
|
2229
|
-
reactIs_production
|
|
2230
|
-
reactIs_production
|
|
2231
|
-
reactIs_production
|
|
2232
|
-
reactIs_production
|
|
2233
|
-
reactIs_production
|
|
2234
|
-
reactIs_production
|
|
2235
|
-
reactIs_production
|
|
2236
|
-
reactIs_production
|
|
2237
|
-
reactIs_production
|
|
2225
|
+
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
2226
|
+
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
2227
|
+
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
|
2228
|
+
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2229
|
+
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
2230
|
+
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
|
2231
|
+
reactIs_production.Memo = REACT_MEMO_TYPE;
|
|
2232
|
+
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
|
2233
|
+
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
|
2234
|
+
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2235
|
+
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
2236
|
+
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
2237
|
+
reactIs_production.isContextConsumer = function(object) {
|
|
2238
2238
|
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
2239
2239
|
};
|
|
2240
|
-
reactIs_production
|
|
2240
|
+
reactIs_production.isContextProvider = function(object) {
|
|
2241
2241
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
2242
2242
|
};
|
|
2243
|
-
reactIs_production
|
|
2243
|
+
reactIs_production.isElement = function(object) {
|
|
2244
2244
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2245
2245
|
};
|
|
2246
|
-
reactIs_production
|
|
2246
|
+
reactIs_production.isForwardRef = function(object) {
|
|
2247
2247
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
2248
2248
|
};
|
|
2249
|
-
reactIs_production
|
|
2249
|
+
reactIs_production.isFragment = function(object) {
|
|
2250
2250
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
2251
2251
|
};
|
|
2252
|
-
reactIs_production
|
|
2252
|
+
reactIs_production.isLazy = function(object) {
|
|
2253
2253
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
2254
2254
|
};
|
|
2255
|
-
reactIs_production
|
|
2255
|
+
reactIs_production.isMemo = function(object) {
|
|
2256
2256
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
2257
2257
|
};
|
|
2258
|
-
reactIs_production
|
|
2258
|
+
reactIs_production.isPortal = function(object) {
|
|
2259
2259
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
2260
2260
|
};
|
|
2261
|
-
reactIs_production
|
|
2261
|
+
reactIs_production.isProfiler = function(object) {
|
|
2262
2262
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
2263
2263
|
};
|
|
2264
|
-
reactIs_production
|
|
2264
|
+
reactIs_production.isStrictMode = function(object) {
|
|
2265
2265
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
2266
2266
|
};
|
|
2267
|
-
reactIs_production
|
|
2267
|
+
reactIs_production.isSuspense = function(object) {
|
|
2268
2268
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
2269
2269
|
};
|
|
2270
|
-
reactIs_production
|
|
2270
|
+
reactIs_production.isSuspenseList = function(object) {
|
|
2271
2271
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
2272
2272
|
};
|
|
2273
|
-
reactIs_production
|
|
2273
|
+
reactIs_production.isValidElementType = function(type) {
|
|
2274
2274
|
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
2275
2275
|
};
|
|
2276
|
-
reactIs_production
|
|
2277
|
-
return reactIs_production
|
|
2276
|
+
reactIs_production.typeOf = typeOf;
|
|
2277
|
+
return reactIs_production;
|
|
2278
2278
|
}
|
|
2279
|
-
var reactIs_development
|
|
2279
|
+
var reactIs_development = {};
|
|
2280
2280
|
/**
|
|
2281
2281
|
* @license React
|
|
2282
2282
|
* react-is.development.js
|
|
@@ -2286,10 +2286,10 @@ var reactIs_development$1 = {};
|
|
|
2286
2286
|
* This source code is licensed under the MIT license found in the
|
|
2287
2287
|
* LICENSE file in the root directory of this source tree.
|
|
2288
2288
|
*/
|
|
2289
|
-
var hasRequiredReactIs_development
|
|
2290
|
-
function requireReactIs_development
|
|
2291
|
-
if (hasRequiredReactIs_development
|
|
2292
|
-
hasRequiredReactIs_development
|
|
2289
|
+
var hasRequiredReactIs_development;
|
|
2290
|
+
function requireReactIs_development() {
|
|
2291
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
2292
|
+
hasRequiredReactIs_development = 1;
|
|
2293
2293
|
"production" !== process.env.NODE_ENV && (function() {
|
|
2294
2294
|
function typeOf(object) {
|
|
2295
2295
|
if ("object" === typeof object && null !== object) {
|
|
@@ -2324,73 +2324,73 @@ function requireReactIs_development$1() {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2326
2326
|
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
2327
|
-
reactIs_development
|
|
2328
|
-
reactIs_development
|
|
2329
|
-
reactIs_development
|
|
2330
|
-
reactIs_development
|
|
2331
|
-
reactIs_development
|
|
2332
|
-
reactIs_development
|
|
2333
|
-
reactIs_development
|
|
2334
|
-
reactIs_development
|
|
2335
|
-
reactIs_development
|
|
2336
|
-
reactIs_development
|
|
2337
|
-
reactIs_development
|
|
2338
|
-
reactIs_development
|
|
2339
|
-
reactIs_development
|
|
2327
|
+
reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
2328
|
+
reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
|
|
2329
|
+
reactIs_development.Element = REACT_ELEMENT_TYPE;
|
|
2330
|
+
reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2331
|
+
reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
2332
|
+
reactIs_development.Lazy = REACT_LAZY_TYPE;
|
|
2333
|
+
reactIs_development.Memo = REACT_MEMO_TYPE;
|
|
2334
|
+
reactIs_development.Portal = REACT_PORTAL_TYPE;
|
|
2335
|
+
reactIs_development.Profiler = REACT_PROFILER_TYPE;
|
|
2336
|
+
reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2337
|
+
reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
|
|
2338
|
+
reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
2339
|
+
reactIs_development.isContextConsumer = function(object) {
|
|
2340
2340
|
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
2341
2341
|
};
|
|
2342
|
-
reactIs_development
|
|
2342
|
+
reactIs_development.isContextProvider = function(object) {
|
|
2343
2343
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
2344
2344
|
};
|
|
2345
|
-
reactIs_development
|
|
2345
|
+
reactIs_development.isElement = function(object) {
|
|
2346
2346
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2347
2347
|
};
|
|
2348
|
-
reactIs_development
|
|
2348
|
+
reactIs_development.isForwardRef = function(object) {
|
|
2349
2349
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
2350
2350
|
};
|
|
2351
|
-
reactIs_development
|
|
2351
|
+
reactIs_development.isFragment = function(object) {
|
|
2352
2352
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
2353
2353
|
};
|
|
2354
|
-
reactIs_development
|
|
2354
|
+
reactIs_development.isLazy = function(object) {
|
|
2355
2355
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
2356
2356
|
};
|
|
2357
|
-
reactIs_development
|
|
2357
|
+
reactIs_development.isMemo = function(object) {
|
|
2358
2358
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
2359
2359
|
};
|
|
2360
|
-
reactIs_development
|
|
2360
|
+
reactIs_development.isPortal = function(object) {
|
|
2361
2361
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
2362
2362
|
};
|
|
2363
|
-
reactIs_development
|
|
2363
|
+
reactIs_development.isProfiler = function(object) {
|
|
2364
2364
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
2365
2365
|
};
|
|
2366
|
-
reactIs_development
|
|
2366
|
+
reactIs_development.isStrictMode = function(object) {
|
|
2367
2367
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
2368
2368
|
};
|
|
2369
|
-
reactIs_development
|
|
2369
|
+
reactIs_development.isSuspense = function(object) {
|
|
2370
2370
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
2371
2371
|
};
|
|
2372
|
-
reactIs_development
|
|
2372
|
+
reactIs_development.isSuspenseList = function(object) {
|
|
2373
2373
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
2374
2374
|
};
|
|
2375
|
-
reactIs_development
|
|
2375
|
+
reactIs_development.isValidElementType = function(type) {
|
|
2376
2376
|
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
2377
2377
|
};
|
|
2378
|
-
reactIs_development
|
|
2378
|
+
reactIs_development.typeOf = typeOf;
|
|
2379
2379
|
})();
|
|
2380
|
-
return reactIs_development
|
|
2380
|
+
return reactIs_development;
|
|
2381
2381
|
}
|
|
2382
|
-
var hasRequiredReactIs
|
|
2383
|
-
function requireReactIs
|
|
2384
|
-
if (hasRequiredReactIs
|
|
2385
|
-
hasRequiredReactIs
|
|
2382
|
+
var hasRequiredReactIs;
|
|
2383
|
+
function requireReactIs() {
|
|
2384
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
2385
|
+
hasRequiredReactIs = 1;
|
|
2386
2386
|
if (process.env.NODE_ENV === "production") {
|
|
2387
|
-
reactIs
|
|
2387
|
+
reactIs.exports = /* @__PURE__ */ requireReactIs_production();
|
|
2388
2388
|
} else {
|
|
2389
|
-
reactIs
|
|
2389
|
+
reactIs.exports = /* @__PURE__ */ requireReactIs_development();
|
|
2390
2390
|
}
|
|
2391
|
-
return reactIs
|
|
2391
|
+
return reactIs.exports;
|
|
2392
2392
|
}
|
|
2393
|
-
var reactIsExports
|
|
2393
|
+
var reactIsExports = /* @__PURE__ */ requireReactIs();
|
|
2394
2394
|
function isPlainObject(item) {
|
|
2395
2395
|
if (typeof item !== "object" || item === null) {
|
|
2396
2396
|
return false;
|
|
@@ -2399,7 +2399,7 @@ function isPlainObject(item) {
|
|
|
2399
2399
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
2400
2400
|
}
|
|
2401
2401
|
function deepClone(source) {
|
|
2402
|
-
if (/* @__PURE__ */ React.isValidElement(source) || reactIsExports
|
|
2402
|
+
if (/* @__PURE__ */ React.isValidElement(source) || reactIsExports.isValidElementType(source) || !isPlainObject(source)) {
|
|
2403
2403
|
return source;
|
|
2404
2404
|
}
|
|
2405
2405
|
const output = {};
|
|
@@ -2416,7 +2416,7 @@ function deepmerge(target, source, options = {
|
|
|
2416
2416
|
} : target;
|
|
2417
2417
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
2418
2418
|
Object.keys(source).forEach((key) => {
|
|
2419
|
-
if (/* @__PURE__ */ React.isValidElement(source[key]) || reactIsExports
|
|
2419
|
+
if (/* @__PURE__ */ React.isValidElement(source[key]) || reactIsExports.isValidElementType(source[key])) {
|
|
2420
2420
|
output[key] = source[key];
|
|
2421
2421
|
} else if (isPlainObject(source[key]) && // Avoid prototype pollution
|
|
2422
2422
|
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
|
|
@@ -2505,8 +2505,8 @@ function createBreakpoints(breakpoints) {
|
|
|
2505
2505
|
...other
|
|
2506
2506
|
};
|
|
2507
2507
|
}
|
|
2508
|
-
function sortContainerQueries(
|
|
2509
|
-
if (!
|
|
2508
|
+
function sortContainerQueries(theme, css2) {
|
|
2509
|
+
if (!theme.containerQueries) {
|
|
2510
2510
|
return css2;
|
|
2511
2511
|
}
|
|
2512
2512
|
const sorted = Object.keys(css2).filter((key) => key.startsWith("@container")).sort((a, b) => {
|
|
@@ -2528,7 +2528,7 @@ function sortContainerQueries(theme2, css2) {
|
|
|
2528
2528
|
function isCqShorthand(breakpointKeys, value) {
|
|
2529
2529
|
return value === "@" || value.startsWith("@") && (breakpointKeys.some((key) => value.startsWith(`@${key}`)) || !!value.match(/^@\d/));
|
|
2530
2530
|
}
|
|
2531
|
-
function getContainerQuery(
|
|
2531
|
+
function getContainerQuery(theme, shorthand) {
|
|
2532
2532
|
const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/);
|
|
2533
2533
|
if (!matches) {
|
|
2534
2534
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2539,7 +2539,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
|
|
|
2539
2539
|
}
|
|
2540
2540
|
const [, containerQuery, containerName] = matches;
|
|
2541
2541
|
const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;
|
|
2542
|
-
return
|
|
2542
|
+
return theme.containerQueries(containerName).up(value);
|
|
2543
2543
|
}
|
|
2544
2544
|
function cssContainerQueries(themeInput) {
|
|
2545
2545
|
const toContainerQuery = (mediaQuery, name) => mediaQuery.replace("@media", name ? `@container ${name}` : "@container");
|
|
@@ -2610,19 +2610,19 @@ const defaultContainerQueries = {
|
|
|
2610
2610
|
})
|
|
2611
2611
|
};
|
|
2612
2612
|
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
2613
|
-
const
|
|
2613
|
+
const theme = props.theme || {};
|
|
2614
2614
|
if (Array.isArray(propValue)) {
|
|
2615
|
-
const themeBreakpoints =
|
|
2615
|
+
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
|
2616
2616
|
return propValue.reduce((acc, item, index) => {
|
|
2617
2617
|
acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
|
|
2618
2618
|
return acc;
|
|
2619
2619
|
}, {});
|
|
2620
2620
|
}
|
|
2621
2621
|
if (typeof propValue === "object") {
|
|
2622
|
-
const themeBreakpoints =
|
|
2622
|
+
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
|
2623
2623
|
return Object.keys(propValue).reduce((acc, breakpoint) => {
|
|
2624
2624
|
if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {
|
|
2625
|
-
const containerKey = getContainerQuery(
|
|
2625
|
+
const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);
|
|
2626
2626
|
if (containerKey) {
|
|
2627
2627
|
acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
|
2628
2628
|
}
|
|
@@ -2756,8 +2756,8 @@ function style$2(options) {
|
|
|
2756
2756
|
return null;
|
|
2757
2757
|
}
|
|
2758
2758
|
const propValue = props[prop];
|
|
2759
|
-
const
|
|
2760
|
-
const themeMapping = getPath(
|
|
2759
|
+
const theme = props.theme;
|
|
2760
|
+
const themeMapping = getPath(theme, themeKey) || {};
|
|
2761
2761
|
const styleFromPropValue = (propValueFinal) => {
|
|
2762
2762
|
let value = getStyleValue$1(themeMapping, transform, propValueFinal);
|
|
2763
2763
|
if (propValueFinal === value && typeof propValueFinal === "string") {
|
|
@@ -2821,8 +2821,8 @@ const getCssProperties = memoize((prop) => {
|
|
|
2821
2821
|
const marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"];
|
|
2822
2822
|
const paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"];
|
|
2823
2823
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
2824
|
-
function createUnaryUnit(
|
|
2825
|
-
const themeSpacing = getPath(
|
|
2824
|
+
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
2825
|
+
const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;
|
|
2826
2826
|
if (typeof themeSpacing === "number" || typeof themeSpacing === "string") {
|
|
2827
2827
|
return (val) => {
|
|
2828
2828
|
if (typeof val === "string") {
|
|
@@ -2879,8 +2879,8 @@ function createUnaryUnit(theme2, themeKey, defaultValue, propName) {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
return () => void 0;
|
|
2881
2881
|
}
|
|
2882
|
-
function createUnarySpacing(
|
|
2883
|
-
return createUnaryUnit(
|
|
2882
|
+
function createUnarySpacing(theme) {
|
|
2883
|
+
return createUnaryUnit(theme, "spacing", 8, "spacing");
|
|
2884
2884
|
}
|
|
2885
2885
|
function getValue(transformer, propValue) {
|
|
2886
2886
|
if (typeof propValue === "string" || propValue == null) {
|
|
@@ -3457,10 +3457,10 @@ function callIfFn(maybeFn, arg2) {
|
|
|
3457
3457
|
return typeof maybeFn === "function" ? maybeFn(arg2) : maybeFn;
|
|
3458
3458
|
}
|
|
3459
3459
|
function unstable_createStyleFunctionSx() {
|
|
3460
|
-
function getThemeValue(prop, val,
|
|
3460
|
+
function getThemeValue(prop, val, theme, config2) {
|
|
3461
3461
|
const props = {
|
|
3462
3462
|
[prop]: val,
|
|
3463
|
-
theme
|
|
3463
|
+
theme
|
|
3464
3464
|
};
|
|
3465
3465
|
const options = config2[prop];
|
|
3466
3466
|
if (!options) {
|
|
@@ -3482,7 +3482,7 @@ function unstable_createStyleFunctionSx() {
|
|
|
3482
3482
|
[prop]: val
|
|
3483
3483
|
};
|
|
3484
3484
|
}
|
|
3485
|
-
const themeMapping = getPath(
|
|
3485
|
+
const themeMapping = getPath(theme, themeKey) || {};
|
|
3486
3486
|
if (style2) {
|
|
3487
3487
|
return style2(props);
|
|
3488
3488
|
}
|
|
@@ -3503,42 +3503,42 @@ function unstable_createStyleFunctionSx() {
|
|
|
3503
3503
|
function styleFunctionSx2(props) {
|
|
3504
3504
|
const {
|
|
3505
3505
|
sx,
|
|
3506
|
-
theme
|
|
3506
|
+
theme = {},
|
|
3507
3507
|
nested: nested2
|
|
3508
3508
|
} = props || {};
|
|
3509
3509
|
if (!sx) {
|
|
3510
3510
|
return null;
|
|
3511
3511
|
}
|
|
3512
|
-
const config2 =
|
|
3512
|
+
const config2 = theme.unstable_sxConfig ?? defaultSxConfig;
|
|
3513
3513
|
function traverse(sxInput) {
|
|
3514
3514
|
let sxObject = sxInput;
|
|
3515
3515
|
if (typeof sxInput === "function") {
|
|
3516
|
-
sxObject = sxInput(
|
|
3516
|
+
sxObject = sxInput(theme);
|
|
3517
3517
|
} else if (typeof sxInput !== "object") {
|
|
3518
3518
|
return sxInput;
|
|
3519
3519
|
}
|
|
3520
3520
|
if (!sxObject) {
|
|
3521
3521
|
return null;
|
|
3522
3522
|
}
|
|
3523
|
-
const emptyBreakpoints = createEmptyBreakpointObject(
|
|
3523
|
+
const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);
|
|
3524
3524
|
const breakpointsKeys = Object.keys(emptyBreakpoints);
|
|
3525
3525
|
let css2 = emptyBreakpoints;
|
|
3526
3526
|
Object.keys(sxObject).forEach((styleKey) => {
|
|
3527
|
-
const value = callIfFn(sxObject[styleKey],
|
|
3527
|
+
const value = callIfFn(sxObject[styleKey], theme);
|
|
3528
3528
|
if (value !== null && value !== void 0) {
|
|
3529
3529
|
if (typeof value === "object") {
|
|
3530
3530
|
if (config2[styleKey]) {
|
|
3531
|
-
css2 = merge(css2, getThemeValue(styleKey, value,
|
|
3531
|
+
css2 = merge(css2, getThemeValue(styleKey, value, theme, config2));
|
|
3532
3532
|
} else {
|
|
3533
3533
|
const breakpointsValues = handleBreakpoints({
|
|
3534
|
-
theme
|
|
3534
|
+
theme
|
|
3535
3535
|
}, value, (x) => ({
|
|
3536
3536
|
[styleKey]: x
|
|
3537
3537
|
}));
|
|
3538
3538
|
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
3539
3539
|
css2[styleKey] = styleFunctionSx2({
|
|
3540
3540
|
sx: value,
|
|
3541
|
-
theme
|
|
3541
|
+
theme,
|
|
3542
3542
|
nested: true
|
|
3543
3543
|
});
|
|
3544
3544
|
} else {
|
|
@@ -3546,16 +3546,16 @@ function unstable_createStyleFunctionSx() {
|
|
|
3546
3546
|
}
|
|
3547
3547
|
}
|
|
3548
3548
|
} else {
|
|
3549
|
-
css2 = merge(css2, getThemeValue(styleKey, value,
|
|
3549
|
+
css2 = merge(css2, getThemeValue(styleKey, value, theme, config2));
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
3552
|
});
|
|
3553
|
-
if (!nested2 &&
|
|
3553
|
+
if (!nested2 && theme.modularCssLayers) {
|
|
3554
3554
|
return {
|
|
3555
|
-
"@layer sx": sortContainerQueries(
|
|
3555
|
+
"@layer sx": sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css2))
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
return sortContainerQueries(
|
|
3558
|
+
return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css2));
|
|
3559
3559
|
}
|
|
3560
3560
|
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
3561
3561
|
}
|
|
@@ -3564,12 +3564,12 @@ function unstable_createStyleFunctionSx() {
|
|
|
3564
3564
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
3565
3565
|
styleFunctionSx.filterProps = ["sx"];
|
|
3566
3566
|
function applyStyles(key, styles2) {
|
|
3567
|
-
const
|
|
3568
|
-
if (
|
|
3569
|
-
if (!
|
|
3567
|
+
const theme = this;
|
|
3568
|
+
if (theme.vars) {
|
|
3569
|
+
if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
|
|
3570
3570
|
return {};
|
|
3571
3571
|
}
|
|
3572
|
-
let selector =
|
|
3572
|
+
let selector = theme.getColorSchemeSelector(key);
|
|
3573
3573
|
if (selector === "&") {
|
|
3574
3574
|
return styles2;
|
|
3575
3575
|
}
|
|
@@ -3580,7 +3580,7 @@ function applyStyles(key, styles2) {
|
|
|
3580
3580
|
[selector]: styles2
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
|
-
if (
|
|
3583
|
+
if (theme.palette.mode === key) {
|
|
3584
3584
|
return styles2;
|
|
3585
3585
|
}
|
|
3586
3586
|
return {};
|
|
@@ -3777,7 +3777,7 @@ function createBox(options = {}) {
|
|
|
3777
3777
|
shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as"
|
|
3778
3778
|
})(styleFunctionSx);
|
|
3779
3779
|
const Box2 = /* @__PURE__ */ React.forwardRef(function Box3(inProps, ref) {
|
|
3780
|
-
const
|
|
3780
|
+
const theme = useTheme$2(defaultTheme2);
|
|
3781
3781
|
const {
|
|
3782
3782
|
className,
|
|
3783
3783
|
component = "div",
|
|
@@ -3787,7 +3787,7 @@ function createBox(options = {}) {
|
|
|
3787
3787
|
as: component,
|
|
3788
3788
|
ref,
|
|
3789
3789
|
className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
|
3790
|
-
theme: themeId ?
|
|
3790
|
+
theme: themeId ? theme[themeId] || theme : theme,
|
|
3791
3791
|
...other
|
|
3792
3792
|
});
|
|
3793
3793
|
});
|
|
@@ -3837,9 +3837,9 @@ function getDisplayName(Component) {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
if (typeof Component === "object") {
|
|
3839
3839
|
switch (Component.$$typeof) {
|
|
3840
|
-
case reactIsExports
|
|
3840
|
+
case reactIsExports.ForwardRef:
|
|
3841
3841
|
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
3842
|
-
case reactIsExports
|
|
3842
|
+
case reactIsExports.Memo:
|
|
3843
3843
|
return getWrappedName(Component, Component.type, "memo");
|
|
3844
3844
|
default:
|
|
3845
3845
|
return void 0;
|
|
@@ -4013,8 +4013,8 @@ function createStyled(input = {}) {
|
|
|
4013
4013
|
expressionsHead.push(styleAttachTheme);
|
|
4014
4014
|
if (componentName && overridesResolver2) {
|
|
4015
4015
|
expressionsTail.push(function styleThemeOverrides(props) {
|
|
4016
|
-
const
|
|
4017
|
-
const styleOverrides =
|
|
4016
|
+
const theme = props.theme;
|
|
4017
|
+
const styleOverrides = theme.components?.[componentName]?.styleOverrides;
|
|
4018
4018
|
if (!styleOverrides) {
|
|
4019
4019
|
return null;
|
|
4020
4020
|
}
|
|
@@ -4027,8 +4027,8 @@ function createStyled(input = {}) {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
if (componentName && !skipVariantsResolver) {
|
|
4029
4029
|
expressionsTail.push(function styleThemeVariants(props) {
|
|
4030
|
-
const
|
|
4031
|
-
const themeVariants =
|
|
4030
|
+
const theme = props.theme;
|
|
4031
|
+
const themeVariants = theme?.components?.[componentName]?.variants;
|
|
4032
4032
|
if (!themeVariants) {
|
|
4033
4033
|
return null;
|
|
4034
4034
|
}
|
|
@@ -4146,14 +4146,14 @@ function resolveProps(defaultProps2, props, mergeClassNameAndStyle = false) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
function getThemeProps$1(params) {
|
|
4148
4148
|
const {
|
|
4149
|
-
theme
|
|
4149
|
+
theme,
|
|
4150
4150
|
name,
|
|
4151
4151
|
props
|
|
4152
4152
|
} = params;
|
|
4153
|
-
if (!
|
|
4153
|
+
if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
|
|
4154
4154
|
return props;
|
|
4155
4155
|
}
|
|
4156
|
-
return resolveProps(
|
|
4156
|
+
return resolveProps(theme.components[name].defaultProps, props);
|
|
4157
4157
|
}
|
|
4158
4158
|
function useThemeProps({
|
|
4159
4159
|
props,
|
|
@@ -4161,12 +4161,12 @@ function useThemeProps({
|
|
|
4161
4161
|
defaultTheme: defaultTheme2,
|
|
4162
4162
|
themeId
|
|
4163
4163
|
}) {
|
|
4164
|
-
let
|
|
4164
|
+
let theme = useTheme$2(defaultTheme2);
|
|
4165
4165
|
if (themeId) {
|
|
4166
|
-
|
|
4166
|
+
theme = theme[themeId] || theme;
|
|
4167
4167
|
}
|
|
4168
4168
|
return getThemeProps$1({
|
|
4169
|
-
theme
|
|
4169
|
+
theme,
|
|
4170
4170
|
name,
|
|
4171
4171
|
props
|
|
4172
4172
|
});
|
|
@@ -4237,9 +4237,9 @@ function unstable_createUseMediaQuery(params = {}) {
|
|
|
4237
4237
|
themeId
|
|
4238
4238
|
} = params;
|
|
4239
4239
|
return function useMediaQuery2(queryInput, options = {}) {
|
|
4240
|
-
let
|
|
4241
|
-
if (
|
|
4242
|
-
|
|
4240
|
+
let theme = useTheme$3();
|
|
4241
|
+
if (theme && themeId) {
|
|
4242
|
+
theme = theme[themeId] || theme;
|
|
4243
4243
|
}
|
|
4244
4244
|
const supportMatchMedia = typeof window !== "undefined" && typeof window.matchMedia !== "undefined";
|
|
4245
4245
|
const {
|
|
@@ -4250,14 +4250,14 @@ function unstable_createUseMediaQuery(params = {}) {
|
|
|
4250
4250
|
} = getThemeProps$1({
|
|
4251
4251
|
name: "MuiUseMediaQuery",
|
|
4252
4252
|
props: options,
|
|
4253
|
-
theme
|
|
4253
|
+
theme
|
|
4254
4254
|
});
|
|
4255
4255
|
if (process.env.NODE_ENV !== "production") {
|
|
4256
|
-
if (typeof queryInput === "function" &&
|
|
4256
|
+
if (typeof queryInput === "function" && theme === null) {
|
|
4257
4257
|
console.error(["MUI: The `query` argument provided is invalid.", "You are providing a function without a theme in the context.", "One of the parent elements needs to use a ThemeProvider."].join("\n"));
|
|
4258
4258
|
}
|
|
4259
4259
|
}
|
|
4260
|
-
let query = typeof queryInput === "function" ? queryInput(
|
|
4260
|
+
let query = typeof queryInput === "function" ? queryInput(theme) : queryInput;
|
|
4261
4261
|
query = query.replace(/^@media( ?)/m, "");
|
|
4262
4262
|
if (query.includes("print")) {
|
|
4263
4263
|
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, "Using the print media query to modify print styles can lead to unexpected results.", "Consider using the `displayPrint` field in the `sx` prop instead.", "More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join("\n"));
|
|
@@ -4510,11 +4510,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4510
4510
|
ThemeContext.displayName = "ThemeContext";
|
|
4511
4511
|
}
|
|
4512
4512
|
function useTheme$1() {
|
|
4513
|
-
const
|
|
4513
|
+
const theme = React.useContext(ThemeContext);
|
|
4514
4514
|
if (process.env.NODE_ENV !== "production") {
|
|
4515
|
-
React.useDebugValue(
|
|
4515
|
+
React.useDebugValue(theme);
|
|
4516
4516
|
}
|
|
4517
|
-
return
|
|
4517
|
+
return theme;
|
|
4518
4518
|
}
|
|
4519
4519
|
const hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
4520
4520
|
const nested = hasSymbol ? Symbol.for("mui.nested") : "__THEME_NESTED__";
|
|
@@ -4544,7 +4544,7 @@ function ThemeProvider$2(props) {
|
|
|
4544
4544
|
console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));
|
|
4545
4545
|
}
|
|
4546
4546
|
}
|
|
4547
|
-
const
|
|
4547
|
+
const theme = React.useMemo(() => {
|
|
4548
4548
|
const output = outerTheme === null ? {
|
|
4549
4549
|
...localTheme
|
|
4550
4550
|
} : mergeOuterLocalTheme(outerTheme, localTheme);
|
|
@@ -4554,7 +4554,7 @@ function ThemeProvider$2(props) {
|
|
|
4554
4554
|
return output;
|
|
4555
4555
|
}, [localTheme, outerTheme]);
|
|
4556
4556
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeContext.Provider, {
|
|
4557
|
-
value:
|
|
4557
|
+
value: theme,
|
|
4558
4558
|
children
|
|
4559
4559
|
});
|
|
4560
4560
|
}
|
|
@@ -4615,19 +4615,19 @@ process.env.NODE_ENV !== "production" ? DefaultPropsProvider.propTypes = {
|
|
|
4615
4615
|
} : void 0;
|
|
4616
4616
|
function getThemeProps(params) {
|
|
4617
4617
|
const {
|
|
4618
|
-
theme
|
|
4618
|
+
theme,
|
|
4619
4619
|
name,
|
|
4620
4620
|
props
|
|
4621
4621
|
} = params;
|
|
4622
|
-
if (!
|
|
4622
|
+
if (!theme || !theme.components || !theme.components[name]) {
|
|
4623
4623
|
return props;
|
|
4624
4624
|
}
|
|
4625
|
-
const config2 =
|
|
4625
|
+
const config2 = theme.components[name];
|
|
4626
4626
|
if (config2.defaultProps) {
|
|
4627
|
-
return resolveProps(config2.defaultProps, props,
|
|
4627
|
+
return resolveProps(config2.defaultProps, props, theme.components.mergeClassNameAndStyle);
|
|
4628
4628
|
}
|
|
4629
4629
|
if (!config2.styleOverrides && !config2.variants) {
|
|
4630
|
-
return resolveProps(config2, props,
|
|
4630
|
+
return resolveProps(config2, props, theme.components.mergeClassNameAndStyle);
|
|
4631
4631
|
}
|
|
4632
4632
|
return props;
|
|
4633
4633
|
}
|
|
@@ -4667,12 +4667,12 @@ function useId(idOverride) {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
return useGlobalId(idOverride);
|
|
4669
4669
|
}
|
|
4670
|
-
function useLayerOrder(
|
|
4670
|
+
function useLayerOrder(theme) {
|
|
4671
4671
|
const upperTheme = useTheme$3();
|
|
4672
4672
|
const id = useId() || "";
|
|
4673
4673
|
const {
|
|
4674
4674
|
modularCssLayers
|
|
4675
|
-
} =
|
|
4675
|
+
} = theme;
|
|
4676
4676
|
let layerOrder = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
4677
4677
|
if (!modularCssLayers || upperTheme !== null) {
|
|
4678
4678
|
layerOrder = "";
|
|
@@ -4826,7 +4826,7 @@ function InitColorSchemeScript(options) {
|
|
|
4826
4826
|
setter += `${colorSchemeNode}.classList.remove('${selector}'.replace('%s', light), '${selector}'.replace('%s', dark));
|
|
4827
4827
|
${colorSchemeNode}.classList.add('${selector}'.replace('%s', colorScheme));`;
|
|
4828
4828
|
}
|
|
4829
|
-
const matches = attribute.match(/\[([
|
|
4829
|
+
const matches = attribute.match(/\[([^\]]+)\]/);
|
|
4830
4830
|
if (matches) {
|
|
4831
4831
|
const [attr, value] = matches[1].split("=");
|
|
4832
4832
|
if (!value) {
|
|
@@ -5243,32 +5243,32 @@ function createCssVarsProvider(options) {
|
|
|
5243
5243
|
}
|
|
5244
5244
|
const memoTheme2 = React.useMemo(() => {
|
|
5245
5245
|
const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;
|
|
5246
|
-
const
|
|
5246
|
+
const theme = {
|
|
5247
5247
|
...restThemeProp,
|
|
5248
5248
|
components,
|
|
5249
5249
|
colorSchemes,
|
|
5250
5250
|
cssVarPrefix,
|
|
5251
5251
|
vars: themeVars
|
|
5252
5252
|
};
|
|
5253
|
-
if (typeof
|
|
5254
|
-
|
|
5253
|
+
if (typeof theme.generateSpacing === "function") {
|
|
5254
|
+
theme.spacing = theme.generateSpacing();
|
|
5255
5255
|
}
|
|
5256
5256
|
if (calculatedColorScheme) {
|
|
5257
5257
|
const scheme = colorSchemes[calculatedColorScheme];
|
|
5258
5258
|
if (scheme && typeof scheme === "object") {
|
|
5259
5259
|
Object.keys(scheme).forEach((schemeKey) => {
|
|
5260
5260
|
if (scheme[schemeKey] && typeof scheme[schemeKey] === "object") {
|
|
5261
|
-
|
|
5262
|
-
...
|
|
5261
|
+
theme[schemeKey] = {
|
|
5262
|
+
...theme[schemeKey],
|
|
5263
5263
|
...scheme[schemeKey]
|
|
5264
5264
|
};
|
|
5265
5265
|
} else {
|
|
5266
|
-
|
|
5266
|
+
theme[schemeKey] = scheme[schemeKey];
|
|
5267
5267
|
}
|
|
5268
5268
|
});
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
5271
|
-
return resolveTheme ? resolveTheme(
|
|
5271
|
+
return resolveTheme ? resolveTheme(theme) : theme;
|
|
5272
5272
|
}, [restThemeProp, calculatedColorScheme, components, colorSchemes, cssVarPrefix]);
|
|
5273
5273
|
const colorSchemeSelector = restThemeProp.colorSchemeSelector;
|
|
5274
5274
|
useEnhancedEffect(() => {
|
|
@@ -5406,7 +5406,7 @@ function createCssVarsProvider(options) {
|
|
|
5406
5406
|
modeStorageKey: PropTypes.string,
|
|
5407
5407
|
/**
|
|
5408
5408
|
* If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.
|
|
5409
|
-
* You should use this option in
|
|
5409
|
+
* You should use this option in conjuction with `InitColorSchemeScript` component.
|
|
5410
5410
|
*/
|
|
5411
5411
|
noSsr: PropTypes.bool,
|
|
5412
5412
|
/**
|
|
@@ -5501,7 +5501,7 @@ const getCssValue = (keys, value) => {
|
|
|
5501
5501
|
}
|
|
5502
5502
|
return value;
|
|
5503
5503
|
};
|
|
5504
|
-
function cssVarsParser(
|
|
5504
|
+
function cssVarsParser(theme, options) {
|
|
5505
5505
|
const {
|
|
5506
5506
|
prefix,
|
|
5507
5507
|
shouldSkipGeneratingVar: shouldSkipGeneratingVar2
|
|
@@ -5510,7 +5510,7 @@ function cssVarsParser(theme2, options) {
|
|
|
5510
5510
|
const vars = {};
|
|
5511
5511
|
const varsWithDefaults = {};
|
|
5512
5512
|
walkObjectDeep(
|
|
5513
|
-
|
|
5513
|
+
theme,
|
|
5514
5514
|
(keys, value, arrayKeys) => {
|
|
5515
5515
|
if (typeof value === "string" || typeof value === "number") {
|
|
5516
5516
|
if (!shouldSkipGeneratingVar2 || !shouldSkipGeneratingVar2(keys, value)) {
|
|
@@ -5533,7 +5533,7 @@ function cssVarsParser(theme2, options) {
|
|
|
5533
5533
|
varsWithDefaults
|
|
5534
5534
|
};
|
|
5535
5535
|
}
|
|
5536
|
-
function prepareCssVars(
|
|
5536
|
+
function prepareCssVars(theme, parserConfig = {}) {
|
|
5537
5537
|
const {
|
|
5538
5538
|
getSelector = defaultGetSelector2,
|
|
5539
5539
|
disableCssColorScheme,
|
|
@@ -5545,7 +5545,7 @@ function prepareCssVars(theme2, parserConfig = {}) {
|
|
|
5545
5545
|
components,
|
|
5546
5546
|
defaultColorScheme = "light",
|
|
5547
5547
|
...otherTheme
|
|
5548
|
-
} =
|
|
5548
|
+
} = theme;
|
|
5549
5549
|
const {
|
|
5550
5550
|
vars: rootVars,
|
|
5551
5551
|
css: rootCss,
|
|
@@ -5594,7 +5594,7 @@ function prepareCssVars(theme2, parserConfig = {}) {
|
|
|
5594
5594
|
}
|
|
5595
5595
|
if (colorScheme) {
|
|
5596
5596
|
if (rule === "media") {
|
|
5597
|
-
if (
|
|
5597
|
+
if (theme.defaultColorScheme === colorScheme) {
|
|
5598
5598
|
return ":root";
|
|
5599
5599
|
}
|
|
5600
5600
|
const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
|
|
@@ -5605,7 +5605,7 @@ function prepareCssVars(theme2, parserConfig = {}) {
|
|
|
5605
5605
|
};
|
|
5606
5606
|
}
|
|
5607
5607
|
if (rule) {
|
|
5608
|
-
if (
|
|
5608
|
+
if (theme.defaultColorScheme === colorScheme) {
|
|
5609
5609
|
return `:root, ${rule.replace("%s", String(colorScheme))}`;
|
|
5610
5610
|
}
|
|
5611
5611
|
return rule.replace("%s", String(colorScheme));
|
|
@@ -5626,7 +5626,7 @@ function prepareCssVars(theme2, parserConfig = {}) {
|
|
|
5626
5626
|
};
|
|
5627
5627
|
const generateStyleSheets = () => {
|
|
5628
5628
|
const stylesheets = [];
|
|
5629
|
-
const colorScheme =
|
|
5629
|
+
const colorScheme = theme.defaultColorScheme || "light";
|
|
5630
5630
|
function insertStyleSheet(key, css2) {
|
|
5631
5631
|
if (Object.keys(css2).length) {
|
|
5632
5632
|
stylesheets.push(typeof key === "string" ? {
|
|
@@ -5775,7 +5775,7 @@ function createContainer(options = {}) {
|
|
|
5775
5775
|
componentName = "MuiContainer"
|
|
5776
5776
|
} = options;
|
|
5777
5777
|
const ContainerRoot = createStyledComponent(({
|
|
5778
|
-
theme
|
|
5778
|
+
theme,
|
|
5779
5779
|
ownerState
|
|
5780
5780
|
}) => ({
|
|
5781
5781
|
width: "100%",
|
|
@@ -5783,44 +5783,44 @@ function createContainer(options = {}) {
|
|
|
5783
5783
|
boxSizing: "border-box",
|
|
5784
5784
|
marginRight: "auto",
|
|
5785
5785
|
...!ownerState.disableGutters && {
|
|
5786
|
-
paddingLeft:
|
|
5787
|
-
paddingRight:
|
|
5786
|
+
paddingLeft: theme.spacing(2),
|
|
5787
|
+
paddingRight: theme.spacing(2),
|
|
5788
5788
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5789
|
-
[
|
|
5790
|
-
paddingLeft:
|
|
5791
|
-
paddingRight:
|
|
5789
|
+
[theme.breakpoints.up("sm")]: {
|
|
5790
|
+
paddingLeft: theme.spacing(3),
|
|
5791
|
+
paddingRight: theme.spacing(3)
|
|
5792
5792
|
}
|
|
5793
5793
|
}
|
|
5794
5794
|
}), ({
|
|
5795
|
-
theme
|
|
5795
|
+
theme,
|
|
5796
5796
|
ownerState
|
|
5797
|
-
}) => ownerState.fixed && Object.keys(
|
|
5797
|
+
}) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => {
|
|
5798
5798
|
const breakpoint = breakpointValueKey;
|
|
5799
|
-
const value =
|
|
5799
|
+
const value = theme.breakpoints.values[breakpoint];
|
|
5800
5800
|
if (value !== 0) {
|
|
5801
|
-
acc[
|
|
5802
|
-
maxWidth: `${value}${
|
|
5801
|
+
acc[theme.breakpoints.up(breakpoint)] = {
|
|
5802
|
+
maxWidth: `${value}${theme.breakpoints.unit}`
|
|
5803
5803
|
};
|
|
5804
5804
|
}
|
|
5805
5805
|
return acc;
|
|
5806
5806
|
}, {}), ({
|
|
5807
|
-
theme
|
|
5807
|
+
theme,
|
|
5808
5808
|
ownerState
|
|
5809
5809
|
}) => ({
|
|
5810
5810
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5811
5811
|
...ownerState.maxWidth === "xs" && {
|
|
5812
5812
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5813
|
-
[
|
|
5813
|
+
[theme.breakpoints.up("xs")]: {
|
|
5814
5814
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5815
|
-
maxWidth: Math.max(
|
|
5815
|
+
maxWidth: Math.max(theme.breakpoints.values.xs, 444)
|
|
5816
5816
|
}
|
|
5817
5817
|
},
|
|
5818
5818
|
...ownerState.maxWidth && // @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5819
5819
|
ownerState.maxWidth !== "xs" && {
|
|
5820
5820
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5821
|
-
[
|
|
5821
|
+
[theme.breakpoints.up(ownerState.maxWidth)]: {
|
|
5822
5822
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
5823
|
-
maxWidth: `${
|
|
5823
|
+
maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
5826
|
}));
|
|
@@ -5868,7 +5868,7 @@ function createContainer(options = {}) {
|
|
|
5868
5868
|
}
|
|
5869
5869
|
function isMuiElement(element, muiNames) {
|
|
5870
5870
|
return /* @__PURE__ */ React.isValidElement(element) && muiNames.indexOf(
|
|
5871
|
-
// For server components `muiName` is
|
|
5871
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
5872
5872
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
5873
5873
|
// eslint-disable-next-line no-underscore-dangle
|
|
5874
5874
|
element.type.muiName ?? element.type?._payload?.value?.muiName
|
|
@@ -5920,11 +5920,11 @@ function getParentSpacingVar(axis) {
|
|
|
5920
5920
|
const selfColumnsVar = "--Grid-columns";
|
|
5921
5921
|
const parentColumnsVar = "--Grid-parent-columns";
|
|
5922
5922
|
const generateGridSizeStyles = ({
|
|
5923
|
-
theme
|
|
5923
|
+
theme,
|
|
5924
5924
|
ownerState
|
|
5925
5925
|
}) => {
|
|
5926
5926
|
const styles2 = {};
|
|
5927
|
-
traverseBreakpoints(
|
|
5927
|
+
traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {
|
|
5928
5928
|
let style2 = {};
|
|
5929
5929
|
if (value === "grow") {
|
|
5930
5930
|
style2 = {
|
|
@@ -5954,11 +5954,11 @@ const generateGridSizeStyles = ({
|
|
|
5954
5954
|
return styles2;
|
|
5955
5955
|
};
|
|
5956
5956
|
const generateGridOffsetStyles = ({
|
|
5957
|
-
theme
|
|
5957
|
+
theme,
|
|
5958
5958
|
ownerState
|
|
5959
5959
|
}) => {
|
|
5960
5960
|
const styles2 = {};
|
|
5961
|
-
traverseBreakpoints(
|
|
5961
|
+
traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {
|
|
5962
5962
|
let style2 = {};
|
|
5963
5963
|
if (value === "auto") {
|
|
5964
5964
|
style2 = {
|
|
@@ -5975,7 +5975,7 @@ const generateGridOffsetStyles = ({
|
|
|
5975
5975
|
return styles2;
|
|
5976
5976
|
};
|
|
5977
5977
|
const generateGridColumnsStyles = ({
|
|
5978
|
-
theme
|
|
5978
|
+
theme,
|
|
5979
5979
|
ownerState
|
|
5980
5980
|
}) => {
|
|
5981
5981
|
if (!ownerState.container) {
|
|
@@ -5984,7 +5984,7 @@ const generateGridColumnsStyles = ({
|
|
|
5984
5984
|
const styles2 = {
|
|
5985
5985
|
[selfColumnsVar]: 12
|
|
5986
5986
|
};
|
|
5987
|
-
traverseBreakpoints(
|
|
5987
|
+
traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {
|
|
5988
5988
|
const columns = value ?? 12;
|
|
5989
5989
|
appendStyle(styles2, {
|
|
5990
5990
|
[selfColumnsVar]: columns,
|
|
@@ -5996,15 +5996,15 @@ const generateGridColumnsStyles = ({
|
|
|
5996
5996
|
return styles2;
|
|
5997
5997
|
};
|
|
5998
5998
|
const generateGridRowSpacingStyles = ({
|
|
5999
|
-
theme
|
|
5999
|
+
theme,
|
|
6000
6000
|
ownerState
|
|
6001
6001
|
}) => {
|
|
6002
6002
|
if (!ownerState.container) {
|
|
6003
6003
|
return {};
|
|
6004
6004
|
}
|
|
6005
6005
|
const styles2 = {};
|
|
6006
|
-
traverseBreakpoints(
|
|
6007
|
-
const spacing = typeof value === "string" ? value :
|
|
6006
|
+
traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
|
|
6007
|
+
const spacing = typeof value === "string" ? value : theme.spacing?.(value);
|
|
6008
6008
|
appendStyle(styles2, {
|
|
6009
6009
|
[getSelfSpacingVar("row")]: spacing,
|
|
6010
6010
|
"> *": {
|
|
@@ -6015,15 +6015,15 @@ const generateGridRowSpacingStyles = ({
|
|
|
6015
6015
|
return styles2;
|
|
6016
6016
|
};
|
|
6017
6017
|
const generateGridColumnSpacingStyles = ({
|
|
6018
|
-
theme
|
|
6018
|
+
theme,
|
|
6019
6019
|
ownerState
|
|
6020
6020
|
}) => {
|
|
6021
6021
|
if (!ownerState.container) {
|
|
6022
6022
|
return {};
|
|
6023
6023
|
}
|
|
6024
6024
|
const styles2 = {};
|
|
6025
|
-
traverseBreakpoints(
|
|
6026
|
-
const spacing = typeof value === "string" ? value :
|
|
6025
|
+
traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
|
|
6026
|
+
const spacing = typeof value === "string" ? value : theme.spacing?.(value);
|
|
6027
6027
|
appendStyle(styles2, {
|
|
6028
6028
|
[getSelfSpacingVar("column")]: spacing,
|
|
6029
6029
|
"> *": {
|
|
@@ -6034,14 +6034,14 @@ const generateGridColumnSpacingStyles = ({
|
|
|
6034
6034
|
return styles2;
|
|
6035
6035
|
};
|
|
6036
6036
|
const generateGridDirectionStyles = ({
|
|
6037
|
-
theme
|
|
6037
|
+
theme,
|
|
6038
6038
|
ownerState
|
|
6039
6039
|
}) => {
|
|
6040
6040
|
if (!ownerState.container) {
|
|
6041
6041
|
return {};
|
|
6042
6042
|
}
|
|
6043
6043
|
const styles2 = {};
|
|
6044
|
-
traverseBreakpoints(
|
|
6044
|
+
traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {
|
|
6045
6045
|
appendStyle(styles2, {
|
|
6046
6046
|
flexDirection: value
|
|
6047
6047
|
});
|
|
@@ -6156,7 +6156,7 @@ function createGrid(options = {}) {
|
|
|
6156
6156
|
useTheme: useTheme2 = useTheme$2,
|
|
6157
6157
|
componentName = "MuiGrid"
|
|
6158
6158
|
} = options;
|
|
6159
|
-
const useUtilityClasses2 = (ownerState,
|
|
6159
|
+
const useUtilityClasses2 = (ownerState, theme) => {
|
|
6160
6160
|
const {
|
|
6161
6161
|
container,
|
|
6162
6162
|
direction,
|
|
@@ -6165,7 +6165,7 @@ function createGrid(options = {}) {
|
|
|
6165
6165
|
size
|
|
6166
6166
|
} = ownerState;
|
|
6167
6167
|
const slots = {
|
|
6168
|
-
root: ["root", container && "container", wrap !== "wrap" && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...container ? generateSpacingClassNames(spacing,
|
|
6168
|
+
root: ["root", container && "container", wrap !== "wrap" && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : []]
|
|
6169
6169
|
};
|
|
6170
6170
|
return composeClasses(slots, (slot) => generateUtilityClass(componentName, slot), {});
|
|
6171
6171
|
};
|
|
@@ -6194,10 +6194,10 @@ function createGrid(options = {}) {
|
|
|
6194
6194
|
}
|
|
6195
6195
|
const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
|
|
6196
6196
|
const Grid2 = /* @__PURE__ */ React.forwardRef(function Grid3(inProps, ref) {
|
|
6197
|
-
const
|
|
6197
|
+
const theme = useTheme2();
|
|
6198
6198
|
const themeProps = useThemeProps2(inProps);
|
|
6199
6199
|
const props = extendSxProp$1(themeProps);
|
|
6200
|
-
deleteLegacyGridProps(props,
|
|
6200
|
+
deleteLegacyGridProps(props, theme.breakpoints);
|
|
6201
6201
|
const {
|
|
6202
6202
|
className,
|
|
6203
6203
|
children,
|
|
@@ -6214,8 +6214,8 @@ function createGrid(options = {}) {
|
|
|
6214
6214
|
unstable_level: level = 0,
|
|
6215
6215
|
...other
|
|
6216
6216
|
} = props;
|
|
6217
|
-
const size = parseResponsiveProp(sizeProp,
|
|
6218
|
-
const offset = parseResponsiveProp(offsetProp,
|
|
6217
|
+
const size = parseResponsiveProp(sizeProp, theme.breakpoints, (val) => val !== false);
|
|
6218
|
+
const offset = parseResponsiveProp(offsetProp, theme.breakpoints);
|
|
6219
6219
|
const columns = inProps.columns ?? (level ? void 0 : columnsProp);
|
|
6220
6220
|
const spacing = inProps.spacing ?? (level ? void 0 : spacingProp);
|
|
6221
6221
|
const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? void 0 : rowSpacingProp);
|
|
@@ -6233,7 +6233,7 @@ function createGrid(options = {}) {
|
|
|
6233
6233
|
size,
|
|
6234
6234
|
offset
|
|
6235
6235
|
};
|
|
6236
|
-
const classes = useUtilityClasses2(ownerState,
|
|
6236
|
+
const classes = useUtilityClasses2(ownerState, theme);
|
|
6237
6237
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GridRoot, {
|
|
6238
6238
|
ref,
|
|
6239
6239
|
as: component,
|
|
@@ -6302,23 +6302,23 @@ const getSideFromDirection = (direction) => {
|
|
|
6302
6302
|
};
|
|
6303
6303
|
const style = ({
|
|
6304
6304
|
ownerState,
|
|
6305
|
-
theme
|
|
6305
|
+
theme
|
|
6306
6306
|
}) => {
|
|
6307
6307
|
let styles2 = {
|
|
6308
6308
|
display: "flex",
|
|
6309
6309
|
flexDirection: "column",
|
|
6310
6310
|
...handleBreakpoints({
|
|
6311
|
-
theme
|
|
6311
|
+
theme
|
|
6312
6312
|
}, resolveBreakpointValues({
|
|
6313
6313
|
values: ownerState.direction,
|
|
6314
|
-
breakpoints:
|
|
6314
|
+
breakpoints: theme.breakpoints.values
|
|
6315
6315
|
}), (propValue) => ({
|
|
6316
6316
|
flexDirection: propValue
|
|
6317
6317
|
}))
|
|
6318
6318
|
};
|
|
6319
6319
|
if (ownerState.spacing) {
|
|
6320
|
-
const transformer = createUnarySpacing(
|
|
6321
|
-
const base = Object.keys(
|
|
6320
|
+
const transformer = createUnarySpacing(theme);
|
|
6321
|
+
const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
|
6322
6322
|
if (typeof ownerState.spacing === "object" && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === "object" && ownerState.direction[breakpoint] != null) {
|
|
6323
6323
|
acc[breakpoint] = true;
|
|
6324
6324
|
}
|
|
@@ -6359,10 +6359,10 @@ const style = ({
|
|
|
6359
6359
|
};
|
|
6360
6360
|
};
|
|
6361
6361
|
styles2 = deepmerge(styles2, handleBreakpoints({
|
|
6362
|
-
theme
|
|
6362
|
+
theme
|
|
6363
6363
|
}, spacingValues, styleFromPropValue));
|
|
6364
6364
|
}
|
|
6365
|
-
styles2 = mergeBreakpointsInOrder(
|
|
6365
|
+
styles2 = mergeBreakpointsInOrder(theme.breakpoints, styles2);
|
|
6366
6366
|
return styles2;
|
|
6367
6367
|
};
|
|
6368
6368
|
function createStack(options = {}) {
|
|
@@ -7071,10 +7071,10 @@ const parseAddition = (str) => {
|
|
|
7071
7071
|
}
|
|
7072
7072
|
return sum;
|
|
7073
7073
|
};
|
|
7074
|
-
function attachColorManipulators(
|
|
7075
|
-
Object.assign(
|
|
7074
|
+
function attachColorManipulators(theme) {
|
|
7075
|
+
Object.assign(theme, {
|
|
7076
7076
|
alpha(color2, coefficient) {
|
|
7077
|
-
const obj = this ||
|
|
7077
|
+
const obj = this || theme;
|
|
7078
7078
|
if (obj.colorSpace) {
|
|
7079
7079
|
return `oklch(from ${color2} l c h / ${typeof coefficient === "string" ? `calc(${coefficient})` : coefficient})`;
|
|
7080
7080
|
}
|
|
@@ -7084,14 +7084,14 @@ function attachColorManipulators(theme2) {
|
|
|
7084
7084
|
return alpha(color2, parseAddition(coefficient));
|
|
7085
7085
|
},
|
|
7086
7086
|
lighten(color2, coefficient) {
|
|
7087
|
-
const obj = this ||
|
|
7087
|
+
const obj = this || theme;
|
|
7088
7088
|
if (obj.colorSpace) {
|
|
7089
7089
|
return `color-mix(in ${obj.colorSpace}, ${color2}, #fff ${coefficientToPercentage(coefficient)})`;
|
|
7090
7090
|
}
|
|
7091
7091
|
return lighten(color2, coefficient);
|
|
7092
7092
|
},
|
|
7093
7093
|
darken(color2, coefficient) {
|
|
7094
|
-
const obj = this ||
|
|
7094
|
+
const obj = this || theme;
|
|
7095
7095
|
if (obj.colorSpace) {
|
|
7096
7096
|
return `color-mix(in ${obj.colorSpace}, ${color2}, #000 ${coefficientToPercentage(coefficient)})`;
|
|
7097
7097
|
}
|
|
@@ -7231,9 +7231,9 @@ function shouldSkipGeneratingVar(keys) {
|
|
|
7231
7231
|
keys[0] === "palette" && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
7232
7232
|
}
|
|
7233
7233
|
const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
|
|
7234
|
-
const defaultGetSelector = (
|
|
7235
|
-
const root =
|
|
7236
|
-
const selector =
|
|
7234
|
+
const defaultGetSelector = (theme) => (colorScheme, css2) => {
|
|
7235
|
+
const root = theme.rootSelector || ":root";
|
|
7236
|
+
const selector = theme.colorSchemeSelector;
|
|
7237
7237
|
let rule = selector;
|
|
7238
7238
|
if (selector === "class") {
|
|
7239
7239
|
rule = ".%s";
|
|
@@ -7244,10 +7244,10 @@ const defaultGetSelector = (theme2) => (colorScheme, css2) => {
|
|
|
7244
7244
|
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
7245
7245
|
rule = `[${selector}="%s"]`;
|
|
7246
7246
|
}
|
|
7247
|
-
if (
|
|
7247
|
+
if (theme.defaultColorScheme === colorScheme) {
|
|
7248
7248
|
if (colorScheme === "dark") {
|
|
7249
7249
|
const excludedVariables = {};
|
|
7250
|
-
excludeVariablesFromRoot(
|
|
7250
|
+
excludeVariablesFromRoot(theme.cssVarPrefix).forEach((cssVar) => {
|
|
7251
7251
|
excludedVariables[cssVar] = css2[cssVar];
|
|
7252
7252
|
delete css2[cssVar];
|
|
7253
7253
|
});
|
|
@@ -7413,7 +7413,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
7413
7413
|
if (builtInDark && !colorSchemes.dark) {
|
|
7414
7414
|
attachColorScheme$1(colorSpace, colorSchemes, builtInDark, void 0, "dark");
|
|
7415
7415
|
}
|
|
7416
|
-
let
|
|
7416
|
+
let theme = {
|
|
7417
7417
|
defaultColorScheme,
|
|
7418
7418
|
...muiTheme,
|
|
7419
7419
|
cssVarPrefix,
|
|
@@ -7427,8 +7427,8 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
7427
7427
|
},
|
|
7428
7428
|
spacing: getSpacingVal(input.spacing)
|
|
7429
7429
|
};
|
|
7430
|
-
Object.keys(
|
|
7431
|
-
const palette =
|
|
7430
|
+
Object.keys(theme.colorSchemes).forEach((key) => {
|
|
7431
|
+
const palette = theme.colorSchemes[key].palette;
|
|
7432
7432
|
const setCssVarColor = (cssVar) => {
|
|
7433
7433
|
const tokens = cssVar.split("-");
|
|
7434
7434
|
const color2 = tokens[1];
|
|
@@ -7619,50 +7619,50 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
});
|
|
7621
7621
|
});
|
|
7622
|
-
|
|
7622
|
+
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
7623
7623
|
const parserConfig = {
|
|
7624
7624
|
prefix: cssVarPrefix,
|
|
7625
7625
|
disableCssColorScheme,
|
|
7626
7626
|
shouldSkipGeneratingVar: shouldSkipGeneratingVar$1,
|
|
7627
|
-
getSelector: defaultGetSelector(
|
|
7627
|
+
getSelector: defaultGetSelector(theme),
|
|
7628
7628
|
enableContrastVars: nativeColor
|
|
7629
7629
|
};
|
|
7630
7630
|
const {
|
|
7631
7631
|
vars,
|
|
7632
7632
|
generateThemeVars,
|
|
7633
7633
|
generateStyleSheets
|
|
7634
|
-
} = prepareCssVars(
|
|
7635
|
-
|
|
7636
|
-
Object.entries(
|
|
7637
|
-
|
|
7634
|
+
} = prepareCssVars(theme, parserConfig);
|
|
7635
|
+
theme.vars = vars;
|
|
7636
|
+
Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {
|
|
7637
|
+
theme[key] = value;
|
|
7638
7638
|
});
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7639
|
+
theme.generateThemeVars = generateThemeVars;
|
|
7640
|
+
theme.generateStyleSheets = generateStyleSheets;
|
|
7641
|
+
theme.generateSpacing = function generateSpacing() {
|
|
7642
7642
|
return createSpacing(input.spacing, createUnarySpacing(this));
|
|
7643
7643
|
};
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7644
|
+
theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);
|
|
7645
|
+
theme.spacing = theme.generateSpacing();
|
|
7646
|
+
theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
|
|
7647
|
+
theme.unstable_sxConfig = {
|
|
7648
7648
|
...defaultSxConfig,
|
|
7649
7649
|
...input?.unstable_sxConfig
|
|
7650
7650
|
};
|
|
7651
|
-
|
|
7651
|
+
theme.unstable_sx = function sx(props) {
|
|
7652
7652
|
return styleFunctionSx({
|
|
7653
7653
|
sx: props,
|
|
7654
7654
|
theme: this
|
|
7655
7655
|
});
|
|
7656
7656
|
};
|
|
7657
|
-
|
|
7658
|
-
return
|
|
7657
|
+
theme.toRuntimeSource = stringifyTheme;
|
|
7658
|
+
return theme;
|
|
7659
7659
|
}
|
|
7660
|
-
function attachColorScheme(
|
|
7661
|
-
if (!
|
|
7660
|
+
function attachColorScheme(theme, scheme, colorScheme) {
|
|
7661
|
+
if (!theme.colorSchemes) {
|
|
7662
7662
|
return void 0;
|
|
7663
7663
|
}
|
|
7664
7664
|
if (colorScheme) {
|
|
7665
|
-
|
|
7665
|
+
theme.colorSchemes[scheme] = {
|
|
7666
7666
|
...colorScheme !== true && colorScheme,
|
|
7667
7667
|
palette: createPalette({
|
|
7668
7668
|
...colorScheme === true ? {} : colorScheme.palette,
|
|
@@ -7709,27 +7709,27 @@ function createTheme(options = {}, ...args) {
|
|
|
7709
7709
|
}
|
|
7710
7710
|
}
|
|
7711
7711
|
}
|
|
7712
|
-
const
|
|
7712
|
+
const theme = createThemeNoVars({
|
|
7713
7713
|
...options,
|
|
7714
7714
|
palette: paletteOptions
|
|
7715
7715
|
}, ...args);
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
if (
|
|
7719
|
-
|
|
7716
|
+
theme.defaultColorScheme = defaultColorSchemeInput;
|
|
7717
|
+
theme.colorSchemes = colorSchemesInput;
|
|
7718
|
+
if (theme.palette.mode === "light") {
|
|
7719
|
+
theme.colorSchemes.light = {
|
|
7720
7720
|
...colorSchemesInput.light !== true && colorSchemesInput.light,
|
|
7721
|
-
palette:
|
|
7721
|
+
palette: theme.palette
|
|
7722
7722
|
};
|
|
7723
|
-
attachColorScheme(
|
|
7723
|
+
attachColorScheme(theme, "dark", colorSchemesInput.dark);
|
|
7724
7724
|
}
|
|
7725
|
-
if (
|
|
7726
|
-
|
|
7725
|
+
if (theme.palette.mode === "dark") {
|
|
7726
|
+
theme.colorSchemes.dark = {
|
|
7727
7727
|
...colorSchemesInput.dark !== true && colorSchemesInput.dark,
|
|
7728
|
-
palette:
|
|
7728
|
+
palette: theme.palette
|
|
7729
7729
|
};
|
|
7730
|
-
attachColorScheme(
|
|
7730
|
+
attachColorScheme(theme, "light", colorSchemesInput.light);
|
|
7731
7731
|
}
|
|
7732
|
-
return
|
|
7732
|
+
return theme;
|
|
7733
7733
|
}
|
|
7734
7734
|
if (!palette && !("light" in colorSchemesInput) && defaultColorSchemeInput === "light") {
|
|
7735
7735
|
colorSchemesInput.light = true;
|
|
@@ -7743,11 +7743,11 @@ function createTheme(options = {}, ...args) {
|
|
|
7743
7743
|
}
|
|
7744
7744
|
const defaultTheme$1 = createTheme();
|
|
7745
7745
|
function useTheme() {
|
|
7746
|
-
const
|
|
7746
|
+
const theme = useTheme$2(defaultTheme$1);
|
|
7747
7747
|
if (process.env.NODE_ENV !== "production") {
|
|
7748
|
-
React.useDebugValue(
|
|
7748
|
+
React.useDebugValue(theme);
|
|
7749
7749
|
}
|
|
7750
|
-
return
|
|
7750
|
+
return theme[THEME_ID] || theme;
|
|
7751
7751
|
}
|
|
7752
7752
|
function slotShouldForwardProp(prop) {
|
|
7753
7753
|
return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
|
|
@@ -7836,10 +7836,10 @@ const {
|
|
|
7836
7836
|
light: defaultConfig.defaultLightColorScheme,
|
|
7837
7837
|
dark: defaultConfig.defaultDarkColorScheme
|
|
7838
7838
|
},
|
|
7839
|
-
resolveTheme: (
|
|
7839
|
+
resolveTheme: (theme) => {
|
|
7840
7840
|
const newTheme = {
|
|
7841
|
-
...
|
|
7842
|
-
typography: createTypography(
|
|
7841
|
+
...theme,
|
|
7842
|
+
typography: createTypography(theme.palette, theme.typography)
|
|
7843
7843
|
};
|
|
7844
7844
|
newTheme.unstable_sx = function sx(props) {
|
|
7845
7845
|
return styleFunctionSx({
|
|
@@ -7852,25 +7852,25 @@ const {
|
|
|
7852
7852
|
});
|
|
7853
7853
|
const CssVarsProvider = InternalCssVarsProvider;
|
|
7854
7854
|
function ThemeProvider({
|
|
7855
|
-
theme
|
|
7855
|
+
theme,
|
|
7856
7856
|
...props
|
|
7857
7857
|
}) {
|
|
7858
7858
|
const noVarsTheme = React.useMemo(() => {
|
|
7859
|
-
if (typeof
|
|
7860
|
-
return
|
|
7859
|
+
if (typeof theme === "function") {
|
|
7860
|
+
return theme;
|
|
7861
7861
|
}
|
|
7862
|
-
const muiTheme = THEME_ID in
|
|
7862
|
+
const muiTheme = THEME_ID in theme ? theme[THEME_ID] : theme;
|
|
7863
7863
|
if (!("colorSchemes" in muiTheme)) {
|
|
7864
7864
|
if (!("vars" in muiTheme)) {
|
|
7865
7865
|
return {
|
|
7866
|
-
...
|
|
7866
|
+
...theme,
|
|
7867
7867
|
vars: null
|
|
7868
7868
|
};
|
|
7869
7869
|
}
|
|
7870
|
-
return
|
|
7870
|
+
return theme;
|
|
7871
7871
|
}
|
|
7872
7872
|
return null;
|
|
7873
|
-
}, [
|
|
7873
|
+
}, [theme]);
|
|
7874
7874
|
if (noVarsTheme) {
|
|
7875
7875
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProviderNoVars, {
|
|
7876
7876
|
theme: noVarsTheme,
|
|
@@ -7878,7 +7878,7 @@ function ThemeProvider({
|
|
|
7878
7878
|
});
|
|
7879
7879
|
}
|
|
7880
7880
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CssVarsProvider, {
|
|
7881
|
-
theme
|
|
7881
|
+
theme,
|
|
7882
7882
|
...props
|
|
7883
7883
|
});
|
|
7884
7884
|
}
|
|
@@ -7939,8 +7939,8 @@ function globalCss(styles2) {
|
|
|
7939
7939
|
return (
|
|
7940
7940
|
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
7941
7941
|
/* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStyles, {
|
|
7942
|
-
styles: typeof styles2 === "function" ? (
|
|
7943
|
-
theme
|
|
7942
|
+
styles: typeof styles2 === "function" ? (theme) => styles2({
|
|
7943
|
+
theme,
|
|
7944
7944
|
...props
|
|
7945
7945
|
}) : styles2
|
|
7946
7946
|
})
|
|
@@ -8038,24 +8038,24 @@ const PaperRoot = styled("div", {
|
|
|
8038
8038
|
return [styles2.root, styles2[ownerState.variant], !ownerState.square && styles2.rounded, ownerState.variant === "elevation" && styles2[`elevation${ownerState.elevation}`]];
|
|
8039
8039
|
}
|
|
8040
8040
|
})(memoTheme(({
|
|
8041
|
-
theme
|
|
8041
|
+
theme
|
|
8042
8042
|
}) => ({
|
|
8043
|
-
backgroundColor: (
|
|
8044
|
-
color: (
|
|
8045
|
-
transition:
|
|
8043
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
8044
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
8045
|
+
transition: theme.transitions.create("box-shadow"),
|
|
8046
8046
|
variants: [{
|
|
8047
8047
|
props: ({
|
|
8048
8048
|
ownerState
|
|
8049
8049
|
}) => !ownerState.square,
|
|
8050
8050
|
style: {
|
|
8051
|
-
borderRadius:
|
|
8051
|
+
borderRadius: theme.shape.borderRadius
|
|
8052
8052
|
}
|
|
8053
8053
|
}, {
|
|
8054
8054
|
props: {
|
|
8055
8055
|
variant: "outlined"
|
|
8056
8056
|
},
|
|
8057
8057
|
style: {
|
|
8058
|
-
border: `1px solid ${(
|
|
8058
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
8059
8059
|
}
|
|
8060
8060
|
}, {
|
|
8061
8061
|
props: {
|
|
@@ -8072,7 +8072,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
8072
8072
|
props: inProps,
|
|
8073
8073
|
name: "MuiPaper"
|
|
8074
8074
|
});
|
|
8075
|
-
const
|
|
8075
|
+
const theme = useTheme();
|
|
8076
8076
|
const {
|
|
8077
8077
|
className,
|
|
8078
8078
|
component = "div",
|
|
@@ -8090,7 +8090,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
8090
8090
|
};
|
|
8091
8091
|
const classes = useUtilityClasses$v(ownerState);
|
|
8092
8092
|
if (process.env.NODE_ENV !== "production") {
|
|
8093
|
-
if (
|
|
8093
|
+
if (theme.shadows[elevation] === void 0) {
|
|
8094
8094
|
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"));
|
|
8095
8095
|
}
|
|
8096
8096
|
}
|
|
@@ -8102,11 +8102,11 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
8102
8102
|
...other,
|
|
8103
8103
|
style: {
|
|
8104
8104
|
...variant === "elevation" && {
|
|
8105
|
-
"--Paper-shadow": (
|
|
8106
|
-
...
|
|
8107
|
-
"--Paper-overlay":
|
|
8105
|
+
"--Paper-shadow": (theme.vars || theme).shadows[elevation],
|
|
8106
|
+
...theme.vars && {
|
|
8107
|
+
"--Paper-overlay": theme.vars.overlays?.[elevation]
|
|
8108
8108
|
},
|
|
8109
|
-
...!
|
|
8109
|
+
...!theme.vars && theme.palette.mode === "dark" && {
|
|
8110
8110
|
"--Paper-overlay": `linear-gradient(${alpha("#fff", getOverlayAlpha(elevation))}, ${alpha("#fff", getOverlayAlpha(elevation))})`
|
|
8111
8111
|
}
|
|
8112
8112
|
},
|
|
@@ -8406,14 +8406,14 @@ const DividerRoot = styled("div", {
|
|
|
8406
8406
|
return [styles2.root, ownerState.absolute && styles2.absolute, styles2[ownerState.variant], ownerState.light && styles2.light, ownerState.orientation === "vertical" && styles2.vertical, ownerState.flexItem && styles2.flexItem, ownerState.children && styles2.withChildren, ownerState.children && ownerState.orientation === "vertical" && styles2.withChildrenVertical, ownerState.textAlign === "right" && ownerState.orientation !== "vertical" && styles2.textAlignRight, ownerState.textAlign === "left" && ownerState.orientation !== "vertical" && styles2.textAlignLeft];
|
|
8407
8407
|
}
|
|
8408
8408
|
})(memoTheme(({
|
|
8409
|
-
theme
|
|
8409
|
+
theme
|
|
8410
8410
|
}) => ({
|
|
8411
8411
|
margin: 0,
|
|
8412
8412
|
// Reset browser default style.
|
|
8413
8413
|
flexShrink: 0,
|
|
8414
8414
|
borderWidth: 0,
|
|
8415
8415
|
borderStyle: "solid",
|
|
8416
|
-
borderColor: (
|
|
8416
|
+
borderColor: (theme.vars || theme).palette.divider,
|
|
8417
8417
|
borderBottomWidth: "thin",
|
|
8418
8418
|
variants: [{
|
|
8419
8419
|
props: {
|
|
@@ -8430,7 +8430,7 @@ const DividerRoot = styled("div", {
|
|
|
8430
8430
|
light: true
|
|
8431
8431
|
},
|
|
8432
8432
|
style: {
|
|
8433
|
-
borderColor:
|
|
8433
|
+
borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)
|
|
8434
8434
|
}
|
|
8435
8435
|
}, {
|
|
8436
8436
|
props: {
|
|
@@ -8445,8 +8445,8 @@ const DividerRoot = styled("div", {
|
|
|
8445
8445
|
orientation: "horizontal"
|
|
8446
8446
|
},
|
|
8447
8447
|
style: {
|
|
8448
|
-
marginLeft:
|
|
8449
|
-
marginRight:
|
|
8448
|
+
marginLeft: theme.spacing(2),
|
|
8449
|
+
marginRight: theme.spacing(2)
|
|
8450
8450
|
}
|
|
8451
8451
|
}, {
|
|
8452
8452
|
props: {
|
|
@@ -8454,8 +8454,8 @@ const DividerRoot = styled("div", {
|
|
|
8454
8454
|
orientation: "vertical"
|
|
8455
8455
|
},
|
|
8456
8456
|
style: {
|
|
8457
|
-
marginTop:
|
|
8458
|
-
marginBottom:
|
|
8457
|
+
marginTop: theme.spacing(1),
|
|
8458
|
+
marginBottom: theme.spacing(1)
|
|
8459
8459
|
}
|
|
8460
8460
|
}, {
|
|
8461
8461
|
props: {
|
|
@@ -8496,7 +8496,7 @@ const DividerRoot = styled("div", {
|
|
|
8496
8496
|
style: {
|
|
8497
8497
|
"&::before, &::after": {
|
|
8498
8498
|
width: "100%",
|
|
8499
|
-
borderTop: `thin solid ${(
|
|
8499
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
8500
8500
|
borderTopStyle: "inherit"
|
|
8501
8501
|
}
|
|
8502
8502
|
}
|
|
@@ -8508,7 +8508,7 @@ const DividerRoot = styled("div", {
|
|
|
8508
8508
|
flexDirection: "column",
|
|
8509
8509
|
"&::before, &::after": {
|
|
8510
8510
|
height: "100%",
|
|
8511
|
-
borderLeft: `thin solid ${(
|
|
8511
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
8512
8512
|
borderLeftStyle: "inherit"
|
|
8513
8513
|
}
|
|
8514
8514
|
}
|
|
@@ -8548,19 +8548,19 @@ const DividerWrapper = styled("span", {
|
|
|
8548
8548
|
return [styles2.wrapper, ownerState.orientation === "vertical" && styles2.wrapperVertical];
|
|
8549
8549
|
}
|
|
8550
8550
|
})(memoTheme(({
|
|
8551
|
-
theme
|
|
8551
|
+
theme
|
|
8552
8552
|
}) => ({
|
|
8553
8553
|
display: "inline-block",
|
|
8554
|
-
paddingLeft: `calc(${
|
|
8555
|
-
paddingRight: `calc(${
|
|
8554
|
+
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
|
8555
|
+
paddingRight: `calc(${theme.spacing(1)} * 1.2)`,
|
|
8556
8556
|
whiteSpace: "nowrap",
|
|
8557
8557
|
variants: [{
|
|
8558
8558
|
props: {
|
|
8559
8559
|
orientation: "vertical"
|
|
8560
8560
|
},
|
|
8561
8561
|
style: {
|
|
8562
|
-
paddingTop: `calc(${
|
|
8563
|
-
paddingBottom: `calc(${
|
|
8562
|
+
paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
|
|
8563
|
+
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
|
|
8564
8564
|
}
|
|
8565
8565
|
}]
|
|
8566
8566
|
})));
|
|
@@ -9980,14 +9980,14 @@ const TouchRippleRipple = styled(Ripple, {
|
|
|
9980
9980
|
animation-name: ${enterKeyframe};
|
|
9981
9981
|
animation-duration: ${DURATION}ms;
|
|
9982
9982
|
animation-timing-function: ${({
|
|
9983
|
-
theme
|
|
9984
|
-
}) =>
|
|
9983
|
+
theme
|
|
9984
|
+
}) => theme.transitions.easing.easeInOut};
|
|
9985
9985
|
}
|
|
9986
9986
|
|
|
9987
9987
|
&.${touchRippleClasses.ripplePulsate} {
|
|
9988
9988
|
animation-duration: ${({
|
|
9989
|
-
theme
|
|
9990
|
-
}) =>
|
|
9989
|
+
theme
|
|
9990
|
+
}) => theme.transitions.duration.shorter}ms;
|
|
9991
9991
|
}
|
|
9992
9992
|
|
|
9993
9993
|
& .${touchRippleClasses.child} {
|
|
@@ -10004,8 +10004,8 @@ const TouchRippleRipple = styled(Ripple, {
|
|
|
10004
10004
|
animation-name: ${exitKeyframe};
|
|
10005
10005
|
animation-duration: ${DURATION}ms;
|
|
10006
10006
|
animation-timing-function: ${({
|
|
10007
|
-
theme
|
|
10008
|
-
}) =>
|
|
10007
|
+
theme
|
|
10008
|
+
}) => theme.transitions.easing.easeInOut};
|
|
10009
10009
|
}
|
|
10010
10010
|
|
|
10011
10011
|
& .${touchRippleClasses.childPulsate} {
|
|
@@ -10016,8 +10016,8 @@ const TouchRippleRipple = styled(Ripple, {
|
|
|
10016
10016
|
animation-name: ${pulsateKeyframe};
|
|
10017
10017
|
animation-duration: 2500ms;
|
|
10018
10018
|
animation-timing-function: ${({
|
|
10019
|
-
theme
|
|
10020
|
-
}) =>
|
|
10019
|
+
theme
|
|
10020
|
+
}) => theme.transitions.easing.easeInOut};
|
|
10021
10021
|
animation-iteration-count: infinite;
|
|
10022
10022
|
animation-delay: 200ms;
|
|
10023
10023
|
}
|
|
@@ -10655,7 +10655,7 @@ const ListItemButtonRoot = styled(ButtonBase, {
|
|
|
10655
10655
|
slot: "Root",
|
|
10656
10656
|
overridesResolver: overridesResolver$1
|
|
10657
10657
|
})(memoTheme(({
|
|
10658
|
-
theme
|
|
10658
|
+
theme
|
|
10659
10659
|
}) => ({
|
|
10660
10660
|
display: "flex",
|
|
10661
10661
|
flexGrow: 1,
|
|
@@ -10668,42 +10668,42 @@ const ListItemButtonRoot = styled(ButtonBase, {
|
|
|
10668
10668
|
textAlign: "left",
|
|
10669
10669
|
paddingTop: 8,
|
|
10670
10670
|
paddingBottom: 8,
|
|
10671
|
-
transition:
|
|
10672
|
-
duration:
|
|
10671
|
+
transition: theme.transitions.create("background-color", {
|
|
10672
|
+
duration: theme.transitions.duration.shortest
|
|
10673
10673
|
}),
|
|
10674
10674
|
"&:hover": {
|
|
10675
10675
|
textDecoration: "none",
|
|
10676
|
-
backgroundColor: (
|
|
10676
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
10677
10677
|
// Reset on touch devices, it doesn't add specificity
|
|
10678
10678
|
"@media (hover: none)": {
|
|
10679
10679
|
backgroundColor: "transparent"
|
|
10680
10680
|
}
|
|
10681
10681
|
},
|
|
10682
10682
|
[`&.${listItemButtonClasses.selected}`]: {
|
|
10683
|
-
backgroundColor:
|
|
10683
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
10684
10684
|
[`&.${listItemButtonClasses.focusVisible}`]: {
|
|
10685
|
-
backgroundColor:
|
|
10685
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
10686
10686
|
}
|
|
10687
10687
|
},
|
|
10688
10688
|
[`&.${listItemButtonClasses.selected}:hover`]: {
|
|
10689
|
-
backgroundColor:
|
|
10689
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
10690
10690
|
// Reset on touch devices, it doesn't add specificity
|
|
10691
10691
|
"@media (hover: none)": {
|
|
10692
|
-
backgroundColor:
|
|
10692
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity)
|
|
10693
10693
|
}
|
|
10694
10694
|
},
|
|
10695
10695
|
[`&.${listItemButtonClasses.focusVisible}`]: {
|
|
10696
|
-
backgroundColor: (
|
|
10696
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
10697
10697
|
},
|
|
10698
10698
|
[`&.${listItemButtonClasses.disabled}`]: {
|
|
10699
|
-
opacity: (
|
|
10699
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
10700
10700
|
},
|
|
10701
10701
|
variants: [{
|
|
10702
10702
|
props: ({
|
|
10703
10703
|
ownerState
|
|
10704
10704
|
}) => ownerState.divider,
|
|
10705
10705
|
style: {
|
|
10706
|
-
borderBottom: `1px solid ${(
|
|
10706
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
10707
10707
|
backgroundClip: "padding-box"
|
|
10708
10708
|
}
|
|
10709
10709
|
}, {
|
|
@@ -10892,10 +10892,10 @@ const ListItemIconRoot = styled("div", {
|
|
|
10892
10892
|
return [styles2.root, ownerState.alignItems === "flex-start" && styles2.alignItemsFlexStart];
|
|
10893
10893
|
}
|
|
10894
10894
|
})(memoTheme(({
|
|
10895
|
-
theme
|
|
10895
|
+
theme
|
|
10896
10896
|
}) => ({
|
|
10897
10897
|
minWidth: 56,
|
|
10898
|
-
color: (
|
|
10898
|
+
color: (theme.vars || theme).palette.action.active,
|
|
10899
10899
|
flexShrink: 0,
|
|
10900
10900
|
display: "inline-flex",
|
|
10901
10901
|
variants: [{
|
|
@@ -11009,7 +11009,7 @@ const TypographyRoot = styled("span", {
|
|
|
11009
11009
|
return [styles2.root, ownerState.variant && styles2[ownerState.variant], ownerState.align !== "inherit" && styles2[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles2.noWrap, ownerState.gutterBottom && styles2.gutterBottom, ownerState.paragraph && styles2.paragraph];
|
|
11010
11010
|
}
|
|
11011
11011
|
})(memoTheme(({
|
|
11012
|
-
theme
|
|
11012
|
+
theme
|
|
11013
11013
|
}) => ({
|
|
11014
11014
|
margin: 0,
|
|
11015
11015
|
variants: [{
|
|
@@ -11022,24 +11022,24 @@ const TypographyRoot = styled("span", {
|
|
|
11022
11022
|
lineHeight: "inherit",
|
|
11023
11023
|
letterSpacing: "inherit"
|
|
11024
11024
|
}
|
|
11025
|
-
}, ...Object.entries(
|
|
11025
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
11026
11026
|
props: {
|
|
11027
11027
|
variant
|
|
11028
11028
|
},
|
|
11029
11029
|
style: value
|
|
11030
|
-
})), ...Object.entries(
|
|
11030
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
11031
11031
|
props: {
|
|
11032
11032
|
color: color2
|
|
11033
11033
|
},
|
|
11034
11034
|
style: {
|
|
11035
|
-
color: (
|
|
11035
|
+
color: (theme.vars || theme).palette[color2].main
|
|
11036
11036
|
}
|
|
11037
|
-
})), ...Object.entries(
|
|
11037
|
+
})), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
11038
11038
|
props: {
|
|
11039
11039
|
color: `text${capitalize(color2)}`
|
|
11040
11040
|
},
|
|
11041
11041
|
style: {
|
|
11042
|
-
color: (
|
|
11042
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
11043
11043
|
}
|
|
11044
11044
|
})), {
|
|
11045
11045
|
props: ({
|
|
@@ -11694,15 +11694,15 @@ const SvgIconRoot = styled("svg", {
|
|
|
11694
11694
|
return [styles2.root, ownerState.color !== "inherit" && styles2[`color${capitalize(ownerState.color)}`], styles2[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
11695
11695
|
}
|
|
11696
11696
|
})(memoTheme(({
|
|
11697
|
-
theme
|
|
11697
|
+
theme
|
|
11698
11698
|
}) => ({
|
|
11699
11699
|
userSelect: "none",
|
|
11700
11700
|
width: "1em",
|
|
11701
11701
|
height: "1em",
|
|
11702
11702
|
display: "inline-block",
|
|
11703
11703
|
flexShrink: 0,
|
|
11704
|
-
transition:
|
|
11705
|
-
duration: (
|
|
11704
|
+
transition: theme.transitions?.create?.("fill", {
|
|
11705
|
+
duration: (theme.vars ?? theme).transitions?.duration?.shorter
|
|
11706
11706
|
}),
|
|
11707
11707
|
variants: [
|
|
11708
11708
|
{
|
|
@@ -11726,7 +11726,7 @@ const SvgIconRoot = styled("svg", {
|
|
|
11726
11726
|
fontSize: "small"
|
|
11727
11727
|
},
|
|
11728
11728
|
style: {
|
|
11729
|
-
fontSize:
|
|
11729
|
+
fontSize: theme.typography?.pxToRem?.(20) || "1.25rem"
|
|
11730
11730
|
}
|
|
11731
11731
|
},
|
|
11732
11732
|
{
|
|
@@ -11734,7 +11734,7 @@ const SvgIconRoot = styled("svg", {
|
|
|
11734
11734
|
fontSize: "medium"
|
|
11735
11735
|
},
|
|
11736
11736
|
style: {
|
|
11737
|
-
fontSize:
|
|
11737
|
+
fontSize: theme.typography?.pxToRem?.(24) || "1.5rem"
|
|
11738
11738
|
}
|
|
11739
11739
|
},
|
|
11740
11740
|
{
|
|
@@ -11742,16 +11742,16 @@ const SvgIconRoot = styled("svg", {
|
|
|
11742
11742
|
fontSize: "large"
|
|
11743
11743
|
},
|
|
11744
11744
|
style: {
|
|
11745
|
-
fontSize:
|
|
11745
|
+
fontSize: theme.typography?.pxToRem?.(35) || "2.1875rem"
|
|
11746
11746
|
}
|
|
11747
11747
|
},
|
|
11748
11748
|
// TODO v5 deprecate color prop, v6 remove for sx
|
|
11749
|
-
...Object.entries((
|
|
11749
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => ({
|
|
11750
11750
|
props: {
|
|
11751
11751
|
color: color2
|
|
11752
11752
|
},
|
|
11753
11753
|
style: {
|
|
11754
|
-
color: (
|
|
11754
|
+
color: (theme.vars ?? theme).palette?.[color2]?.main
|
|
11755
11755
|
}
|
|
11756
11756
|
})),
|
|
11757
11757
|
{
|
|
@@ -11759,7 +11759,7 @@ const SvgIconRoot = styled("svg", {
|
|
|
11759
11759
|
color: "action"
|
|
11760
11760
|
},
|
|
11761
11761
|
style: {
|
|
11762
|
-
color: (
|
|
11762
|
+
color: (theme.vars ?? theme).palette?.action?.active
|
|
11763
11763
|
}
|
|
11764
11764
|
},
|
|
11765
11765
|
{
|
|
@@ -11767,7 +11767,7 @@ const SvgIconRoot = styled("svg", {
|
|
|
11767
11767
|
color: "disabled"
|
|
11768
11768
|
},
|
|
11769
11769
|
style: {
|
|
11770
|
-
color: (
|
|
11770
|
+
color: (theme.vars ?? theme).palette?.action?.disabled
|
|
11771
11771
|
}
|
|
11772
11772
|
},
|
|
11773
11773
|
{
|
|
@@ -11968,7 +11968,7 @@ function useControlled(props) {
|
|
|
11968
11968
|
current: defaultValue
|
|
11969
11969
|
} = React.useRef(defaultProp);
|
|
11970
11970
|
React.useEffect(() => {
|
|
11971
|
-
if (!isControlled &&
|
|
11971
|
+
if (!isControlled && !Object.is(defaultValue, defaultProp)) {
|
|
11972
11972
|
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. To suppress this warning opt to use a controlled ${name}.`].join("\n"));
|
|
11973
11973
|
}
|
|
11974
11974
|
}, [JSON.stringify(defaultProp)]);
|
|
@@ -12109,7 +12109,7 @@ const CircularProgressRoot = styled("span", {
|
|
|
12109
12109
|
return [styles2.root, styles2[ownerState.variant], styles2[`color${capitalize(ownerState.color)}`]];
|
|
12110
12110
|
}
|
|
12111
12111
|
})(memoTheme(({
|
|
12112
|
-
theme
|
|
12112
|
+
theme
|
|
12113
12113
|
}) => ({
|
|
12114
12114
|
display: "inline-block",
|
|
12115
12115
|
variants: [{
|
|
@@ -12117,7 +12117,7 @@ const CircularProgressRoot = styled("span", {
|
|
|
12117
12117
|
variant: "determinate"
|
|
12118
12118
|
},
|
|
12119
12119
|
style: {
|
|
12120
|
-
transition:
|
|
12120
|
+
transition: theme.transitions.create("transform")
|
|
12121
12121
|
}
|
|
12122
12122
|
}, {
|
|
12123
12123
|
props: {
|
|
@@ -12126,12 +12126,12 @@ const CircularProgressRoot = styled("span", {
|
|
|
12126
12126
|
style: rotateAnimation || {
|
|
12127
12127
|
animation: `${circularRotateKeyframe} 1.4s linear infinite`
|
|
12128
12128
|
}
|
|
12129
|
-
}, ...Object.entries(
|
|
12129
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
12130
12130
|
props: {
|
|
12131
12131
|
color: color2
|
|
12132
12132
|
},
|
|
12133
12133
|
style: {
|
|
12134
|
-
color: (
|
|
12134
|
+
color: (theme.vars || theme).palette[color2].main
|
|
12135
12135
|
}
|
|
12136
12136
|
}))]
|
|
12137
12137
|
})));
|
|
@@ -12152,7 +12152,7 @@ const CircularProgressCircle = styled("circle", {
|
|
|
12152
12152
|
return [styles2.circle, styles2[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles2.circleDisableShrink];
|
|
12153
12153
|
}
|
|
12154
12154
|
})(memoTheme(({
|
|
12155
|
-
theme
|
|
12155
|
+
theme
|
|
12156
12156
|
}) => ({
|
|
12157
12157
|
stroke: "currentColor",
|
|
12158
12158
|
variants: [{
|
|
@@ -12160,7 +12160,7 @@ const CircularProgressCircle = styled("circle", {
|
|
|
12160
12160
|
variant: "determinate"
|
|
12161
12161
|
},
|
|
12162
12162
|
style: {
|
|
12163
|
-
transition:
|
|
12163
|
+
transition: theme.transitions.create("stroke-dashoffset")
|
|
12164
12164
|
}
|
|
12165
12165
|
}, {
|
|
12166
12166
|
props: {
|
|
@@ -12342,21 +12342,21 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
12342
12342
|
return [styles2.root, ownerState.loading && styles2.loading, ownerState.color !== "default" && styles2[`color${capitalize(ownerState.color)}`], ownerState.edge && styles2[`edge${capitalize(ownerState.edge)}`], styles2[`size${capitalize(ownerState.size)}`]];
|
|
12343
12343
|
}
|
|
12344
12344
|
})(memoTheme(({
|
|
12345
|
-
theme
|
|
12345
|
+
theme
|
|
12346
12346
|
}) => ({
|
|
12347
12347
|
textAlign: "center",
|
|
12348
12348
|
flex: "0 0 auto",
|
|
12349
|
-
fontSize:
|
|
12349
|
+
fontSize: theme.typography.pxToRem(24),
|
|
12350
12350
|
padding: 8,
|
|
12351
12351
|
borderRadius: "50%",
|
|
12352
|
-
color: (
|
|
12353
|
-
transition:
|
|
12354
|
-
duration:
|
|
12352
|
+
color: (theme.vars || theme).palette.action.active,
|
|
12353
|
+
transition: theme.transitions.create("background-color", {
|
|
12354
|
+
duration: theme.transitions.duration.shortest
|
|
12355
12355
|
}),
|
|
12356
12356
|
variants: [{
|
|
12357
12357
|
props: (props) => !props.disableRipple,
|
|
12358
12358
|
style: {
|
|
12359
|
-
"--IconButton-hoverBg":
|
|
12359
|
+
"--IconButton-hoverBg": theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),
|
|
12360
12360
|
"&:hover": {
|
|
12361
12361
|
backgroundColor: "var(--IconButton-hoverBg)",
|
|
12362
12362
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -12397,7 +12397,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
12397
12397
|
}
|
|
12398
12398
|
}]
|
|
12399
12399
|
})), memoTheme(({
|
|
12400
|
-
theme
|
|
12400
|
+
theme
|
|
12401
12401
|
}) => ({
|
|
12402
12402
|
variants: [{
|
|
12403
12403
|
props: {
|
|
@@ -12406,19 +12406,19 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
12406
12406
|
style: {
|
|
12407
12407
|
color: "inherit"
|
|
12408
12408
|
}
|
|
12409
|
-
}, ...Object.entries(
|
|
12409
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
12410
12410
|
props: {
|
|
12411
12411
|
color: color2
|
|
12412
12412
|
},
|
|
12413
12413
|
style: {
|
|
12414
|
-
color: (
|
|
12414
|
+
color: (theme.vars || theme).palette[color2].main
|
|
12415
12415
|
}
|
|
12416
|
-
})), ...Object.entries(
|
|
12416
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
12417
12417
|
props: {
|
|
12418
12418
|
color: color2
|
|
12419
12419
|
},
|
|
12420
12420
|
style: {
|
|
12421
|
-
"--IconButton-hoverBg":
|
|
12421
|
+
"--IconButton-hoverBg": theme.alpha((theme.vars || theme).palette[color2].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
12422
12422
|
}
|
|
12423
12423
|
})), {
|
|
12424
12424
|
props: {
|
|
@@ -12426,7 +12426,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
12426
12426
|
},
|
|
12427
12427
|
style: {
|
|
12428
12428
|
padding: 5,
|
|
12429
|
-
fontSize:
|
|
12429
|
+
fontSize: theme.typography.pxToRem(18)
|
|
12430
12430
|
}
|
|
12431
12431
|
}, {
|
|
12432
12432
|
props: {
|
|
@@ -12434,12 +12434,12 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
12434
12434
|
},
|
|
12435
12435
|
style: {
|
|
12436
12436
|
padding: 12,
|
|
12437
|
-
fontSize:
|
|
12437
|
+
fontSize: theme.typography.pxToRem(28)
|
|
12438
12438
|
}
|
|
12439
12439
|
}],
|
|
12440
12440
|
[`&.${iconButtonClasses.disabled}`]: {
|
|
12441
12441
|
backgroundColor: "transparent",
|
|
12442
|
-
color: (
|
|
12442
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
12443
12443
|
},
|
|
12444
12444
|
[`&.${iconButtonClasses.loading}`]: {
|
|
12445
12445
|
color: "transparent"
|
|
@@ -12449,7 +12449,7 @@ const IconButtonLoadingIndicator = styled("span", {
|
|
|
12449
12449
|
name: "MuiIconButton",
|
|
12450
12450
|
slot: "LoadingIndicator"
|
|
12451
12451
|
})(({
|
|
12452
|
-
theme
|
|
12452
|
+
theme
|
|
12453
12453
|
}) => ({
|
|
12454
12454
|
display: "none",
|
|
12455
12455
|
position: "absolute",
|
|
@@ -12457,7 +12457,7 @@ const IconButtonLoadingIndicator = styled("span", {
|
|
|
12457
12457
|
top: "50%",
|
|
12458
12458
|
left: "50%",
|
|
12459
12459
|
transform: "translate(-50%, -50%)",
|
|
12460
|
-
color: (
|
|
12460
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
12461
12461
|
variants: [{
|
|
12462
12462
|
props: {
|
|
12463
12463
|
loading: true
|
|
@@ -12649,56 +12649,56 @@ const AlertRoot = styled(Paper, {
|
|
|
12649
12649
|
return [styles2.root, styles2[ownerState.variant], styles2[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];
|
|
12650
12650
|
}
|
|
12651
12651
|
})(memoTheme(({
|
|
12652
|
-
theme
|
|
12652
|
+
theme
|
|
12653
12653
|
}) => {
|
|
12654
|
-
const getColor =
|
|
12655
|
-
const getBackgroundColor =
|
|
12654
|
+
const getColor = theme.palette.mode === "light" ? theme.darken : theme.lighten;
|
|
12655
|
+
const getBackgroundColor = theme.palette.mode === "light" ? theme.lighten : theme.darken;
|
|
12656
12656
|
return {
|
|
12657
|
-
...
|
|
12657
|
+
...theme.typography.body2,
|
|
12658
12658
|
backgroundColor: "transparent",
|
|
12659
12659
|
display: "flex",
|
|
12660
12660
|
padding: "6px 16px",
|
|
12661
|
-
variants: [...Object.entries(
|
|
12661
|
+
variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["light"])).map(([color2]) => ({
|
|
12662
12662
|
props: {
|
|
12663
12663
|
colorSeverity: color2,
|
|
12664
12664
|
variant: "standard"
|
|
12665
12665
|
},
|
|
12666
12666
|
style: {
|
|
12667
|
-
color:
|
|
12668
|
-
backgroundColor:
|
|
12669
|
-
[`& .${alertClasses.icon}`]:
|
|
12670
|
-
color:
|
|
12667
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color2}Color`] : getColor(theme.palette[color2].light, 0.6),
|
|
12668
|
+
backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color2}StandardBg`] : getBackgroundColor(theme.palette[color2].light, 0.9),
|
|
12669
|
+
[`& .${alertClasses.icon}`]: theme.vars ? {
|
|
12670
|
+
color: theme.vars.palette.Alert[`${color2}IconColor`]
|
|
12671
12671
|
} : {
|
|
12672
|
-
color:
|
|
12672
|
+
color: theme.palette[color2].main
|
|
12673
12673
|
}
|
|
12674
12674
|
}
|
|
12675
|
-
})), ...Object.entries(
|
|
12675
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["light"])).map(([color2]) => ({
|
|
12676
12676
|
props: {
|
|
12677
12677
|
colorSeverity: color2,
|
|
12678
12678
|
variant: "outlined"
|
|
12679
12679
|
},
|
|
12680
12680
|
style: {
|
|
12681
|
-
color:
|
|
12682
|
-
border: `1px solid ${(
|
|
12683
|
-
[`& .${alertClasses.icon}`]:
|
|
12684
|
-
color:
|
|
12681
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color2}Color`] : getColor(theme.palette[color2].light, 0.6),
|
|
12682
|
+
border: `1px solid ${(theme.vars || theme).palette[color2].light}`,
|
|
12683
|
+
[`& .${alertClasses.icon}`]: theme.vars ? {
|
|
12684
|
+
color: theme.vars.palette.Alert[`${color2}IconColor`]
|
|
12685
12685
|
} : {
|
|
12686
|
-
color:
|
|
12686
|
+
color: theme.palette[color2].main
|
|
12687
12687
|
}
|
|
12688
12688
|
}
|
|
12689
|
-
})), ...Object.entries(
|
|
12689
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([color2]) => ({
|
|
12690
12690
|
props: {
|
|
12691
12691
|
colorSeverity: color2,
|
|
12692
12692
|
variant: "filled"
|
|
12693
12693
|
},
|
|
12694
12694
|
style: {
|
|
12695
|
-
fontWeight:
|
|
12696
|
-
...
|
|
12697
|
-
color:
|
|
12698
|
-
backgroundColor:
|
|
12695
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
12696
|
+
...theme.vars ? {
|
|
12697
|
+
color: theme.vars.palette.Alert[`${color2}FilledColor`],
|
|
12698
|
+
backgroundColor: theme.vars.palette.Alert[`${color2}FilledBg`]
|
|
12699
12699
|
} : {
|
|
12700
|
-
backgroundColor:
|
|
12701
|
-
color:
|
|
12700
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette[color2].dark : theme.palette[color2].main,
|
|
12701
|
+
color: theme.palette.getContrastText(theme.palette[color2].main)
|
|
12702
12702
|
}
|
|
12703
12703
|
}
|
|
12704
12704
|
}))]
|
|
@@ -13066,24 +13066,24 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13066
13066
|
return [styles2.root, styles2[ownerState.variant], styles2[`${ownerState.variant}${capitalize(ownerState.color)}`], styles2[`size${capitalize(ownerState.size)}`], styles2[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === "inherit" && styles2.colorInherit, ownerState.disableElevation && styles2.disableElevation, ownerState.fullWidth && styles2.fullWidth, ownerState.loading && styles2.loading];
|
|
13067
13067
|
}
|
|
13068
13068
|
})(memoTheme(({
|
|
13069
|
-
theme
|
|
13069
|
+
theme
|
|
13070
13070
|
}) => {
|
|
13071
|
-
const inheritContainedBackgroundColor =
|
|
13072
|
-
const inheritContainedHoverBackgroundColor =
|
|
13071
|
+
const inheritContainedBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
13072
|
+
const inheritContainedHoverBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
13073
13073
|
return {
|
|
13074
|
-
...
|
|
13074
|
+
...theme.typography.button,
|
|
13075
13075
|
minWidth: 64,
|
|
13076
13076
|
padding: "6px 16px",
|
|
13077
13077
|
border: 0,
|
|
13078
|
-
borderRadius: (
|
|
13079
|
-
transition:
|
|
13080
|
-
duration:
|
|
13078
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
13079
|
+
transition: theme.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
13080
|
+
duration: theme.transitions.duration.short
|
|
13081
13081
|
}),
|
|
13082
13082
|
"&:hover": {
|
|
13083
13083
|
textDecoration: "none"
|
|
13084
13084
|
},
|
|
13085
13085
|
[`&.${buttonClasses.disabled}`]: {
|
|
13086
|
-
color: (
|
|
13086
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
13087
13087
|
},
|
|
13088
13088
|
variants: [{
|
|
13089
13089
|
props: {
|
|
@@ -13092,24 +13092,24 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13092
13092
|
style: {
|
|
13093
13093
|
color: `var(--variant-containedColor)`,
|
|
13094
13094
|
backgroundColor: `var(--variant-containedBg)`,
|
|
13095
|
-
boxShadow: (
|
|
13095
|
+
boxShadow: (theme.vars || theme).shadows[2],
|
|
13096
13096
|
"&:hover": {
|
|
13097
|
-
boxShadow: (
|
|
13097
|
+
boxShadow: (theme.vars || theme).shadows[4],
|
|
13098
13098
|
// Reset on touch devices, it doesn't add specificity
|
|
13099
13099
|
"@media (hover: none)": {
|
|
13100
|
-
boxShadow: (
|
|
13100
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
13101
13101
|
}
|
|
13102
13102
|
},
|
|
13103
13103
|
"&:active": {
|
|
13104
|
-
boxShadow: (
|
|
13104
|
+
boxShadow: (theme.vars || theme).shadows[8]
|
|
13105
13105
|
},
|
|
13106
13106
|
[`&.${buttonClasses.focusVisible}`]: {
|
|
13107
|
-
boxShadow: (
|
|
13107
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
13108
13108
|
},
|
|
13109
13109
|
[`&.${buttonClasses.disabled}`]: {
|
|
13110
|
-
color: (
|
|
13111
|
-
boxShadow: (
|
|
13112
|
-
backgroundColor: (
|
|
13110
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
13111
|
+
boxShadow: (theme.vars || theme).shadows[0],
|
|
13112
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
13113
13113
|
}
|
|
13114
13114
|
}
|
|
13115
13115
|
}, {
|
|
@@ -13123,7 +13123,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13123
13123
|
backgroundColor: `var(--variant-outlinedBg)`,
|
|
13124
13124
|
color: `var(--variant-outlinedColor)`,
|
|
13125
13125
|
[`&.${buttonClasses.disabled}`]: {
|
|
13126
|
-
border: `1px solid ${(
|
|
13126
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
13127
13127
|
}
|
|
13128
13128
|
}
|
|
13129
13129
|
}, {
|
|
@@ -13135,22 +13135,22 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13135
13135
|
color: `var(--variant-textColor)`,
|
|
13136
13136
|
backgroundColor: `var(--variant-textBg)`
|
|
13137
13137
|
}
|
|
13138
|
-
}, ...Object.entries(
|
|
13138
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
13139
13139
|
props: {
|
|
13140
13140
|
color: color2
|
|
13141
13141
|
},
|
|
13142
13142
|
style: {
|
|
13143
|
-
"--variant-textColor": (
|
|
13144
|
-
"--variant-outlinedColor": (
|
|
13145
|
-
"--variant-outlinedBorder":
|
|
13146
|
-
"--variant-containedColor": (
|
|
13147
|
-
"--variant-containedBg": (
|
|
13143
|
+
"--variant-textColor": (theme.vars || theme).palette[color2].main,
|
|
13144
|
+
"--variant-outlinedColor": (theme.vars || theme).palette[color2].main,
|
|
13145
|
+
"--variant-outlinedBorder": theme.alpha((theme.vars || theme).palette[color2].main, 0.5),
|
|
13146
|
+
"--variant-containedColor": (theme.vars || theme).palette[color2].contrastText,
|
|
13147
|
+
"--variant-containedBg": (theme.vars || theme).palette[color2].main,
|
|
13148
13148
|
"@media (hover: hover)": {
|
|
13149
13149
|
"&:hover": {
|
|
13150
|
-
"--variant-containedBg": (
|
|
13151
|
-
"--variant-textBg":
|
|
13152
|
-
"--variant-outlinedBorder": (
|
|
13153
|
-
"--variant-outlinedBg":
|
|
13150
|
+
"--variant-containedBg": (theme.vars || theme).palette[color2].dark,
|
|
13151
|
+
"--variant-textBg": theme.alpha((theme.vars || theme).palette[color2].main, (theme.vars || theme).palette.action.hoverOpacity),
|
|
13152
|
+
"--variant-outlinedBorder": (theme.vars || theme).palette[color2].main,
|
|
13153
|
+
"--variant-outlinedBg": theme.alpha((theme.vars || theme).palette[color2].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
13154
13154
|
}
|
|
13155
13155
|
}
|
|
13156
13156
|
}
|
|
@@ -13161,12 +13161,12 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13161
13161
|
style: {
|
|
13162
13162
|
color: "inherit",
|
|
13163
13163
|
borderColor: "currentColor",
|
|
13164
|
-
"--variant-containedBg":
|
|
13164
|
+
"--variant-containedBg": theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
13165
13165
|
"@media (hover: hover)": {
|
|
13166
13166
|
"&:hover": {
|
|
13167
|
-
"--variant-containedBg":
|
|
13168
|
-
"--variant-textBg":
|
|
13169
|
-
"--variant-outlinedBg":
|
|
13167
|
+
"--variant-containedBg": theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
13168
|
+
"--variant-textBg": theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),
|
|
13169
|
+
"--variant-outlinedBg": theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)
|
|
13170
13170
|
}
|
|
13171
13171
|
}
|
|
13172
13172
|
}
|
|
@@ -13177,7 +13177,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13177
13177
|
},
|
|
13178
13178
|
style: {
|
|
13179
13179
|
padding: "4px 5px",
|
|
13180
|
-
fontSize:
|
|
13180
|
+
fontSize: theme.typography.pxToRem(13)
|
|
13181
13181
|
}
|
|
13182
13182
|
}, {
|
|
13183
13183
|
props: {
|
|
@@ -13186,7 +13186,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13186
13186
|
},
|
|
13187
13187
|
style: {
|
|
13188
13188
|
padding: "8px 11px",
|
|
13189
|
-
fontSize:
|
|
13189
|
+
fontSize: theme.typography.pxToRem(15)
|
|
13190
13190
|
}
|
|
13191
13191
|
}, {
|
|
13192
13192
|
props: {
|
|
@@ -13195,7 +13195,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13195
13195
|
},
|
|
13196
13196
|
style: {
|
|
13197
13197
|
padding: "3px 9px",
|
|
13198
|
-
fontSize:
|
|
13198
|
+
fontSize: theme.typography.pxToRem(13)
|
|
13199
13199
|
}
|
|
13200
13200
|
}, {
|
|
13201
13201
|
props: {
|
|
@@ -13204,7 +13204,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13204
13204
|
},
|
|
13205
13205
|
style: {
|
|
13206
13206
|
padding: "7px 21px",
|
|
13207
|
-
fontSize:
|
|
13207
|
+
fontSize: theme.typography.pxToRem(15)
|
|
13208
13208
|
}
|
|
13209
13209
|
}, {
|
|
13210
13210
|
props: {
|
|
@@ -13213,7 +13213,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13213
13213
|
},
|
|
13214
13214
|
style: {
|
|
13215
13215
|
padding: "4px 10px",
|
|
13216
|
-
fontSize:
|
|
13216
|
+
fontSize: theme.typography.pxToRem(13)
|
|
13217
13217
|
}
|
|
13218
13218
|
}, {
|
|
13219
13219
|
props: {
|
|
@@ -13222,7 +13222,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13222
13222
|
},
|
|
13223
13223
|
style: {
|
|
13224
13224
|
padding: "8px 22px",
|
|
13225
|
-
fontSize:
|
|
13225
|
+
fontSize: theme.typography.pxToRem(15)
|
|
13226
13226
|
}
|
|
13227
13227
|
}, {
|
|
13228
13228
|
props: {
|
|
@@ -13255,8 +13255,8 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
13255
13255
|
loadingPosition: "center"
|
|
13256
13256
|
},
|
|
13257
13257
|
style: {
|
|
13258
|
-
transition:
|
|
13259
|
-
duration:
|
|
13258
|
+
transition: theme.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
13259
|
+
duration: theme.transitions.duration.short
|
|
13260
13260
|
}),
|
|
13261
13261
|
[`&.${buttonClasses.loading}`]: {
|
|
13262
13262
|
color: "transparent"
|
|
@@ -13275,7 +13275,7 @@ const ButtonStartIcon = styled("span", {
|
|
|
13275
13275
|
return [styles2.startIcon, ownerState.loading && styles2.startIconLoadingStart, styles2[`iconSize${capitalize(ownerState.size)}`]];
|
|
13276
13276
|
}
|
|
13277
13277
|
})(({
|
|
13278
|
-
theme
|
|
13278
|
+
theme
|
|
13279
13279
|
}) => ({
|
|
13280
13280
|
display: "inherit",
|
|
13281
13281
|
marginRight: 8,
|
|
@@ -13293,8 +13293,8 @@ const ButtonStartIcon = styled("span", {
|
|
|
13293
13293
|
loading: true
|
|
13294
13294
|
},
|
|
13295
13295
|
style: {
|
|
13296
|
-
transition:
|
|
13297
|
-
duration:
|
|
13296
|
+
transition: theme.transitions.create(["opacity"], {
|
|
13297
|
+
duration: theme.transitions.duration.short
|
|
13298
13298
|
}),
|
|
13299
13299
|
opacity: 0
|
|
13300
13300
|
}
|
|
@@ -13319,7 +13319,7 @@ const ButtonEndIcon = styled("span", {
|
|
|
13319
13319
|
return [styles2.endIcon, ownerState.loading && styles2.endIconLoadingEnd, styles2[`iconSize${capitalize(ownerState.size)}`]];
|
|
13320
13320
|
}
|
|
13321
13321
|
})(({
|
|
13322
|
-
theme
|
|
13322
|
+
theme
|
|
13323
13323
|
}) => ({
|
|
13324
13324
|
display: "inherit",
|
|
13325
13325
|
marginRight: -4,
|
|
@@ -13337,8 +13337,8 @@ const ButtonEndIcon = styled("span", {
|
|
|
13337
13337
|
loading: true
|
|
13338
13338
|
},
|
|
13339
13339
|
style: {
|
|
13340
|
-
transition:
|
|
13341
|
-
duration:
|
|
13340
|
+
transition: theme.transitions.create(["opacity"], {
|
|
13341
|
+
duration: theme.transitions.duration.short
|
|
13342
13342
|
}),
|
|
13343
13343
|
opacity: 0
|
|
13344
13344
|
}
|
|
@@ -13357,7 +13357,7 @@ const ButtonLoadingIndicator = styled("span", {
|
|
|
13357
13357
|
name: "MuiButton",
|
|
13358
13358
|
slot: "LoadingIndicator"
|
|
13359
13359
|
})(({
|
|
13360
|
-
theme
|
|
13360
|
+
theme
|
|
13361
13361
|
}) => ({
|
|
13362
13362
|
display: "none",
|
|
13363
13363
|
position: "absolute",
|
|
@@ -13399,7 +13399,7 @@ const ButtonLoadingIndicator = styled("span", {
|
|
|
13399
13399
|
style: {
|
|
13400
13400
|
left: "50%",
|
|
13401
13401
|
transform: "translate(-50%)",
|
|
13402
|
-
color: (
|
|
13402
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
13403
13403
|
}
|
|
13404
13404
|
}, {
|
|
13405
13405
|
props: {
|
|
@@ -13992,20 +13992,20 @@ const FormHelperTextRoot = styled("p", {
|
|
|
13992
13992
|
return [styles2.root, ownerState.size && styles2[`size${capitalize(ownerState.size)}`], ownerState.contained && styles2.contained, ownerState.filled && styles2.filled];
|
|
13993
13993
|
}
|
|
13994
13994
|
})(memoTheme(({
|
|
13995
|
-
theme
|
|
13995
|
+
theme
|
|
13996
13996
|
}) => ({
|
|
13997
|
-
color: (
|
|
13998
|
-
...
|
|
13997
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
13998
|
+
...theme.typography.caption,
|
|
13999
13999
|
textAlign: "left",
|
|
14000
14000
|
marginTop: 3,
|
|
14001
14001
|
marginRight: 0,
|
|
14002
14002
|
marginBottom: 0,
|
|
14003
14003
|
marginLeft: 0,
|
|
14004
14004
|
[`&.${formHelperTextClasses.disabled}`]: {
|
|
14005
|
-
color: (
|
|
14005
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
14006
14006
|
},
|
|
14007
14007
|
[`&.${formHelperTextClasses.error}`]: {
|
|
14008
|
-
color: (
|
|
14008
|
+
color: (theme.vars || theme).palette.error.main
|
|
14009
14009
|
},
|
|
14010
14010
|
variants: [{
|
|
14011
14011
|
props: {
|
|
@@ -14166,30 +14166,30 @@ const FormLabelRoot = styled("label", {
|
|
|
14166
14166
|
return [styles2.root, ownerState.color === "secondary" && styles2.colorSecondary, ownerState.filled && styles2.filled];
|
|
14167
14167
|
}
|
|
14168
14168
|
})(memoTheme(({
|
|
14169
|
-
theme
|
|
14169
|
+
theme
|
|
14170
14170
|
}) => ({
|
|
14171
|
-
color: (
|
|
14172
|
-
...
|
|
14171
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
14172
|
+
...theme.typography.body1,
|
|
14173
14173
|
lineHeight: "1.4375em",
|
|
14174
14174
|
padding: 0,
|
|
14175
14175
|
position: "relative",
|
|
14176
|
-
variants: [...Object.entries(
|
|
14176
|
+
variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
14177
14177
|
props: {
|
|
14178
14178
|
color: color2
|
|
14179
14179
|
},
|
|
14180
14180
|
style: {
|
|
14181
14181
|
[`&.${formLabelClasses.focused}`]: {
|
|
14182
|
-
color: (
|
|
14182
|
+
color: (theme.vars || theme).palette[color2].main
|
|
14183
14183
|
}
|
|
14184
14184
|
}
|
|
14185
14185
|
})), {
|
|
14186
14186
|
props: {},
|
|
14187
14187
|
style: {
|
|
14188
14188
|
[`&.${formLabelClasses.disabled}`]: {
|
|
14189
|
-
color: (
|
|
14189
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
14190
14190
|
},
|
|
14191
14191
|
[`&.${formLabelClasses.error}`]: {
|
|
14192
|
-
color: (
|
|
14192
|
+
color: (theme.vars || theme).palette.error.main
|
|
14193
14193
|
}
|
|
14194
14194
|
}
|
|
14195
14195
|
}]
|
|
@@ -14198,10 +14198,10 @@ const AsteriskComponent = styled("span", {
|
|
|
14198
14198
|
name: "MuiFormLabel",
|
|
14199
14199
|
slot: "Asterisk"
|
|
14200
14200
|
})(memoTheme(({
|
|
14201
|
-
theme
|
|
14201
|
+
theme
|
|
14202
14202
|
}) => ({
|
|
14203
14203
|
[`&.${formLabelClasses.error}`]: {
|
|
14204
|
-
color: (
|
|
14204
|
+
color: (theme.vars || theme).palette.error.main
|
|
14205
14205
|
}
|
|
14206
14206
|
})));
|
|
14207
14207
|
const FormLabel = /* @__PURE__ */ React.forwardRef(function FormLabel2(inProps, ref) {
|
|
@@ -14343,7 +14343,7 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
14343
14343
|
}, styles2.root, ownerState.formControl && styles2.formControl, ownerState.size === "small" && styles2.sizeSmall, ownerState.shrink && styles2.shrink, !ownerState.disableAnimation && styles2.animated, ownerState.focused && styles2.focused, styles2[ownerState.variant]];
|
|
14344
14344
|
}
|
|
14345
14345
|
})(memoTheme(({
|
|
14346
|
-
theme
|
|
14346
|
+
theme
|
|
14347
14347
|
}) => ({
|
|
14348
14348
|
display: "block",
|
|
14349
14349
|
transformOrigin: "top left",
|
|
@@ -14384,9 +14384,9 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
14384
14384
|
ownerState
|
|
14385
14385
|
}) => !ownerState.disableAnimation,
|
|
14386
14386
|
style: {
|
|
14387
|
-
transition:
|
|
14388
|
-
duration:
|
|
14389
|
-
easing:
|
|
14387
|
+
transition: theme.transitions.create(["color", "transform", "max-width"], {
|
|
14388
|
+
duration: theme.transitions.duration.shorter,
|
|
14389
|
+
easing: theme.transitions.easing.easeOut
|
|
14390
14390
|
})
|
|
14391
14391
|
}
|
|
14392
14392
|
}, {
|
|
@@ -14609,9 +14609,9 @@ const MenuItemRoot = styled(ButtonBase, {
|
|
|
14609
14609
|
slot: "Root",
|
|
14610
14610
|
overridesResolver
|
|
14611
14611
|
})(memoTheme(({
|
|
14612
|
-
theme
|
|
14612
|
+
theme
|
|
14613
14613
|
}) => ({
|
|
14614
|
-
...
|
|
14614
|
+
...theme.typography.body1,
|
|
14615
14615
|
display: "flex",
|
|
14616
14616
|
justifyContent: "flex-start",
|
|
14617
14617
|
alignItems: "center",
|
|
@@ -14624,34 +14624,34 @@ const MenuItemRoot = styled(ButtonBase, {
|
|
|
14624
14624
|
whiteSpace: "nowrap",
|
|
14625
14625
|
"&:hover": {
|
|
14626
14626
|
textDecoration: "none",
|
|
14627
|
-
backgroundColor: (
|
|
14627
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
14628
14628
|
// Reset on touch devices, it doesn't add specificity
|
|
14629
14629
|
"@media (hover: none)": {
|
|
14630
14630
|
backgroundColor: "transparent"
|
|
14631
14631
|
}
|
|
14632
14632
|
},
|
|
14633
14633
|
[`&.${menuItemClasses.selected}`]: {
|
|
14634
|
-
backgroundColor:
|
|
14634
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
14635
14635
|
[`&.${menuItemClasses.focusVisible}`]: {
|
|
14636
|
-
backgroundColor:
|
|
14636
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
14637
14637
|
}
|
|
14638
14638
|
},
|
|
14639
14639
|
[`&.${menuItemClasses.selected}:hover`]: {
|
|
14640
|
-
backgroundColor:
|
|
14640
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
14641
14641
|
// Reset on touch devices, it doesn't add specificity
|
|
14642
14642
|
"@media (hover: none)": {
|
|
14643
|
-
backgroundColor:
|
|
14643
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity)
|
|
14644
14644
|
}
|
|
14645
14645
|
},
|
|
14646
14646
|
[`&.${menuItemClasses.focusVisible}`]: {
|
|
14647
|
-
backgroundColor: (
|
|
14647
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
14648
14648
|
},
|
|
14649
14649
|
[`&.${menuItemClasses.disabled}`]: {
|
|
14650
|
-
opacity: (
|
|
14650
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
14651
14651
|
},
|
|
14652
14652
|
[`& + .${dividerClasses.root}`]: {
|
|
14653
|
-
marginTop:
|
|
14654
|
-
marginBottom:
|
|
14653
|
+
marginTop: theme.spacing(1),
|
|
14654
|
+
marginBottom: theme.spacing(1)
|
|
14655
14655
|
},
|
|
14656
14656
|
[`& + .${dividerClasses.inset}`]: {
|
|
14657
14657
|
marginLeft: 52
|
|
@@ -14679,7 +14679,7 @@ const MenuItemRoot = styled(ButtonBase, {
|
|
|
14679
14679
|
ownerState
|
|
14680
14680
|
}) => ownerState.divider,
|
|
14681
14681
|
style: {
|
|
14682
|
-
borderBottom: `1px solid ${(
|
|
14682
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
14683
14683
|
backgroundClip: "padding-box"
|
|
14684
14684
|
}
|
|
14685
14685
|
}, {
|
|
@@ -14687,7 +14687,7 @@ const MenuItemRoot = styled(ButtonBase, {
|
|
|
14687
14687
|
ownerState
|
|
14688
14688
|
}) => !ownerState.dense,
|
|
14689
14689
|
style: {
|
|
14690
|
-
[
|
|
14690
|
+
[theme.breakpoints.up("sm")]: {
|
|
14691
14691
|
minHeight: "auto"
|
|
14692
14692
|
}
|
|
14693
14693
|
}
|
|
@@ -14700,7 +14700,7 @@ const MenuItemRoot = styled(ButtonBase, {
|
|
|
14700
14700
|
// https://m2.material.io/components/menus#specs > Dense
|
|
14701
14701
|
paddingTop: 4,
|
|
14702
14702
|
paddingBottom: 4,
|
|
14703
|
-
...
|
|
14703
|
+
...theme.typography.body2,
|
|
14704
14704
|
[`& .${listItemIconClasses.root} svg`]: {
|
|
14705
14705
|
fontSize: "1.25rem"
|
|
14706
14706
|
}
|
|
@@ -14847,223 +14847,6 @@ function getReactElementRef(element) {
|
|
|
14847
14847
|
}
|
|
14848
14848
|
return element?.ref || null;
|
|
14849
14849
|
}
|
|
14850
|
-
var reactIs = { exports: {} };
|
|
14851
|
-
var reactIs_production = {};
|
|
14852
|
-
/**
|
|
14853
|
-
* @license React
|
|
14854
|
-
* react-is.production.js
|
|
14855
|
-
*
|
|
14856
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14857
|
-
*
|
|
14858
|
-
* This source code is licensed under the MIT license found in the
|
|
14859
|
-
* LICENSE file in the root directory of this source tree.
|
|
14860
|
-
*/
|
|
14861
|
-
var hasRequiredReactIs_production;
|
|
14862
|
-
function requireReactIs_production() {
|
|
14863
|
-
if (hasRequiredReactIs_production) return reactIs_production;
|
|
14864
|
-
hasRequiredReactIs_production = 1;
|
|
14865
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
14866
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
14867
|
-
function typeOf(object) {
|
|
14868
|
-
if ("object" === typeof object && null !== object) {
|
|
14869
|
-
var $$typeof = object.$$typeof;
|
|
14870
|
-
switch ($$typeof) {
|
|
14871
|
-
case REACT_ELEMENT_TYPE:
|
|
14872
|
-
switch (object = object.type, object) {
|
|
14873
|
-
case REACT_FRAGMENT_TYPE:
|
|
14874
|
-
case REACT_PROFILER_TYPE:
|
|
14875
|
-
case REACT_STRICT_MODE_TYPE:
|
|
14876
|
-
case REACT_SUSPENSE_TYPE:
|
|
14877
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
14878
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
14879
|
-
return object;
|
|
14880
|
-
default:
|
|
14881
|
-
switch (object = object && object.$$typeof, object) {
|
|
14882
|
-
case REACT_CONTEXT_TYPE:
|
|
14883
|
-
case REACT_FORWARD_REF_TYPE:
|
|
14884
|
-
case REACT_LAZY_TYPE:
|
|
14885
|
-
case REACT_MEMO_TYPE:
|
|
14886
|
-
return object;
|
|
14887
|
-
case REACT_CONSUMER_TYPE:
|
|
14888
|
-
return object;
|
|
14889
|
-
default:
|
|
14890
|
-
return $$typeof;
|
|
14891
|
-
}
|
|
14892
|
-
}
|
|
14893
|
-
case REACT_PORTAL_TYPE:
|
|
14894
|
-
return $$typeof;
|
|
14895
|
-
}
|
|
14896
|
-
}
|
|
14897
|
-
}
|
|
14898
|
-
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
14899
|
-
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
14900
|
-
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
|
14901
|
-
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
14902
|
-
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
14903
|
-
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
|
14904
|
-
reactIs_production.Memo = REACT_MEMO_TYPE;
|
|
14905
|
-
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
|
14906
|
-
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
|
14907
|
-
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
14908
|
-
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
14909
|
-
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
14910
|
-
reactIs_production.isContextConsumer = function(object) {
|
|
14911
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
14912
|
-
};
|
|
14913
|
-
reactIs_production.isContextProvider = function(object) {
|
|
14914
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
14915
|
-
};
|
|
14916
|
-
reactIs_production.isElement = function(object) {
|
|
14917
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
14918
|
-
};
|
|
14919
|
-
reactIs_production.isForwardRef = function(object) {
|
|
14920
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
14921
|
-
};
|
|
14922
|
-
reactIs_production.isFragment = function(object) {
|
|
14923
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
14924
|
-
};
|
|
14925
|
-
reactIs_production.isLazy = function(object) {
|
|
14926
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
14927
|
-
};
|
|
14928
|
-
reactIs_production.isMemo = function(object) {
|
|
14929
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
14930
|
-
};
|
|
14931
|
-
reactIs_production.isPortal = function(object) {
|
|
14932
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
14933
|
-
};
|
|
14934
|
-
reactIs_production.isProfiler = function(object) {
|
|
14935
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
14936
|
-
};
|
|
14937
|
-
reactIs_production.isStrictMode = function(object) {
|
|
14938
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
14939
|
-
};
|
|
14940
|
-
reactIs_production.isSuspense = function(object) {
|
|
14941
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
14942
|
-
};
|
|
14943
|
-
reactIs_production.isSuspenseList = function(object) {
|
|
14944
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
14945
|
-
};
|
|
14946
|
-
reactIs_production.isValidElementType = function(type) {
|
|
14947
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
14948
|
-
};
|
|
14949
|
-
reactIs_production.typeOf = typeOf;
|
|
14950
|
-
return reactIs_production;
|
|
14951
|
-
}
|
|
14952
|
-
var reactIs_development = {};
|
|
14953
|
-
/**
|
|
14954
|
-
* @license React
|
|
14955
|
-
* react-is.development.js
|
|
14956
|
-
*
|
|
14957
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14958
|
-
*
|
|
14959
|
-
* This source code is licensed under the MIT license found in the
|
|
14960
|
-
* LICENSE file in the root directory of this source tree.
|
|
14961
|
-
*/
|
|
14962
|
-
var hasRequiredReactIs_development;
|
|
14963
|
-
function requireReactIs_development() {
|
|
14964
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
14965
|
-
hasRequiredReactIs_development = 1;
|
|
14966
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
14967
|
-
function typeOf(object) {
|
|
14968
|
-
if ("object" === typeof object && null !== object) {
|
|
14969
|
-
var $$typeof = object.$$typeof;
|
|
14970
|
-
switch ($$typeof) {
|
|
14971
|
-
case REACT_ELEMENT_TYPE:
|
|
14972
|
-
switch (object = object.type, object) {
|
|
14973
|
-
case REACT_FRAGMENT_TYPE:
|
|
14974
|
-
case REACT_PROFILER_TYPE:
|
|
14975
|
-
case REACT_STRICT_MODE_TYPE:
|
|
14976
|
-
case REACT_SUSPENSE_TYPE:
|
|
14977
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
14978
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
14979
|
-
return object;
|
|
14980
|
-
default:
|
|
14981
|
-
switch (object = object && object.$$typeof, object) {
|
|
14982
|
-
case REACT_CONTEXT_TYPE:
|
|
14983
|
-
case REACT_FORWARD_REF_TYPE:
|
|
14984
|
-
case REACT_LAZY_TYPE:
|
|
14985
|
-
case REACT_MEMO_TYPE:
|
|
14986
|
-
return object;
|
|
14987
|
-
case REACT_CONSUMER_TYPE:
|
|
14988
|
-
return object;
|
|
14989
|
-
default:
|
|
14990
|
-
return $$typeof;
|
|
14991
|
-
}
|
|
14992
|
-
}
|
|
14993
|
-
case REACT_PORTAL_TYPE:
|
|
14994
|
-
return $$typeof;
|
|
14995
|
-
}
|
|
14996
|
-
}
|
|
14997
|
-
}
|
|
14998
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
14999
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
15000
|
-
reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
15001
|
-
reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
|
|
15002
|
-
reactIs_development.Element = REACT_ELEMENT_TYPE;
|
|
15003
|
-
reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
15004
|
-
reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
15005
|
-
reactIs_development.Lazy = REACT_LAZY_TYPE;
|
|
15006
|
-
reactIs_development.Memo = REACT_MEMO_TYPE;
|
|
15007
|
-
reactIs_development.Portal = REACT_PORTAL_TYPE;
|
|
15008
|
-
reactIs_development.Profiler = REACT_PROFILER_TYPE;
|
|
15009
|
-
reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
15010
|
-
reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
|
|
15011
|
-
reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
15012
|
-
reactIs_development.isContextConsumer = function(object) {
|
|
15013
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
15014
|
-
};
|
|
15015
|
-
reactIs_development.isContextProvider = function(object) {
|
|
15016
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
15017
|
-
};
|
|
15018
|
-
reactIs_development.isElement = function(object) {
|
|
15019
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
15020
|
-
};
|
|
15021
|
-
reactIs_development.isForwardRef = function(object) {
|
|
15022
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
15023
|
-
};
|
|
15024
|
-
reactIs_development.isFragment = function(object) {
|
|
15025
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
15026
|
-
};
|
|
15027
|
-
reactIs_development.isLazy = function(object) {
|
|
15028
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
15029
|
-
};
|
|
15030
|
-
reactIs_development.isMemo = function(object) {
|
|
15031
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
15032
|
-
};
|
|
15033
|
-
reactIs_development.isPortal = function(object) {
|
|
15034
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
15035
|
-
};
|
|
15036
|
-
reactIs_development.isProfiler = function(object) {
|
|
15037
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
15038
|
-
};
|
|
15039
|
-
reactIs_development.isStrictMode = function(object) {
|
|
15040
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
15041
|
-
};
|
|
15042
|
-
reactIs_development.isSuspense = function(object) {
|
|
15043
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
15044
|
-
};
|
|
15045
|
-
reactIs_development.isSuspenseList = function(object) {
|
|
15046
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
15047
|
-
};
|
|
15048
|
-
reactIs_development.isValidElementType = function(type) {
|
|
15049
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
15050
|
-
};
|
|
15051
|
-
reactIs_development.typeOf = typeOf;
|
|
15052
|
-
})();
|
|
15053
|
-
return reactIs_development;
|
|
15054
|
-
}
|
|
15055
|
-
var hasRequiredReactIs;
|
|
15056
|
-
function requireReactIs() {
|
|
15057
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
15058
|
-
hasRequiredReactIs = 1;
|
|
15059
|
-
if (process.env.NODE_ENV === "production") {
|
|
15060
|
-
reactIs.exports = /* @__PURE__ */ requireReactIs_production();
|
|
15061
|
-
} else {
|
|
15062
|
-
reactIs.exports = /* @__PURE__ */ requireReactIs_development();
|
|
15063
|
-
}
|
|
15064
|
-
return reactIs.exports;
|
|
15065
|
-
}
|
|
15066
|
-
var reactIsExports = /* @__PURE__ */ requireReactIs();
|
|
15067
14850
|
function HTMLElementType(props, propName, componentName, location, propFullName) {
|
|
15068
14851
|
if (process.env.NODE_ENV === "production") {
|
|
15069
14852
|
return null;
|
|
@@ -15427,7 +15210,7 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15427
15210
|
} = props;
|
|
15428
15211
|
const timer = useTimeout();
|
|
15429
15212
|
const autoTimeout = React.useRef();
|
|
15430
|
-
const
|
|
15213
|
+
const theme = useTheme();
|
|
15431
15214
|
const nodeRef = React.useRef(null);
|
|
15432
15215
|
const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);
|
|
15433
15216
|
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
@@ -15456,15 +15239,15 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15456
15239
|
});
|
|
15457
15240
|
let duration2;
|
|
15458
15241
|
if (timeout2 === "auto") {
|
|
15459
|
-
duration2 =
|
|
15242
|
+
duration2 = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
|
15460
15243
|
autoTimeout.current = duration2;
|
|
15461
15244
|
} else {
|
|
15462
15245
|
duration2 = transitionDuration;
|
|
15463
15246
|
}
|
|
15464
|
-
node.style.transition = [
|
|
15247
|
+
node.style.transition = [theme.transitions.create("opacity", {
|
|
15465
15248
|
duration: duration2,
|
|
15466
15249
|
delay
|
|
15467
|
-
}),
|
|
15250
|
+
}), theme.transitions.create("transform", {
|
|
15468
15251
|
duration: isWebKit154 ? duration2 : duration2 * 0.666,
|
|
15469
15252
|
delay,
|
|
15470
15253
|
easing: transitionTimingFunction
|
|
@@ -15489,15 +15272,15 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15489
15272
|
});
|
|
15490
15273
|
let duration2;
|
|
15491
15274
|
if (timeout2 === "auto") {
|
|
15492
|
-
duration2 =
|
|
15275
|
+
duration2 = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
|
15493
15276
|
autoTimeout.current = duration2;
|
|
15494
15277
|
} else {
|
|
15495
15278
|
duration2 = transitionDuration;
|
|
15496
15279
|
}
|
|
15497
|
-
node.style.transition = [
|
|
15280
|
+
node.style.transition = [theme.transitions.create("opacity", {
|
|
15498
15281
|
duration: duration2,
|
|
15499
15282
|
delay
|
|
15500
|
-
}),
|
|
15283
|
+
}), theme.transitions.create("transform", {
|
|
15501
15284
|
duration: isWebKit154 ? duration2 : duration2 * 0.666,
|
|
15502
15285
|
delay: isWebKit154 ? delay : delay || duration2 * 0.333,
|
|
15503
15286
|
easing: transitionTimingFunction
|
|
@@ -16148,10 +15931,10 @@ const styles$1 = {
|
|
|
16148
15931
|
}
|
|
16149
15932
|
};
|
|
16150
15933
|
const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
16151
|
-
const
|
|
15934
|
+
const theme = useTheme();
|
|
16152
15935
|
const defaultTimeout = {
|
|
16153
|
-
enter:
|
|
16154
|
-
exit:
|
|
15936
|
+
enter: theme.transitions.duration.enteringScreen,
|
|
15937
|
+
exit: theme.transitions.duration.leavingScreen
|
|
16155
15938
|
};
|
|
16156
15939
|
const {
|
|
16157
15940
|
addEndListener,
|
|
@@ -16193,8 +15976,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
16193
15976
|
}, {
|
|
16194
15977
|
mode: "enter"
|
|
16195
15978
|
});
|
|
16196
|
-
node.style.webkitTransition =
|
|
16197
|
-
node.style.transition =
|
|
15979
|
+
node.style.webkitTransition = theme.transitions.create("opacity", transitionProps);
|
|
15980
|
+
node.style.transition = theme.transitions.create("opacity", transitionProps);
|
|
16198
15981
|
if (onEnter) {
|
|
16199
15982
|
onEnter(node, isAppearing);
|
|
16200
15983
|
}
|
|
@@ -16209,8 +15992,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
16209
15992
|
}, {
|
|
16210
15993
|
mode: "exit"
|
|
16211
15994
|
});
|
|
16212
|
-
node.style.webkitTransition =
|
|
16213
|
-
node.style.transition =
|
|
15995
|
+
node.style.webkitTransition = theme.transitions.create("opacity", transitionProps);
|
|
15996
|
+
node.style.transition = theme.transitions.create("opacity", transitionProps);
|
|
16214
15997
|
if (onExit) {
|
|
16215
15998
|
onExit(node);
|
|
16216
15999
|
}
|
|
@@ -16714,10 +16497,10 @@ const ModalRoot = styled("div", {
|
|
|
16714
16497
|
return [styles2.root, !ownerState.open && ownerState.exited && styles2.hidden];
|
|
16715
16498
|
}
|
|
16716
16499
|
})(memoTheme(({
|
|
16717
|
-
theme
|
|
16500
|
+
theme
|
|
16718
16501
|
}) => ({
|
|
16719
16502
|
position: "fixed",
|
|
16720
|
-
zIndex: (
|
|
16503
|
+
zIndex: (theme.vars || theme).zIndex.modal,
|
|
16721
16504
|
right: 0,
|
|
16722
16505
|
bottom: 0,
|
|
16723
16506
|
top: 0,
|
|
@@ -16768,7 +16551,7 @@ const Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref) {
|
|
|
16768
16551
|
slotProps = {},
|
|
16769
16552
|
slots = {},
|
|
16770
16553
|
// eslint-disable-next-line react/prop-types
|
|
16771
|
-
theme
|
|
16554
|
+
theme,
|
|
16772
16555
|
...other
|
|
16773
16556
|
} = props;
|
|
16774
16557
|
const propsWithDefaults = {
|
|
@@ -17918,7 +17701,7 @@ const useUtilityClasses$7 = (ownerState) => {
|
|
|
17918
17701
|
const StyledSelectSelect = styled("select", {
|
|
17919
17702
|
name: "MuiNativeSelect"
|
|
17920
17703
|
})(({
|
|
17921
|
-
theme
|
|
17704
|
+
theme
|
|
17922
17705
|
}) => ({
|
|
17923
17706
|
// Reset
|
|
17924
17707
|
MozAppearance: "none",
|
|
@@ -17941,7 +17724,7 @@ const StyledSelectSelect = styled("select", {
|
|
|
17941
17724
|
height: "auto"
|
|
17942
17725
|
},
|
|
17943
17726
|
"&:not([multiple]) option, &:not([multiple]) optgroup": {
|
|
17944
|
-
backgroundColor: (
|
|
17727
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
17945
17728
|
},
|
|
17946
17729
|
variants: [{
|
|
17947
17730
|
props: ({
|
|
@@ -17969,9 +17752,9 @@ const StyledSelectSelect = styled("select", {
|
|
|
17969
17752
|
variant: "outlined"
|
|
17970
17753
|
},
|
|
17971
17754
|
style: {
|
|
17972
|
-
borderRadius: (
|
|
17755
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
17973
17756
|
"&:focus": {
|
|
17974
|
-
borderRadius: (
|
|
17757
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
17975
17758
|
// Reset the reset for Chrome style
|
|
17976
17759
|
},
|
|
17977
17760
|
"&&&": {
|
|
@@ -17996,7 +17779,7 @@ const NativeSelectSelect = styled(StyledSelectSelect, {
|
|
|
17996
17779
|
const StyledSelectIcon = styled("svg", {
|
|
17997
17780
|
name: "MuiNativeSelect"
|
|
17998
17781
|
})(({
|
|
17999
|
-
theme
|
|
17782
|
+
theme
|
|
18000
17783
|
}) => ({
|
|
18001
17784
|
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
18002
17785
|
// to the input and to support wrapping tags..
|
|
@@ -18006,9 +17789,9 @@ const StyledSelectIcon = styled("svg", {
|
|
|
18006
17789
|
top: "calc(50% - .5em)",
|
|
18007
17790
|
// Don't block pointer events on the select under the icon.
|
|
18008
17791
|
pointerEvents: "none",
|
|
18009
|
-
color: (
|
|
17792
|
+
color: (theme.vars || theme).palette.action.active,
|
|
18010
17793
|
[`&.${nativeSelectClasses.disabled}`]: {
|
|
18011
|
-
color: (
|
|
17794
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
18012
17795
|
},
|
|
18013
17796
|
variants: [{
|
|
18014
17797
|
props: ({
|
|
@@ -19024,10 +18807,10 @@ const InputBaseRoot = styled("div", {
|
|
|
19024
18807
|
slot: "Root",
|
|
19025
18808
|
overridesResolver: rootOverridesResolver
|
|
19026
18809
|
})(memoTheme(({
|
|
19027
|
-
theme
|
|
18810
|
+
theme
|
|
19028
18811
|
}) => ({
|
|
19029
|
-
...
|
|
19030
|
-
color: (
|
|
18812
|
+
...theme.typography.body1,
|
|
18813
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
19031
18814
|
lineHeight: "1.4375em",
|
|
19032
18815
|
// 23px
|
|
19033
18816
|
boxSizing: "border-box",
|
|
@@ -19037,7 +18820,7 @@ const InputBaseRoot = styled("div", {
|
|
|
19037
18820
|
display: "inline-flex",
|
|
19038
18821
|
alignItems: "center",
|
|
19039
18822
|
[`&.${inputBaseClasses.disabled}`]: {
|
|
19040
|
-
color: (
|
|
18823
|
+
color: (theme.vars || theme).palette.text.disabled,
|
|
19041
18824
|
cursor: "default"
|
|
19042
18825
|
},
|
|
19043
18826
|
variants: [{
|
|
@@ -19069,25 +18852,25 @@ const InputBaseInput = styled("input", {
|
|
|
19069
18852
|
slot: "Input",
|
|
19070
18853
|
overridesResolver: inputOverridesResolver
|
|
19071
18854
|
})(memoTheme(({
|
|
19072
|
-
theme
|
|
18855
|
+
theme
|
|
19073
18856
|
}) => {
|
|
19074
|
-
const light2 =
|
|
18857
|
+
const light2 = theme.palette.mode === "light";
|
|
19075
18858
|
const placeholder = {
|
|
19076
18859
|
color: "currentColor",
|
|
19077
|
-
...
|
|
19078
|
-
opacity:
|
|
18860
|
+
...theme.vars ? {
|
|
18861
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
19079
18862
|
} : {
|
|
19080
18863
|
opacity: light2 ? 0.42 : 0.5
|
|
19081
18864
|
},
|
|
19082
|
-
transition:
|
|
19083
|
-
duration:
|
|
18865
|
+
transition: theme.transitions.create("opacity", {
|
|
18866
|
+
duration: theme.transitions.duration.shorter
|
|
19084
18867
|
})
|
|
19085
18868
|
};
|
|
19086
18869
|
const placeholderHidden = {
|
|
19087
18870
|
opacity: "0 !important"
|
|
19088
18871
|
};
|
|
19089
|
-
const placeholderVisible =
|
|
19090
|
-
opacity:
|
|
18872
|
+
const placeholderVisible = theme.vars ? {
|
|
18873
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
19091
18874
|
} : {
|
|
19092
18875
|
opacity: light2 ? 0.42 : 0.5
|
|
19093
18876
|
};
|
|
@@ -19140,7 +18923,7 @@ const InputBaseInput = styled("input", {
|
|
|
19140
18923
|
[`&.${inputBaseClasses.disabled}`]: {
|
|
19141
18924
|
opacity: 1,
|
|
19142
18925
|
// Reset iOS opacity
|
|
19143
|
-
WebkitTextFillColor: (
|
|
18926
|
+
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled
|
|
19144
18927
|
// Fix opacity Safari bug
|
|
19145
18928
|
},
|
|
19146
18929
|
variants: [{
|
|
@@ -19726,12 +19509,12 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19726
19509
|
return [...rootOverridesResolver(props, styles2), !ownerState.disableUnderline && styles2.underline];
|
|
19727
19510
|
}
|
|
19728
19511
|
})(memoTheme(({
|
|
19729
|
-
theme
|
|
19512
|
+
theme
|
|
19730
19513
|
}) => {
|
|
19731
|
-
const light2 =
|
|
19514
|
+
const light2 = theme.palette.mode === "light";
|
|
19732
19515
|
let bottomLineColor = light2 ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
19733
|
-
if (
|
|
19734
|
-
bottomLineColor =
|
|
19516
|
+
if (theme.vars) {
|
|
19517
|
+
bottomLineColor = theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline);
|
|
19735
19518
|
}
|
|
19736
19519
|
return {
|
|
19737
19520
|
position: "relative",
|
|
@@ -19756,9 +19539,9 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19756
19539
|
position: "absolute",
|
|
19757
19540
|
right: 0,
|
|
19758
19541
|
transform: "scaleX(0)",
|
|
19759
|
-
transition:
|
|
19760
|
-
duration:
|
|
19761
|
-
easing:
|
|
19542
|
+
transition: theme.transitions.create("transform", {
|
|
19543
|
+
duration: theme.transitions.duration.shorter,
|
|
19544
|
+
easing: theme.transitions.easing.easeOut
|
|
19762
19545
|
}),
|
|
19763
19546
|
pointerEvents: "none"
|
|
19764
19547
|
// Transparent to the hover style.
|
|
@@ -19770,7 +19553,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19770
19553
|
},
|
|
19771
19554
|
[`&.${inputClasses.error}`]: {
|
|
19772
19555
|
"&::before, &::after": {
|
|
19773
|
-
borderBottomColor: (
|
|
19556
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
19774
19557
|
}
|
|
19775
19558
|
},
|
|
19776
19559
|
"&::before": {
|
|
@@ -19780,14 +19563,14 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19780
19563
|
content: '"\\00a0"',
|
|
19781
19564
|
position: "absolute",
|
|
19782
19565
|
right: 0,
|
|
19783
|
-
transition:
|
|
19784
|
-
duration:
|
|
19566
|
+
transition: theme.transitions.create("border-bottom-color", {
|
|
19567
|
+
duration: theme.transitions.duration.shorter
|
|
19785
19568
|
}),
|
|
19786
19569
|
pointerEvents: "none"
|
|
19787
19570
|
// Transparent to the hover style.
|
|
19788
19571
|
},
|
|
19789
19572
|
[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
|
|
19790
|
-
borderBottom: `2px solid ${(
|
|
19573
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
19791
19574
|
// Reset on touch devices, it doesn't add specificity
|
|
19792
19575
|
"@media (hover: none)": {
|
|
19793
19576
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -19797,14 +19580,14 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19797
19580
|
borderBottomStyle: "dotted"
|
|
19798
19581
|
}
|
|
19799
19582
|
}
|
|
19800
|
-
}, ...Object.entries(
|
|
19583
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
19801
19584
|
props: {
|
|
19802
19585
|
color: color2,
|
|
19803
19586
|
disableUnderline: false
|
|
19804
19587
|
},
|
|
19805
19588
|
style: {
|
|
19806
19589
|
"&::after": {
|
|
19807
|
-
borderBottom: `2px solid ${(
|
|
19590
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color2].main}`
|
|
19808
19591
|
}
|
|
19809
19592
|
}
|
|
19810
19593
|
}))]
|
|
@@ -20084,34 +19867,34 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20084
19867
|
return [...rootOverridesResolver(props, styles2), !ownerState.disableUnderline && styles2.underline];
|
|
20085
19868
|
}
|
|
20086
19869
|
})(memoTheme(({
|
|
20087
|
-
theme
|
|
19870
|
+
theme
|
|
20088
19871
|
}) => {
|
|
20089
|
-
const light2 =
|
|
19872
|
+
const light2 = theme.palette.mode === "light";
|
|
20090
19873
|
const bottomLineColor = light2 ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
20091
19874
|
const backgroundColor2 = light2 ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)";
|
|
20092
19875
|
const hoverBackground = light2 ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)";
|
|
20093
19876
|
const disabledBackground = light2 ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
20094
19877
|
return {
|
|
20095
19878
|
position: "relative",
|
|
20096
|
-
backgroundColor:
|
|
20097
|
-
borderTopLeftRadius: (
|
|
20098
|
-
borderTopRightRadius: (
|
|
20099
|
-
transition:
|
|
20100
|
-
duration:
|
|
20101
|
-
easing:
|
|
19879
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2,
|
|
19880
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
19881
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
19882
|
+
transition: theme.transitions.create("background-color", {
|
|
19883
|
+
duration: theme.transitions.duration.shorter,
|
|
19884
|
+
easing: theme.transitions.easing.easeOut
|
|
20102
19885
|
}),
|
|
20103
19886
|
"&:hover": {
|
|
20104
|
-
backgroundColor:
|
|
19887
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
|
|
20105
19888
|
// Reset on touch devices, it doesn't add specificity
|
|
20106
19889
|
"@media (hover: none)": {
|
|
20107
|
-
backgroundColor:
|
|
19890
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2
|
|
20108
19891
|
}
|
|
20109
19892
|
},
|
|
20110
19893
|
[`&.${filledInputClasses.focused}`]: {
|
|
20111
|
-
backgroundColor:
|
|
19894
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2
|
|
20112
19895
|
},
|
|
20113
19896
|
[`&.${filledInputClasses.disabled}`]: {
|
|
20114
|
-
backgroundColor:
|
|
19897
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
|
|
20115
19898
|
},
|
|
20116
19899
|
variants: [{
|
|
20117
19900
|
props: ({
|
|
@@ -20125,9 +19908,9 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20125
19908
|
position: "absolute",
|
|
20126
19909
|
right: 0,
|
|
20127
19910
|
transform: "scaleX(0)",
|
|
20128
|
-
transition:
|
|
20129
|
-
duration:
|
|
20130
|
-
easing:
|
|
19911
|
+
transition: theme.transitions.create("transform", {
|
|
19912
|
+
duration: theme.transitions.duration.shorter,
|
|
19913
|
+
easing: theme.transitions.easing.easeOut
|
|
20131
19914
|
}),
|
|
20132
19915
|
pointerEvents: "none"
|
|
20133
19916
|
// Transparent to the hover style.
|
|
@@ -20139,37 +19922,37 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20139
19922
|
},
|
|
20140
19923
|
[`&.${filledInputClasses.error}`]: {
|
|
20141
19924
|
"&::before, &::after": {
|
|
20142
|
-
borderBottomColor: (
|
|
19925
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
20143
19926
|
}
|
|
20144
19927
|
},
|
|
20145
19928
|
"&::before": {
|
|
20146
|
-
borderBottom: `1px solid ${
|
|
19929
|
+
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
20147
19930
|
left: 0,
|
|
20148
19931
|
bottom: 0,
|
|
20149
19932
|
content: '"\\00a0"',
|
|
20150
19933
|
position: "absolute",
|
|
20151
19934
|
right: 0,
|
|
20152
|
-
transition:
|
|
20153
|
-
duration:
|
|
19935
|
+
transition: theme.transitions.create("border-bottom-color", {
|
|
19936
|
+
duration: theme.transitions.duration.shorter
|
|
20154
19937
|
}),
|
|
20155
19938
|
pointerEvents: "none"
|
|
20156
19939
|
// Transparent to the hover style.
|
|
20157
19940
|
},
|
|
20158
19941
|
[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {
|
|
20159
|
-
borderBottom: `1px solid ${(
|
|
19942
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
20160
19943
|
},
|
|
20161
19944
|
[`&.${filledInputClasses.disabled}:before`]: {
|
|
20162
19945
|
borderBottomStyle: "dotted"
|
|
20163
19946
|
}
|
|
20164
19947
|
}
|
|
20165
|
-
}, ...Object.entries(
|
|
19948
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
20166
19949
|
props: {
|
|
20167
19950
|
disableUnderline: false,
|
|
20168
19951
|
color: color2
|
|
20169
19952
|
},
|
|
20170
19953
|
style: {
|
|
20171
19954
|
"&::after": {
|
|
20172
|
-
borderBottom: `2px solid ${(
|
|
19955
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color2]?.main}`
|
|
20173
19956
|
}
|
|
20174
19957
|
}
|
|
20175
19958
|
})), {
|
|
@@ -20226,27 +20009,27 @@ const FilledInputInput = styled(InputBaseInput, {
|
|
|
20226
20009
|
slot: "Input",
|
|
20227
20010
|
overridesResolver: inputOverridesResolver
|
|
20228
20011
|
})(memoTheme(({
|
|
20229
|
-
theme
|
|
20012
|
+
theme
|
|
20230
20013
|
}) => ({
|
|
20231
20014
|
paddingTop: 25,
|
|
20232
20015
|
paddingRight: 12,
|
|
20233
20016
|
paddingBottom: 8,
|
|
20234
20017
|
paddingLeft: 12,
|
|
20235
|
-
...!
|
|
20018
|
+
...!theme.vars && {
|
|
20236
20019
|
"&:-webkit-autofill": {
|
|
20237
|
-
WebkitBoxShadow:
|
|
20238
|
-
WebkitTextFillColor:
|
|
20239
|
-
caretColor:
|
|
20020
|
+
WebkitBoxShadow: theme.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
20021
|
+
WebkitTextFillColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20022
|
+
caretColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20240
20023
|
borderTopLeftRadius: "inherit",
|
|
20241
20024
|
borderTopRightRadius: "inherit"
|
|
20242
20025
|
}
|
|
20243
20026
|
},
|
|
20244
|
-
...
|
|
20027
|
+
...theme.vars && {
|
|
20245
20028
|
"&:-webkit-autofill": {
|
|
20246
20029
|
borderTopLeftRadius: "inherit",
|
|
20247
20030
|
borderTopRightRadius: "inherit"
|
|
20248
20031
|
},
|
|
20249
|
-
[
|
|
20032
|
+
[theme.getColorSchemeSelector("dark")]: {
|
|
20250
20033
|
"&:-webkit-autofill": {
|
|
20251
20034
|
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
20252
20035
|
WebkitTextFillColor: "#fff",
|
|
@@ -20575,7 +20358,7 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20575
20358
|
name: "MuiNotchedOutlined",
|
|
20576
20359
|
shouldForwardProp: rootShouldForwardProp
|
|
20577
20360
|
})(memoTheme(({
|
|
20578
|
-
theme
|
|
20361
|
+
theme
|
|
20579
20362
|
}) => ({
|
|
20580
20363
|
float: "unset",
|
|
20581
20364
|
// Fix conflict with bootstrap
|
|
@@ -20591,9 +20374,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20591
20374
|
padding: 0,
|
|
20592
20375
|
lineHeight: "11px",
|
|
20593
20376
|
// sync with `height` in `legend` styles
|
|
20594
|
-
transition:
|
|
20377
|
+
transition: theme.transitions.create("width", {
|
|
20595
20378
|
duration: 150,
|
|
20596
|
-
easing:
|
|
20379
|
+
easing: theme.transitions.easing.easeOut
|
|
20597
20380
|
})
|
|
20598
20381
|
}
|
|
20599
20382
|
}, {
|
|
@@ -20609,9 +20392,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20609
20392
|
fontSize: "0.75em",
|
|
20610
20393
|
visibility: "hidden",
|
|
20611
20394
|
maxWidth: 0.01,
|
|
20612
|
-
transition:
|
|
20395
|
+
transition: theme.transitions.create("max-width", {
|
|
20613
20396
|
duration: 50,
|
|
20614
|
-
easing:
|
|
20397
|
+
easing: theme.transitions.easing.easeOut
|
|
20615
20398
|
}),
|
|
20616
20399
|
whiteSpace: "nowrap",
|
|
20617
20400
|
"& > span": {
|
|
@@ -20628,9 +20411,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20628
20411
|
}) => ownerState.withLabel && ownerState.notched,
|
|
20629
20412
|
style: {
|
|
20630
20413
|
maxWidth: "100%",
|
|
20631
|
-
transition:
|
|
20414
|
+
transition: theme.transitions.create("max-width", {
|
|
20632
20415
|
duration: 100,
|
|
20633
|
-
easing:
|
|
20416
|
+
easing: theme.transitions.easing.easeOut,
|
|
20634
20417
|
delay: 50
|
|
20635
20418
|
})
|
|
20636
20419
|
}
|
|
@@ -20726,31 +20509,31 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
20726
20509
|
slot: "Root",
|
|
20727
20510
|
overridesResolver: rootOverridesResolver
|
|
20728
20511
|
})(memoTheme(({
|
|
20729
|
-
theme
|
|
20512
|
+
theme
|
|
20730
20513
|
}) => {
|
|
20731
|
-
const borderColor2 =
|
|
20514
|
+
const borderColor2 = theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
20732
20515
|
return {
|
|
20733
20516
|
position: "relative",
|
|
20734
|
-
borderRadius: (
|
|
20517
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
20735
20518
|
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
20736
|
-
borderColor: (
|
|
20519
|
+
borderColor: (theme.vars || theme).palette.text.primary
|
|
20737
20520
|
},
|
|
20738
20521
|
// Reset on touch devices, it doesn't add specificity
|
|
20739
20522
|
"@media (hover: none)": {
|
|
20740
20523
|
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
20741
|
-
borderColor:
|
|
20524
|
+
borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor2
|
|
20742
20525
|
}
|
|
20743
20526
|
},
|
|
20744
20527
|
[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20745
20528
|
borderWidth: 2
|
|
20746
20529
|
},
|
|
20747
|
-
variants: [...Object.entries(
|
|
20530
|
+
variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
20748
20531
|
props: {
|
|
20749
20532
|
color: color2
|
|
20750
20533
|
},
|
|
20751
20534
|
style: {
|
|
20752
20535
|
[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20753
|
-
borderColor: (
|
|
20536
|
+
borderColor: (theme.vars || theme).palette[color2].main
|
|
20754
20537
|
}
|
|
20755
20538
|
}
|
|
20756
20539
|
})), {
|
|
@@ -20758,10 +20541,10 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
20758
20541
|
// to overide the above style
|
|
20759
20542
|
style: {
|
|
20760
20543
|
[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20761
|
-
borderColor: (
|
|
20544
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
20762
20545
|
},
|
|
20763
20546
|
[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20764
|
-
borderColor: (
|
|
20547
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
20765
20548
|
}
|
|
20766
20549
|
}
|
|
20767
20550
|
}, {
|
|
@@ -20800,11 +20583,11 @@ const NotchedOutlineRoot = styled(NotchedOutline, {
|
|
|
20800
20583
|
name: "MuiOutlinedInput",
|
|
20801
20584
|
slot: "NotchedOutline"
|
|
20802
20585
|
})(memoTheme(({
|
|
20803
|
-
theme
|
|
20586
|
+
theme
|
|
20804
20587
|
}) => {
|
|
20805
|
-
const borderColor2 =
|
|
20588
|
+
const borderColor2 = theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
20806
20589
|
return {
|
|
20807
|
-
borderColor:
|
|
20590
|
+
borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor2
|
|
20808
20591
|
};
|
|
20809
20592
|
}));
|
|
20810
20593
|
const OutlinedInputInput = styled(InputBaseInput, {
|
|
@@ -20812,22 +20595,22 @@ const OutlinedInputInput = styled(InputBaseInput, {
|
|
|
20812
20595
|
slot: "Input",
|
|
20813
20596
|
overridesResolver: inputOverridesResolver
|
|
20814
20597
|
})(memoTheme(({
|
|
20815
|
-
theme
|
|
20598
|
+
theme
|
|
20816
20599
|
}) => ({
|
|
20817
20600
|
padding: "16.5px 14px",
|
|
20818
|
-
...!
|
|
20601
|
+
...!theme.vars && {
|
|
20819
20602
|
"&:-webkit-autofill": {
|
|
20820
|
-
WebkitBoxShadow:
|
|
20821
|
-
WebkitTextFillColor:
|
|
20822
|
-
caretColor:
|
|
20603
|
+
WebkitBoxShadow: theme.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
20604
|
+
WebkitTextFillColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20605
|
+
caretColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20823
20606
|
borderRadius: "inherit"
|
|
20824
20607
|
}
|
|
20825
20608
|
},
|
|
20826
|
-
...
|
|
20609
|
+
...theme.vars && {
|
|
20827
20610
|
"&:-webkit-autofill": {
|
|
20828
20611
|
borderRadius: "inherit"
|
|
20829
20612
|
},
|
|
20830
|
-
[
|
|
20613
|
+
[theme.getColorSchemeSelector("dark")]: {
|
|
20831
20614
|
"&:-webkit-autofill": {
|
|
20832
20615
|
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
20833
20616
|
WebkitTextFillColor: "#fff",
|
|
@@ -22501,21 +22284,21 @@ function SplitPixForm({
|
|
|
22501
22284
|
fullWidth: true
|
|
22502
22285
|
}
|
|
22503
22286
|
),
|
|
22504
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { fullWidth: true, error: !!errors.
|
|
22287
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { fullWidth: true, error: !!errors.uf, children: [
|
|
22505
22288
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InputLabel, { children: "Tipo de Documento" }),
|
|
22506
22289
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
22507
22290
|
Select,
|
|
22508
22291
|
{
|
|
22292
|
+
label: "Tipo de Documento",
|
|
22509
22293
|
value: docType,
|
|
22510
22294
|
onChange: (e) => setDocType(e.target.value),
|
|
22511
22295
|
children: [
|
|
22512
22296
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, { value: "CPF", children: "CPF" }),
|
|
22513
22297
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, { value: "CNPJ", children: "CNPJ" }),
|
|
22514
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, { value: "
|
|
22298
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem, { value: "Passaporte", children: "Passaporte" })
|
|
22515
22299
|
]
|
|
22516
22300
|
}
|
|
22517
|
-
)
|
|
22518
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { children: errors.docType })
|
|
22301
|
+
)
|
|
22519
22302
|
] }),
|
|
22520
22303
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22521
22304
|
TextField,
|
|
@@ -22643,66 +22426,6 @@ function SplitPixForm({
|
|
|
22643
22426
|
) })
|
|
22644
22427
|
] }) });
|
|
22645
22428
|
}
|
|
22646
|
-
const brand = {
|
|
22647
|
-
primary: "#6C4CE7",
|
|
22648
|
-
// roxo da plataforma
|
|
22649
|
-
primaryHover: "#5a3ed4",
|
|
22650
|
-
ink: "#111827",
|
|
22651
|
-
muted: "#6b7280",
|
|
22652
|
-
bg: "#f6f7fb",
|
|
22653
|
-
surface: "#ffffff",
|
|
22654
|
-
border: "#e5e7eb",
|
|
22655
|
-
ring: "rgba(108,76,231,.25)"
|
|
22656
|
-
};
|
|
22657
|
-
const theme = createTheme({
|
|
22658
|
-
palette: {
|
|
22659
|
-
mode: "light",
|
|
22660
|
-
primary: { main: brand.primary },
|
|
22661
|
-
text: { primary: brand.ink, secondary: brand.muted },
|
|
22662
|
-
background: { default: brand.bg, paper: brand.surface }
|
|
22663
|
-
},
|
|
22664
|
-
shape: { borderRadius: 10 },
|
|
22665
|
-
typography: {
|
|
22666
|
-
fontFamily: `"Inter","Segoe UI",Roboto,Ubuntu,Helvetica,Arial,sans-serif`,
|
|
22667
|
-
h6: { fontWeight: 700 },
|
|
22668
|
-
button: { textTransform: "none", fontWeight: 700 }
|
|
22669
|
-
},
|
|
22670
|
-
components: {
|
|
22671
|
-
MuiCard: {
|
|
22672
|
-
styleOverrides: {
|
|
22673
|
-
root: {
|
|
22674
|
-
border: `1px solid ${brand.border}`,
|
|
22675
|
-
boxShadow: "0 10px 30px rgba(2,6,23,.06)"
|
|
22676
|
-
}
|
|
22677
|
-
}
|
|
22678
|
-
},
|
|
22679
|
-
MuiTextField: {
|
|
22680
|
-
defaultProps: { size: "medium" }
|
|
22681
|
-
},
|
|
22682
|
-
MuiOutlinedInput: {
|
|
22683
|
-
styleOverrides: {
|
|
22684
|
-
root: {
|
|
22685
|
-
background: "#fff",
|
|
22686
|
-
"& fieldset": { borderColor: brand.border },
|
|
22687
|
-
"&:hover fieldset": { borderColor: brand.primary },
|
|
22688
|
-
"&.Mui-focused fieldset": { borderColor: brand.primary, boxShadow: `0 0 0 3px ${brand.ring}` }
|
|
22689
|
-
},
|
|
22690
|
-
input: { paddingTop: 14, paddingBottom: 14 }
|
|
22691
|
-
}
|
|
22692
|
-
},
|
|
22693
|
-
MuiButton: {
|
|
22694
|
-
styleOverrides: {
|
|
22695
|
-
root: { borderRadius: 12, paddingBlock: 14 },
|
|
22696
|
-
containedPrimary: { boxShadow: "0 10px 24px rgba(108,76,231,.22)" }
|
|
22697
|
-
}
|
|
22698
|
-
},
|
|
22699
|
-
MuiDivider: {
|
|
22700
|
-
styleOverrides: {
|
|
22701
|
-
root: { borderColor: brand.border }
|
|
22702
|
-
}
|
|
22703
|
-
}
|
|
22704
|
-
}
|
|
22705
|
-
});
|
|
22706
22429
|
function CheckoutFlowContent({
|
|
22707
22430
|
step,
|
|
22708
22431
|
setStep,
|
|
@@ -22716,14 +22439,24 @@ function CheckoutFlowContent({
|
|
|
22716
22439
|
uuid,
|
|
22717
22440
|
producao,
|
|
22718
22441
|
onResponse,
|
|
22719
|
-
paymentEnabled
|
|
22442
|
+
paymentEnabled,
|
|
22443
|
+
cor
|
|
22720
22444
|
}) {
|
|
22721
22445
|
useMediaQuery("(max-width:900px)");
|
|
22446
|
+
useTheme();
|
|
22722
22447
|
const primaryButtons = [];
|
|
22723
22448
|
const listItems = [];
|
|
22724
22449
|
if (paymentEnabled?.creditCard) {
|
|
22725
22450
|
listItems.push(
|
|
22726
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("card"), sx:
|
|
22451
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("card"), sx: {
|
|
22452
|
+
border: `1px solid #ced2da`,
|
|
22453
|
+
borderRadius: 14,
|
|
22454
|
+
mb: 1.5,
|
|
22455
|
+
paddingBlock: 1.2,
|
|
22456
|
+
boxShadow: "0 6px 18px rgba(2,6,23,.04)",
|
|
22457
|
+
"& .MuiListItemIcon-root": { minWidth: 44, "& svg": { opacity: 0.9 } },
|
|
22458
|
+
"&:hover": { backgroundColor: "#f8fafc", boxShadow: "0 12px 24px rgba(2,6,23,.06)" }
|
|
22459
|
+
}, children: [
|
|
22727
22460
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CreditCardIcon, {}) }),
|
|
22728
22461
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22729
22462
|
ListItemText,
|
|
@@ -22738,7 +22471,15 @@ function CheckoutFlowContent({
|
|
|
22738
22471
|
}
|
|
22739
22472
|
if (paymentEnabled?.pix) {
|
|
22740
22473
|
listItems.push(
|
|
22741
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("pix"), sx:
|
|
22474
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("pix"), sx: {
|
|
22475
|
+
border: `1px solid #ced2da`,
|
|
22476
|
+
borderRadius: 14,
|
|
22477
|
+
mb: 1.5,
|
|
22478
|
+
paddingBlock: 1.2,
|
|
22479
|
+
boxShadow: "0 6px 18px rgba(2,6,23,.04)",
|
|
22480
|
+
"& .MuiListItemIcon-root": { minWidth: 44, "& svg": { opacity: 0.9 } },
|
|
22481
|
+
"&:hover": { backgroundColor: "#f8fafc", boxShadow: "0 12px 24px rgba(2,6,23,.06)" }
|
|
22482
|
+
}, children: [
|
|
22742
22483
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(QrCode2Icon, {}) }),
|
|
22743
22484
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22744
22485
|
ListItemText,
|
|
@@ -22806,14 +22547,88 @@ function CheckoutFlowContent({
|
|
|
22806
22547
|
) })
|
|
22807
22548
|
] }) });
|
|
22808
22549
|
}
|
|
22809
|
-
const
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22550
|
+
const createBrandTheme = (color2) => {
|
|
22551
|
+
const primary = color2?.startsWith("#") ? color2 : color2 ? `#${color2}` : "#6C4CE7";
|
|
22552
|
+
const brand = {
|
|
22553
|
+
primary,
|
|
22554
|
+
primaryHover: `${primary}cc`,
|
|
22555
|
+
// 80% opacidade
|
|
22556
|
+
ink: "#111827",
|
|
22557
|
+
muted: "#6b7280",
|
|
22558
|
+
bg: "#f6f7fb",
|
|
22559
|
+
surface: "#ffffff",
|
|
22560
|
+
border: "#e5e7eb",
|
|
22561
|
+
ring: `${primary}40`
|
|
22562
|
+
// 25% opacidade para foco
|
|
22563
|
+
};
|
|
22564
|
+
return createTheme({
|
|
22565
|
+
palette: {
|
|
22566
|
+
mode: "light",
|
|
22567
|
+
primary: { main: brand.primary },
|
|
22568
|
+
text: { primary: brand.ink, secondary: brand.muted },
|
|
22569
|
+
background: { default: brand.bg, paper: brand.surface }
|
|
22570
|
+
},
|
|
22571
|
+
shape: { borderRadius: 10 },
|
|
22572
|
+
typography: {
|
|
22573
|
+
fontFamily: `"Inter","Segoe UI",Roboto,Ubuntu,Helvetica,Arial,sans-serif`,
|
|
22574
|
+
h6: { fontWeight: 700 },
|
|
22575
|
+
button: { textTransform: "none", fontWeight: 700 }
|
|
22576
|
+
},
|
|
22577
|
+
components: {
|
|
22578
|
+
MuiCard: {
|
|
22579
|
+
styleOverrides: {
|
|
22580
|
+
root: {
|
|
22581
|
+
border: `1px solid ${brand.border}`,
|
|
22582
|
+
boxShadow: "0 10px 30px rgba(2,6,23,.06)"
|
|
22583
|
+
}
|
|
22584
|
+
}
|
|
22585
|
+
},
|
|
22586
|
+
MuiTextField: {
|
|
22587
|
+
defaultProps: { size: "medium" }
|
|
22588
|
+
},
|
|
22589
|
+
MuiOutlinedInput: {
|
|
22590
|
+
styleOverrides: {
|
|
22591
|
+
root: {
|
|
22592
|
+
background: brand.surface,
|
|
22593
|
+
"& fieldset": { borderColor: brand.border },
|
|
22594
|
+
"&:hover fieldset": { borderColor: brand.primary },
|
|
22595
|
+
"&.Mui-focused fieldset": {
|
|
22596
|
+
borderColor: brand.primary,
|
|
22597
|
+
boxShadow: "none"
|
|
22598
|
+
// remove o brilho azul
|
|
22599
|
+
}
|
|
22600
|
+
},
|
|
22601
|
+
input: { paddingTop: 14, paddingBottom: 14 }
|
|
22602
|
+
}
|
|
22603
|
+
},
|
|
22604
|
+
MuiButton: {
|
|
22605
|
+
styleOverrides: {
|
|
22606
|
+
root: {
|
|
22607
|
+
borderRadius: 12,
|
|
22608
|
+
paddingBlock: 14
|
|
22609
|
+
},
|
|
22610
|
+
containedPrimary: {
|
|
22611
|
+
backgroundColor: brand.primary,
|
|
22612
|
+
boxShadow: `0 10px 24px ${brand.ring}`,
|
|
22613
|
+
"&:hover": { backgroundColor: brand.primaryHover }
|
|
22614
|
+
},
|
|
22615
|
+
outlinedPrimary: {
|
|
22616
|
+
borderColor: brand.primary,
|
|
22617
|
+
color: brand.primary,
|
|
22618
|
+
"&:hover": {
|
|
22619
|
+
borderColor: brand.primaryHover,
|
|
22620
|
+
backgroundColor: `${brand.primary}15`
|
|
22621
|
+
}
|
|
22622
|
+
}
|
|
22623
|
+
}
|
|
22624
|
+
},
|
|
22625
|
+
MuiDivider: {
|
|
22626
|
+
styleOverrides: {
|
|
22627
|
+
root: { borderColor: brand.border }
|
|
22628
|
+
}
|
|
22629
|
+
}
|
|
22630
|
+
}
|
|
22631
|
+
});
|
|
22817
22632
|
};
|
|
22818
22633
|
function CheckoutFlow(props) {
|
|
22819
22634
|
const [step, setStep] = useState("select");
|
|
@@ -22822,6 +22637,7 @@ function CheckoutFlow(props) {
|
|
|
22822
22637
|
[props.produtos]
|
|
22823
22638
|
);
|
|
22824
22639
|
const valor = props.valorTotal ?? amountFromItems;
|
|
22640
|
+
const theme = useMemo(() => createBrandTheme(props?.cor), [props?.cor]);
|
|
22825
22641
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22826
22642
|
Box,
|
|
22827
22643
|
{
|
|
@@ -22855,7 +22671,6 @@ export {
|
|
|
22855
22671
|
OrderSummary,
|
|
22856
22672
|
SplitCheckoutForm as SplitCardForm,
|
|
22857
22673
|
SplitPixForm,
|
|
22858
|
-
brand,
|
|
22859
22674
|
isValidCNPJ,
|
|
22860
22675
|
isValidCPF,
|
|
22861
22676
|
isValidPassport
|