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

+62
View File
@@ -0,0 +1,62 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableStringUnion } from '@mui/types';
import { Theme } from "../styles/index.js";
import { OverrideProps, OverridableComponent, OverridableTypeMap } from "../OverridableComponent/index.js";
import { PaperClasses } from "./paperClasses.js";
export interface PaperPropsVariantOverrides {}
export interface PaperOwnProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<PaperClasses>;
/**
* Shadow depth, corresponds to `dp` in the spec.
* It accepts values between 0 and 24 inclusive.
* @default 1
*/
elevation?: number;
/**
* If `true`, rounded corners are disabled.
* @default false
*/
square?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The variant to use.
* @default 'elevation'
*/
variant?: OverridableStringUnion<'elevation' | 'outlined', PaperPropsVariantOverrides>;
}
export interface PaperTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
props: AdditionalProps & PaperOwnProps;
defaultComponent: RootComponent;
}
/**
*
* Demos:
*
* - [Card](https://mui.com/material-ui/react-card/)
* - [Paper](https://mui.com/material-ui/react-paper/)
*
* API:
*
* - [Paper API](https://mui.com/material-ui/api/paper/)
*/
declare const Paper: OverridableComponent<PaperTypeMap>;
export interface ExtendPaperTypeMap<TypeMap extends OverridableTypeMap, Keys extends string = ''> {
props: TypeMap['props'] & Omit<PaperTypeMap['props'], Keys>;
defaultComponent: TypeMap['defaultComponent'];
}
export type PaperProps<RootComponent extends React.ElementType = PaperTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<PaperTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default Paper;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Paper.js";
export type { PaperProps, PaperOwnProps, PaperPropsVariantOverrides, PaperTypeMap } from "./Paper.js";
export { default as paperClasses } from "./paperClasses.js";
export * from "./paperClasses.js";
+64
View File
@@ -0,0 +1,64 @@
export interface PaperClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element unless `square={true}`. */
rounded: string;
/** Styles applied to the root element if `variant="outlined"`. */
outlined: string;
/** Styles applied to the root element if `variant="elevation"`. */
elevation: string;
/** Styles applied to the root element if `elevation={0}`. */
elevation0: string;
/** Styles applied to the root element if `elevation={1}`. */
elevation1: string;
/** Styles applied to the root element if `elevation={2}`. */
elevation2: string;
/** Styles applied to the root element if `elevation={3}`. */
elevation3: string;
/** Styles applied to the root element if `elevation={4}`. */
elevation4: string;
/** Styles applied to the root element if `elevation={5}`. */
elevation5: string;
/** Styles applied to the root element if `elevation={6}`. */
elevation6: string;
/** Styles applied to the root element if `elevation={7}`. */
elevation7: string;
/** Styles applied to the root element if `elevation={8}`. */
elevation8: string;
/** Styles applied to the root element if `elevation={9}`. */
elevation9: string;
/** Styles applied to the root element if `elevation={10}`. */
elevation10: string;
/** Styles applied to the root element if `elevation={11}`. */
elevation11: string;
/** Styles applied to the root element if `elevation={12}`. */
elevation12: string;
/** Styles applied to the root element if `elevation={13}`. */
elevation13: string;
/** Styles applied to the root element if `elevation={14}`. */
elevation14: string;
/** Styles applied to the root element if `elevation={15}`. */
elevation15: string;
/** Styles applied to the root element if `elevation={16}`. */
elevation16: string;
/** Styles applied to the root element if `elevation={17}`. */
elevation17: string;
/** Styles applied to the root element if `elevation={18}`. */
elevation18: string;
/** Styles applied to the root element if `elevation={19}`. */
elevation19: string;
/** Styles applied to the root element if `elevation={20}`. */
elevation20: string;
/** Styles applied to the root element if `elevation={21}`. */
elevation21: string;
/** Styles applied to the root element if `elevation={22}`. */
elevation22: string;
/** Styles applied to the root element if `elevation={23}`. */
elevation23: string;
/** Styles applied to the root element if `elevation={24}`. */
elevation24: string;
}
export type PaperClassKey = keyof PaperClasses;
export declare function getPaperUtilityClass(slot: string): string;
declare const paperClasses: PaperClasses;
export default paperClasses;