worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
72
node_modules/@mui/material/CircularProgress/CircularProgress.d.ts
generated
vendored
Normal file
72
node_modules/@mui/material/CircularProgress/CircularProgress.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { OverridableStringUnion } from '@mui/types';
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
||||
import { CircularProgressClasses } from "./circularProgressClasses.js";
|
||||
export interface CircularProgressPropsColorOverrides {}
|
||||
export interface CircularProgressPropsVariantOverrides {}
|
||||
export interface CircularProgressProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<CircularProgressClasses>;
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit', CircularProgressPropsColorOverrides>;
|
||||
/**
|
||||
* If `true`, the shrink animation is disabled.
|
||||
* This only works if variant is `indeterminate`.
|
||||
* @default false
|
||||
*/
|
||||
disableShrink?: boolean;
|
||||
/**
|
||||
* The size of the component.
|
||||
* If using a number, the pixel unit is assumed.
|
||||
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
||||
* @default 40
|
||||
*/
|
||||
size?: number | string;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* The thickness of the circle.
|
||||
* @default 3.6
|
||||
*/
|
||||
thickness?: number;
|
||||
/**
|
||||
* The value of the progress indicator for the determinate variant.
|
||||
* Value between 0 and 100.
|
||||
* @default 0
|
||||
*/
|
||||
value?: number;
|
||||
/**
|
||||
* The variant to use.
|
||||
* Use indeterminate when there is no progress value.
|
||||
* @default 'indeterminate'
|
||||
*/
|
||||
variant?: OverridableStringUnion<'determinate' | 'indeterminate', CircularProgressPropsVariantOverrides>;
|
||||
}
|
||||
|
||||
/**
|
||||
* ## ARIA
|
||||
*
|
||||
* If the progress bar is describing the loading progress of a particular region of a page,
|
||||
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
||||
* attribute to `true` on that region until it has finished loading.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Progress](https://mui.com/material-ui/react-progress/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CircularProgress API](https://mui.com/material-ui/api/circular-progress/)
|
||||
*/
|
||||
export default function CircularProgress(props: CircularProgressProps): React.JSX.Element;
|
||||
291
node_modules/@mui/material/CircularProgress/CircularProgress.js
generated
vendored
Normal file
291
node_modules/@mui/material/CircularProgress/CircularProgress.js
generated
vendored
Normal file
|
|
@ -0,0 +1,291 @@
|
|||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
||||
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
||||
var _zeroStyled = require("../zero-styled");
|
||||
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
||||
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
||||
var _circularProgressClasses = require("./circularProgressClasses");
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
const SIZE = 44;
|
||||
const circularRotateKeyframe = (0, _zeroStyled.keyframes)`
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`;
|
||||
const circularDashKeyframe = (0, _zeroStyled.keyframes)`
|
||||
0% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -15px;
|
||||
}
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: -126px;
|
||||
}
|
||||
`;
|
||||
|
||||
// This implementation is for supporting both Styled-components v4+ and Pigment CSS.
|
||||
// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).
|
||||
// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).
|
||||
const rotateAnimation = typeof circularRotateKeyframe !== 'string' ? (0, _zeroStyled.css)`
|
||||
animation: ${circularRotateKeyframe} 1.4s linear infinite;
|
||||
` : null;
|
||||
const dashAnimation = typeof circularDashKeyframe !== 'string' ? (0, _zeroStyled.css)`
|
||||
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
||||
` : null;
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
variant,
|
||||
color,
|
||||
disableShrink
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, `color${(0, _capitalize.default)(color)}`],
|
||||
svg: ['svg'],
|
||||
circle: ['circle', `circle${(0, _capitalize.default)(variant)}`, disableShrink && 'circleDisableShrink']
|
||||
};
|
||||
return (0, _composeClasses.default)(slots, _circularProgressClasses.getCircularProgressUtilityClass, classes);
|
||||
};
|
||||
const CircularProgressRoot = (0, _zeroStyled.styled)('span', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.variant], styles[`color${(0, _capitalize.default)(ownerState.color)}`]];
|
||||
}
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'inline-block',
|
||||
variants: [{
|
||||
props: {
|
||||
variant: 'determinate'
|
||||
},
|
||||
style: {
|
||||
transition: theme.transitions.create('transform')
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'indeterminate'
|
||||
},
|
||||
style: rotateAnimation || {
|
||||
animation: `${circularRotateKeyframe} 1.4s linear infinite`
|
||||
}
|
||||
}, ...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)()).map(([color]) => ({
|
||||
props: {
|
||||
color
|
||||
},
|
||||
style: {
|
||||
color: (theme.vars || theme).palette[color].main
|
||||
}
|
||||
}))]
|
||||
})));
|
||||
const CircularProgressSVG = (0, _zeroStyled.styled)('svg', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Svg'
|
||||
})({
|
||||
display: 'block' // Keeps the progress centered
|
||||
});
|
||||
const CircularProgressCircle = (0, _zeroStyled.styled)('circle', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Circle',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.circle, styles[`circle${(0, _capitalize.default)(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];
|
||||
}
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
stroke: 'currentColor',
|
||||
variants: [{
|
||||
props: {
|
||||
variant: 'determinate'
|
||||
},
|
||||
style: {
|
||||
transition: theme.transitions.create('stroke-dashoffset')
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'indeterminate'
|
||||
},
|
||||
style: {
|
||||
// Some default value that looks fine waiting for the animation to kicks in.
|
||||
strokeDasharray: '80px, 200px',
|
||||
strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink,
|
||||
style: dashAnimation || {
|
||||
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
||||
animation: `${circularDashKeyframe} 1.4s ease-in-out infinite`
|
||||
}
|
||||
}]
|
||||
})));
|
||||
|
||||
/**
|
||||
* ## ARIA
|
||||
*
|
||||
* If the progress bar is describing the loading progress of a particular region of a page,
|
||||
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
||||
* attribute to `true` on that region until it has finished loading.
|
||||
*/
|
||||
const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {
|
||||
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
||||
props: inProps,
|
||||
name: 'MuiCircularProgress'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
color = 'primary',
|
||||
disableShrink = false,
|
||||
size = 40,
|
||||
style,
|
||||
thickness = 3.6,
|
||||
value = 0,
|
||||
variant = 'indeterminate',
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
disableShrink,
|
||||
size,
|
||||
thickness,
|
||||
value,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const circleStyle = {};
|
||||
const rootStyle = {};
|
||||
const rootProps = {};
|
||||
if (variant === 'determinate') {
|
||||
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
||||
circleStyle.strokeDasharray = circumference.toFixed(3);
|
||||
rootProps['aria-valuenow'] = Math.round(value);
|
||||
circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;
|
||||
rootStyle.transform = 'rotate(-90deg)';
|
||||
}
|
||||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CircularProgressRoot, {
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
style: {
|
||||
width: size,
|
||||
height: size,
|
||||
...rootStyle,
|
||||
...style
|
||||
},
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
role: "progressbar",
|
||||
...rootProps,
|
||||
...other,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CircularProgressSVG, {
|
||||
className: classes.svg,
|
||||
ownerState: ownerState,
|
||||
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CircularProgressCircle, {
|
||||
className: classes.circle,
|
||||
style: circleStyle,
|
||||
ownerState: ownerState,
|
||||
cx: SIZE,
|
||||
cy: SIZE,
|
||||
r: (SIZE - thickness) / 2,
|
||||
fill: "none",
|
||||
strokeWidth: thickness
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-proptypes */ = {
|
||||
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
||||
// │ These PropTypes are generated from the TypeScript type definitions. │
|
||||
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
||||
/**
|
||||
* If `true`, the shrink animation is disabled.
|
||||
* This only works if variant is `indeterminate`.
|
||||
* @default false
|
||||
*/
|
||||
disableShrink: (0, _chainPropTypes.default)(_propTypes.default.bool, props => {
|
||||
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
||||
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* The size of the component.
|
||||
* If using a number, the pixel unit is assumed.
|
||||
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
||||
* @default 40
|
||||
*/
|
||||
size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: _propTypes.default.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
||||
/**
|
||||
* The thickness of the circle.
|
||||
* @default 3.6
|
||||
*/
|
||||
thickness: _propTypes.default.number,
|
||||
/**
|
||||
* The value of the progress indicator for the determinate variant.
|
||||
* Value between 0 and 100.
|
||||
* @default 0
|
||||
*/
|
||||
value: _propTypes.default.number,
|
||||
/**
|
||||
* The variant to use.
|
||||
* Use indeterminate when there is no progress value.
|
||||
* @default 'indeterminate'
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['determinate', 'indeterminate'])
|
||||
} : void 0;
|
||||
var _default = exports.default = CircularProgress;
|
||||
30
node_modules/@mui/material/CircularProgress/circularProgressClasses.d.ts
generated
vendored
Normal file
30
node_modules/@mui/material/CircularProgress/circularProgressClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
export interface CircularProgressClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `variant="determinate"`. */
|
||||
determinate: string;
|
||||
/** Styles applied to the root element if `variant="indeterminate"`. */
|
||||
indeterminate: string;
|
||||
/** Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: string;
|
||||
/** Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: string;
|
||||
/** Styles applied to the svg element. */
|
||||
svg: string;
|
||||
/** Styles applied to the `circle` svg path. */
|
||||
circle: string;
|
||||
/** Styles applied to the `circle` svg path if `variant="determinate"`.
|
||||
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-determinate](/material-ui/api/circular-progress/#circular-progress-classes-determinate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
circleDeterminate: string;
|
||||
/** Styles applied to the `circle` svg path if `variant="indeterminate"`.
|
||||
* @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-indeterminate](/material-ui/api/circular-progress/#circular-progress-classes-indeterminate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
circleIndeterminate: string;
|
||||
/** Styles applied to the `circle` svg path if `disableShrink={true}`. */
|
||||
circleDisableShrink: string;
|
||||
}
|
||||
export type CircularProgressClassKey = keyof CircularProgressClasses;
|
||||
export declare function getCircularProgressUtilityClass(slot: string): string;
|
||||
declare const circularProgressClasses: CircularProgressClasses;
|
||||
export default circularProgressClasses;
|
||||
15
node_modules/@mui/material/CircularProgress/circularProgressClasses.js
generated
vendored
Normal file
15
node_modules/@mui/material/CircularProgress/circularProgressClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
exports.getCircularProgressUtilityClass = getCircularProgressUtilityClass;
|
||||
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
function getCircularProgressUtilityClass(slot) {
|
||||
return (0, _generateUtilityClass.default)('MuiCircularProgress', slot);
|
||||
}
|
||||
const circularProgressClasses = (0, _generateUtilityClasses.default)('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
||||
var _default = exports.default = circularProgressClasses;
|
||||
4
node_modules/@mui/material/CircularProgress/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/CircularProgress/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./CircularProgress.js";
|
||||
export * from "./CircularProgress.js";
|
||||
export { default as circularProgressClasses } from "./circularProgressClasses.js";
|
||||
export * from "./circularProgressClasses.js";
|
||||
35
node_modules/@mui/material/CircularProgress/index.js
generated
vendored
Normal file
35
node_modules/@mui/material/CircularProgress/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
circularProgressClasses: true
|
||||
};
|
||||
Object.defineProperty(exports, "circularProgressClasses", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _circularProgressClasses.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _CircularProgress.default;
|
||||
}
|
||||
});
|
||||
var _CircularProgress = _interopRequireDefault(require("./CircularProgress"));
|
||||
var _circularProgressClasses = _interopRequireWildcard(require("./circularProgressClasses"));
|
||||
Object.keys(_circularProgressClasses).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _circularProgressClasses[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _circularProgressClasses[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue