@sinco/react 1.0.10-rc.14 → 1.0.10-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +257 -1724
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +2 -2
- package/src/lib/Components/index.d.ts +0 -2
- package/src/lib/Theme/breakpoints.d.ts +2 -1
- package/src/lib/Theme/components.d.ts +2 -11
- package/src/lib/Theme/index.d.ts +14 -0
- package/src/lib/Theme/mixins.d.ts +2 -1
- package/src/lib/Theme/palette.d.ts +2 -1
- package/src/lib/Theme/shadows.d.ts +2 -1
- package/src/lib/Theme/typography.d.ts +2 -15
- package/src/lib/Utils/dynamicColor.d.ts +2 -1
- package/src/lib/Components/PageHeader.d.ts +0 -11
- package/src/lib/Components/ToastNofitication.d.ts +0 -24
package/index.js
CHANGED
|
@@ -5458,10 +5458,10 @@ if (!isBrowser$2) {
|
|
|
5458
5458
|
};
|
|
5459
5459
|
}
|
|
5460
5460
|
|
|
5461
|
-
var ThemeContext
|
|
5461
|
+
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
5462
5462
|
|
|
5463
5463
|
if (process.env.NODE_ENV !== 'production') {
|
|
5464
|
-
ThemeContext
|
|
5464
|
+
ThemeContext.displayName = 'EmotionThemeContext';
|
|
5465
5465
|
}
|
|
5466
5466
|
|
|
5467
5467
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
@@ -5514,7 +5514,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
5514
5514
|
className = props.className + " ";
|
|
5515
5515
|
}
|
|
5516
5516
|
|
|
5517
|
-
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext
|
|
5517
|
+
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
|
5518
5518
|
|
|
5519
5519
|
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
5520
5520
|
var labelFromStack = props[labelPropName];
|
|
@@ -5693,7 +5693,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
5693
5693
|
}
|
|
5694
5694
|
|
|
5695
5695
|
var styles = props.styles;
|
|
5696
|
-
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext
|
|
5696
|
+
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
|
|
5697
5697
|
|
|
5698
5698
|
if (!isBrowser$2) {
|
|
5699
5699
|
var _ref;
|
|
@@ -5939,7 +5939,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
5939
5939
|
var content = {
|
|
5940
5940
|
css: css,
|
|
5941
5941
|
cx: cx,
|
|
5942
|
-
theme: React.useContext(ThemeContext
|
|
5942
|
+
theme: React.useContext(ThemeContext)
|
|
5943
5943
|
};
|
|
5944
5944
|
var ele = props.children(content);
|
|
5945
5945
|
hasRendered = true;
|
|
@@ -6095,7 +6095,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
6095
6095
|
mergedProps[key] = props[key];
|
|
6096
6096
|
}
|
|
6097
6097
|
|
|
6098
|
-
mergedProps.theme = React.useContext(ThemeContext
|
|
6098
|
+
mergedProps.theme = React.useContext(ThemeContext);
|
|
6099
6099
|
}
|
|
6100
6100
|
|
|
6101
6101
|
if (typeof props.className === 'string') {
|
|
@@ -6199,7 +6199,7 @@ const internal_processStyles = (tag, processor) => {
|
|
|
6199
6199
|
}
|
|
6200
6200
|
};
|
|
6201
6201
|
|
|
6202
|
-
const _excluded$
|
|
6202
|
+
const _excluded$p = ["values", "unit", "step"];
|
|
6203
6203
|
const sortBreakpointsValues = values => {
|
|
6204
6204
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6205
6205
|
key,
|
|
@@ -6234,7 +6234,7 @@ function createBreakpoints(breakpoints) {
|
|
|
6234
6234
|
unit = 'px',
|
|
6235
6235
|
step = 5
|
|
6236
6236
|
} = breakpoints,
|
|
6237
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6237
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$p);
|
|
6238
6238
|
const sortedValues = sortBreakpointsValues(values);
|
|
6239
6239
|
const keys = Object.keys(sortedValues);
|
|
6240
6240
|
function up(key) {
|
|
@@ -7318,7 +7318,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
7318
7318
|
styleFunctionSx.filterProps = ['sx'];
|
|
7319
7319
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
7320
7320
|
|
|
7321
|
-
const _excluded$
|
|
7321
|
+
const _excluded$o = ["breakpoints", "palette", "spacing", "shape"];
|
|
7322
7322
|
function createTheme$1(options = {}, ...args) {
|
|
7323
7323
|
const {
|
|
7324
7324
|
breakpoints: breakpointsInput = {},
|
|
@@ -7326,7 +7326,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
7326
7326
|
spacing: spacingInput,
|
|
7327
7327
|
shape: shapeInput = {}
|
|
7328
7328
|
} = options,
|
|
7329
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
7329
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$o);
|
|
7330
7330
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
7331
7331
|
const spacing = createSpacing(spacingInput);
|
|
7332
7332
|
let muiTheme = deepmerge({
|
|
@@ -7354,17 +7354,17 @@ function createTheme$1(options = {}, ...args) {
|
|
|
7354
7354
|
function isObjectEmpty(obj) {
|
|
7355
7355
|
return Object.keys(obj).length === 0;
|
|
7356
7356
|
}
|
|
7357
|
-
function useTheme$
|
|
7358
|
-
const contextTheme = React.useContext(ThemeContext
|
|
7357
|
+
function useTheme$2(defaultTheme = null) {
|
|
7358
|
+
const contextTheme = React.useContext(ThemeContext);
|
|
7359
7359
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
|
7360
7360
|
}
|
|
7361
7361
|
|
|
7362
7362
|
const systemDefaultTheme$1 = createTheme$1();
|
|
7363
|
-
function useTheme$
|
|
7364
|
-
return useTheme$
|
|
7363
|
+
function useTheme$1(defaultTheme = systemDefaultTheme$1) {
|
|
7364
|
+
return useTheme$2(defaultTheme);
|
|
7365
7365
|
}
|
|
7366
7366
|
|
|
7367
|
-
const _excluded$
|
|
7367
|
+
const _excluded$n = ["sx"];
|
|
7368
7368
|
const splitProps = props => {
|
|
7369
7369
|
var _props$theme$unstable, _props$theme;
|
|
7370
7370
|
const result = {
|
|
@@ -7385,7 +7385,7 @@ function extendSxProp(props) {
|
|
|
7385
7385
|
const {
|
|
7386
7386
|
sx: inSx
|
|
7387
7387
|
} = props,
|
|
7388
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7388
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
7389
7389
|
const {
|
|
7390
7390
|
systemProps,
|
|
7391
7391
|
otherProps
|
|
@@ -7411,7 +7411,7 @@ function extendSxProp(props) {
|
|
|
7411
7411
|
|
|
7412
7412
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
7413
7413
|
|
|
7414
|
-
const _excluded$
|
|
7414
|
+
const _excluded$m = ["className", "component"];
|
|
7415
7415
|
function createBox(options = {}) {
|
|
7416
7416
|
const {
|
|
7417
7417
|
themeId,
|
|
@@ -7423,13 +7423,13 @@ function createBox(options = {}) {
|
|
|
7423
7423
|
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
|
7424
7424
|
})(styleFunctionSx$1);
|
|
7425
7425
|
const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
|
|
7426
|
-
const theme = useTheme$
|
|
7426
|
+
const theme = useTheme$1(defaultTheme);
|
|
7427
7427
|
const _extendSxProp = extendSxProp(inProps),
|
|
7428
7428
|
{
|
|
7429
7429
|
className,
|
|
7430
7430
|
component = 'div'
|
|
7431
7431
|
} = _extendSxProp,
|
|
7432
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
7432
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$m);
|
|
7433
7433
|
return /*#__PURE__*/jsx(BoxRoot, _extends({
|
|
7434
7434
|
as: component,
|
|
7435
7435
|
ref: ref,
|
|
@@ -7440,7 +7440,7 @@ function createBox(options = {}) {
|
|
|
7440
7440
|
return Box;
|
|
7441
7441
|
}
|
|
7442
7442
|
|
|
7443
|
-
const _excluded$
|
|
7443
|
+
const _excluded$l = ["variant"];
|
|
7444
7444
|
function isEmpty$1(string) {
|
|
7445
7445
|
return string.length === 0;
|
|
7446
7446
|
}
|
|
@@ -7454,7 +7454,7 @@ function propsToClassKey(props) {
|
|
|
7454
7454
|
const {
|
|
7455
7455
|
variant
|
|
7456
7456
|
} = props,
|
|
7457
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7457
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$l);
|
|
7458
7458
|
let classKey = variant || '';
|
|
7459
7459
|
Object.keys(other).sort().forEach(key => {
|
|
7460
7460
|
if (key === 'color') {
|
|
@@ -7466,7 +7466,7 @@ function propsToClassKey(props) {
|
|
|
7466
7466
|
return classKey;
|
|
7467
7467
|
}
|
|
7468
7468
|
|
|
7469
|
-
const _excluded$
|
|
7469
|
+
const _excluded$k = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
7470
7470
|
function isEmpty(obj) {
|
|
7471
7471
|
return Object.keys(obj).length === 0;
|
|
7472
7472
|
}
|
|
@@ -7561,7 +7561,7 @@ function createStyled(input = {}) {
|
|
|
7561
7561
|
skipSx: inputSkipSx,
|
|
7562
7562
|
overridesResolver
|
|
7563
7563
|
} = inputOptions,
|
|
7564
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
7564
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$k);
|
|
7565
7565
|
|
|
7566
7566
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
7567
7567
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7695,7 +7695,7 @@ function useThemeProps$1({
|
|
|
7695
7695
|
defaultTheme,
|
|
7696
7696
|
themeId
|
|
7697
7697
|
}) {
|
|
7698
|
-
let theme = useTheme$
|
|
7698
|
+
let theme = useTheme$1(defaultTheme);
|
|
7699
7699
|
if (themeId) {
|
|
7700
7700
|
theme = theme[themeId] || theme;
|
|
7701
7701
|
}
|
|
@@ -7941,157 +7941,7 @@ function lighten(color, coefficient) {
|
|
|
7941
7941
|
return recomposeColor(color);
|
|
7942
7942
|
}
|
|
7943
7943
|
|
|
7944
|
-
const
|
|
7945
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7946
|
-
ThemeContext.displayName = 'ThemeContext';
|
|
7947
|
-
}
|
|
7948
|
-
var ThemeContext$1 = ThemeContext;
|
|
7949
|
-
|
|
7950
|
-
function useTheme$1() {
|
|
7951
|
-
const theme = React.useContext(ThemeContext$1);
|
|
7952
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7953
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
7954
|
-
React.useDebugValue(theme);
|
|
7955
|
-
}
|
|
7956
|
-
return theme;
|
|
7957
|
-
}
|
|
7958
|
-
|
|
7959
|
-
const hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7960
|
-
var nested = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
|
|
7961
|
-
|
|
7962
|
-
function mergeOuterLocalTheme(outerTheme, localTheme) {
|
|
7963
|
-
if (typeof localTheme === 'function') {
|
|
7964
|
-
const mergedTheme = localTheme(outerTheme);
|
|
7965
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7966
|
-
if (!mergedTheme) {
|
|
7967
|
-
console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
|
|
7968
|
-
}
|
|
7969
|
-
}
|
|
7970
|
-
return mergedTheme;
|
|
7971
|
-
}
|
|
7972
|
-
return {
|
|
7973
|
-
...outerTheme,
|
|
7974
|
-
...localTheme
|
|
7975
|
-
};
|
|
7976
|
-
}
|
|
7977
|
-
|
|
7978
|
-
/**
|
|
7979
|
-
* This component takes a `theme` prop.
|
|
7980
|
-
* It makes the `theme` available down the React tree thanks to React context.
|
|
7981
|
-
* This component should preferably be used at **the root of your component tree**.
|
|
7982
|
-
*/
|
|
7983
|
-
function ThemeProvider$2(props) {
|
|
7984
|
-
const {
|
|
7985
|
-
children,
|
|
7986
|
-
theme: localTheme
|
|
7987
|
-
} = props;
|
|
7988
|
-
const outerTheme = useTheme$1();
|
|
7989
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7990
|
-
if (outerTheme === null && typeof localTheme === 'function') {
|
|
7991
|
-
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'));
|
|
7992
|
-
}
|
|
7993
|
-
}
|
|
7994
|
-
const theme = React.useMemo(() => {
|
|
7995
|
-
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
|
|
7996
|
-
if (output != null) {
|
|
7997
|
-
output[nested] = outerTheme !== null;
|
|
7998
|
-
}
|
|
7999
|
-
return output;
|
|
8000
|
-
}, [localTheme, outerTheme]);
|
|
8001
|
-
return /*#__PURE__*/jsx(ThemeContext$1.Provider, {
|
|
8002
|
-
value: theme,
|
|
8003
|
-
children: children
|
|
8004
|
-
});
|
|
8005
|
-
}
|
|
8006
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = {
|
|
8007
|
-
/**
|
|
8008
|
-
* Your component tree.
|
|
8009
|
-
*/
|
|
8010
|
-
children: PropTypes.node,
|
|
8011
|
-
/**
|
|
8012
|
-
* A theme object. You can provide a function to extend the outer theme.
|
|
8013
|
-
*/
|
|
8014
|
-
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
|
|
8015
|
-
} : void 0;
|
|
8016
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
8017
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = exactProp(ThemeProvider$2.propTypes) : void 0;
|
|
8018
|
-
}
|
|
8019
|
-
|
|
8020
|
-
const EMPTY_THEME = {};
|
|
8021
|
-
function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
|
|
8022
|
-
return React.useMemo(() => {
|
|
8023
|
-
const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
|
|
8024
|
-
if (typeof localTheme === 'function') {
|
|
8025
|
-
const mergedTheme = localTheme(resolvedTheme);
|
|
8026
|
-
const result = themeId ? _extends({}, upperTheme, {
|
|
8027
|
-
[themeId]: mergedTheme
|
|
8028
|
-
}) : mergedTheme;
|
|
8029
|
-
// must return a function for the private theme to NOT merge with the upper theme.
|
|
8030
|
-
// see the test case "use provided theme from a callback" in ThemeProvider.test.js
|
|
8031
|
-
if (isPrivate) {
|
|
8032
|
-
return () => result;
|
|
8033
|
-
}
|
|
8034
|
-
return result;
|
|
8035
|
-
}
|
|
8036
|
-
return themeId ? _extends({}, upperTheme, {
|
|
8037
|
-
[themeId]: localTheme
|
|
8038
|
-
}) : _extends({}, upperTheme, localTheme);
|
|
8039
|
-
}, [themeId, upperTheme, localTheme, isPrivate]);
|
|
8040
|
-
}
|
|
8041
|
-
|
|
8042
|
-
/**
|
|
8043
|
-
* This component makes the `theme` available down the React tree.
|
|
8044
|
-
* It should preferably be used at **the root of your component tree**.
|
|
8045
|
-
*
|
|
8046
|
-
* <ThemeProvider theme={theme}> // existing use case
|
|
8047
|
-
* <ThemeProvider theme={{ id: theme }}> // theme scoping
|
|
8048
|
-
*/
|
|
8049
|
-
function ThemeProvider$1(props) {
|
|
8050
|
-
const {
|
|
8051
|
-
children,
|
|
8052
|
-
theme: localTheme,
|
|
8053
|
-
themeId
|
|
8054
|
-
} = props;
|
|
8055
|
-
const upperTheme = useTheme$3(EMPTY_THEME);
|
|
8056
|
-
const upperPrivateTheme = useTheme$1() || EMPTY_THEME;
|
|
8057
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
8058
|
-
if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {
|
|
8059
|
-
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'));
|
|
8060
|
-
}
|
|
8061
|
-
}
|
|
8062
|
-
const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
|
|
8063
|
-
const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
|
|
8064
|
-
return /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
8065
|
-
theme: privateTheme,
|
|
8066
|
-
children: /*#__PURE__*/jsx(ThemeContext$2.Provider, {
|
|
8067
|
-
value: engineTheme,
|
|
8068
|
-
children: children
|
|
8069
|
-
})
|
|
8070
|
-
});
|
|
8071
|
-
}
|
|
8072
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes /* remove-proptypes */ = {
|
|
8073
|
-
// ----------------------------- Warning --------------------------------
|
|
8074
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
8075
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
8076
|
-
// ----------------------------------------------------------------------
|
|
8077
|
-
/**
|
|
8078
|
-
* Your component tree.
|
|
8079
|
-
*/
|
|
8080
|
-
children: PropTypes.node,
|
|
8081
|
-
/**
|
|
8082
|
-
* A theme object. You can provide a function to extend the outer theme.
|
|
8083
|
-
*/
|
|
8084
|
-
theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
|
|
8085
|
-
/**
|
|
8086
|
-
* The design system's unique id for getting the corresponded theme when there are multiple design systems.
|
|
8087
|
-
*/
|
|
8088
|
-
themeId: PropTypes.string
|
|
8089
|
-
} : void 0;
|
|
8090
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
8091
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
|
|
8092
|
-
}
|
|
8093
|
-
|
|
8094
|
-
const _excluded$n = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
|
7944
|
+
const _excluded$j = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
|
8095
7945
|
const defaultTheme$3 = createTheme$1();
|
|
8096
7946
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
8097
7947
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -8220,7 +8070,7 @@ function createStack(options = {}) {
|
|
|
8220
8070
|
className,
|
|
8221
8071
|
useFlexGap = false
|
|
8222
8072
|
} = props,
|
|
8223
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8073
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$j);
|
|
8224
8074
|
const ownerState = {
|
|
8225
8075
|
direction,
|
|
8226
8076
|
spacing,
|
|
@@ -8394,7 +8244,7 @@ const green = {
|
|
|
8394
8244
|
};
|
|
8395
8245
|
var green$1 = green;
|
|
8396
8246
|
|
|
8397
|
-
const _excluded$
|
|
8247
|
+
const _excluded$i = ["mode", "contrastThreshold", "tonalOffset"];
|
|
8398
8248
|
const light = {
|
|
8399
8249
|
// The colors used to style the text.
|
|
8400
8250
|
text: {
|
|
@@ -8563,7 +8413,7 @@ function createPalette(palette) {
|
|
|
8563
8413
|
contrastThreshold = 3,
|
|
8564
8414
|
tonalOffset = 0.2
|
|
8565
8415
|
} = palette,
|
|
8566
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
8416
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$i);
|
|
8567
8417
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
8568
8418
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
8569
8419
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -8687,7 +8537,7 @@ const theme2 = createTheme({ palette: {
|
|
|
8687
8537
|
return paletteOutput;
|
|
8688
8538
|
}
|
|
8689
8539
|
|
|
8690
|
-
const _excluded$
|
|
8540
|
+
const _excluded$h = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
8691
8541
|
function round(value) {
|
|
8692
8542
|
return Math.round(value * 1e5) / 1e5;
|
|
8693
8543
|
}
|
|
@@ -8718,7 +8568,7 @@ function createTypography(palette, typography) {
|
|
|
8718
8568
|
allVariants,
|
|
8719
8569
|
pxToRem: pxToRem2
|
|
8720
8570
|
} = _ref,
|
|
8721
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8571
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8722
8572
|
if (process.env.NODE_ENV !== 'production') {
|
|
8723
8573
|
if (typeof fontSize !== 'number') {
|
|
8724
8574
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -8785,7 +8635,7 @@ function createShadow(...px) {
|
|
|
8785
8635
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
8786
8636
|
var shadows$1 = shadows;
|
|
8787
8637
|
|
|
8788
|
-
const _excluded$
|
|
8638
|
+
const _excluded$g = ["duration", "easing", "delay"];
|
|
8789
8639
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
8790
8640
|
// to learn the context in which each easing should be used.
|
|
8791
8641
|
const easing = {
|
|
@@ -8836,7 +8686,7 @@ function createTransitions(inputTransitions) {
|
|
|
8836
8686
|
easing: easingOption = mergedEasing.easeInOut,
|
|
8837
8687
|
delay = 0
|
|
8838
8688
|
} = options,
|
|
8839
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8689
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$g);
|
|
8840
8690
|
if (process.env.NODE_ENV !== 'production') {
|
|
8841
8691
|
const isString = value => typeof value === 'string';
|
|
8842
8692
|
// IE11 support, replace with Number.isNaN
|
|
@@ -8883,7 +8733,7 @@ const zIndex = {
|
|
|
8883
8733
|
};
|
|
8884
8734
|
var zIndex$1 = zIndex;
|
|
8885
8735
|
|
|
8886
|
-
const _excluded$
|
|
8736
|
+
const _excluded$f = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
8887
8737
|
function createTheme(options = {}, ...args) {
|
|
8888
8738
|
const {
|
|
8889
8739
|
mixins: mixinsInput = {},
|
|
@@ -8891,7 +8741,7 @@ function createTheme(options = {}, ...args) {
|
|
|
8891
8741
|
transitions: transitionsInput = {},
|
|
8892
8742
|
typography: typographyInput = {}
|
|
8893
8743
|
} = options,
|
|
8894
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8744
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$f);
|
|
8895
8745
|
if (options.vars) {
|
|
8896
8746
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
8897
8747
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -8953,7 +8803,7 @@ const defaultTheme$1 = createTheme();
|
|
|
8953
8803
|
var defaultTheme$2 = defaultTheme$1;
|
|
8954
8804
|
|
|
8955
8805
|
function useTheme() {
|
|
8956
|
-
const theme = useTheme$
|
|
8806
|
+
const theme = useTheme$1(defaultTheme$2);
|
|
8957
8807
|
if (process.env.NODE_ENV !== 'production') {
|
|
8958
8808
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8959
8809
|
React.useDebugValue(theme);
|
|
@@ -8981,29 +8831,6 @@ const styled = createStyled({
|
|
|
8981
8831
|
});
|
|
8982
8832
|
var styled$1 = styled;
|
|
8983
8833
|
|
|
8984
|
-
const _excluded$i = ["theme"];
|
|
8985
|
-
function ThemeProvider(_ref) {
|
|
8986
|
-
let {
|
|
8987
|
-
theme: themeInput
|
|
8988
|
-
} = _ref,
|
|
8989
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
8990
|
-
const scopedTheme = themeInput[THEME_ID];
|
|
8991
|
-
return /*#__PURE__*/jsx(ThemeProvider$1, _extends({}, props, {
|
|
8992
|
-
themeId: scopedTheme ? THEME_ID : undefined,
|
|
8993
|
-
theme: scopedTheme || themeInput
|
|
8994
|
-
}));
|
|
8995
|
-
}
|
|
8996
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
|
|
8997
|
-
/**
|
|
8998
|
-
* Your component tree.
|
|
8999
|
-
*/
|
|
9000
|
-
children: PropTypes.node,
|
|
9001
|
-
/**
|
|
9002
|
-
* A theme object. You can provide a function to extend the outer theme.
|
|
9003
|
-
*/
|
|
9004
|
-
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
|
|
9005
|
-
} : void 0;
|
|
9006
|
-
|
|
9007
8834
|
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
9008
8835
|
const getOverlayAlpha = elevation => {
|
|
9009
8836
|
let alphaValue;
|
|
@@ -9182,7 +9009,7 @@ function mergeSlotProps(parameters) {
|
|
|
9182
9009
|
};
|
|
9183
9010
|
}
|
|
9184
9011
|
|
|
9185
|
-
const _excluded$
|
|
9012
|
+
const _excluded$e = ["elementType", "externalSlotProps", "ownerState"];
|
|
9186
9013
|
/**
|
|
9187
9014
|
* @ignore - do not document.
|
|
9188
9015
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -9198,7 +9025,7 @@ function useSlotProps(parameters) {
|
|
|
9198
9025
|
externalSlotProps,
|
|
9199
9026
|
ownerState
|
|
9200
9027
|
} = parameters,
|
|
9201
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
9028
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$e);
|
|
9202
9029
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
9203
9030
|
const {
|
|
9204
9031
|
props: mergedProps,
|
|
@@ -9836,8 +9663,8 @@ function getModalUtilityClass(slot) {
|
|
|
9836
9663
|
}
|
|
9837
9664
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
9838
9665
|
|
|
9839
|
-
const _excluded$
|
|
9840
|
-
const useUtilityClasses$
|
|
9666
|
+
const _excluded$d = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
9667
|
+
const useUtilityClasses$9 = ownerState => {
|
|
9841
9668
|
const {
|
|
9842
9669
|
open,
|
|
9843
9670
|
exited
|
|
@@ -9905,7 +9732,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9905
9732
|
slotProps = {},
|
|
9906
9733
|
slots = {}
|
|
9907
9734
|
} = props,
|
|
9908
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9735
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
9909
9736
|
// TODO: `modal`` must change its type in this file to match the type of methods
|
|
9910
9737
|
// provided by `ModalManager`
|
|
9911
9738
|
const manager = managerProp;
|
|
@@ -9980,7 +9807,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9980
9807
|
hideBackdrop,
|
|
9981
9808
|
keepMounted
|
|
9982
9809
|
});
|
|
9983
|
-
const classes = useUtilityClasses$
|
|
9810
|
+
const classes = useUtilityClasses$9(ownerState);
|
|
9984
9811
|
const handleEnter = () => {
|
|
9985
9812
|
setExited(false);
|
|
9986
9813
|
if (onTransitionEnter) {
|
|
@@ -10200,8 +10027,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
10200
10027
|
}
|
|
10201
10028
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
10202
10029
|
|
|
10203
|
-
const _excluded$
|
|
10204
|
-
const useUtilityClasses$
|
|
10030
|
+
const _excluded$c = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
10031
|
+
const useUtilityClasses$8 = ownerState => {
|
|
10205
10032
|
const {
|
|
10206
10033
|
color,
|
|
10207
10034
|
fontSize,
|
|
@@ -10266,7 +10093,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10266
10093
|
titleAccess,
|
|
10267
10094
|
viewBox = '0 0 24 24'
|
|
10268
10095
|
} = props,
|
|
10269
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10096
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
10270
10097
|
const ownerState = _extends({}, props, {
|
|
10271
10098
|
color,
|
|
10272
10099
|
component,
|
|
@@ -10279,7 +10106,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10279
10106
|
if (!inheritViewBox) {
|
|
10280
10107
|
more.viewBox = viewBox;
|
|
10281
10108
|
}
|
|
10282
|
-
const classes = useUtilityClasses$
|
|
10109
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
10283
10110
|
return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
|
|
10284
10111
|
as: component,
|
|
10285
10112
|
className: clsx(classes.root, className),
|
|
@@ -10421,22 +10248,10 @@ var utils = /*#__PURE__*/Object.freeze({
|
|
|
10421
10248
|
useIsFocusVisible: useIsFocusVisible
|
|
10422
10249
|
});
|
|
10423
10250
|
|
|
10424
|
-
var ArrowDownward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10425
|
-
d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
|
|
10426
|
-
}), 'ArrowDownward');
|
|
10427
|
-
|
|
10428
|
-
var ArrowUpward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10429
|
-
d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
|
|
10430
|
-
}), 'ArrowUpward');
|
|
10431
|
-
|
|
10432
10251
|
var CheckCircleRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10433
10252
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0z"
|
|
10434
10253
|
}), 'CheckCircleRounded');
|
|
10435
10254
|
|
|
10436
|
-
var Close$1 = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10437
|
-
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
10438
|
-
}), 'Close');
|
|
10439
|
-
|
|
10440
10255
|
var ErrorRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10441
10256
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"
|
|
10442
10257
|
}), 'ErrorRounded');
|
|
@@ -10584,64 +10399,13 @@ const components = {
|
|
|
10584
10399
|
}
|
|
10585
10400
|
}
|
|
10586
10401
|
},
|
|
10587
|
-
MuiCheckbox: {
|
|
10588
|
-
variants: [{
|
|
10589
|
-
props: {
|
|
10590
|
-
size: "xsmall"
|
|
10591
|
-
},
|
|
10592
|
-
style: {
|
|
10593
|
-
padding: 2
|
|
10594
|
-
}
|
|
10595
|
-
}, {
|
|
10596
|
-
props: {
|
|
10597
|
-
size: "small"
|
|
10598
|
-
},
|
|
10599
|
-
style: {
|
|
10600
|
-
padding: 4
|
|
10601
|
-
}
|
|
10602
|
-
}, {
|
|
10603
|
-
props: {
|
|
10604
|
-
size: "medium"
|
|
10605
|
-
},
|
|
10606
|
-
style: {
|
|
10607
|
-
padding: 11
|
|
10608
|
-
}
|
|
10609
|
-
}],
|
|
10610
|
-
defaultProps: {
|
|
10611
|
-
size: "small"
|
|
10612
|
-
}
|
|
10613
|
-
},
|
|
10614
10402
|
MuiChip: {
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
},
|
|
10619
|
-
style: {
|
|
10620
|
-
paddingBlock: 0
|
|
10621
|
-
}
|
|
10622
|
-
}],
|
|
10403
|
+
defaultProps: {
|
|
10404
|
+
size: 'small'
|
|
10405
|
+
},
|
|
10623
10406
|
styleOverrides: {
|
|
10624
|
-
sizeSmall: {
|
|
10625
|
-
paddingBlock: 4
|
|
10626
|
-
},
|
|
10627
|
-
sizeMedium: {
|
|
10628
|
-
paddingBlock: 7
|
|
10629
|
-
},
|
|
10630
10407
|
root: {
|
|
10631
|
-
|
|
10632
|
-
borderRadius: 4,
|
|
10633
|
-
".MuiChip-deleteIconXsmall": {
|
|
10634
|
-
height: 12,
|
|
10635
|
-
width: 12
|
|
10636
|
-
},
|
|
10637
|
-
".MuiChip-deleteIconSmall": {
|
|
10638
|
-
height: 16,
|
|
10639
|
-
widht: 16
|
|
10640
|
-
},
|
|
10641
|
-
".MuiChip-deleteIconMedium": {
|
|
10642
|
-
height: 20,
|
|
10643
|
-
widht: 20
|
|
10644
|
-
}
|
|
10408
|
+
borderRadius: 4
|
|
10645
10409
|
}
|
|
10646
10410
|
}
|
|
10647
10411
|
},
|
|
@@ -10664,39 +10428,25 @@ const components = {
|
|
|
10664
10428
|
}
|
|
10665
10429
|
},
|
|
10666
10430
|
MuiButton: {
|
|
10431
|
+
defaultProps: {
|
|
10432
|
+
size: 'medium'
|
|
10433
|
+
},
|
|
10667
10434
|
styleOverrides: {
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
},
|
|
10671
|
-
iconSizeSmall: {
|
|
10672
|
-
height: 14,
|
|
10673
|
-
width: 14
|
|
10674
|
-
},
|
|
10675
|
-
iconSizeMedium: {
|
|
10676
|
-
height: 18,
|
|
10677
|
-
width: 18
|
|
10678
|
-
},
|
|
10679
|
-
iconSizeLarge: {
|
|
10680
|
-
height: 22,
|
|
10681
|
-
width: 22
|
|
10435
|
+
fullWidth: {
|
|
10436
|
+
width: '100%'
|
|
10682
10437
|
},
|
|
10683
10438
|
sizeSmall: {
|
|
10684
|
-
padding: '
|
|
10439
|
+
padding: '4px 10px'
|
|
10685
10440
|
},
|
|
10686
10441
|
sizeMedium: {
|
|
10687
|
-
padding: '
|
|
10688
|
-
".MuiSvgIcon-fontSizeMedium": {
|
|
10689
|
-
height: 18,
|
|
10690
|
-
width: 18
|
|
10691
|
-
}
|
|
10442
|
+
padding: '7.5px 15px'
|
|
10692
10443
|
},
|
|
10693
10444
|
sizeLarge: {
|
|
10694
|
-
padding: '10.5px
|
|
10695
|
-
fontSize: 14
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
}
|
|
10445
|
+
padding: '10.5px 22px',
|
|
10446
|
+
fontSize: 14
|
|
10447
|
+
},
|
|
10448
|
+
root: {
|
|
10449
|
+
width: "fit-content"
|
|
10700
10450
|
}
|
|
10701
10451
|
}
|
|
10702
10452
|
},
|
|
@@ -10705,6 +10455,11 @@ const components = {
|
|
|
10705
10455
|
size: "small"
|
|
10706
10456
|
}
|
|
10707
10457
|
},
|
|
10458
|
+
MuiCheckbox: {
|
|
10459
|
+
defaultProps: {
|
|
10460
|
+
size: "small"
|
|
10461
|
+
}
|
|
10462
|
+
},
|
|
10708
10463
|
MuiFab: {
|
|
10709
10464
|
defaultProps: {
|
|
10710
10465
|
size: "small"
|
|
@@ -10912,21 +10667,6 @@ const components = {
|
|
|
10912
10667
|
}
|
|
10913
10668
|
},
|
|
10914
10669
|
MuiRadio: {
|
|
10915
|
-
variants: [{
|
|
10916
|
-
props: {
|
|
10917
|
-
size: "small"
|
|
10918
|
-
},
|
|
10919
|
-
style: {
|
|
10920
|
-
padding: 2
|
|
10921
|
-
}
|
|
10922
|
-
}, {
|
|
10923
|
-
props: {
|
|
10924
|
-
size: "medium"
|
|
10925
|
-
},
|
|
10926
|
-
style: {
|
|
10927
|
-
padding: 9
|
|
10928
|
-
}
|
|
10929
|
-
}],
|
|
10930
10670
|
defaultProps: {
|
|
10931
10671
|
size: "small"
|
|
10932
10672
|
}
|
|
@@ -10961,105 +10701,44 @@ const components = {
|
|
|
10961
10701
|
|
|
10962
10702
|
const palette = {
|
|
10963
10703
|
primary: {
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
300: "#6392BD",
|
|
10968
|
-
light: "417AAE",
|
|
10969
|
-
main: "#2063A0",
|
|
10970
|
-
600: "#1C5B98",
|
|
10971
|
-
700: "#18518E",
|
|
10972
|
-
800: "#134784",
|
|
10973
|
-
dark: "#0B3573",
|
|
10974
|
-
A100: "#A5C5FF",
|
|
10975
|
-
A200: "#72A4FF",
|
|
10976
|
-
A400: "#3F83FF",
|
|
10977
|
-
A700: "#2572FF",
|
|
10704
|
+
main: "#1e62a1",
|
|
10705
|
+
light: "#5a8fd3",
|
|
10706
|
+
dark: "#003972",
|
|
10978
10707
|
contrastText: "#ffffff"
|
|
10979
10708
|
},
|
|
10980
10709
|
secondary: {
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
300: "#4DD0E1",
|
|
10985
|
-
light: "#26C6DA",
|
|
10986
|
-
main: "#00BCD4",
|
|
10987
|
-
600: "#00B6CF",
|
|
10988
|
-
700: "#00ADC9",
|
|
10989
|
-
800: "#00A5C3",
|
|
10990
|
-
dark: "#0097B9",
|
|
10991
|
-
A100: "#E2F9FF",
|
|
10992
|
-
A200: "#AFEEFF",
|
|
10993
|
-
A400: "#7CE3FF",
|
|
10994
|
-
A700: "#63DDFF",
|
|
10710
|
+
main: "#0CBBE2",
|
|
10711
|
+
light: "#67eeff",
|
|
10712
|
+
dark: "#008bb0",
|
|
10995
10713
|
contrastText: "#ffffff"
|
|
10996
10714
|
},
|
|
10715
|
+
text: {
|
|
10716
|
+
primary: "#101840de",
|
|
10717
|
+
secondary: "#10184099",
|
|
10718
|
+
disabled: "#10184061"
|
|
10719
|
+
},
|
|
10997
10720
|
error: {
|
|
10998
|
-
50: "#F9E8E8",
|
|
10999
|
-
100: "#F1C7C7",
|
|
11000
|
-
200: "#E8A1A1",
|
|
11001
|
-
300: "#DF7B7B",
|
|
11002
|
-
light: "#D85F5F",
|
|
11003
10721
|
main: "#D14343",
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
800: "#C02C2C",
|
|
11007
|
-
dark: "#B51E1E",
|
|
11008
|
-
A100: "#FFECEC",
|
|
11009
|
-
A200: "#FFB9B9",
|
|
11010
|
-
A400: "#FF8686",
|
|
11011
|
-
A700: "#FF6D6D",
|
|
10722
|
+
light: "#d85f5f",
|
|
10723
|
+
dark: "#b51e1e",
|
|
11012
10724
|
contrastText: "#ffffff"
|
|
11013
10725
|
},
|
|
11014
10726
|
warning: {
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
300: "#FCAA4D",
|
|
11019
|
-
light: "#FC9726",
|
|
11020
|
-
main: "#FB8500",
|
|
11021
|
-
600: "#FA7D00",
|
|
11022
|
-
700: "#FA7200",
|
|
11023
|
-
800: "#F96800",
|
|
11024
|
-
dark: "#F85500",
|
|
11025
|
-
A100: "#FFFFFF",
|
|
11026
|
-
A200: "#FFF1EB",
|
|
11027
|
-
A400: "#FFCCB8",
|
|
11028
|
-
A700: "#FFBA9F",
|
|
10727
|
+
main: "#fb8500",
|
|
10728
|
+
light: "#fc9726",
|
|
10729
|
+
dark: "#f85500",
|
|
11029
10730
|
contrastText: "#ffffff"
|
|
11030
10731
|
},
|
|
11031
10732
|
info: {
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
300: "#6CBCD6",
|
|
11036
|
-
light: "#4DADCE",
|
|
11037
|
-
main: "#2D9FC5",
|
|
11038
|
-
600: "#2897BF",
|
|
11039
|
-
700: "#228DB8",
|
|
11040
|
-
800: "#1C83B0",
|
|
11041
|
-
dark: "#1172A3",
|
|
11042
|
-
A100: "#D4EFFF",
|
|
11043
|
-
A200: "#A1DCFF",
|
|
11044
|
-
A400: "#6ECAFF",
|
|
11045
|
-
A700: "#54C1FF",
|
|
10733
|
+
main: "#2d9fc5",
|
|
10734
|
+
light: "#4dadce",
|
|
10735
|
+
dark: "#1172a3",
|
|
11046
10736
|
contrastText: "#ffffff"
|
|
11047
10737
|
},
|
|
11048
10738
|
success: {
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
300: "#B1D975",
|
|
11053
|
-
light: "#A0D158",
|
|
11054
|
-
main: "#8FC93A",
|
|
11055
|
-
600: "#87C334",
|
|
11056
|
-
700: "#7CBC2C",
|
|
11057
|
-
800: "#72B525",
|
|
11058
|
-
dark: "#60A918",
|
|
11059
|
-
A100: "#EDFFDE",
|
|
11060
|
-
A200: "#D2FFAB",
|
|
11061
|
-
A400: "#B6FF78",
|
|
11062
|
-
A700: "#A9FF5E",
|
|
10739
|
+
main: "#8fc93a",
|
|
10740
|
+
dark: "#60a918",
|
|
10741
|
+
light: "#a0d158",
|
|
11063
10742
|
contrastText: "#ffffff"
|
|
11064
10743
|
},
|
|
11065
10744
|
grey: {
|
|
@@ -11078,11 +10757,6 @@ const palette = {
|
|
|
11078
10757
|
A400: "#696F8C",
|
|
11079
10758
|
A700: "#101840"
|
|
11080
10759
|
},
|
|
11081
|
-
text: {
|
|
11082
|
-
primary: "#101840de",
|
|
11083
|
-
secondary: "#10184099",
|
|
11084
|
-
disabled: "#10184061"
|
|
11085
|
-
},
|
|
11086
10760
|
action: {
|
|
11087
10761
|
active: "rgba(16, 24, 64, 0.54)",
|
|
11088
10762
|
hover: "rgba(16, 24, 64, 0.04)",
|
|
@@ -11123,18 +10797,8 @@ const mixins = {
|
|
|
11123
10797
|
|
|
11124
10798
|
const typography = {
|
|
11125
10799
|
fontSize: 13,
|
|
11126
|
-
body3: {
|
|
11127
|
-
fontFamily: 'Roboto',
|
|
11128
|
-
fontWeight: 310,
|
|
11129
|
-
fontSize: 12,
|
|
11130
|
-
letterSpacing: 0.17,
|
|
11131
|
-
lineHeight: 1.2,
|
|
11132
|
-
[breakpoints.down('md')]: {
|
|
11133
|
-
fontSize: 11
|
|
11134
|
-
}
|
|
11135
|
-
},
|
|
11136
10800
|
body1: {
|
|
11137
|
-
fontFamily:
|
|
10801
|
+
fontFamily: "Roboto",
|
|
11138
10802
|
fontSize: 14,
|
|
11139
10803
|
fontWeight: 400,
|
|
11140
10804
|
letterSpacing: 0.15,
|
|
@@ -11144,7 +10808,7 @@ const typography = {
|
|
|
11144
10808
|
}
|
|
11145
10809
|
},
|
|
11146
10810
|
body2: {
|
|
11147
|
-
fontFamily:
|
|
10811
|
+
fontFamily: "Roboto",
|
|
11148
10812
|
fontSize: 13,
|
|
11149
10813
|
fontWeight: 400,
|
|
11150
10814
|
letterSpacing: 0.17,
|
|
@@ -11153,8 +10817,18 @@ const typography = {
|
|
|
11153
10817
|
fontSize: 14
|
|
11154
10818
|
}
|
|
11155
10819
|
},
|
|
10820
|
+
body3: {
|
|
10821
|
+
fontFamily: "Roboto",
|
|
10822
|
+
fontWeight: 300,
|
|
10823
|
+
fontSize: 12,
|
|
10824
|
+
letterSpacing: 0.17,
|
|
10825
|
+
lineHeight: 1.2,
|
|
10826
|
+
[breakpoints.down("md")]: {
|
|
10827
|
+
fontSize: 11
|
|
10828
|
+
}
|
|
10829
|
+
},
|
|
11156
10830
|
subtitle1: {
|
|
11157
|
-
fontFamily:
|
|
10831
|
+
fontFamily: "Roboto",
|
|
11158
10832
|
fontSize: 14,
|
|
11159
10833
|
fontWeight: 500,
|
|
11160
10834
|
letterSpacing: 0.15,
|
|
@@ -11164,7 +10838,7 @@ const typography = {
|
|
|
11164
10838
|
}
|
|
11165
10839
|
},
|
|
11166
10840
|
subtitle2: {
|
|
11167
|
-
fontFamily:
|
|
10841
|
+
fontFamily: "Roboto",
|
|
11168
10842
|
fontSize: 13,
|
|
11169
10843
|
fontWeight: 500,
|
|
11170
10844
|
letterSpacing: 0.1,
|
|
@@ -11174,7 +10848,7 @@ const typography = {
|
|
|
11174
10848
|
}
|
|
11175
10849
|
},
|
|
11176
10850
|
caption: {
|
|
11177
|
-
fontFamily:
|
|
10851
|
+
fontFamily: "Roboto",
|
|
11178
10852
|
fontSize: 11,
|
|
11179
10853
|
fontWeight: 400,
|
|
11180
10854
|
letterSpacing: 0.4,
|
|
@@ -11184,7 +10858,7 @@ const typography = {
|
|
|
11184
10858
|
}
|
|
11185
10859
|
},
|
|
11186
10860
|
overline: {
|
|
11187
|
-
fontFamily:
|
|
10861
|
+
fontFamily: "Roboto",
|
|
11188
10862
|
fontSize: 11,
|
|
11189
10863
|
fontWeight: 400,
|
|
11190
10864
|
letterSpacing: 1,
|
|
@@ -11194,7 +10868,7 @@ const typography = {
|
|
|
11194
10868
|
}
|
|
11195
10869
|
},
|
|
11196
10870
|
h6: {
|
|
11197
|
-
fontFamily:
|
|
10871
|
+
fontFamily: "Nunito",
|
|
11198
10872
|
fontSize: 16,
|
|
11199
10873
|
fontWeight: 600,
|
|
11200
10874
|
lineHeight: 1.6,
|
|
@@ -11203,44 +10877,44 @@ const typography = {
|
|
|
11203
10877
|
}
|
|
11204
10878
|
},
|
|
11205
10879
|
h5: {
|
|
11206
|
-
fontFamily:
|
|
10880
|
+
fontFamily: "Nunito",
|
|
11207
10881
|
fontSize: 18,
|
|
11208
10882
|
fontWeight: 600,
|
|
11209
10883
|
lineHeight: 1.8
|
|
11210
10884
|
},
|
|
11211
10885
|
h4: {
|
|
11212
|
-
fontFamily:
|
|
10886
|
+
fontFamily: "Nunito",
|
|
11213
10887
|
fontSize: 20,
|
|
11214
10888
|
fontWeight: 600,
|
|
11215
10889
|
letterSpacing: 0.25,
|
|
11216
10890
|
lineHeight: 1
|
|
11217
10891
|
},
|
|
11218
10892
|
h3: {
|
|
11219
|
-
fontFamily:
|
|
10893
|
+
fontFamily: "Nunito",
|
|
11220
10894
|
fontSize: 28,
|
|
11221
10895
|
fontWeight: 500,
|
|
11222
10896
|
lineHeight: 1.2
|
|
11223
10897
|
},
|
|
11224
10898
|
h2: {
|
|
11225
|
-
fontFamily:
|
|
10899
|
+
fontFamily: "Nunito",
|
|
11226
10900
|
fontSize: 32,
|
|
11227
10901
|
fontWeight: 400,
|
|
11228
10902
|
letterSpacing: -0.5,
|
|
11229
10903
|
lineHeight: 1.2
|
|
11230
10904
|
},
|
|
11231
10905
|
h1: {
|
|
11232
|
-
fontFamily:
|
|
10906
|
+
fontFamily: "Nunito",
|
|
11233
10907
|
fontSize: 40,
|
|
11234
10908
|
fontWeight: 300,
|
|
11235
10909
|
letterSpacing: -1.5,
|
|
11236
10910
|
lineHeight: 1.4
|
|
11237
10911
|
},
|
|
11238
10912
|
button: {
|
|
11239
|
-
fontFamily:
|
|
11240
|
-
textTransform:
|
|
10913
|
+
fontFamily: "Roboto",
|
|
10914
|
+
textTransform: "unset",
|
|
11241
10915
|
fontWeightLight: 300,
|
|
11242
10916
|
fontSize: 13,
|
|
11243
|
-
lineHeight:
|
|
10917
|
+
lineHeight: "normal",
|
|
11244
10918
|
'@media(max-width: 885px)': {
|
|
11245
10919
|
fontSize: 14
|
|
11246
10920
|
}
|
|
@@ -12774,8 +12448,8 @@ function getPaperUtilityClass(slot) {
|
|
|
12774
12448
|
}
|
|
12775
12449
|
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
12776
12450
|
|
|
12777
|
-
const _excluded$
|
|
12778
|
-
const useUtilityClasses$
|
|
12451
|
+
const _excluded$b = ["className", "component", "elevation", "square", "variant"];
|
|
12452
|
+
const useUtilityClasses$7 = ownerState => {
|
|
12779
12453
|
const {
|
|
12780
12454
|
square,
|
|
12781
12455
|
elevation,
|
|
@@ -12829,14 +12503,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
12829
12503
|
square = false,
|
|
12830
12504
|
variant = 'elevation'
|
|
12831
12505
|
} = props,
|
|
12832
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12506
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$b);
|
|
12833
12507
|
const ownerState = _extends({}, props, {
|
|
12834
12508
|
component,
|
|
12835
12509
|
elevation,
|
|
12836
12510
|
square,
|
|
12837
12511
|
variant
|
|
12838
12512
|
});
|
|
12839
|
-
const classes = useUtilityClasses$
|
|
12513
|
+
const classes = useUtilityClasses$7(ownerState);
|
|
12840
12514
|
if (process.env.NODE_ENV !== 'production') {
|
|
12841
12515
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12842
12516
|
const theme = useTheme();
|
|
@@ -12987,15 +12661,15 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
|
12987
12661
|
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
|
12988
12662
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
12989
12663
|
|
|
12990
|
-
const _excluded$
|
|
12991
|
-
let _
|
|
12992
|
-
_t
|
|
12993
|
-
_t2
|
|
12994
|
-
_t3
|
|
12995
|
-
_t4
|
|
12664
|
+
const _excluded$a = ["center", "classes", "className"];
|
|
12665
|
+
let _ = t => t,
|
|
12666
|
+
_t,
|
|
12667
|
+
_t2,
|
|
12668
|
+
_t3,
|
|
12669
|
+
_t4;
|
|
12996
12670
|
const DURATION = 550;
|
|
12997
12671
|
const DELAY_RIPPLE = 80;
|
|
12998
|
-
const enterKeyframe = keyframes(_t
|
|
12672
|
+
const enterKeyframe = keyframes(_t || (_t = _`
|
|
12999
12673
|
0% {
|
|
13000
12674
|
transform: scale(0);
|
|
13001
12675
|
opacity: 0.1;
|
|
@@ -13006,7 +12680,7 @@ const enterKeyframe = keyframes(_t$1 || (_t$1 = _$1`
|
|
|
13006
12680
|
opacity: 0.3;
|
|
13007
12681
|
}
|
|
13008
12682
|
`));
|
|
13009
|
-
const exitKeyframe = keyframes(_t2
|
|
12683
|
+
const exitKeyframe = keyframes(_t2 || (_t2 = _`
|
|
13010
12684
|
0% {
|
|
13011
12685
|
opacity: 1;
|
|
13012
12686
|
}
|
|
@@ -13015,7 +12689,7 @@ const exitKeyframe = keyframes(_t2$1 || (_t2$1 = _$1`
|
|
|
13015
12689
|
opacity: 0;
|
|
13016
12690
|
}
|
|
13017
12691
|
`));
|
|
13018
|
-
const pulsateKeyframe = keyframes(_t3
|
|
12692
|
+
const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
|
|
13019
12693
|
0% {
|
|
13020
12694
|
transform: scale(1);
|
|
13021
12695
|
}
|
|
@@ -13048,7 +12722,7 @@ const TouchRippleRoot = styled$1('span', {
|
|
|
13048
12722
|
const TouchRippleRipple = styled$1(Ripple, {
|
|
13049
12723
|
name: 'MuiTouchRipple',
|
|
13050
12724
|
slot: 'Ripple'
|
|
13051
|
-
})(_t4
|
|
12725
|
+
})(_t4 || (_t4 = _`
|
|
13052
12726
|
opacity: 0;
|
|
13053
12727
|
position: absolute;
|
|
13054
12728
|
|
|
@@ -13116,7 +12790,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
13116
12790
|
classes = {},
|
|
13117
12791
|
className
|
|
13118
12792
|
} = props,
|
|
13119
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12793
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$a);
|
|
13120
12794
|
const [ripples, setRipples] = React.useState([]);
|
|
13121
12795
|
const nextKey = React.useRef(0);
|
|
13122
12796
|
const rippleCallback = React.useRef(null);
|
|
@@ -13317,8 +12991,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
13317
12991
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
13318
12992
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
13319
12993
|
|
|
13320
|
-
const _excluded$
|
|
13321
|
-
const useUtilityClasses$
|
|
12994
|
+
const _excluded$9 = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
12995
|
+
const useUtilityClasses$6 = ownerState => {
|
|
13322
12996
|
const {
|
|
13323
12997
|
disabled,
|
|
13324
12998
|
focusVisible,
|
|
@@ -13419,7 +13093,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13419
13093
|
touchRippleRef,
|
|
13420
13094
|
type
|
|
13421
13095
|
} = props,
|
|
13422
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13096
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
13423
13097
|
const buttonRef = React.useRef(null);
|
|
13424
13098
|
const rippleRef = React.useRef(null);
|
|
13425
13099
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -13586,7 +13260,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13586
13260
|
tabIndex,
|
|
13587
13261
|
focusVisible
|
|
13588
13262
|
});
|
|
13589
|
-
const classes = useUtilityClasses$
|
|
13263
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
13590
13264
|
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
|
|
13591
13265
|
as: ComponentProp,
|
|
13592
13266
|
className: clsx(classes.root, className),
|
|
@@ -13783,8 +13457,8 @@ function getIconButtonUtilityClass(slot) {
|
|
|
13783
13457
|
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
13784
13458
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
13785
13459
|
|
|
13786
|
-
const _excluded$
|
|
13787
|
-
const useUtilityClasses$
|
|
13460
|
+
const _excluded$8 = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
13461
|
+
const useUtilityClasses$5 = ownerState => {
|
|
13788
13462
|
const {
|
|
13789
13463
|
classes,
|
|
13790
13464
|
disabled,
|
|
@@ -13884,7 +13558,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13884
13558
|
disableFocusRipple = false,
|
|
13885
13559
|
size = 'medium'
|
|
13886
13560
|
} = props,
|
|
13887
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13561
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
13888
13562
|
const ownerState = _extends({}, props, {
|
|
13889
13563
|
edge,
|
|
13890
13564
|
color,
|
|
@@ -13892,7 +13566,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13892
13566
|
disableFocusRipple,
|
|
13893
13567
|
size
|
|
13894
13568
|
});
|
|
13895
|
-
const classes = useUtilityClasses$
|
|
13569
|
+
const classes = useUtilityClasses$5(ownerState);
|
|
13896
13570
|
return /*#__PURE__*/jsx(IconButtonRoot, _extends({
|
|
13897
13571
|
className: clsx(classes.root, className),
|
|
13898
13572
|
centerRipple: true,
|
|
@@ -13978,8 +13652,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
13978
13652
|
}
|
|
13979
13653
|
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
13980
13654
|
|
|
13981
|
-
const _excluded$
|
|
13982
|
-
const useUtilityClasses$
|
|
13655
|
+
const _excluded$7 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
13656
|
+
const useUtilityClasses$4 = ownerState => {
|
|
13983
13657
|
const {
|
|
13984
13658
|
align,
|
|
13985
13659
|
gutterBottom,
|
|
@@ -14062,7 +13736,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
14062
13736
|
variant = 'body1',
|
|
14063
13737
|
variantMapping = defaultVariantMapping
|
|
14064
13738
|
} = props,
|
|
14065
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13739
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
14066
13740
|
const ownerState = _extends({}, props, {
|
|
14067
13741
|
align,
|
|
14068
13742
|
color,
|
|
@@ -14075,7 +13749,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
14075
13749
|
variantMapping
|
|
14076
13750
|
});
|
|
14077
13751
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
14078
|
-
const classes = useUtilityClasses$
|
|
13752
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
14079
13753
|
return /*#__PURE__*/jsx(TypographyRoot, _extends({
|
|
14080
13754
|
as: Component,
|
|
14081
13755
|
ref: ref,
|
|
@@ -14160,7 +13834,7 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
|
|
|
14160
13834
|
} : void 0;
|
|
14161
13835
|
var Typography$1 = Typography;
|
|
14162
13836
|
|
|
14163
|
-
const _excluded$
|
|
13837
|
+
const _excluded$6 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
14164
13838
|
const styles = {
|
|
14165
13839
|
entering: {
|
|
14166
13840
|
opacity: 1
|
|
@@ -14197,7 +13871,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
14197
13871
|
// eslint-disable-next-line react/prop-types
|
|
14198
13872
|
TransitionComponent = Transition$1
|
|
14199
13873
|
} = props,
|
|
14200
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13874
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
14201
13875
|
const nodeRef = React.useRef(null);
|
|
14202
13876
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
14203
13877
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -14358,8 +14032,8 @@ function getBackdropUtilityClass(slot) {
|
|
|
14358
14032
|
}
|
|
14359
14033
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
14360
14034
|
|
|
14361
|
-
const _excluded$
|
|
14362
|
-
const useUtilityClasses$
|
|
14035
|
+
const _excluded$5 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
14036
|
+
const useUtilityClasses$3 = ownerState => {
|
|
14363
14037
|
const {
|
|
14364
14038
|
classes,
|
|
14365
14039
|
invisible
|
|
@@ -14413,12 +14087,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
14413
14087
|
TransitionComponent = Fade$1,
|
|
14414
14088
|
transitionDuration
|
|
14415
14089
|
} = props,
|
|
14416
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14090
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
14417
14091
|
const ownerState = _extends({}, props, {
|
|
14418
14092
|
component,
|
|
14419
14093
|
invisible
|
|
14420
14094
|
});
|
|
14421
|
-
const classes = useUtilityClasses$
|
|
14095
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
14422
14096
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
14423
14097
|
return /*#__PURE__*/jsx(TransitionComponent, _extends({
|
|
14424
14098
|
in: open,
|
|
@@ -14562,397 +14236,23 @@ process.env.NODE_ENV !== "production" ? Box$1.propTypes /* remove-proptypes */ =
|
|
|
14562
14236
|
} : void 0;
|
|
14563
14237
|
var Box$2 = Box$1;
|
|
14564
14238
|
|
|
14565
|
-
function
|
|
14566
|
-
return generateUtilityClass('
|
|
14567
|
-
}
|
|
14568
|
-
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
|
14569
|
-
var buttonClasses$1 = buttonClasses;
|
|
14570
|
-
|
|
14571
|
-
/**
|
|
14572
|
-
* @ignore - internal component.
|
|
14573
|
-
*/
|
|
14574
|
-
const ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
|
14575
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
14576
|
-
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
14239
|
+
function getCardUtilityClass(slot) {
|
|
14240
|
+
return generateUtilityClass('MuiCard', slot);
|
|
14577
14241
|
}
|
|
14578
|
-
|
|
14242
|
+
generateUtilityClasses('MuiCard', ['root']);
|
|
14579
14243
|
|
|
14580
|
-
const _excluded$
|
|
14581
|
-
const useUtilityClasses$
|
|
14244
|
+
const _excluded$4 = ["className", "raised"];
|
|
14245
|
+
const useUtilityClasses$2 = ownerState => {
|
|
14582
14246
|
const {
|
|
14583
|
-
color,
|
|
14584
|
-
disableElevation,
|
|
14585
|
-
fullWidth,
|
|
14586
|
-
size,
|
|
14587
|
-
variant,
|
|
14588
14247
|
classes
|
|
14589
14248
|
} = ownerState;
|
|
14590
14249
|
const slots = {
|
|
14591
|
-
root: ['root'
|
|
14592
|
-
label: ['label'],
|
|
14593
|
-
startIcon: ['startIcon', `iconSize${capitalize(size)}`],
|
|
14594
|
-
endIcon: ['endIcon', `iconSize${capitalize(size)}`]
|
|
14250
|
+
root: ['root']
|
|
14595
14251
|
};
|
|
14596
|
-
|
|
14597
|
-
return _extends({}, classes, composedClasses);
|
|
14252
|
+
return composeClasses(slots, getCardUtilityClass, classes);
|
|
14598
14253
|
};
|
|
14599
|
-
const
|
|
14600
|
-
|
|
14601
|
-
fontSize: 18
|
|
14602
|
-
}
|
|
14603
|
-
}, ownerState.size === 'medium' && {
|
|
14604
|
-
'& > *:nth-of-type(1)': {
|
|
14605
|
-
fontSize: 20
|
|
14606
|
-
}
|
|
14607
|
-
}, ownerState.size === 'large' && {
|
|
14608
|
-
'& > *:nth-of-type(1)': {
|
|
14609
|
-
fontSize: 22
|
|
14610
|
-
}
|
|
14611
|
-
});
|
|
14612
|
-
const ButtonRoot = styled$1(ButtonBase$1, {
|
|
14613
|
-
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
14614
|
-
name: 'MuiButton',
|
|
14615
|
-
slot: 'Root',
|
|
14616
|
-
overridesResolver: (props, styles) => {
|
|
14617
|
-
const {
|
|
14618
|
-
ownerState
|
|
14619
|
-
} = props;
|
|
14620
|
-
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
|
14621
|
-
}
|
|
14622
|
-
})(({
|
|
14623
|
-
theme,
|
|
14624
|
-
ownerState
|
|
14625
|
-
}) => {
|
|
14626
|
-
var _theme$palette$getCon, _theme$palette;
|
|
14627
|
-
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
14628
|
-
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
14629
|
-
return _extends({}, theme.typography.button, {
|
|
14630
|
-
minWidth: 64,
|
|
14631
|
-
padding: '6px 16px',
|
|
14632
|
-
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
14633
|
-
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
14634
|
-
duration: theme.transitions.duration.short
|
|
14635
|
-
}),
|
|
14636
|
-
'&:hover': _extends({
|
|
14637
|
-
textDecoration: 'none',
|
|
14638
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
14639
|
-
// Reset on touch devices, it doesn't add specificity
|
|
14640
|
-
'@media (hover: none)': {
|
|
14641
|
-
backgroundColor: 'transparent'
|
|
14642
|
-
}
|
|
14643
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
14644
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
14645
|
-
// Reset on touch devices, it doesn't add specificity
|
|
14646
|
-
'@media (hover: none)': {
|
|
14647
|
-
backgroundColor: 'transparent'
|
|
14648
|
-
}
|
|
14649
|
-
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
14650
|
-
border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
|
14651
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
14652
|
-
// Reset on touch devices, it doesn't add specificity
|
|
14653
|
-
'@media (hover: none)': {
|
|
14654
|
-
backgroundColor: 'transparent'
|
|
14655
|
-
}
|
|
14656
|
-
}, ownerState.variant === 'contained' && {
|
|
14657
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
14658
|
-
boxShadow: (theme.vars || theme).shadows[4],
|
|
14659
|
-
// Reset on touch devices, it doesn't add specificity
|
|
14660
|
-
'@media (hover: none)': {
|
|
14661
|
-
boxShadow: (theme.vars || theme).shadows[2],
|
|
14662
|
-
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
14663
|
-
}
|
|
14664
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
14665
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
14666
|
-
// Reset on touch devices, it doesn't add specificity
|
|
14667
|
-
'@media (hover: none)': {
|
|
14668
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
14669
|
-
}
|
|
14670
|
-
}),
|
|
14671
|
-
'&:active': _extends({}, ownerState.variant === 'contained' && {
|
|
14672
|
-
boxShadow: (theme.vars || theme).shadows[8]
|
|
14673
|
-
}),
|
|
14674
|
-
[`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
|
|
14675
|
-
boxShadow: (theme.vars || theme).shadows[6]
|
|
14676
|
-
}),
|
|
14677
|
-
[`&.${buttonClasses$1.disabled}`]: _extends({
|
|
14678
|
-
color: (theme.vars || theme).palette.action.disabled
|
|
14679
|
-
}, ownerState.variant === 'outlined' && {
|
|
14680
|
-
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
14681
|
-
}, ownerState.variant === 'contained' && {
|
|
14682
|
-
color: (theme.vars || theme).palette.action.disabled,
|
|
14683
|
-
boxShadow: (theme.vars || theme).shadows[0],
|
|
14684
|
-
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
14685
|
-
})
|
|
14686
|
-
}, ownerState.variant === 'text' && {
|
|
14687
|
-
padding: '6px 8px'
|
|
14688
|
-
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
14689
|
-
color: (theme.vars || theme).palette[ownerState.color].main
|
|
14690
|
-
}, ownerState.variant === 'outlined' && {
|
|
14691
|
-
padding: '5px 15px',
|
|
14692
|
-
border: '1px solid currentColor'
|
|
14693
|
-
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
14694
|
-
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
14695
|
-
border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
|
|
14696
|
-
}, ownerState.variant === 'contained' && {
|
|
14697
|
-
color: theme.vars ?
|
|
14698
|
-
// this is safe because grey does not change between default light/dark mode
|
|
14699
|
-
theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
14700
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
|
14701
|
-
boxShadow: (theme.vars || theme).shadows[2]
|
|
14702
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
14703
|
-
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
14704
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
14705
|
-
}, ownerState.color === 'inherit' && {
|
|
14706
|
-
color: 'inherit',
|
|
14707
|
-
borderColor: 'currentColor'
|
|
14708
|
-
}, ownerState.size === 'small' && ownerState.variant === 'text' && {
|
|
14709
|
-
padding: '4px 5px',
|
|
14710
|
-
fontSize: theme.typography.pxToRem(13)
|
|
14711
|
-
}, ownerState.size === 'large' && ownerState.variant === 'text' && {
|
|
14712
|
-
padding: '8px 11px',
|
|
14713
|
-
fontSize: theme.typography.pxToRem(15)
|
|
14714
|
-
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
14715
|
-
padding: '3px 9px',
|
|
14716
|
-
fontSize: theme.typography.pxToRem(13)
|
|
14717
|
-
}, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
|
|
14718
|
-
padding: '7px 21px',
|
|
14719
|
-
fontSize: theme.typography.pxToRem(15)
|
|
14720
|
-
}, ownerState.size === 'small' && ownerState.variant === 'contained' && {
|
|
14721
|
-
padding: '4px 10px',
|
|
14722
|
-
fontSize: theme.typography.pxToRem(13)
|
|
14723
|
-
}, ownerState.size === 'large' && ownerState.variant === 'contained' && {
|
|
14724
|
-
padding: '8px 22px',
|
|
14725
|
-
fontSize: theme.typography.pxToRem(15)
|
|
14726
|
-
}, ownerState.fullWidth && {
|
|
14727
|
-
width: '100%'
|
|
14728
|
-
});
|
|
14729
|
-
}, ({
|
|
14730
|
-
ownerState
|
|
14731
|
-
}) => ownerState.disableElevation && {
|
|
14732
|
-
boxShadow: 'none',
|
|
14733
|
-
'&:hover': {
|
|
14734
|
-
boxShadow: 'none'
|
|
14735
|
-
},
|
|
14736
|
-
[`&.${buttonClasses$1.focusVisible}`]: {
|
|
14737
|
-
boxShadow: 'none'
|
|
14738
|
-
},
|
|
14739
|
-
'&:active': {
|
|
14740
|
-
boxShadow: 'none'
|
|
14741
|
-
},
|
|
14742
|
-
[`&.${buttonClasses$1.disabled}`]: {
|
|
14743
|
-
boxShadow: 'none'
|
|
14744
|
-
}
|
|
14745
|
-
});
|
|
14746
|
-
const ButtonStartIcon = styled$1('span', {
|
|
14747
|
-
name: 'MuiButton',
|
|
14748
|
-
slot: 'StartIcon',
|
|
14749
|
-
overridesResolver: (props, styles) => {
|
|
14750
|
-
const {
|
|
14751
|
-
ownerState
|
|
14752
|
-
} = props;
|
|
14753
|
-
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
|
14754
|
-
}
|
|
14755
|
-
})(({
|
|
14756
|
-
ownerState
|
|
14757
|
-
}) => _extends({
|
|
14758
|
-
display: 'inherit',
|
|
14759
|
-
marginRight: 8,
|
|
14760
|
-
marginLeft: -4
|
|
14761
|
-
}, ownerState.size === 'small' && {
|
|
14762
|
-
marginLeft: -2
|
|
14763
|
-
}, commonIconStyles(ownerState)));
|
|
14764
|
-
const ButtonEndIcon = styled$1('span', {
|
|
14765
|
-
name: 'MuiButton',
|
|
14766
|
-
slot: 'EndIcon',
|
|
14767
|
-
overridesResolver: (props, styles) => {
|
|
14768
|
-
const {
|
|
14769
|
-
ownerState
|
|
14770
|
-
} = props;
|
|
14771
|
-
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
|
14772
|
-
}
|
|
14773
|
-
})(({
|
|
14774
|
-
ownerState
|
|
14775
|
-
}) => _extends({
|
|
14776
|
-
display: 'inherit',
|
|
14777
|
-
marginRight: -4,
|
|
14778
|
-
marginLeft: 8
|
|
14779
|
-
}, ownerState.size === 'small' && {
|
|
14780
|
-
marginRight: -2
|
|
14781
|
-
}, commonIconStyles(ownerState)));
|
|
14782
|
-
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
14783
|
-
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
14784
|
-
const contextProps = React.useContext(ButtonGroupContext$1);
|
|
14785
|
-
const resolvedProps = resolveProps(contextProps, inProps);
|
|
14786
|
-
const props = useThemeProps({
|
|
14787
|
-
props: resolvedProps,
|
|
14788
|
-
name: 'MuiButton'
|
|
14789
|
-
});
|
|
14790
|
-
const {
|
|
14791
|
-
children,
|
|
14792
|
-
color = 'primary',
|
|
14793
|
-
component = 'button',
|
|
14794
|
-
className,
|
|
14795
|
-
disabled = false,
|
|
14796
|
-
disableElevation = false,
|
|
14797
|
-
disableFocusRipple = false,
|
|
14798
|
-
endIcon: endIconProp,
|
|
14799
|
-
focusVisibleClassName,
|
|
14800
|
-
fullWidth = false,
|
|
14801
|
-
size = 'medium',
|
|
14802
|
-
startIcon: startIconProp,
|
|
14803
|
-
type,
|
|
14804
|
-
variant = 'text'
|
|
14805
|
-
} = props,
|
|
14806
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
14807
|
-
const ownerState = _extends({}, props, {
|
|
14808
|
-
color,
|
|
14809
|
-
component,
|
|
14810
|
-
disabled,
|
|
14811
|
-
disableElevation,
|
|
14812
|
-
disableFocusRipple,
|
|
14813
|
-
fullWidth,
|
|
14814
|
-
size,
|
|
14815
|
-
type,
|
|
14816
|
-
variant
|
|
14817
|
-
});
|
|
14818
|
-
const classes = useUtilityClasses$5(ownerState);
|
|
14819
|
-
const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
|
|
14820
|
-
className: classes.startIcon,
|
|
14821
|
-
ownerState: ownerState,
|
|
14822
|
-
children: startIconProp
|
|
14823
|
-
});
|
|
14824
|
-
const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
|
|
14825
|
-
className: classes.endIcon,
|
|
14826
|
-
ownerState: ownerState,
|
|
14827
|
-
children: endIconProp
|
|
14828
|
-
});
|
|
14829
|
-
return /*#__PURE__*/jsxs(ButtonRoot, _extends({
|
|
14830
|
-
ownerState: ownerState,
|
|
14831
|
-
className: clsx(contextProps.className, classes.root, className),
|
|
14832
|
-
component: component,
|
|
14833
|
-
disabled: disabled,
|
|
14834
|
-
focusRipple: !disableFocusRipple,
|
|
14835
|
-
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
14836
|
-
ref: ref,
|
|
14837
|
-
type: type
|
|
14838
|
-
}, other, {
|
|
14839
|
-
classes: classes,
|
|
14840
|
-
children: [startIcon, children, endIcon]
|
|
14841
|
-
}));
|
|
14842
|
-
});
|
|
14843
|
-
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
|
14844
|
-
// ----------------------------- Warning --------------------------------
|
|
14845
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14846
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
14847
|
-
// ----------------------------------------------------------------------
|
|
14848
|
-
/**
|
|
14849
|
-
* The content of the component.
|
|
14850
|
-
*/
|
|
14851
|
-
children: PropTypes.node,
|
|
14852
|
-
/**
|
|
14853
|
-
* Override or extend the styles applied to the component.
|
|
14854
|
-
*/
|
|
14855
|
-
classes: PropTypes.object,
|
|
14856
|
-
/**
|
|
14857
|
-
* @ignore
|
|
14858
|
-
*/
|
|
14859
|
-
className: PropTypes.string,
|
|
14860
|
-
/**
|
|
14861
|
-
* The color of the component.
|
|
14862
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
14863
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
14864
|
-
* @default 'primary'
|
|
14865
|
-
*/
|
|
14866
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
|
|
14867
|
-
/**
|
|
14868
|
-
* The component used for the root node.
|
|
14869
|
-
* Either a string to use a HTML element or a component.
|
|
14870
|
-
*/
|
|
14871
|
-
component: PropTypes.elementType,
|
|
14872
|
-
/**
|
|
14873
|
-
* If `true`, the component is disabled.
|
|
14874
|
-
* @default false
|
|
14875
|
-
*/
|
|
14876
|
-
disabled: PropTypes.bool,
|
|
14877
|
-
/**
|
|
14878
|
-
* If `true`, no elevation is used.
|
|
14879
|
-
* @default false
|
|
14880
|
-
*/
|
|
14881
|
-
disableElevation: PropTypes.bool,
|
|
14882
|
-
/**
|
|
14883
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
14884
|
-
* @default false
|
|
14885
|
-
*/
|
|
14886
|
-
disableFocusRipple: PropTypes.bool,
|
|
14887
|
-
/**
|
|
14888
|
-
* If `true`, the ripple effect is disabled.
|
|
14889
|
-
*
|
|
14890
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
14891
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
14892
|
-
* @default false
|
|
14893
|
-
*/
|
|
14894
|
-
disableRipple: PropTypes.bool,
|
|
14895
|
-
/**
|
|
14896
|
-
* Element placed after the children.
|
|
14897
|
-
*/
|
|
14898
|
-
endIcon: PropTypes.node,
|
|
14899
|
-
/**
|
|
14900
|
-
* @ignore
|
|
14901
|
-
*/
|
|
14902
|
-
focusVisibleClassName: PropTypes.string,
|
|
14903
|
-
/**
|
|
14904
|
-
* If `true`, the button will take up the full width of its container.
|
|
14905
|
-
* @default false
|
|
14906
|
-
*/
|
|
14907
|
-
fullWidth: PropTypes.bool,
|
|
14908
|
-
/**
|
|
14909
|
-
* The URL to link to when the button is clicked.
|
|
14910
|
-
* If defined, an `a` element will be used as the root node.
|
|
14911
|
-
*/
|
|
14912
|
-
href: PropTypes.string,
|
|
14913
|
-
/**
|
|
14914
|
-
* The size of the component.
|
|
14915
|
-
* `small` is equivalent to the dense button styling.
|
|
14916
|
-
* @default 'medium'
|
|
14917
|
-
*/
|
|
14918
|
-
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
|
14919
|
-
/**
|
|
14920
|
-
* Element placed before the children.
|
|
14921
|
-
*/
|
|
14922
|
-
startIcon: PropTypes.node,
|
|
14923
|
-
/**
|
|
14924
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
14925
|
-
*/
|
|
14926
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
14927
|
-
/**
|
|
14928
|
-
* @ignore
|
|
14929
|
-
*/
|
|
14930
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),
|
|
14931
|
-
/**
|
|
14932
|
-
* The variant to use.
|
|
14933
|
-
* @default 'text'
|
|
14934
|
-
*/
|
|
14935
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
14936
|
-
} : void 0;
|
|
14937
|
-
var Button$1 = Button;
|
|
14938
|
-
|
|
14939
|
-
function getCardUtilityClass(slot) {
|
|
14940
|
-
return generateUtilityClass('MuiCard', slot);
|
|
14941
|
-
}
|
|
14942
|
-
generateUtilityClasses('MuiCard', ['root']);
|
|
14943
|
-
|
|
14944
|
-
const _excluded$6 = ["className", "raised"];
|
|
14945
|
-
const useUtilityClasses$4 = ownerState => {
|
|
14946
|
-
const {
|
|
14947
|
-
classes
|
|
14948
|
-
} = ownerState;
|
|
14949
|
-
const slots = {
|
|
14950
|
-
root: ['root']
|
|
14951
|
-
};
|
|
14952
|
-
return composeClasses(slots, getCardUtilityClass, classes);
|
|
14953
|
-
};
|
|
14954
|
-
const CardRoot = styled$1(Paper$1, {
|
|
14955
|
-
name: 'MuiCard',
|
|
14254
|
+
const CardRoot = styled$1(Paper$1, {
|
|
14255
|
+
name: 'MuiCard',
|
|
14956
14256
|
slot: 'Root',
|
|
14957
14257
|
overridesResolver: (props, styles) => styles.root
|
|
14958
14258
|
})(() => {
|
|
@@ -14969,11 +14269,11 @@ const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
|
|
14969
14269
|
className,
|
|
14970
14270
|
raised = false
|
|
14971
14271
|
} = props,
|
|
14972
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14272
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
14973
14273
|
const ownerState = _extends({}, props, {
|
|
14974
14274
|
raised
|
|
14975
14275
|
});
|
|
14976
|
-
const classes = useUtilityClasses$
|
|
14276
|
+
const classes = useUtilityClasses$2(ownerState);
|
|
14977
14277
|
return /*#__PURE__*/jsx(CardRoot, _extends({
|
|
14978
14278
|
className: clsx(classes.root, className),
|
|
14979
14279
|
elevation: raised ? 8 : undefined,
|
|
@@ -15020,8 +14320,8 @@ function getCardContentUtilityClass(slot) {
|
|
|
15020
14320
|
}
|
|
15021
14321
|
generateUtilityClasses('MuiCardContent', ['root']);
|
|
15022
14322
|
|
|
15023
|
-
const _excluded$
|
|
15024
|
-
const useUtilityClasses$
|
|
14323
|
+
const _excluded$3 = ["className", "component"];
|
|
14324
|
+
const useUtilityClasses$1 = ownerState => {
|
|
15025
14325
|
const {
|
|
15026
14326
|
classes
|
|
15027
14327
|
} = ownerState;
|
|
@@ -15051,11 +14351,11 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps,
|
|
|
15051
14351
|
className,
|
|
15052
14352
|
component = 'div'
|
|
15053
14353
|
} = props,
|
|
15054
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14354
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
15055
14355
|
const ownerState = _extends({}, props, {
|
|
15056
14356
|
component
|
|
15057
14357
|
});
|
|
15058
|
-
const classes = useUtilityClasses$
|
|
14358
|
+
const classes = useUtilityClasses$1(ownerState);
|
|
15059
14359
|
return /*#__PURE__*/jsx(CardContentRoot, _extends({
|
|
15060
14360
|
as: component,
|
|
15061
14361
|
className: clsx(classes.root, className),
|
|
@@ -15092,7 +14392,7 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptype
|
|
|
15092
14392
|
} : void 0;
|
|
15093
14393
|
var CardContent$1 = CardContent;
|
|
15094
14394
|
|
|
15095
|
-
const _excluded$
|
|
14395
|
+
const _excluded$2 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
15096
14396
|
const ModalRoot = styled$1('div', {
|
|
15097
14397
|
name: 'MuiModal',
|
|
15098
14398
|
slot: 'Root',
|
|
@@ -15171,7 +14471,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
15171
14471
|
// eslint-disable-next-line react/prop-types
|
|
15172
14472
|
theme
|
|
15173
14473
|
} = props,
|
|
15174
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14474
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
15175
14475
|
const [exited, setExited] = React.useState(true);
|
|
15176
14476
|
const commonProps = {
|
|
15177
14477
|
container,
|
|
@@ -15359,275 +14659,38 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
15359
14659
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
15360
14660
|
*
|
|
15361
14661
|
* @param {object} event The event source of the callback.
|
|
15362
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
15363
|
-
*/
|
|
15364
|
-
onClose: PropTypes.func,
|
|
15365
|
-
/**
|
|
15366
|
-
* If `true`, the component is shown.
|
|
15367
|
-
*/
|
|
15368
|
-
open: PropTypes.bool.isRequired,
|
|
15369
|
-
/**
|
|
15370
|
-
* The props used for each slot inside the Modal.
|
|
15371
|
-
* @default {}
|
|
15372
|
-
*/
|
|
15373
|
-
slotProps: PropTypes.shape({
|
|
15374
|
-
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
15375
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
15376
|
-
}),
|
|
15377
|
-
/**
|
|
15378
|
-
* The components used for each slot inside the Modal.
|
|
15379
|
-
* Either a string to use a HTML element or a component.
|
|
15380
|
-
* @default {}
|
|
15381
|
-
*/
|
|
15382
|
-
slots: PropTypes.shape({
|
|
15383
|
-
backdrop: PropTypes.elementType,
|
|
15384
|
-
root: PropTypes.elementType
|
|
15385
|
-
}),
|
|
15386
|
-
/**
|
|
15387
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
15388
|
-
*/
|
|
15389
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
15390
|
-
} : void 0;
|
|
15391
|
-
var Modal$1 = Modal;
|
|
15392
|
-
|
|
15393
|
-
function getDividerUtilityClass(slot) {
|
|
15394
|
-
return generateUtilityClass('MuiDivider', slot);
|
|
15395
|
-
}
|
|
15396
|
-
generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
15397
|
-
|
|
15398
|
-
const _excluded$3 = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
15399
|
-
const useUtilityClasses$2 = ownerState => {
|
|
15400
|
-
const {
|
|
15401
|
-
absolute,
|
|
15402
|
-
children,
|
|
15403
|
-
classes,
|
|
15404
|
-
flexItem,
|
|
15405
|
-
light,
|
|
15406
|
-
orientation,
|
|
15407
|
-
textAlign,
|
|
15408
|
-
variant
|
|
15409
|
-
} = ownerState;
|
|
15410
|
-
const slots = {
|
|
15411
|
-
root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
|
|
15412
|
-
wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
|
|
15413
|
-
};
|
|
15414
|
-
return composeClasses(slots, getDividerUtilityClass, classes);
|
|
15415
|
-
};
|
|
15416
|
-
const DividerRoot = styled$1('div', {
|
|
15417
|
-
name: 'MuiDivider',
|
|
15418
|
-
slot: 'Root',
|
|
15419
|
-
overridesResolver: (props, styles) => {
|
|
15420
|
-
const {
|
|
15421
|
-
ownerState
|
|
15422
|
-
} = props;
|
|
15423
|
-
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
|
|
15424
|
-
}
|
|
15425
|
-
})(({
|
|
15426
|
-
theme,
|
|
15427
|
-
ownerState
|
|
15428
|
-
}) => _extends({
|
|
15429
|
-
margin: 0,
|
|
15430
|
-
// Reset browser default style.
|
|
15431
|
-
flexShrink: 0,
|
|
15432
|
-
borderWidth: 0,
|
|
15433
|
-
borderStyle: 'solid',
|
|
15434
|
-
borderColor: (theme.vars || theme).palette.divider,
|
|
15435
|
-
borderBottomWidth: 'thin'
|
|
15436
|
-
}, ownerState.absolute && {
|
|
15437
|
-
position: 'absolute',
|
|
15438
|
-
bottom: 0,
|
|
15439
|
-
left: 0,
|
|
15440
|
-
width: '100%'
|
|
15441
|
-
}, ownerState.light && {
|
|
15442
|
-
borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
|
|
15443
|
-
}, ownerState.variant === 'inset' && {
|
|
15444
|
-
marginLeft: 72
|
|
15445
|
-
}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
|
|
15446
|
-
marginLeft: theme.spacing(2),
|
|
15447
|
-
marginRight: theme.spacing(2)
|
|
15448
|
-
}, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {
|
|
15449
|
-
marginTop: theme.spacing(1),
|
|
15450
|
-
marginBottom: theme.spacing(1)
|
|
15451
|
-
}, ownerState.orientation === 'vertical' && {
|
|
15452
|
-
height: '100%',
|
|
15453
|
-
borderBottomWidth: 0,
|
|
15454
|
-
borderRightWidth: 'thin'
|
|
15455
|
-
}, ownerState.flexItem && {
|
|
15456
|
-
alignSelf: 'stretch',
|
|
15457
|
-
height: 'auto'
|
|
15458
|
-
}), ({
|
|
15459
|
-
ownerState
|
|
15460
|
-
}) => _extends({}, ownerState.children && {
|
|
15461
|
-
display: 'flex',
|
|
15462
|
-
whiteSpace: 'nowrap',
|
|
15463
|
-
textAlign: 'center',
|
|
15464
|
-
border: 0,
|
|
15465
|
-
'&::before, &::after': {
|
|
15466
|
-
content: '""',
|
|
15467
|
-
alignSelf: 'center'
|
|
15468
|
-
}
|
|
15469
|
-
}), ({
|
|
15470
|
-
theme,
|
|
15471
|
-
ownerState
|
|
15472
|
-
}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
|
|
15473
|
-
'&::before, &::after': {
|
|
15474
|
-
width: '100%',
|
|
15475
|
-
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
15476
|
-
}
|
|
15477
|
-
}), ({
|
|
15478
|
-
theme,
|
|
15479
|
-
ownerState
|
|
15480
|
-
}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {
|
|
15481
|
-
flexDirection: 'column',
|
|
15482
|
-
'&::before, &::after': {
|
|
15483
|
-
height: '100%',
|
|
15484
|
-
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
15485
|
-
}
|
|
15486
|
-
}), ({
|
|
15487
|
-
ownerState
|
|
15488
|
-
}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
|
|
15489
|
-
'&::before': {
|
|
15490
|
-
width: '90%'
|
|
15491
|
-
},
|
|
15492
|
-
'&::after': {
|
|
15493
|
-
width: '10%'
|
|
15494
|
-
}
|
|
15495
|
-
}, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {
|
|
15496
|
-
'&::before': {
|
|
15497
|
-
width: '10%'
|
|
15498
|
-
},
|
|
15499
|
-
'&::after': {
|
|
15500
|
-
width: '90%'
|
|
15501
|
-
}
|
|
15502
|
-
}));
|
|
15503
|
-
const DividerWrapper = styled$1('span', {
|
|
15504
|
-
name: 'MuiDivider',
|
|
15505
|
-
slot: 'Wrapper',
|
|
15506
|
-
overridesResolver: (props, styles) => {
|
|
15507
|
-
const {
|
|
15508
|
-
ownerState
|
|
15509
|
-
} = props;
|
|
15510
|
-
return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
|
|
15511
|
-
}
|
|
15512
|
-
})(({
|
|
15513
|
-
theme,
|
|
15514
|
-
ownerState
|
|
15515
|
-
}) => _extends({
|
|
15516
|
-
display: 'inline-block',
|
|
15517
|
-
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
|
15518
|
-
paddingRight: `calc(${theme.spacing(1)} * 1.2)`
|
|
15519
|
-
}, ownerState.orientation === 'vertical' && {
|
|
15520
|
-
paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
|
|
15521
|
-
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
|
|
15522
|
-
}));
|
|
15523
|
-
const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
15524
|
-
const props = useThemeProps({
|
|
15525
|
-
props: inProps,
|
|
15526
|
-
name: 'MuiDivider'
|
|
15527
|
-
});
|
|
15528
|
-
const {
|
|
15529
|
-
absolute = false,
|
|
15530
|
-
children,
|
|
15531
|
-
className,
|
|
15532
|
-
component = children ? 'div' : 'hr',
|
|
15533
|
-
flexItem = false,
|
|
15534
|
-
light = false,
|
|
15535
|
-
orientation = 'horizontal',
|
|
15536
|
-
role = component !== 'hr' ? 'separator' : undefined,
|
|
15537
|
-
textAlign = 'center',
|
|
15538
|
-
variant = 'fullWidth'
|
|
15539
|
-
} = props,
|
|
15540
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
15541
|
-
const ownerState = _extends({}, props, {
|
|
15542
|
-
absolute,
|
|
15543
|
-
component,
|
|
15544
|
-
flexItem,
|
|
15545
|
-
light,
|
|
15546
|
-
orientation,
|
|
15547
|
-
role,
|
|
15548
|
-
textAlign,
|
|
15549
|
-
variant
|
|
15550
|
-
});
|
|
15551
|
-
const classes = useUtilityClasses$2(ownerState);
|
|
15552
|
-
return /*#__PURE__*/jsx(DividerRoot, _extends({
|
|
15553
|
-
as: component,
|
|
15554
|
-
className: clsx(classes.root, className),
|
|
15555
|
-
role: role,
|
|
15556
|
-
ref: ref,
|
|
15557
|
-
ownerState: ownerState
|
|
15558
|
-
}, other, {
|
|
15559
|
-
children: children ? /*#__PURE__*/jsx(DividerWrapper, {
|
|
15560
|
-
className: classes.wrapper,
|
|
15561
|
-
ownerState: ownerState,
|
|
15562
|
-
children: children
|
|
15563
|
-
}) : null
|
|
15564
|
-
}));
|
|
15565
|
-
});
|
|
15566
|
-
process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */ = {
|
|
15567
|
-
// ----------------------------- Warning --------------------------------
|
|
15568
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15569
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
15570
|
-
// ----------------------------------------------------------------------
|
|
15571
|
-
/**
|
|
15572
|
-
* Absolutely position the element.
|
|
15573
|
-
* @default false
|
|
15574
|
-
*/
|
|
15575
|
-
absolute: PropTypes.bool,
|
|
15576
|
-
/**
|
|
15577
|
-
* The content of the component.
|
|
15578
|
-
*/
|
|
15579
|
-
children: PropTypes.node,
|
|
15580
|
-
/**
|
|
15581
|
-
* Override or extend the styles applied to the component.
|
|
15582
|
-
*/
|
|
15583
|
-
classes: PropTypes.object,
|
|
15584
|
-
/**
|
|
15585
|
-
* @ignore
|
|
15586
|
-
*/
|
|
15587
|
-
className: PropTypes.string,
|
|
15588
|
-
/**
|
|
15589
|
-
* The component used for the root node.
|
|
15590
|
-
* Either a string to use a HTML element or a component.
|
|
15591
|
-
*/
|
|
15592
|
-
component: PropTypes.elementType,
|
|
15593
|
-
/**
|
|
15594
|
-
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
15595
|
-
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
15596
|
-
* @default false
|
|
14662
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
15597
14663
|
*/
|
|
15598
|
-
|
|
14664
|
+
onClose: PropTypes.func,
|
|
15599
14665
|
/**
|
|
15600
|
-
* If `true`, the
|
|
15601
|
-
* @default false
|
|
14666
|
+
* If `true`, the component is shown.
|
|
15602
14667
|
*/
|
|
15603
|
-
|
|
14668
|
+
open: PropTypes.bool.isRequired,
|
|
15604
14669
|
/**
|
|
15605
|
-
* The
|
|
15606
|
-
* @default
|
|
14670
|
+
* The props used for each slot inside the Modal.
|
|
14671
|
+
* @default {}
|
|
15607
14672
|
*/
|
|
15608
|
-
|
|
14673
|
+
slotProps: PropTypes.shape({
|
|
14674
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14675
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
14676
|
+
}),
|
|
15609
14677
|
/**
|
|
15610
|
-
*
|
|
14678
|
+
* The components used for each slot inside the Modal.
|
|
14679
|
+
* Either a string to use a HTML element or a component.
|
|
14680
|
+
* @default {}
|
|
15611
14681
|
*/
|
|
15612
|
-
|
|
14682
|
+
slots: PropTypes.shape({
|
|
14683
|
+
backdrop: PropTypes.elementType,
|
|
14684
|
+
root: PropTypes.elementType
|
|
14685
|
+
}),
|
|
15613
14686
|
/**
|
|
15614
14687
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
15615
14688
|
*/
|
|
15616
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
15617
|
-
/**
|
|
15618
|
-
* The text alignment.
|
|
15619
|
-
* @default 'center'
|
|
15620
|
-
*/
|
|
15621
|
-
textAlign: PropTypes.oneOf(['center', 'left', 'right']),
|
|
15622
|
-
/**
|
|
15623
|
-
* The variant to use.
|
|
15624
|
-
* @default 'fullWidth'
|
|
15625
|
-
*/
|
|
15626
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])
|
|
14689
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
15627
14690
|
} : void 0;
|
|
15628
|
-
var
|
|
14691
|
+
var Modal$1 = Modal;
|
|
15629
14692
|
|
|
15630
|
-
const _excluded$
|
|
14693
|
+
const _excluded$1 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
15631
14694
|
function getTranslateValue(direction, node, resolvedContainer) {
|
|
15632
14695
|
const rect = node.getBoundingClientRect();
|
|
15633
14696
|
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
@@ -15716,7 +14779,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
15716
14779
|
// eslint-disable-next-line react/prop-types
|
|
15717
14780
|
TransitionComponent = Transition$1
|
|
15718
14781
|
} = props,
|
|
15719
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14782
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
15720
14783
|
const childrenRef = React.useRef(null);
|
|
15721
14784
|
const handleRef = useForkRef(children.ref, childrenRef, ref);
|
|
15722
14785
|
const normalizedTransitionCallback = callback => isAppearing => {
|
|
@@ -15944,7 +15007,7 @@ function getDrawerUtilityClass(slot) {
|
|
|
15944
15007
|
}
|
|
15945
15008
|
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
|
15946
15009
|
|
|
15947
|
-
const _excluded
|
|
15010
|
+
const _excluded = ["BackdropProps"],
|
|
15948
15011
|
_excluded2 = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"];
|
|
15949
15012
|
const overridesResolver = (props, styles) => {
|
|
15950
15013
|
const {
|
|
@@ -15952,7 +15015,7 @@ const overridesResolver = (props, styles) => {
|
|
|
15952
15015
|
} = props;
|
|
15953
15016
|
return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
|
|
15954
15017
|
};
|
|
15955
|
-
const useUtilityClasses
|
|
15018
|
+
const useUtilityClasses = ownerState => {
|
|
15956
15019
|
const {
|
|
15957
15020
|
classes,
|
|
15958
15021
|
anchor,
|
|
@@ -16084,7 +15147,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
16084
15147
|
transitionDuration = defaultTransitionDuration,
|
|
16085
15148
|
variant = 'temporary'
|
|
16086
15149
|
} = props,
|
|
16087
|
-
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded
|
|
15150
|
+
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
|
|
16088
15151
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
16089
15152
|
|
|
16090
15153
|
// Let's assume that the Drawer will always be rendered on user space.
|
|
@@ -16102,7 +15165,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
16102
15165
|
open,
|
|
16103
15166
|
variant
|
|
16104
15167
|
}, other);
|
|
16105
|
-
const classes = useUtilityClasses
|
|
15168
|
+
const classes = useUtilityClasses(ownerState);
|
|
16106
15169
|
const drawer = /*#__PURE__*/jsx(DrawerPaper, _extends({
|
|
16107
15170
|
elevation: variant === 'temporary' ? elevation : 0,
|
|
16108
15171
|
square: true
|
|
@@ -16239,346 +15302,6 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
|
|
|
16239
15302
|
} : void 0;
|
|
16240
15303
|
var Drawer$1 = Drawer;
|
|
16241
15304
|
|
|
16242
|
-
function getLinearProgressUtilityClass(slot) {
|
|
16243
|
-
return generateUtilityClass('MuiLinearProgress', slot);
|
|
16244
|
-
}
|
|
16245
|
-
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
|
16246
|
-
|
|
16247
|
-
const _excluded = ["className", "color", "value", "valueBuffer", "variant"];
|
|
16248
|
-
let _ = t => t,
|
|
16249
|
-
_t,
|
|
16250
|
-
_t2,
|
|
16251
|
-
_t3,
|
|
16252
|
-
_t4,
|
|
16253
|
-
_t5,
|
|
16254
|
-
_t6;
|
|
16255
|
-
const TRANSITION_DURATION = 4; // seconds
|
|
16256
|
-
const indeterminate1Keyframe = keyframes(_t || (_t = _`
|
|
16257
|
-
0% {
|
|
16258
|
-
left: -35%;
|
|
16259
|
-
right: 100%;
|
|
16260
|
-
}
|
|
16261
|
-
|
|
16262
|
-
60% {
|
|
16263
|
-
left: 100%;
|
|
16264
|
-
right: -90%;
|
|
16265
|
-
}
|
|
16266
|
-
|
|
16267
|
-
100% {
|
|
16268
|
-
left: 100%;
|
|
16269
|
-
right: -90%;
|
|
16270
|
-
}
|
|
16271
|
-
`));
|
|
16272
|
-
const indeterminate2Keyframe = keyframes(_t2 || (_t2 = _`
|
|
16273
|
-
0% {
|
|
16274
|
-
left: -200%;
|
|
16275
|
-
right: 100%;
|
|
16276
|
-
}
|
|
16277
|
-
|
|
16278
|
-
60% {
|
|
16279
|
-
left: 107%;
|
|
16280
|
-
right: -8%;
|
|
16281
|
-
}
|
|
16282
|
-
|
|
16283
|
-
100% {
|
|
16284
|
-
left: 107%;
|
|
16285
|
-
right: -8%;
|
|
16286
|
-
}
|
|
16287
|
-
`));
|
|
16288
|
-
const bufferKeyframe = keyframes(_t3 || (_t3 = _`
|
|
16289
|
-
0% {
|
|
16290
|
-
opacity: 1;
|
|
16291
|
-
background-position: 0 -23px;
|
|
16292
|
-
}
|
|
16293
|
-
|
|
16294
|
-
60% {
|
|
16295
|
-
opacity: 0;
|
|
16296
|
-
background-position: 0 -23px;
|
|
16297
|
-
}
|
|
16298
|
-
|
|
16299
|
-
100% {
|
|
16300
|
-
opacity: 1;
|
|
16301
|
-
background-position: -200px -23px;
|
|
16302
|
-
}
|
|
16303
|
-
`));
|
|
16304
|
-
const useUtilityClasses = ownerState => {
|
|
16305
|
-
const {
|
|
16306
|
-
classes,
|
|
16307
|
-
variant,
|
|
16308
|
-
color
|
|
16309
|
-
} = ownerState;
|
|
16310
|
-
const slots = {
|
|
16311
|
-
root: ['root', `color${capitalize(color)}`, variant],
|
|
16312
|
-
dashed: ['dashed', `dashedColor${capitalize(color)}`],
|
|
16313
|
-
bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
|
16314
|
-
bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
|
16315
|
-
};
|
|
16316
|
-
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
|
16317
|
-
};
|
|
16318
|
-
const getColorShade = (theme, color) => {
|
|
16319
|
-
if (color === 'inherit') {
|
|
16320
|
-
return 'currentColor';
|
|
16321
|
-
}
|
|
16322
|
-
if (theme.vars) {
|
|
16323
|
-
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
16324
|
-
}
|
|
16325
|
-
return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
|
|
16326
|
-
};
|
|
16327
|
-
const LinearProgressRoot = styled$1('span', {
|
|
16328
|
-
name: 'MuiLinearProgress',
|
|
16329
|
-
slot: 'Root',
|
|
16330
|
-
overridesResolver: (props, styles) => {
|
|
16331
|
-
const {
|
|
16332
|
-
ownerState
|
|
16333
|
-
} = props;
|
|
16334
|
-
return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];
|
|
16335
|
-
}
|
|
16336
|
-
})(({
|
|
16337
|
-
ownerState,
|
|
16338
|
-
theme
|
|
16339
|
-
}) => _extends({
|
|
16340
|
-
position: 'relative',
|
|
16341
|
-
overflow: 'hidden',
|
|
16342
|
-
display: 'block',
|
|
16343
|
-
height: 4,
|
|
16344
|
-
zIndex: 0,
|
|
16345
|
-
// Fix Safari's bug during composition of different paint.
|
|
16346
|
-
'@media print': {
|
|
16347
|
-
colorAdjust: 'exact'
|
|
16348
|
-
},
|
|
16349
|
-
backgroundColor: getColorShade(theme, ownerState.color)
|
|
16350
|
-
}, ownerState.color === 'inherit' && ownerState.variant !== 'buffer' && {
|
|
16351
|
-
backgroundColor: 'none',
|
|
16352
|
-
'&::before': {
|
|
16353
|
-
content: '""',
|
|
16354
|
-
position: 'absolute',
|
|
16355
|
-
left: 0,
|
|
16356
|
-
top: 0,
|
|
16357
|
-
right: 0,
|
|
16358
|
-
bottom: 0,
|
|
16359
|
-
backgroundColor: 'currentColor',
|
|
16360
|
-
opacity: 0.3
|
|
16361
|
-
}
|
|
16362
|
-
}, ownerState.variant === 'buffer' && {
|
|
16363
|
-
backgroundColor: 'transparent'
|
|
16364
|
-
}, ownerState.variant === 'query' && {
|
|
16365
|
-
transform: 'rotate(180deg)'
|
|
16366
|
-
}));
|
|
16367
|
-
const LinearProgressDashed = styled$1('span', {
|
|
16368
|
-
name: 'MuiLinearProgress',
|
|
16369
|
-
slot: 'Dashed',
|
|
16370
|
-
overridesResolver: (props, styles) => {
|
|
16371
|
-
const {
|
|
16372
|
-
ownerState
|
|
16373
|
-
} = props;
|
|
16374
|
-
return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
|
|
16375
|
-
}
|
|
16376
|
-
})(({
|
|
16377
|
-
ownerState,
|
|
16378
|
-
theme
|
|
16379
|
-
}) => {
|
|
16380
|
-
const backgroundColor = getColorShade(theme, ownerState.color);
|
|
16381
|
-
return _extends({
|
|
16382
|
-
position: 'absolute',
|
|
16383
|
-
marginTop: 0,
|
|
16384
|
-
height: '100%',
|
|
16385
|
-
width: '100%'
|
|
16386
|
-
}, ownerState.color === 'inherit' && {
|
|
16387
|
-
opacity: 0.3
|
|
16388
|
-
}, {
|
|
16389
|
-
backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`,
|
|
16390
|
-
backgroundSize: '10px 10px',
|
|
16391
|
-
backgroundPosition: '0 -23px'
|
|
16392
|
-
});
|
|
16393
|
-
}, css(_t4 || (_t4 = _`
|
|
16394
|
-
animation: ${0} 3s infinite linear;
|
|
16395
|
-
`), bufferKeyframe));
|
|
16396
|
-
const LinearProgressBar1 = styled$1('span', {
|
|
16397
|
-
name: 'MuiLinearProgress',
|
|
16398
|
-
slot: 'Bar1',
|
|
16399
|
-
overridesResolver: (props, styles) => {
|
|
16400
|
-
const {
|
|
16401
|
-
ownerState
|
|
16402
|
-
} = props;
|
|
16403
|
-
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
16404
|
-
}
|
|
16405
|
-
})(({
|
|
16406
|
-
ownerState,
|
|
16407
|
-
theme
|
|
16408
|
-
}) => _extends({
|
|
16409
|
-
width: '100%',
|
|
16410
|
-
position: 'absolute',
|
|
16411
|
-
left: 0,
|
|
16412
|
-
bottom: 0,
|
|
16413
|
-
top: 0,
|
|
16414
|
-
transition: 'transform 0.2s linear',
|
|
16415
|
-
transformOrigin: 'left',
|
|
16416
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
16417
|
-
}, ownerState.variant === 'determinate' && {
|
|
16418
|
-
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
16419
|
-
}, ownerState.variant === 'buffer' && {
|
|
16420
|
-
zIndex: 1,
|
|
16421
|
-
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
16422
|
-
}), ({
|
|
16423
|
-
ownerState
|
|
16424
|
-
}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t5 || (_t5 = _`
|
|
16425
|
-
width: auto;
|
|
16426
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
16427
|
-
`), indeterminate1Keyframe));
|
|
16428
|
-
const LinearProgressBar2 = styled$1('span', {
|
|
16429
|
-
name: 'MuiLinearProgress',
|
|
16430
|
-
slot: 'Bar2',
|
|
16431
|
-
overridesResolver: (props, styles) => {
|
|
16432
|
-
const {
|
|
16433
|
-
ownerState
|
|
16434
|
-
} = props;
|
|
16435
|
-
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
16436
|
-
}
|
|
16437
|
-
})(({
|
|
16438
|
-
ownerState,
|
|
16439
|
-
theme
|
|
16440
|
-
}) => _extends({
|
|
16441
|
-
width: '100%',
|
|
16442
|
-
position: 'absolute',
|
|
16443
|
-
left: 0,
|
|
16444
|
-
bottom: 0,
|
|
16445
|
-
top: 0,
|
|
16446
|
-
transition: 'transform 0.2s linear',
|
|
16447
|
-
transformOrigin: 'left'
|
|
16448
|
-
}, ownerState.variant !== 'buffer' && {
|
|
16449
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
16450
|
-
}, ownerState.color === 'inherit' && {
|
|
16451
|
-
opacity: 0.3
|
|
16452
|
-
}, ownerState.variant === 'buffer' && {
|
|
16453
|
-
backgroundColor: getColorShade(theme, ownerState.color),
|
|
16454
|
-
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
16455
|
-
}), ({
|
|
16456
|
-
ownerState
|
|
16457
|
-
}) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t6 || (_t6 = _`
|
|
16458
|
-
width: auto;
|
|
16459
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
16460
|
-
`), indeterminate2Keyframe));
|
|
16461
|
-
|
|
16462
|
-
/**
|
|
16463
|
-
* ## ARIA
|
|
16464
|
-
*
|
|
16465
|
-
* If the progress bar is describing the loading progress of a particular region of a page,
|
|
16466
|
-
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
|
16467
|
-
* attribute to `true` on that region until it has finished loading.
|
|
16468
|
-
*/
|
|
16469
|
-
const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {
|
|
16470
|
-
const props = useThemeProps({
|
|
16471
|
-
props: inProps,
|
|
16472
|
-
name: 'MuiLinearProgress'
|
|
16473
|
-
});
|
|
16474
|
-
const {
|
|
16475
|
-
className,
|
|
16476
|
-
color = 'primary',
|
|
16477
|
-
value,
|
|
16478
|
-
valueBuffer,
|
|
16479
|
-
variant = 'indeterminate'
|
|
16480
|
-
} = props,
|
|
16481
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
16482
|
-
const ownerState = _extends({}, props, {
|
|
16483
|
-
color,
|
|
16484
|
-
variant
|
|
16485
|
-
});
|
|
16486
|
-
const classes = useUtilityClasses(ownerState);
|
|
16487
|
-
const theme = useTheme();
|
|
16488
|
-
const rootProps = {};
|
|
16489
|
-
const inlineStyles = {
|
|
16490
|
-
bar1: {},
|
|
16491
|
-
bar2: {}
|
|
16492
|
-
};
|
|
16493
|
-
if (variant === 'determinate' || variant === 'buffer') {
|
|
16494
|
-
if (value !== undefined) {
|
|
16495
|
-
rootProps['aria-valuenow'] = Math.round(value);
|
|
16496
|
-
rootProps['aria-valuemin'] = 0;
|
|
16497
|
-
rootProps['aria-valuemax'] = 100;
|
|
16498
|
-
let transform = value - 100;
|
|
16499
|
-
if (theme.direction === 'rtl') {
|
|
16500
|
-
transform = -transform;
|
|
16501
|
-
}
|
|
16502
|
-
inlineStyles.bar1.transform = `translateX(${transform}%)`;
|
|
16503
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
16504
|
-
console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
|
|
16505
|
-
}
|
|
16506
|
-
}
|
|
16507
|
-
if (variant === 'buffer') {
|
|
16508
|
-
if (valueBuffer !== undefined) {
|
|
16509
|
-
let transform = (valueBuffer || 0) - 100;
|
|
16510
|
-
if (theme.direction === 'rtl') {
|
|
16511
|
-
transform = -transform;
|
|
16512
|
-
}
|
|
16513
|
-
inlineStyles.bar2.transform = `translateX(${transform}%)`;
|
|
16514
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
16515
|
-
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
|
16516
|
-
}
|
|
16517
|
-
}
|
|
16518
|
-
return /*#__PURE__*/jsxs(LinearProgressRoot, _extends({
|
|
16519
|
-
className: clsx(classes.root, className),
|
|
16520
|
-
ownerState: ownerState,
|
|
16521
|
-
role: "progressbar"
|
|
16522
|
-
}, rootProps, {
|
|
16523
|
-
ref: ref
|
|
16524
|
-
}, other, {
|
|
16525
|
-
children: [variant === 'buffer' ? /*#__PURE__*/jsx(LinearProgressDashed, {
|
|
16526
|
-
className: classes.dashed,
|
|
16527
|
-
ownerState: ownerState
|
|
16528
|
-
}) : null, /*#__PURE__*/jsx(LinearProgressBar1, {
|
|
16529
|
-
className: classes.bar1,
|
|
16530
|
-
ownerState: ownerState,
|
|
16531
|
-
style: inlineStyles.bar1
|
|
16532
|
-
}), variant === 'determinate' ? null : /*#__PURE__*/jsx(LinearProgressBar2, {
|
|
16533
|
-
className: classes.bar2,
|
|
16534
|
-
ownerState: ownerState,
|
|
16535
|
-
style: inlineStyles.bar2
|
|
16536
|
-
})]
|
|
16537
|
-
}));
|
|
16538
|
-
});
|
|
16539
|
-
process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-proptypes */ = {
|
|
16540
|
-
// ----------------------------- Warning --------------------------------
|
|
16541
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
16542
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
16543
|
-
// ----------------------------------------------------------------------
|
|
16544
|
-
/**
|
|
16545
|
-
* Override or extend the styles applied to the component.
|
|
16546
|
-
*/
|
|
16547
|
-
classes: PropTypes.object,
|
|
16548
|
-
/**
|
|
16549
|
-
* @ignore
|
|
16550
|
-
*/
|
|
16551
|
-
className: PropTypes.string,
|
|
16552
|
-
/**
|
|
16553
|
-
* The color of the component.
|
|
16554
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
16555
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
16556
|
-
* @default 'primary'
|
|
16557
|
-
*/
|
|
16558
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
|
|
16559
|
-
/**
|
|
16560
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
16561
|
-
*/
|
|
16562
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
16563
|
-
/**
|
|
16564
|
-
* The value of the progress indicator for the determinate and buffer variants.
|
|
16565
|
-
* Value between 0 and 100.
|
|
16566
|
-
*/
|
|
16567
|
-
value: PropTypes.number,
|
|
16568
|
-
/**
|
|
16569
|
-
* The value for the buffer variant.
|
|
16570
|
-
* Value between 0 and 100.
|
|
16571
|
-
*/
|
|
16572
|
-
valueBuffer: PropTypes.number,
|
|
16573
|
-
/**
|
|
16574
|
-
* The variant to use.
|
|
16575
|
-
* Use indeterminate or query when there is no progress value.
|
|
16576
|
-
* @default 'indeterminate'
|
|
16577
|
-
*/
|
|
16578
|
-
variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])
|
|
16579
|
-
} : void 0;
|
|
16580
|
-
var LinearProgress$1 = LinearProgress;
|
|
16581
|
-
|
|
16582
15305
|
const Stack = createStack({
|
|
16583
15306
|
createStyledComponent: styled$1('div', {
|
|
16584
15307
|
name: 'MuiStack',
|
|
@@ -16652,38 +15375,45 @@ const EmptyState = ({
|
|
|
16652
15375
|
content,
|
|
16653
15376
|
actions
|
|
16654
15377
|
}) => {
|
|
16655
|
-
return
|
|
16656
|
-
elevation: 1
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
15378
|
+
return jsx(Card$1, {
|
|
15379
|
+
elevation: 1,
|
|
15380
|
+
children: jsxs(CardContent$1, {
|
|
15381
|
+
sx: {
|
|
15382
|
+
display: 'flex',
|
|
15383
|
+
alignItems: 'center',
|
|
15384
|
+
justifyContent: 'center',
|
|
15385
|
+
flexDirection: 'column',
|
|
15386
|
+
gap: 4
|
|
15387
|
+
},
|
|
15388
|
+
children: [jsx("svg", {
|
|
15389
|
+
style: {
|
|
15390
|
+
width: 206,
|
|
15391
|
+
height: 187
|
|
15392
|
+
},
|
|
15393
|
+
children: jsx("use", {
|
|
15394
|
+
xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
|
|
15395
|
+
})
|
|
15396
|
+
}), jsxs(Stack$1, {
|
|
15397
|
+
direction: "column",
|
|
15398
|
+
spacing: 2,
|
|
15399
|
+
children: [title && jsx(Typography$1, {
|
|
15400
|
+
variant: "h6",
|
|
15401
|
+
textAlign: "center",
|
|
15402
|
+
children: title
|
|
15403
|
+
}), content && jsx(Typography$1, {
|
|
15404
|
+
variant: "body1",
|
|
15405
|
+
textAlign: "center",
|
|
15406
|
+
color: "text.secondary",
|
|
15407
|
+
children: content
|
|
15408
|
+
}), _state === 'create' && actions && jsx(Stack$1, {
|
|
15409
|
+
direction: "row",
|
|
15410
|
+
spacing: 2,
|
|
15411
|
+
justifyContent: "center",
|
|
15412
|
+
children: actions
|
|
15413
|
+
})]
|
|
15414
|
+
})]
|
|
15415
|
+
})
|
|
15416
|
+
});
|
|
16687
15417
|
};
|
|
16688
15418
|
|
|
16689
15419
|
var wellKnownSymbol$a = wellKnownSymbol$f;
|
|
@@ -17167,7 +15897,7 @@ const stylesEncabezado = {
|
|
|
17167
15897
|
display: "flex",
|
|
17168
15898
|
alignContent: "center",
|
|
17169
15899
|
justifyContent: "space-between",
|
|
17170
|
-
backgroundColor: "secondary.
|
|
15900
|
+
backgroundColor: "secondary.light",
|
|
17171
15901
|
py: "12px",
|
|
17172
15902
|
px: "8px"
|
|
17173
15903
|
};
|
|
@@ -17203,7 +15933,7 @@ const DrawerComponent = ({
|
|
|
17203
15933
|
const mostrarAcciones = () => {
|
|
17204
15934
|
setShowActions(true);
|
|
17205
15935
|
};
|
|
17206
|
-
return
|
|
15936
|
+
return jsx(Drawer$1, {
|
|
17207
15937
|
anchor: anchor,
|
|
17208
15938
|
open: open,
|
|
17209
15939
|
onClose: onClose,
|
|
@@ -17211,233 +15941,36 @@ const DrawerComponent = ({
|
|
|
17211
15941
|
style: {
|
|
17212
15942
|
borderRadius: "8px 0px 0px 0px"
|
|
17213
15943
|
}
|
|
17214
|
-
}
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
|
|
17219
|
-
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
|
|
17229
|
-
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
}
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
}));
|
|
17241
|
-
const ContentBox = styled$1(Box$2)(({
|
|
17242
|
-
theme
|
|
17243
|
-
}) => ({
|
|
17244
|
-
padding: theme.spacing(1.5),
|
|
17245
|
-
gap: theme.spacing(1.5),
|
|
17246
|
-
display: "flex",
|
|
17247
|
-
alignItems: "center",
|
|
17248
|
-
"&.color-error": {
|
|
17249
|
-
backgroundColor: "#FEEBEE"
|
|
17250
|
-
},
|
|
17251
|
-
"&.color-info": {
|
|
17252
|
-
backgroundColor: "#E1F5FE"
|
|
17253
|
-
},
|
|
17254
|
-
"&.color-warning": {
|
|
17255
|
-
backgroundColor: "#FFF3E0"
|
|
17256
|
-
},
|
|
17257
|
-
"&.color-success": {
|
|
17258
|
-
backgroundColor: "#E8F5E9"
|
|
17259
|
-
}
|
|
17260
|
-
}));
|
|
17261
|
-
const RippleIcon = styled$1(Stack$1)(({
|
|
17262
|
-
theme
|
|
17263
|
-
}) => ({
|
|
17264
|
-
padding: theme.spacing(1),
|
|
17265
|
-
gap: theme.spacing(1),
|
|
17266
|
-
height: 20,
|
|
17267
|
-
borderRadius: 50,
|
|
17268
|
-
"&.ripple-error": {
|
|
17269
|
-
backgroundColor: "#D143431F"
|
|
17270
|
-
},
|
|
17271
|
-
"&.ripple-info": {
|
|
17272
|
-
backgroundColor: "#2D9FC51F"
|
|
17273
|
-
},
|
|
17274
|
-
"&.ripple-warning": {
|
|
17275
|
-
backgroundColor: "#FB85001F"
|
|
17276
|
-
},
|
|
17277
|
-
"&.ripple-success": {
|
|
17278
|
-
backgroundColor: "#8FC93A1F"
|
|
17279
|
-
}
|
|
17280
|
-
}));
|
|
17281
|
-
const ContentIcon = styled$1(Stack$1)(({
|
|
17282
|
-
theme
|
|
17283
|
-
}) => ({
|
|
17284
|
-
"&.icon-color.color-info": {
|
|
17285
|
-
color: theme.palette.info.main
|
|
17286
|
-
},
|
|
17287
|
-
"&.icon-color.color-error": {
|
|
17288
|
-
color: theme.palette.error.main
|
|
17289
|
-
},
|
|
17290
|
-
"&.icon-color.color-warning": {
|
|
17291
|
-
color: theme.palette.warning.main
|
|
17292
|
-
},
|
|
17293
|
-
"&.icon-color.color-success": {
|
|
17294
|
-
color: theme.palette.success.main
|
|
17295
|
-
}
|
|
17296
|
-
}));
|
|
17297
|
-
const ToastNotification = toast => {
|
|
17298
|
-
const [openToast, setOpenToast] = useState(true);
|
|
17299
|
-
const [showOptions, setShowOptions] = useState(true);
|
|
17300
|
-
const [progress, setProgress] = useState(100);
|
|
17301
|
-
const timeProgress = toast.time || 8000;
|
|
17302
|
-
const IconMap = {
|
|
17303
|
-
success: /*#__PURE__*/React__default.createElement(CheckCircleRounded, null),
|
|
17304
|
-
error: /*#__PURE__*/React__default.createElement(ErrorRounded, null),
|
|
17305
|
-
warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
|
|
17306
|
-
info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
|
|
17307
|
-
};
|
|
17308
|
-
const ToastIcon = IconMap[toast.type || "info"];
|
|
17309
|
-
const colorMap = {
|
|
17310
|
-
success: "success",
|
|
17311
|
-
error: "error",
|
|
17312
|
-
warning: "warning",
|
|
17313
|
-
info: "info"
|
|
17314
|
-
};
|
|
17315
|
-
const colors = colorMap[toast.type || "info"];
|
|
17316
|
-
const toastPosition = {
|
|
17317
|
-
center: "center",
|
|
17318
|
-
end: "end",
|
|
17319
|
-
start: "start"
|
|
17320
|
-
};
|
|
17321
|
-
toastPosition[toast.position || "end"];
|
|
17322
|
-
const close = () => {
|
|
17323
|
-
setOpenToast(false);
|
|
17324
|
-
};
|
|
17325
|
-
const toggleOptions = () => {
|
|
17326
|
-
setShowOptions(prevShowOptions => !prevShowOptions);
|
|
17327
|
-
};
|
|
17328
|
-
const seeOptions = toast.seeMore;
|
|
17329
|
-
useEffect(() => {
|
|
17330
|
-
let seconds = 0;
|
|
17331
|
-
const interval = setInterval(() => {
|
|
17332
|
-
seconds += 100;
|
|
17333
|
-
const progress = 100 - seconds / timeProgress * 100;
|
|
17334
|
-
setProgress(progress <= 0 ? 0 : progress);
|
|
17335
|
-
}, 100);
|
|
17336
|
-
const closeTimeout = setTimeout(() => {
|
|
17337
|
-
clearInterval(interval);
|
|
17338
|
-
setOpenToast(false);
|
|
17339
|
-
}, timeProgress);
|
|
17340
|
-
return () => {
|
|
17341
|
-
clearInterval(interval);
|
|
17342
|
-
clearTimeout(closeTimeout);
|
|
17343
|
-
};
|
|
17344
|
-
}, [timeProgress]);
|
|
17345
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17346
|
-
theme: SincoTheme
|
|
17347
|
-
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17348
|
-
height: 105,
|
|
17349
|
-
top: 16,
|
|
17350
|
-
right: 16,
|
|
17351
|
-
position: "absolute",
|
|
17352
|
-
zIndex: 1400
|
|
17353
|
-
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
|
17354
|
-
position: "fixed"
|
|
17355
|
-
}, /*#__PURE__*/React__default.createElement(ContentBox, {
|
|
17356
|
-
className: `color-${toast.type || "info"}`
|
|
17357
|
-
}, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
|
|
17358
|
-
className: `ripple-${toast.type || "info"}`
|
|
17359
|
-
}, /*#__PURE__*/React__default.createElement(ContentIcon, {
|
|
17360
|
-
className: `icon-color color-${toast.type || "info"}`
|
|
17361
|
-
}, ToastIcon)), /*#__PURE__*/React__default.createElement(Divider$1, {
|
|
17362
|
-
orientation: "vertical",
|
|
17363
|
-
flexItem: true
|
|
17364
|
-
}), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17365
|
-
gap: 0.5,
|
|
17366
|
-
width: 285
|
|
17367
|
-
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17368
|
-
justifyContent: "space-between",
|
|
17369
|
-
flexDirection: "row",
|
|
17370
|
-
alignItems: "center"
|
|
17371
|
-
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17372
|
-
variant: "subtitle2",
|
|
17373
|
-
color: "text.primary"
|
|
17374
|
-
}, toast.title), /*#__PURE__*/React__default.createElement(IconButton$1, {
|
|
17375
|
-
size: "small",
|
|
17376
|
-
"aria-label": "delete",
|
|
17377
|
-
onClick: close
|
|
17378
|
-
}, /*#__PURE__*/React__default.createElement(Close$1, null))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17379
|
-
gap: "4px"
|
|
17380
|
-
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17381
|
-
color: "text.primary",
|
|
17382
|
-
variant: "body2"
|
|
17383
|
-
}, toast.subtitle), !showOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
|
|
17384
|
-
style: {
|
|
17385
|
-
paddingLeft: 15,
|
|
17386
|
-
marginBlock: 0,
|
|
17387
|
-
fontSize: 11,
|
|
17388
|
-
color: "#101840de"
|
|
17389
|
-
}
|
|
17390
|
-
}, toast.dataOpt.map((element, i) => {
|
|
17391
|
-
const keyElement = Object.keys(element);
|
|
17392
|
-
let options = "";
|
|
17393
|
-
for (let _i = 0; _i < keyElement.length; _i++) {
|
|
17394
|
-
options += element[keyElement[_i]];
|
|
17395
|
-
}
|
|
17396
|
-
return /*#__PURE__*/React__default.createElement("li", {
|
|
17397
|
-
style: {
|
|
17398
|
-
width: "fit-content"
|
|
17399
|
-
},
|
|
17400
|
-
key: i
|
|
17401
|
-
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17402
|
-
variant: "caption"
|
|
17403
|
-
}, options));
|
|
17404
|
-
}))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17405
|
-
justifyContent: "flex-end",
|
|
17406
|
-
flexDirection: "row",
|
|
17407
|
-
alignItems: "flex-end"
|
|
17408
|
-
}, toast.actions && /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17409
|
-
flexDirection: "row",
|
|
17410
|
-
gap: 1
|
|
17411
|
-
}, toast.actions), seeOptions && /*#__PURE__*/React__default.createElement(Button$1, {
|
|
17412
|
-
onClick: toggleOptions,
|
|
17413
|
-
size: "small",
|
|
17414
|
-
variant: "text",
|
|
17415
|
-
color: colors,
|
|
17416
|
-
endIcon: showOptions ? /*#__PURE__*/React__default.createElement(ArrowDownward, {
|
|
17417
|
-
fontSize: "small"
|
|
17418
|
-
}) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
|
|
17419
|
-
fontSize: "small"
|
|
15944
|
+
},
|
|
15945
|
+
children: jsxs(Box$2, {
|
|
15946
|
+
sx: stylesDrawerContainer,
|
|
15947
|
+
children: [jsxs(Box$2, {
|
|
15948
|
+
sx: stylesEncabezado,
|
|
15949
|
+
children: [jsx(Typography$1, {
|
|
15950
|
+
variant: "h6",
|
|
15951
|
+
color: "text.primary",
|
|
15952
|
+
children: titulo
|
|
15953
|
+
}), jsx(Box$2, {
|
|
15954
|
+
children: jsx(IconButton$1, {
|
|
15955
|
+
onClick: onClose,
|
|
15956
|
+
size: "small",
|
|
15957
|
+
children: jsx(default_1, {
|
|
15958
|
+
fontSize: "small"
|
|
15959
|
+
})
|
|
15960
|
+
})
|
|
15961
|
+
})]
|
|
15962
|
+
}), jsx(Box$2, {
|
|
15963
|
+
onClick: mostrarAcciones,
|
|
15964
|
+
sx: stylesContenido,
|
|
15965
|
+
children: children
|
|
15966
|
+
}), showActions && jsx(Box$2, {
|
|
15967
|
+
sx: stylesAcciones,
|
|
15968
|
+
children: acciones
|
|
15969
|
+
})]
|
|
17420
15970
|
})
|
|
17421
|
-
}
|
|
17422
|
-
color: colors,
|
|
17423
|
-
variant: "determinate",
|
|
17424
|
-
value: progress
|
|
17425
|
-
})))));
|
|
15971
|
+
});
|
|
17426
15972
|
};
|
|
17427
15973
|
|
|
17428
|
-
const PageContent = styled$1(Stack$1)(({
|
|
17429
|
-
theme
|
|
17430
|
-
}) => ({
|
|
17431
|
-
backgroundColor: "#fff",
|
|
17432
|
-
boxShadow: "0px 1px 3px rgba(24, 39, 75, 0.12), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 2px 1px -2px rgba(24, 39, 75, 0.2)",
|
|
17433
|
-
zIndex: 100,
|
|
17434
|
-
padding: "8px 24px",
|
|
17435
|
-
justifyContent: "space-between",
|
|
17436
|
-
minHeight: 39,
|
|
17437
|
-
position: "fixed",
|
|
17438
|
-
width: "100%"
|
|
17439
|
-
}));
|
|
17440
|
-
|
|
17441
15974
|
var classof$2 = classofRaw$2;
|
|
17442
15975
|
|
|
17443
15976
|
var engineIsNode = typeof process != 'undefined' && classof$2(process) == 'process';
|
|
@@ -22893,4 +21426,4 @@ const useDynamicColor = url => {
|
|
|
22893
21426
|
};
|
|
22894
21427
|
};
|
|
22895
21428
|
|
|
22896
|
-
export { DrawerComponent, EmptyState,
|
|
21429
|
+
export { DrawerComponent, EmptyState, SincoTheme, UrlImage, useDynamicColor };
|