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

+112
View File
@@ -0,0 +1,112 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { InternalStandardProps as StandardProps, Theme } from "../index.js";
import { PaperProps } from "../Paper/index.js";
import { LinearProgressProps } from "../LinearProgress/index.js";
import { MobileStepperClasses } from "./mobileStepperClasses.js";
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
export interface MobileStepperSlots {
/**
* The component that renders the root slot.
* @default Paper
*/
root: React.ElementType;
/**
* The component that renders the progress slot.
* @default LinearProgress
*/
progress: React.ElementType;
/**
* The component that renders the dots slot.
* @default 'div'
*/
dots: React.ElementType;
/**
* The component that renders the dot slot.
* @default 'div'
*/
dot: React.ElementType;
}
export interface MobileStepperRootSlotPropsOverrides {}
export interface MobileStepperProgressSlotPropsOverrides {}
export interface MobileStepperDotsSlotPropsOverrides {}
export interface MobileStepperDotSlotPropsOverrides {}
export type MobileStepperSlotsAndSlotProps = CreateSlotsAndSlotProps<MobileStepperSlots, {
/**
* Props forwarded to the root slot.
* By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
*/
root: SlotProps<React.ElementType<PaperProps>, MobileStepperRootSlotPropsOverrides, MobileStepperOwnerState>;
/**
* Props forwarded to the progress slot.
* By default, the avaible props are based on the [LinearProgress](https://mui.com/material-ui/api/linear-progress/#props) component.
*/
progress: SlotProps<React.ElementType<LinearProgressProps>, MobileStepperProgressSlotPropsOverrides, MobileStepperOwnerState>;
/**
* Props forwarded to the dots slot.
* By default, the avaible props are based on the div element.
*/
dots: SlotProps<'div', MobileStepperDotsSlotPropsOverrides, MobileStepperOwnerState>;
/**
* Props forwarded to the dot slot.
* By default, the avaible props are based on the div element.
*/
dot: SlotProps<'div', MobileStepperDotSlotPropsOverrides, MobileStepperOwnerState>;
}>;
export interface MobileStepperProps extends StandardProps<PaperProps, 'children' | 'variant'>, MobileStepperSlotsAndSlotProps {
/**
* Set the active step (zero based index).
* Defines which dot is highlighted when the variant is 'dots'.
* @default 0
*/
activeStep?: number;
/**
* A back button element. For instance, it can be a `Button` or an `IconButton`.
*/
backButton: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<MobileStepperClasses>;
/**
* Props applied to the `LinearProgress` element.
* @deprecated Use `slotProps.progress` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
*/
LinearProgressProps?: Partial<LinearProgressProps>;
/**
* A next button element. For instance, it can be a `Button` or an `IconButton`.
*/
nextButton: React.ReactNode;
/**
* Set the positioning type.
* @default 'bottom'
*/
position?: 'bottom' | 'top' | 'static';
/**
* The total steps.
*/
steps: number;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The variant to use.
* @default 'dots'
*/
variant?: 'text' | 'dots' | 'progress';
}
export interface MobileStepperOwnerState extends Omit<MobileStepperProps, 'slots' | 'slotProps'> {}
/**
*
* Demos:
*
* - [Stepper](https://mui.com/material-ui/react-stepper/)
*
* API:
*
* - [MobileStepper API](https://mui.com/material-ui/api/mobile-stepper/)
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
*/
export default function MobileStepper(props: MobileStepperProps): React.JSX.Element;
+4
View File
@@ -0,0 +1,4 @@
export { default } from "./MobileStepper.js";
export * from "./MobileStepper.js";
export { default as mobileStepperClasses } from "./mobileStepperClasses.js";
export * from "./mobileStepperClasses.js";
@@ -0,0 +1,22 @@
export interface MobileStepperClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `position="bottom"`. */
positionBottom: string;
/** Styles applied to the root element if `position="top"`. */
positionTop: string;
/** Styles applied to the root element if `position="static"`. */
positionStatic: string;
/** Styles applied to the dots container if `variant="dots"`. */
dots: string;
/** Styles applied to each dot if `variant="dots"`. */
dot: string;
/** Styles applied to a dot if `variant="dots"` and this is the active step. */
dotActive: string;
/** Styles applied to the Linear Progress component if `variant="progress"`. */
progress: string;
}
export type MobileStepperClassKey = keyof MobileStepperClasses;
export declare function getMobileStepperUtilityClass(slot: string): string;
declare const mobileStepperClasses: MobileStepperClasses;
export default mobileStepperClasses;