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
71
web/node_modules/@material-ui/core/Paper/Paper.d.ts
generated
vendored
Normal file
71
web/node_modules/@material-ui/core/Paper/Paper.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface PaperProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, PaperClassKey> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
||||
/**
|
||||
* Shadow depth, corresponds to `dp` in the spec.
|
||||
* It accepts values between 0 and 24 inclusive.
|
||||
*/
|
||||
elevation?: number;
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
*/
|
||||
square?: boolean;
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'elevation' | 'outlined';
|
||||
}
|
||||
|
||||
export type PaperClassKey =
|
||||
| 'root'
|
||||
| 'rounded'
|
||||
| 'outlined'
|
||||
| 'elevation0'
|
||||
| 'elevation1'
|
||||
| 'elevation2'
|
||||
| 'elevation3'
|
||||
| 'elevation4'
|
||||
| 'elevation5'
|
||||
| 'elevation6'
|
||||
| 'elevation7'
|
||||
| 'elevation8'
|
||||
| 'elevation9'
|
||||
| 'elevation10'
|
||||
| 'elevation11'
|
||||
| 'elevation12'
|
||||
| 'elevation13'
|
||||
| 'elevation14'
|
||||
| 'elevation15'
|
||||
| 'elevation16'
|
||||
| 'elevation17'
|
||||
| 'elevation18'
|
||||
| 'elevation19'
|
||||
| 'elevation20'
|
||||
| 'elevation21'
|
||||
| 'elevation22'
|
||||
| 'elevation23'
|
||||
| 'elevation24';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Cards](https://material-ui.com/components/cards/)
|
||||
* - [Paper](https://material-ui.com/components/paper/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function Paper(props: PaperProps): JSX.Element;
|
135
web/node_modules/@material-ui/core/Paper/Paper.js
generated
vendored
Normal file
135
web/node_modules/@material-ui/core/Paper/Paper.js
generated
vendored
Normal file
|
@ -0,0 +1,135 @@
|
|||
"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 _utils = require("@material-ui/utils");
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
var elevations = {};
|
||||
theme.shadows.forEach(function (shadow, index) {
|
||||
elevations["elevation".concat(index)] = {
|
||||
boxShadow: shadow
|
||||
};
|
||||
});
|
||||
return (0, _extends2.default)({
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
backgroundColor: theme.palette.background.paper,
|
||||
color: theme.palette.text.primary,
|
||||
transition: theme.transitions.create('box-shadow')
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `square={false}`. */
|
||||
rounded: {
|
||||
borderRadius: theme.shape.borderRadius
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="outlined"`. */
|
||||
outlined: {
|
||||
border: "1px solid ".concat(theme.palette.divider)
|
||||
}
|
||||
}, elevations);
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Paper = /*#__PURE__*/React.forwardRef(function Paper(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
_props$square = props.square,
|
||||
square = _props$square === void 0 ? false : _props$square,
|
||||
_props$elevation = props.elevation,
|
||||
elevation = _props$elevation === void 0 ? 1 : _props$elevation,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'elevation' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "component", "square", "elevation", "variant"]);
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, variant === 'outlined' ? classes.outlined : classes["elevation".concat(elevation)], !square && classes.rounded),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Paper.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,
|
||||
|
||||
/**
|
||||
* Shadow depth, corresponds to `dp` in the spec.
|
||||
* It accepts values between 0 and 24 inclusive.
|
||||
*/
|
||||
elevation: (0, _utils.chainPropTypes)(_propTypes.default.number, function (props) {
|
||||
var classes = props.classes,
|
||||
elevation = props.elevation; // in case `withStyles` fails to inject we don't need this warning
|
||||
|
||||
if (classes === undefined) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (elevation != null && classes["elevation".concat(elevation)] === undefined) {
|
||||
return new Error("Material-UI: This elevation `".concat(elevation, "` is not implemented."));
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
*/
|
||||
square: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['elevation', 'outlined'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiPaper'
|
||||
})(Paper);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/Paper/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/Paper/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './Paper';
|
||||
export * from './Paper';
|
15
web/node_modules/@material-ui/core/Paper/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/Paper/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 _Paper.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Paper = _interopRequireDefault(require("./Paper"));
|
5
web/node_modules/@material-ui/core/Paper/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/Paper/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Paper/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue