1 | import * as React from 'react';
|
2 | import { OverridableComponent, OverrideProps } from '@mui/types';
|
3 | import { SxProps } from '@mui/system';
|
4 | import { Breakpoint, Theme } from '../styles';
|
5 | type ResponsiveStyleValue<T> = T | Array<T | null> | {
|
6 | [key in Breakpoint]?: T | null;
|
7 | };
|
8 | export interface PigmentStackOwnProps {
|
9 | |
10 |
|
11 |
|
12 | children?: React.ReactNode;
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 | direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | spacing?: ResponsiveStyleValue<number | string>;
|
24 | |
25 |
|
26 |
|
27 | divider?: React.ReactNode;
|
28 | |
29 |
|
30 |
|
31 | sx?: SxProps<Theme>;
|
32 | }
|
33 | export interface PigmentStackTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
34 | props: AdditionalProps & PigmentStackOwnProps;
|
35 | defaultComponent: RootComponent;
|
36 | }
|
37 | export type PigmentStackProps<RootComponent extends React.ElementType = PigmentStackTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<PigmentStackTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
38 | component?: React.ElementType;
|
39 | };
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | declare const PigmentStack: OverridableComponent<PigmentStackTypeMap>;
|
51 | export default PigmentStack;
|