Začetni commit projekta rezervacije

This commit is contained in:
Mark Poljanšek committed 2025-04-23 20:19:33 +02:00
commit 328731b32f
56062 files changed
+2485242

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../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;
+4
View 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";
+16
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;