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 "../index.js";
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
import { SkeletonClasses } from "./skeletonClasses.js";
export interface SkeletonPropsVariantOverrides {}
export interface SkeletonOwnProps {
/**
* The animation.
* If `false` the animation effect is disabled.
* @default 'pulse'
*/
animation?: 'pulse' | 'wave' | false;
/**
* Optional children to infer width and height from.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SkeletonClasses>;
/**
* Height of the skeleton.
* Useful when you don't want to adapt the skeleton to a text element but for instance a card.
*/
height?: number | string;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The type of content that will be rendered.
* @default 'text'
*/
variant?: OverridableStringUnion<'text' | 'rectangular' | 'rounded' | 'circular', SkeletonPropsVariantOverrides>;
/**
* Width of the skeleton.
* Useful when the skeleton is inside an inline element with no width of its own.
*/
width?: number | string;
}
export interface SkeletonTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'span'> {
props: AdditionalProps & SkeletonOwnProps;
defaultComponent: RootComponent;
}
/**
*
* Demos:
*
* - [Skeleton](https://mui.com/material-ui/react-skeleton/)
*
* API:
*
* - [Skeleton API](https://mui.com/material-ui/api/skeleton/)
*/
declare const Skeleton: OverridableComponent<SkeletonTypeMap>;
export type SkeletonProps<RootComponent extends React.ElementType = SkeletonTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<SkeletonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default Skeleton;
+4
View File
@@ -0,0 +1,4 @@
export * from "./Skeleton.js";
export { default } from "./Skeleton.js";
export * from "./skeletonClasses.js";
export { default as skeletonClasses } from "./skeletonClasses.js";
+26
View File
@@ -0,0 +1,26 @@
export interface SkeletonClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `variant="text"`. */
text: string;
/** Styles applied to the root element if `variant="rectangular"`. */
rectangular: string;
/** Styles applied to the root element if `variant="rounded"`. */
rounded: string;
/** Styles applied to the root element if `variant="circular"`. */
circular: string;
/** Styles applied to the root element if `animation="pulse"`. */
pulse: string;
/** Styles applied to the root element if `animation="wave"`. */
wave: string;
/** Styles applied when the component is passed children. */
withChildren: string;
/** Styles applied when the component is passed children and no width. */
fitContent: string;
/** Styles applied when the component is passed children and no height. */
heightAuto: string;
}
export type SkeletonClassKey = keyof SkeletonClasses;
export declare function getSkeletonUtilityClass(slot: string): string;
declare const skeletonClasses: SkeletonClasses;
export default skeletonClasses;