mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-16 21:11:52 +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
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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue