0.2.0 - Mid migration

This commit is contained in:
Daniel Mason 2022-04-25 14:47:15 +12:00
parent 139e6a915e
commit 7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions

42
web/node_modules/@material-ui/core/Step/Step.d.ts generated vendored Normal file
View file

@ -0,0 +1,42 @@
import * as React from 'react';
import { StandardProps } from '..';
import { Orientation } from '../Stepper';
export interface StepProps
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, StepClasskey> {
/**
* Sets the step as active. Is passed to child components.
*/
active?: boolean;
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
children?: React.ReactNode;
/**
* Mark the step as completed. Is passed to child components.
*/
completed?: boolean;
/**
* Mark the step as disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled?: boolean;
/**
* Expand the step.
*/
expanded?: boolean;
}
export type StepClasskey = 'root' | 'horizontal' | 'vertical' | 'alternativeLabel' | 'completed';
/**
*
* Demos:
*
* - [Steppers](https://material-ui.com/components/steppers/)
*
* API:
*
* - [Step API](https://material-ui.com/api/step/)
*/
export default function Step(props: StepProps): JSX.Element;

155
web/node_modules/@material-ui/core/Step/Step.js generated vendored Normal file
View file

@ -0,0 +1,155 @@
"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 _reactIs = require("react-is");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _clsx = _interopRequireDefault(require("clsx"));
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
var styles = {
/* Styles applied to the root element. */
root: {},
/* Styles applied to the root element if `orientation="horizontal"`. */
horizontal: {
paddingLeft: 8,
paddingRight: 8
},
/* Styles applied to the root element if `orientation="vertical"`. */
vertical: {},
/* Styles applied to the root element if `alternativeLabel={true}`. */
alternativeLabel: {
flex: 1,
position: 'relative'
},
/* Pseudo-class applied to the root element if `completed={true}`. */
completed: {}
};
exports.styles = styles;
var Step = /*#__PURE__*/React.forwardRef(function Step(props, ref) {
var _props$active = props.active,
active = _props$active === void 0 ? false : _props$active,
alternativeLabel = props.alternativeLabel,
children = props.children,
classes = props.classes,
className = props.className,
_props$completed = props.completed,
completed = _props$completed === void 0 ? false : _props$completed,
connectorProp = props.connector,
_props$disabled = props.disabled,
disabled = _props$disabled === void 0 ? false : _props$disabled,
_props$expanded = props.expanded,
expanded = _props$expanded === void 0 ? false : _props$expanded,
index = props.index,
last = props.last,
orientation = props.orientation,
other = (0, _objectWithoutProperties2.default)(props, ["active", "alternativeLabel", "children", "classes", "className", "completed", "connector", "disabled", "expanded", "index", "last", "orientation"]);
var connector = connectorProp ? /*#__PURE__*/React.cloneElement(connectorProp, {
orientation: orientation,
alternativeLabel: alternativeLabel,
index: index,
active: active,
completed: completed,
disabled: disabled
}) : null;
var newChildren = /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
className: (0, _clsx.default)(classes.root, classes[orientation], className, alternativeLabel && classes.alternativeLabel, completed && classes.completed),
ref: ref
}, other), connector && alternativeLabel && index !== 0 ? connector : null, React.Children.map(children, function (child) {
if (! /*#__PURE__*/React.isValidElement(child)) {
return null;
}
if (process.env.NODE_ENV !== 'production') {
if ((0, _reactIs.isFragment)(child)) {
console.error(["Material-UI: The Step component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
}
}
return /*#__PURE__*/React.cloneElement(child, (0, _extends2.default)({
active: active,
alternativeLabel: alternativeLabel,
completed: completed,
disabled: disabled,
expanded: expanded,
last: last,
icon: index + 1,
orientation: orientation
}, child.props));
}));
if (connector && !alternativeLabel && index !== 0) {
return /*#__PURE__*/React.createElement(React.Fragment, null, connector, newChildren);
}
return newChildren;
});
process.env.NODE_ENV !== "production" ? Step.propTypes = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit the d.ts file and run "yarn proptypes" |
// ----------------------------------------------------------------------
/**
* Sets the step as active. Is passed to child components.
*/
active: _propTypes.default.bool,
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
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,
/**
* Mark the step as completed. Is passed to child components.
*/
completed: _propTypes.default.bool,
/**
* Mark the step as disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled: _propTypes.default.bool,
/**
* Expand the step.
*/
expanded: _propTypes.default.bool
} : void 0;
var _default = (0, _withStyles.default)(styles, {
name: 'MuiStep'
})(Step);
exports.default = _default;

2
web/node_modules/@material-ui/core/Step/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,2 @@
export { default } from './Step';
export * from './Step';

15
web/node_modules/@material-ui/core/Step/index.js generated vendored Normal file
View 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 _Step.default;
}
});
var _Step = _interopRequireDefault(require("./Step"));

5
web/node_modules/@material-ui/core/Step/package.json generated vendored Normal file
View file

@ -0,0 +1,5 @@
{
"sideEffects": false,
"module": "../esm/Step/index.js",
"typings": "./index.d.ts"
}