mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +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
55
web/node_modules/@material-ui/core/IconButton/IconButton.d.ts
generated
vendored
Normal file
55
web/node_modules/@material-ui/core/IconButton/IconButton.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
import { PropTypes } from '..';
|
||||
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type IconButtonTypeMap<
|
||||
P = {},
|
||||
D extends React.ElementType = 'button'
|
||||
> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
color?: PropTypes.Color;
|
||||
disableFocusRipple?: boolean;
|
||||
/**
|
||||
* If given, uses a negative margin to counteract the padding on one
|
||||
* side (this is often helpful for aligning the left or right
|
||||
* side of the icon with content above or below, without ruining the border
|
||||
* size and shape).
|
||||
*/
|
||||
edge?: 'start' | 'end' | false;
|
||||
size?: 'small' | 'medium';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: IconButtonClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Refer to the [Icons](https://material-ui.com/components/icons/) section of the documentation
|
||||
* regarding the available icon options.
|
||||
* Demos:
|
||||
*
|
||||
* - [Buttons](https://material-ui.com/components/buttons/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [IconButton API](https://material-ui.com/api/icon-button/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const IconButton: ExtendButtonBase<IconButtonTypeMap>;
|
||||
|
||||
export type IconButtonClassKey =
|
||||
| 'root'
|
||||
| 'edgeStart'
|
||||
| 'edgeEnd'
|
||||
| 'colorInherit'
|
||||
| 'colorPrimary'
|
||||
| 'colorSecondary'
|
||||
| 'disabled'
|
||||
| 'sizeSmall'
|
||||
| 'label';
|
||||
|
||||
export type IconButtonProps<
|
||||
D extends React.ElementType = IconButtonTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<IconButtonTypeMap<P, D>, D>;
|
||||
|
||||
export default IconButton;
|
224
web/node_modules/@material-ui/core/IconButton/IconButton.js
generated
vendored
Normal file
224
web/node_modules/@material-ui/core/IconButton/IconButton.js
generated
vendored
Normal file
|
@ -0,0 +1,224 @@
|
|||
"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 _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: {
|
||||
textAlign: 'center',
|
||||
flex: '0 0 auto',
|
||||
fontSize: theme.typography.pxToRem(24),
|
||||
padding: 12,
|
||||
borderRadius: '50%',
|
||||
overflow: 'visible',
|
||||
// Explicitly set the default value to solve a bug on IE 11.
|
||||
color: theme.palette.action.active,
|
||||
transition: theme.transitions.create('background-color', {
|
||||
duration: theme.transitions.duration.shortest
|
||||
}),
|
||||
'&:hover': {
|
||||
backgroundColor: (0, _colorManipulator.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
},
|
||||
'&$disabled': {
|
||||
backgroundColor: 'transparent',
|
||||
color: theme.palette.action.disabled
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `edge="start"`. */
|
||||
edgeStart: {
|
||||
marginLeft: -12,
|
||||
'$sizeSmall&': {
|
||||
marginLeft: -3
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `edge="end"`. */
|
||||
edgeEnd: {
|
||||
marginRight: -12,
|
||||
'$sizeSmall&': {
|
||||
marginRight: -3
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="inherit"`. */
|
||||
colorInherit: {
|
||||
color: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
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 `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
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'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Styles applied to the root element if `size="small"`. */
|
||||
sizeSmall: {
|
||||
padding: 3,
|
||||
fontSize: theme.typography.pxToRem(18)
|
||||
},
|
||||
|
||||
/* Styles applied to the children container element. */
|
||||
label: {
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
alignItems: 'inherit',
|
||||
justifyContent: 'inherit'
|
||||
}
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Refer to the [Icons](/components/icons/) section of the documentation
|
||||
* regarding the available icon options.
|
||||
*/
|
||||
|
||||
|
||||
exports.styles = styles;
|
||||
var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
|
||||
var _props$edge = props.edge,
|
||||
edge = _props$edge === void 0 ? false : _props$edge,
|
||||
children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'default' : _props$color,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
_props$disableFocusRi = props.disableFocusRipple,
|
||||
disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
|
||||
_props$size = props.size,
|
||||
size = _props$size === void 0 ? 'medium' : _props$size,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["edge", "children", "classes", "className", "color", "disabled", "disableFocusRipple", "size"]);
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, color !== 'default' && classes["color".concat((0, _capitalize.default)(color))], disabled && classes.disabled, size === "small" && classes["size".concat((0, _capitalize.default)(size))], {
|
||||
'start': classes.edgeStart,
|
||||
'end': classes.edgeEnd
|
||||
}[edge]),
|
||||
centerRipple: true,
|
||||
focusRipple: !disableFocusRipple,
|
||||
disabled: disabled,
|
||||
ref: ref
|
||||
}, other), /*#__PURE__*/React.createElement("span", {
|
||||
className: classes.label
|
||||
}, children));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? IconButton.propTypes = {
|
||||
/**
|
||||
* The icon element.
|
||||
*/
|
||||
children: (0, _utils.chainPropTypes)(_propTypes.default.node, function (props) {
|
||||
var found = React.Children.toArray(props.children).some(function (child) {
|
||||
return /*#__PURE__*/React.isValidElement(child) && child.props.onClick;
|
||||
});
|
||||
|
||||
if (found) {
|
||||
return new Error(['Material-UI: You are providing an onClick event listener ' + 'to a child of a button element.', 'Firefox will never trigger the event.', 'You should move the onClick listener to the parent button element.', 'https://github.com/mui-org/material-ui/issues/13957'].join('\n'));
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* 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,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* If `true`, the button will be disabled.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple will be disabled.
|
||||
*/
|
||||
disableFocusRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the ripple effect will be disabled.
|
||||
*/
|
||||
disableRipple: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If given, uses a negative margin to counteract the padding on one
|
||||
* side (this is often helpful for aligning the left or right
|
||||
* side of the icon with content above or below, without ruining the border
|
||||
* size and shape).
|
||||
*/
|
||||
edge: _propTypes.default.oneOf(['start', 'end', false]),
|
||||
|
||||
/**
|
||||
* The size of the button.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
*/
|
||||
size: _propTypes.default.oneOf(['small', 'medium'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiIconButton'
|
||||
})(IconButton);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/IconButton/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/IconButton/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './IconButton';
|
||||
export * from './IconButton';
|
15
web/node_modules/@material-ui/core/IconButton/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/IconButton/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 _IconButton.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
5
web/node_modules/@material-ui/core/IconButton/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/IconButton/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/IconButton/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue