1
0
Fork 0

worked on GarageApp stuff

This commit is contained in:
Techognito 2025-08-25 17:46:11 +02:00
parent 60aaf17af3
commit eb606572b0
51919 changed files with 2168177 additions and 18 deletions

83
node_modules/@mui/material/TableCell/TableCell.d.ts generated vendored Normal file
View file

@ -0,0 +1,83 @@
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { Theme } from "../styles/index.js";
import { InternalStandardProps as StandardProps } from "../internal/index.js";
import { TableCellClasses } from "./tableCellClasses.js";
export interface TableCellPropsSizeOverrides {}
export interface TableCellPropsVariantOverrides {}
/**
* `<TableCell>` will be rendered as an `<th>`or `<td>` depending
* on the context it is used in. Where context literally is the
* React `context`.
*
* Since it is not decided via prop, we have create loose typings
* here.
*/
export interface TableCellProps extends StandardProps<TableCellBaseProps, 'align'> {
/**
* Set the text-align on the table cell content.
*
* Monetary or generally number fields **should be right aligned** as that allows
* you to add them up quickly in your head without having to worry about decimals.
* @default 'inherit'
*/
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TableCellClasses>;
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component?: React.ElementType<TableCellBaseProps>;
/**
* Sets the padding applied to the cell.
* The prop defaults to the value (`'default'`) inherited from the parent Table component.
*/
padding?: 'normal' | 'checkbox' | 'none';
/**
* Set scope attribute.
*/
scope?: TableCellBaseProps['scope'];
/**
* Specify the size of the cell.
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
*/
size?: OverridableStringUnion<'small' | 'medium', TableCellPropsSizeOverrides>;
/**
* Set aria-sort direction.
*/
sortDirection?: SortDirection;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* Specify the cell type.
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
*/
variant?: OverridableStringUnion<'head' | 'body' | 'footer', TableCellPropsVariantOverrides>;
}
export type TableCellBaseProps = React.ThHTMLAttributes<HTMLTableCellElement> & React.TdHTMLAttributes<HTMLTableCellElement>;
export type SortDirection = 'asc' | 'desc' | false;
/**
* The component renders a `<th>` element when the parent context is a header
* or otherwise a `<td>` element.
*
* Demos:
*
* - [Table](https://mui.com/material-ui/react-table/)
*
* API:
*
* - [TableCell API](https://mui.com/material-ui/api/table-cell/)
*/
export default function TableCell(props: TableCellProps): React.JSX.Element;

276
node_modules/@mui/material/TableCell/TableCell.js generated vendored Normal file
View file

@ -0,0 +1,276 @@
"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 _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
var _TableContext = _interopRequireDefault(require("../Table/TableContext"));
var _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
var _zeroStyled = require("../zero-styled");
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
var _DefaultPropsProvider = require("../DefaultPropsProvider");
var _tableCellClasses = _interopRequireWildcard(require("./tableCellClasses"));
var _jsxRuntime = require("react/jsx-runtime");
const useUtilityClasses = ownerState => {
const {
classes,
variant,
align,
padding,
size,
stickyHeader
} = ownerState;
const slots = {
root: ['root', variant, stickyHeader && 'stickyHeader', align !== 'inherit' && `align${(0, _capitalize.default)(align)}`, padding !== 'normal' && `padding${(0, _capitalize.default)(padding)}`, `size${(0, _capitalize.default)(size)}`]
};
return (0, _composeClasses.default)(slots, _tableCellClasses.getTableCellUtilityClass, classes);
};
const TableCellRoot = (0, _zeroStyled.styled)('td', {
name: 'MuiTableCell',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, styles[ownerState.variant], styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.padding !== 'normal' && styles[`padding${(0, _capitalize.default)(ownerState.padding)}`], ownerState.align !== 'inherit' && styles[`align${(0, _capitalize.default)(ownerState.align)}`], ownerState.stickyHeader && styles.stickyHeader];
}
})((0, _memoTheme.default)(({
theme
}) => ({
...theme.typography.body2,
display: 'table-cell',
verticalAlign: 'inherit',
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid
${theme.palette.mode === 'light' ? theme.lighten(theme.alpha(theme.palette.divider, 1), 0.88) : theme.darken(theme.alpha(theme.palette.divider, 1), 0.68)}`,
textAlign: 'left',
padding: 16,
variants: [{
props: {
variant: 'head'
},
style: {
color: (theme.vars || theme).palette.text.primary,
lineHeight: theme.typography.pxToRem(24),
fontWeight: theme.typography.fontWeightMedium
}
}, {
props: {
variant: 'body'
},
style: {
color: (theme.vars || theme).palette.text.primary
}
}, {
props: {
variant: 'footer'
},
style: {
color: (theme.vars || theme).palette.text.secondary,
lineHeight: theme.typography.pxToRem(21),
fontSize: theme.typography.pxToRem(12)
}
}, {
props: {
size: 'small'
},
style: {
padding: '6px 16px',
[`&.${_tableCellClasses.default.paddingCheckbox}`]: {
width: 24,
// prevent the checkbox column from growing
padding: '0 12px 0 16px',
'& > *': {
padding: 0
}
}
}
}, {
props: {
padding: 'checkbox'
},
style: {
width: 48,
// prevent the checkbox column from growing
padding: '0 0 0 4px'
}
}, {
props: {
padding: 'none'
},
style: {
padding: 0
}
}, {
props: {
align: 'left'
},
style: {
textAlign: 'left'
}
}, {
props: {
align: 'center'
},
style: {
textAlign: 'center'
}
}, {
props: {
align: 'right'
},
style: {
textAlign: 'right',
flexDirection: 'row-reverse'
}
}, {
props: {
align: 'justify'
},
style: {
textAlign: 'justify'
}
}, {
props: ({
ownerState
}) => ownerState.stickyHeader,
style: {
position: 'sticky',
top: 0,
zIndex: 2,
backgroundColor: (theme.vars || theme).palette.background.default
}
}]
})));
/**
* The component renders a `<th>` element when the parent context is a header
* or otherwise a `<td>` element.
*/
const TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {
const props = (0, _DefaultPropsProvider.useDefaultProps)({
props: inProps,
name: 'MuiTableCell'
});
const {
align = 'inherit',
className,
component: componentProp,
padding: paddingProp,
scope: scopeProp,
size: sizeProp,
sortDirection,
variant: variantProp,
...other
} = props;
const table = React.useContext(_TableContext.default);
const tablelvl2 = React.useContext(_Tablelvl2Context.default);
const isHeadCell = tablelvl2 && tablelvl2.variant === 'head';
let component;
if (componentProp) {
component = componentProp;
} else {
component = isHeadCell ? 'th' : 'td';
}
let scope = scopeProp;
// scope is not a valid attribute for <td/> elements.
// source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element
if (component === 'td') {
scope = undefined;
} else if (!scope && isHeadCell) {
scope = 'col';
}
const variant = variantProp || tablelvl2 && tablelvl2.variant;
const ownerState = {
...props,
align,
component,
padding: paddingProp || (table && table.padding ? table.padding : 'normal'),
size: sizeProp || (table && table.size ? table.size : 'medium'),
sortDirection,
stickyHeader: variant === 'head' && table && table.stickyHeader,
variant
};
const classes = useUtilityClasses(ownerState);
let ariaSort = null;
if (sortDirection) {
ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending';
}
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TableCellRoot, {
as: component,
ref: ref,
className: (0, _clsx.default)(classes.root, className),
"aria-sort": ariaSort,
scope: scope,
ownerState: ownerState,
...other
});
});
process.env.NODE_ENV !== "production" ? TableCell.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Set the text-align on the table cell content.
*
* Monetary or generally number fields **should be right aligned** as that allows
* you to add them up quickly in your head without having to worry about decimals.
* @default 'inherit'
*/
align: _propTypes.default.oneOf(['center', 'inherit', 'justify', 'left', 'right']),
/**
* The content of the component.
*/
children: _propTypes.default.node,
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: _propTypes.default.elementType,
/**
* Sets the padding applied to the cell.
* The prop defaults to the value (`'default'`) inherited from the parent Table component.
*/
padding: _propTypes.default.oneOf(['checkbox', 'none', 'normal']),
/**
* Set scope attribute.
*/
scope: _propTypes.default.string,
/**
* Specify the size of the cell.
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
*/
size: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['medium', 'small']), _propTypes.default.string]),
/**
* Set aria-sort direction.
*/
sortDirection: _propTypes.default.oneOf(['asc', 'desc', false]),
/**
* 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]),
/**
* Specify the cell type.
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
*/
variant: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['body', 'footer', 'head']), _propTypes.default.string])
} : void 0;
var _default = exports.default = TableCell;

4
node_modules/@mui/material/TableCell/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
export { default } from "./TableCell.js";
export * from "./TableCell.js";
export { default as tableCellClasses } from "./tableCellClasses.js";
export * from "./tableCellClasses.js";

35
node_modules/@mui/material/TableCell/index.js generated vendored Normal file
View 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 = {
tableCellClasses: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _TableCell.default;
}
});
Object.defineProperty(exports, "tableCellClasses", {
enumerable: true,
get: function () {
return _tableCellClasses.default;
}
});
var _TableCell = _interopRequireDefault(require("./TableCell"));
var _tableCellClasses = _interopRequireWildcard(require("./tableCellClasses"));
Object.keys(_tableCellClasses).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _tableCellClasses[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tableCellClasses[key];
}
});
});

View file

@ -0,0 +1,32 @@
export interface TableCellClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `variant="head"` or `context.table.head`. */
head: string;
/** Styles applied to the root element if `variant="body"` or `context.table.body`. */
body: string;
/** Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
footer: string;
/** Styles applied to the root element if `size="small"`. */
sizeSmall: string;
/** Styles applied to the root element if `size="medium"`. */
sizeMedium: string;
/** Styles applied to the root element if `padding="checkbox"`. */
paddingCheckbox: string;
/** Styles applied to the root element if `padding="none"`. */
paddingNone: string;
/** Styles applied to the root element if `align="left"`. */
alignLeft: string;
/** Styles applied to the root element if `align="center"`. */
alignCenter: string;
/** Styles applied to the root element if `align="right"`. */
alignRight: string;
/** Styles applied to the root element if `align="justify"`. */
alignJustify: string;
/** Styles applied to the root element if `context.table.stickyHeader={true}`. */
stickyHeader: string;
}
export type TableCellClassKey = keyof TableCellClasses;
export declare function getTableCellUtilityClass(slot: string): string;
declare const tableCellClasses: TableCellClasses;
export default tableCellClasses;

View 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.getTableCellUtilityClass = getTableCellUtilityClass;
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
function getTableCellUtilityClass(slot) {
return (0, _generateUtilityClass.default)('MuiTableCell', slot);
}
const tableCellClasses = (0, _generateUtilityClasses.default)('MuiTableCell', ['root', 'head', 'body', 'footer', 'sizeSmall', 'sizeMedium', 'paddingCheckbox', 'paddingNone', 'alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'stickyHeader']);
var _default = exports.default = tableCellClasses;