@mui/system 7.0.0-alpha.1 → 7.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -0
- package/Grid/createGrid.js +4 -0
- package/Grid/deleteLegacyGridProps.js +47 -0
- package/esm/Grid/createGrid.js +4 -0
- package/esm/Grid/deleteLegacyGridProps.d.ts +11 -0
- package/esm/Grid/deleteLegacyGridProps.js +41 -0
- package/esm/index.js +1 -1
- package/esm/spacing/spacing.d.ts +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/Grid/createGrid.js +4 -0
- package/modern/Grid/deleteLegacyGridProps.js +41 -0
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/package.json +10 -9
- package/tsconfig.build.tsbuildinfo +1 -1
- package/version/index.js +2 -2
- package/Box/Box.d.ts +0 -72
- package/Box/boxClasses.d.ts +0 -7
- package/Box/index.d.ts +0 -4
- package/CSSProperties.d.ts +0 -7
- package/Container/Container.d.ts +0 -13
- package/Container/ContainerProps.d.ts +0 -40
- package/Container/containerClasses.d.ts +0 -22
- package/Container/createContainer.d.ts +0 -18
- package/Container/index.d.ts +0 -4
- package/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
- package/DefaultPropsProvider/index.d.ts +0 -1
- package/GlobalStyles/GlobalStyles.d.ts +0 -17
- package/GlobalStyles/index.d.ts +0 -2
- package/Grid/Grid.d.ts +0 -13
- package/Grid/GridProps.d.ts +0 -103
- package/Grid/createGrid.d.ts +0 -13
- package/Grid/gridClasses.d.ts +0 -20
- package/Grid/gridGenerator.d.ts +0 -42
- package/Grid/index.d.ts +0 -7
- package/Grid/traverseBreakpoints.d.ts +0 -7
- package/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
- package/InitColorSchemeScript/index.d.ts +0 -2
- package/RtlProvider/index.d.ts +0 -8
- package/Stack/Stack.d.ts +0 -14
- package/Stack/StackProps.d.ts +0 -53
- package/Stack/createStack.d.ts +0 -24
- package/Stack/index.d.ts +0 -5
- package/Stack/stackClasses.d.ts +0 -8
- package/ThemeProvider/ThemeProvider.d.ts +0 -24
- package/ThemeProvider/index.d.ts +0 -2
- package/borders/borders.d.ts +0 -13
- package/borders/index.d.ts +0 -2
- package/breakpoints/breakpoints.d.ts +0 -19
- package/breakpoints/index.d.ts +0 -2
- package/colorManipulator/colorManipulator.d.ts +0 -25
- package/colorManipulator/index.d.ts +0 -1
- package/compose/compose.d.ts +0 -2
- package/compose/index.d.ts +0 -1
- package/createBox/createBox.d.ts +0 -9
- package/createBox/index.d.ts +0 -1
- package/createBreakpoints/createBreakpoints.d.ts +0 -78
- package/createBreakpoints/index.d.ts +0 -3
- package/createStyled/createStyled.d.ts +0 -27
- package/createStyled/index.d.ts +0 -2
- package/createTheme/applyStyles.d.ts +0 -67
- package/createTheme/createSpacing.d.ts +0 -10
- package/createTheme/createTheme.d.ts +0 -54
- package/createTheme/index.d.ts +0 -4
- package/createTheme/shape.d.ts +0 -6
- package/cssContainerQueries/cssContainerQueries.d.ts +0 -23
- package/cssContainerQueries/index.d.ts +0 -3
- package/cssGrid/cssGrid.d.ts +0 -2
- package/cssGrid/index.d.ts +0 -2
- package/cssVars/createCssVarsProvider.d.ts +0 -129
- package/cssVars/createCssVarsTheme.d.ts +0 -15
- package/cssVars/createGetCssVar.d.ts +0 -5
- package/cssVars/cssVarsParser.d.ts +0 -64
- package/cssVars/getColorSchemeSelector.d.ts +0 -1
- package/cssVars/index.d.ts +0 -7
- package/cssVars/prepareCssVars.d.ts +0 -16
- package/cssVars/prepareTypographyVars.d.ts +0 -4
- package/cssVars/useCurrentColorScheme.d.ts +0 -54
- package/display/display.d.ts +0 -2
- package/display/index.d.ts +0 -2
- package/flexbox/flexbox.d.ts +0 -2
- package/flexbox/index.d.ts +0 -2
- package/getThemeValue/getThemeValue.d.ts +0 -1
- package/getThemeValue/index.d.ts +0 -2
- package/index.d.ts +0 -79
- package/memoTheme.d.ts +0 -12
- package/memoize/index.d.ts +0 -1
- package/memoize/memoize.d.ts +0 -1
- package/merge/index.d.ts +0 -1
- package/merge/merge.d.ts +0 -1
- package/modern/Box/Box.d.ts +0 -72
- package/modern/Box/boxClasses.d.ts +0 -7
- package/modern/Box/index.d.ts +0 -4
- package/modern/CSSProperties.d.ts +0 -7
- package/modern/Container/Container.d.ts +0 -13
- package/modern/Container/ContainerProps.d.ts +0 -40
- package/modern/Container/containerClasses.d.ts +0 -22
- package/modern/Container/createContainer.d.ts +0 -18
- package/modern/Container/index.d.ts +0 -4
- package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
- package/modern/DefaultPropsProvider/index.d.ts +0 -1
- package/modern/GlobalStyles/GlobalStyles.d.ts +0 -17
- package/modern/GlobalStyles/index.d.ts +0 -2
- package/modern/Grid/Grid.d.ts +0 -13
- package/modern/Grid/GridProps.d.ts +0 -103
- package/modern/Grid/createGrid.d.ts +0 -13
- package/modern/Grid/gridClasses.d.ts +0 -20
- package/modern/Grid/gridGenerator.d.ts +0 -42
- package/modern/Grid/index.d.ts +0 -7
- package/modern/Grid/traverseBreakpoints.d.ts +0 -7
- package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
- package/modern/InitColorSchemeScript/index.d.ts +0 -2
- package/modern/RtlProvider/index.d.ts +0 -8
- package/modern/Stack/Stack.d.ts +0 -14
- package/modern/Stack/StackProps.d.ts +0 -53
- package/modern/Stack/createStack.d.ts +0 -24
- package/modern/Stack/index.d.ts +0 -5
- package/modern/Stack/stackClasses.d.ts +0 -8
- package/modern/ThemeProvider/ThemeProvider.d.ts +0 -24
- package/modern/ThemeProvider/index.d.ts +0 -2
- package/modern/borders/borders.d.ts +0 -13
- package/modern/borders/index.d.ts +0 -2
- package/modern/breakpoints/breakpoints.d.ts +0 -19
- package/modern/breakpoints/index.d.ts +0 -2
- package/modern/colorManipulator/colorManipulator.d.ts +0 -25
- package/modern/colorManipulator/index.d.ts +0 -1
- package/modern/compose/compose.d.ts +0 -2
- package/modern/compose/index.d.ts +0 -1
- package/modern/createBox/createBox.d.ts +0 -9
- package/modern/createBox/index.d.ts +0 -1
- package/modern/createBreakpoints/createBreakpoints.d.ts +0 -78
- package/modern/createBreakpoints/index.d.ts +0 -3
- package/modern/createStyled/createStyled.d.ts +0 -27
- package/modern/createStyled/index.d.ts +0 -2
- package/modern/createTheme/applyStyles.d.ts +0 -67
- package/modern/createTheme/createSpacing.d.ts +0 -10
- package/modern/createTheme/createTheme.d.ts +0 -54
- package/modern/createTheme/index.d.ts +0 -4
- package/modern/createTheme/shape.d.ts +0 -6
- package/modern/cssContainerQueries/cssContainerQueries.d.ts +0 -23
- package/modern/cssContainerQueries/index.d.ts +0 -3
- package/modern/cssGrid/cssGrid.d.ts +0 -2
- package/modern/cssGrid/index.d.ts +0 -2
- package/modern/cssVars/createCssVarsProvider.d.ts +0 -129
- package/modern/cssVars/createCssVarsTheme.d.ts +0 -15
- package/modern/cssVars/createGetCssVar.d.ts +0 -5
- package/modern/cssVars/cssVarsParser.d.ts +0 -64
- package/modern/cssVars/getColorSchemeSelector.d.ts +0 -1
- package/modern/cssVars/index.d.ts +0 -7
- package/modern/cssVars/prepareCssVars.d.ts +0 -16
- package/modern/cssVars/prepareTypographyVars.d.ts +0 -4
- package/modern/cssVars/useCurrentColorScheme.d.ts +0 -54
- package/modern/display/display.d.ts +0 -2
- package/modern/display/index.d.ts +0 -2
- package/modern/flexbox/flexbox.d.ts +0 -2
- package/modern/flexbox/index.d.ts +0 -2
- package/modern/getThemeValue/getThemeValue.d.ts +0 -1
- package/modern/getThemeValue/index.d.ts +0 -2
- package/modern/index.d.ts +0 -79
- package/modern/memoTheme.d.ts +0 -12
- package/modern/memoize/index.d.ts +0 -1
- package/modern/memoize/memoize.d.ts +0 -1
- package/modern/merge/index.d.ts +0 -1
- package/modern/merge/merge.d.ts +0 -1
- package/modern/palette/index.d.ts +0 -2
- package/modern/palette/palette.d.ts +0 -4
- package/modern/positions/index.d.ts +0 -2
- package/modern/positions/positions.d.ts +0 -2
- package/modern/preprocessStyles.d.ts +0 -5
- package/modern/propsToClassKey/index.d.ts +0 -1
- package/modern/propsToClassKey/propsToClassKey.d.ts +0 -1
- package/modern/responsivePropType/index.d.ts +0 -1
- package/modern/responsivePropType/responsivePropType.d.ts +0 -2
- package/modern/shadows/index.d.ts +0 -1
- package/modern/shadows/shadows.d.ts +0 -2
- package/modern/sizing/index.d.ts +0 -2
- package/modern/sizing/sizing.d.ts +0 -11
- package/modern/spacing/index.d.ts +0 -2
- package/modern/spacing/spacing.d.ts +0 -18
- package/modern/style/index.d.ts +0 -2
- package/modern/style/style.d.ts +0 -19
- package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
- package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
- package/modern/styleFunctionSx/StandardCssProperties.d.ts +0 -2
- package/modern/styleFunctionSx/defaultSxConfig.d.ts +0 -15
- package/modern/styleFunctionSx/extendSxProp.d.ts +0 -4
- package/modern/styleFunctionSx/index.d.ts +0 -9
- package/modern/styleFunctionSx/styleFunctionSx.d.ts +0 -62
- package/modern/styled/index.d.ts +0 -1
- package/modern/styled/styled.d.ts +0 -3
- package/modern/typography/index.d.ts +0 -2
- package/modern/typography/typography.d.ts +0 -11
- package/modern/useMediaQuery/index.d.ts +0 -2
- package/modern/useMediaQuery/useMediaQuery.d.ts +0 -32
- package/modern/useTheme/index.d.ts +0 -2
- package/modern/useTheme/useTheme.d.ts +0 -2
- package/modern/useThemeProps/getThemeProps.d.ts +0 -16
- package/modern/useThemeProps/index.d.ts +0 -3
- package/modern/useThemeProps/useThemeProps.d.ts +0 -14
- package/modern/useThemeWithoutDefault/index.d.ts +0 -1
- package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
- package/modern/version/index.d.ts +0 -6
- package/palette/index.d.ts +0 -2
- package/palette/palette.d.ts +0 -4
- package/positions/index.d.ts +0 -2
- package/positions/positions.d.ts +0 -2
- package/preprocessStyles.d.ts +0 -5
- package/propsToClassKey/index.d.ts +0 -1
- package/propsToClassKey/propsToClassKey.d.ts +0 -1
- package/responsivePropType/index.d.ts +0 -1
- package/responsivePropType/responsivePropType.d.ts +0 -2
- package/shadows/index.d.ts +0 -1
- package/shadows/shadows.d.ts +0 -2
- package/sizing/index.d.ts +0 -2
- package/sizing/sizing.d.ts +0 -11
- package/spacing/index.d.ts +0 -2
- package/spacing/spacing.d.ts +0 -18
- package/style/index.d.ts +0 -2
- package/style/style.d.ts +0 -19
- package/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
- package/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
- package/styleFunctionSx/StandardCssProperties.d.ts +0 -2
- package/styleFunctionSx/defaultSxConfig.d.ts +0 -15
- package/styleFunctionSx/extendSxProp.d.ts +0 -4
- package/styleFunctionSx/index.d.ts +0 -9
- package/styleFunctionSx/styleFunctionSx.d.ts +0 -62
- package/styled/index.d.ts +0 -1
- package/styled/styled.d.ts +0 -3
- package/typography/index.d.ts +0 -2
- package/typography/typography.d.ts +0 -11
- package/useMediaQuery/index.d.ts +0 -2
- package/useMediaQuery/useMediaQuery.d.ts +0 -32
- package/useTheme/index.d.ts +0 -2
- package/useTheme/useTheme.d.ts +0 -2
- package/useThemeProps/getThemeProps.d.ts +0 -16
- package/useThemeProps/index.d.ts +0 -3
- package/useThemeProps/useThemeProps.d.ts +0 -14
- package/useThemeWithoutDefault/index.d.ts +0 -1
- package/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
- package/version/index.d.ts +0 -6
package/merge/merge.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function merge(acc: object, item: object): object;
|
package/modern/Box/Box.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverridableComponent, OverrideProps } from '@mui/types';
|
|
3
|
-
import { Theme as SystemTheme } from "../createTheme/index.js";
|
|
4
|
-
import { SxProps, AllSystemCSSProperties, ResponsiveStyleValue, OverwriteCSSProperties, AliasesCSSProperties } from "../styleFunctionSx/index.js";
|
|
5
|
-
export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props> ? Props : never;
|
|
6
|
-
export type StyleFunction<Props> = (props: Props) => any;
|
|
7
|
-
export type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>> & {
|
|
8
|
-
filterProps: string[];
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// borders.js
|
|
12
|
-
export declare const borders: SimpleStyleFunction<'border' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft' | 'borderColor' | 'borderRadius'>;
|
|
13
|
-
export declare const display: SimpleStyleFunction<'display' | 'displayPrint' | 'overflow' | 'textOverflow' | 'visibility' | 'whiteSpace'>;
|
|
14
|
-
export declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
|
|
15
|
-
export declare const grid: SimpleStyleFunction<'gap' | 'columnGap' | 'rowGap' | 'gridColumn' | 'gridRow' | 'gridAutoFlow' | 'gridAutoColumns' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'gridTemplateAreas' | 'gridArea'>;
|
|
16
|
-
export declare const palette: SimpleStyleFunction<'bgcolor' | 'color'>;
|
|
17
|
-
export declare const positions: SimpleStyleFunction<'zIndex' | 'position' | 'top' | 'right' | 'bottom' | 'left'>;
|
|
18
|
-
export declare const shadows: SimpleStyleFunction<'boxShadow'>;
|
|
19
|
-
export declare const sizing: SimpleStyleFunction<'width' | 'maxWidth' | 'minWidth' | 'height' | 'maxHeight' | 'minHeight' | 'sizeWidth' | 'sizeHeight' | 'boxSizing'>;
|
|
20
|
-
export declare const spacing: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
|
|
21
|
-
export declare const typography: SimpleStyleFunction<'typography' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textAlign' | 'textTransform'>;
|
|
22
|
-
|
|
23
|
-
// compose.js
|
|
24
|
-
/**
|
|
25
|
-
* given a list of StyleFunction return the intersection of the props each individual
|
|
26
|
-
* StyleFunction requires.
|
|
27
|
-
*
|
|
28
|
-
* If `firstFn` requires { color: string } and `secondFn` requires { spacing: number }
|
|
29
|
-
* their composed function requires { color: string, spacing: number }
|
|
30
|
-
*/
|
|
31
|
-
type ComposedArg<T> = T extends Array<(arg: infer P) => any> ? P : never;
|
|
32
|
-
type ComposedOwnerState<T> = ComposedArg<T>;
|
|
33
|
-
export type ComposedStyleFunction<T extends Array<StyleFunction<any>>> = StyleFunction<ComposedOwnerState<T>> & {
|
|
34
|
-
filterProps: string[];
|
|
35
|
-
};
|
|
36
|
-
export interface CustomSystemProps extends AliasesCSSProperties, OverwriteCSSProperties {}
|
|
37
|
-
export type SimpleSystemKeys = keyof PropsFor<ComposedStyleFunction<[typeof borders, typeof display, typeof flexbox, typeof grid, typeof palette, typeof positions, typeof shadows, typeof sizing, typeof spacing, typeof typography]>>;
|
|
38
|
-
|
|
39
|
-
// The SimpleSystemKeys are subset of the AllSystemCSSProperties, so this should be ok
|
|
40
|
-
// This is needed as these are used as keys inside AllSystemCSSProperties
|
|
41
|
-
type StandardSystemKeys = Extract<SimpleSystemKeys, keyof AllSystemCSSProperties>;
|
|
42
|
-
export type SystemProps<Theme extends object = {}> = { [K in StandardSystemKeys]?: ResponsiveStyleValue<AllSystemCSSProperties[K]> | ((theme: Theme) => ResponsiveStyleValue<AllSystemCSSProperties[K]>) };
|
|
43
|
-
export interface BoxOwnProps<Theme extends object = SystemTheme> extends SystemProps<Theme> {
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
ref?: React.Ref<unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
48
|
-
*/
|
|
49
|
-
sx?: SxProps<Theme>;
|
|
50
|
-
}
|
|
51
|
-
export interface BoxTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div', Theme extends object = SystemTheme> {
|
|
52
|
-
props: AdditionalProps & BoxOwnProps<Theme>;
|
|
53
|
-
defaultComponent: RootComponent;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* Demos:
|
|
59
|
-
*
|
|
60
|
-
* - [Box (Joy UI)](https://mui.com/joy-ui/react-box/)
|
|
61
|
-
* - [Box (Material UI)](https://mui.com/material-ui/react-box/)
|
|
62
|
-
* - [Box (MUI System)](https://mui.com/system/react-box/)
|
|
63
|
-
*
|
|
64
|
-
* API:
|
|
65
|
-
*
|
|
66
|
-
* - [Box API](https://mui.com/system/api/box/)
|
|
67
|
-
*/
|
|
68
|
-
declare const Box: OverridableComponent<BoxTypeMap>;
|
|
69
|
-
export type BoxProps<RootComponent extends React.ElementType = BoxTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<BoxTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
70
|
-
component?: React.ElementType;
|
|
71
|
-
};
|
|
72
|
-
export default Box;
|
package/modern/Box/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as CSS from 'csstype';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* All non-vendor-prefixed CSS properties. (Also allows `number` in order to support CSS-in-JS libs,
|
|
5
|
-
* since they are converted to `px`.)
|
|
6
|
-
*/
|
|
7
|
-
export interface CSSProperties extends CSS.StandardProperties<number | string>, CSS.SvgProperties<number | string> {}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Container (Material UI)](https://mui.com/material-ui/react-container/)
|
|
6
|
-
* - [Container (MUI System)](https://mui.com/system/react-container/)
|
|
7
|
-
*
|
|
8
|
-
* API:
|
|
9
|
-
*
|
|
10
|
-
* - [Container API](https://mui.com/system/api/container/)
|
|
11
|
-
*/
|
|
12
|
-
declare const Container: import("@mui/types").OverridableComponent<import("./ContainerProps.js").ContainerTypeMap<{}, "div">>;
|
|
13
|
-
export default Container;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
-
import { Theme, Breakpoint } from "../createTheme/index.js";
|
|
5
|
-
import { ContainerClasses } from "./containerClasses.js";
|
|
6
|
-
export interface ContainerTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
|
7
|
-
props: AdditionalProps & {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Override or extend the styles applied to the component.
|
|
11
|
-
*/
|
|
12
|
-
classes?: Partial<ContainerClasses>;
|
|
13
|
-
/**
|
|
14
|
-
* If `true`, the left and right padding is removed.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disableGutters?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Set the max-width to match the min-width of the current breakpoint.
|
|
20
|
-
* This is useful if you'd prefer to design for a fixed set of sizes
|
|
21
|
-
* instead of trying to accommodate a fully fluid viewport.
|
|
22
|
-
* It's fluid by default.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
fixed?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Determine the max-width of the container.
|
|
28
|
-
* The container width grows with the size of the screen.
|
|
29
|
-
* Set to `false` to disable `maxWidth`.
|
|
30
|
-
* @default 'lg'
|
|
31
|
-
*/
|
|
32
|
-
maxWidth?: Breakpoint | false;
|
|
33
|
-
/**
|
|
34
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
35
|
-
*/
|
|
36
|
-
sx?: SxProps<Theme>;
|
|
37
|
-
};
|
|
38
|
-
defaultComponent: DefaultComponent;
|
|
39
|
-
}
|
|
40
|
-
export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ContainerClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `disableGutters={true}`. */
|
|
5
|
-
disableGutters: string;
|
|
6
|
-
/** Styles applied to the root element if `fixed={true}`. */
|
|
7
|
-
fixed: string;
|
|
8
|
-
/** Styles applied to the root element if `maxWidth="xs"`. */
|
|
9
|
-
maxWidthXs: string;
|
|
10
|
-
/** Styles applied to the root element if `maxWidth="sm"`. */
|
|
11
|
-
maxWidthSm: string;
|
|
12
|
-
/** Styles applied to the root element if `maxWidth="md"`. */
|
|
13
|
-
maxWidthMd: string;
|
|
14
|
-
/** Styles applied to the root element if `maxWidth="lg"`. */
|
|
15
|
-
maxWidthLg: string;
|
|
16
|
-
/** Styles applied to the root element if `maxWidth="xl"`. */
|
|
17
|
-
maxWidthXl: string;
|
|
18
|
-
}
|
|
19
|
-
export type ContainerClassKey = keyof ContainerClasses;
|
|
20
|
-
export declare function getContainerUtilityClass(slot: string): string;
|
|
21
|
-
declare const containerClasses: ContainerClasses;
|
|
22
|
-
export default containerClasses;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Interpolation, MUIStyledComponent as StyledComponent } from '@mui/styled-engine';
|
|
3
|
-
import { OverridableComponent } from '@mui/types';
|
|
4
|
-
import { ContainerProps, ContainerTypeMap } from "./ContainerProps.js";
|
|
5
|
-
import { Theme as DefaultTheme } from "../createTheme/index.js";
|
|
6
|
-
interface StyleFnProps<Theme> extends ContainerProps {
|
|
7
|
-
theme: Theme;
|
|
8
|
-
ownerState: ContainerProps;
|
|
9
|
-
}
|
|
10
|
-
type RequiredThemeStructure = Pick<DefaultTheme, 'breakpoints' | 'spacing'>;
|
|
11
|
-
export default function createContainer<Theme extends RequiredThemeStructure = DefaultTheme>(options?: {
|
|
12
|
-
createStyledComponent?: (...styles: Array<Interpolation<StyleFnProps<Theme>>>) => StyledComponent<ContainerProps>;
|
|
13
|
-
useThemeProps?: (inProps: ContainerProps) => ContainerProps & {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
};
|
|
16
|
-
componentName?: string;
|
|
17
|
-
}): OverridableComponent<ContainerTypeMap<{}, "div">>;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare function DefaultPropsProvider({
|
|
3
|
-
value,
|
|
4
|
-
children
|
|
5
|
-
}: React.PropsWithChildren<{
|
|
6
|
-
value: Record<string, any> | undefined;
|
|
7
|
-
}>): React.JSX.Element;
|
|
8
|
-
declare namespace DefaultPropsProvider {
|
|
9
|
-
var propTypes: any;
|
|
10
|
-
}
|
|
11
|
-
export declare function useDefaultProps<Props>({
|
|
12
|
-
props,
|
|
13
|
-
name
|
|
14
|
-
}: {
|
|
15
|
-
props: Props;
|
|
16
|
-
name: string;
|
|
17
|
-
}): Props;
|
|
18
|
-
export default DefaultPropsProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, useDefaultProps } from "./DefaultPropsProvider.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Interpolation } from '@mui/styled-engine';
|
|
3
|
-
import { Theme as SystemTheme } from "../createTheme/index.js";
|
|
4
|
-
export interface GlobalStylesProps<Theme = SystemTheme> {
|
|
5
|
-
styles: Interpolation<Theme>;
|
|
6
|
-
defaultTheme?: object;
|
|
7
|
-
themeId?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function GlobalStyles<Theme = SystemTheme>({
|
|
10
|
-
styles,
|
|
11
|
-
themeId,
|
|
12
|
-
defaultTheme
|
|
13
|
-
}: GlobalStylesProps<Theme>): React.JSX.Element;
|
|
14
|
-
declare namespace GlobalStyles {
|
|
15
|
-
var propTypes: any;
|
|
16
|
-
}
|
|
17
|
-
export default GlobalStyles;
|
package/modern/Grid/Grid.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Grid (Joy UI)](https://mui.com/joy-ui/react-grid/)
|
|
6
|
-
* - [Grid (Material UI)](https://mui.com/material-ui/react-grid/)
|
|
7
|
-
*
|
|
8
|
-
* API:
|
|
9
|
-
*
|
|
10
|
-
* - [Grid API](https://mui.com/system/api/grid/)
|
|
11
|
-
*/
|
|
12
|
-
declare const Grid: import("@mui/types").OverridableComponent<import("./GridProps.js").GridTypeMap<{}, "div">>;
|
|
13
|
-
export default Grid;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps, PartiallyRequired } from '@mui/types';
|
|
3
|
-
import { SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
-
import { Theme, Breakpoint } from "../createTheme/index.js";
|
|
5
|
-
import { SystemProps } from "../Box/index.js";
|
|
6
|
-
type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
|
|
7
|
-
export type GridDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
8
|
-
export type GridSpacing = number | string;
|
|
9
|
-
export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
10
|
-
export type GridSize = 'auto' | 'grow' | number | false;
|
|
11
|
-
export type GridOffset = 'auto' | number;
|
|
12
|
-
export interface GridBaseProps {
|
|
13
|
-
/**
|
|
14
|
-
* The content of the component.
|
|
15
|
-
*/
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* The number of columns.
|
|
19
|
-
* @default 12
|
|
20
|
-
*/
|
|
21
|
-
columns?: ResponsiveStyleValue<number>;
|
|
22
|
-
/**
|
|
23
|
-
* Defines the horizontal space between the type `item` components.
|
|
24
|
-
* It overrides the value of the `spacing` prop.
|
|
25
|
-
*/
|
|
26
|
-
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
27
|
-
/**
|
|
28
|
-
* If `true`, the component will have the flex *container* behavior.
|
|
29
|
-
* You should be wrapping *items* with a *container*.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
container?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Defines the `flex-direction` style property.
|
|
35
|
-
* It is applied for all screen sizes.
|
|
36
|
-
* @default 'row'
|
|
37
|
-
*/
|
|
38
|
-
direction?: ResponsiveStyleValue<GridDirection>;
|
|
39
|
-
/**
|
|
40
|
-
* Defines the offset value for the type `item` components.
|
|
41
|
-
*/
|
|
42
|
-
offset?: ResponsiveStyleValue<GridOffset>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* The level of the grid starts from `0` and increases when the grid nests
|
|
46
|
-
* inside another grid. Nesting is defined as a container Grid being a direct
|
|
47
|
-
* child of a container Grid.
|
|
48
|
-
*
|
|
49
|
-
* ```js
|
|
50
|
-
* <Grid container> // level 0
|
|
51
|
-
* <Grid container> // level 1
|
|
52
|
-
* <Grid container> // level 2
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* Only consecutive grid is considered nesting. A grid container will start at
|
|
56
|
-
* `0` if there are non-Grid container element above it.
|
|
57
|
-
*
|
|
58
|
-
* ```js
|
|
59
|
-
* <Grid container> // level 0
|
|
60
|
-
* <div>
|
|
61
|
-
* <Grid container> // level 0
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* ```js
|
|
65
|
-
* <Grid container> // level 0
|
|
66
|
-
* <Grid>
|
|
67
|
-
* <Grid container> // level 0
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
unstable_level?: number;
|
|
71
|
-
/**
|
|
72
|
-
* Defines the vertical space between the type `item` components.
|
|
73
|
-
* It overrides the value of the `spacing` prop.
|
|
74
|
-
*/
|
|
75
|
-
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
76
|
-
/**
|
|
77
|
-
* Defines the size of the the type `item` components.
|
|
78
|
-
*/
|
|
79
|
-
size?: ResponsiveStyleValue<GridSize>;
|
|
80
|
-
/**
|
|
81
|
-
* Defines the space between the type `item` components.
|
|
82
|
-
* It can only be used on a type `container` component.
|
|
83
|
-
* @default 0
|
|
84
|
-
*/
|
|
85
|
-
spacing?: ResponsiveStyleValue<GridSpacing> | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Defines the `flex-wrap` style property.
|
|
88
|
-
* It's applied for all screen sizes.
|
|
89
|
-
* @default 'wrap'
|
|
90
|
-
*/
|
|
91
|
-
wrap?: GridWrap;
|
|
92
|
-
}
|
|
93
|
-
export type GridOwnerState = PartiallyRequired<GridBaseProps, 'size' | 'offset' | 'unstable_level'>;
|
|
94
|
-
export interface GridTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
|
95
|
-
props: AdditionalProps & GridBaseProps & {
|
|
96
|
-
sx?: SxProps<Theme>;
|
|
97
|
-
} & SystemProps<Theme>;
|
|
98
|
-
defaultComponent: DefaultComponent;
|
|
99
|
-
}
|
|
100
|
-
export type GridProps<RootComponent extends React.ElementType = GridTypeMap['defaultComponent'], AdditionalProps = {
|
|
101
|
-
component?: React.ElementType;
|
|
102
|
-
}> = OverrideProps<GridTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
103
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverridableComponent } from '@mui/types';
|
|
3
|
-
import useThemeSystem from "../useTheme/index.js";
|
|
4
|
-
import { GridTypeMap } from "./GridProps.js";
|
|
5
|
-
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled/index.js").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
6
|
-
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
7
|
-
export default function createGrid(options?: {
|
|
8
|
-
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
9
|
-
useThemeProps?: typeof useThemePropsDefault;
|
|
10
|
-
useTheme?: typeof useThemeSystem;
|
|
11
|
-
componentName?: string;
|
|
12
|
-
}): OverridableComponent<GridTypeMap<{}, "div">>;
|
|
13
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface GridClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `container={true}`. */
|
|
5
|
-
container: string;
|
|
6
|
-
/** Styles applied to the root element if `direction="column"`. */
|
|
7
|
-
'direction-xs-column': string;
|
|
8
|
-
/** Styles applied to the root element if `direction="column-reverse"`. */
|
|
9
|
-
'direction-xs-column-reverse': string;
|
|
10
|
-
/** Styles applied to the root element if `direction="row-reverse"`. */
|
|
11
|
-
'direction-xs-row-reverse': string;
|
|
12
|
-
/** Styles applied to the root element if `wrap="nowrap"`. */
|
|
13
|
-
'wrap-xs-nowrap': string;
|
|
14
|
-
/** Styles applied to the root element if `wrap="reverse"`. */
|
|
15
|
-
'wrap-xs-wrap-reverse': string;
|
|
16
|
-
}
|
|
17
|
-
export type GridClassKey = keyof GridClasses;
|
|
18
|
-
export declare function getGridUtilityClass(slot: string): string;
|
|
19
|
-
declare const gridClasses: GridClasses;
|
|
20
|
-
export default gridClasses;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Breakpoints } from "../createBreakpoints/createBreakpoints.js";
|
|
2
|
-
import { Spacing } from "../createTheme/createSpacing.js";
|
|
3
|
-
import { ResponsiveStyleValue } from "../styleFunctionSx/index.js";
|
|
4
|
-
import { GridDirection, GridOwnerState } from "./GridProps.js";
|
|
5
|
-
interface Props {
|
|
6
|
-
theme: {
|
|
7
|
-
breakpoints: Breakpoints;
|
|
8
|
-
spacing?: Spacing;
|
|
9
|
-
};
|
|
10
|
-
ownerState: GridOwnerState;
|
|
11
|
-
}
|
|
12
|
-
export declare const generateGridSizeStyles: ({
|
|
13
|
-
theme,
|
|
14
|
-
ownerState
|
|
15
|
-
}: Props) => {};
|
|
16
|
-
export declare const generateGridOffsetStyles: ({
|
|
17
|
-
theme,
|
|
18
|
-
ownerState
|
|
19
|
-
}: Props) => {};
|
|
20
|
-
export declare const generateGridColumnsStyles: ({
|
|
21
|
-
theme,
|
|
22
|
-
ownerState
|
|
23
|
-
}: Props) => {};
|
|
24
|
-
export declare const generateGridRowSpacingStyles: ({
|
|
25
|
-
theme,
|
|
26
|
-
ownerState
|
|
27
|
-
}: Props) => {};
|
|
28
|
-
export declare const generateGridColumnSpacingStyles: ({
|
|
29
|
-
theme,
|
|
30
|
-
ownerState
|
|
31
|
-
}: Props) => {};
|
|
32
|
-
export declare const generateGridDirectionStyles: ({
|
|
33
|
-
theme,
|
|
34
|
-
ownerState
|
|
35
|
-
}: Props) => {};
|
|
36
|
-
export declare const generateGridStyles: ({
|
|
37
|
-
ownerState
|
|
38
|
-
}: Props) => {};
|
|
39
|
-
export declare const generateSizeClassNames: (size: GridOwnerState["size"]) => string[];
|
|
40
|
-
export declare const generateSpacingClassNames: (spacing: GridOwnerState["spacing"], smallestBreakpoint?: string) => string[];
|
|
41
|
-
export declare const generateDirectionClasses: (direction: ResponsiveStyleValue<GridDirection> | undefined) => string[];
|
|
42
|
-
export {};
|
package/modern/Grid/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default } from "./Grid.js";
|
|
2
|
-
export { default as createGrid } from "./createGrid.js";
|
|
3
|
-
export * from "./GridProps.js";
|
|
4
|
-
export { default as gridClasses } from "./gridClasses.js";
|
|
5
|
-
export * from "./gridClasses.js";
|
|
6
|
-
export { traverseBreakpoints as unstable_traverseBreakpoints } from "./traverseBreakpoints.js";
|
|
7
|
-
export { generateDirectionClasses as unstable_generateDirectionClasses, generateSizeClassNames as unstable_generateSizeClassNames, generateSpacingClassNames as unstable_generateSpacingClassNames } from "./gridGenerator.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Breakpoints, Breakpoint } from "../createBreakpoints/createBreakpoints.js";
|
|
2
|
-
export declare const filterBreakpointKeys: (breakpointsKeys: Breakpoint[], responsiveKeys: string[]) => Breakpoint[];
|
|
3
|
-
interface Iterator<T> {
|
|
4
|
-
(appendStyle: (responsiveStyles: Record<string, any>, style: object) => void, value: T): void;
|
|
5
|
-
}
|
|
6
|
-
export declare const traverseBreakpoints: <T = unknown>(breakpoints: Breakpoints, responsive: T | T[] | Record<string, any> | undefined, iterator: Iterator<T>) => void;
|
|
7
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Split this component for RSC import
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
export declare const DEFAULT_MODE_STORAGE_KEY = "mode";
|
|
6
|
-
export declare const DEFAULT_COLOR_SCHEME_STORAGE_KEY = "color-scheme";
|
|
7
|
-
export declare const DEFAULT_ATTRIBUTE = "data-color-scheme";
|
|
8
|
-
export interface InitColorSchemeScriptProps {
|
|
9
|
-
/**
|
|
10
|
-
* The default mode when the storage is empty (user's first visit).
|
|
11
|
-
* @default 'system'
|
|
12
|
-
*/
|
|
13
|
-
defaultMode?: 'system' | 'light' | 'dark';
|
|
14
|
-
/**
|
|
15
|
-
* The default color scheme to be used on the light mode.
|
|
16
|
-
* @default 'light'
|
|
17
|
-
*/
|
|
18
|
-
defaultLightColorScheme?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The default color scheme to be used on the dark mode.
|
|
21
|
-
* * @default 'dark'
|
|
22
|
-
*/
|
|
23
|
-
defaultDarkColorScheme?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The node (provided as string) used to attach the color-scheme attribute.
|
|
26
|
-
* @default 'document.documentElement'
|
|
27
|
-
*/
|
|
28
|
-
colorSchemeNode?: string;
|
|
29
|
-
/**
|
|
30
|
-
* localStorage key used to store `mode`.
|
|
31
|
-
* @default 'mode'
|
|
32
|
-
*/
|
|
33
|
-
modeStorageKey?: string;
|
|
34
|
-
/**
|
|
35
|
-
* localStorage key used to store `colorScheme`.
|
|
36
|
-
* @default 'color-scheme'
|
|
37
|
-
*/
|
|
38
|
-
colorSchemeStorageKey?: string;
|
|
39
|
-
/**
|
|
40
|
-
* DOM attribute for applying color scheme.
|
|
41
|
-
* @default 'data-color-scheme'
|
|
42
|
-
* @example '.mode-%s' // for class based color scheme
|
|
43
|
-
* @example '[data-mode-%s]' // for data-attribute without '='
|
|
44
|
-
*/
|
|
45
|
-
attribute?: 'class' | 'data' | string;
|
|
46
|
-
/**
|
|
47
|
-
* Nonce string to pass to the inline script for CSP headers.
|
|
48
|
-
*/
|
|
49
|
-
nonce?: string | undefined;
|
|
50
|
-
}
|
|
51
|
-
export default function InitColorSchemeScript(options?: InitColorSchemeScriptProps): React.JSX.Element;
|
package/modern/Stack/Stack.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Stack (Joy UI)](https://mui.com/joy-ui/react-stack/)
|
|
6
|
-
* - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)
|
|
7
|
-
* - [Stack (MUI System)](https://mui.com/system/react-stack/)
|
|
8
|
-
*
|
|
9
|
-
* API:
|
|
10
|
-
*
|
|
11
|
-
* - [Stack API](https://mui.com/system/api/stack/)
|
|
12
|
-
*/
|
|
13
|
-
declare const Stack: import("@mui/types").OverridableComponent<import("./StackProps.js").StackTypeMap<{}, "div">>;
|
|
14
|
-
export default Stack;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { ResponsiveStyleValue, SxProps } from "../styleFunctionSx/index.js";
|
|
4
|
-
import { SystemProps } from "../Box/index.js";
|
|
5
|
-
import { Theme } from "../createTheme/index.js";
|
|
6
|
-
export interface StackBaseProps {
|
|
7
|
-
/**
|
|
8
|
-
* The content of the component.
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Defines the `flex-direction` style property.
|
|
13
|
-
* It is applied for all screen sizes.
|
|
14
|
-
* @default 'column'
|
|
15
|
-
*/
|
|
16
|
-
direction?: ResponsiveStyleValue<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
|
|
17
|
-
/**
|
|
18
|
-
* Defines the space between immediate children.
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
spacing?: ResponsiveStyleValue<number | string>;
|
|
22
|
-
/**
|
|
23
|
-
* Add an element between each child.
|
|
24
|
-
*/
|
|
25
|
-
divider?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
28
|
-
*
|
|
29
|
-
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
30
|
-
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
31
|
-
*
|
|
32
|
-
* To enable this flag globally, follow the theme's default props configuration.
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
useFlexGap?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface StackTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
|
|
38
|
-
props: AdditionalProps & StackBaseProps & {
|
|
39
|
-
/**
|
|
40
|
-
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
41
|
-
*/
|
|
42
|
-
sx?: SxProps<Theme>;
|
|
43
|
-
} & SystemProps<Theme>;
|
|
44
|
-
defaultComponent: DefaultComponent;
|
|
45
|
-
}
|
|
46
|
-
export type StackProps<RootComponent extends React.ElementType = StackTypeMap['defaultComponent'], AdditionalProps = {
|
|
47
|
-
component?: React.ElementType;
|
|
48
|
-
}> = OverrideProps<StackTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
49
|
-
export interface StackOwnerState {
|
|
50
|
-
direction: StackProps['direction'];
|
|
51
|
-
spacing: StackProps['spacing'];
|
|
52
|
-
useFlexGap: boolean;
|
|
53
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverridableComponent } from '@mui/types';
|
|
3
|
-
import { StackTypeMap, StackOwnerState } from "./StackProps.js";
|
|
4
|
-
import { Breakpoints } from "../createBreakpoints/createBreakpoints.js";
|
|
5
|
-
import { Spacing } from "../createTheme/createSpacing.js";
|
|
6
|
-
interface StyleFunctionProps {
|
|
7
|
-
theme: {
|
|
8
|
-
breakpoints: Breakpoints;
|
|
9
|
-
spacing: Spacing;
|
|
10
|
-
};
|
|
11
|
-
ownerState: StackOwnerState;
|
|
12
|
-
}
|
|
13
|
-
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled/index.js").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
14
|
-
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
15
|
-
export declare const style: ({
|
|
16
|
-
ownerState,
|
|
17
|
-
theme
|
|
18
|
-
}: StyleFunctionProps) => any;
|
|
19
|
-
export default function createStack(options?: {
|
|
20
|
-
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
21
|
-
useThemeProps?: typeof useThemePropsDefault;
|
|
22
|
-
componentName?: string;
|
|
23
|
-
}): OverridableComponent<StackTypeMap<{}, "div">>;
|
|
24
|
-
export {};
|
package/modern/Stack/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface StackClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export type StackClassKey = keyof StackClasses;
|
|
6
|
-
export declare function getStackUtilityClass(slot: string): string;
|
|
7
|
-
declare const stackClasses: StackClasses;
|
|
8
|
-
export default stackClasses;
|