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

+79
View File
@@ -0,0 +1,79 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableStringUnion } from '@mui/types';
import { FormLabelProps, ExtendFormLabelTypeMap } from "../FormLabel/index.js";
import { Theme } from "../styles/index.js";
import { InputLabelClasses } from "./inputLabelClasses.js";
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
export interface InputLabelPropsSizeOverrides {}
export interface InputLabelOwnProps extends Pick<FormLabelProps, 'children'> {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<InputLabelClasses>;
color?: FormLabelProps['color'];
/**
* If `true`, the transition animation is disabled.
* @default false
*/
disableAnimation?: boolean;
/**
* If `true`, the component is disabled.
*/
disabled?: boolean;
/**
* If `true`, the label is displayed in an error state.
*/
error?: boolean;
/**
* If `true`, the `input` of this label is focused.
*/
focused?: boolean;
/**
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
* FormControl.
*/
margin?: 'dense';
/**
* if `true`, the label will indicate that the `input` is required.
*/
required?: boolean;
/**
* If `true`, the label is shrunk.
*/
shrink?: boolean;
/**
* The size of the component.
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'medium', InputLabelPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The variant to use.
*/
variant?: 'standard' | 'outlined' | 'filled';
}
export type InputLabelTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'label'> = ExtendFormLabelTypeMap<{
props: AdditionalProps & InputLabelOwnProps;
defaultComponent: RootComponent;
}>;
/**
*
* Demos:
*
* - [Text Field](https://mui.com/material-ui/react-text-field/)
*
* API:
*
* - [InputLabel API](https://mui.com/material-ui/api/input-label/)
* - inherits [FormLabel API](https://mui.com/material-ui/api/form-label/)
*/
declare const InputLabel: OverridableComponent<InputLabelTypeMap>;
export type InputLabelProps<RootComponent extends React.ElementType = InputLabelTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<InputLabelTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export default InputLabel;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./InputLabel.js";
export * from "./InputLabel.js";
export { default as inputLabelClasses } from "./inputLabelClasses.js";
export * from "./inputLabelClasses.js";
+32
View File
@@ -0,0 +1,32 @@
export interface InputLabelClasses {
/** Styles applied to the root element. */
root: string;
/** State class applied to the root element if `focused={true}`. */
focused: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** State class applied to the root element if `error={true}`. */
error: string;
/** State class applied to the root element if `required={true}`. */
required: string;
/** State class applied to the asterisk element. */
asterisk: string;
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
formControl: string;
/** Styles applied to the root element if `size="small"`. */
sizeSmall: string;
/** Styles applied to the input element if `shrink={true}`. */
shrink: string;
/** Styles applied to the input element unless `disableAnimation={true}`. */
animated: string;
/** Styles applied to the root element if `variant="filled"`. */
filled: string;
/** Styles applied to the root element if `variant="outlined"`. */
outlined: string;
/** Styles applied to the root element if `variant="standard"`. */
standard: string;
}
export type InputLabelClassKey = keyof InputLabelClasses;
export declare function getInputLabelUtilityClasses(slot: string): string;
declare const inputLabelClasses: InputLabelClasses;
export default inputLabelClasses;