worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
59
node_modules/@mui/material/esm/InputAdornment/InputAdornment.d.ts
generated
vendored
Normal file
59
node_modules/@mui/material/esm/InputAdornment/InputAdornment.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { InputAdornmentClasses } from "./inputAdornmentClasses.js";
|
||||
export interface InputAdornmentOwnProps {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<InputAdornmentClasses>;
|
||||
/**
|
||||
* The content of the component, normally an `IconButton` or string.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Disable pointer events on the root.
|
||||
* This allows for the content of the adornment to focus the `input` on click.
|
||||
* @default false
|
||||
*/
|
||||
disablePointerEvents?: boolean;
|
||||
/**
|
||||
* If children is a string then disable wrapping in a Typography component.
|
||||
* @default false
|
||||
*/
|
||||
disableTypography?: boolean;
|
||||
/**
|
||||
* The position this adornment should appear relative to the `Input`.
|
||||
*/
|
||||
position: 'start' | 'end';
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* The variant to use.
|
||||
* Note: If you are using the `TextField` component or the `FormControl` component
|
||||
* you do not have to set this manually.
|
||||
*/
|
||||
variant?: 'standard' | 'outlined' | 'filled';
|
||||
}
|
||||
export interface InputAdornmentTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
||||
props: AdditionalProps & InputAdornmentOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Text Field](https://mui.com/material-ui/react-text-field/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [InputAdornment API](https://mui.com/material-ui/api/input-adornment/)
|
||||
*/
|
||||
declare const InputAdornment: OverridableComponent<InputAdornmentTypeMap>;
|
||||
export type InputAdornmentProps<RootComponent extends React.ElementType = InputAdornmentTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<InputAdornmentTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export default InputAdornment;
|
||||
186
node_modules/@mui/material/esm/InputAdornment/InputAdornment.js
generated
vendored
Normal file
186
node_modules/@mui/material/esm/InputAdornment/InputAdornment.js
generated
vendored
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
'use client';
|
||||
|
||||
var _span;
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import capitalize from "../utils/capitalize.js";
|
||||
import Typography from "../Typography/index.js";
|
||||
import FormControlContext from "../FormControl/FormControlContext.js";
|
||||
import useFormControl from "../FormControl/useFormControl.js";
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import memoTheme from "../utils/memoTheme.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import inputAdornmentClasses, { getInputAdornmentUtilityClass } from "./inputAdornmentClasses.js";
|
||||
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const overridesResolver = (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];
|
||||
};
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
disablePointerEvents,
|
||||
hiddenLabel,
|
||||
position,
|
||||
size,
|
||||
variant
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]
|
||||
};
|
||||
return composeClasses(slots, getInputAdornmentUtilityClass, classes);
|
||||
};
|
||||
const InputAdornmentRoot = styled('div', {
|
||||
name: 'MuiInputAdornment',
|
||||
slot: 'Root',
|
||||
overridesResolver
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
maxHeight: '2em',
|
||||
alignItems: 'center',
|
||||
whiteSpace: 'nowrap',
|
||||
color: (theme.vars || theme).palette.action.active,
|
||||
variants: [{
|
||||
props: {
|
||||
variant: 'filled'
|
||||
},
|
||||
style: {
|
||||
[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {
|
||||
marginTop: 16
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'start'
|
||||
},
|
||||
style: {
|
||||
marginRight: 8
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'end'
|
||||
},
|
||||
style: {
|
||||
marginLeft: 8
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
disablePointerEvents: true
|
||||
},
|
||||
style: {
|
||||
pointerEvents: 'none'
|
||||
}
|
||||
}]
|
||||
})));
|
||||
const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiInputAdornment'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'div',
|
||||
disablePointerEvents = false,
|
||||
disableTypography = false,
|
||||
position,
|
||||
variant: variantProp,
|
||||
...other
|
||||
} = props;
|
||||
const muiFormControl = useFormControl() || {};
|
||||
let variant = variantProp;
|
||||
if (variantProp && muiFormControl.variant) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (variantProp === muiFormControl.variant) {
|
||||
console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (muiFormControl && !variant) {
|
||||
variant = muiFormControl.variant;
|
||||
}
|
||||
const ownerState = {
|
||||
...props,
|
||||
hiddenLabel: muiFormControl.hiddenLabel,
|
||||
size: muiFormControl.size,
|
||||
disablePointerEvents,
|
||||
position,
|
||||
variant
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(FormControlContext.Provider, {
|
||||
value: null,
|
||||
children: /*#__PURE__*/_jsx(InputAdornmentRoot, {
|
||||
as: component,
|
||||
ownerState: ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
...other,
|
||||
children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {
|
||||
color: "textSecondary",
|
||||
children: children
|
||||
}) : /*#__PURE__*/_jsxs(React.Fragment, {
|
||||
children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
|
||||
className: "notranslate",
|
||||
"aria-hidden": true,
|
||||
children: "\u200B"
|
||||
}))) : null, children]
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? InputAdornment.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* The content of the component, normally an `IconButton` or string.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* Disable pointer events on the root.
|
||||
* This allows for the content of the adornment to focus the `input` on click.
|
||||
* @default false
|
||||
*/
|
||||
disablePointerEvents: PropTypes.bool,
|
||||
/**
|
||||
* If children is a string then disable wrapping in a Typography component.
|
||||
* @default false
|
||||
*/
|
||||
disableTypography: PropTypes.bool,
|
||||
/**
|
||||
* The position this adornment should appear relative to the `Input`.
|
||||
*/
|
||||
position: PropTypes.oneOf(['end', 'start']).isRequired,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
||||
/**
|
||||
* The variant to use.
|
||||
* Note: If you are using the `TextField` component or the `FormControl` component
|
||||
* you do not have to set this manually.
|
||||
*/
|
||||
variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
|
||||
} : void 0;
|
||||
export default InputAdornment;
|
||||
4
node_modules/@mui/material/esm/InputAdornment/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/esm/InputAdornment/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export * from "./InputAdornment.js";
|
||||
export { default } from "./InputAdornment.js";
|
||||
export { default as inputAdornmentClasses } from "./inputAdornmentClasses.js";
|
||||
export * from "./inputAdornmentClasses.js";
|
||||
3
node_modules/@mui/material/esm/InputAdornment/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/esm/InputAdornment/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { default } from "./InputAdornment.js";
|
||||
export { default as inputAdornmentClasses } from "./inputAdornmentClasses.js";
|
||||
export * from "./inputAdornmentClasses.js";
|
||||
24
node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.d.ts
generated
vendored
Normal file
24
node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
export interface InputAdornmentClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `variant="filled"`. */
|
||||
filled: string;
|
||||
/** Styles applied to the root element if `variant="outlined"`. */
|
||||
outlined: string;
|
||||
/** Styles applied to the root element if `variant="standard"`. */
|
||||
standard: string;
|
||||
/** Styles applied to the root element if `position="start"`. */
|
||||
positionStart: string;
|
||||
/** Styles applied to the root element if `position="end"`. */
|
||||
positionEnd: string;
|
||||
/** Styles applied to the root element if `disablePointerEvents={true}`. */
|
||||
disablePointerEvents: string;
|
||||
/** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
|
||||
hiddenLabel: string;
|
||||
/** Styles applied if the adornment is used inside <FormControl size="small" />. */
|
||||
sizeSmall: string;
|
||||
}
|
||||
export type InputAdornmentClassKey = keyof InputAdornmentClasses;
|
||||
export declare function getInputAdornmentUtilityClass(slot: string): string;
|
||||
declare const inputAdornmentClasses: InputAdornmentClasses;
|
||||
export default inputAdornmentClasses;
|
||||
7
node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getInputAdornmentUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiInputAdornment', slot);
|
||||
}
|
||||
const inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);
|
||||
export default inputAdornmentClasses;
|
||||
Loading…
Add table
Add a link
Reference in a new issue