@suportepos/split-checkout 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +577 -546
- package/dist/index.umd.js +3 -3
- package/dist/standalone/suportepos-checkout.js +1 -1
- 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 +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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
|
});
|
|
@@ -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 = "";
|
|
@@ -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(() => {
|
|
@@ -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
|
}));
|
|
@@ -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
|
{
|
|
@@ -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
|
}
|
|
@@ -15427,7 +15427,7 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15427
15427
|
} = props;
|
|
15428
15428
|
const timer = useTimeout();
|
|
15429
15429
|
const autoTimeout = React.useRef();
|
|
15430
|
-
const
|
|
15430
|
+
const theme = useTheme();
|
|
15431
15431
|
const nodeRef = React.useRef(null);
|
|
15432
15432
|
const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);
|
|
15433
15433
|
const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
|
|
@@ -15456,15 +15456,15 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15456
15456
|
});
|
|
15457
15457
|
let duration2;
|
|
15458
15458
|
if (timeout2 === "auto") {
|
|
15459
|
-
duration2 =
|
|
15459
|
+
duration2 = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
|
15460
15460
|
autoTimeout.current = duration2;
|
|
15461
15461
|
} else {
|
|
15462
15462
|
duration2 = transitionDuration;
|
|
15463
15463
|
}
|
|
15464
|
-
node.style.transition = [
|
|
15464
|
+
node.style.transition = [theme.transitions.create("opacity", {
|
|
15465
15465
|
duration: duration2,
|
|
15466
15466
|
delay
|
|
15467
|
-
}),
|
|
15467
|
+
}), theme.transitions.create("transform", {
|
|
15468
15468
|
duration: isWebKit154 ? duration2 : duration2 * 0.666,
|
|
15469
15469
|
delay,
|
|
15470
15470
|
easing: transitionTimingFunction
|
|
@@ -15489,15 +15489,15 @@ const Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref) {
|
|
|
15489
15489
|
});
|
|
15490
15490
|
let duration2;
|
|
15491
15491
|
if (timeout2 === "auto") {
|
|
15492
|
-
duration2 =
|
|
15492
|
+
duration2 = theme.transitions.getAutoHeightDuration(node.clientHeight);
|
|
15493
15493
|
autoTimeout.current = duration2;
|
|
15494
15494
|
} else {
|
|
15495
15495
|
duration2 = transitionDuration;
|
|
15496
15496
|
}
|
|
15497
|
-
node.style.transition = [
|
|
15497
|
+
node.style.transition = [theme.transitions.create("opacity", {
|
|
15498
15498
|
duration: duration2,
|
|
15499
15499
|
delay
|
|
15500
|
-
}),
|
|
15500
|
+
}), theme.transitions.create("transform", {
|
|
15501
15501
|
duration: isWebKit154 ? duration2 : duration2 * 0.666,
|
|
15502
15502
|
delay: isWebKit154 ? delay : delay || duration2 * 0.333,
|
|
15503
15503
|
easing: transitionTimingFunction
|
|
@@ -16148,10 +16148,10 @@ const styles$1 = {
|
|
|
16148
16148
|
}
|
|
16149
16149
|
};
|
|
16150
16150
|
const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
16151
|
-
const
|
|
16151
|
+
const theme = useTheme();
|
|
16152
16152
|
const defaultTimeout = {
|
|
16153
|
-
enter:
|
|
16154
|
-
exit:
|
|
16153
|
+
enter: theme.transitions.duration.enteringScreen,
|
|
16154
|
+
exit: theme.transitions.duration.leavingScreen
|
|
16155
16155
|
};
|
|
16156
16156
|
const {
|
|
16157
16157
|
addEndListener,
|
|
@@ -16193,8 +16193,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
16193
16193
|
}, {
|
|
16194
16194
|
mode: "enter"
|
|
16195
16195
|
});
|
|
16196
|
-
node.style.webkitTransition =
|
|
16197
|
-
node.style.transition =
|
|
16196
|
+
node.style.webkitTransition = theme.transitions.create("opacity", transitionProps);
|
|
16197
|
+
node.style.transition = theme.transitions.create("opacity", transitionProps);
|
|
16198
16198
|
if (onEnter) {
|
|
16199
16199
|
onEnter(node, isAppearing);
|
|
16200
16200
|
}
|
|
@@ -16209,8 +16209,8 @@ const Fade = /* @__PURE__ */ React.forwardRef(function Fade2(props, ref) {
|
|
|
16209
16209
|
}, {
|
|
16210
16210
|
mode: "exit"
|
|
16211
16211
|
});
|
|
16212
|
-
node.style.webkitTransition =
|
|
16213
|
-
node.style.transition =
|
|
16212
|
+
node.style.webkitTransition = theme.transitions.create("opacity", transitionProps);
|
|
16213
|
+
node.style.transition = theme.transitions.create("opacity", transitionProps);
|
|
16214
16214
|
if (onExit) {
|
|
16215
16215
|
onExit(node);
|
|
16216
16216
|
}
|
|
@@ -16714,10 +16714,10 @@ const ModalRoot = styled("div", {
|
|
|
16714
16714
|
return [styles2.root, !ownerState.open && ownerState.exited && styles2.hidden];
|
|
16715
16715
|
}
|
|
16716
16716
|
})(memoTheme(({
|
|
16717
|
-
theme
|
|
16717
|
+
theme
|
|
16718
16718
|
}) => ({
|
|
16719
16719
|
position: "fixed",
|
|
16720
|
-
zIndex: (
|
|
16720
|
+
zIndex: (theme.vars || theme).zIndex.modal,
|
|
16721
16721
|
right: 0,
|
|
16722
16722
|
bottom: 0,
|
|
16723
16723
|
top: 0,
|
|
@@ -16768,7 +16768,7 @@ const Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref) {
|
|
|
16768
16768
|
slotProps = {},
|
|
16769
16769
|
slots = {},
|
|
16770
16770
|
// eslint-disable-next-line react/prop-types
|
|
16771
|
-
theme
|
|
16771
|
+
theme,
|
|
16772
16772
|
...other
|
|
16773
16773
|
} = props;
|
|
16774
16774
|
const propsWithDefaults = {
|
|
@@ -17918,7 +17918,7 @@ const useUtilityClasses$7 = (ownerState) => {
|
|
|
17918
17918
|
const StyledSelectSelect = styled("select", {
|
|
17919
17919
|
name: "MuiNativeSelect"
|
|
17920
17920
|
})(({
|
|
17921
|
-
theme
|
|
17921
|
+
theme
|
|
17922
17922
|
}) => ({
|
|
17923
17923
|
// Reset
|
|
17924
17924
|
MozAppearance: "none",
|
|
@@ -17941,7 +17941,7 @@ const StyledSelectSelect = styled("select", {
|
|
|
17941
17941
|
height: "auto"
|
|
17942
17942
|
},
|
|
17943
17943
|
"&:not([multiple]) option, &:not([multiple]) optgroup": {
|
|
17944
|
-
backgroundColor: (
|
|
17944
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
17945
17945
|
},
|
|
17946
17946
|
variants: [{
|
|
17947
17947
|
props: ({
|
|
@@ -17969,9 +17969,9 @@ const StyledSelectSelect = styled("select", {
|
|
|
17969
17969
|
variant: "outlined"
|
|
17970
17970
|
},
|
|
17971
17971
|
style: {
|
|
17972
|
-
borderRadius: (
|
|
17972
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
17973
17973
|
"&:focus": {
|
|
17974
|
-
borderRadius: (
|
|
17974
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
17975
17975
|
// Reset the reset for Chrome style
|
|
17976
17976
|
},
|
|
17977
17977
|
"&&&": {
|
|
@@ -17996,7 +17996,7 @@ const NativeSelectSelect = styled(StyledSelectSelect, {
|
|
|
17996
17996
|
const StyledSelectIcon = styled("svg", {
|
|
17997
17997
|
name: "MuiNativeSelect"
|
|
17998
17998
|
})(({
|
|
17999
|
-
theme
|
|
17999
|
+
theme
|
|
18000
18000
|
}) => ({
|
|
18001
18001
|
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
18002
18002
|
// to the input and to support wrapping tags..
|
|
@@ -18006,9 +18006,9 @@ const StyledSelectIcon = styled("svg", {
|
|
|
18006
18006
|
top: "calc(50% - .5em)",
|
|
18007
18007
|
// Don't block pointer events on the select under the icon.
|
|
18008
18008
|
pointerEvents: "none",
|
|
18009
|
-
color: (
|
|
18009
|
+
color: (theme.vars || theme).palette.action.active,
|
|
18010
18010
|
[`&.${nativeSelectClasses.disabled}`]: {
|
|
18011
|
-
color: (
|
|
18011
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
18012
18012
|
},
|
|
18013
18013
|
variants: [{
|
|
18014
18014
|
props: ({
|
|
@@ -19024,10 +19024,10 @@ const InputBaseRoot = styled("div", {
|
|
|
19024
19024
|
slot: "Root",
|
|
19025
19025
|
overridesResolver: rootOverridesResolver
|
|
19026
19026
|
})(memoTheme(({
|
|
19027
|
-
theme
|
|
19027
|
+
theme
|
|
19028
19028
|
}) => ({
|
|
19029
|
-
...
|
|
19030
|
-
color: (
|
|
19029
|
+
...theme.typography.body1,
|
|
19030
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
19031
19031
|
lineHeight: "1.4375em",
|
|
19032
19032
|
// 23px
|
|
19033
19033
|
boxSizing: "border-box",
|
|
@@ -19037,7 +19037,7 @@ const InputBaseRoot = styled("div", {
|
|
|
19037
19037
|
display: "inline-flex",
|
|
19038
19038
|
alignItems: "center",
|
|
19039
19039
|
[`&.${inputBaseClasses.disabled}`]: {
|
|
19040
|
-
color: (
|
|
19040
|
+
color: (theme.vars || theme).palette.text.disabled,
|
|
19041
19041
|
cursor: "default"
|
|
19042
19042
|
},
|
|
19043
19043
|
variants: [{
|
|
@@ -19069,25 +19069,25 @@ const InputBaseInput = styled("input", {
|
|
|
19069
19069
|
slot: "Input",
|
|
19070
19070
|
overridesResolver: inputOverridesResolver
|
|
19071
19071
|
})(memoTheme(({
|
|
19072
|
-
theme
|
|
19072
|
+
theme
|
|
19073
19073
|
}) => {
|
|
19074
|
-
const light2 =
|
|
19074
|
+
const light2 = theme.palette.mode === "light";
|
|
19075
19075
|
const placeholder = {
|
|
19076
19076
|
color: "currentColor",
|
|
19077
|
-
...
|
|
19078
|
-
opacity:
|
|
19077
|
+
...theme.vars ? {
|
|
19078
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
19079
19079
|
} : {
|
|
19080
19080
|
opacity: light2 ? 0.42 : 0.5
|
|
19081
19081
|
},
|
|
19082
|
-
transition:
|
|
19083
|
-
duration:
|
|
19082
|
+
transition: theme.transitions.create("opacity", {
|
|
19083
|
+
duration: theme.transitions.duration.shorter
|
|
19084
19084
|
})
|
|
19085
19085
|
};
|
|
19086
19086
|
const placeholderHidden = {
|
|
19087
19087
|
opacity: "0 !important"
|
|
19088
19088
|
};
|
|
19089
|
-
const placeholderVisible =
|
|
19090
|
-
opacity:
|
|
19089
|
+
const placeholderVisible = theme.vars ? {
|
|
19090
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
19091
19091
|
} : {
|
|
19092
19092
|
opacity: light2 ? 0.42 : 0.5
|
|
19093
19093
|
};
|
|
@@ -19140,7 +19140,7 @@ const InputBaseInput = styled("input", {
|
|
|
19140
19140
|
[`&.${inputBaseClasses.disabled}`]: {
|
|
19141
19141
|
opacity: 1,
|
|
19142
19142
|
// Reset iOS opacity
|
|
19143
|
-
WebkitTextFillColor: (
|
|
19143
|
+
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled
|
|
19144
19144
|
// Fix opacity Safari bug
|
|
19145
19145
|
},
|
|
19146
19146
|
variants: [{
|
|
@@ -19726,12 +19726,12 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19726
19726
|
return [...rootOverridesResolver(props, styles2), !ownerState.disableUnderline && styles2.underline];
|
|
19727
19727
|
}
|
|
19728
19728
|
})(memoTheme(({
|
|
19729
|
-
theme
|
|
19729
|
+
theme
|
|
19730
19730
|
}) => {
|
|
19731
|
-
const light2 =
|
|
19731
|
+
const light2 = theme.palette.mode === "light";
|
|
19732
19732
|
let bottomLineColor = light2 ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
19733
|
-
if (
|
|
19734
|
-
bottomLineColor =
|
|
19733
|
+
if (theme.vars) {
|
|
19734
|
+
bottomLineColor = theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline);
|
|
19735
19735
|
}
|
|
19736
19736
|
return {
|
|
19737
19737
|
position: "relative",
|
|
@@ -19756,9 +19756,9 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19756
19756
|
position: "absolute",
|
|
19757
19757
|
right: 0,
|
|
19758
19758
|
transform: "scaleX(0)",
|
|
19759
|
-
transition:
|
|
19760
|
-
duration:
|
|
19761
|
-
easing:
|
|
19759
|
+
transition: theme.transitions.create("transform", {
|
|
19760
|
+
duration: theme.transitions.duration.shorter,
|
|
19761
|
+
easing: theme.transitions.easing.easeOut
|
|
19762
19762
|
}),
|
|
19763
19763
|
pointerEvents: "none"
|
|
19764
19764
|
// Transparent to the hover style.
|
|
@@ -19770,7 +19770,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19770
19770
|
},
|
|
19771
19771
|
[`&.${inputClasses.error}`]: {
|
|
19772
19772
|
"&::before, &::after": {
|
|
19773
|
-
borderBottomColor: (
|
|
19773
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
19774
19774
|
}
|
|
19775
19775
|
},
|
|
19776
19776
|
"&::before": {
|
|
@@ -19780,14 +19780,14 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19780
19780
|
content: '"\\00a0"',
|
|
19781
19781
|
position: "absolute",
|
|
19782
19782
|
right: 0,
|
|
19783
|
-
transition:
|
|
19784
|
-
duration:
|
|
19783
|
+
transition: theme.transitions.create("border-bottom-color", {
|
|
19784
|
+
duration: theme.transitions.duration.shorter
|
|
19785
19785
|
}),
|
|
19786
19786
|
pointerEvents: "none"
|
|
19787
19787
|
// Transparent to the hover style.
|
|
19788
19788
|
},
|
|
19789
19789
|
[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {
|
|
19790
|
-
borderBottom: `2px solid ${(
|
|
19790
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
19791
19791
|
// Reset on touch devices, it doesn't add specificity
|
|
19792
19792
|
"@media (hover: none)": {
|
|
19793
19793
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -19797,14 +19797,14 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
19797
19797
|
borderBottomStyle: "dotted"
|
|
19798
19798
|
}
|
|
19799
19799
|
}
|
|
19800
|
-
}, ...Object.entries(
|
|
19800
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
19801
19801
|
props: {
|
|
19802
19802
|
color: color2,
|
|
19803
19803
|
disableUnderline: false
|
|
19804
19804
|
},
|
|
19805
19805
|
style: {
|
|
19806
19806
|
"&::after": {
|
|
19807
|
-
borderBottom: `2px solid ${(
|
|
19807
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color2].main}`
|
|
19808
19808
|
}
|
|
19809
19809
|
}
|
|
19810
19810
|
}))]
|
|
@@ -20084,34 +20084,34 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20084
20084
|
return [...rootOverridesResolver(props, styles2), !ownerState.disableUnderline && styles2.underline];
|
|
20085
20085
|
}
|
|
20086
20086
|
})(memoTheme(({
|
|
20087
|
-
theme
|
|
20087
|
+
theme
|
|
20088
20088
|
}) => {
|
|
20089
|
-
const light2 =
|
|
20089
|
+
const light2 = theme.palette.mode === "light";
|
|
20090
20090
|
const bottomLineColor = light2 ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
20091
20091
|
const backgroundColor2 = light2 ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)";
|
|
20092
20092
|
const hoverBackground = light2 ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)";
|
|
20093
20093
|
const disabledBackground = light2 ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
20094
20094
|
return {
|
|
20095
20095
|
position: "relative",
|
|
20096
|
-
backgroundColor:
|
|
20097
|
-
borderTopLeftRadius: (
|
|
20098
|
-
borderTopRightRadius: (
|
|
20099
|
-
transition:
|
|
20100
|
-
duration:
|
|
20101
|
-
easing:
|
|
20096
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2,
|
|
20097
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
20098
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
20099
|
+
transition: theme.transitions.create("background-color", {
|
|
20100
|
+
duration: theme.transitions.duration.shorter,
|
|
20101
|
+
easing: theme.transitions.easing.easeOut
|
|
20102
20102
|
}),
|
|
20103
20103
|
"&:hover": {
|
|
20104
|
-
backgroundColor:
|
|
20104
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
|
|
20105
20105
|
// Reset on touch devices, it doesn't add specificity
|
|
20106
20106
|
"@media (hover: none)": {
|
|
20107
|
-
backgroundColor:
|
|
20107
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2
|
|
20108
20108
|
}
|
|
20109
20109
|
},
|
|
20110
20110
|
[`&.${filledInputClasses.focused}`]: {
|
|
20111
|
-
backgroundColor:
|
|
20111
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor2
|
|
20112
20112
|
},
|
|
20113
20113
|
[`&.${filledInputClasses.disabled}`]: {
|
|
20114
|
-
backgroundColor:
|
|
20114
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
|
|
20115
20115
|
},
|
|
20116
20116
|
variants: [{
|
|
20117
20117
|
props: ({
|
|
@@ -20125,9 +20125,9 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20125
20125
|
position: "absolute",
|
|
20126
20126
|
right: 0,
|
|
20127
20127
|
transform: "scaleX(0)",
|
|
20128
|
-
transition:
|
|
20129
|
-
duration:
|
|
20130
|
-
easing:
|
|
20128
|
+
transition: theme.transitions.create("transform", {
|
|
20129
|
+
duration: theme.transitions.duration.shorter,
|
|
20130
|
+
easing: theme.transitions.easing.easeOut
|
|
20131
20131
|
}),
|
|
20132
20132
|
pointerEvents: "none"
|
|
20133
20133
|
// Transparent to the hover style.
|
|
@@ -20139,37 +20139,37 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
20139
20139
|
},
|
|
20140
20140
|
[`&.${filledInputClasses.error}`]: {
|
|
20141
20141
|
"&::before, &::after": {
|
|
20142
|
-
borderBottomColor: (
|
|
20142
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
20143
20143
|
}
|
|
20144
20144
|
},
|
|
20145
20145
|
"&::before": {
|
|
20146
|
-
borderBottom: `1px solid ${
|
|
20146
|
+
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
20147
20147
|
left: 0,
|
|
20148
20148
|
bottom: 0,
|
|
20149
20149
|
content: '"\\00a0"',
|
|
20150
20150
|
position: "absolute",
|
|
20151
20151
|
right: 0,
|
|
20152
|
-
transition:
|
|
20153
|
-
duration:
|
|
20152
|
+
transition: theme.transitions.create("border-bottom-color", {
|
|
20153
|
+
duration: theme.transitions.duration.shorter
|
|
20154
20154
|
}),
|
|
20155
20155
|
pointerEvents: "none"
|
|
20156
20156
|
// Transparent to the hover style.
|
|
20157
20157
|
},
|
|
20158
20158
|
[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {
|
|
20159
|
-
borderBottom: `1px solid ${(
|
|
20159
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
20160
20160
|
},
|
|
20161
20161
|
[`&.${filledInputClasses.disabled}:before`]: {
|
|
20162
20162
|
borderBottomStyle: "dotted"
|
|
20163
20163
|
}
|
|
20164
20164
|
}
|
|
20165
|
-
}, ...Object.entries(
|
|
20165
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
20166
20166
|
props: {
|
|
20167
20167
|
disableUnderline: false,
|
|
20168
20168
|
color: color2
|
|
20169
20169
|
},
|
|
20170
20170
|
style: {
|
|
20171
20171
|
"&::after": {
|
|
20172
|
-
borderBottom: `2px solid ${(
|
|
20172
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color2]?.main}`
|
|
20173
20173
|
}
|
|
20174
20174
|
}
|
|
20175
20175
|
})), {
|
|
@@ -20226,27 +20226,27 @@ const FilledInputInput = styled(InputBaseInput, {
|
|
|
20226
20226
|
slot: "Input",
|
|
20227
20227
|
overridesResolver: inputOverridesResolver
|
|
20228
20228
|
})(memoTheme(({
|
|
20229
|
-
theme
|
|
20229
|
+
theme
|
|
20230
20230
|
}) => ({
|
|
20231
20231
|
paddingTop: 25,
|
|
20232
20232
|
paddingRight: 12,
|
|
20233
20233
|
paddingBottom: 8,
|
|
20234
20234
|
paddingLeft: 12,
|
|
20235
|
-
...!
|
|
20235
|
+
...!theme.vars && {
|
|
20236
20236
|
"&:-webkit-autofill": {
|
|
20237
|
-
WebkitBoxShadow:
|
|
20238
|
-
WebkitTextFillColor:
|
|
20239
|
-
caretColor:
|
|
20237
|
+
WebkitBoxShadow: theme.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
20238
|
+
WebkitTextFillColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20239
|
+
caretColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20240
20240
|
borderTopLeftRadius: "inherit",
|
|
20241
20241
|
borderTopRightRadius: "inherit"
|
|
20242
20242
|
}
|
|
20243
20243
|
},
|
|
20244
|
-
...
|
|
20244
|
+
...theme.vars && {
|
|
20245
20245
|
"&:-webkit-autofill": {
|
|
20246
20246
|
borderTopLeftRadius: "inherit",
|
|
20247
20247
|
borderTopRightRadius: "inherit"
|
|
20248
20248
|
},
|
|
20249
|
-
[
|
|
20249
|
+
[theme.getColorSchemeSelector("dark")]: {
|
|
20250
20250
|
"&:-webkit-autofill": {
|
|
20251
20251
|
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
20252
20252
|
WebkitTextFillColor: "#fff",
|
|
@@ -20575,7 +20575,7 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20575
20575
|
name: "MuiNotchedOutlined",
|
|
20576
20576
|
shouldForwardProp: rootShouldForwardProp
|
|
20577
20577
|
})(memoTheme(({
|
|
20578
|
-
theme
|
|
20578
|
+
theme
|
|
20579
20579
|
}) => ({
|
|
20580
20580
|
float: "unset",
|
|
20581
20581
|
// Fix conflict with bootstrap
|
|
@@ -20591,9 +20591,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20591
20591
|
padding: 0,
|
|
20592
20592
|
lineHeight: "11px",
|
|
20593
20593
|
// sync with `height` in `legend` styles
|
|
20594
|
-
transition:
|
|
20594
|
+
transition: theme.transitions.create("width", {
|
|
20595
20595
|
duration: 150,
|
|
20596
|
-
easing:
|
|
20596
|
+
easing: theme.transitions.easing.easeOut
|
|
20597
20597
|
})
|
|
20598
20598
|
}
|
|
20599
20599
|
}, {
|
|
@@ -20609,9 +20609,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20609
20609
|
fontSize: "0.75em",
|
|
20610
20610
|
visibility: "hidden",
|
|
20611
20611
|
maxWidth: 0.01,
|
|
20612
|
-
transition:
|
|
20612
|
+
transition: theme.transitions.create("max-width", {
|
|
20613
20613
|
duration: 50,
|
|
20614
|
-
easing:
|
|
20614
|
+
easing: theme.transitions.easing.easeOut
|
|
20615
20615
|
}),
|
|
20616
20616
|
whiteSpace: "nowrap",
|
|
20617
20617
|
"& > span": {
|
|
@@ -20628,9 +20628,9 @@ const NotchedOutlineLegend = styled("legend", {
|
|
|
20628
20628
|
}) => ownerState.withLabel && ownerState.notched,
|
|
20629
20629
|
style: {
|
|
20630
20630
|
maxWidth: "100%",
|
|
20631
|
-
transition:
|
|
20631
|
+
transition: theme.transitions.create("max-width", {
|
|
20632
20632
|
duration: 100,
|
|
20633
|
-
easing:
|
|
20633
|
+
easing: theme.transitions.easing.easeOut,
|
|
20634
20634
|
delay: 50
|
|
20635
20635
|
})
|
|
20636
20636
|
}
|
|
@@ -20726,31 +20726,31 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
20726
20726
|
slot: "Root",
|
|
20727
20727
|
overridesResolver: rootOverridesResolver
|
|
20728
20728
|
})(memoTheme(({
|
|
20729
|
-
theme
|
|
20729
|
+
theme
|
|
20730
20730
|
}) => {
|
|
20731
|
-
const borderColor2 =
|
|
20731
|
+
const borderColor2 = theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
20732
20732
|
return {
|
|
20733
20733
|
position: "relative",
|
|
20734
|
-
borderRadius: (
|
|
20734
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
20735
20735
|
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
20736
|
-
borderColor: (
|
|
20736
|
+
borderColor: (theme.vars || theme).palette.text.primary
|
|
20737
20737
|
},
|
|
20738
20738
|
// Reset on touch devices, it doesn't add specificity
|
|
20739
20739
|
"@media (hover: none)": {
|
|
20740
20740
|
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
20741
|
-
borderColor:
|
|
20741
|
+
borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor2
|
|
20742
20742
|
}
|
|
20743
20743
|
},
|
|
20744
20744
|
[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20745
20745
|
borderWidth: 2
|
|
20746
20746
|
},
|
|
20747
|
-
variants: [...Object.entries(
|
|
20747
|
+
variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
20748
20748
|
props: {
|
|
20749
20749
|
color: color2
|
|
20750
20750
|
},
|
|
20751
20751
|
style: {
|
|
20752
20752
|
[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20753
|
-
borderColor: (
|
|
20753
|
+
borderColor: (theme.vars || theme).palette[color2].main
|
|
20754
20754
|
}
|
|
20755
20755
|
}
|
|
20756
20756
|
})), {
|
|
@@ -20758,10 +20758,10 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
20758
20758
|
// to overide the above style
|
|
20759
20759
|
style: {
|
|
20760
20760
|
[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20761
|
-
borderColor: (
|
|
20761
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
20762
20762
|
},
|
|
20763
20763
|
[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {
|
|
20764
|
-
borderColor: (
|
|
20764
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
20765
20765
|
}
|
|
20766
20766
|
}
|
|
20767
20767
|
}, {
|
|
@@ -20800,11 +20800,11 @@ const NotchedOutlineRoot = styled(NotchedOutline, {
|
|
|
20800
20800
|
name: "MuiOutlinedInput",
|
|
20801
20801
|
slot: "NotchedOutline"
|
|
20802
20802
|
})(memoTheme(({
|
|
20803
|
-
theme
|
|
20803
|
+
theme
|
|
20804
20804
|
}) => {
|
|
20805
|
-
const borderColor2 =
|
|
20805
|
+
const borderColor2 = theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
20806
20806
|
return {
|
|
20807
|
-
borderColor:
|
|
20807
|
+
borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor2
|
|
20808
20808
|
};
|
|
20809
20809
|
}));
|
|
20810
20810
|
const OutlinedInputInput = styled(InputBaseInput, {
|
|
@@ -20812,22 +20812,22 @@ const OutlinedInputInput = styled(InputBaseInput, {
|
|
|
20812
20812
|
slot: "Input",
|
|
20813
20813
|
overridesResolver: inputOverridesResolver
|
|
20814
20814
|
})(memoTheme(({
|
|
20815
|
-
theme
|
|
20815
|
+
theme
|
|
20816
20816
|
}) => ({
|
|
20817
20817
|
padding: "16.5px 14px",
|
|
20818
|
-
...!
|
|
20818
|
+
...!theme.vars && {
|
|
20819
20819
|
"&:-webkit-autofill": {
|
|
20820
|
-
WebkitBoxShadow:
|
|
20821
|
-
WebkitTextFillColor:
|
|
20822
|
-
caretColor:
|
|
20820
|
+
WebkitBoxShadow: theme.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
20821
|
+
WebkitTextFillColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20822
|
+
caretColor: theme.palette.mode === "light" ? null : "#fff",
|
|
20823
20823
|
borderRadius: "inherit"
|
|
20824
20824
|
}
|
|
20825
20825
|
},
|
|
20826
|
-
...
|
|
20826
|
+
...theme.vars && {
|
|
20827
20827
|
"&:-webkit-autofill": {
|
|
20828
20828
|
borderRadius: "inherit"
|
|
20829
20829
|
},
|
|
20830
|
-
[
|
|
20830
|
+
[theme.getColorSchemeSelector("dark")]: {
|
|
20831
20831
|
"&:-webkit-autofill": {
|
|
20832
20832
|
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
20833
20833
|
WebkitTextFillColor: "#fff",
|
|
@@ -22643,66 +22643,6 @@ function SplitPixForm({
|
|
|
22643
22643
|
) })
|
|
22644
22644
|
] }) });
|
|
22645
22645
|
}
|
|
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
22646
|
function CheckoutFlowContent({
|
|
22707
22647
|
step,
|
|
22708
22648
|
setStep,
|
|
@@ -22716,14 +22656,24 @@ function CheckoutFlowContent({
|
|
|
22716
22656
|
uuid,
|
|
22717
22657
|
producao,
|
|
22718
22658
|
onResponse,
|
|
22719
|
-
paymentEnabled
|
|
22659
|
+
paymentEnabled,
|
|
22660
|
+
cor
|
|
22720
22661
|
}) {
|
|
22721
22662
|
useMediaQuery("(max-width:900px)");
|
|
22663
|
+
useTheme();
|
|
22722
22664
|
const primaryButtons = [];
|
|
22723
22665
|
const listItems = [];
|
|
22724
22666
|
if (paymentEnabled?.creditCard) {
|
|
22725
22667
|
listItems.push(
|
|
22726
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("card"), sx:
|
|
22668
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("card"), sx: {
|
|
22669
|
+
border: `1px solid #ced2da`,
|
|
22670
|
+
borderRadius: 14,
|
|
22671
|
+
mb: 1.5,
|
|
22672
|
+
paddingBlock: 1.2,
|
|
22673
|
+
boxShadow: "0 6px 18px rgba(2,6,23,.04)",
|
|
22674
|
+
"& .MuiListItemIcon-root": { minWidth: 44, "& svg": { opacity: 0.9 } },
|
|
22675
|
+
"&:hover": { backgroundColor: "#f8fafc", boxShadow: "0 12px 24px rgba(2,6,23,.06)" }
|
|
22676
|
+
}, children: [
|
|
22727
22677
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CreditCardIcon, {}) }),
|
|
22728
22678
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22729
22679
|
ListItemText,
|
|
@@ -22738,7 +22688,15 @@ function CheckoutFlowContent({
|
|
|
22738
22688
|
}
|
|
22739
22689
|
if (paymentEnabled?.pix) {
|
|
22740
22690
|
listItems.push(
|
|
22741
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("pix"), sx:
|
|
22691
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: () => setStep("pix"), sx: {
|
|
22692
|
+
border: `1px solid #ced2da`,
|
|
22693
|
+
borderRadius: 14,
|
|
22694
|
+
mb: 1.5,
|
|
22695
|
+
paddingBlock: 1.2,
|
|
22696
|
+
boxShadow: "0 6px 18px rgba(2,6,23,.04)",
|
|
22697
|
+
"& .MuiListItemIcon-root": { minWidth: 44, "& svg": { opacity: 0.9 } },
|
|
22698
|
+
"&:hover": { backgroundColor: "#f8fafc", boxShadow: "0 12px 24px rgba(2,6,23,.06)" }
|
|
22699
|
+
}, children: [
|
|
22742
22700
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(QrCode2Icon, {}) }),
|
|
22743
22701
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22744
22702
|
ListItemText,
|
|
@@ -22806,14 +22764,87 @@ function CheckoutFlowContent({
|
|
|
22806
22764
|
) })
|
|
22807
22765
|
] }) });
|
|
22808
22766
|
}
|
|
22809
|
-
const
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22767
|
+
const createBrandTheme = (color2) => {
|
|
22768
|
+
const primary = color2?.startsWith("#") ? color2 : color2 ? `#${color2}` : "#6C4CE7";
|
|
22769
|
+
const brand = {
|
|
22770
|
+
primary,
|
|
22771
|
+
primaryHover: `${primary}cc`,
|
|
22772
|
+
// 80% opacidade
|
|
22773
|
+
ink: "#111827",
|
|
22774
|
+
muted: "#6b7280",
|
|
22775
|
+
bg: "#f6f7fb",
|
|
22776
|
+
surface: "#ffffff",
|
|
22777
|
+
border: "#e5e7eb",
|
|
22778
|
+
ring: `${primary}40`
|
|
22779
|
+
// 25% opacidade para foco
|
|
22780
|
+
};
|
|
22781
|
+
return createTheme({
|
|
22782
|
+
palette: {
|
|
22783
|
+
mode: "light",
|
|
22784
|
+
primary: { main: brand.primary },
|
|
22785
|
+
text: { primary: brand.ink, secondary: brand.muted },
|
|
22786
|
+
background: { default: brand.bg, paper: brand.surface }
|
|
22787
|
+
},
|
|
22788
|
+
shape: { borderRadius: 10 },
|
|
22789
|
+
typography: {
|
|
22790
|
+
fontFamily: `"Inter","Segoe UI",Roboto,Ubuntu,Helvetica,Arial,sans-serif`,
|
|
22791
|
+
h6: { fontWeight: 700 },
|
|
22792
|
+
button: { textTransform: "none", fontWeight: 700 }
|
|
22793
|
+
},
|
|
22794
|
+
components: {
|
|
22795
|
+
MuiCard: {
|
|
22796
|
+
styleOverrides: {
|
|
22797
|
+
root: {
|
|
22798
|
+
border: `1px solid ${brand.border}`,
|
|
22799
|
+
boxShadow: "0 10px 30px rgba(2,6,23,.06)"
|
|
22800
|
+
}
|
|
22801
|
+
}
|
|
22802
|
+
},
|
|
22803
|
+
MuiTextField: {
|
|
22804
|
+
defaultProps: { size: "medium" }
|
|
22805
|
+
},
|
|
22806
|
+
MuiOutlinedInput: {
|
|
22807
|
+
styleOverrides: {
|
|
22808
|
+
root: {
|
|
22809
|
+
background: brand.surface,
|
|
22810
|
+
"& fieldset": { borderColor: brand.border },
|
|
22811
|
+
"&:hover fieldset": { borderColor: brand.primary },
|
|
22812
|
+
"&.Mui-focused fieldset": {
|
|
22813
|
+
borderColor: brand.primary,
|
|
22814
|
+
boxShadow: `0 0 0 3px ${brand.ring}`
|
|
22815
|
+
}
|
|
22816
|
+
},
|
|
22817
|
+
input: { paddingTop: 14, paddingBottom: 14 }
|
|
22818
|
+
}
|
|
22819
|
+
},
|
|
22820
|
+
MuiButton: {
|
|
22821
|
+
styleOverrides: {
|
|
22822
|
+
root: {
|
|
22823
|
+
borderRadius: 12,
|
|
22824
|
+
paddingBlock: 14
|
|
22825
|
+
},
|
|
22826
|
+
containedPrimary: {
|
|
22827
|
+
backgroundColor: brand.primary,
|
|
22828
|
+
boxShadow: `0 10px 24px ${brand.ring}`,
|
|
22829
|
+
"&:hover": { backgroundColor: brand.primaryHover }
|
|
22830
|
+
},
|
|
22831
|
+
outlinedPrimary: {
|
|
22832
|
+
borderColor: brand.primary,
|
|
22833
|
+
color: brand.primary,
|
|
22834
|
+
"&:hover": {
|
|
22835
|
+
borderColor: brand.primaryHover,
|
|
22836
|
+
backgroundColor: `${brand.primary}15`
|
|
22837
|
+
}
|
|
22838
|
+
}
|
|
22839
|
+
}
|
|
22840
|
+
},
|
|
22841
|
+
MuiDivider: {
|
|
22842
|
+
styleOverrides: {
|
|
22843
|
+
root: { borderColor: brand.border }
|
|
22844
|
+
}
|
|
22845
|
+
}
|
|
22846
|
+
}
|
|
22847
|
+
});
|
|
22817
22848
|
};
|
|
22818
22849
|
function CheckoutFlow(props) {
|
|
22819
22850
|
const [step, setStep] = useState("select");
|
|
@@ -22822,6 +22853,7 @@ function CheckoutFlow(props) {
|
|
|
22822
22853
|
[props.produtos]
|
|
22823
22854
|
);
|
|
22824
22855
|
const valor = props.valorTotal ?? amountFromItems;
|
|
22856
|
+
const theme = useMemo(() => createBrandTheme(props?.cor), [props?.cor]);
|
|
22825
22857
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22826
22858
|
Box,
|
|
22827
22859
|
{
|
|
@@ -22855,7 +22887,6 @@ export {
|
|
|
22855
22887
|
OrderSummary,
|
|
22856
22888
|
SplitCheckoutForm as SplitCardForm,
|
|
22857
22889
|
SplitPixForm,
|
|
22858
|
-
brand,
|
|
22859
22890
|
isValidCNPJ,
|
|
22860
22891
|
isValidCPF,
|
|
22861
22892
|
isValidPassport
|