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
42
web/node_modules/@material-ui/core/Icon/Icon.d.ts
generated
vendored
Normal file
42
web/node_modules/@material-ui/core/Icon/Icon.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
import * as React from 'react';
|
||||
import { PropTypes } from '..';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface IconTypeMap<P = {}, D extends React.ElementType = 'span'> {
|
||||
props: P & {
|
||||
color?: PropTypes.Color | 'action' | 'disabled' | 'error';
|
||||
fontSize?: 'default' | 'inherit' | 'large' | 'medium' | 'small';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: IconClassKey;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Icons](https://material-ui.com/components/icons/)
|
||||
* - [Material Icons](https://material-ui.com/components/material-icons/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Icon API](https://material-ui.com/api/icon/)
|
||||
*/
|
||||
declare const Icon: OverridableComponent<IconTypeMap>;
|
||||
|
||||
export type IconClassKey =
|
||||
| 'root'
|
||||
| 'colorSecondary'
|
||||
| 'colorAction'
|
||||
| 'colorDisabled'
|
||||
| 'colorError'
|
||||
| 'colorPrimary'
|
||||
| 'fontSizeInherit'
|
||||
| 'fontSizeSmall'
|
||||
| 'fontSizeLarge';
|
||||
|
||||
export type IconProps<
|
||||
D extends React.ElementType = IconTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<IconTypeMap<P, D>, D>;
|
||||
|
||||
export default Icon;
|
150
web/node_modules/@material-ui/core/Icon/Icon.js
generated
vendored
Normal file
150
web/node_modules/@material-ui/core/Icon/Icon.js
generated
vendored
Normal file
|
@ -0,0 +1,150 @@
|
|||
"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 _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
userSelect: 'none',
|
||||
fontSize: theme.typography.pxToRem(24),
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
// Chrome fix for https://bugs.chromium.org/p/chromium/issues/detail?id=820541
|
||||
// To remove at some point.
|
||||
overflow: 'hidden',
|
||||
flexShrink: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
color: theme.palette.primary.main
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
color: theme.palette.secondary.main
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="action"`. */
|
||||
colorAction: {
|
||||
color: theme.palette.action.active
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="error"`. */
|
||||
colorError: {
|
||||
color: theme.palette.error.main
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="disabled"`. */
|
||||
colorDisabled: {
|
||||
color: theme.palette.action.disabled
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `fontSize="inherit"`. */
|
||||
fontSizeInherit: {
|
||||
fontSize: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `fontSize="small"`. */
|
||||
fontSizeSmall: {
|
||||
fontSize: theme.typography.pxToRem(20)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `fontSize="large"`. */
|
||||
fontSizeLarge: {
|
||||
fontSize: theme.typography.pxToRem(36)
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Icon = /*#__PURE__*/React.forwardRef(function Icon(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'inherit' : _props$color,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'span' : _props$component,
|
||||
_props$fontSize = props.fontSize,
|
||||
fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "color", "component", "fontSize"]);
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)('material-icons', classes.root, className, color !== 'inherit' && classes["color".concat((0, _capitalize.default)(color))], fontSize !== 'default' && fontSize !== 'medium' && classes["fontSize".concat((0, _capitalize.default)(fontSize))]),
|
||||
"aria-hidden": true,
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Icon.propTypes = {
|
||||
/**
|
||||
* The name of the icon font ligature.
|
||||
*/
|
||||
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.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(['inherit', 'primary', 'secondary', 'action', 'error', 'disabled']),
|
||||
|
||||
/**
|
||||
* 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,
|
||||
|
||||
/**
|
||||
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
||||
*/
|
||||
fontSize: (0, _utils.chainPropTypes)(_propTypes.default.oneOf(['default', 'inherit', 'large', 'medium', 'small']), function (props) {
|
||||
var fontSize = props.fontSize;
|
||||
|
||||
if (fontSize === 'default') {
|
||||
throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');
|
||||
}
|
||||
|
||||
return null;
|
||||
})
|
||||
} : void 0;
|
||||
Icon.muiName = 'Icon';
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiIcon'
|
||||
})(Icon);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Icon/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Icon/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Icon';
|
||||
export * from './Icon';
|
15
web/node_modules/@material-ui/core/Icon/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Icon/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 _Icon.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Icon = _interopRequireDefault(require("./Icon"));
|
5
web/node_modules/@material-ui/core/Icon/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Icon/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Icon/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue