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

+63
View File
@@ -0,0 +1,63 @@
import * as React from 'react';
import { DistributiveOmit } from '@mui/types';
import { SxProps } from '@mui/system';
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
import { Theme } from "../styles/index.js";
import { TypographyOwnProps } from "../Typography/index.js";
import { LinkClasses } from "./linkClasses.js";
export interface LinkOwnProps extends DistributiveOmit<LinkBaseProps, 'classes'> {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<LinkClasses>;
/**
* The color of the link.
* @default 'primary'
*/
color?: TypographyOwnProps['color'];
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.
*/
TypographyClasses?: TypographyOwnProps['classes'];
/**
* Controls when the link should have an underline.
* @default 'always'
*/
underline?: 'none' | 'hover' | 'always';
/**
* Applies the theme typography styles.
* @default 'inherit'
*/
variant?: TypographyOwnProps['variant'];
}
export interface LinkTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'a'> {
props: AdditionalProps & LinkOwnProps;
defaultComponent: RootComponent;
}
/**
*
* Demos:
*
* - [Breadcrumbs](https://mui.com/material-ui/react-breadcrumbs/)
* - [Links](https://mui.com/material-ui/react-link/)
*
* API:
*
* - [Link API](https://mui.com/material-ui/api/link/)
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
*/
declare const Link: OverridableComponent<LinkTypeMap>;
export type LinkBaseProps = DistributiveOmit<TypographyOwnProps, 'children' | 'color' | 'variant' | 'classes'>;
export type LinkProps<RootComponent extends React.ElementType = LinkTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<LinkTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default Link;
+11
View File
@@ -0,0 +1,11 @@
import type { Theme } from "../styles/index.js";
declare const getTextDecoration: <T extends Theme>({
theme,
ownerState
}: {
theme: T;
ownerState: {
color: string;
};
}) => string;
export default getTextDecoration;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./Link.js";
export * from "./Link.js";
export { default as linkClasses } from "./linkClasses.js";
export * from "./linkClasses.js";
+18
View File
@@ -0,0 +1,18 @@
export interface LinkClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `underline="none"`. */
underlineNone: string;
/** Styles applied to the root element if `underline="hover"`. */
underlineHover: string;
/** Styles applied to the root element if `underline="always"`. */
underlineAlways: string;
/** Styles applied to the root element if `component="button"`. */
button: string;
/** State class applied to the root element if the link is keyboard focused. */
focusVisible: string;
}
export type LinkClassKey = keyof LinkClasses;
export declare function getLinkUtilityClass(slot: string): string;
declare const linkClasses: LinkClasses;
export default linkClasses;