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

+74
View File
@@ -0,0 +1,74 @@
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { SxProps } from '@mui/system';
import { Theme } from "../index.js";
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
import { DividerClasses } from "./dividerClasses.js";
export interface DividerPropsVariantOverrides {}
export interface DividerOwnProps {
/**
* Absolutely position the element.
* @default false
*/
absolute?: boolean;
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DividerClasses>;
/**
* If `true`, a vertical divider will have the correct height when used in flex container.
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
* @default false
*/
flexItem?: boolean;
/**
* If `true`, the divider will have a lighter color.
* @default false
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
light?: boolean;
/**
* The component orientation.
* @default 'horizontal'
*/
orientation?: 'horizontal' | 'vertical';
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The text alignment.
* @default 'center'
*/
textAlign?: 'center' | 'right' | 'left';
/**
* The variant to use.
* @default 'fullWidth'
*/
variant?: OverridableStringUnion<'fullWidth' | 'inset' | 'middle', DividerPropsVariantOverrides>;
}
export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'hr'> {
props: AdditionalProps & DividerOwnProps;
defaultComponent: RootComponent;
}
/**
*
* Demos:
*
* - [Divider](https://mui.com/material-ui/react-divider/)
* - [Lists](https://mui.com/material-ui/react-list/)
*
* API:
*
* - [Divider API](https://mui.com/material-ui/api/divider/)
*/
declare const Divider: OverridableComponent<DividerTypeMap>;
export type DividerProps<RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default Divider;
+38
View File
@@ -0,0 +1,38 @@
export interface DividerClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `absolute={true}`. */
absolute: string;
/** Styles applied to the root element if `variant="inset"`. */
inset: string;
/** Styles applied to the root element if `variant="fullWidth"`. */
fullWidth: string;
/** Styles applied to the root element if `light={true}`.
* @deprecated
*/
light: string;
/** Styles applied to the root element if `variant="middle"`. */
middle: string;
/** Styles applied to the root element if `orientation="vertical"`. */
vertical: string;
/** Styles applied to the root element if `flexItem={true}`. */
flexItem: string;
/** Styles applied to the root element if divider have text. */
withChildren: string;
/** Styles applied to the root element if divider have text and `orientation="vertical"`.
* @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-vertical) classes instead.
*/
withChildrenVertical: string;
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
textAlignRight: string;
/** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
textAlignLeft: string;
/** Styles applied to the span children element if `orientation="horizontal"`. */
wrapper: string;
/** Styles applied to the span children element if `orientation="vertical"`. */
wrapperVertical: string;
}
export type DividerClassKey = keyof DividerClasses;
export declare function getDividerUtilityClass(slot: string): string;
declare const dividerClasses: DividerClasses;
export default dividerClasses;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Divider.js";
export * from "./Divider.js";
export { default as dividerClasses } from "./dividerClasses.js";
export * from "./dividerClasses.js";