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

+90
View File
@@ -0,0 +1,90 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../index.js";
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
import { OverrideProps } from "../OverridableComponent/index.js";
import { TableSortLabelClasses } from "./tableSortLabelClasses.js";
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
export interface TableSortLabelRootSlotPropsOverrides {}
export interface TableSortLabelIconSlotPropsOverrides {}
export interface TableSortLabelSlots {
/**
* The component that renders the root slot.
* @default span
*/
root?: React.ElementType;
/**
* The component that renders the icon slot.
* @default ArrowDownwardIcon
*/
icon?: React.ElementType;
}
export type TableSortLabelSlotsAndSlotProps = CreateSlotsAndSlotProps<TableSortLabelSlots, {
/**
* Props forwarded to the root slot.
*/
root: SlotProps<React.ElementType<React.HTMLAttributes<HTMLSpanElement>>, TableSortLabelRootSlotPropsOverrides, TableSortLabelOwnerState>;
/**
* Props forwarded to the icon slot.
*/
icon: SlotProps<React.ElementType<React.SVGAttributes<SVGSVGElement>>, TableSortLabelIconSlotPropsOverrides, TableSortLabelOwnerState>;
}>;
export interface TableSortLabelOwnerState extends TableSortLabelOwnProps {}
export interface TableSortLabelOwnProps {
/**
* If `true`, the label will have the active styling (should be true for the sorted column).
* @default false
*/
active?: boolean;
/**
* Label contents, the arrow will be appended automatically.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TableSortLabelClasses>;
/**
* The current sort direction.
* @default 'asc'
*/
direction?: 'asc' | 'desc';
/**
* Hide sort icon when active is false.
* @default false
*/
hideSortIcon?: boolean;
/**
* Sort icon to use.
* @default ArrowDownwardIcon
*/
IconComponent?: React.JSXElementConstructor<{
className: string;
}>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
export type TableSortLabelTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'span'> = ExtendButtonBaseTypeMap<{
props: AdditionalProps & TableSortLabelOwnProps & TableSortLabelSlotsAndSlotProps;
defaultComponent: RootComponent;
}>;
/**
* A button based label for placing inside `TableCell` for column sorting.
*
* Demos:
*
* - [Table](https://mui.com/material-ui/react-table/)
*
* API:
*
* - [TableSortLabel API](https://mui.com/material-ui/api/table-sort-label/)
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
*/
declare const TableSortLabel: ExtendButtonBase<TableSortLabelTypeMap>;
export type TableSortLabelProps<RootComponent extends React.ElementType = TableSortLabelTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<TableSortLabelTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default TableSortLabel;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./TableSortLabel.js";
export * from "./TableSortLabel.js";
export { default as tableSortLabelClasses } from "./tableSortLabelClasses.js";
export * from "./tableSortLabelClasses.js";
@@ -0,0 +1,24 @@
export interface TableSortLabelClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `direction="desc"`. */
directionDesc: string;
/** Styles applied to the root element if `direction="asc"`. */
directionAsc: string;
/** State class applied to the root element if `active={true}`. */
active: string;
/** Styles applied to the icon component. */
icon: string;
/** Styles applied to the icon component if `direction="desc"`.
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#table-sort-label-classes-icon) and [.MuiTableSortLabel-directionDesc](/material-ui/api/table-sort-label/#table-sort-label-classes-direction-desc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
iconDirectionDesc: string;
/** Styles applied to the icon component if `direction="asc"`.
* @deprecated Combine the [.MuiTableSortLabel-icon](/material-ui/api/table-sort-label/#table-sort-label-classes-icon) and [.MuiTableSortLabel-directionAsc](/material-ui/api/table-sort-label/#table-sort-label-classes-direction-asc) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
iconDirectionAsc: string;
}
export type TableSortLabelClassKey = keyof TableSortLabelClasses;
export declare function getTableSortLabelUtilityClass(slot: string): string;
declare const tableSortLabelClasses: TableSortLabelClasses;
export default tableSortLabelClasses;