mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 05:32:18 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
57
web/node_modules/@material-ui/core/Accordion/Accordion.d.ts
generated
vendored
Normal file
57
web/node_modules/@material-ui/core/Accordion/Accordion.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { TransitionProps } from '../transitions/transition';
|
||||
import { PaperProps } from '../Paper';
|
||||
|
||||
export interface AccordionProps extends StandardProps<PaperProps, AccordionClassKey, 'onChange'> {
|
||||
/**
|
||||
* The content of the accordion.
|
||||
*/
|
||||
children: NonNullable<React.ReactNode>;
|
||||
/**
|
||||
* If `true`, expands the accordion by default.
|
||||
*/
|
||||
defaultExpanded?: boolean;
|
||||
/**
|
||||
* If `true`, the accordion will be displayed in a disabled state.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, expands the accordion, otherwise collapse it.
|
||||
* Setting this prop enables control over the accordion.
|
||||
*/
|
||||
expanded?: boolean;
|
||||
/**
|
||||
* Callback fired when the expand/collapse state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {boolean} expanded The `expanded` state of the accordion.
|
||||
*/
|
||||
onChange?: (event: React.ChangeEvent<{}>, expanded: boolean) => void;
|
||||
/**
|
||||
* The component used for the collapse effect.
|
||||
* [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
*/
|
||||
TransitionComponent?: React.ComponentType<
|
||||
TransitionProps & { children?: React.ReactElement<any, any> }
|
||||
>;
|
||||
/**
|
||||
* Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
|
||||
*/
|
||||
TransitionProps?: TransitionProps;
|
||||
}
|
||||
|
||||
export type AccordionClassKey = 'root' | 'rounded' | 'expanded' | 'disabled';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Accordion API](https://material-ui.com/api/accordion/)
|
||||
* - inherits [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function Accordion(props: AccordionProps): JSX.Element;
|
255
web/node_modules/@material-ui/core/Accordion/Accordion.js
generated
vendored
Normal file
255
web/node_modules/@material-ui/core/Accordion/Accordion.js
generated
vendored
Normal file
|
@ -0,0 +1,255 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
|
||||
|
||||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _reactIs = require("react-is");
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _Collapse = _interopRequireDefault(require("../Collapse"));
|
||||
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _AccordionContext = _interopRequireDefault(require("./AccordionContext"));
|
||||
|
||||
var _useControlled3 = _interopRequireDefault(require("../utils/useControlled"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
var transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
transition: theme.transitions.create(['margin'], transition),
|
||||
'&:before': {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: -1,
|
||||
right: 0,
|
||||
height: 1,
|
||||
content: '""',
|
||||
opacity: 1,
|
||||
backgroundColor: theme.palette.divider,
|
||||
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
||||
},
|
||||
'&:first-child': {
|
||||
'&:before': {
|
||||
display: 'none'
|
||||
}
|
||||
},
|
||||
'&$expanded': {
|
||||
margin: '16px 0',
|
||||
'&:first-child': {
|
||||
marginTop: 0
|
||||
},
|
||||
'&:last-child': {
|
||||
marginBottom: 0
|
||||
},
|
||||
'&:before': {
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
'&$expanded + &': {
|
||||
'&:before': {
|
||||
display: 'none'
|
||||
}
|
||||
},
|
||||
'&$disabled': {
|
||||
backgroundColor: theme.palette.action.disabledBackground
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `square={false}`. */
|
||||
rounded: {
|
||||
borderRadius: 0,
|
||||
'&:first-child': {
|
||||
borderTopLeftRadius: theme.shape.borderRadius,
|
||||
borderTopRightRadius: theme.shape.borderRadius
|
||||
},
|
||||
'&:last-child': {
|
||||
borderBottomLeftRadius: theme.shape.borderRadius,
|
||||
borderBottomRightRadius: theme.shape.borderRadius,
|
||||
// Fix a rendering issue on Edge
|
||||
'@supports (-ms-ime-align: auto)': {
|
||||
borderBottomLeftRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `expanded={true}`. */
|
||||
expanded: {},
|
||||
|
||||
/* Styles applied to the root element if `disabled={true}`. */
|
||||
disabled: {}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(props, ref) {
|
||||
var childrenProp = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$defaultExpande = props.defaultExpanded,
|
||||
defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
expandedProp = props.expanded,
|
||||
onChange = props.onChange,
|
||||
_props$square = props.square,
|
||||
square = _props$square === void 0 ? false : _props$square,
|
||||
_props$TransitionComp = props.TransitionComponent,
|
||||
TransitionComponent = _props$TransitionComp === void 0 ? _Collapse.default : _props$TransitionComp,
|
||||
TransitionProps = props.TransitionProps,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "defaultExpanded", "disabled", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"]);
|
||||
|
||||
var _useControlled = (0, _useControlled3.default)({
|
||||
controlled: expandedProp,
|
||||
default: defaultExpanded,
|
||||
name: 'Accordion',
|
||||
state: 'expanded'
|
||||
}),
|
||||
_useControlled2 = (0, _slicedToArray2.default)(_useControlled, 2),
|
||||
expanded = _useControlled2[0],
|
||||
setExpandedState = _useControlled2[1];
|
||||
|
||||
var handleChange = React.useCallback(function (event) {
|
||||
setExpandedState(!expanded);
|
||||
|
||||
if (onChange) {
|
||||
onChange(event, !expanded);
|
||||
}
|
||||
}, [expanded, onChange, setExpandedState]);
|
||||
|
||||
var _React$Children$toArr = React.Children.toArray(childrenProp),
|
||||
_React$Children$toArr2 = (0, _toArray2.default)(_React$Children$toArr),
|
||||
summary = _React$Children$toArr2[0],
|
||||
children = _React$Children$toArr2.slice(1);
|
||||
|
||||
var contextValue = React.useMemo(function () {
|
||||
return {
|
||||
expanded: expanded,
|
||||
disabled: disabled,
|
||||
toggle: handleChange
|
||||
};
|
||||
}, [expanded, disabled, handleChange]);
|
||||
return /*#__PURE__*/React.createElement(_Paper.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, expanded && classes.expanded, disabled && classes.disabled, !square && classes.rounded),
|
||||
ref: ref,
|
||||
square: square
|
||||
}, other), /*#__PURE__*/React.createElement(_AccordionContext.default.Provider, {
|
||||
value: contextValue
|
||||
}, summary), /*#__PURE__*/React.createElement(TransitionComponent, (0, _extends2.default)({
|
||||
in: expanded,
|
||||
timeout: "auto"
|
||||
}, TransitionProps), /*#__PURE__*/React.createElement("div", {
|
||||
"aria-labelledby": summary.props.id,
|
||||
id: summary.props['aria-controls'],
|
||||
role: "region"
|
||||
}, children)));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Accordion.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion.
|
||||
*/
|
||||
children: (0, _utils.chainPropTypes)(_propTypes.default.node.isRequired, function (props) {
|
||||
var summary = React.Children.toArray(props.children)[0];
|
||||
|
||||
if ((0, _reactIs.isFragment)(summary)) {
|
||||
return new Error("Material-UI: The Accordion doesn't accept a Fragment as a child. " + 'Consider providing an array instead.');
|
||||
}
|
||||
|
||||
if (! /*#__PURE__*/React.isValidElement(summary)) {
|
||||
return new Error('Material-UI: Expected the first child of Accordion to be a valid element.');
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, expands the accordion by default.
|
||||
*/
|
||||
defaultExpanded: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the accordion will be displayed in a disabled state.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, expands the accordion, otherwise collapse it.
|
||||
* Setting this prop enables control over the accordion.
|
||||
*/
|
||||
expanded: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Callback fired when the expand/collapse state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {boolean} expanded The `expanded` state of the accordion.
|
||||
*/
|
||||
onChange: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
*/
|
||||
square: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The component used for the collapse effect.
|
||||
* [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
*/
|
||||
TransitionComponent: _propTypes.default.elementType,
|
||||
|
||||
/**
|
||||
* Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
|
||||
*/
|
||||
TransitionProps: _propTypes.default.object
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordion'
|
||||
})(Accordion);
|
||||
|
||||
exports.default = _default;
|
23
web/node_modules/@material-ui/core/Accordion/AccordionContext.js
generated
vendored
Normal file
23
web/node_modules/@material-ui/core/Accordion/AccordionContext.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|
||||
*/
|
||||
var AccordionContext = React.createContext({});
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
AccordionContext.displayName = 'AccordionContext';
|
||||
}
|
||||
|
||||
var _default = AccordionContext;
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Accordion/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Accordion/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Accordion';
|
||||
export * from './Accordion';
|
15
web/node_modules/@material-ui/core/Accordion/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Accordion/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Accordion.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
5
web/node_modules/@material-ui/core/Accordion/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Accordion/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Accordion/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
28
web/node_modules/@material-ui/core/AccordionActions/AccordionActions.d.ts
generated
vendored
Normal file
28
web/node_modules/@material-ui/core/AccordionActions/AccordionActions.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface AccordionActionsProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, AccordionActionsClassKey> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing?: boolean;
|
||||
}
|
||||
|
||||
export type AccordionActionsClassKey = 'root' | 'spacing';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionActions API](https://material-ui.com/api/accordion-actions/)
|
||||
*/
|
||||
export default function AccordionActions(props: AccordionActionsProps): JSX.Element;
|
84
web/node_modules/@material-ui/core/AccordionActions/AccordionActions.js
generated
vendored
Normal file
84
web/node_modules/@material-ui/core/AccordionActions/AccordionActions.js
generated
vendored
Normal file
|
@ -0,0 +1,84 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8,
|
||||
justifyContent: 'flex-end'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `disableSpacing={false}`. */
|
||||
spacing: {
|
||||
'& > :not(:first-child)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$disableSpacing = props.disableSpacing,
|
||||
disableSpacing = _props$disableSpacing === void 0 ? false : _props$disableSpacing,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "disableSpacing"]);
|
||||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, !disableSpacing && classes.spacing),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionActions.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing: _propTypes.default.bool
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionActions'
|
||||
})(AccordionActions);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/AccordionActions/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/AccordionActions/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './AccordionActions';
|
||||
export * from './AccordionActions';
|
15
web/node_modules/@material-ui/core/AccordionActions/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/AccordionActions/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionActions.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionActions = _interopRequireDefault(require("./AccordionActions"));
|
5
web/node_modules/@material-ui/core/AccordionActions/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/AccordionActions/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionActions/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
24
web/node_modules/@material-ui/core/AccordionDetails/AccordionDetails.d.ts
generated
vendored
Normal file
24
web/node_modules/@material-ui/core/AccordionDetails/AccordionDetails.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface AccordionDetailsProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, AccordionDetailsClassKey> {
|
||||
/**
|
||||
* The content of the accordion details.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export type AccordionDetailsClassKey = 'root';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionDetails API](https://material-ui.com/api/accordion-details/)
|
||||
*/
|
||||
export default function AccordionDetails(props: AccordionDetailsProps): JSX.Element;
|
71
web/node_modules/@material-ui/core/AccordionDetails/AccordionDetails.js
generated
vendored
Normal file
71
web/node_modules/@material-ui/core/AccordionDetails/AccordionDetails.js
generated
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
padding: theme.spacing(1, 2, 2)
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className"]);
|
||||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion details.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionDetails'
|
||||
})(AccordionDetails);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/AccordionDetails/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/AccordionDetails/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './AccordionDetails';
|
||||
export * from './AccordionDetails';
|
15
web/node_modules/@material-ui/core/AccordionDetails/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/AccordionDetails/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionDetails.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionDetails = _interopRequireDefault(require("./AccordionDetails"));
|
5
web/node_modules/@material-ui/core/AccordionDetails/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/AccordionDetails/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionDetails/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
56
web/node_modules/@material-ui/core/AccordionSummary/AccordionSummary.d.ts
generated
vendored
Normal file
56
web/node_modules/@material-ui/core/AccordionSummary/AccordionSummary.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
import * as React from 'react';
|
||||
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { IconButtonProps } from '../IconButton';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type AccordionSummaryTypeMap<
|
||||
P = {},
|
||||
D extends React.ElementType = 'div'
|
||||
> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the accordion summary.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The icon to display as the expand indicator.
|
||||
*/
|
||||
expandIcon?: React.ReactNode;
|
||||
/**
|
||||
* Props applied to the `IconButton` element wrapping the expand icon.
|
||||
*/
|
||||
IconButtonProps?: Partial<IconButtonProps>;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: AccordionSummaryClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionSummary API](https://material-ui.com/api/accordion-summary/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const AccordionSummary: ExtendButtonBase<AccordionSummaryTypeMap>;
|
||||
|
||||
export type AccordionSummaryClassKey =
|
||||
| 'root'
|
||||
| 'expanded'
|
||||
// deprecated
|
||||
| 'focused'
|
||||
| 'focusVisible'
|
||||
| 'disabled'
|
||||
| 'content'
|
||||
| 'expandIcon';
|
||||
|
||||
export type AccordionSummaryProps<
|
||||
D extends React.ElementType = AccordionSummaryTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<AccordionSummaryTypeMap<P, D>, D>;
|
||||
|
||||
export default AccordionSummary;
|
207
web/node_modules/@material-ui/core/AccordionSummary/AccordionSummary.js
generated
vendored
Normal file
207
web/node_modules/@material-ui/core/AccordionSummary/AccordionSummary.js
generated
vendored
Normal file
|
@ -0,0 +1,207 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _AccordionContext = _interopRequireDefault(require("../Accordion/AccordionContext"));
|
||||
|
||||
/* eslint-disable jsx-a11y/aria-role */
|
||||
var styles = function styles(theme) {
|
||||
var transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
minHeight: 8 * 6,
|
||||
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
||||
padding: theme.spacing(0, 2),
|
||||
'&:hover:not($disabled)': {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
'&$expanded': {
|
||||
minHeight: 64
|
||||
},
|
||||
'&$focused, &$focusVisible': {
|
||||
backgroundColor: theme.palette.action.focus
|
||||
},
|
||||
'&$disabled': {
|
||||
opacity: theme.palette.action.disabledOpacity
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
||||
expanded: {},
|
||||
|
||||
/* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */
|
||||
focused: {},
|
||||
|
||||
/* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */
|
||||
focusVisible: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Styles applied to the children wrapper element. */
|
||||
content: {
|
||||
display: 'flex',
|
||||
flexGrow: 1,
|
||||
transition: theme.transitions.create(['margin'], transition),
|
||||
margin: '12px 0',
|
||||
'&$expanded': {
|
||||
margin: '20px 0'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the `IconButton` component when `expandIcon` is supplied. */
|
||||
expandIcon: {
|
||||
transform: 'rotate(0deg)',
|
||||
transition: theme.transitions.create('transform', transition),
|
||||
'&:hover': {
|
||||
// Disable the hover effect for the IconButton,
|
||||
// because a hover effect should apply to the entire Expand button and
|
||||
// not only to the IconButton.
|
||||
backgroundColor: 'transparent'
|
||||
},
|
||||
'&$expanded': {
|
||||
transform: 'rotate(180deg)'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
expandIcon = props.expandIcon,
|
||||
focusVisibleClassName = props.focusVisibleClassName,
|
||||
_props$IconButtonProp = props.IconButtonProps,
|
||||
IconButtonProps = _props$IconButtonProp === void 0 ? {} : _props$IconButtonProp,
|
||||
onClick = props.onClick,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "expandIcon", "focusVisibleClassName", "IconButtonProps", "onClick"]);
|
||||
|
||||
var _React$useContext = React.useContext(_AccordionContext.default),
|
||||
_React$useContext$dis = _React$useContext.disabled,
|
||||
disabled = _React$useContext$dis === void 0 ? false : _React$useContext$dis,
|
||||
expanded = _React$useContext.expanded,
|
||||
toggle = _React$useContext.toggle;
|
||||
|
||||
var handleChange = function handleChange(event) {
|
||||
if (toggle) {
|
||||
toggle(event);
|
||||
}
|
||||
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
focusRipple: false,
|
||||
disableRipple: true,
|
||||
disabled: disabled,
|
||||
component: "div",
|
||||
"aria-expanded": expanded,
|
||||
className: (0, _clsx.default)(classes.root, className, disabled && classes.disabled, expanded && classes.expanded),
|
||||
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, classes.focused, focusVisibleClassName),
|
||||
onClick: handleChange,
|
||||
ref: ref
|
||||
}, other), /*#__PURE__*/React.createElement("div", {
|
||||
className: (0, _clsx.default)(classes.content, expanded && classes.expanded)
|
||||
}, children), expandIcon && /*#__PURE__*/React.createElement(_IconButton.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.expandIcon, expanded && classes.expanded),
|
||||
edge: "end",
|
||||
component: "div",
|
||||
tabIndex: null,
|
||||
role: null,
|
||||
"aria-hidden": true
|
||||
}, IconButtonProps), expandIcon));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion summary.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: (0, _utils.chainPropTypes)(_propTypes.default.object, function (props) {
|
||||
// Guard against when generation of classes is disabled in the stylesheets (`disableGeneration`).
|
||||
// For `disableGeneration` we don't have an accurate warning but `disableGeneration` is an advanced use case anyway.
|
||||
if (props.classes.focused !== undefined && props.classes.focused.indexOf(' ') !== -1) {
|
||||
return new Error(['Material-UI: The `classes.focused` key is deprecated.', 'Use `classes.focusVisible` instead.', 'The name of the pseudo-class was changed for consistency.'].join('\n'));
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The icon to display as the expand indicator.
|
||||
*/
|
||||
expandIcon: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* This prop can help identify which element has keyboard focus.
|
||||
* The class name will be applied when the element gains the focus through keyboard interaction.
|
||||
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
||||
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
|
||||
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
||||
* if needed.
|
||||
*/
|
||||
focusVisibleClassName: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* Props applied to the `IconButton` element wrapping the expand icon.
|
||||
*/
|
||||
IconButtonProps: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionSummary'
|
||||
})(AccordionSummary);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/AccordionSummary/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/AccordionSummary/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './AccordionSummary';
|
||||
export * from './AccordionSummary';
|
15
web/node_modules/@material-ui/core/AccordionSummary/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/AccordionSummary/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionSummary.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionSummary = _interopRequireDefault(require("./AccordionSummary"));
|
5
web/node_modules/@material-ui/core/AccordionSummary/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/AccordionSummary/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionSummary/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
39
web/node_modules/@material-ui/core/AppBar/AppBar.d.ts
generated
vendored
Normal file
39
web/node_modules/@material-ui/core/AppBar/AppBar.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
import { PropTypes, StandardProps } from '..';
|
||||
import { PaperProps } from '../Paper';
|
||||
|
||||
export interface AppBarProps extends StandardProps<PaperProps, AppBarClassKey> {
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: PropTypes.Color | 'transparent';
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
*/
|
||||
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
||||
}
|
||||
|
||||
export type AppBarClassKey =
|
||||
| 'root'
|
||||
| 'positionFixed'
|
||||
| 'positionAbsolute'
|
||||
| 'positionSticky'
|
||||
| 'positionStatic'
|
||||
| 'positionRelative'
|
||||
| 'colorDefault'
|
||||
| 'colorPrimary'
|
||||
| 'colorSecondary';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [App Bar](https://material-ui.com/components/app-bar/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AppBar API](https://material-ui.com/api/app-bar/)
|
||||
* - inherits [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function AppBar(props: AppBarProps): JSX.Element;
|
168
web/node_modules/@material-ui/core/AppBar/AppBar.js
generated
vendored
Normal file
168
web/node_modules/@material-ui/core/AppBar/AppBar.js
generated
vendored
Normal file
|
@ -0,0 +1,168 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
var backgroundColorDefault = theme.palette.type === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
width: '100%',
|
||||
boxSizing: 'border-box',
|
||||
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
||||
zIndex: theme.zIndex.appBar,
|
||||
flexShrink: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="fixed"`. */
|
||||
positionFixed: {
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0,
|
||||
'@media print': {
|
||||
// Prevent the app bar to be visible on each printed page.
|
||||
position: 'absolute'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="absolute"`. */
|
||||
positionAbsolute: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="sticky"`. */
|
||||
positionSticky: {
|
||||
// ⚠️ sticky is not supported by IE 11.
|
||||
position: 'sticky',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="static"`. */
|
||||
positionStatic: {
|
||||
position: 'static'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="relative"`. */
|
||||
positionRelative: {
|
||||
position: 'relative'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="default"`. */
|
||||
colorDefault: {
|
||||
backgroundColor: backgroundColorDefault,
|
||||
color: theme.palette.getContrastText(backgroundColorDefault)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: theme.palette.primary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="inherit"`. */
|
||||
colorInherit: {
|
||||
color: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="transparent"`. */
|
||||
colorTransparent: {
|
||||
backgroundColor: 'transparent',
|
||||
color: 'inherit'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AppBar = /*#__PURE__*/React.forwardRef(function AppBar(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'primary' : _props$color,
|
||||
_props$position = props.position,
|
||||
position = _props$position === void 0 ? 'fixed' : _props$position,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "color", "position"]);
|
||||
return /*#__PURE__*/React.createElement(_Paper.default, (0, _extends2.default)({
|
||||
square: true,
|
||||
component: "header",
|
||||
elevation: 4,
|
||||
className: (0, _clsx.default)(classes.root, classes["position".concat((0, _capitalize.default)(position))], classes["color".concat((0, _capitalize.default)(color))], className, position === 'fixed' && 'mui-fixed'),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AppBar.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']),
|
||||
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
*/
|
||||
position: _propTypes.default.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAppBar'
|
||||
})(AppBar);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/AppBar/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/AppBar/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './AppBar';
|
||||
export * from './AppBar';
|
15
web/node_modules/@material-ui/core/AppBar/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/AppBar/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AppBar.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AppBar = _interopRequireDefault(require("./AppBar"));
|
5
web/node_modules/@material-ui/core/AppBar/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/AppBar/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AppBar/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
70
web/node_modules/@material-ui/core/Avatar/Avatar.d.ts
generated
vendored
Normal file
70
web/node_modules/@material-ui/core/Avatar/Avatar.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface AvatarTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* Used in combination with `src` or `srcSet` to
|
||||
* provide an alt attribute for the rendered `img` element.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
||||
* This can be an element, or just a string.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Attributes applied to the `img` element if the component is used to display an image.
|
||||
* It can be used to listen for the loading error event.
|
||||
*/
|
||||
imgProps?: React.ImgHTMLAttributes<HTMLImageElement>;
|
||||
/**
|
||||
* The `sizes` attribute for the `img` element.
|
||||
*/
|
||||
sizes?: string;
|
||||
/**
|
||||
* The `src` attribute for the `img` element.
|
||||
*/
|
||||
src?: string;
|
||||
/**
|
||||
* The `srcSet` attribute for the `img` element.
|
||||
* Use this attribute for responsive image display.
|
||||
*/
|
||||
srcSet?: string;
|
||||
/**
|
||||
* The shape of the avatar.
|
||||
*/
|
||||
variant?: 'circle' | 'circular' | 'rounded' | 'square';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: AvatarClassKey;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Avatars](https://material-ui.com/components/avatars/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Avatar API](https://material-ui.com/api/avatar/)
|
||||
*/
|
||||
declare const Avatar: OverridableComponent<AvatarTypeMap>;
|
||||
|
||||
export type AvatarClassKey =
|
||||
| 'root'
|
||||
| 'colorDefault'
|
||||
| 'circle'
|
||||
| 'circular'
|
||||
| 'rounded'
|
||||
| 'square'
|
||||
| 'img'
|
||||
| 'fallback';
|
||||
|
||||
export type AvatarProps<
|
||||
D extends React.ElementType = AvatarTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<AvatarTypeMap<P, D>, D>;
|
||||
|
||||
export default Avatar;
|
270
web/node_modules/@material-ui/core/Avatar/Avatar.js
generated
vendored
Normal file
270
web/node_modules/@material-ui/core/Avatar/Avatar.js
generated
vendored
Normal file
|
@ -0,0 +1,270 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Person = _interopRequireDefault(require("../internal/svg-icons/Person"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
flexShrink: 0,
|
||||
width: 40,
|
||||
height: 40,
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(20),
|
||||
lineHeight: 1,
|
||||
borderRadius: '50%',
|
||||
overflow: 'hidden',
|
||||
userSelect: 'none'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if not `src` or `srcSet`. */
|
||||
colorDefault: {
|
||||
color: theme.palette.background.default,
|
||||
backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="circle"`. */
|
||||
circle: {},
|
||||
|
||||
/* Styles applied to the root element if `variant="circular"`. */
|
||||
circular: {},
|
||||
|
||||
/* Styles applied to the root element if `variant="rounded"`. */
|
||||
rounded: {
|
||||
borderRadius: theme.shape.borderRadius
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="square"`. */
|
||||
square: {
|
||||
borderRadius: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the img element if either `src` or `srcSet` is defined. */
|
||||
img: {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
textAlign: 'center',
|
||||
// Handle non-square image. The property isn't supported by IE 11.
|
||||
objectFit: 'cover',
|
||||
// Hide alt text.
|
||||
color: 'transparent',
|
||||
// Hide the image broken icon, only works on Chrome.
|
||||
textIndent: 10000
|
||||
},
|
||||
|
||||
/* Styles applied to the fallback icon */
|
||||
fallback: {
|
||||
width: '75%',
|
||||
height: '75%'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
|
||||
function useLoaded(_ref) {
|
||||
var src = _ref.src,
|
||||
srcSet = _ref.srcSet;
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
loaded = _React$useState[0],
|
||||
setLoaded = _React$useState[1];
|
||||
|
||||
React.useEffect(function () {
|
||||
if (!src && !srcSet) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
setLoaded(false);
|
||||
var active = true;
|
||||
var image = new Image();
|
||||
image.src = src;
|
||||
image.srcSet = srcSet;
|
||||
|
||||
image.onload = function () {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
|
||||
setLoaded('loaded');
|
||||
};
|
||||
|
||||
image.onerror = function () {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
|
||||
setLoaded('error');
|
||||
};
|
||||
|
||||
return function () {
|
||||
active = false;
|
||||
};
|
||||
}, [src, srcSet]);
|
||||
return loaded;
|
||||
}
|
||||
|
||||
var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {
|
||||
var alt = props.alt,
|
||||
childrenProp = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
imgProps = props.imgProps,
|
||||
sizes = props.sizes,
|
||||
src = props.src,
|
||||
srcSet = props.srcSet,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'circular' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["alt", "children", "classes", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"]);
|
||||
var children = null; // Use a hook instead of onError on the img element to support server-side rendering.
|
||||
|
||||
var loaded = useLoaded({
|
||||
src: src,
|
||||
srcSet: srcSet
|
||||
});
|
||||
var hasImg = src || srcSet;
|
||||
var hasImgNotFailing = hasImg && loaded !== 'error';
|
||||
|
||||
if (hasImgNotFailing) {
|
||||
children = /*#__PURE__*/React.createElement("img", (0, _extends2.default)({
|
||||
alt: alt,
|
||||
src: src,
|
||||
srcSet: srcSet,
|
||||
sizes: sizes,
|
||||
className: classes.img
|
||||
}, imgProps));
|
||||
} else if (childrenProp != null) {
|
||||
children = childrenProp;
|
||||
} else if (hasImg && alt) {
|
||||
children = alt[0];
|
||||
} else {
|
||||
children = /*#__PURE__*/React.createElement(_Person.default, {
|
||||
className: classes.fallback
|
||||
});
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, classes.system, classes[variant], className, !hasImgNotFailing && classes.colorDefault),
|
||||
ref: ref
|
||||
}, other), children);
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Avatar.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Used in combination with `src` or `srcSet` to
|
||||
* provide an alt attribute for the rendered `img` element.
|
||||
*/
|
||||
alt: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
||||
* This can be an element, or just a string.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: (0, _utils.chainPropTypes)(_propTypes.default.object, function (props) {
|
||||
var classes = props.classes;
|
||||
|
||||
if (classes == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (classes.circle != null && // 2 classnames? one from withStyles the other must be custom
|
||||
classes.circle.split(' ').length > 1) {
|
||||
throw new Error("Material-UI: The `circle` class is deprecated. Use `circular` instead.");
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* Attributes applied to the `img` element if the component is used to display an image.
|
||||
* It can be used to listen for the loading error event.
|
||||
*/
|
||||
imgProps: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* The `sizes` attribute for the `img` element.
|
||||
*/
|
||||
sizes: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The `src` attribute for the `img` element.
|
||||
*/
|
||||
src: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The `srcSet` attribute for the `img` element.
|
||||
* Use this attribute for responsive image display.
|
||||
*/
|
||||
srcSet: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The shape of the avatar.
|
||||
*/
|
||||
variant: (0, _utils.chainPropTypes)(_propTypes.default.oneOf(['circle', 'circular', 'rounded', 'square']), function (props) {
|
||||
var variant = props.variant;
|
||||
|
||||
if (variant === 'circle') {
|
||||
throw new Error('Material-UI: `variant="circle"` is deprecated. Use `variant="circular"` instead.');
|
||||
}
|
||||
|
||||
return null;
|
||||
})
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAvatar'
|
||||
})(Avatar);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Avatar/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Avatar/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Avatar';
|
||||
export * from './Avatar';
|
15
web/node_modules/@material-ui/core/Avatar/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Avatar/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Avatar.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Avatar = _interopRequireDefault(require("./Avatar"));
|
5
web/node_modules/@material-ui/core/Avatar/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Avatar/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Avatar/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
44
web/node_modules/@material-ui/core/Backdrop/Backdrop.d.ts
generated
vendored
Normal file
44
web/node_modules/@material-ui/core/Backdrop/Backdrop.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
import * as React from 'react';
|
||||
import { Omit, StandardProps } from '..';
|
||||
import { FadeProps } from '../Fade';
|
||||
import { TransitionProps } from '../transitions/transition';
|
||||
|
||||
export interface BackdropProps
|
||||
extends StandardProps<
|
||||
React.HTMLAttributes<HTMLDivElement> & Partial<Omit<FadeProps, 'children'>>,
|
||||
BackdropClassKey
|
||||
> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
*/
|
||||
invisible?: boolean;
|
||||
/**
|
||||
* If `true`, the backdrop is open.
|
||||
*/
|
||||
open: boolean;
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration?: TransitionProps['timeout'];
|
||||
}
|
||||
|
||||
export type BackdropClassKey = 'root' | 'invisible';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Backdrop](https://material-ui.com/components/backdrop/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Backdrop API](https://material-ui.com/api/backdrop/)
|
||||
* - inherits [Fade API](https://material-ui.com/api/fade/)
|
||||
*/
|
||||
export default function Backdrop(props: BackdropProps): JSX.Element;
|
117
web/node_modules/@material-ui/core/Backdrop/Backdrop.js
generated
vendored
Normal file
117
web/node_modules/@material-ui/core/Backdrop/Backdrop.js
generated
vendored
Normal file
|
@ -0,0 +1,117 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Fade = _interopRequireDefault(require("../Fade"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
// Improve scrollable dialog support.
|
||||
zIndex: -1,
|
||||
position: 'fixed',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
top: 0,
|
||||
left: 0,
|
||||
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
||||
WebkitTapHighlightColor: 'transparent'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `invisible={true}`. */
|
||||
invisible: {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$invisible = props.invisible,
|
||||
invisible = _props$invisible === void 0 ? false : _props$invisible,
|
||||
open = props.open,
|
||||
transitionDuration = props.transitionDuration,
|
||||
_props$TransitionComp = props.TransitionComponent,
|
||||
TransitionComponent = _props$TransitionComp === void 0 ? _Fade.default : _props$TransitionComp,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "invisible", "open", "transitionDuration", "TransitionComponent"]);
|
||||
return /*#__PURE__*/React.createElement(TransitionComponent, (0, _extends2.default)({
|
||||
in: open,
|
||||
timeout: transitionDuration
|
||||
}, other), /*#__PURE__*/React.createElement("div", {
|
||||
className: (0, _clsx.default)(classes.root, className, invisible && classes.invisible),
|
||||
"aria-hidden": true,
|
||||
ref: ref
|
||||
}, children));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Backdrop.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
*/
|
||||
invisible: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the backdrop is open.
|
||||
*/
|
||||
open: _propTypes.default.bool.isRequired,
|
||||
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
||||
appear: _propTypes.default.number,
|
||||
enter: _propTypes.default.number,
|
||||
exit: _propTypes.default.number
|
||||
})])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBackdrop'
|
||||
})(Backdrop);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Backdrop/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Backdrop/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Backdrop';
|
||||
export * from './Backdrop';
|
15
web/node_modules/@material-ui/core/Backdrop/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Backdrop/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Backdrop.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Backdrop = _interopRequireDefault(require("./Backdrop"));
|
5
web/node_modules/@material-ui/core/Backdrop/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Backdrop/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Backdrop/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
92
web/node_modules/@material-ui/core/Badge/Badge.d.ts
generated
vendored
Normal file
92
web/node_modules/@material-ui/core/Badge/Badge.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,92 @@
|
|||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface BadgeOrigin {
|
||||
vertical: 'top' | 'bottom';
|
||||
horizontal: 'left' | 'right';
|
||||
}
|
||||
|
||||
export interface BadgeTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The anchor of the badge.
|
||||
*/
|
||||
anchorOrigin?: BadgeOrigin;
|
||||
/**
|
||||
* Wrapped shape the badge should overlap.
|
||||
*/
|
||||
overlap?: 'rectangle' | 'circle' | 'rectangular' | 'circular';
|
||||
/**
|
||||
* The content rendered within the badge.
|
||||
*/
|
||||
badgeContent?: React.ReactNode;
|
||||
/**
|
||||
* The badge will be added relative to this node.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: 'primary' | 'secondary' | 'default' | 'error';
|
||||
/**
|
||||
* If `true`, the badge will be invisible.
|
||||
*/
|
||||
invisible?: boolean;
|
||||
/**
|
||||
* Max count to show.
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
* Controls whether the badge is hidden when `badgeContent` is zero.
|
||||
*/
|
||||
showZero?: boolean;
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'standard' | 'dot';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: BadgeClassKey;
|
||||
}
|
||||
|
||||
export type BadgeClassKey =
|
||||
| 'root'
|
||||
| 'badge'
|
||||
| 'colorPrimary'
|
||||
| 'colorSecondary'
|
||||
| 'colorError'
|
||||
| 'dot'
|
||||
| 'anchorOriginTopRightRectangle'
|
||||
| 'anchorOriginBottomRightRectangle'
|
||||
| 'anchorOriginTopLeftRectangle'
|
||||
| 'anchorOriginBottomLeftRectangle'
|
||||
| 'anchorOriginTopRightCircle'
|
||||
| 'anchorOriginBottomRightCircle'
|
||||
| 'anchorOriginTopLeftCircle'
|
||||
| 'anchorOriginTopRightRectangular'
|
||||
| 'anchorOriginBottomRightRectangular'
|
||||
| 'anchorOriginTopLeftRectangular'
|
||||
| 'anchorOriginBottomLeftRectangular'
|
||||
| 'anchorOriginTopRightCircular'
|
||||
| 'anchorOriginBottomRightCircular'
|
||||
| 'anchorOriginTopLeftCircular'
|
||||
| 'invisible';
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Avatars](https://material-ui.com/components/avatars/)
|
||||
* - [Badges](https://material-ui.com/components/badges/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Badge API](https://material-ui.com/api/badge/)
|
||||
*/
|
||||
declare const Badge: OverridableComponent<BadgeTypeMap>;
|
||||
|
||||
export type BadgeProps<
|
||||
D extends React.ElementType = BadgeTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<BadgeTypeMap<P, D>, D>;
|
||||
|
||||
export default Badge;
|
434
web/node_modules/@material-ui/core/Badge/Badge.js
generated
vendored
Normal file
434
web/node_modules/@material-ui/core/Badge/Badge.js
generated
vendored
Normal file
|
@ -0,0 +1,434 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var RADIUS_STANDARD = 10;
|
||||
var RADIUS_DOT = 4;
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
display: 'inline-flex',
|
||||
// For correct alignment with the text.
|
||||
verticalAlign: 'middle',
|
||||
flexShrink: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the badge `span` element. */
|
||||
badge: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
justifyContent: 'center',
|
||||
alignContent: 'center',
|
||||
alignItems: 'center',
|
||||
position: 'absolute',
|
||||
boxSizing: 'border-box',
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
minWidth: RADIUS_STANDARD * 2,
|
||||
lineHeight: 1,
|
||||
padding: '0 6px',
|
||||
height: RADIUS_STANDARD * 2,
|
||||
borderRadius: RADIUS_STANDARD,
|
||||
zIndex: 1,
|
||||
// Render the badge on top of potential ripples.
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.enteringScreen
|
||||
})
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: theme.palette.primary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="error"`. */
|
||||
colorError: {
|
||||
backgroundColor: theme.palette.error.main,
|
||||
color: theme.palette.error.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="dot"`. */
|
||||
dot: {
|
||||
borderRadius: RADIUS_DOT,
|
||||
height: RADIUS_DOT * 2,
|
||||
minWidth: RADIUS_DOT * 2,
|
||||
padding: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangle"`. */
|
||||
anchorOriginTopRightRectangle: {
|
||||
top: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
|
||||
anchorOriginTopRightRectangular: {
|
||||
top: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangle"`. */
|
||||
anchorOriginBottomRightRectangle: {
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
|
||||
anchorOriginBottomRightRectangular: {
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangle"`. */
|
||||
anchorOriginTopLeftRectangle: {
|
||||
top: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
|
||||
anchorOriginTopLeftRectangular: {
|
||||
top: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangle"`. */
|
||||
anchorOriginBottomLeftRectangle: {
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
|
||||
anchorOriginBottomLeftRectangular: {
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="circle"`. */
|
||||
anchorOriginTopRightCircle: {
|
||||
top: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
|
||||
anchorOriginTopRightCircular: {
|
||||
top: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circle"`. */
|
||||
anchorOriginBottomRightCircle: {
|
||||
bottom: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
|
||||
anchorOriginBottomRightCircular: {
|
||||
bottom: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="circle"`. */
|
||||
anchorOriginTopLeftCircle: {
|
||||
top: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
|
||||
anchorOriginTopLeftCircular: {
|
||||
top: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circle"`. */
|
||||
anchorOriginBottomLeftCircle: {
|
||||
bottom: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
|
||||
anchorOriginBottomLeftCircular: {
|
||||
bottom: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class to the badge `span` element if `invisible={true}`. */
|
||||
invisible: {
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.leavingScreen
|
||||
})
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
|
||||
var _props$anchorOrigin = props.anchorOrigin,
|
||||
anchorOrigin = _props$anchorOrigin === void 0 ? {
|
||||
vertical: 'top',
|
||||
horizontal: 'right'
|
||||
} : _props$anchorOrigin,
|
||||
badgeContent = props.badgeContent,
|
||||
children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'default' : _props$color,
|
||||
_props$component = props.component,
|
||||
ComponentProp = _props$component === void 0 ? 'span' : _props$component,
|
||||
invisibleProp = props.invisible,
|
||||
_props$max = props.max,
|
||||
max = _props$max === void 0 ? 99 : _props$max,
|
||||
_props$overlap = props.overlap,
|
||||
overlap = _props$overlap === void 0 ? 'rectangle' : _props$overlap,
|
||||
_props$showZero = props.showZero,
|
||||
showZero = _props$showZero === void 0 ? false : _props$showZero,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'standard' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["anchorOrigin", "badgeContent", "children", "classes", "className", "color", "component", "invisible", "max", "overlap", "showZero", "variant"]);
|
||||
var invisible = invisibleProp;
|
||||
|
||||
if (invisibleProp == null && (badgeContent === 0 && !showZero || badgeContent == null && variant !== 'dot')) {
|
||||
invisible = true;
|
||||
}
|
||||
|
||||
var displayValue = '';
|
||||
|
||||
if (variant !== 'dot') {
|
||||
displayValue = badgeContent > max ? "".concat(max, "+") : badgeContent;
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(ComponentProp, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other), children, /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _clsx.default)(classes.badge, classes["".concat(anchorOrigin.horizontal).concat((0, _capitalize.default)(anchorOrigin.vertical), "}")], classes["anchorOrigin".concat((0, _capitalize.default)(anchorOrigin.vertical)).concat((0, _capitalize.default)(anchorOrigin.horizontal)).concat((0, _capitalize.default)(overlap))], color !== 'default' && classes["color".concat((0, _capitalize.default)(color))], invisible && classes.invisible, variant === 'dot' && classes.dot)
|
||||
}, displayValue));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Badge.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The anchor of the badge.
|
||||
*/
|
||||
anchorOrigin: _propTypes.default.shape({
|
||||
horizontal: _propTypes.default.oneOf(['left', 'right']).isRequired,
|
||||
vertical: _propTypes.default.oneOf(['bottom', 'top']).isRequired
|
||||
}),
|
||||
|
||||
/**
|
||||
* The content rendered within the badge.
|
||||
*/
|
||||
badgeContent: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* The badge will be added relative to this node.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: (0, _utils.chainPropTypes)(_propTypes.default.object, function (props) {
|
||||
var classes = props.classes;
|
||||
|
||||
if (classes == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
[['anchorOriginTopRightRectangle', 'anchorOriginTopRightRectangular'], ['anchorOriginBottomRightRectangle', 'anchorOriginBottomRightRectangular'], ['anchorOriginTopLeftRectangle', 'anchorOriginTopLeftRectangular'], ['anchorOriginBottomLeftRectangle', 'anchorOriginBottomLeftRectangular'], ['anchorOriginTopRightCircle', 'anchorOriginTopRightCircular'], ['anchorOriginBottomRightCircle', 'anchorOriginBottomRightCircular'], ['anchorOriginTopLeftCircle', 'anchorOriginTopLeftCircular']].forEach(function (_ref) {
|
||||
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
||||
deprecatedClassKey = _ref2[0],
|
||||
newClassKey = _ref2[1];
|
||||
|
||||
if (classes[deprecatedClassKey] != null && // 2 classnames? one from withStyles the other must be custom
|
||||
classes[deprecatedClassKey].split(' ').length > 1) {
|
||||
throw new Error("Material-UI: The `".concat(deprecatedClassKey, "` class was deprecated. Use `").concat(newClassKey, "` instead."));
|
||||
}
|
||||
});
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'error', 'primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* If `true`, the badge will be invisible.
|
||||
*/
|
||||
invisible: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Max count to show.
|
||||
*/
|
||||
max: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Wrapped shape the badge should overlap.
|
||||
*/
|
||||
overlap: (0, _utils.chainPropTypes)(_propTypes.default.oneOf(['circle', 'rectangle', 'circular', 'rectangular']), function (props) {
|
||||
var overlap = props.overlap;
|
||||
|
||||
if (overlap === 'rectangle') {
|
||||
throw new Error('Material-UI: `overlap="rectangle"` was deprecated. Use `overlap="rectangular"` instead.');
|
||||
}
|
||||
|
||||
if (overlap === 'circle') {
|
||||
throw new Error('Material-UI: `overlap="circle"` was deprecated. Use `overlap="circular"` instead.');
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* Controls whether the badge is hidden when `badgeContent` is zero.
|
||||
*/
|
||||
showZero: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['dot', 'standard'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBadge'
|
||||
})(Badge);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Badge/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Badge/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Badge';
|
||||
export * from './Badge';
|
15
web/node_modules/@material-ui/core/Badge/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Badge/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Badge.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Badge = _interopRequireDefault(require("./Badge"));
|
5
web/node_modules/@material-ui/core/Badge/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Badge/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Badge/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
49
web/node_modules/@material-ui/core/BottomNavigation/BottomNavigation.d.ts
generated
vendored
Normal file
49
web/node_modules/@material-ui/core/BottomNavigation/BottomNavigation.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface BottomNavigationTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Callback fired when the value changes.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {any} value We default to the index of the child.
|
||||
*/
|
||||
onChange?: (event: React.ChangeEvent<{}>, value: any) => void;
|
||||
/**
|
||||
* If `true`, all `BottomNavigationAction`s will show their labels.
|
||||
* By default, only the selected `BottomNavigationAction` will show its label.
|
||||
*/
|
||||
showLabels?: boolean;
|
||||
/**
|
||||
* The value of the currently selected `BottomNavigationAction`.
|
||||
*/
|
||||
value?: any;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: BottomNavigationClassKey;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Bottom Navigation](https://material-ui.com/components/bottom-navigation/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [BottomNavigation API](https://material-ui.com/api/bottom-navigation/)
|
||||
*/
|
||||
declare const BottomNavigation: OverridableComponent<BottomNavigationTypeMap>;
|
||||
|
||||
export type BottomNavigationClassKey = 'root';
|
||||
|
||||
export type BottomNavigationProps<
|
||||
D extends React.ElementType = BottomNavigationTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<BottomNavigationTypeMap<P, D>, D>;
|
||||
|
||||
export default BottomNavigation;
|
127
web/node_modules/@material-ui/core/BottomNavigation/BottomNavigation.js
generated
vendored
Executable file
127
web/node_modules/@material-ui/core/BottomNavigation/BottomNavigation.js
generated
vendored
Executable file
|
@ -0,0 +1,127 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _reactIs = require("react-is");
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
height: 56,
|
||||
backgroundColor: theme.palette.background.paper
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
onChange = props.onChange,
|
||||
_props$showLabels = props.showLabels,
|
||||
showLabels = _props$showLabels === void 0 ? false : _props$showLabels,
|
||||
value = props.value,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "component", "onChange", "showLabels", "value"]);
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other), React.Children.map(children, function (child, childIndex) {
|
||||
if (! /*#__PURE__*/React.isValidElement(child)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if ((0, _reactIs.isFragment)(child)) {
|
||||
console.error(["Material-UI: The BottomNavigation component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
|
||||
var childValue = child.props.value === undefined ? childIndex : child.props.value;
|
||||
return /*#__PURE__*/React.cloneElement(child, {
|
||||
selected: childValue === value,
|
||||
showLabel: child.props.showLabel !== undefined ? child.props.showLabel : showLabels,
|
||||
value: childValue,
|
||||
onChange: onChange
|
||||
});
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* Callback fired when the value changes.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {any} value We default to the index of the child.
|
||||
*/
|
||||
onChange: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* If `true`, all `BottomNavigationAction`s will show their labels.
|
||||
* By default, only the selected `BottomNavigationAction` will show its label.
|
||||
*/
|
||||
showLabels: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The value of the currently selected `BottomNavigationAction`.
|
||||
*/
|
||||
value: _propTypes.default.any
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBottomNavigation'
|
||||
})(BottomNavigation);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/BottomNavigation/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/BottomNavigation/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './BottomNavigation';
|
||||
export * from './BottomNavigation';
|
15
web/node_modules/@material-ui/core/BottomNavigation/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/BottomNavigation/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _BottomNavigation.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _BottomNavigation = _interopRequireDefault(require("./BottomNavigation"));
|
5
web/node_modules/@material-ui/core/BottomNavigation/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/BottomNavigation/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/BottomNavigation/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
64
web/node_modules/@material-ui/core/BottomNavigationAction/BottomNavigationAction.d.ts
generated
vendored
Normal file
64
web/node_modules/@material-ui/core/BottomNavigationAction/BottomNavigationAction.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
import * as React from 'react';
|
||||
import { ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type BottomNavigationActionTypeMap<
|
||||
P,
|
||||
D extends React.ElementType
|
||||
> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The icon element.
|
||||
*/
|
||||
icon?: React.ReactNode;
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label?: React.ReactNode;
|
||||
onChange?: (event: React.ChangeEvent<{}>, value: any) => void;
|
||||
onClick?: React.ReactEventHandler<any>;
|
||||
selected?: boolean;
|
||||
/**
|
||||
* If `true`, the `BottomNavigationAction` will show its label.
|
||||
* By default, only the selected `BottomNavigationAction`
|
||||
* inside `BottomNavigation` will show its label.
|
||||
*/
|
||||
showLabel?: boolean;
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value?: any;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: BottomNavigationActionClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Bottom Navigation](https://material-ui.com/components/bottom-navigation/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [BottomNavigationAction API](https://material-ui.com/api/bottom-navigation-action/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const BottomNavigationAction: ExtendButtonBase<BottomNavigationActionTypeMap<
|
||||
{},
|
||||
ButtonBaseTypeMap['defaultComponent']
|
||||
>>;
|
||||
|
||||
export type BottomNavigationActionClassKey = 'root' | 'selected' | 'iconOnly' | 'wrapper' | 'label';
|
||||
|
||||
export type BottomNavigationActionProps<
|
||||
D extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<BottomNavigationActionTypeMap<P, D>, D>;
|
||||
|
||||
export default BottomNavigationAction;
|
181
web/node_modules/@material-ui/core/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
181
web/node_modules/@material-ui/core/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
|
@ -0,0 +1,181 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
transition: theme.transitions.create(['color', 'padding-top'], {
|
||||
duration: theme.transitions.duration.short
|
||||
}),
|
||||
padding: '6px 12px 8px',
|
||||
minWidth: 80,
|
||||
maxWidth: 168,
|
||||
color: theme.palette.text.secondary,
|
||||
flex: '1',
|
||||
'&$iconOnly': {
|
||||
paddingTop: 16
|
||||
},
|
||||
'&$selected': {
|
||||
paddingTop: 6,
|
||||
color: theme.palette.primary.main
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element if selected. */
|
||||
selected: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `showLabel={false}` and not selected. */
|
||||
iconOnly: {},
|
||||
|
||||
/* Styles applied to the span element that wraps the icon and label. */
|
||||
wrapper: {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
width: '100%',
|
||||
flexDirection: 'column'
|
||||
},
|
||||
|
||||
/* Styles applied to the label's span element. */
|
||||
label: {
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
opacity: 1,
|
||||
transition: 'font-size 0.2s, opacity 0.2s',
|
||||
transitionDelay: '0.1s',
|
||||
'&$iconOnly': {
|
||||
opacity: 0,
|
||||
transitionDelay: '0s'
|
||||
},
|
||||
'&$selected': {
|
||||
fontSize: theme.typography.pxToRem(14)
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
icon = props.icon,
|
||||
label = props.label,
|
||||
onChange = props.onChange,
|
||||
onClick = props.onClick,
|
||||
selected = props.selected,
|
||||
showLabel = props.showLabel,
|
||||
value = props.value,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"]);
|
||||
|
||||
var handleChange = function handleChange(event) {
|
||||
if (onChange) {
|
||||
onChange(event, value);
|
||||
}
|
||||
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
ref: ref,
|
||||
className: (0, _clsx.default)(classes.root, className, selected ? classes.selected : !showLabel && classes.iconOnly),
|
||||
focusRipple: true,
|
||||
onClick: handleChange
|
||||
}, other), /*#__PURE__*/React.createElement("span", {
|
||||
className: classes.wrapper
|
||||
}, icon, /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _clsx.default)(classes.label, selected ? classes.selected : !showLabel && classes.iconOnly)
|
||||
}, label)));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children: _unsupportedProp.default,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The icon element.
|
||||
*/
|
||||
icon: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onChange: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
selected: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the `BottomNavigationAction` will show its label.
|
||||
* By default, only the selected `BottomNavigationAction`
|
||||
* inside `BottomNavigation` will show its label.
|
||||
*/
|
||||
showLabel: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value: _propTypes.default.any
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBottomNavigationAction'
|
||||
})(BottomNavigationAction);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/BottomNavigationAction/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/BottomNavigationAction/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './BottomNavigationAction';
|
||||
export * from './BottomNavigationAction';
|
15
web/node_modules/@material-ui/core/BottomNavigationAction/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/BottomNavigationAction/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _BottomNavigationAction.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _BottomNavigationAction = _interopRequireDefault(require("./BottomNavigationAction"));
|
5
web/node_modules/@material-ui/core/BottomNavigationAction/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/BottomNavigationAction/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/BottomNavigationAction/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
51
web/node_modules/@material-ui/core/Box/Box.d.ts
generated
vendored
Normal file
51
web/node_modules/@material-ui/core/Box/Box.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
import * as React from 'react';
|
||||
import {
|
||||
borders,
|
||||
ComposedStyleFunction,
|
||||
display,
|
||||
flexbox,
|
||||
grid,
|
||||
palette,
|
||||
positions,
|
||||
shadows,
|
||||
sizing,
|
||||
spacing,
|
||||
typography,
|
||||
PropsFor,
|
||||
} from '@material-ui/system';
|
||||
import { Omit } from '..';
|
||||
|
||||
type BoxStyleFunction = ComposedStyleFunction<
|
||||
[
|
||||
typeof borders,
|
||||
typeof display,
|
||||
typeof flexbox,
|
||||
typeof grid,
|
||||
typeof palette,
|
||||
typeof positions,
|
||||
typeof shadows,
|
||||
typeof sizing,
|
||||
typeof spacing,
|
||||
typeof typography
|
||||
]
|
||||
>;
|
||||
|
||||
type SystemProps = PropsFor<BoxStyleFunction>;
|
||||
type ElementProps = Omit<React.HTMLAttributes<HTMLElement>, keyof SystemProps>;
|
||||
|
||||
export interface BoxProps extends ElementProps, SystemProps {
|
||||
// styled API
|
||||
component?: React.ElementType;
|
||||
clone?: boolean;
|
||||
/**
|
||||
* @deprecated
|
||||
* Use the `sx` prop instead
|
||||
*/
|
||||
css?: SystemProps;
|
||||
// workaround for https://github.com/mui-org/material-ui/pull/15611
|
||||
sx?: SystemProps;
|
||||
}
|
||||
|
||||
declare const Box: React.ComponentType<BoxProps>;
|
||||
|
||||
export default Box;
|
24
web/node_modules/@material-ui/core/Box/Box.js
generated
vendored
Normal file
24
web/node_modules/@material-ui/core/Box/Box.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styleFunction = void 0;
|
||||
|
||||
var _system = require("@material-ui/system");
|
||||
|
||||
var _styled = _interopRequireDefault(require("../styles/styled"));
|
||||
|
||||
var styleFunction = (0, _system.styleFunctionSx)((0, _system.compose)(_system.borders, _system.display, _system.flexbox, _system.grid, _system.positions, _system.palette, _system.shadows, _system.sizing, _system.spacing, _system.typography));
|
||||
/**
|
||||
* @ignore - do not document.
|
||||
*/
|
||||
|
||||
exports.styleFunction = styleFunction;
|
||||
var Box = (0, _styled.default)('div')(styleFunction, {
|
||||
name: 'MuiBox'
|
||||
});
|
||||
var _default = Box;
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Box/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Box/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Box';
|
||||
export * from './Box';
|
21
web/node_modules/@material-ui/core/Box/index.js
generated
vendored
Normal file
21
web/node_modules/@material-ui/core/Box/index.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Box.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "styleFunction", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Box.styleFunction;
|
||||
}
|
||||
});
|
||||
|
||||
var _Box = _interopRequireWildcard(require("./Box"));
|
5
web/node_modules/@material-ui/core/Box/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Box/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Box/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
80
web/node_modules/@material-ui/core/Breadcrumbs/BreadcrumbCollapsed.js
generated
vendored
Normal file
80
web/node_modules/@material-ui/core/Breadcrumbs/BreadcrumbCollapsed.js
generated
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _colorManipulator = require("../styles/colorManipulator");
|
||||
|
||||
var _MoreHoriz = _interopRequireDefault(require("../internal/svg-icons/MoreHoriz"));
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
root: {
|
||||
display: 'flex',
|
||||
marginLeft: theme.spacing(0.5),
|
||||
marginRight: theme.spacing(0.5),
|
||||
backgroundColor: theme.palette.grey[100],
|
||||
color: theme.palette.grey[700],
|
||||
borderRadius: 2,
|
||||
cursor: 'pointer',
|
||||
'&:hover, &:focus': {
|
||||
backgroundColor: theme.palette.grey[200]
|
||||
},
|
||||
'&:active': {
|
||||
boxShadow: theme.shadows[0],
|
||||
backgroundColor: (0, _colorManipulator.emphasize)(theme.palette.grey[200], 0.12)
|
||||
}
|
||||
},
|
||||
icon: {
|
||||
width: 24,
|
||||
height: 16
|
||||
}
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
|
||||
function BreadcrumbCollapsed(props) {
|
||||
var classes = props.classes,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes"]);
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
component: "li",
|
||||
className: classes.root,
|
||||
focusRipple: true
|
||||
}, other), /*#__PURE__*/React.createElement(_MoreHoriz.default, {
|
||||
className: classes.icon
|
||||
}));
|
||||
}
|
||||
|
||||
process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
classes: _propTypes.default.object.isRequired
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'PrivateBreadcrumbCollapsed'
|
||||
})(BreadcrumbCollapsed);
|
||||
|
||||
exports.default = _default;
|
58
web/node_modules/@material-ui/core/Breadcrumbs/Breadcrumbs.d.ts
generated
vendored
Normal file
58
web/node_modules/@material-ui/core/Breadcrumbs/Breadcrumbs.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The breadcrumb children.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override the default label for the expand button.
|
||||
*
|
||||
* For localization purposes, you can use the provided [translations](/guides/localization/).
|
||||
*/
|
||||
expandText?: string;
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show after the ellipsis.
|
||||
*/
|
||||
itemsAfterCollapse?: number;
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show before the ellipsis.
|
||||
*/
|
||||
itemsBeforeCollapse?: number;
|
||||
/**
|
||||
* Specifies the maximum number of breadcrumbs to display. When there are more
|
||||
* than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`
|
||||
* will be shown, with an ellipsis in between.
|
||||
*/
|
||||
maxItems?: number;
|
||||
/**
|
||||
* Custom separator node.
|
||||
*/
|
||||
separator?: React.ReactNode;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: BreadcrumbsClassKey;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Breadcrumbs](https://material-ui.com/components/breadcrumbs/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Breadcrumbs API](https://material-ui.com/api/breadcrumbs/)
|
||||
*/
|
||||
declare const Breadcrumbs: OverridableComponent<BreadcrumbsTypeMap>;
|
||||
|
||||
export type BreadcrumbsClassKey = 'root' | 'ol' | 'li' | 'separator';
|
||||
|
||||
export type BreadcrumbsProps<
|
||||
D extends React.ElementType = BreadcrumbsTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<BreadcrumbsTypeMap<P, D>, D>;
|
||||
|
||||
export default Breadcrumbs;
|
213
web/node_modules/@material-ui/core/Breadcrumbs/Breadcrumbs.js
generated
vendored
Normal file
213
web/node_modules/@material-ui/core/Breadcrumbs/Breadcrumbs.js
generated
vendored
Normal file
|
@ -0,0 +1,213 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _reactIs = require("react-is");
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Typography = _interopRequireDefault(require("../Typography"));
|
||||
|
||||
var _BreadcrumbCollapsed = _interopRequireDefault(require("./BreadcrumbCollapsed"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {},
|
||||
|
||||
/* Styles applied to the ol element. */
|
||||
ol: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
alignItems: 'center',
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
listStyle: 'none'
|
||||
},
|
||||
|
||||
/* Styles applied to the li element. */
|
||||
li: {},
|
||||
|
||||
/* Styles applied to the separator element. */
|
||||
separator: {
|
||||
display: 'flex',
|
||||
userSelect: 'none',
|
||||
marginLeft: 8,
|
||||
marginRight: 8
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
|
||||
function insertSeparators(items, className, separator) {
|
||||
return items.reduce(function (acc, current, index) {
|
||||
if (index < items.length - 1) {
|
||||
acc = acc.concat(current, /*#__PURE__*/React.createElement("li", {
|
||||
"aria-hidden": true,
|
||||
key: "separator-".concat(index),
|
||||
className: className
|
||||
}, separator));
|
||||
} else {
|
||||
acc.push(current);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
|
||||
var Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'nav' : _props$component,
|
||||
_props$expandText = props.expandText,
|
||||
expandText = _props$expandText === void 0 ? 'Show path' : _props$expandText,
|
||||
_props$itemsAfterColl = props.itemsAfterCollapse,
|
||||
itemsAfterCollapse = _props$itemsAfterColl === void 0 ? 1 : _props$itemsAfterColl,
|
||||
_props$itemsBeforeCol = props.itemsBeforeCollapse,
|
||||
itemsBeforeCollapse = _props$itemsBeforeCol === void 0 ? 1 : _props$itemsBeforeCol,
|
||||
_props$maxItems = props.maxItems,
|
||||
maxItems = _props$maxItems === void 0 ? 8 : _props$maxItems,
|
||||
_props$separator = props.separator,
|
||||
separator = _props$separator === void 0 ? '/' : _props$separator,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "component", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"]);
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
expanded = _React$useState[0],
|
||||
setExpanded = _React$useState[1];
|
||||
|
||||
var renderItemsBeforeAndAfter = function renderItemsBeforeAndAfter(allItems) {
|
||||
var handleClickExpand = function handleClickExpand(event) {
|
||||
setExpanded(true); // The clicked element received the focus but gets removed from the DOM.
|
||||
// Let's keep the focus in the component after expanding.
|
||||
|
||||
var focusable = event.currentTarget.parentNode.querySelector('a[href],button,[tabindex]');
|
||||
|
||||
if (focusable) {
|
||||
focusable.focus();
|
||||
}
|
||||
}; // This defends against someone passing weird input, to ensure that if all
|
||||
// items would be shown anyway, we just show all items without the EllipsisItem
|
||||
|
||||
|
||||
if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
console.error(['Material-UI: You have provided an invalid combination of props to the Breadcrumbs.', "itemsAfterCollapse={".concat(itemsAfterCollapse, "} + itemsBeforeCollapse={").concat(itemsBeforeCollapse, "} >= maxItems={").concat(maxItems, "}")].join('\n'));
|
||||
}
|
||||
|
||||
return allItems;
|
||||
}
|
||||
|
||||
return [].concat((0, _toConsumableArray2.default)(allItems.slice(0, itemsBeforeCollapse)), [/*#__PURE__*/React.createElement(_BreadcrumbCollapsed.default, {
|
||||
"aria-label": expandText,
|
||||
key: "ellipsis",
|
||||
onClick: handleClickExpand
|
||||
})], (0, _toConsumableArray2.default)(allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)));
|
||||
};
|
||||
|
||||
var allItems = React.Children.toArray(children).filter(function (child) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if ((0, _reactIs.isFragment)(child)) {
|
||||
console.error(["Material-UI: The Breadcrumbs component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.isValidElement(child);
|
||||
}).map(function (child, index) {
|
||||
return /*#__PURE__*/React.createElement("li", {
|
||||
className: classes.li,
|
||||
key: "child-".concat(index)
|
||||
}, child);
|
||||
});
|
||||
return /*#__PURE__*/React.createElement(_Typography.default, (0, _extends2.default)({
|
||||
ref: ref,
|
||||
component: Component,
|
||||
color: "textSecondary",
|
||||
className: (0, _clsx.default)(classes.root, className)
|
||||
}, other), /*#__PURE__*/React.createElement("ol", {
|
||||
className: classes.ol
|
||||
}, insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), classes.separator, separator)));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The breadcrumb children.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* Override the default label for the expand button.
|
||||
*
|
||||
* For localization purposes, you can use the provided [translations](/guides/localization/).
|
||||
*/
|
||||
expandText: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show after the ellipsis.
|
||||
*/
|
||||
itemsAfterCollapse: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show before the ellipsis.
|
||||
*/
|
||||
itemsBeforeCollapse: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Specifies the maximum number of breadcrumbs to display. When there are more
|
||||
* than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`
|
||||
* will be shown, with an ellipsis in between.
|
||||
*/
|
||||
maxItems: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Custom separator node.
|
||||
*/
|
||||
separator: _propTypes.default.node
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBreadcrumbs'
|
||||
})(Breadcrumbs);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Breadcrumbs/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Breadcrumbs/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Breadcrumbs';
|
||||
export * from './Breadcrumbs';
|
15
web/node_modules/@material-ui/core/Breadcrumbs/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Breadcrumbs/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Breadcrumbs.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Breadcrumbs = _interopRequireDefault(require("./Breadcrumbs"));
|
5
web/node_modules/@material-ui/core/Breadcrumbs/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Breadcrumbs/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Breadcrumbs/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
111
web/node_modules/@material-ui/core/Button/Button.d.ts
generated
vendored
Normal file
111
web/node_modules/@material-ui/core/Button/Button.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,111 @@
|
|||
import { PropTypes } from '..';
|
||||
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type ButtonTypeMap<
|
||||
P = {},
|
||||
D extends React.ElementType = 'button'
|
||||
> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the button.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: PropTypes.Color;
|
||||
/**
|
||||
* If `true`, the button will be disabled.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
*/
|
||||
disableElevation?: boolean;
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple will be disabled.
|
||||
*/
|
||||
disableFocusRipple?: boolean;
|
||||
/**
|
||||
* Element placed after the children.
|
||||
*/
|
||||
endIcon?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the button will take up the full width of its container.
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
/**
|
||||
* The URL to link to when the button is clicked.
|
||||
* If defined, an `a` element will be used as the root node.
|
||||
*/
|
||||
href?: string;
|
||||
/**
|
||||
* The size of the button.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
*/
|
||||
size?: 'small' | 'medium' | 'large';
|
||||
/**
|
||||
* Element placed before the children.
|
||||
*/
|
||||
startIcon?: React.ReactNode;
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'text' | 'outlined' | 'contained';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: ButtonClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Button Group](https://material-ui.com/components/button-group/)
|
||||
* - [Buttons](https://material-ui.com/components/buttons/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Button API](https://material-ui.com/api/button/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const Button: ExtendButtonBase<ButtonTypeMap>;
|
||||
|
||||
export type ButtonProps<
|
||||
D extends React.ElementType = ButtonTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<ButtonTypeMap<P, D>, D>;
|
||||
|
||||
export type ButtonClassKey =
|
||||
| 'root'
|
||||
| 'label'
|
||||
| 'text'
|
||||
| 'textPrimary'
|
||||
| 'textSecondary'
|
||||
| 'outlined'
|
||||
| 'outlinedPrimary'
|
||||
| 'outlinedSecondary'
|
||||
| 'contained'
|
||||
| 'containedPrimary'
|
||||
| 'containedSecondary'
|
||||
| 'disableElevation'
|
||||
| 'focusVisible'
|
||||
| 'disabled'
|
||||
| 'colorInherit'
|
||||
| 'textSizeSmall'
|
||||
| 'textSizeLarge'
|
||||
| 'outlinedSizeSmall'
|
||||
| 'outlinedSizeLarge'
|
||||
| 'containedSizeSmall'
|
||||
| 'containedSizeLarge'
|
||||
| 'sizeSmall'
|
||||
| 'sizeLarge'
|
||||
| 'fullWidth'
|
||||
| 'startIcon'
|
||||
| 'endIcon'
|
||||
| 'iconSizeSmall'
|
||||
| 'iconSizeMedium'
|
||||
| 'iconSizeLarge';
|
||||
|
||||
export default Button;
|
461
web/node_modules/@material-ui/core/Button/Button.js
generated
vendored
Normal file
461
web/node_modules/@material-ui/core/Button/Button.js
generated
vendored
Normal file
|
@ -0,0 +1,461 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _colorManipulator = require("../styles/colorManipulator");
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: (0, _extends2.default)({}, theme.typography.button, {
|
||||
boxSizing: 'border-box',
|
||||
minWidth: 64,
|
||||
padding: '6px 16px',
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
color: theme.palette.text.primary,
|
||||
transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], {
|
||||
duration: theme.transitions.duration.short
|
||||
}),
|
||||
'&:hover': {
|
||||
textDecoration: 'none',
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
},
|
||||
'&$disabled': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
},
|
||||
'&$disabled': {
|
||||
color: theme.palette.action.disabled
|
||||
}
|
||||
}),
|
||||
|
||||
/* Styles applied to the span element that wraps the children. */
|
||||
label: {
|
||||
width: '100%',
|
||||
// Ensure the correct width for iOS Safari
|
||||
display: 'inherit',
|
||||
alignItems: 'inherit',
|
||||
justifyContent: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="text"`. */
|
||||
text: {
|
||||
padding: '6px 8px'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
||||
textPrimary: {
|
||||
color: theme.palette.primary.main,
|
||||
'&:hover': {
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
||||
textSecondary: {
|
||||
color: theme.palette.secondary.main,
|
||||
'&:hover': {
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="outlined"`. */
|
||||
outlined: {
|
||||
padding: '5px 15px',
|
||||
border: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'),
|
||||
'&$disabled': {
|
||||
border: "1px solid ".concat(theme.palette.action.disabledBackground)
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
||||
outlinedPrimary: {
|
||||
color: theme.palette.primary.main,
|
||||
border: "1px solid ".concat((0, _colorManipulator.alpha)(theme.palette.primary.main, 0.5)),
|
||||
'&:hover': {
|
||||
border: "1px solid ".concat(theme.palette.primary.main),
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
||||
outlinedSecondary: {
|
||||
color: theme.palette.secondary.main,
|
||||
border: "1px solid ".concat((0, _colorManipulator.alpha)(theme.palette.secondary.main, 0.5)),
|
||||
'&:hover': {
|
||||
border: "1px solid ".concat(theme.palette.secondary.main),
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
},
|
||||
'&$disabled': {
|
||||
border: "1px solid ".concat(theme.palette.action.disabled)
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="contained"`. */
|
||||
contained: {
|
||||
color: theme.palette.getContrastText(theme.palette.grey[300]),
|
||||
backgroundColor: theme.palette.grey[300],
|
||||
boxShadow: theme.shadows[2],
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.grey.A100,
|
||||
boxShadow: theme.shadows[4],
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
boxShadow: theme.shadows[2],
|
||||
backgroundColor: theme.palette.grey[300]
|
||||
},
|
||||
'&$disabled': {
|
||||
backgroundColor: theme.palette.action.disabledBackground
|
||||
}
|
||||
},
|
||||
'&$focusVisible': {
|
||||
boxShadow: theme.shadows[6]
|
||||
},
|
||||
'&:active': {
|
||||
boxShadow: theme.shadows[8]
|
||||
},
|
||||
'&$disabled': {
|
||||
color: theme.palette.action.disabled,
|
||||
boxShadow: theme.shadows[0],
|
||||
backgroundColor: theme.palette.action.disabledBackground
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="contained"` and `color="primary"`. */
|
||||
containedPrimary: {
|
||||
color: theme.palette.primary.contrastText,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.primary.dark,
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: theme.palette.primary.main
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
|
||||
containedSecondary: {
|
||||
color: theme.palette.secondary.contrastText,
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.secondary.dark,
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: theme.palette.secondary.main
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `disableElevation={true}`. */
|
||||
disableElevation: {
|
||||
boxShadow: 'none',
|
||||
'&:hover': {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
'&$focusVisible': {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
'&:active': {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
'&$disabled': {
|
||||
boxShadow: 'none'
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */
|
||||
focusVisible: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Styles applied to the root element if `color="inherit"`. */
|
||||
colorInherit: {
|
||||
color: 'inherit',
|
||||
borderColor: 'currentColor'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="small"` and `variant="text"`. */
|
||||
textSizeSmall: {
|
||||
padding: '4px 5px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="large"` and `variant="text"`. */
|
||||
textSizeLarge: {
|
||||
padding: '8px 11px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="small"` and `variant="outlined"`. */
|
||||
outlinedSizeSmall: {
|
||||
padding: '3px 9px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="large"` and `variant="outlined"`. */
|
||||
outlinedSizeLarge: {
|
||||
padding: '7px 21px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="small"` and `variant="contained"`. */
|
||||
containedSizeSmall: {
|
||||
padding: '4px 10px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="large"` and `variant="contained"`. */
|
||||
containedSizeLarge: {
|
||||
padding: '8px 22px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `size="small"`. */
|
||||
sizeSmall: {},
|
||||
|
||||
/* Styles applied to the root element if `size="large"`. */
|
||||
sizeLarge: {},
|
||||
|
||||
/* Styles applied to the root element if `fullWidth={true}`. */
|
||||
fullWidth: {
|
||||
width: '100%'
|
||||
},
|
||||
|
||||
/* Styles applied to the startIcon element if supplied. */
|
||||
startIcon: {
|
||||
display: 'inherit',
|
||||
marginRight: 8,
|
||||
marginLeft: -4,
|
||||
'&$iconSizeSmall': {
|
||||
marginLeft: -2
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the endIcon element if supplied. */
|
||||
endIcon: {
|
||||
display: 'inherit',
|
||||
marginRight: -4,
|
||||
marginLeft: 8,
|
||||
'&$iconSizeSmall': {
|
||||
marginRight: -2
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the icon element if supplied and `size="small"`. */
|
||||
iconSizeSmall: {
|
||||
'& > *:first-child': {
|
||||
fontSize: 18
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the icon element if supplied and `size="medium"`. */
|
||||
iconSizeMedium: {
|
||||
'& > *:first-child': {
|
||||
fontSize: 20
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the icon element if supplied and `size="large"`. */
|
||||
iconSizeLarge: {
|
||||
'& > *:first-child': {
|
||||
fontSize: 22
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'default' : _props$color,
|
||||
_props$component = props.component,
|
||||
component = _props$component === void 0 ? 'button' : _props$component,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
_props$disableElevati = props.disableElevation,
|
||||
disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,
|
||||
_props$disableFocusRi = props.disableFocusRipple,
|
||||
disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
|
||||
endIconProp = props.endIcon,
|
||||
focusVisibleClassName = props.focusVisibleClassName,
|
||||
_props$fullWidth = props.fullWidth,
|
||||
fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
|
||||
_props$size = props.size,
|
||||
size = _props$size === void 0 ? 'medium' : _props$size,
|
||||
startIconProp = props.startIcon,
|
||||
_props$type = props.type,
|
||||
type = _props$type === void 0 ? 'button' : _props$type,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'text' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]);
|
||||
var startIcon = startIconProp && /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _clsx.default)(classes.startIcon, classes["iconSize".concat((0, _capitalize.default)(size))])
|
||||
}, startIconProp);
|
||||
var endIcon = endIconProp && /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _clsx.default)(classes.endIcon, classes["iconSize".concat((0, _capitalize.default)(size))])
|
||||
}, endIconProp);
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes["".concat(variant).concat((0, _capitalize.default)(color))], size !== 'medium' && [classes["".concat(variant, "Size").concat((0, _capitalize.default)(size))], classes["size".concat((0, _capitalize.default)(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth),
|
||||
component: component,
|
||||
disabled: disabled,
|
||||
focusRipple: !disableFocusRipple,
|
||||
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
||||
ref: ref,
|
||||
type: type
|
||||
}, other), /*#__PURE__*/React.createElement("span", {
|
||||
className: classes.label
|
||||
}, startIcon, children, endIcon));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Button.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the button.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* If `true`, the button will be disabled.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
*/
|
||||
disableElevation: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple will be disabled.
|
||||
*/
|
||||
disableFocusRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the ripple effect will be disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `focusVisibleClassName`.
|
||||
*/
|
||||
disableRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Element placed after the children.
|
||||
*/
|
||||
endIcon: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the button will take up the full width of its container.
|
||||
*/
|
||||
fullWidth: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The URL to link to when the button is clicked.
|
||||
* If defined, an `a` element will be used as the root node.
|
||||
*/
|
||||
href: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The size of the button.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
*/
|
||||
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
||||
|
||||
/**
|
||||
* Element placed before the children.
|
||||
*/
|
||||
startIcon: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(['button', 'reset', 'submit']), _propTypes.default.string]),
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiButton'
|
||||
})(Button);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Button/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Button/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Button';
|
||||
export * from './Button';
|
15
web/node_modules/@material-ui/core/Button/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Button/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Button.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Button = _interopRequireDefault(require("./Button"));
|
5
web/node_modules/@material-ui/core/Button/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Button/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Button/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
113
web/node_modules/@material-ui/core/ButtonBase/ButtonBase.d.ts
generated
vendored
Normal file
113
web/node_modules/@material-ui/core/ButtonBase/ButtonBase.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
import * as React from 'react';
|
||||
import { TouchRippleProps } from './TouchRipple';
|
||||
import { OverrideProps, OverridableComponent, OverridableTypeMap } from '../OverridableComponent';
|
||||
|
||||
export interface ButtonBaseTypeMap<P = {}, D extends React.ElementType = 'button'> {
|
||||
props: P & {
|
||||
/**
|
||||
* A ref for imperative actions.
|
||||
* It currently only supports `focusVisible()` action.
|
||||
*/
|
||||
action?: React.Ref<ButtonBaseActions>;
|
||||
/**
|
||||
* @ignore
|
||||
*
|
||||
* Use that prop to pass a ref to the native button component.
|
||||
* @deprecated Use `ref` instead.
|
||||
*/
|
||||
buttonRef?: React.Ref<unknown>;
|
||||
/**
|
||||
* If `true`, the ripples will be centered.
|
||||
* They won't start at the cursor interaction position.
|
||||
*/
|
||||
centerRipple?: boolean;
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the base button will be disabled.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, the ripple effect will be disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `focusVisibleClassName`.
|
||||
*/
|
||||
disableRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the touch ripple effect will be disabled.
|
||||
*/
|
||||
disableTouchRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the base button will have a keyboard focus ripple.
|
||||
*/
|
||||
focusRipple?: boolean;
|
||||
/**
|
||||
* This prop can help identify which element has keyboard focus.
|
||||
* The class name will be applied when the element gains the focus through keyboard interaction.
|
||||
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
||||
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
|
||||
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
||||
* if needed.
|
||||
*/
|
||||
focusVisibleClassName?: string;
|
||||
/**
|
||||
* Callback fired when the component is focused with a keyboard.
|
||||
* We trigger a `onFocus` callback too.
|
||||
*/
|
||||
onFocusVisible?: React.FocusEventHandler<any>;
|
||||
// @types/react is stricter
|
||||
tabIndex?: string | number;
|
||||
/**
|
||||
* Props applied to the `TouchRipple` element.
|
||||
*/
|
||||
TouchRippleProps?: Partial<TouchRippleProps>;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: ButtonBaseClassKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* utility to create component types that inherit props from ButtonBase.
|
||||
* This component has an additional overload if the `href` prop is set which
|
||||
* can make extension quite tricky
|
||||
*/
|
||||
export interface ExtendButtonBaseTypeMap<M extends OverridableTypeMap> {
|
||||
props: M['props'] & ButtonBaseTypeMap['props'];
|
||||
defaultComponent: M['defaultComponent'];
|
||||
classKey: M['classKey'];
|
||||
}
|
||||
|
||||
export type ExtendButtonBase<M extends OverridableTypeMap> = ((
|
||||
props: { href: string } & OverrideProps<ExtendButtonBaseTypeMap<M>, 'a'>
|
||||
) => JSX.Element) &
|
||||
OverridableComponent<ExtendButtonBaseTypeMap<M>>;
|
||||
|
||||
/**
|
||||
* `ButtonBase` contains as few styles as possible.
|
||||
* It aims to be a simple building block for creating a button.
|
||||
* It contains a load of style reset and some focus/ripple logic.
|
||||
* Demos:
|
||||
*
|
||||
* - [Buttons](https://material-ui.com/components/buttons/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const ButtonBase: ExtendButtonBase<ButtonBaseTypeMap>;
|
||||
|
||||
export type ButtonBaseProps<
|
||||
D extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<ButtonBaseTypeMap<P, D>, D>;
|
||||
|
||||
export type ButtonBaseClassKey = 'root' | 'disabled' | 'focusVisible';
|
||||
|
||||
export interface ButtonBaseActions {
|
||||
focusVisible(): void;
|
||||
}
|
||||
|
||||
export default ButtonBase;
|
523
web/node_modules/@material-ui/core/ButtonBase/ButtonBase.js
generated
vendored
Normal file
523
web/node_modules/@material-ui/core/ButtonBase/ButtonBase.js
generated
vendored
Normal file
|
@ -0,0 +1,523 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
||||
|
||||
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
|
||||
|
||||
var _deprecatedPropType = _interopRequireDefault(require("../utils/deprecatedPropType"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _useIsFocusVisible2 = _interopRequireDefault(require("../utils/useIsFocusVisible"));
|
||||
|
||||
var _TouchRipple = _interopRequireDefault(require("./TouchRipple"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
position: 'relative',
|
||||
WebkitTapHighlightColor: 'transparent',
|
||||
backgroundColor: 'transparent',
|
||||
// Reset default value
|
||||
// We disable the focus ring for mouse, touch and keyboard users.
|
||||
outline: 0,
|
||||
border: 0,
|
||||
margin: 0,
|
||||
// Remove the margin in Safari
|
||||
borderRadius: 0,
|
||||
padding: 0,
|
||||
// Remove the padding in Firefox
|
||||
cursor: 'pointer',
|
||||
userSelect: 'none',
|
||||
verticalAlign: 'middle',
|
||||
'-moz-appearance': 'none',
|
||||
// Reset
|
||||
'-webkit-appearance': 'none',
|
||||
// Reset
|
||||
textDecoration: 'none',
|
||||
// So we take precedent over the style of a native <a /> element.
|
||||
color: 'inherit',
|
||||
'&::-moz-focus-inner': {
|
||||
borderStyle: 'none' // Remove Firefox dotted outline.
|
||||
|
||||
},
|
||||
'&$disabled': {
|
||||
pointerEvents: 'none',
|
||||
// Disable link interactions
|
||||
cursor: 'default'
|
||||
},
|
||||
'@media print': {
|
||||
colorAdjust: 'exact'
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if keyboard focused. */
|
||||
focusVisible: {}
|
||||
};
|
||||
/**
|
||||
* `ButtonBase` contains as few styles as possible.
|
||||
* It aims to be a simple building block for creating a button.
|
||||
* It contains a load of style reset and some focus/ripple logic.
|
||||
*/
|
||||
|
||||
exports.styles = styles;
|
||||
var ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
|
||||
var action = props.action,
|
||||
buttonRefProp = props.buttonRef,
|
||||
_props$centerRipple = props.centerRipple,
|
||||
centerRipple = _props$centerRipple === void 0 ? false : _props$centerRipple,
|
||||
children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
component = _props$component === void 0 ? 'button' : _props$component,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
_props$disableRipple = props.disableRipple,
|
||||
disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,
|
||||
_props$disableTouchRi = props.disableTouchRipple,
|
||||
disableTouchRipple = _props$disableTouchRi === void 0 ? false : _props$disableTouchRi,
|
||||
_props$focusRipple = props.focusRipple,
|
||||
focusRipple = _props$focusRipple === void 0 ? false : _props$focusRipple,
|
||||
focusVisibleClassName = props.focusVisibleClassName,
|
||||
onBlur = props.onBlur,
|
||||
onClick = props.onClick,
|
||||
onFocus = props.onFocus,
|
||||
onFocusVisible = props.onFocusVisible,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onKeyUp = props.onKeyUp,
|
||||
onMouseDown = props.onMouseDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
onMouseUp = props.onMouseUp,
|
||||
onTouchEnd = props.onTouchEnd,
|
||||
onTouchMove = props.onTouchMove,
|
||||
onTouchStart = props.onTouchStart,
|
||||
onDragLeave = props.onDragLeave,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
TouchRippleProps = props.TouchRippleProps,
|
||||
_props$type = props.type,
|
||||
type = _props$type === void 0 ? 'button' : _props$type,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["action", "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "onBlur", "onClick", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "onDragLeave", "tabIndex", "TouchRippleProps", "type"]);
|
||||
var buttonRef = React.useRef(null);
|
||||
|
||||
function getButtonNode() {
|
||||
// #StrictMode ready
|
||||
return ReactDOM.findDOMNode(buttonRef.current);
|
||||
}
|
||||
|
||||
var rippleRef = React.useRef(null);
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
focusVisible = _React$useState[0],
|
||||
setFocusVisible = _React$useState[1];
|
||||
|
||||
if (disabled && focusVisible) {
|
||||
setFocusVisible(false);
|
||||
}
|
||||
|
||||
var _useIsFocusVisible = (0, _useIsFocusVisible2.default)(),
|
||||
isFocusVisible = _useIsFocusVisible.isFocusVisible,
|
||||
onBlurVisible = _useIsFocusVisible.onBlurVisible,
|
||||
focusVisibleRef = _useIsFocusVisible.ref;
|
||||
|
||||
React.useImperativeHandle(action, function () {
|
||||
return {
|
||||
focusVisible: function focusVisible() {
|
||||
setFocusVisible(true);
|
||||
buttonRef.current.focus();
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
React.useEffect(function () {
|
||||
if (focusVisible && focusRipple && !disableRipple) {
|
||||
rippleRef.current.pulsate();
|
||||
}
|
||||
}, [disableRipple, focusRipple, focusVisible]);
|
||||
|
||||
function useRippleHandler(rippleAction, eventCallback) {
|
||||
var skipRippleAction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : disableTouchRipple;
|
||||
return (0, _useEventCallback.default)(function (event) {
|
||||
if (eventCallback) {
|
||||
eventCallback(event);
|
||||
}
|
||||
|
||||
var ignore = skipRippleAction;
|
||||
|
||||
if (!ignore && rippleRef.current) {
|
||||
rippleRef.current[rippleAction](event);
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
var handleMouseDown = useRippleHandler('start', onMouseDown);
|
||||
var handleDragLeave = useRippleHandler('stop', onDragLeave);
|
||||
var handleMouseUp = useRippleHandler('stop', onMouseUp);
|
||||
var handleMouseLeave = useRippleHandler('stop', function (event) {
|
||||
if (focusVisible) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if (onMouseLeave) {
|
||||
onMouseLeave(event);
|
||||
}
|
||||
});
|
||||
var handleTouchStart = useRippleHandler('start', onTouchStart);
|
||||
var handleTouchEnd = useRippleHandler('stop', onTouchEnd);
|
||||
var handleTouchMove = useRippleHandler('stop', onTouchMove);
|
||||
var handleBlur = useRippleHandler('stop', function (event) {
|
||||
if (focusVisible) {
|
||||
onBlurVisible(event);
|
||||
setFocusVisible(false);
|
||||
}
|
||||
|
||||
if (onBlur) {
|
||||
onBlur(event);
|
||||
}
|
||||
}, false);
|
||||
var handleFocus = (0, _useEventCallback.default)(function (event) {
|
||||
// Fix for https://github.com/facebook/react/issues/7769
|
||||
if (!buttonRef.current) {
|
||||
buttonRef.current = event.currentTarget;
|
||||
}
|
||||
|
||||
if (isFocusVisible(event)) {
|
||||
setFocusVisible(true);
|
||||
|
||||
if (onFocusVisible) {
|
||||
onFocusVisible(event);
|
||||
}
|
||||
}
|
||||
|
||||
if (onFocus) {
|
||||
onFocus(event);
|
||||
}
|
||||
});
|
||||
|
||||
var isNonNativeButton = function isNonNativeButton() {
|
||||
var button = getButtonNode();
|
||||
return component && component !== 'button' && !(button.tagName === 'A' && button.href);
|
||||
};
|
||||
/**
|
||||
* IE 11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
|
||||
*/
|
||||
|
||||
|
||||
var keydownRef = React.useRef(false);
|
||||
var handleKeyDown = (0, _useEventCallback.default)(function (event) {
|
||||
// Check if key is already down to avoid repeats being counted as multiple activations
|
||||
if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {
|
||||
keydownRef.current = true;
|
||||
event.persist();
|
||||
rippleRef.current.stop(event, function () {
|
||||
rippleRef.current.start(event);
|
||||
});
|
||||
}
|
||||
|
||||
if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if (onKeyDown) {
|
||||
onKeyDown(event);
|
||||
} // Keyboard accessibility for non interactive elements
|
||||
|
||||
|
||||
if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {
|
||||
event.preventDefault();
|
||||
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
}
|
||||
});
|
||||
var handleKeyUp = (0, _useEventCallback.default)(function (event) {
|
||||
// calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
|
||||
// https://codesandbox.io/s/button-keyup-preventdefault-dn7f0
|
||||
if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
|
||||
keydownRef.current = false;
|
||||
event.persist();
|
||||
rippleRef.current.stop(event, function () {
|
||||
rippleRef.current.pulsate(event);
|
||||
});
|
||||
}
|
||||
|
||||
if (onKeyUp) {
|
||||
onKeyUp(event);
|
||||
} // Keyboard accessibility for non interactive elements
|
||||
|
||||
|
||||
if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {
|
||||
onClick(event);
|
||||
}
|
||||
});
|
||||
var ComponentProp = component;
|
||||
|
||||
if (ComponentProp === 'button' && other.href) {
|
||||
ComponentProp = 'a';
|
||||
}
|
||||
|
||||
var buttonProps = {};
|
||||
|
||||
if (ComponentProp === 'button') {
|
||||
buttonProps.type = type;
|
||||
buttonProps.disabled = disabled;
|
||||
} else {
|
||||
if (ComponentProp !== 'a' || !other.href) {
|
||||
buttonProps.role = 'button';
|
||||
}
|
||||
|
||||
buttonProps['aria-disabled'] = disabled;
|
||||
}
|
||||
|
||||
var handleUserRef = (0, _useForkRef.default)(buttonRefProp, ref);
|
||||
var handleOwnRef = (0, _useForkRef.default)(focusVisibleRef, buttonRef);
|
||||
var handleRef = (0, _useForkRef.default)(handleUserRef, handleOwnRef);
|
||||
|
||||
var _React$useState2 = React.useState(false),
|
||||
mountedState = _React$useState2[0],
|
||||
setMountedState = _React$useState2[1];
|
||||
|
||||
React.useEffect(function () {
|
||||
setMountedState(true);
|
||||
}, []);
|
||||
var enableTouchRipple = mountedState && !disableRipple && !disabled;
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
React.useEffect(function () {
|
||||
if (enableTouchRipple && !rippleRef.current) {
|
||||
console.error(['Material-UI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\n'));
|
||||
}
|
||||
}, [enableTouchRipple]);
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(ComponentProp, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, focusVisible && [classes.focusVisible, focusVisibleClassName], disabled && classes.disabled),
|
||||
onBlur: handleBlur,
|
||||
onClick: onClick,
|
||||
onFocus: handleFocus,
|
||||
onKeyDown: handleKeyDown,
|
||||
onKeyUp: handleKeyUp,
|
||||
onMouseDown: handleMouseDown,
|
||||
onMouseLeave: handleMouseLeave,
|
||||
onMouseUp: handleMouseUp,
|
||||
onDragLeave: handleDragLeave,
|
||||
onTouchEnd: handleTouchEnd,
|
||||
onTouchMove: handleTouchMove,
|
||||
onTouchStart: handleTouchStart,
|
||||
ref: handleRef,
|
||||
tabIndex: disabled ? -1 : tabIndex
|
||||
}, buttonProps, other), children, enableTouchRipple ?
|
||||
/*#__PURE__*/
|
||||
|
||||
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
||||
React.createElement(_TouchRipple.default, (0, _extends2.default)({
|
||||
ref: rippleRef,
|
||||
center: centerRipple
|
||||
}, TouchRippleProps)) : null);
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* A ref for imperative actions.
|
||||
* It currently only supports `focusVisible()` action.
|
||||
*/
|
||||
action: _utils.refType,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*
|
||||
* Use that prop to pass a ref to the native button component.
|
||||
* @deprecated Use `ref` instead.
|
||||
*/
|
||||
buttonRef: (0, _deprecatedPropType.default)(_utils.refType, 'Use `ref` instead.'),
|
||||
|
||||
/**
|
||||
* If `true`, the ripples will be centered.
|
||||
* They won't start at the cursor interaction position.
|
||||
*/
|
||||
centerRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _utils.elementTypeAcceptingRef,
|
||||
|
||||
/**
|
||||
* If `true`, the base button will be disabled.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the ripple effect will be disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `focusVisibleClassName`.
|
||||
*/
|
||||
disableRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the touch ripple effect will be disabled.
|
||||
*/
|
||||
disableTouchRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the base button will have a keyboard focus ripple.
|
||||
*/
|
||||
focusRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* This prop can help identify which element has keyboard focus.
|
||||
* The class name will be applied when the element gains the focus through keyboard interaction.
|
||||
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
||||
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
|
||||
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
||||
* if needed.
|
||||
*/
|
||||
focusVisibleClassName: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
href: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onBlur: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onDragLeave: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onFocus: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* Callback fired when the component is focused with a keyboard.
|
||||
* We trigger a `onFocus` callback too.
|
||||
*/
|
||||
onFocusVisible: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyDown: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyUp: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseDown: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseLeave: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseUp: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchEnd: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchMove: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchStart: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
||||
|
||||
/**
|
||||
* Props applied to the `TouchRipple` element.
|
||||
*/
|
||||
TouchRippleProps: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(['button', 'reset', 'submit']), _propTypes.default.string])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiButtonBase'
|
||||
})(ButtonBase);
|
||||
|
||||
exports.default = _default;
|
115
web/node_modules/@material-ui/core/ButtonBase/Ripple.js
generated
vendored
Normal file
115
web/node_modules/@material-ui/core/ButtonBase/Ripple.js
generated
vendored
Normal file
|
@ -0,0 +1,115 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
|
||||
|
||||
var useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
function Ripple(props) {
|
||||
var classes = props.classes,
|
||||
_props$pulsate = props.pulsate,
|
||||
pulsate = _props$pulsate === void 0 ? false : _props$pulsate,
|
||||
rippleX = props.rippleX,
|
||||
rippleY = props.rippleY,
|
||||
rippleSize = props.rippleSize,
|
||||
inProp = props.in,
|
||||
_props$onExited = props.onExited,
|
||||
onExited = _props$onExited === void 0 ? function () {} : _props$onExited,
|
||||
timeout = props.timeout;
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
leaving = _React$useState[0],
|
||||
setLeaving = _React$useState[1];
|
||||
|
||||
var rippleClassName = (0, _clsx.default)(classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);
|
||||
var rippleStyles = {
|
||||
width: rippleSize,
|
||||
height: rippleSize,
|
||||
top: -(rippleSize / 2) + rippleY,
|
||||
left: -(rippleSize / 2) + rippleX
|
||||
};
|
||||
var childClassName = (0, _clsx.default)(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);
|
||||
var handleExited = (0, _useEventCallback.default)(onExited); // Ripple is used for user feedback (e.g. click or press) so we want to apply styles with the highest priority
|
||||
|
||||
useEnhancedEffect(function () {
|
||||
if (!inProp) {
|
||||
// react-transition-group#onExit
|
||||
setLeaving(true); // react-transition-group#onExited
|
||||
|
||||
var timeoutId = setTimeout(handleExited, timeout);
|
||||
return function () {
|
||||
clearTimeout(timeoutId);
|
||||
};
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}, [handleExited, inProp, timeout]);
|
||||
return /*#__PURE__*/React.createElement("span", {
|
||||
className: rippleClassName,
|
||||
style: rippleStyles
|
||||
}, /*#__PURE__*/React.createElement("span", {
|
||||
className: childClassName
|
||||
}));
|
||||
}
|
||||
|
||||
process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object.isRequired,
|
||||
|
||||
/**
|
||||
* @ignore - injected from TransitionGroup
|
||||
*/
|
||||
in: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* @ignore - injected from TransitionGroup
|
||||
*/
|
||||
onExited: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
||||
*/
|
||||
pulsate: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Diameter of the ripple.
|
||||
*/
|
||||
rippleSize: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Horizontal position of the ripple center.
|
||||
*/
|
||||
rippleX: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Vertical position of the ripple center.
|
||||
*/
|
||||
rippleY: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* exit delay
|
||||
*/
|
||||
timeout: _propTypes.default.number.isRequired
|
||||
} : void 0;
|
||||
var _default = Ripple;
|
||||
exports.default = _default;
|
22
web/node_modules/@material-ui/core/ButtonBase/TouchRipple.d.ts
generated
vendored
Normal file
22
web/node_modules/@material-ui/core/ButtonBase/TouchRipple.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export type TouchRippleProps = StandardProps<
|
||||
React.HTMLAttributes<HTMLElement>,
|
||||
TouchRippleClassKey
|
||||
> & {
|
||||
center?: boolean;
|
||||
};
|
||||
|
||||
export type TouchRippleClassKey =
|
||||
| 'root'
|
||||
| 'ripple'
|
||||
| 'rippleVisible'
|
||||
| 'ripplePulsate'
|
||||
| 'child'
|
||||
| 'childLeaving'
|
||||
| 'childPulsate';
|
||||
|
||||
declare const TouchRipple: React.ComponentType<TouchRippleProps>;
|
||||
|
||||
export default TouchRipple;
|
340
web/node_modules/@material-ui/core/ButtonBase/TouchRipple.js
generated
vendored
Normal file
340
web/node_modules/@material-ui/core/ButtonBase/TouchRipple.js
generated
vendored
Normal file
|
@ -0,0 +1,340 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = exports.DELAY_RIPPLE = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _reactTransitionGroup = require("react-transition-group");
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Ripple = _interopRequireDefault(require("./Ripple"));
|
||||
|
||||
var DURATION = 550;
|
||||
var DELAY_RIPPLE = 80;
|
||||
exports.DELAY_RIPPLE = DELAY_RIPPLE;
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
overflow: 'hidden',
|
||||
pointerEvents: 'none',
|
||||
position: 'absolute',
|
||||
zIndex: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
borderRadius: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `ripple` class. */
|
||||
ripple: {
|
||||
opacity: 0,
|
||||
position: 'absolute'
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
||||
rippleVisible: {
|
||||
opacity: 0.3,
|
||||
transform: 'scale(1)',
|
||||
animation: "$enter ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut)
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
||||
ripplePulsate: {
|
||||
animationDuration: "".concat(theme.transitions.duration.shorter, "ms")
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `child` class. */
|
||||
child: {
|
||||
opacity: 1,
|
||||
display: 'block',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
borderRadius: '50%',
|
||||
backgroundColor: 'currentColor'
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `childLeaving` class. */
|
||||
childLeaving: {
|
||||
opacity: 0,
|
||||
animation: "$exit ".concat(DURATION, "ms ").concat(theme.transitions.easing.easeInOut)
|
||||
},
|
||||
|
||||
/* Styles applied to the internal `Ripple` components `childPulsate` class. */
|
||||
childPulsate: {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: 0,
|
||||
animation: "$pulsate 2500ms ".concat(theme.transitions.easing.easeInOut, " 200ms infinite")
|
||||
},
|
||||
'@keyframes enter': {
|
||||
'0%': {
|
||||
transform: 'scale(0)',
|
||||
opacity: 0.1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scale(1)',
|
||||
opacity: 0.3
|
||||
}
|
||||
},
|
||||
'@keyframes exit': {
|
||||
'0%': {
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
'@keyframes pulsate': {
|
||||
'0%': {
|
||||
transform: 'scale(1)'
|
||||
},
|
||||
'50%': {
|
||||
transform: 'scale(0.92)'
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*
|
||||
* TODO v5: Make private
|
||||
*/
|
||||
|
||||
|
||||
exports.styles = styles;
|
||||
var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(props, ref) {
|
||||
var _props$center = props.center,
|
||||
centerProp = _props$center === void 0 ? false : _props$center,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["center", "classes", "className"]);
|
||||
|
||||
var _React$useState = React.useState([]),
|
||||
ripples = _React$useState[0],
|
||||
setRipples = _React$useState[1];
|
||||
|
||||
var nextKey = React.useRef(0);
|
||||
var rippleCallback = React.useRef(null);
|
||||
React.useEffect(function () {
|
||||
if (rippleCallback.current) {
|
||||
rippleCallback.current();
|
||||
rippleCallback.current = null;
|
||||
}
|
||||
}, [ripples]); // Used to filter out mouse emulated events on mobile.
|
||||
|
||||
var ignoringMouseDown = React.useRef(false); // We use a timer in order to only show the ripples for touch "click" like events.
|
||||
// We don't want to display the ripple for touch scroll events.
|
||||
|
||||
var startTimer = React.useRef(null); // This is the hook called once the previous timeout is ready.
|
||||
|
||||
var startTimerCommit = React.useRef(null);
|
||||
var container = React.useRef(null);
|
||||
React.useEffect(function () {
|
||||
return function () {
|
||||
clearTimeout(startTimer.current);
|
||||
};
|
||||
}, []);
|
||||
var startCommit = React.useCallback(function (params) {
|
||||
var pulsate = params.pulsate,
|
||||
rippleX = params.rippleX,
|
||||
rippleY = params.rippleY,
|
||||
rippleSize = params.rippleSize,
|
||||
cb = params.cb;
|
||||
setRipples(function (oldRipples) {
|
||||
return [].concat((0, _toConsumableArray2.default)(oldRipples), [/*#__PURE__*/React.createElement(_Ripple.default, {
|
||||
key: nextKey.current,
|
||||
classes: classes,
|
||||
timeout: DURATION,
|
||||
pulsate: pulsate,
|
||||
rippleX: rippleX,
|
||||
rippleY: rippleY,
|
||||
rippleSize: rippleSize
|
||||
})]);
|
||||
});
|
||||
nextKey.current += 1;
|
||||
rippleCallback.current = cb;
|
||||
}, [classes]);
|
||||
var start = React.useCallback(function () {
|
||||
var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var cb = arguments.length > 2 ? arguments[2] : undefined;
|
||||
var _options$pulsate = options.pulsate,
|
||||
pulsate = _options$pulsate === void 0 ? false : _options$pulsate,
|
||||
_options$center = options.center,
|
||||
center = _options$center === void 0 ? centerProp || options.pulsate : _options$center,
|
||||
_options$fakeElement = options.fakeElement,
|
||||
fakeElement = _options$fakeElement === void 0 ? false : _options$fakeElement;
|
||||
|
||||
if (event.type === 'mousedown' && ignoringMouseDown.current) {
|
||||
ignoringMouseDown.current = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.type === 'touchstart') {
|
||||
ignoringMouseDown.current = true;
|
||||
}
|
||||
|
||||
var element = fakeElement ? null : container.current;
|
||||
var rect = element ? element.getBoundingClientRect() : {
|
||||
width: 0,
|
||||
height: 0,
|
||||
left: 0,
|
||||
top: 0
|
||||
}; // Get the size of the ripple
|
||||
|
||||
var rippleX;
|
||||
var rippleY;
|
||||
var rippleSize;
|
||||
|
||||
if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
||||
rippleX = Math.round(rect.width / 2);
|
||||
rippleY = Math.round(rect.height / 2);
|
||||
} else {
|
||||
var _ref = event.touches ? event.touches[0] : event,
|
||||
clientX = _ref.clientX,
|
||||
clientY = _ref.clientY;
|
||||
|
||||
rippleX = Math.round(clientX - rect.left);
|
||||
rippleY = Math.round(clientY - rect.top);
|
||||
}
|
||||
|
||||
if (center) {
|
||||
rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3); // For some reason the animation is broken on Mobile Chrome if the size if even.
|
||||
|
||||
if (rippleSize % 2 === 0) {
|
||||
rippleSize += 1;
|
||||
}
|
||||
} else {
|
||||
var sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;
|
||||
var sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
||||
rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2));
|
||||
} // Touche devices
|
||||
|
||||
|
||||
if (event.touches) {
|
||||
// check that this isn't another touchstart due to multitouch
|
||||
// otherwise we will only clear a single timer when unmounting while two
|
||||
// are running
|
||||
if (startTimerCommit.current === null) {
|
||||
// Prepare the ripple effect.
|
||||
startTimerCommit.current = function () {
|
||||
startCommit({
|
||||
pulsate: pulsate,
|
||||
rippleX: rippleX,
|
||||
rippleY: rippleY,
|
||||
rippleSize: rippleSize,
|
||||
cb: cb
|
||||
});
|
||||
}; // Delay the execution of the ripple effect.
|
||||
|
||||
|
||||
startTimer.current = setTimeout(function () {
|
||||
if (startTimerCommit.current) {
|
||||
startTimerCommit.current();
|
||||
startTimerCommit.current = null;
|
||||
}
|
||||
}, DELAY_RIPPLE); // We have to make a tradeoff with this value.
|
||||
}
|
||||
} else {
|
||||
startCommit({
|
||||
pulsate: pulsate,
|
||||
rippleX: rippleX,
|
||||
rippleY: rippleY,
|
||||
rippleSize: rippleSize,
|
||||
cb: cb
|
||||
});
|
||||
}
|
||||
}, [centerProp, startCommit]);
|
||||
var pulsate = React.useCallback(function () {
|
||||
start({}, {
|
||||
pulsate: true
|
||||
});
|
||||
}, [start]);
|
||||
var stop = React.useCallback(function (event, cb) {
|
||||
clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
|
||||
// We still want to show ripple effect.
|
||||
|
||||
if (event.type === 'touchend' && startTimerCommit.current) {
|
||||
event.persist();
|
||||
startTimerCommit.current();
|
||||
startTimerCommit.current = null;
|
||||
startTimer.current = setTimeout(function () {
|
||||
stop(event, cb);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
startTimerCommit.current = null;
|
||||
setRipples(function (oldRipples) {
|
||||
if (oldRipples.length > 0) {
|
||||
return oldRipples.slice(1);
|
||||
}
|
||||
|
||||
return oldRipples;
|
||||
});
|
||||
rippleCallback.current = cb;
|
||||
}, []);
|
||||
React.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
pulsate: pulsate,
|
||||
start: start,
|
||||
stop: stop
|
||||
};
|
||||
}, [pulsate, start, stop]);
|
||||
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: container
|
||||
}, other), /*#__PURE__*/React.createElement(_reactTransitionGroup.TransitionGroup, {
|
||||
component: null,
|
||||
exit: true
|
||||
}, ripples));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes = {
|
||||
/**
|
||||
* If `true`, the ripple starts at the center of the component
|
||||
* rather than at the point of interaction.
|
||||
*/
|
||||
center: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object.isRequired,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
flip: false,
|
||||
name: 'MuiTouchRipple'
|
||||
})( /*#__PURE__*/React.memo(TouchRipple));
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/ButtonBase/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/ButtonBase/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './ButtonBase';
|
||||
export * from './ButtonBase';
|
15
web/node_modules/@material-ui/core/ButtonBase/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/ButtonBase/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _ButtonBase.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("./ButtonBase"));
|
5
web/node_modules/@material-ui/core/ButtonBase/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/ButtonBase/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/ButtonBase/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
96
web/node_modules/@material-ui/core/ButtonGroup/ButtonGroup.d.ts
generated
vendored
Normal file
96
web/node_modules/@material-ui/core/ButtonGroup/ButtonGroup.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,96 @@
|
|||
import * as React from 'react';
|
||||
import { PropTypes } from '..';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface ButtonGroupTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the button group.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: PropTypes.Color;
|
||||
/**
|
||||
* If `true`, the buttons will be disabled.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
*/
|
||||
disableElevation?: boolean;
|
||||
/**
|
||||
* If `true`, the button keyboard focus ripple will be disabled.
|
||||
*/
|
||||
disableFocusRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the button ripple effect will be disabled.
|
||||
*/
|
||||
disableRipple?: boolean;
|
||||
/**
|
||||
* If `true`, the buttons will take up the full width of its container.
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
/**
|
||||
* The group orientation (layout flow direction).
|
||||
*/
|
||||
orientation?: 'vertical' | 'horizontal';
|
||||
/**
|
||||
* The size of the button.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
*/
|
||||
size?: 'small' | 'medium' | 'large';
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'text' | 'outlined' | 'contained';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: ButtonGroupClassKey;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Button Group](https://material-ui.com/components/button-group/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ButtonGroup API](https://material-ui.com/api/button-group/)
|
||||
*/
|
||||
declare const ButtonGroup: OverridableComponent<ButtonGroupTypeMap>;
|
||||
|
||||
export type ButtonGroupClassKey =
|
||||
| 'root'
|
||||
| 'contained'
|
||||
| 'disabled'
|
||||
| 'disableElevation'
|
||||
| 'fullWidth'
|
||||
| 'vertical'
|
||||
| 'grouped'
|
||||
| 'groupedHorizontal'
|
||||
| 'groupedVertical'
|
||||
| 'groupedText'
|
||||
| 'groupedTextHorizontal'
|
||||
| 'groupedTextVertical'
|
||||
| 'groupedTextPrimary'
|
||||
| 'groupedTextSecondary'
|
||||
| 'groupedOutlined'
|
||||
| 'groupedOutlinedHorizontal'
|
||||
| 'groupedOutlinedVertical'
|
||||
| 'groupedOutlinedPrimary'
|
||||
| 'groupedOutlinedSecondary'
|
||||
| 'groupedContained'
|
||||
| 'groupedContainedHorizontal'
|
||||
| 'groupedContainedVertical'
|
||||
| 'groupedContainedPrimary'
|
||||
| 'groupedContainedSecondary';
|
||||
|
||||
export type ButtonGroupProps<
|
||||
D extends React.ElementType = ButtonGroupTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<ButtonGroupTypeMap<P, D>, D>;
|
||||
|
||||
export default ButtonGroup;
|
341
web/node_modules/@material-ui/core/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
341
web/node_modules/@material-ui/core/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
|
@ -0,0 +1,341 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _reactIs = require("react-is");
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var _colorManipulator = require("../styles/colorManipulator");
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Button = _interopRequireDefault(require("../Button"));
|
||||
|
||||
// Force a side effect so we don't have any override priority issue.
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
_Button.default.styles;
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'inline-flex',
|
||||
borderRadius: theme.shape.borderRadius
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="contained"`. */
|
||||
contained: {
|
||||
boxShadow: theme.shadows[2]
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `disableElevation={true}`. */
|
||||
disableElevation: {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to child elements if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Styles applied to the root element if `fullWidth={true}`. */
|
||||
fullWidth: {
|
||||
width: '100%'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `orientation="vertical"`. */
|
||||
vertical: {
|
||||
flexDirection: 'column'
|
||||
},
|
||||
|
||||
/* Styles applied to the children. */
|
||||
grouped: {
|
||||
minWidth: 40
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `orientation="horizontal"`. */
|
||||
groupedHorizontal: {
|
||||
'&:not(:first-child)': {
|
||||
borderTopLeftRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
},
|
||||
'&:not(:last-child)': {
|
||||
borderTopRightRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `orientation="vertical"`. */
|
||||
groupedVertical: {
|
||||
'&:not(:first-child)': {
|
||||
borderTopRightRadius: 0,
|
||||
borderTopLeftRadius: 0
|
||||
},
|
||||
'&:not(:last-child)': {
|
||||
borderBottomRightRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="text"`. */
|
||||
groupedText: {},
|
||||
|
||||
/* Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
|
||||
groupedTextHorizontal: {
|
||||
'&:not(:last-child)': {
|
||||
borderRight: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
|
||||
groupedTextVertical: {
|
||||
'&:not(:last-child)': {
|
||||
borderBottom: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="text"` and `color="primary"`. */
|
||||
groupedTextPrimary: {
|
||||
'&:not(:last-child)': {
|
||||
borderColor: (0, _colorManipulator.alpha)(theme.palette.primary.main, 0.5)
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="text"` and `color="secondary"`. */
|
||||
groupedTextSecondary: {
|
||||
'&:not(:last-child)': {
|
||||
borderColor: (0, _colorManipulator.alpha)(theme.palette.secondary.main, 0.5)
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="outlined"`. */
|
||||
groupedOutlined: {},
|
||||
|
||||
/* Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
|
||||
groupedOutlinedHorizontal: {
|
||||
'&:not(:first-child)': {
|
||||
marginLeft: -1
|
||||
},
|
||||
'&:not(:last-child)': {
|
||||
borderRightColor: 'transparent'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
|
||||
groupedOutlinedVertical: {
|
||||
'&:not(:first-child)': {
|
||||
marginTop: -1
|
||||
},
|
||||
'&:not(:last-child)': {
|
||||
borderBottomColor: 'transparent'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="outlined"` and `color="primary"`. */
|
||||
groupedOutlinedPrimary: {
|
||||
'&:hover': {
|
||||
borderColor: theme.palette.primary.main
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
|
||||
groupedOutlinedSecondary: {
|
||||
'&:hover': {
|
||||
borderColor: theme.palette.secondary.main
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="contained"`. */
|
||||
groupedContained: {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
|
||||
groupedContainedHorizontal: {
|
||||
'&:not(:last-child)': {
|
||||
borderRight: "1px solid ".concat(theme.palette.grey[400]),
|
||||
'&$disabled': {
|
||||
borderRight: "1px solid ".concat(theme.palette.action.disabled)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
|
||||
groupedContainedVertical: {
|
||||
'&:not(:last-child)': {
|
||||
borderBottom: "1px solid ".concat(theme.palette.grey[400]),
|
||||
'&$disabled': {
|
||||
borderBottom: "1px solid ".concat(theme.palette.action.disabled)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="contained"` and `color="primary"`. */
|
||||
groupedContainedPrimary: {
|
||||
'&:not(:last-child)': {
|
||||
borderColor: theme.palette.primary.dark
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the children if `variant="contained"` and `color="secondary"`. */
|
||||
groupedContainedSecondary: {
|
||||
'&:not(:last-child)': {
|
||||
borderColor: theme.palette.secondary.dark
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'default' : _props$color,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
_props$disableElevati = props.disableElevation,
|
||||
disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,
|
||||
_props$disableFocusRi = props.disableFocusRipple,
|
||||
disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
|
||||
_props$disableRipple = props.disableRipple,
|
||||
disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,
|
||||
_props$fullWidth = props.fullWidth,
|
||||
fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
|
||||
_props$orientation = props.orientation,
|
||||
orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
|
||||
_props$size = props.size,
|
||||
size = _props$size === void 0 ? 'medium' : _props$size,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'outlined' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"]);
|
||||
var buttonClassName = (0, _clsx.default)(classes.grouped, classes["grouped".concat((0, _capitalize.default)(orientation))], classes["grouped".concat((0, _capitalize.default)(variant))], classes["grouped".concat((0, _capitalize.default)(variant)).concat((0, _capitalize.default)(orientation))], classes["grouped".concat((0, _capitalize.default)(variant)).concat(color !== 'default' ? (0, _capitalize.default)(color) : '')], disabled && classes.disabled);
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
role: "group",
|
||||
className: (0, _clsx.default)(classes.root, className, fullWidth && classes.fullWidth, disableElevation && classes.disableElevation, variant === 'contained' && classes.contained, orientation === 'vertical' && classes.vertical),
|
||||
ref: ref
|
||||
}, other), React.Children.map(children, function (child) {
|
||||
if (! /*#__PURE__*/React.isValidElement(child)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if ((0, _reactIs.isFragment)(child)) {
|
||||
console.error(["Material-UI: The ButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.cloneElement(child, {
|
||||
className: (0, _clsx.default)(buttonClassName, child.props.className),
|
||||
color: child.props.color || color,
|
||||
disabled: child.props.disabled || disabled,
|
||||
disableElevation: child.props.disableElevation || disableElevation,
|
||||
disableFocusRipple: disableFocusRipple,
|
||||
disableRipple: disableRipple,
|
||||
fullWidth: fullWidth,
|
||||
size: child.props.size || size,
|
||||
variant: child.props.variant || variant
|
||||
});
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the button group.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* If `true`, the buttons will be disabled.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
*/
|
||||
disableElevation: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the button keyboard focus ripple will be disabled.
|
||||
*/
|
||||
disableFocusRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the button ripple effect will be disabled.
|
||||
*/
|
||||
disableRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the buttons will take up the full width of its container.
|
||||
*/
|
||||
fullWidth: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The group orientation (layout flow direction).
|
||||
*/
|
||||
orientation: _propTypes.default.oneOf(['horizontal', 'vertical']),
|
||||
|
||||
/**
|
||||
* The size of the button.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
*/
|
||||
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiButtonGroup'
|
||||
})(ButtonGroup);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/ButtonGroup/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/ButtonGroup/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './ButtonGroup';
|
||||
export * from './ButtonGroup';
|
15
web/node_modules/@material-ui/core/ButtonGroup/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/ButtonGroup/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _ButtonGroup.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _ButtonGroup = _interopRequireDefault(require("./ButtonGroup"));
|
5
web/node_modules/@material-ui/core/ButtonGroup/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/ButtonGroup/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/ButtonGroup/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
13661
web/node_modules/@material-ui/core/CHANGELOG.md
generated
vendored
Normal file
13661
web/node_modules/@material-ui/core/CHANGELOG.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
25
web/node_modules/@material-ui/core/Card/Card.d.ts
generated
vendored
Normal file
25
web/node_modules/@material-ui/core/Card/Card.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { PaperProps } from '../Paper';
|
||||
|
||||
export interface CardProps extends StandardProps<PaperProps, CardClassKey> {
|
||||
/**
|
||||
* If `true`, the card will use raised styling.
|
||||
*/
|
||||
raised?: boolean;
|
||||
}
|
||||
|
||||
export type CardClassKey = 'root';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Cards](https://material-ui.com/components/cards/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Card API](https://material-ui.com/api/card/)
|
||||
* - inherits [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function Card(props: CardProps): JSX.Element;
|
77
web/node_modules/@material-ui/core/Card/Card.js
generated
vendored
Normal file
77
web/node_modules/@material-ui/core/Card/Card.js
generated
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
overflow: 'hidden'
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$raised = props.raised,
|
||||
raised = _props$raised === void 0 ? false : _props$raised,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "raised"]);
|
||||
return /*#__PURE__*/React.createElement(_Paper.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
elevation: raised ? 8 : 1,
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Card.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the card will use raised styling.
|
||||
*/
|
||||
raised: _propTypes.default.bool
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiCard'
|
||||
})(Card);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Card/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Card/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Card';
|
||||
export * from './Card';
|
15
web/node_modules/@material-ui/core/Card/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Card/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Card.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Card = _interopRequireDefault(require("./Card"));
|
5
web/node_modules/@material-ui/core/Card/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Card/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Card/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
35
web/node_modules/@material-ui/core/CardActionArea/CardActionArea.d.ts
generated
vendored
Normal file
35
web/node_modules/@material-ui/core/CardActionArea/CardActionArea.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type CardActionAreaTypeMap<P, D extends React.ElementType> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
focusVisibleClassName?: string;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: CardActionAreaClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Cards](https://material-ui.com/components/cards/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CardActionArea API](https://material-ui.com/api/card-action-area/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const CardActionArea: ExtendButtonBase<CardActionAreaTypeMap<
|
||||
{},
|
||||
ButtonBaseTypeMap['defaultComponent']
|
||||
>>;
|
||||
|
||||
export type CardActionAreaClassKey = 'root' | 'focusVisible' | 'focusHighlight';
|
||||
|
||||
export type CardActionAreaProps<
|
||||
D extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<CardActionAreaTypeMap<P, D>, D>;
|
||||
|
||||
export default CardActionArea;
|
110
web/node_modules/@material-ui/core/CardActionArea/CardActionArea.js
generated
vendored
Normal file
110
web/node_modules/@material-ui/core/CardActionArea/CardActionArea.js
generated
vendored
Normal file
|
@ -0,0 +1,110 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'block',
|
||||
textAlign: 'inherit',
|
||||
width: '100%',
|
||||
'&:hover $focusHighlight': {
|
||||
opacity: theme.palette.action.hoverOpacity
|
||||
},
|
||||
'&$focusVisible $focusHighlight': {
|
||||
opacity: 0.12
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the ButtonBase root element if the action area is keyboard focused. */
|
||||
focusVisible: {},
|
||||
|
||||
/* Styles applied to the overlay that covers the action area when it is keyboard focused. */
|
||||
focusHighlight: {
|
||||
overflow: 'hidden',
|
||||
pointerEvents: 'none',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
borderRadius: 'inherit',
|
||||
opacity: 0,
|
||||
backgroundColor: 'currentcolor',
|
||||
transition: theme.transitions.create('opacity', {
|
||||
duration: theme.transitions.duration.short
|
||||
})
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var CardActionArea = /*#__PURE__*/React.forwardRef(function CardActionArea(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
focusVisibleClassName = props.focusVisibleClassName,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "focusVisibleClassName"]);
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
focusVisibleClassName: (0, _clsx.default)(focusVisibleClassName, classes.focusVisible),
|
||||
ref: ref
|
||||
}, other), children, /*#__PURE__*/React.createElement("span", {
|
||||
className: classes.focusHighlight
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardActionArea.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: _propTypes.default.string
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiCardActionArea'
|
||||
})(CardActionArea);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/CardActionArea/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/CardActionArea/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './CardActionArea';
|
||||
export * from './CardActionArea';
|
15
web/node_modules/@material-ui/core/CardActionArea/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/CardActionArea/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _CardActionArea.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _CardActionArea = _interopRequireDefault(require("./CardActionArea"));
|
5
web/node_modules/@material-ui/core/CardActionArea/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/CardActionArea/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/CardActionArea/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
28
web/node_modules/@material-ui/core/CardActions/CardActions.d.ts
generated
vendored
Normal file
28
web/node_modules/@material-ui/core/CardActions/CardActions.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface CardActionsProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, CardActionsClassKey> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing?: boolean;
|
||||
}
|
||||
|
||||
export type CardActionsClassKey = 'root' | 'spacing';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Cards](https://material-ui.com/components/cards/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CardActions API](https://material-ui.com/api/card-actions/)
|
||||
*/
|
||||
export default function CardActions(props: CardActionsProps): JSX.Element;
|
83
web/node_modules/@material-ui/core/CardActions/CardActions.js
generated
vendored
Normal file
83
web/node_modules/@material-ui/core/CardActions/CardActions.js
generated
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `disableSpacing={false}`. */
|
||||
spacing: {
|
||||
'& > :not(:first-child)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var CardActions = /*#__PURE__*/React.forwardRef(function CardActions(props, ref) {
|
||||
var _props$disableSpacing = props.disableSpacing,
|
||||
disableSpacing = _props$disableSpacing === void 0 ? false : _props$disableSpacing,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["disableSpacing", "classes", "className"]);
|
||||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, !disableSpacing && classes.spacing),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardActions.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing: _propTypes.default.bool
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiCardActions'
|
||||
})(CardActions);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/CardActions/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/CardActions/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './CardActions';
|
||||
export * from './CardActions';
|
15
web/node_modules/@material-ui/core/CardActions/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/CardActions/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _CardActions.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _CardActions = _interopRequireDefault(require("./CardActions"));
|
5
web/node_modules/@material-ui/core/CardActions/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/CardActions/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/CardActions/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
33
web/node_modules/@material-ui/core/CardContent/CardContent.d.ts
generated
vendored
Normal file
33
web/node_modules/@material-ui/core/CardContent/CardContent.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface CardContentTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: CardContentClassKey;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Cards](https://material-ui.com/components/cards/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CardContent API](https://material-ui.com/api/card-content/)
|
||||
*/
|
||||
declare const CardContent: OverridableComponent<CardContentTypeMap>;
|
||||
|
||||
export type CardContentClassKey = 'root';
|
||||
|
||||
export type CardContentProps<
|
||||
D extends React.ElementType = CardContentTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<CardContentTypeMap<P, D>, D>;
|
||||
|
||||
export default CardContent;
|
80
web/node_modules/@material-ui/core/CardContent/CardContent.js
generated
vendored
Normal file
80
web/node_modules/@material-ui/core/CardContent/CardContent.js
generated
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
padding: 16,
|
||||
'&:last-child': {
|
||||
paddingBottom: 24
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var CardContent = /*#__PURE__*/React.forwardRef(function CardContent(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "component"]);
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardContent.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiCardContent'
|
||||
})(CardContent);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/CardContent/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/CardContent/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './CardContent';
|
||||
export * from './CardContent';
|
15
web/node_modules/@material-ui/core/CardContent/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/CardContent/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _CardContent.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _CardContent = _interopRequireDefault(require("./CardContent"));
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue