Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 deletions

60
node_modules/@mui/material/TableRow/TableRow.d.ts generated vendored Normal file
View File

@@ -0,0 +1,60 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from '..';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
import { TableRowClasses } from './tableRowClasses';
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;

127
node_modules/@mui/material/TableRow/TableRow.js generated vendored Normal file
View File

@@ -0,0 +1,127 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import composeClasses from '@mui/utils/composeClasses';
import { alpha } from '@mui/system/colorManipulator';
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.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
'&:hover': {
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + 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;

5
node_modules/@mui/material/TableRow/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
export { default } from './TableRow';
export * from './TableRow';
export { default as tableRowClasses } from './tableRowClasses';
export * from './tableRowClasses';

3
node_modules/@mui/material/TableRow/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export { default } from "./TableRow.js";
export { default as tableRowClasses } from "./tableRowClasses.js";
export * from "./tableRowClasses.js";

6
node_modules/@mui/material/TableRow/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/TableRow/index.js",
"types": "./index.d.ts"
}

View 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;

View 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;