1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { InternalStandardProps as StandardProps } from '..';
|
4 | import { StepIconProps } from '../StepIcon';
|
5 | import { Theme } from '../styles';
|
6 | import { StepLabelClasses } from './stepLabelClasses';
|
7 | import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
|
8 |
|
9 | export interface StepLabelSlots {
|
10 | |
11 |
|
12 |
|
13 |
|
14 | label: React.ElementType;
|
15 | |
16 |
|
17 |
|
18 | stepIcon: React.ElementType<StepIconProps>;
|
19 | }
|
20 |
|
21 | export type StepLabelSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
22 | StepLabelSlots,
|
23 | {
|
24 | label: SlotProps<React.ElementType<React.HTMLProps<HTMLSpanElement>>, {}, StepLabelOwnerState>;
|
25 | stepIcon: SlotProps<React.ElementType<StepIconProps>, {}, StepLabelOwnerState>;
|
26 | }
|
27 | >;
|
28 |
|
29 | export interface StepLabelOwnerState extends StepLabelProps {}
|
30 |
|
31 | export interface StepLabelProps
|
32 | extends StandardProps<React.HTMLAttributes<HTMLDivElement>>,
|
33 | StepLabelSlotsAndSlotProps {
|
34 | |
35 |
|
36 |
|
37 | children?: React.ReactNode;
|
38 | |
39 |
|
40 |
|
41 | classes?: Partial<StepLabelClasses>;
|
42 | |
43 |
|
44 |
|
45 |
|
46 |
|
47 | componentsProps?: {
|
48 | |
49 |
|
50 |
|
51 |
|
52 | label?: React.HTMLProps<HTMLSpanElement>;
|
53 | };
|
54 | |
55 |
|
56 |
|
57 |
|
58 | error?: boolean;
|
59 | |
60 |
|
61 |
|
62 | icon?: React.ReactNode;
|
63 | |
64 |
|
65 |
|
66 | optional?: React.ReactNode;
|
67 | |
68 |
|
69 |
|
70 | StepIconComponent?: React.ElementType<StepIconProps>;
|
71 | |
72 |
|
73 |
|
74 | StepIconProps?: Partial<StepIconProps>;
|
75 | |
76 |
|
77 |
|
78 | sx?: SxProps<Theme>;
|
79 | }
|
80 |
|
81 | export type StepLabelClasskey = keyof NonNullable<StepLabelProps['classes']>;
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 | declare const StepLabel: ((props: StepLabelProps) => React.JSX.Element) & {
|
94 | muiName: string;
|
95 | };
|
96 |
|
97 | export default StepLabel;
|
98 |
|
\ | No newline at end of file |