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

+71
View File
@@ -0,0 +1,71 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { InternalStandardProps as StandardProps, Theme } from "../index.js";
import { TransitionProps } from "../transitions/transition.js";
import { CollapseClasses } from "./collapseClasses.js";
export interface CollapseProps extends StandardProps<TransitionProps, 'timeout'> {
/**
* The content node to be collapsed.
*/
children?: React.ReactNode;
className?: string;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<CollapseClasses>;
/**
* The width (horizontal) or height (vertical) of the container when collapsed.
* @default '0px'
*/
collapsedSize?: string | number;
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component?: React.ElementType<TransitionProps>;
/**
* The transition timing function.
* You may specify a single easing or a object containing enter and exit values.
*/
easing?: TransitionProps['easing'];
/**
* If `true`, the component will transition in.
*/
in?: boolean;
/**
* The transition orientation.
* @default 'vertical'
*/
orientation?: 'horizontal' | 'vertical';
/**
* The duration for the transition, in milliseconds.
* You may specify a single timeout for all transitions, or individually with an object.
*
* Set to 'auto' to automatically calculate transition time based on height.
* @default duration.standard
*/
timeout?: TransitionProps['timeout'] | 'auto';
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
/**
* The Collapse transition is used by the
* [Vertical Stepper](https://mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
*
* Demos:
*
* - [Card](https://mui.com/material-ui/react-card/)
* - [Lists](https://mui.com/material-ui/react-list/)
* - [Transitions](https://mui.com/material-ui/transitions/)
*
* API:
*
* - [Collapse API](https://mui.com/material-ui/api/collapse/)
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
*/
export default function Collapse(props: CollapseProps): React.JSX.Element;
+18
View File
@@ -0,0 +1,18 @@
export interface CollapseClasses {
/** Styles applied to the root element. */
root: string;
/** State class applied to the root element if `orientation="horizontal"`. */
horizontal: string;
/** Styles applied to the root element when the transition has entered. */
entered: string;
/** Styles applied to the root element when the transition has exited and `collapsedSize` = 0px. */
hidden: string;
/** Styles applied to the outer wrapper element. */
wrapper: string;
/** Styles applied to the inner wrapper element. */
wrapperInner: string;
}
export type CollapseClassKey = keyof CollapseClasses;
export declare function getCollapseUtilityClass(slot: string): string;
declare const collapseClasses: CollapseClasses;
export default collapseClasses;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Collapse.js";
export * from "./Collapse.js";
export { default as collapseClasses } from "./collapseClasses.js";
export * from "./collapseClasses.js";