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

+42
View File
@@ -0,0 +1,42 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from "../styles/index.js";
import { InternalStandardProps as StandardProps } from "../index.js";
import { PaperProps } from "../Paper/index.js";
import { SnackbarContentClasses } from "./snackbarContentClasses.js";
export interface SnackbarContentProps extends StandardProps<PaperProps, 'children'> {
/**
* The action to display. It renders after the message, at the end of the snackbar.
*/
action?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SnackbarContentClasses>;
/**
* The message to display.
*/
message?: React.ReactNode;
/**
* The ARIA role attribute of the element.
* @default 'alert'
*/
role?: PaperProps['role'];
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
/**
*
* Demos:
*
* - [Snackbar](https://mui.com/material-ui/react-snackbar/)
*
* API:
*
* - [SnackbarContent API](https://mui.com/material-ui/api/snackbar-content/)
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
*/
export default function SnackbarContent(props: SnackbarContentProps): React.JSX.Element;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./SnackbarContent.js";
export * from "./SnackbarContent.js";
export { default as snackbarContentClasses } from "./snackbarContentClasses.js";
export * from "./snackbarContentClasses.js";
@@ -0,0 +1,12 @@
export interface SnackbarContentClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the message wrapper element. */
message: string;
/** Styles applied to the action wrapper element if `action` is provided. */
action: string;
}
export type SnackbarContentClassKey = keyof SnackbarContentClasses;
export declare function getSnackbarContentUtilityClass(slot: string): string;
declare const snackbarContentClasses: SnackbarContentClasses;
export default snackbarContentClasses;