worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
50
node_modules/@mui/material/esm/TableRow/TableRow.d.ts
generated
vendored
Normal file
50
node_modules/@mui/material/esm/TableRow/TableRow.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { TableRowClasses } from "./tableRowClasses.js";
|
||||
export interface TableRowOwnProps {
|
||||
/**
|
||||
* Should be valid `<tr>` children such as `TableCell`.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<TableRowClasses>;
|
||||
/**
|
||||
* If `true`, the table row will shade on hover.
|
||||
* @default false
|
||||
*/
|
||||
hover?: boolean;
|
||||
/**
|
||||
* If `true`, the table row will have the selected shading.
|
||||
* @default false
|
||||
*/
|
||||
selected?: boolean;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
export interface TableRowTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'tr'> {
|
||||
props: AdditionalProps & TableRowOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
/**
|
||||
* Will automatically set dynamic row height
|
||||
* based on the material table element parent (head, body, etc).
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Table](https://mui.com/material-ui/react-table/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [TableRow API](https://mui.com/material-ui/api/table-row/)
|
||||
*/
|
||||
declare const TableRow: OverridableComponent<TableRowTypeMap>;
|
||||
export type TableRowProps<RootComponent extends React.ElementType = TableRowTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<TableRowTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export default TableRow;
|
||||
126
node_modules/@mui/material/esm/TableRow/TableRow.js
generated
vendored
Normal file
126
node_modules/@mui/material/esm/TableRow/TableRow.js
generated
vendored
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import Tablelvl2Context from "../Table/Tablelvl2Context.js";
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import memoTheme from "../utils/memoTheme.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import tableRowClasses, { getTableRowUtilityClass } from "./tableRowClasses.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
selected,
|
||||
hover,
|
||||
head,
|
||||
footer
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', selected && 'selected', hover && 'hover', head && 'head', footer && 'footer']
|
||||
};
|
||||
return composeClasses(slots, getTableRowUtilityClass, classes);
|
||||
};
|
||||
const TableRowRoot = styled('tr', {
|
||||
name: 'MuiTableRow',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, ownerState.head && styles.head, ownerState.footer && styles.footer];
|
||||
}
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => ({
|
||||
color: 'inherit',
|
||||
display: 'table-row',
|
||||
verticalAlign: 'middle',
|
||||
// We disable the focus ring for mouse, touch and keyboard users.
|
||||
outline: 0,
|
||||
[`&.${tableRowClasses.hover}:hover`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.hover
|
||||
},
|
||||
[`&.${tableRowClasses.selected}`]: {
|
||||
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
||||
'&:hover': {
|
||||
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`)
|
||||
}
|
||||
}
|
||||
})));
|
||||
const defaultComponent = 'tr';
|
||||
/**
|
||||
* Will automatically set dynamic row height
|
||||
* based on the material table element parent (head, body, etc).
|
||||
*/
|
||||
const TableRow = /*#__PURE__*/React.forwardRef(function TableRow(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiTableRow'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
component = defaultComponent,
|
||||
hover = false,
|
||||
selected = false,
|
||||
...other
|
||||
} = props;
|
||||
const tablelvl2 = React.useContext(Tablelvl2Context);
|
||||
const ownerState = {
|
||||
...props,
|
||||
component,
|
||||
hover,
|
||||
selected,
|
||||
head: tablelvl2 && tablelvl2.variant === 'head',
|
||||
footer: tablelvl2 && tablelvl2.variant === 'footer'
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(TableRowRoot, {
|
||||
as: component,
|
||||
ref: ref,
|
||||
className: clsx(classes.root, className),
|
||||
role: component === defaultComponent ? null : 'row',
|
||||
ownerState: ownerState,
|
||||
...other
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? TableRow.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Should be valid `<tr>` children such as `TableCell`.
|
||||
*/
|
||||
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,
|
||||
/**
|
||||
* If `true`, the table row will shade on hover.
|
||||
* @default false
|
||||
*/
|
||||
hover: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the table row will have the selected shading.
|
||||
* @default false
|
||||
*/
|
||||
selected: PropTypes.bool,
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default TableRow;
|
||||
4
node_modules/@mui/material/esm/TableRow/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/esm/TableRow/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./TableRow.js";
|
||||
export * from "./TableRow.js";
|
||||
export { default as tableRowClasses } from "./tableRowClasses.js";
|
||||
export * from "./tableRowClasses.js";
|
||||
3
node_modules/@mui/material/esm/TableRow/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/esm/TableRow/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { default } from "./TableRow.js";
|
||||
export { default as tableRowClasses } from "./tableRowClasses.js";
|
||||
export * from "./tableRowClasses.js";
|
||||
16
node_modules/@mui/material/esm/TableRow/tableRowClasses.d.ts
generated
vendored
Normal file
16
node_modules/@mui/material/esm/TableRow/tableRowClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
export interface TableRowClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** State class applied to the root element if `selected={true}`. */
|
||||
selected: string;
|
||||
/** State class applied to the root element if `hover={true}`. */
|
||||
hover: string;
|
||||
/** Styles applied to the root element if table variant="head". */
|
||||
head: string;
|
||||
/** Styles applied to the root element if table variant="footer". */
|
||||
footer: string;
|
||||
}
|
||||
export type TableRowClassKey = keyof TableRowClasses;
|
||||
export declare function getTableRowUtilityClass(slot: string): string;
|
||||
declare const tableRowClasses: TableRowClasses;
|
||||
export default tableRowClasses;
|
||||
7
node_modules/@mui/material/esm/TableRow/tableRowClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/esm/TableRow/tableRowClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getTableRowUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiTableRow', slot);
|
||||
}
|
||||
const tableRowClasses = generateUtilityClasses('MuiTableRow', ['root', 'selected', 'hover', 'head', 'footer']);
|
||||
export default tableRowClasses;
|
||||
Loading…
Add table
Add a link
Reference in a new issue