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/InputLabel/InputLabel.d.ts
generated
vendored
Normal file
71
web/node_modules/@material-ui/core/InputLabel/InputLabel.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { FormLabelProps } from '../FormLabel';
|
||||
|
||||
export interface InputLabelProps extends StandardProps<FormLabelProps, InputLabelClassKey> {
|
||||
/**
|
||||
* The contents of the `InputLabel`.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
color?: FormLabelProps['color'];
|
||||
/**
|
||||
* If `true`, the transition animation is disabled.
|
||||
*/
|
||||
disableAnimation?: boolean;
|
||||
/**
|
||||
* If `true`, apply disabled class.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, the label will be displayed in an error state.
|
||||
*/
|
||||
error?: boolean;
|
||||
/**
|
||||
* If `true`, the input of this label is focused.
|
||||
*/
|
||||
focused?: boolean;
|
||||
/**
|
||||
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
||||
* FormControl.
|
||||
*/
|
||||
margin?: 'dense';
|
||||
/**
|
||||
* if `true`, the label will indicate that the input is required.
|
||||
*/
|
||||
required?: boolean;
|
||||
/**
|
||||
* If `true`, the label is shrunk.
|
||||
*/
|
||||
shrink?: boolean;
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'standard' | 'outlined' | 'filled';
|
||||
}
|
||||
|
||||
export type InputLabelClassKey =
|
||||
| 'root'
|
||||
| 'focused'
|
||||
| 'disabled'
|
||||
| 'error'
|
||||
| 'required'
|
||||
| 'asterisk'
|
||||
| 'formControl'
|
||||
| 'marginDense'
|
||||
| 'shrink'
|
||||
| 'animated'
|
||||
| 'filled'
|
||||
| 'outlined';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Text Fields](https://material-ui.com/components/text-fields/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [InputLabel API](https://material-ui.com/api/input-label/)
|
||||
* - inherits [FormLabel API](https://material-ui.com/api/form-label/)
|
||||
*/
|
||||
export default function InputLabel(props: InputLabelProps): JSX.Element;
|
229
web/node_modules/@material-ui/core/InputLabel/InputLabel.js
generated
vendored
Normal file
229
web/node_modules/@material-ui/core/InputLabel/InputLabel.js
generated
vendored
Normal file
|
@ -0,0 +1,229 @@
|
|||
"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 _formControlState = _interopRequireDefault(require("../FormControl/formControlState"));
|
||||
|
||||
var _useFormControl = _interopRequireDefault(require("../FormControl/useFormControl"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _FormLabel = _interopRequireDefault(require("../FormLabel"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'block',
|
||||
transformOrigin: 'top left'
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element if `focused={true}`. */
|
||||
focused: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `error={true}`. */
|
||||
error: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `required={true}`. */
|
||||
required: {},
|
||||
|
||||
/* Pseudo-class applied to the asterisk element. */
|
||||
asterisk: {},
|
||||
|
||||
/* Styles applied to the root element if the component is a descendant of `FormControl`. */
|
||||
formControl: {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: 0,
|
||||
// slight alteration to spec spacing to match visual spec result
|
||||
transform: 'translate(0, 24px) scale(1)'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `margin="dense"`. */
|
||||
marginDense: {
|
||||
// Compensation for the `Input.inputDense` style.
|
||||
transform: 'translate(0, 21px) scale(1)'
|
||||
},
|
||||
|
||||
/* Styles applied to the `input` element if `shrink={true}`. */
|
||||
shrink: {
|
||||
transform: 'translate(0, 1.5px) scale(0.75)',
|
||||
transformOrigin: 'top left'
|
||||
},
|
||||
|
||||
/* Styles applied to the `input` element if `disableAnimation={false}`. */
|
||||
animated: {
|
||||
transition: theme.transitions.create(['color', 'transform'], {
|
||||
duration: theme.transitions.duration.shorter,
|
||||
easing: theme.transitions.easing.easeOut
|
||||
})
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="filled"`. */
|
||||
filled: {
|
||||
// Chrome's autofill feature gives the input field a yellow background.
|
||||
// Since the input field is behind the label in the HTML tree,
|
||||
// the input field is drawn last and hides the label with an opaque background color.
|
||||
// zIndex: 1 will raise the label above opaque background-colors of input.
|
||||
zIndex: 1,
|
||||
pointerEvents: 'none',
|
||||
transform: 'translate(12px, 20px) scale(1)',
|
||||
'&$marginDense': {
|
||||
transform: 'translate(12px, 17px) scale(1)'
|
||||
},
|
||||
'&$shrink': {
|
||||
transform: 'translate(12px, 10px) scale(0.75)',
|
||||
'&$marginDense': {
|
||||
transform: 'translate(12px, 7px) scale(0.75)'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="outlined"`. */
|
||||
outlined: {
|
||||
// see comment above on filled.zIndex
|
||||
zIndex: 1,
|
||||
pointerEvents: 'none',
|
||||
transform: 'translate(14px, 20px) scale(1)',
|
||||
'&$marginDense': {
|
||||
transform: 'translate(14px, 12px) scale(1)'
|
||||
},
|
||||
'&$shrink': {
|
||||
transform: 'translate(14px, -6px) scale(0.75)'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$disableAnimati = props.disableAnimation,
|
||||
disableAnimation = _props$disableAnimati === void 0 ? false : _props$disableAnimati,
|
||||
margin = props.margin,
|
||||
shrinkProp = props.shrink,
|
||||
variant = props.variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]);
|
||||
var muiFormControl = (0, _useFormControl.default)();
|
||||
var shrink = shrinkProp;
|
||||
|
||||
if (typeof shrink === 'undefined' && muiFormControl) {
|
||||
shrink = muiFormControl.filled || muiFormControl.focused || muiFormControl.adornedStart;
|
||||
}
|
||||
|
||||
var fcs = (0, _formControlState.default)({
|
||||
props: props,
|
||||
muiFormControl: muiFormControl,
|
||||
states: ['margin', 'variant']
|
||||
});
|
||||
return /*#__PURE__*/React.createElement(_FormLabel.default, (0, _extends2.default)({
|
||||
"data-shrink": shrink,
|
||||
className: (0, _clsx.default)(classes.root, className, muiFormControl && classes.formControl, !disableAnimation && classes.animated, shrink && classes.shrink, fcs.margin === 'dense' && classes.marginDense, {
|
||||
'filled': classes.filled,
|
||||
'outlined': classes.outlined
|
||||
}[fcs.variant]),
|
||||
classes: {
|
||||
focused: classes.focused,
|
||||
disabled: classes.disabled,
|
||||
error: classes.error,
|
||||
required: classes.required,
|
||||
asterisk: classes.asterisk
|
||||
},
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? InputLabel.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The contents of the `InputLabel`.
|
||||
*/
|
||||
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(['primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* If `true`, the transition animation is disabled.
|
||||
*/
|
||||
disableAnimation: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, apply disabled class.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the label will be displayed in an error state.
|
||||
*/
|
||||
error: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the input of this label is focused.
|
||||
*/
|
||||
focused: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
||||
* FormControl.
|
||||
*/
|
||||
margin: _propTypes.default.oneOf(['dense']),
|
||||
|
||||
/**
|
||||
* if `true`, the label will indicate that the input is required.
|
||||
*/
|
||||
required: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the label is shrunk.
|
||||
*/
|
||||
shrink: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['filled', 'outlined', 'standard'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiInputLabel'
|
||||
})(InputLabel);
|
||||
|
||||
exports.default = _default;
|
2
web/node_modules/@material-ui/core/InputLabel/index.d.ts
generated
vendored
Normal file
2
web/node_modules/@material-ui/core/InputLabel/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default } from './InputLabel';
|
||||
export * from './InputLabel';
|
15
web/node_modules/@material-ui/core/InputLabel/index.js
generated
vendored
Normal file
15
web/node_modules/@material-ui/core/InputLabel/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 _InputLabel.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _InputLabel = _interopRequireDefault(require("./InputLabel"));
|
5
web/node_modules/@material-ui/core/InputLabel/package.json
generated
vendored
Normal file
5
web/node_modules/@material-ui/core/InputLabel/package.json
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/InputLabel/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue