@sinco/react 1.0.10-rc.22 → 1.0.10-rc.25
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 +1783 -321
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +3 -3
- package/src/lib/Components/PageHeader.d.ts +11 -0
- package/src/lib/Components/ToastNofitication.d.ts +24 -0
- package/src/lib/Components/index.d.ts +2 -0
- package/src/lib/Theme/breakpoints.d.ts +1 -2
- package/src/lib/Theme/components.d.ts +11 -2
- package/src/lib/Theme/index.d.ts +0 -9
- package/src/lib/Theme/mixins.d.ts +1 -2
- package/src/lib/Theme/palette.d.ts +1 -2
- package/src/lib/Theme/shadows.d.ts +1 -2
- package/src/lib/Theme/typography.d.ts +15 -2
- package/src/lib/Utils/dynamicColor.d.ts +1 -2
package/index.js
CHANGED
|
@@ -5458,10 +5458,10 @@ if (!isBrowser$2) {
|
|
|
5458
5458
|
};
|
|
5459
5459
|
}
|
|
5460
5460
|
|
|
5461
|
-
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
5461
|
+
var ThemeContext$2 = /* #__PURE__ */React.createContext({});
|
|
5462
5462
|
|
|
5463
5463
|
if (process.env.NODE_ENV !== 'production') {
|
|
5464
|
-
ThemeContext.displayName = 'EmotionThemeContext';
|
|
5464
|
+
ThemeContext$2.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$2));
|
|
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$2));
|
|
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$2)
|
|
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$2);
|
|
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$t = ["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$t);
|
|
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$s = ["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$s);
|
|
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$3(defaultTheme = null) {
|
|
7358
|
+
const contextTheme = React.useContext(ThemeContext$2);
|
|
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$2(defaultTheme = systemDefaultTheme$1) {
|
|
7364
|
+
return useTheme$3(defaultTheme);
|
|
7365
7365
|
}
|
|
7366
7366
|
|
|
7367
|
-
const _excluded$
|
|
7367
|
+
const _excluded$r = ["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$r);
|
|
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$q = ["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$2(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$q);
|
|
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$p = ["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$p);
|
|
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$o = ["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$o);
|
|
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$2(defaultTheme);
|
|
7699
7699
|
if (themeId) {
|
|
7700
7700
|
theme = theme[themeId] || theme;
|
|
7701
7701
|
}
|
|
@@ -7941,7 +7941,157 @@ function lighten(color, coefficient) {
|
|
|
7941
7941
|
return recomposeColor(color);
|
|
7942
7942
|
}
|
|
7943
7943
|
|
|
7944
|
-
const
|
|
7944
|
+
const ThemeContext = /*#__PURE__*/React.createContext(null);
|
|
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"];
|
|
7945
8095
|
const defaultTheme$3 = createTheme$1();
|
|
7946
8096
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
7947
8097
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -8070,7 +8220,7 @@ function createStack(options = {}) {
|
|
|
8070
8220
|
className,
|
|
8071
8221
|
useFlexGap = false
|
|
8072
8222
|
} = props,
|
|
8073
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8223
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
8074
8224
|
const ownerState = {
|
|
8075
8225
|
direction,
|
|
8076
8226
|
spacing,
|
|
@@ -8244,7 +8394,7 @@ const green = {
|
|
|
8244
8394
|
};
|
|
8245
8395
|
var green$1 = green;
|
|
8246
8396
|
|
|
8247
|
-
const _excluded$
|
|
8397
|
+
const _excluded$m = ["mode", "contrastThreshold", "tonalOffset"];
|
|
8248
8398
|
const light = {
|
|
8249
8399
|
// The colors used to style the text.
|
|
8250
8400
|
text: {
|
|
@@ -8413,7 +8563,7 @@ function createPalette(palette) {
|
|
|
8413
8563
|
contrastThreshold = 3,
|
|
8414
8564
|
tonalOffset = 0.2
|
|
8415
8565
|
} = palette,
|
|
8416
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
8566
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$m);
|
|
8417
8567
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
8418
8568
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
8419
8569
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -8537,7 +8687,7 @@ const theme2 = createTheme({ palette: {
|
|
|
8537
8687
|
return paletteOutput;
|
|
8538
8688
|
}
|
|
8539
8689
|
|
|
8540
|
-
const _excluded$
|
|
8690
|
+
const _excluded$l = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
8541
8691
|
function round(value) {
|
|
8542
8692
|
return Math.round(value * 1e5) / 1e5;
|
|
8543
8693
|
}
|
|
@@ -8568,7 +8718,7 @@ function createTypography(palette, typography) {
|
|
|
8568
8718
|
allVariants,
|
|
8569
8719
|
pxToRem: pxToRem2
|
|
8570
8720
|
} = _ref,
|
|
8571
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8721
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
8572
8722
|
if (process.env.NODE_ENV !== 'production') {
|
|
8573
8723
|
if (typeof fontSize !== 'number') {
|
|
8574
8724
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -8635,7 +8785,7 @@ function createShadow(...px) {
|
|
|
8635
8785
|
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)];
|
|
8636
8786
|
var shadows$1 = shadows;
|
|
8637
8787
|
|
|
8638
|
-
const _excluded$
|
|
8788
|
+
const _excluded$k = ["duration", "easing", "delay"];
|
|
8639
8789
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
8640
8790
|
// to learn the context in which each easing should be used.
|
|
8641
8791
|
const easing = {
|
|
@@ -8686,7 +8836,7 @@ function createTransitions(inputTransitions) {
|
|
|
8686
8836
|
easing: easingOption = mergedEasing.easeInOut,
|
|
8687
8837
|
delay = 0
|
|
8688
8838
|
} = options,
|
|
8689
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8839
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$k);
|
|
8690
8840
|
if (process.env.NODE_ENV !== 'production') {
|
|
8691
8841
|
const isString = value => typeof value === 'string';
|
|
8692
8842
|
// IE11 support, replace with Number.isNaN
|
|
@@ -8733,7 +8883,7 @@ const zIndex = {
|
|
|
8733
8883
|
};
|
|
8734
8884
|
var zIndex$1 = zIndex;
|
|
8735
8885
|
|
|
8736
|
-
const _excluded$
|
|
8886
|
+
const _excluded$j = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
8737
8887
|
function createTheme(options = {}, ...args) {
|
|
8738
8888
|
const {
|
|
8739
8889
|
mixins: mixinsInput = {},
|
|
@@ -8741,7 +8891,7 @@ function createTheme(options = {}, ...args) {
|
|
|
8741
8891
|
transitions: transitionsInput = {},
|
|
8742
8892
|
typography: typographyInput = {}
|
|
8743
8893
|
} = options,
|
|
8744
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8894
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$j);
|
|
8745
8895
|
if (options.vars) {
|
|
8746
8896
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
8747
8897
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -8803,7 +8953,7 @@ const defaultTheme$1 = createTheme();
|
|
|
8803
8953
|
var defaultTheme$2 = defaultTheme$1;
|
|
8804
8954
|
|
|
8805
8955
|
function useTheme() {
|
|
8806
|
-
const theme = useTheme$
|
|
8956
|
+
const theme = useTheme$2(defaultTheme$2);
|
|
8807
8957
|
if (process.env.NODE_ENV !== 'production') {
|
|
8808
8958
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8809
8959
|
React.useDebugValue(theme);
|
|
@@ -8831,6 +8981,29 @@ const styled = createStyled({
|
|
|
8831
8981
|
});
|
|
8832
8982
|
var styled$1 = styled;
|
|
8833
8983
|
|
|
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
|
+
|
|
8834
9007
|
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
8835
9008
|
const getOverlayAlpha = elevation => {
|
|
8836
9009
|
let alphaValue;
|
|
@@ -9009,7 +9182,7 @@ function mergeSlotProps(parameters) {
|
|
|
9009
9182
|
};
|
|
9010
9183
|
}
|
|
9011
9184
|
|
|
9012
|
-
const _excluded$
|
|
9185
|
+
const _excluded$h = ["elementType", "externalSlotProps", "ownerState"];
|
|
9013
9186
|
/**
|
|
9014
9187
|
* @ignore - do not document.
|
|
9015
9188
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -9025,7 +9198,7 @@ function useSlotProps(parameters) {
|
|
|
9025
9198
|
externalSlotProps,
|
|
9026
9199
|
ownerState
|
|
9027
9200
|
} = parameters,
|
|
9028
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
9201
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$h);
|
|
9029
9202
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
9030
9203
|
const {
|
|
9031
9204
|
props: mergedProps,
|
|
@@ -9663,8 +9836,8 @@ function getModalUtilityClass(slot) {
|
|
|
9663
9836
|
}
|
|
9664
9837
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
9665
9838
|
|
|
9666
|
-
const _excluded$
|
|
9667
|
-
const useUtilityClasses$
|
|
9839
|
+
const _excluded$g = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
9840
|
+
const useUtilityClasses$c = ownerState => {
|
|
9668
9841
|
const {
|
|
9669
9842
|
open,
|
|
9670
9843
|
exited
|
|
@@ -9732,7 +9905,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9732
9905
|
slotProps = {},
|
|
9733
9906
|
slots = {}
|
|
9734
9907
|
} = props,
|
|
9735
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9908
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$g);
|
|
9736
9909
|
// TODO: `modal`` must change its type in this file to match the type of methods
|
|
9737
9910
|
// provided by `ModalManager`
|
|
9738
9911
|
const manager = managerProp;
|
|
@@ -9807,7 +9980,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9807
9980
|
hideBackdrop,
|
|
9808
9981
|
keepMounted
|
|
9809
9982
|
});
|
|
9810
|
-
const classes = useUtilityClasses$
|
|
9983
|
+
const classes = useUtilityClasses$c(ownerState);
|
|
9811
9984
|
const handleEnter = () => {
|
|
9812
9985
|
setExited(false);
|
|
9813
9986
|
if (onTransitionEnter) {
|
|
@@ -10027,8 +10200,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
10027
10200
|
}
|
|
10028
10201
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
10029
10202
|
|
|
10030
|
-
const _excluded$
|
|
10031
|
-
const useUtilityClasses$
|
|
10203
|
+
const _excluded$f = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
10204
|
+
const useUtilityClasses$b = ownerState => {
|
|
10032
10205
|
const {
|
|
10033
10206
|
color,
|
|
10034
10207
|
fontSize,
|
|
@@ -10093,7 +10266,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10093
10266
|
titleAccess,
|
|
10094
10267
|
viewBox = '0 0 24 24'
|
|
10095
10268
|
} = props,
|
|
10096
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10269
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
10097
10270
|
const ownerState = _extends({}, props, {
|
|
10098
10271
|
color,
|
|
10099
10272
|
component,
|
|
@@ -10106,7 +10279,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10106
10279
|
if (!inheritViewBox) {
|
|
10107
10280
|
more.viewBox = viewBox;
|
|
10108
10281
|
}
|
|
10109
|
-
const classes = useUtilityClasses$
|
|
10282
|
+
const classes = useUtilityClasses$b(ownerState);
|
|
10110
10283
|
return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
|
|
10111
10284
|
as: component,
|
|
10112
10285
|
className: clsx(classes.root, className),
|
|
@@ -10248,10 +10421,22 @@ var utils = /*#__PURE__*/Object.freeze({
|
|
|
10248
10421
|
useIsFocusVisible: useIsFocusVisible
|
|
10249
10422
|
});
|
|
10250
10423
|
|
|
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
|
+
|
|
10251
10432
|
var CheckCircleRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10252
10433
|
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"
|
|
10253
10434
|
}), 'CheckCircleRounded');
|
|
10254
10435
|
|
|
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
|
+
|
|
10255
10440
|
var ErrorRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
10256
10441
|
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"
|
|
10257
10442
|
}), 'ErrorRounded');
|
|
@@ -10399,13 +10584,64 @@ const components = {
|
|
|
10399
10584
|
}
|
|
10400
10585
|
}
|
|
10401
10586
|
},
|
|
10402
|
-
|
|
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
|
+
}],
|
|
10403
10610
|
defaultProps: {
|
|
10404
|
-
size:
|
|
10405
|
-
}
|
|
10611
|
+
size: "small"
|
|
10612
|
+
}
|
|
10613
|
+
},
|
|
10614
|
+
MuiChip: {
|
|
10615
|
+
variants: [{
|
|
10616
|
+
props: {
|
|
10617
|
+
size: "xsmall"
|
|
10618
|
+
},
|
|
10619
|
+
style: {
|
|
10620
|
+
height: 16
|
|
10621
|
+
}
|
|
10622
|
+
}],
|
|
10406
10623
|
styleOverrides: {
|
|
10624
|
+
sizeSmall: {
|
|
10625
|
+
height: 24
|
|
10626
|
+
},
|
|
10627
|
+
sizeMedium: {
|
|
10628
|
+
height: 30
|
|
10629
|
+
},
|
|
10407
10630
|
root: {
|
|
10408
|
-
|
|
10631
|
+
height: "inherit",
|
|
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
|
+
}
|
|
10409
10645
|
}
|
|
10410
10646
|
}
|
|
10411
10647
|
},
|
|
@@ -10428,25 +10664,39 @@ const components = {
|
|
|
10428
10664
|
}
|
|
10429
10665
|
},
|
|
10430
10666
|
MuiButton: {
|
|
10431
|
-
defaultProps: {
|
|
10432
|
-
size: 'medium'
|
|
10433
|
-
},
|
|
10434
10667
|
styleOverrides: {
|
|
10435
|
-
|
|
10436
|
-
|
|
10668
|
+
endIcon: {
|
|
10669
|
+
marginLeft: 2
|
|
10670
|
+
},
|
|
10671
|
+
iconSizeSmall: {
|
|
10672
|
+
height: 14,
|
|
10673
|
+
width: 14
|
|
10674
|
+
},
|
|
10675
|
+
iconSizeMedium: {
|
|
10676
|
+
height: 18,
|
|
10677
|
+
width: 18
|
|
10678
|
+
},
|
|
10679
|
+
iconSizeLarge: {
|
|
10680
|
+
height: 18,
|
|
10681
|
+
width: 22
|
|
10437
10682
|
},
|
|
10438
10683
|
sizeSmall: {
|
|
10439
|
-
|
|
10684
|
+
height: 26
|
|
10440
10685
|
},
|
|
10441
10686
|
sizeMedium: {
|
|
10442
|
-
|
|
10687
|
+
height: 32,
|
|
10688
|
+
".MuiSvgIcon-fontSizeMedium": {
|
|
10689
|
+
height: 18,
|
|
10690
|
+
width: 18
|
|
10691
|
+
}
|
|
10443
10692
|
},
|
|
10444
10693
|
sizeLarge: {
|
|
10445
|
-
|
|
10446
|
-
fontSize: 14
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10694
|
+
height: 38,
|
|
10695
|
+
fontSize: 14,
|
|
10696
|
+
".MuiSvgIcon-fontSizeLarge": {
|
|
10697
|
+
height: 20,
|
|
10698
|
+
width: 20
|
|
10699
|
+
}
|
|
10450
10700
|
}
|
|
10451
10701
|
}
|
|
10452
10702
|
},
|
|
@@ -10455,11 +10705,6 @@ const components = {
|
|
|
10455
10705
|
size: "small"
|
|
10456
10706
|
}
|
|
10457
10707
|
},
|
|
10458
|
-
MuiCheckbox: {
|
|
10459
|
-
defaultProps: {
|
|
10460
|
-
size: "small"
|
|
10461
|
-
}
|
|
10462
|
-
},
|
|
10463
10708
|
MuiFab: {
|
|
10464
10709
|
defaultProps: {
|
|
10465
10710
|
size: "small"
|
|
@@ -10667,6 +10912,21 @@ const components = {
|
|
|
10667
10912
|
}
|
|
10668
10913
|
},
|
|
10669
10914
|
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
|
+
}],
|
|
10670
10930
|
defaultProps: {
|
|
10671
10931
|
size: "small"
|
|
10672
10932
|
}
|
|
@@ -10701,44 +10961,105 @@ const components = {
|
|
|
10701
10961
|
|
|
10702
10962
|
const palette = {
|
|
10703
10963
|
primary: {
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10964
|
+
50: "#E4ECF4",
|
|
10965
|
+
100: "#BCD0E3",
|
|
10966
|
+
200: "#8FB1D0",
|
|
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",
|
|
10707
10978
|
contrastText: "#ffffff"
|
|
10708
10979
|
},
|
|
10709
10980
|
secondary: {
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10981
|
+
50: "#E0F7FA",
|
|
10982
|
+
100: "#B3EBF2",
|
|
10983
|
+
200: "#80DEEA",
|
|
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",
|
|
10713
10995
|
contrastText: "#ffffff"
|
|
10714
10996
|
},
|
|
10715
|
-
text: {
|
|
10716
|
-
primary: "#101840de",
|
|
10717
|
-
secondary: "#10184099",
|
|
10718
|
-
disabled: "#10184061"
|
|
10719
|
-
},
|
|
10720
10997
|
error: {
|
|
10998
|
+
50: "#F9E8E8",
|
|
10999
|
+
100: "#F1C7C7",
|
|
11000
|
+
200: "#E8A1A1",
|
|
11001
|
+
300: "#DF7B7B",
|
|
11002
|
+
light: "#D85F5F",
|
|
10721
11003
|
main: "#D14343",
|
|
10722
|
-
|
|
10723
|
-
|
|
11004
|
+
600: "#CC3D3D",
|
|
11005
|
+
700: "#C63434",
|
|
11006
|
+
800: "#C02C2C",
|
|
11007
|
+
dark: "#B51E1E",
|
|
11008
|
+
A100: "#FFECEC",
|
|
11009
|
+
A200: "#FFB9B9",
|
|
11010
|
+
A400: "#FF8686",
|
|
11011
|
+
A700: "#FF6D6D",
|
|
10724
11012
|
contrastText: "#ffffff"
|
|
10725
11013
|
},
|
|
10726
11014
|
warning: {
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
11015
|
+
50: "#FFF0E0",
|
|
11016
|
+
100: "#FEDAB3",
|
|
11017
|
+
200: "#FDC280",
|
|
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",
|
|
10730
11029
|
contrastText: "#ffffff"
|
|
10731
11030
|
},
|
|
10732
11031
|
info: {
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
11032
|
+
50: "#E6F3F8",
|
|
11033
|
+
100: "#C0E2EE",
|
|
11034
|
+
200: "#96CFE2",
|
|
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",
|
|
10736
11046
|
contrastText: "#ffffff"
|
|
10737
11047
|
},
|
|
10738
11048
|
success: {
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
11049
|
+
50: "#F2F9E7",
|
|
11050
|
+
100: "#DDEFC4",
|
|
11051
|
+
200: "#C7E49D",
|
|
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",
|
|
10742
11063
|
contrastText: "#ffffff"
|
|
10743
11064
|
},
|
|
10744
11065
|
grey: {
|
|
@@ -10757,6 +11078,11 @@ const palette = {
|
|
|
10757
11078
|
A400: "#696F8C",
|
|
10758
11079
|
A700: "#101840"
|
|
10759
11080
|
},
|
|
11081
|
+
text: {
|
|
11082
|
+
primary: "#101840de",
|
|
11083
|
+
secondary: "#10184099",
|
|
11084
|
+
disabled: "#10184061"
|
|
11085
|
+
},
|
|
10760
11086
|
action: {
|
|
10761
11087
|
active: "rgba(16, 24, 64, 0.54)",
|
|
10762
11088
|
hover: "rgba(16, 24, 64, 0.04)",
|
|
@@ -10797,8 +11123,18 @@ const mixins = {
|
|
|
10797
11123
|
|
|
10798
11124
|
const typography = {
|
|
10799
11125
|
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
|
+
},
|
|
10800
11136
|
body1: {
|
|
10801
|
-
fontFamily:
|
|
11137
|
+
fontFamily: 'Roboto',
|
|
10802
11138
|
fontSize: 14,
|
|
10803
11139
|
fontWeight: 400,
|
|
10804
11140
|
letterSpacing: 0.15,
|
|
@@ -10808,7 +11144,7 @@ const typography = {
|
|
|
10808
11144
|
}
|
|
10809
11145
|
},
|
|
10810
11146
|
body2: {
|
|
10811
|
-
fontFamily:
|
|
11147
|
+
fontFamily: 'Roboto',
|
|
10812
11148
|
fontSize: 13,
|
|
10813
11149
|
fontWeight: 400,
|
|
10814
11150
|
letterSpacing: 0.17,
|
|
@@ -10817,18 +11153,8 @@ const typography = {
|
|
|
10817
11153
|
fontSize: 14
|
|
10818
11154
|
}
|
|
10819
11155
|
},
|
|
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
|
-
},
|
|
10830
11156
|
subtitle1: {
|
|
10831
|
-
fontFamily:
|
|
11157
|
+
fontFamily: 'Roboto',
|
|
10832
11158
|
fontSize: 14,
|
|
10833
11159
|
fontWeight: 500,
|
|
10834
11160
|
letterSpacing: 0.15,
|
|
@@ -10838,7 +11164,7 @@ const typography = {
|
|
|
10838
11164
|
}
|
|
10839
11165
|
},
|
|
10840
11166
|
subtitle2: {
|
|
10841
|
-
fontFamily:
|
|
11167
|
+
fontFamily: 'Roboto',
|
|
10842
11168
|
fontSize: 13,
|
|
10843
11169
|
fontWeight: 500,
|
|
10844
11170
|
letterSpacing: 0.1,
|
|
@@ -10848,7 +11174,7 @@ const typography = {
|
|
|
10848
11174
|
}
|
|
10849
11175
|
},
|
|
10850
11176
|
caption: {
|
|
10851
|
-
fontFamily:
|
|
11177
|
+
fontFamily: 'Roboto',
|
|
10852
11178
|
fontSize: 11,
|
|
10853
11179
|
fontWeight: 400,
|
|
10854
11180
|
letterSpacing: 0.4,
|
|
@@ -10858,7 +11184,7 @@ const typography = {
|
|
|
10858
11184
|
}
|
|
10859
11185
|
},
|
|
10860
11186
|
overline: {
|
|
10861
|
-
fontFamily:
|
|
11187
|
+
fontFamily: 'Roboto',
|
|
10862
11188
|
fontSize: 11,
|
|
10863
11189
|
fontWeight: 400,
|
|
10864
11190
|
letterSpacing: 1,
|
|
@@ -10868,7 +11194,7 @@ const typography = {
|
|
|
10868
11194
|
}
|
|
10869
11195
|
},
|
|
10870
11196
|
h6: {
|
|
10871
|
-
fontFamily:
|
|
11197
|
+
fontFamily: 'Nunito',
|
|
10872
11198
|
fontSize: 16,
|
|
10873
11199
|
fontWeight: 600,
|
|
10874
11200
|
lineHeight: 1.6,
|
|
@@ -10877,44 +11203,44 @@ const typography = {
|
|
|
10877
11203
|
}
|
|
10878
11204
|
},
|
|
10879
11205
|
h5: {
|
|
10880
|
-
fontFamily:
|
|
11206
|
+
fontFamily: 'Nunito',
|
|
10881
11207
|
fontSize: 18,
|
|
10882
11208
|
fontWeight: 600,
|
|
10883
11209
|
lineHeight: 1.8
|
|
10884
11210
|
},
|
|
10885
11211
|
h4: {
|
|
10886
|
-
fontFamily:
|
|
11212
|
+
fontFamily: 'Nunito',
|
|
10887
11213
|
fontSize: 20,
|
|
10888
11214
|
fontWeight: 600,
|
|
10889
11215
|
letterSpacing: 0.25,
|
|
10890
11216
|
lineHeight: 1
|
|
10891
11217
|
},
|
|
10892
11218
|
h3: {
|
|
10893
|
-
fontFamily:
|
|
11219
|
+
fontFamily: 'Nunito',
|
|
10894
11220
|
fontSize: 28,
|
|
10895
11221
|
fontWeight: 500,
|
|
10896
11222
|
lineHeight: 1.2
|
|
10897
11223
|
},
|
|
10898
11224
|
h2: {
|
|
10899
|
-
fontFamily:
|
|
11225
|
+
fontFamily: 'Nunito',
|
|
10900
11226
|
fontSize: 32,
|
|
10901
11227
|
fontWeight: 400,
|
|
10902
11228
|
letterSpacing: -0.5,
|
|
10903
11229
|
lineHeight: 1.2
|
|
10904
11230
|
},
|
|
10905
11231
|
h1: {
|
|
10906
|
-
fontFamily:
|
|
11232
|
+
fontFamily: 'Nunito',
|
|
10907
11233
|
fontSize: 40,
|
|
10908
11234
|
fontWeight: 300,
|
|
10909
11235
|
letterSpacing: -1.5,
|
|
10910
11236
|
lineHeight: 1.4
|
|
10911
11237
|
},
|
|
10912
11238
|
button: {
|
|
10913
|
-
fontFamily:
|
|
10914
|
-
textTransform:
|
|
11239
|
+
fontFamily: 'Roboto',
|
|
11240
|
+
textTransform: 'unset',
|
|
10915
11241
|
fontWeightLight: 300,
|
|
10916
11242
|
fontSize: 13,
|
|
10917
|
-
lineHeight:
|
|
11243
|
+
lineHeight: 'normal',
|
|
10918
11244
|
'@media(max-width: 885px)': {
|
|
10919
11245
|
fontSize: 14
|
|
10920
11246
|
}
|
|
@@ -10930,20 +11256,7 @@ const themeOptions = {
|
|
|
10930
11256
|
breakpoints
|
|
10931
11257
|
};
|
|
10932
11258
|
|
|
10933
|
-
const SincoTheme = createTheme(Object.assign({}, themeOptions
|
|
10934
|
-
typography: {
|
|
10935
|
-
body3: {
|
|
10936
|
-
fontFamily: "Roboto",
|
|
10937
|
-
fontWeight: 310,
|
|
10938
|
-
fontSize: 12,
|
|
10939
|
-
letterSpacing: 0.17,
|
|
10940
|
-
lineHeight: 1.2,
|
|
10941
|
-
[breakpoints.down("md")]: {
|
|
10942
|
-
fontSize: 11
|
|
10943
|
-
}
|
|
10944
|
-
}
|
|
10945
|
-
}
|
|
10946
|
-
}));
|
|
11259
|
+
const SincoTheme = createTheme(Object.assign({}, themeOptions));
|
|
10947
11260
|
|
|
10948
11261
|
var wellKnownSymbol$d = wellKnownSymbol$f;
|
|
10949
11262
|
|
|
@@ -12461,8 +12774,8 @@ function getPaperUtilityClass(slot) {
|
|
|
12461
12774
|
}
|
|
12462
12775
|
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']);
|
|
12463
12776
|
|
|
12464
|
-
const _excluded$
|
|
12465
|
-
const useUtilityClasses$
|
|
12777
|
+
const _excluded$e = ["className", "component", "elevation", "square", "variant"];
|
|
12778
|
+
const useUtilityClasses$a = ownerState => {
|
|
12466
12779
|
const {
|
|
12467
12780
|
square,
|
|
12468
12781
|
elevation,
|
|
@@ -12516,14 +12829,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
12516
12829
|
square = false,
|
|
12517
12830
|
variant = 'elevation'
|
|
12518
12831
|
} = props,
|
|
12519
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12832
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
12520
12833
|
const ownerState = _extends({}, props, {
|
|
12521
12834
|
component,
|
|
12522
12835
|
elevation,
|
|
12523
12836
|
square,
|
|
12524
12837
|
variant
|
|
12525
12838
|
});
|
|
12526
|
-
const classes = useUtilityClasses$
|
|
12839
|
+
const classes = useUtilityClasses$a(ownerState);
|
|
12527
12840
|
if (process.env.NODE_ENV !== 'production') {
|
|
12528
12841
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12529
12842
|
const theme = useTheme();
|
|
@@ -12674,15 +12987,15 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
|
12674
12987
|
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
|
12675
12988
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
12676
12989
|
|
|
12677
|
-
const _excluded$
|
|
12678
|
-
let _ = t => t,
|
|
12679
|
-
_t,
|
|
12680
|
-
_t2,
|
|
12681
|
-
_t3,
|
|
12682
|
-
_t4;
|
|
12990
|
+
const _excluded$d = ["center", "classes", "className"];
|
|
12991
|
+
let _$1 = t => t,
|
|
12992
|
+
_t$1,
|
|
12993
|
+
_t2$1,
|
|
12994
|
+
_t3$1,
|
|
12995
|
+
_t4$1;
|
|
12683
12996
|
const DURATION = 550;
|
|
12684
12997
|
const DELAY_RIPPLE = 80;
|
|
12685
|
-
const enterKeyframe = keyframes(_t || (_t = _`
|
|
12998
|
+
const enterKeyframe = keyframes(_t$1 || (_t$1 = _$1`
|
|
12686
12999
|
0% {
|
|
12687
13000
|
transform: scale(0);
|
|
12688
13001
|
opacity: 0.1;
|
|
@@ -12693,7 +13006,7 @@ const enterKeyframe = keyframes(_t || (_t = _`
|
|
|
12693
13006
|
opacity: 0.3;
|
|
12694
13007
|
}
|
|
12695
13008
|
`));
|
|
12696
|
-
const exitKeyframe = keyframes(_t2 || (_t2 = _`
|
|
13009
|
+
const exitKeyframe = keyframes(_t2$1 || (_t2$1 = _$1`
|
|
12697
13010
|
0% {
|
|
12698
13011
|
opacity: 1;
|
|
12699
13012
|
}
|
|
@@ -12702,7 +13015,7 @@ const exitKeyframe = keyframes(_t2 || (_t2 = _`
|
|
|
12702
13015
|
opacity: 0;
|
|
12703
13016
|
}
|
|
12704
13017
|
`));
|
|
12705
|
-
const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
|
|
13018
|
+
const pulsateKeyframe = keyframes(_t3$1 || (_t3$1 = _$1`
|
|
12706
13019
|
0% {
|
|
12707
13020
|
transform: scale(1);
|
|
12708
13021
|
}
|
|
@@ -12735,7 +13048,7 @@ const TouchRippleRoot = styled$1('span', {
|
|
|
12735
13048
|
const TouchRippleRipple = styled$1(Ripple, {
|
|
12736
13049
|
name: 'MuiTouchRipple',
|
|
12737
13050
|
slot: 'Ripple'
|
|
12738
|
-
})(_t4 || (_t4 = _`
|
|
13051
|
+
})(_t4$1 || (_t4$1 = _$1`
|
|
12739
13052
|
opacity: 0;
|
|
12740
13053
|
position: absolute;
|
|
12741
13054
|
|
|
@@ -12803,7 +13116,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
12803
13116
|
classes = {},
|
|
12804
13117
|
className
|
|
12805
13118
|
} = props,
|
|
12806
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13119
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
12807
13120
|
const [ripples, setRipples] = React.useState([]);
|
|
12808
13121
|
const nextKey = React.useRef(0);
|
|
12809
13122
|
const rippleCallback = React.useRef(null);
|
|
@@ -13004,8 +13317,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
13004
13317
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
13005
13318
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
13006
13319
|
|
|
13007
|
-
const _excluded$
|
|
13008
|
-
const useUtilityClasses$
|
|
13320
|
+
const _excluded$c = ["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"];
|
|
13321
|
+
const useUtilityClasses$9 = ownerState => {
|
|
13009
13322
|
const {
|
|
13010
13323
|
disabled,
|
|
13011
13324
|
focusVisible,
|
|
@@ -13106,7 +13419,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13106
13419
|
touchRippleRef,
|
|
13107
13420
|
type
|
|
13108
13421
|
} = props,
|
|
13109
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13422
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
13110
13423
|
const buttonRef = React.useRef(null);
|
|
13111
13424
|
const rippleRef = React.useRef(null);
|
|
13112
13425
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -13273,7 +13586,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13273
13586
|
tabIndex,
|
|
13274
13587
|
focusVisible
|
|
13275
13588
|
});
|
|
13276
|
-
const classes = useUtilityClasses$
|
|
13589
|
+
const classes = useUtilityClasses$9(ownerState);
|
|
13277
13590
|
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
|
|
13278
13591
|
as: ComponentProp,
|
|
13279
13592
|
className: clsx(classes.root, className),
|
|
@@ -13470,8 +13783,8 @@ function getIconButtonUtilityClass(slot) {
|
|
|
13470
13783
|
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
13471
13784
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
13472
13785
|
|
|
13473
|
-
const _excluded$
|
|
13474
|
-
const useUtilityClasses$
|
|
13786
|
+
const _excluded$b = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
13787
|
+
const useUtilityClasses$8 = ownerState => {
|
|
13475
13788
|
const {
|
|
13476
13789
|
classes,
|
|
13477
13790
|
disabled,
|
|
@@ -13571,7 +13884,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13571
13884
|
disableFocusRipple = false,
|
|
13572
13885
|
size = 'medium'
|
|
13573
13886
|
} = props,
|
|
13574
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13887
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$b);
|
|
13575
13888
|
const ownerState = _extends({}, props, {
|
|
13576
13889
|
edge,
|
|
13577
13890
|
color,
|
|
@@ -13579,7 +13892,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13579
13892
|
disableFocusRipple,
|
|
13580
13893
|
size
|
|
13581
13894
|
});
|
|
13582
|
-
const classes = useUtilityClasses$
|
|
13895
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
13583
13896
|
return /*#__PURE__*/jsx(IconButtonRoot, _extends({
|
|
13584
13897
|
className: clsx(classes.root, className),
|
|
13585
13898
|
centerRipple: true,
|
|
@@ -13665,8 +13978,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
13665
13978
|
}
|
|
13666
13979
|
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
13667
13980
|
|
|
13668
|
-
const _excluded$
|
|
13669
|
-
const useUtilityClasses$
|
|
13981
|
+
const _excluded$a = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
13982
|
+
const useUtilityClasses$7 = ownerState => {
|
|
13670
13983
|
const {
|
|
13671
13984
|
align,
|
|
13672
13985
|
gutterBottom,
|
|
@@ -13749,7 +14062,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
13749
14062
|
variant = 'body1',
|
|
13750
14063
|
variantMapping = defaultVariantMapping
|
|
13751
14064
|
} = props,
|
|
13752
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14065
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$a);
|
|
13753
14066
|
const ownerState = _extends({}, props, {
|
|
13754
14067
|
align,
|
|
13755
14068
|
color,
|
|
@@ -13762,7 +14075,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
13762
14075
|
variantMapping
|
|
13763
14076
|
});
|
|
13764
14077
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
13765
|
-
const classes = useUtilityClasses$
|
|
14078
|
+
const classes = useUtilityClasses$7(ownerState);
|
|
13766
14079
|
return /*#__PURE__*/jsx(TypographyRoot, _extends({
|
|
13767
14080
|
as: Component,
|
|
13768
14081
|
ref: ref,
|
|
@@ -13847,7 +14160,7 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
|
|
|
13847
14160
|
} : void 0;
|
|
13848
14161
|
var Typography$1 = Typography;
|
|
13849
14162
|
|
|
13850
|
-
const _excluded$
|
|
14163
|
+
const _excluded$9 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
13851
14164
|
const styles = {
|
|
13852
14165
|
entering: {
|
|
13853
14166
|
opacity: 1
|
|
@@ -13884,7 +14197,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
13884
14197
|
// eslint-disable-next-line react/prop-types
|
|
13885
14198
|
TransitionComponent = Transition$1
|
|
13886
14199
|
} = props,
|
|
13887
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14200
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
13888
14201
|
const nodeRef = React.useRef(null);
|
|
13889
14202
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
13890
14203
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -14045,8 +14358,8 @@ function getBackdropUtilityClass(slot) {
|
|
|
14045
14358
|
}
|
|
14046
14359
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
14047
14360
|
|
|
14048
|
-
const _excluded$
|
|
14049
|
-
const useUtilityClasses$
|
|
14361
|
+
const _excluded$8 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
14362
|
+
const useUtilityClasses$6 = ownerState => {
|
|
14050
14363
|
const {
|
|
14051
14364
|
classes,
|
|
14052
14365
|
invisible
|
|
@@ -14100,12 +14413,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
14100
14413
|
TransitionComponent = Fade$1,
|
|
14101
14414
|
transitionDuration
|
|
14102
14415
|
} = props,
|
|
14103
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14416
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
14104
14417
|
const ownerState = _extends({}, props, {
|
|
14105
14418
|
component,
|
|
14106
14419
|
invisible
|
|
14107
14420
|
});
|
|
14108
|
-
const classes = useUtilityClasses$
|
|
14421
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
14109
14422
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
14110
14423
|
return /*#__PURE__*/jsx(TransitionComponent, _extends({
|
|
14111
14424
|
in: open,
|
|
@@ -14249,45 +14562,419 @@ process.env.NODE_ENV !== "production" ? Box$1.propTypes /* remove-proptypes */ =
|
|
|
14249
14562
|
} : void 0;
|
|
14250
14563
|
var Box$2 = Box$1;
|
|
14251
14564
|
|
|
14252
|
-
function
|
|
14253
|
-
return generateUtilityClass('
|
|
14565
|
+
function getButtonUtilityClass(slot) {
|
|
14566
|
+
return generateUtilityClass('MuiButton', slot);
|
|
14254
14567
|
}
|
|
14255
|
-
generateUtilityClasses('
|
|
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;
|
|
14256
14570
|
|
|
14257
|
-
|
|
14258
|
-
|
|
14571
|
+
/**
|
|
14572
|
+
* @ignore - internal component.
|
|
14573
|
+
*/
|
|
14574
|
+
const ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
|
14575
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
14576
|
+
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
14577
|
+
}
|
|
14578
|
+
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
14579
|
+
|
|
14580
|
+
const _excluded$7 = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
14581
|
+
const useUtilityClasses$5 = ownerState => {
|
|
14259
14582
|
const {
|
|
14583
|
+
color,
|
|
14584
|
+
disableElevation,
|
|
14585
|
+
fullWidth,
|
|
14586
|
+
size,
|
|
14587
|
+
variant,
|
|
14260
14588
|
classes
|
|
14261
14589
|
} = ownerState;
|
|
14262
14590
|
const slots = {
|
|
14263
|
-
root: ['root']
|
|
14591
|
+
root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, color === 'inherit' && 'colorInherit', disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
|
14592
|
+
label: ['label'],
|
|
14593
|
+
startIcon: ['startIcon', `iconSize${capitalize(size)}`],
|
|
14594
|
+
endIcon: ['endIcon', `iconSize${capitalize(size)}`]
|
|
14264
14595
|
};
|
|
14265
|
-
|
|
14596
|
+
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
|
14597
|
+
return _extends({}, classes, composedClasses);
|
|
14266
14598
|
};
|
|
14267
|
-
const
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
}
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
}
|
|
14599
|
+
const commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {
|
|
14600
|
+
'& > *:nth-of-type(1)': {
|
|
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
|
+
}
|
|
14275
14611
|
});
|
|
14276
|
-
const
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
}
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
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',
|
|
14956
|
+
slot: 'Root',
|
|
14957
|
+
overridesResolver: (props, styles) => styles.root
|
|
14958
|
+
})(() => {
|
|
14959
|
+
return {
|
|
14960
|
+
overflow: 'hidden'
|
|
14961
|
+
};
|
|
14962
|
+
});
|
|
14963
|
+
const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
|
14964
|
+
const props = useThemeProps({
|
|
14965
|
+
props: inProps,
|
|
14966
|
+
name: 'MuiCard'
|
|
14967
|
+
});
|
|
14968
|
+
const {
|
|
14969
|
+
className,
|
|
14970
|
+
raised = false
|
|
14971
|
+
} = props,
|
|
14972
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
14973
|
+
const ownerState = _extends({}, props, {
|
|
14974
|
+
raised
|
|
14975
|
+
});
|
|
14976
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
14977
|
+
return /*#__PURE__*/jsx(CardRoot, _extends({
|
|
14291
14978
|
className: clsx(classes.root, className),
|
|
14292
14979
|
elevation: raised ? 8 : undefined,
|
|
14293
14980
|
ref: ref,
|
|
@@ -14333,8 +15020,8 @@ function getCardContentUtilityClass(slot) {
|
|
|
14333
15020
|
}
|
|
14334
15021
|
generateUtilityClasses('MuiCardContent', ['root']);
|
|
14335
15022
|
|
|
14336
|
-
const _excluded$
|
|
14337
|
-
const useUtilityClasses$
|
|
15023
|
+
const _excluded$5 = ["className", "component"];
|
|
15024
|
+
const useUtilityClasses$3 = ownerState => {
|
|
14338
15025
|
const {
|
|
14339
15026
|
classes
|
|
14340
15027
|
} = ownerState;
|
|
@@ -14364,11 +15051,11 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps,
|
|
|
14364
15051
|
className,
|
|
14365
15052
|
component = 'div'
|
|
14366
15053
|
} = props,
|
|
14367
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15054
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
14368
15055
|
const ownerState = _extends({}, props, {
|
|
14369
15056
|
component
|
|
14370
15057
|
});
|
|
14371
|
-
const classes = useUtilityClasses$
|
|
15058
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
14372
15059
|
return /*#__PURE__*/jsx(CardContentRoot, _extends({
|
|
14373
15060
|
as: component,
|
|
14374
15061
|
className: clsx(classes.root, className),
|
|
@@ -14405,7 +15092,7 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptype
|
|
|
14405
15092
|
} : void 0;
|
|
14406
15093
|
var CardContent$1 = CardContent;
|
|
14407
15094
|
|
|
14408
|
-
const _excluded$
|
|
15095
|
+
const _excluded$4 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
14409
15096
|
const ModalRoot = styled$1('div', {
|
|
14410
15097
|
name: 'MuiModal',
|
|
14411
15098
|
slot: 'Root',
|
|
@@ -14484,7 +15171,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
14484
15171
|
// eslint-disable-next-line react/prop-types
|
|
14485
15172
|
theme
|
|
14486
15173
|
} = props,
|
|
14487
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15174
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
14488
15175
|
const [exited, setExited] = React.useState(true);
|
|
14489
15176
|
const commonProps = {
|
|
14490
15177
|
container,
|
|
@@ -14678,32 +15365,269 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
14678
15365
|
/**
|
|
14679
15366
|
* If `true`, the component is shown.
|
|
14680
15367
|
*/
|
|
14681
|
-
open: PropTypes.bool.isRequired,
|
|
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
|
|
15597
|
+
*/
|
|
15598
|
+
flexItem: PropTypes.bool,
|
|
15599
|
+
/**
|
|
15600
|
+
* If `true`, the divider will have a lighter color.
|
|
15601
|
+
* @default false
|
|
15602
|
+
*/
|
|
15603
|
+
light: PropTypes.bool,
|
|
15604
|
+
/**
|
|
15605
|
+
* The component orientation.
|
|
15606
|
+
* @default 'horizontal'
|
|
15607
|
+
*/
|
|
15608
|
+
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
15609
|
+
/**
|
|
15610
|
+
* @ignore
|
|
15611
|
+
*/
|
|
15612
|
+
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
14682
15613
|
/**
|
|
14683
|
-
* The
|
|
14684
|
-
* @default {}
|
|
15614
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
14685
15615
|
*/
|
|
14686
|
-
|
|
14687
|
-
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14688
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
14689
|
-
}),
|
|
15616
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
14690
15617
|
/**
|
|
14691
|
-
* The
|
|
14692
|
-
*
|
|
14693
|
-
* @default {}
|
|
15618
|
+
* The text alignment.
|
|
15619
|
+
* @default 'center'
|
|
14694
15620
|
*/
|
|
14695
|
-
|
|
14696
|
-
backdrop: PropTypes.elementType,
|
|
14697
|
-
root: PropTypes.elementType
|
|
14698
|
-
}),
|
|
15621
|
+
textAlign: PropTypes.oneOf(['center', 'left', 'right']),
|
|
14699
15622
|
/**
|
|
14700
|
-
* The
|
|
15623
|
+
* The variant to use.
|
|
15624
|
+
* @default 'fullWidth'
|
|
14701
15625
|
*/
|
|
14702
|
-
|
|
15626
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])
|
|
14703
15627
|
} : void 0;
|
|
14704
|
-
var
|
|
15628
|
+
var Divider$1 = Divider;
|
|
14705
15629
|
|
|
14706
|
-
const _excluded$
|
|
15630
|
+
const _excluded$2 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
14707
15631
|
function getTranslateValue(direction, node, resolvedContainer) {
|
|
14708
15632
|
const rect = node.getBoundingClientRect();
|
|
14709
15633
|
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
@@ -14792,7 +15716,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
14792
15716
|
// eslint-disable-next-line react/prop-types
|
|
14793
15717
|
TransitionComponent = Transition$1
|
|
14794
15718
|
} = props,
|
|
14795
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15719
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
14796
15720
|
const childrenRef = React.useRef(null);
|
|
14797
15721
|
const handleRef = useForkRef(children.ref, childrenRef, ref);
|
|
14798
15722
|
const normalizedTransitionCallback = callback => isAppearing => {
|
|
@@ -15020,7 +15944,7 @@ function getDrawerUtilityClass(slot) {
|
|
|
15020
15944
|
}
|
|
15021
15945
|
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
|
15022
15946
|
|
|
15023
|
-
const _excluded = ["BackdropProps"],
|
|
15947
|
+
const _excluded$1 = ["BackdropProps"],
|
|
15024
15948
|
_excluded2 = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"];
|
|
15025
15949
|
const overridesResolver = (props, styles) => {
|
|
15026
15950
|
const {
|
|
@@ -15028,7 +15952,7 @@ const overridesResolver = (props, styles) => {
|
|
|
15028
15952
|
} = props;
|
|
15029
15953
|
return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
|
|
15030
15954
|
};
|
|
15031
|
-
const useUtilityClasses = ownerState => {
|
|
15955
|
+
const useUtilityClasses$1 = ownerState => {
|
|
15032
15956
|
const {
|
|
15033
15957
|
classes,
|
|
15034
15958
|
anchor,
|
|
@@ -15160,7 +16084,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
15160
16084
|
transitionDuration = defaultTransitionDuration,
|
|
15161
16085
|
variant = 'temporary'
|
|
15162
16086
|
} = props,
|
|
15163
|
-
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
|
|
16087
|
+
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$1),
|
|
15164
16088
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
15165
16089
|
|
|
15166
16090
|
// Let's assume that the Drawer will always be rendered on user space.
|
|
@@ -15178,7 +16102,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
15178
16102
|
open,
|
|
15179
16103
|
variant
|
|
15180
16104
|
}, other);
|
|
15181
|
-
const classes = useUtilityClasses(ownerState);
|
|
16105
|
+
const classes = useUtilityClasses$1(ownerState);
|
|
15182
16106
|
const drawer = /*#__PURE__*/jsx(DrawerPaper, _extends({
|
|
15183
16107
|
elevation: variant === 'temporary' ? elevation : 0,
|
|
15184
16108
|
square: true
|
|
@@ -15315,6 +16239,346 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
|
|
|
15315
16239
|
} : void 0;
|
|
15316
16240
|
var Drawer$1 = Drawer;
|
|
15317
16241
|
|
|
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
|
+
|
|
15318
16582
|
const Stack = createStack({
|
|
15319
16583
|
createStyledComponent: styled$1('div', {
|
|
15320
16584
|
name: 'MuiStack',
|
|
@@ -15388,45 +16652,40 @@ const EmptyState = ({
|
|
|
15388
16652
|
content,
|
|
15389
16653
|
actions
|
|
15390
16654
|
}) => {
|
|
15391
|
-
return
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
children: actions
|
|
15426
|
-
})]
|
|
15427
|
-
})]
|
|
15428
|
-
})
|
|
15429
|
-
});
|
|
16655
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
16656
|
+
theme: SincoTheme
|
|
16657
|
+
}, /*#__PURE__*/React__default.createElement(Card$1, {
|
|
16658
|
+
elevation: 1
|
|
16659
|
+
}, /*#__PURE__*/React__default.createElement(CardContent$1, {
|
|
16660
|
+
sx: {
|
|
16661
|
+
display: 'flex',
|
|
16662
|
+
alignItems: 'center',
|
|
16663
|
+
justifyContent: 'center',
|
|
16664
|
+
flexDirection: 'column',
|
|
16665
|
+
gap: 4
|
|
16666
|
+
}
|
|
16667
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
16668
|
+
style: {
|
|
16669
|
+
width: 206,
|
|
16670
|
+
height: 187
|
|
16671
|
+
}
|
|
16672
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
16673
|
+
xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
|
|
16674
|
+
})), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
16675
|
+
direction: "column",
|
|
16676
|
+
spacing: 2
|
|
16677
|
+
}, title && /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
16678
|
+
variant: "h6",
|
|
16679
|
+
textAlign: "center"
|
|
16680
|
+
}, title), content && /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
16681
|
+
variant: "body1",
|
|
16682
|
+
textAlign: "center",
|
|
16683
|
+
color: "text.secondary"
|
|
16684
|
+
}, content), _state === 'create' && actions && /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
16685
|
+
direction: "row",
|
|
16686
|
+
spacing: 2,
|
|
16687
|
+
justifyContent: "center"
|
|
16688
|
+
}, actions)))));
|
|
15430
16689
|
};
|
|
15431
16690
|
|
|
15432
16691
|
var wellKnownSymbol$a = wellKnownSymbol$f;
|
|
@@ -15898,83 +17157,286 @@ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("p
|
|
|
15898
17157
|
default_1 = Close.default = _default;
|
|
15899
17158
|
|
|
15900
17159
|
const stylesDrawerContainer = {
|
|
15901
|
-
display:
|
|
15902
|
-
flexDirection:
|
|
15903
|
-
alignContent:
|
|
15904
|
-
justifyContent:
|
|
15905
|
-
width:
|
|
15906
|
-
height:
|
|
15907
|
-
overflow:
|
|
17160
|
+
display: "flex",
|
|
17161
|
+
flexDirection: "column",
|
|
17162
|
+
alignContent: "flex-start",
|
|
17163
|
+
justifyContent: "space-between",
|
|
17164
|
+
width: "530px",
|
|
17165
|
+
height: "100%",
|
|
17166
|
+
overflow: "hidden"
|
|
15908
17167
|
};
|
|
15909
17168
|
const stylesEncabezado = {
|
|
15910
|
-
display:
|
|
15911
|
-
alignContent:
|
|
15912
|
-
justifyContent:
|
|
15913
|
-
backgroundColor:
|
|
15914
|
-
py:
|
|
15915
|
-
px:
|
|
17169
|
+
display: "flex",
|
|
17170
|
+
alignContent: "center",
|
|
17171
|
+
justifyContent: "space-between",
|
|
17172
|
+
backgroundColor: "secondary.main",
|
|
17173
|
+
py: "12px",
|
|
17174
|
+
px: "8px"
|
|
15916
17175
|
};
|
|
15917
17176
|
const stylesContenido = {
|
|
15918
|
-
display:
|
|
15919
|
-
overflow:
|
|
15920
|
-
alignItems:
|
|
15921
|
-
flexDirection:
|
|
15922
|
-
height:
|
|
15923
|
-
py:
|
|
15924
|
-
px:
|
|
17177
|
+
display: "flex",
|
|
17178
|
+
overflow: "auto",
|
|
17179
|
+
alignItems: "flex-start",
|
|
17180
|
+
flexDirection: "column",
|
|
17181
|
+
height: "-webkit-fill-available",
|
|
17182
|
+
py: "12px",
|
|
17183
|
+
px: "8px"
|
|
15925
17184
|
};
|
|
15926
17185
|
const stylesAcciones = {
|
|
15927
|
-
display:
|
|
15928
|
-
alignContent:
|
|
15929
|
-
justifyContent:
|
|
15930
|
-
borderTop:
|
|
15931
|
-
backgroundColor:
|
|
15932
|
-
mt:
|
|
15933
|
-
gap:
|
|
15934
|
-
py:
|
|
15935
|
-
px:
|
|
17186
|
+
display: "flex",
|
|
17187
|
+
alignContent: "center",
|
|
17188
|
+
justifyContent: "flex-end",
|
|
17189
|
+
borderTop: "1px solid rgba(16, 24, 64, 0.23)",
|
|
17190
|
+
backgroundColor: "#F1F0EE",
|
|
17191
|
+
mt: "4px",
|
|
17192
|
+
gap: "8px",
|
|
17193
|
+
py: "12px",
|
|
17194
|
+
px: "8px"
|
|
15936
17195
|
};
|
|
15937
|
-
const DrawerComponent =
|
|
17196
|
+
const DrawerComponent = ({
|
|
17197
|
+
open,
|
|
17198
|
+
onClose,
|
|
17199
|
+
titulo,
|
|
17200
|
+
children,
|
|
17201
|
+
acciones,
|
|
17202
|
+
anchor
|
|
17203
|
+
}) => {
|
|
15938
17204
|
const [showActions, setShowActions] = useState(false);
|
|
15939
17205
|
const mostrarAcciones = () => {
|
|
15940
17206
|
setShowActions(true);
|
|
15941
17207
|
};
|
|
15942
|
-
return
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
17208
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17209
|
+
theme: SincoTheme
|
|
17210
|
+
}, /*#__PURE__*/React__default.createElement(Drawer$1, {
|
|
17211
|
+
anchor: anchor,
|
|
17212
|
+
open: open,
|
|
17213
|
+
onClose: onClose
|
|
17214
|
+
}, /*#__PURE__*/React__default.createElement(Box$2, {
|
|
17215
|
+
sx: stylesDrawerContainer
|
|
17216
|
+
}, /*#__PURE__*/React__default.createElement(Box$2, {
|
|
17217
|
+
sx: stylesEncabezado
|
|
17218
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17219
|
+
variant: "h6"
|
|
17220
|
+
}, titulo), /*#__PURE__*/React__default.createElement(Box$2, null, /*#__PURE__*/React__default.createElement(IconButton$1, {
|
|
17221
|
+
onClick: onClose,
|
|
17222
|
+
size: "small"
|
|
17223
|
+
}, /*#__PURE__*/React__default.createElement(default_1, {
|
|
17224
|
+
fontSize: "small"
|
|
17225
|
+
})))), /*#__PURE__*/React__default.createElement(Box$2, {
|
|
17226
|
+
onClick: mostrarAcciones,
|
|
17227
|
+
sx: stylesContenido
|
|
17228
|
+
}, children), showActions && /*#__PURE__*/React__default.createElement(Box$2, {
|
|
17229
|
+
sx: stylesAcciones
|
|
17230
|
+
}, acciones))));
|
|
17231
|
+
};
|
|
17232
|
+
|
|
17233
|
+
const ToastContent = styled$1(Stack$1)(() => ({
|
|
17234
|
+
position: "fixed",
|
|
17235
|
+
zIndex: 1400,
|
|
17236
|
+
boxShadow: "0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)",
|
|
17237
|
+
right: 16,
|
|
17238
|
+
marginTop: 16
|
|
17239
|
+
}));
|
|
17240
|
+
const ContentBox = styled$1(Box$2)(({
|
|
17241
|
+
theme
|
|
17242
|
+
}) => ({
|
|
17243
|
+
padding: theme.spacing(1.5),
|
|
17244
|
+
gap: theme.spacing(1.5),
|
|
17245
|
+
display: "flex",
|
|
17246
|
+
alignItems: "center",
|
|
17247
|
+
"&.color-error": {
|
|
17248
|
+
backgroundColor: "#FEEBEE"
|
|
17249
|
+
},
|
|
17250
|
+
"&.color-info": {
|
|
17251
|
+
backgroundColor: "#E1F5FE"
|
|
17252
|
+
},
|
|
17253
|
+
"&.color-warning": {
|
|
17254
|
+
backgroundColor: "#FFF3E0"
|
|
17255
|
+
},
|
|
17256
|
+
"&.color-success": {
|
|
17257
|
+
backgroundColor: "#E8F5E9"
|
|
17258
|
+
}
|
|
17259
|
+
}));
|
|
17260
|
+
const RippleIcon = styled$1(Stack$1)(({
|
|
17261
|
+
theme
|
|
17262
|
+
}) => ({
|
|
17263
|
+
padding: theme.spacing(1),
|
|
17264
|
+
gap: theme.spacing(1),
|
|
17265
|
+
height: 20,
|
|
17266
|
+
borderRadius: 50,
|
|
17267
|
+
"&.ripple-error": {
|
|
17268
|
+
backgroundColor: "#D143431F"
|
|
17269
|
+
},
|
|
17270
|
+
"&.ripple-info": {
|
|
17271
|
+
backgroundColor: "#2D9FC51F"
|
|
17272
|
+
},
|
|
17273
|
+
"&.ripple-warning": {
|
|
17274
|
+
backgroundColor: "#FB85001F"
|
|
17275
|
+
},
|
|
17276
|
+
"&.ripple-success": {
|
|
17277
|
+
backgroundColor: "#8FC93A1F"
|
|
17278
|
+
}
|
|
17279
|
+
}));
|
|
17280
|
+
const ContentIcon = styled$1(Stack$1)(({
|
|
17281
|
+
theme
|
|
17282
|
+
}) => ({
|
|
17283
|
+
"&.icon-color.color-info": {
|
|
17284
|
+
color: theme.palette.info.main
|
|
17285
|
+
},
|
|
17286
|
+
"&.icon-color.color-error": {
|
|
17287
|
+
color: theme.palette.error.main
|
|
17288
|
+
},
|
|
17289
|
+
"&.icon-color.color-warning": {
|
|
17290
|
+
color: theme.palette.warning.main
|
|
17291
|
+
},
|
|
17292
|
+
"&.icon-color.color-success": {
|
|
17293
|
+
color: theme.palette.success.main
|
|
17294
|
+
}
|
|
17295
|
+
}));
|
|
17296
|
+
const ToastNotification = toast => {
|
|
17297
|
+
const [openToast, setOpenToast] = useState(true);
|
|
17298
|
+
const [showOptions, setShowOptions] = useState(true);
|
|
17299
|
+
const [progress, setProgress] = useState(100);
|
|
17300
|
+
const timeProgress = toast.time || 8000;
|
|
17301
|
+
const IconMap = {
|
|
17302
|
+
success: /*#__PURE__*/React__default.createElement(CheckCircleRounded, null),
|
|
17303
|
+
error: /*#__PURE__*/React__default.createElement(ErrorRounded, null),
|
|
17304
|
+
warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
|
|
17305
|
+
info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
|
|
17306
|
+
};
|
|
17307
|
+
const ToastIcon = IconMap[toast.type || "info"];
|
|
17308
|
+
const colorMap = {
|
|
17309
|
+
success: "success",
|
|
17310
|
+
error: "error",
|
|
17311
|
+
warning: "warning",
|
|
17312
|
+
info: "info"
|
|
17313
|
+
};
|
|
17314
|
+
const colors = colorMap[toast.type || "info"];
|
|
17315
|
+
const toastPosition = {
|
|
17316
|
+
center: "center",
|
|
17317
|
+
end: "end",
|
|
17318
|
+
start: "start"
|
|
17319
|
+
};
|
|
17320
|
+
toastPosition[toast.position || "end"];
|
|
17321
|
+
const close = () => {
|
|
17322
|
+
setOpenToast(false);
|
|
17323
|
+
};
|
|
17324
|
+
const toggleOptions = () => {
|
|
17325
|
+
setShowOptions(prevShowOptions => !prevShowOptions);
|
|
17326
|
+
};
|
|
17327
|
+
const seeOptions = toast.seeMore;
|
|
17328
|
+
useEffect(() => {
|
|
17329
|
+
let seconds = 0;
|
|
17330
|
+
const interval = setInterval(() => {
|
|
17331
|
+
seconds += 100;
|
|
17332
|
+
const progress = 100 - seconds / timeProgress * 100;
|
|
17333
|
+
setProgress(progress <= 0 ? 0 : progress);
|
|
17334
|
+
}, 100);
|
|
17335
|
+
const closeTimeout = setTimeout(() => {
|
|
17336
|
+
clearInterval(interval);
|
|
17337
|
+
setOpenToast(false);
|
|
17338
|
+
}, timeProgress);
|
|
17339
|
+
return () => {
|
|
17340
|
+
clearInterval(interval);
|
|
17341
|
+
clearTimeout(closeTimeout);
|
|
17342
|
+
};
|
|
17343
|
+
}, [timeProgress]);
|
|
17344
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17345
|
+
theme: SincoTheme
|
|
17346
|
+
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17347
|
+
height: 105,
|
|
17348
|
+
top: 16,
|
|
17349
|
+
right: 16,
|
|
17350
|
+
position: "absolute",
|
|
17351
|
+
zIndex: 1400
|
|
17352
|
+
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
|
17353
|
+
position: "fixed"
|
|
17354
|
+
}, /*#__PURE__*/React__default.createElement(ContentBox, {
|
|
17355
|
+
className: `color-${toast.type || "info"}`
|
|
17356
|
+
}, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
|
|
17357
|
+
className: `ripple-${toast.type || "info"}`
|
|
17358
|
+
}, /*#__PURE__*/React__default.createElement(ContentIcon, {
|
|
17359
|
+
className: `icon-color color-${toast.type || "info"}`
|
|
17360
|
+
}, ToastIcon)), /*#__PURE__*/React__default.createElement(Divider$1, {
|
|
17361
|
+
orientation: "vertical",
|
|
17362
|
+
flexItem: true
|
|
17363
|
+
}), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17364
|
+
gap: 0.5,
|
|
17365
|
+
width: 285
|
|
17366
|
+
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17367
|
+
justifyContent: "space-between",
|
|
17368
|
+
flexDirection: "row",
|
|
17369
|
+
alignItems: "center"
|
|
17370
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17371
|
+
variant: "subtitle2",
|
|
17372
|
+
color: "text.primary"
|
|
17373
|
+
}, toast.title), /*#__PURE__*/React__default.createElement(IconButton$1, {
|
|
17374
|
+
size: "small",
|
|
17375
|
+
"aria-label": "delete",
|
|
17376
|
+
onClick: close
|
|
17377
|
+
}, /*#__PURE__*/React__default.createElement(Close$1, null))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17378
|
+
gap: "4px"
|
|
17379
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17380
|
+
color: "text.primary",
|
|
17381
|
+
variant: "body2"
|
|
17382
|
+
}, toast.subtitle), !showOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
|
|
17383
|
+
style: {
|
|
17384
|
+
paddingLeft: 15,
|
|
17385
|
+
marginBlock: 0,
|
|
17386
|
+
fontSize: 11,
|
|
17387
|
+
color: "#101840de"
|
|
17388
|
+
}
|
|
17389
|
+
}, toast.dataOpt.map((element, i) => {
|
|
17390
|
+
const keyElement = Object.keys(element);
|
|
17391
|
+
let options = "";
|
|
17392
|
+
for (let _i = 0; _i < keyElement.length; _i++) {
|
|
17393
|
+
options += element[keyElement[_i]];
|
|
17394
|
+
}
|
|
17395
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
15947
17396
|
style: {
|
|
15948
|
-
|
|
15949
|
-
}
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
}), showActions && jsx(Box$2, {
|
|
15971
|
-
sx: stylesAcciones,
|
|
15972
|
-
children: props.acciones
|
|
15973
|
-
})]
|
|
17397
|
+
width: "fit-content"
|
|
17398
|
+
},
|
|
17399
|
+
key: i
|
|
17400
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17401
|
+
variant: "caption"
|
|
17402
|
+
}, options));
|
|
17403
|
+
}))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17404
|
+
justifyContent: "flex-end",
|
|
17405
|
+
flexDirection: "row",
|
|
17406
|
+
alignItems: "flex-end"
|
|
17407
|
+
}, toast.actions && /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17408
|
+
flexDirection: "row",
|
|
17409
|
+
gap: 1
|
|
17410
|
+
}, toast.actions), seeOptions && /*#__PURE__*/React__default.createElement(Button$1, {
|
|
17411
|
+
onClick: toggleOptions,
|
|
17412
|
+
size: "small",
|
|
17413
|
+
variant: "text",
|
|
17414
|
+
color: colors,
|
|
17415
|
+
endIcon: showOptions ? /*#__PURE__*/React__default.createElement(ArrowDownward, {
|
|
17416
|
+
fontSize: "small"
|
|
17417
|
+
}) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
|
|
17418
|
+
fontSize: "small"
|
|
15974
17419
|
})
|
|
15975
|
-
})
|
|
17420
|
+
}, showOptions ? "Ver más" : "Ver menos")))), /*#__PURE__*/React__default.createElement(LinearProgress$1, {
|
|
17421
|
+
color: colors,
|
|
17422
|
+
variant: "determinate",
|
|
17423
|
+
value: progress
|
|
17424
|
+
})))));
|
|
15976
17425
|
};
|
|
15977
17426
|
|
|
17427
|
+
const PageContent = styled$1(Stack$1)(({
|
|
17428
|
+
theme
|
|
17429
|
+
}) => ({
|
|
17430
|
+
backgroundColor: "#fff",
|
|
17431
|
+
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)",
|
|
17432
|
+
zIndex: 100,
|
|
17433
|
+
padding: "8px 24px",
|
|
17434
|
+
justifyContent: "space-between",
|
|
17435
|
+
minHeight: 39,
|
|
17436
|
+
position: "fixed",
|
|
17437
|
+
width: "100%"
|
|
17438
|
+
}));
|
|
17439
|
+
|
|
15978
17440
|
var classof$2 = classofRaw$2;
|
|
15979
17441
|
|
|
15980
17442
|
var engineIsNode = typeof process != 'undefined' && classof$2(process) == 'process';
|
|
@@ -21430,4 +22892,4 @@ const useDynamicColor = url => {
|
|
|
21430
22892
|
};
|
|
21431
22893
|
};
|
|
21432
22894
|
|
|
21433
|
-
export { DrawerComponent, EmptyState, SincoTheme, UrlImage, useDynamicColor };
|
|
22895
|
+
export { DrawerComponent, EmptyState, PageContent, SincoTheme, ToastNotification, UrlImage, dynamicColor, useDynamicColor };
|