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

+70
View File
@@ -0,0 +1,70 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
import { Theme } from "../styles/index.js";
import { StepClasses } from "./stepClasses.js";
export interface StepOwnProps {
/**
* Sets the step as active. Is passed to child components.
*/
active?: boolean;
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<StepClasses>;
/**
* Mark the step as completed. Is passed to child components.
*/
completed?: boolean;
/**
* If `true`, the step is disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled?: boolean;
/**
* Expand the step.
* @default false
*/
expanded?: boolean;
/**
* The position of the step.
* The prop defaults to the value inherited from the parent Stepper component.
*/
index?: number;
/**
* If `true`, the Step is displayed as rendered last.
* The prop defaults to the value inherited from the parent Stepper component.
*/
last?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
export interface StepTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
props: AdditionalProps & StepOwnProps;
defaultComponent: RootComponent;
}
export type StepProps<RootComponent extends React.ElementType = StepTypeMap['defaultComponent'], AdditionalProps = {
component?: React.ElementType;
}> = OverrideProps<StepTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export type StepClasskey = keyof NonNullable<StepProps['classes']>;
/**
*
* Demos:
*
* - [Stepper](https://mui.com/material-ui/react-stepper/)
*
* API:
*
* - [Step API](https://mui.com/material-ui/api/step/)
*/
declare const Step: OverridableComponent<StepTypeMap>;
export default Step;
+20
View File
@@ -0,0 +1,20 @@
import * as React from 'react';
export interface StepContextType {
index: number;
last: boolean;
expanded: boolean;
icon: React.ReactNode;
active: boolean;
completed: boolean;
disabled: boolean;
}
/**
* Provides information about the current step in Stepper.
*/
declare const StepContext: React.Context<{} | StepContextType>;
/**
* Returns the current StepContext or an empty object if no StepContext
* has been defined in the component tree.
*/
export declare function useStepContext(): StepContextType | {};
export default StepContext;
+6
View File
@@ -0,0 +1,6 @@
export { default } from "./Step.js";
export * from "./Step.js";
export { default as stepClasses } from "./stepClasses.js";
export * from "./stepClasses.js";
export { default as StepContext } from "./StepContext.js";
export * from "./StepContext.js";
+16
View File
@@ -0,0 +1,16 @@
export interface StepClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `orientation="horizontal"`. */
horizontal: string;
/** Styles applied to the root element if `orientation="vertical"`. */
vertical: string;
/** Styles applied to the root element if `alternativeLabel={true}`. */
alternativeLabel: string;
/** State class applied to the root element if `completed={true}`. */
completed: string;
}
export type StepClassKey = keyof StepClasses;
export declare function getStepUtilityClass(slot: string): string;
declare const stepClasses: StepClasses;
export default stepClasses;