@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.
Files changed (241) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/Grid/createGrid.js +4 -0
  3. package/Grid/deleteLegacyGridProps.js +47 -0
  4. package/esm/Grid/createGrid.js +4 -0
  5. package/esm/Grid/deleteLegacyGridProps.d.ts +11 -0
  6. package/esm/Grid/deleteLegacyGridProps.js +41 -0
  7. package/esm/index.js +1 -1
  8. package/esm/spacing/spacing.d.ts +2 -2
  9. package/esm/version/index.js +2 -2
  10. package/index.js +1 -1
  11. package/modern/Grid/createGrid.js +4 -0
  12. package/modern/Grid/deleteLegacyGridProps.js +41 -0
  13. package/modern/index.js +1 -1
  14. package/modern/version/index.js +2 -2
  15. package/package.json +10 -9
  16. package/tsconfig.build.tsbuildinfo +1 -1
  17. package/version/index.js +2 -2
  18. package/Box/Box.d.ts +0 -72
  19. package/Box/boxClasses.d.ts +0 -7
  20. package/Box/index.d.ts +0 -4
  21. package/CSSProperties.d.ts +0 -7
  22. package/Container/Container.d.ts +0 -13
  23. package/Container/ContainerProps.d.ts +0 -40
  24. package/Container/containerClasses.d.ts +0 -22
  25. package/Container/createContainer.d.ts +0 -18
  26. package/Container/index.d.ts +0 -4
  27. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
  28. package/DefaultPropsProvider/index.d.ts +0 -1
  29. package/GlobalStyles/GlobalStyles.d.ts +0 -17
  30. package/GlobalStyles/index.d.ts +0 -2
  31. package/Grid/Grid.d.ts +0 -13
  32. package/Grid/GridProps.d.ts +0 -103
  33. package/Grid/createGrid.d.ts +0 -13
  34. package/Grid/gridClasses.d.ts +0 -20
  35. package/Grid/gridGenerator.d.ts +0 -42
  36. package/Grid/index.d.ts +0 -7
  37. package/Grid/traverseBreakpoints.d.ts +0 -7
  38. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
  39. package/InitColorSchemeScript/index.d.ts +0 -2
  40. package/RtlProvider/index.d.ts +0 -8
  41. package/Stack/Stack.d.ts +0 -14
  42. package/Stack/StackProps.d.ts +0 -53
  43. package/Stack/createStack.d.ts +0 -24
  44. package/Stack/index.d.ts +0 -5
  45. package/Stack/stackClasses.d.ts +0 -8
  46. package/ThemeProvider/ThemeProvider.d.ts +0 -24
  47. package/ThemeProvider/index.d.ts +0 -2
  48. package/borders/borders.d.ts +0 -13
  49. package/borders/index.d.ts +0 -2
  50. package/breakpoints/breakpoints.d.ts +0 -19
  51. package/breakpoints/index.d.ts +0 -2
  52. package/colorManipulator/colorManipulator.d.ts +0 -25
  53. package/colorManipulator/index.d.ts +0 -1
  54. package/compose/compose.d.ts +0 -2
  55. package/compose/index.d.ts +0 -1
  56. package/createBox/createBox.d.ts +0 -9
  57. package/createBox/index.d.ts +0 -1
  58. package/createBreakpoints/createBreakpoints.d.ts +0 -78
  59. package/createBreakpoints/index.d.ts +0 -3
  60. package/createStyled/createStyled.d.ts +0 -27
  61. package/createStyled/index.d.ts +0 -2
  62. package/createTheme/applyStyles.d.ts +0 -67
  63. package/createTheme/createSpacing.d.ts +0 -10
  64. package/createTheme/createTheme.d.ts +0 -54
  65. package/createTheme/index.d.ts +0 -4
  66. package/createTheme/shape.d.ts +0 -6
  67. package/cssContainerQueries/cssContainerQueries.d.ts +0 -23
  68. package/cssContainerQueries/index.d.ts +0 -3
  69. package/cssGrid/cssGrid.d.ts +0 -2
  70. package/cssGrid/index.d.ts +0 -2
  71. package/cssVars/createCssVarsProvider.d.ts +0 -129
  72. package/cssVars/createCssVarsTheme.d.ts +0 -15
  73. package/cssVars/createGetCssVar.d.ts +0 -5
  74. package/cssVars/cssVarsParser.d.ts +0 -64
  75. package/cssVars/getColorSchemeSelector.d.ts +0 -1
  76. package/cssVars/index.d.ts +0 -7
  77. package/cssVars/prepareCssVars.d.ts +0 -16
  78. package/cssVars/prepareTypographyVars.d.ts +0 -4
  79. package/cssVars/useCurrentColorScheme.d.ts +0 -54
  80. package/display/display.d.ts +0 -2
  81. package/display/index.d.ts +0 -2
  82. package/flexbox/flexbox.d.ts +0 -2
  83. package/flexbox/index.d.ts +0 -2
  84. package/getThemeValue/getThemeValue.d.ts +0 -1
  85. package/getThemeValue/index.d.ts +0 -2
  86. package/index.d.ts +0 -79
  87. package/memoTheme.d.ts +0 -12
  88. package/memoize/index.d.ts +0 -1
  89. package/memoize/memoize.d.ts +0 -1
  90. package/merge/index.d.ts +0 -1
  91. package/merge/merge.d.ts +0 -1
  92. package/modern/Box/Box.d.ts +0 -72
  93. package/modern/Box/boxClasses.d.ts +0 -7
  94. package/modern/Box/index.d.ts +0 -4
  95. package/modern/CSSProperties.d.ts +0 -7
  96. package/modern/Container/Container.d.ts +0 -13
  97. package/modern/Container/ContainerProps.d.ts +0 -40
  98. package/modern/Container/containerClasses.d.ts +0 -22
  99. package/modern/Container/createContainer.d.ts +0 -18
  100. package/modern/Container/index.d.ts +0 -4
  101. package/modern/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -18
  102. package/modern/DefaultPropsProvider/index.d.ts +0 -1
  103. package/modern/GlobalStyles/GlobalStyles.d.ts +0 -17
  104. package/modern/GlobalStyles/index.d.ts +0 -2
  105. package/modern/Grid/Grid.d.ts +0 -13
  106. package/modern/Grid/GridProps.d.ts +0 -103
  107. package/modern/Grid/createGrid.d.ts +0 -13
  108. package/modern/Grid/gridClasses.d.ts +0 -20
  109. package/modern/Grid/gridGenerator.d.ts +0 -42
  110. package/modern/Grid/index.d.ts +0 -7
  111. package/modern/Grid/traverseBreakpoints.d.ts +0 -7
  112. package/modern/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -51
  113. package/modern/InitColorSchemeScript/index.d.ts +0 -2
  114. package/modern/RtlProvider/index.d.ts +0 -8
  115. package/modern/Stack/Stack.d.ts +0 -14
  116. package/modern/Stack/StackProps.d.ts +0 -53
  117. package/modern/Stack/createStack.d.ts +0 -24
  118. package/modern/Stack/index.d.ts +0 -5
  119. package/modern/Stack/stackClasses.d.ts +0 -8
  120. package/modern/ThemeProvider/ThemeProvider.d.ts +0 -24
  121. package/modern/ThemeProvider/index.d.ts +0 -2
  122. package/modern/borders/borders.d.ts +0 -13
  123. package/modern/borders/index.d.ts +0 -2
  124. package/modern/breakpoints/breakpoints.d.ts +0 -19
  125. package/modern/breakpoints/index.d.ts +0 -2
  126. package/modern/colorManipulator/colorManipulator.d.ts +0 -25
  127. package/modern/colorManipulator/index.d.ts +0 -1
  128. package/modern/compose/compose.d.ts +0 -2
  129. package/modern/compose/index.d.ts +0 -1
  130. package/modern/createBox/createBox.d.ts +0 -9
  131. package/modern/createBox/index.d.ts +0 -1
  132. package/modern/createBreakpoints/createBreakpoints.d.ts +0 -78
  133. package/modern/createBreakpoints/index.d.ts +0 -3
  134. package/modern/createStyled/createStyled.d.ts +0 -27
  135. package/modern/createStyled/index.d.ts +0 -2
  136. package/modern/createTheme/applyStyles.d.ts +0 -67
  137. package/modern/createTheme/createSpacing.d.ts +0 -10
  138. package/modern/createTheme/createTheme.d.ts +0 -54
  139. package/modern/createTheme/index.d.ts +0 -4
  140. package/modern/createTheme/shape.d.ts +0 -6
  141. package/modern/cssContainerQueries/cssContainerQueries.d.ts +0 -23
  142. package/modern/cssContainerQueries/index.d.ts +0 -3
  143. package/modern/cssGrid/cssGrid.d.ts +0 -2
  144. package/modern/cssGrid/index.d.ts +0 -2
  145. package/modern/cssVars/createCssVarsProvider.d.ts +0 -129
  146. package/modern/cssVars/createCssVarsTheme.d.ts +0 -15
  147. package/modern/cssVars/createGetCssVar.d.ts +0 -5
  148. package/modern/cssVars/cssVarsParser.d.ts +0 -64
  149. package/modern/cssVars/getColorSchemeSelector.d.ts +0 -1
  150. package/modern/cssVars/index.d.ts +0 -7
  151. package/modern/cssVars/prepareCssVars.d.ts +0 -16
  152. package/modern/cssVars/prepareTypographyVars.d.ts +0 -4
  153. package/modern/cssVars/useCurrentColorScheme.d.ts +0 -54
  154. package/modern/display/display.d.ts +0 -2
  155. package/modern/display/index.d.ts +0 -2
  156. package/modern/flexbox/flexbox.d.ts +0 -2
  157. package/modern/flexbox/index.d.ts +0 -2
  158. package/modern/getThemeValue/getThemeValue.d.ts +0 -1
  159. package/modern/getThemeValue/index.d.ts +0 -2
  160. package/modern/index.d.ts +0 -79
  161. package/modern/memoTheme.d.ts +0 -12
  162. package/modern/memoize/index.d.ts +0 -1
  163. package/modern/memoize/memoize.d.ts +0 -1
  164. package/modern/merge/index.d.ts +0 -1
  165. package/modern/merge/merge.d.ts +0 -1
  166. package/modern/palette/index.d.ts +0 -2
  167. package/modern/palette/palette.d.ts +0 -4
  168. package/modern/positions/index.d.ts +0 -2
  169. package/modern/positions/positions.d.ts +0 -2
  170. package/modern/preprocessStyles.d.ts +0 -5
  171. package/modern/propsToClassKey/index.d.ts +0 -1
  172. package/modern/propsToClassKey/propsToClassKey.d.ts +0 -1
  173. package/modern/responsivePropType/index.d.ts +0 -1
  174. package/modern/responsivePropType/responsivePropType.d.ts +0 -2
  175. package/modern/shadows/index.d.ts +0 -1
  176. package/modern/shadows/shadows.d.ts +0 -2
  177. package/modern/sizing/index.d.ts +0 -2
  178. package/modern/sizing/sizing.d.ts +0 -11
  179. package/modern/spacing/index.d.ts +0 -2
  180. package/modern/spacing/spacing.d.ts +0 -18
  181. package/modern/style/index.d.ts +0 -2
  182. package/modern/style/style.d.ts +0 -19
  183. package/modern/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
  184. package/modern/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
  185. package/modern/styleFunctionSx/StandardCssProperties.d.ts +0 -2
  186. package/modern/styleFunctionSx/defaultSxConfig.d.ts +0 -15
  187. package/modern/styleFunctionSx/extendSxProp.d.ts +0 -4
  188. package/modern/styleFunctionSx/index.d.ts +0 -9
  189. package/modern/styleFunctionSx/styleFunctionSx.d.ts +0 -62
  190. package/modern/styled/index.d.ts +0 -1
  191. package/modern/styled/styled.d.ts +0 -3
  192. package/modern/typography/index.d.ts +0 -2
  193. package/modern/typography/typography.d.ts +0 -11
  194. package/modern/useMediaQuery/index.d.ts +0 -2
  195. package/modern/useMediaQuery/useMediaQuery.d.ts +0 -32
  196. package/modern/useTheme/index.d.ts +0 -2
  197. package/modern/useTheme/useTheme.d.ts +0 -2
  198. package/modern/useThemeProps/getThemeProps.d.ts +0 -16
  199. package/modern/useThemeProps/index.d.ts +0 -3
  200. package/modern/useThemeProps/useThemeProps.d.ts +0 -14
  201. package/modern/useThemeWithoutDefault/index.d.ts +0 -1
  202. package/modern/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
  203. package/modern/version/index.d.ts +0 -6
  204. package/palette/index.d.ts +0 -2
  205. package/palette/palette.d.ts +0 -4
  206. package/positions/index.d.ts +0 -2
  207. package/positions/positions.d.ts +0 -2
  208. package/preprocessStyles.d.ts +0 -5
  209. package/propsToClassKey/index.d.ts +0 -1
  210. package/propsToClassKey/propsToClassKey.d.ts +0 -1
  211. package/responsivePropType/index.d.ts +0 -1
  212. package/responsivePropType/responsivePropType.d.ts +0 -2
  213. package/shadows/index.d.ts +0 -1
  214. package/shadows/shadows.d.ts +0 -2
  215. package/sizing/index.d.ts +0 -2
  216. package/sizing/sizing.d.ts +0 -11
  217. package/spacing/index.d.ts +0 -2
  218. package/spacing/spacing.d.ts +0 -18
  219. package/style/index.d.ts +0 -2
  220. package/style/style.d.ts +0 -19
  221. package/styleFunctionSx/AliasesCSSProperties.d.ts +0 -269
  222. package/styleFunctionSx/OverwriteCSSProperties.d.ts +0 -54
  223. package/styleFunctionSx/StandardCssProperties.d.ts +0 -2
  224. package/styleFunctionSx/defaultSxConfig.d.ts +0 -15
  225. package/styleFunctionSx/extendSxProp.d.ts +0 -4
  226. package/styleFunctionSx/index.d.ts +0 -9
  227. package/styleFunctionSx/styleFunctionSx.d.ts +0 -62
  228. package/styled/index.d.ts +0 -1
  229. package/styled/styled.d.ts +0 -3
  230. package/typography/index.d.ts +0 -2
  231. package/typography/typography.d.ts +0 -11
  232. package/useMediaQuery/index.d.ts +0 -2
  233. package/useMediaQuery/useMediaQuery.d.ts +0 -32
  234. package/useTheme/index.d.ts +0 -2
  235. package/useTheme/useTheme.d.ts +0 -2
  236. package/useThemeProps/getThemeProps.d.ts +0 -16
  237. package/useThemeProps/index.d.ts +0 -3
  238. package/useThemeProps/useThemeProps.d.ts +0 -14
  239. package/useThemeWithoutDefault/index.d.ts +0 -1
  240. package/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +0 -1
  241. package/version/index.d.ts +0 -6
@@ -1,54 +0,0 @@
1
- import * as CSS from 'csstype';
2
- export interface OverwriteCSSProperties {
3
- /**
4
- * The **`border`** CSS property is shorthand for the CSS properties **`border-width`**, **`border-style`**, and **`border-color`**. It sets an element's border.
5
- *
6
- * **Initial value**: `none`
7
- *
8
- * | Chrome | Firefox | Safari | Edge | IE |
9
- * | :----: | :-----: | :----: | :----: | :---: |
10
- * | **1** | **1** | **1** | **12** | **4** |
11
- *
12
- * @see https://developer.mozilla.org/docs/Web/CSS/border
13
- */
14
- border?: CSS.Property.Border | number;
15
- /**
16
- * The **`box-shadow`** CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the
17
- * element for blur and spread radii, and by its color.
18
- *
19
- * **Initial value**: `none`
20
- *
21
- * | Chrome | Firefox | Safari | Edge | IE |
22
- * | :-----: | :-----: | :-----: | :----: | :---: |
23
- * | **10** | **4** | **5.1** | **12** | **9** |
24
- * | 1 _-x-_ | | 3 _-x-_ | | |
25
- *
26
- * @see https://developer.mozilla.org/docs/Web/CSS/box-shadow
27
- */
28
- boxShadow?: CSS.Property.BoxShadow | number;
29
- /**
30
- * The **`font-weight`** CSS property specifies the weight (or boldness) of the font. The font weights available to you will depend on the `font-family` you are using. Some fonts are only
31
- * available in `normal` and `bold`.
32
- *
33
- * **Initial value**: `normal`
34
- *
35
- * | Chrome | Firefox | Safari | Edge | IE |
36
- * | :----: | :-----: | :----: | :----: | :---: |
37
- * | **2** | **1** | **1** | **12** | **3** |
38
- *
39
- * @see https://developer.mozilla.org/docs/Web/CSS/font-weight
40
- */
41
- fontWeight?: CSS.Property.FontWeight | string;
42
- /**
43
- * The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a higher z-index cover those with a lower one.
44
- *
45
- * **Initial value**: `auto`
46
- *
47
- * | Chrome | Firefox | Safari | Edge | IE |
48
- * | :----: | :-----: | :----: | :----: | :---: |
49
- * | **1** | **1** | **1** | **12** | **4** |
50
- *
51
- * @see https://developer.mozilla.org/docs/Web/CSS/z-index
52
- */
53
- zIndex?: CSS.Property.ZIndex | string;
54
- }
@@ -1,2 +0,0 @@
1
- import * as CSS from 'csstype';
2
- export type StandardCSSProperties = CSS.PropertiesFallback<number | string>;
@@ -1,15 +0,0 @@
1
- import { StyleFunction } from "../Box/index.js";
2
- import { TransformFunction } from "../style/index.js";
3
- type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
4
- export interface SxConfigRecord {
5
- cssProperty?: keyof React.CSSProperties | false;
6
- /**
7
- * dot access in `Theme`
8
- */
9
- themeKey?: string;
10
- transform?: TransformFunction;
11
- style?: SimpleStyleFunction<any>;
12
- }
13
- export type SxConfig = Record<string, SxConfigRecord>;
14
- declare const defaultSxConfig: SxConfig;
15
- export default defaultSxConfig;
@@ -1,4 +0,0 @@
1
- import { SxProps } from "./styleFunctionSx.js";
2
- export default function extendSxProp<Props extends {
3
- sx?: SxProps<any>;
4
- } = {}>(props: Props): Props;
@@ -1,9 +0,0 @@
1
- export { default } from "./styleFunctionSx.js";
2
- export * from "./styleFunctionSx.js";
3
- export * from "./AliasesCSSProperties.js";
4
- export * from "./OverwriteCSSProperties.js";
5
- export * from "./StandardCssProperties.js";
6
- export { default as extendSxProp } from "./extendSxProp.js";
7
- export { default as unstable_defaultSxConfig } from "./defaultSxConfig.js";
8
- export * from "./defaultSxConfig.js";
9
- export * from "./extendSxProp.js";
@@ -1,62 +0,0 @@
1
- import * as CSS from 'csstype';
2
- import { CSSObject } from '@mui/styled-engine';
3
- import { StandardCSSProperties } from "./StandardCssProperties.js";
4
- import { AliasesCSSProperties } from "./AliasesCSSProperties.js";
5
- import { OverwriteCSSProperties } from "./OverwriteCSSProperties.js";
6
-
7
- /**
8
- * The `css` function accepts arrays as values for mobile-first responsive styles.
9
- * Note that this extends to non-theme values also. For example `display=['none', 'block']`
10
- * will also works.
11
- */
12
- export type ResponsiveStyleValue<T> = T | ReadonlyArray<T | null> | {
13
- [key: string]: T | null;
14
- };
15
-
16
- /**
17
- * Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
18
- */
19
- export type CSSPseudoSelectorProps<Theme extends object = {}> = { [K in CSS.Pseudos]?: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme> };
20
-
21
- /**
22
- * Map all nested selectors.
23
- */
24
- export interface CSSSelectorObject<Theme extends object = {}> {
25
- [cssSelector: string]: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
26
- }
27
- type CssVariableType = string | number;
28
-
29
- /**
30
- * Map all nested selectors and CSS variables.
31
- */
32
- export interface CSSSelectorObjectOrCssVariables<Theme extends object = {}> {
33
- [cssSelectorOrVariable: string]: ((theme: Theme) => SystemStyleObject<Theme> | string | number) | SystemStyleObject<Theme> | CssVariableType;
34
- }
35
-
36
- /**
37
- * Map of all available CSS properties (including aliases) and their raw value.
38
- * Only used internally to map CSS properties to input types (responsive value,
39
- * theme function or nested) in `SystemCssProperties`.
40
- */
41
- export interface AllSystemCSSProperties extends Omit<StandardCSSProperties, keyof OverwriteCSSProperties>, OverwriteCSSProperties, AliasesCSSProperties {}
42
- export type SystemCssProperties<Theme extends object = {}> = { [K in keyof AllSystemCSSProperties]: ResponsiveStyleValue<AllSystemCSSProperties[K]> | ((theme: Theme) => ResponsiveStyleValue<AllSystemCSSProperties[K]>) | null };
43
-
44
- /**
45
- * The `SystemStyleObject` defines custom properties that will be transformed to
46
- * their corresponding values from the `Theme`. Other valid CSS properties are also allowed.
47
- */
48
- export type SystemStyleObject<Theme extends object = {}> = SystemCssProperties<Theme> | CSSPseudoSelectorProps<Theme> | CSSSelectorObjectOrCssVariables<Theme> | null;
49
-
50
- /**
51
- * The `SxProps` can be either object or function
52
- */
53
- export type SxProps<Theme extends object = {}> = SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>) | ReadonlyArray<boolean | SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>)>;
54
- export interface StyleFunctionSx {
55
- (props: object): CSSObject;
56
- filterProps?: string[];
57
- }
58
-
59
- // eslint-disable-next-line @typescript-eslint/naming-convention
60
- export function unstable_createStyleFunctionSx(styleFunctionMapping: Record<string, StyleFunctionSx>): StyleFunctionSx;
61
- declare const styleFunctionSx: StyleFunctionSx;
62
- export default styleFunctionSx;
@@ -1 +0,0 @@
1
- export { default } from "./styled.js";
@@ -1,3 +0,0 @@
1
- import { CreateMUIStyled } from "../createStyled/index.js";
2
- declare const styled: CreateMUIStyled;
3
- export default styled;
@@ -1,2 +0,0 @@
1
- export { default } from "./typography.js";
2
- export * from "./typography.js";
@@ -1,11 +0,0 @@
1
- import { PropsFor, SimpleStyleFunction, typography } from "../Box/index.js";
2
- export const typographyVariant: SimpleStyleFunction<'typography'>;
3
- export const fontFamily: SimpleStyleFunction<'fontFamily'>;
4
- export const fontSize: SimpleStyleFunction<'fontSize'>;
5
- export const fontStyle: SimpleStyleFunction<'fontStyle'>;
6
- export const fontWeight: SimpleStyleFunction<'fontWeight'>;
7
- export const letterSpacing: SimpleStyleFunction<'letterSpacing'>;
8
- export const lineHeight: SimpleStyleFunction<'lineHeight'>;
9
- export const textAlign: SimpleStyleFunction<'textAlign'>;
10
- export const textTransform: SimpleStyleFunction<'textTransform'>;
11
- export type TypographyProps = PropsFor<typeof typography>;
@@ -1,2 +0,0 @@
1
- export { default } from "./useMediaQuery.js";
2
- export * from "./useMediaQuery.js";
@@ -1,32 +0,0 @@
1
- export interface UseMediaQueryOptions {
2
- /**
3
- * As `window.matchMedia()` is unavailable on the server,
4
- * it returns a default matches during the first mount.
5
- * @default false
6
- */
7
- defaultMatches?: boolean;
8
- /**
9
- * You can provide your own implementation of matchMedia.
10
- * This can be used for handling an iframe content window.
11
- */
12
- matchMedia?: typeof window.matchMedia;
13
- /**
14
- * To perform the server-side hydration, the hook needs to render twice.
15
- * A first time with `defaultMatches`, the value of the server, and a second time with the resolved value.
16
- * This double pass rendering cycle comes with a drawback: it's slower.
17
- * You can set this option to `true` if you use the returned value **only** client-side.
18
- * @default false
19
- */
20
- noSsr?: boolean;
21
- /**
22
- * You can provide your own implementation of `matchMedia`, it's used when rendering server-side.
23
- */
24
- ssrMatchMedia?: (query: string) => {
25
- matches: boolean;
26
- };
27
- }
28
- export declare function unstable_createUseMediaQuery(params?: {
29
- themeId?: string;
30
- }): <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
31
- declare const useMediaQuery: <Theme = unknown>(queryInput: string | ((theme: Theme) => string), options?: UseMediaQueryOptions) => boolean;
32
- export default useMediaQuery;
@@ -1,2 +0,0 @@
1
- export { default } from "./useTheme.js";
2
- export * from "./useTheme.js";
@@ -1,2 +0,0 @@
1
- import { Theme } from "../createTheme/index.js";
2
- export default function useTheme<T = Theme>(defaultTheme?: T): T;
@@ -1,16 +0,0 @@
1
- export {};
2
- interface ThemeWithProps<Components> {
3
- components?: { [K in keyof Components]: {
4
- defaultProps?: Partial<Components[K]>;
5
- } };
6
- }
7
- type ThemedProps<Theme, Name extends keyof any> = Theme extends {
8
- components: Record<Name, {
9
- defaultProps: infer Props;
10
- }>;
11
- } ? Props : {};
12
- export default function getThemeProps<Theme, Props, Name extends keyof any>(params: {
13
- props: Props;
14
- name: Name;
15
- theme?: Theme;
16
- }): Props & ThemedProps<Theme, Name>;
@@ -1,3 +0,0 @@
1
- export { default } from "./useThemeProps.js";
2
- export * from "./useThemeProps.js";
3
- export { default as getThemeProps } from "./getThemeProps.js";
@@ -1,14 +0,0 @@
1
- export interface ThemeWithProps {
2
- components?: any;
3
- }
4
- export type ThemedProps<Theme, Name extends keyof any> = Theme extends {
5
- components: Record<Name, {
6
- defaultProps: infer Props;
7
- }>;
8
- } ? Props : {};
9
- export default function useThemeProps<Theme extends ThemeWithProps, Props, Name extends keyof any>(params: {
10
- props: Props;
11
- name: Name;
12
- defaultTheme?: Theme;
13
- themeId?: string;
14
- }): Props & ThemedProps<Theme, Name>;
@@ -1 +0,0 @@
1
- export { default } from "./useThemeWithoutDefault.js";
@@ -1 +0,0 @@
1
- export default function useThemeWithoutDefault<T = null>(defaultTheme?: T): T;
@@ -1,6 +0,0 @@
1
- export declare const version: string | undefined;
2
- export declare const major: number;
3
- export declare const minor: number;
4
- export declare const patch: number;
5
- export declare const prerelease: string | undefined;
6
- export default version;
@@ -1,2 +0,0 @@
1
- export { default } from "./palette.js";
2
- export * from "./palette.js";
@@ -1,4 +0,0 @@
1
- import { PropsFor, SimpleStyleFunction, palette } from "../Box/index.js";
2
- export const color: SimpleStyleFunction<'color'>;
3
- export const bgcolor: SimpleStyleFunction<'bgcolor'>;
4
- export type PaletteProps = PropsFor<typeof palette>;
@@ -1,2 +0,0 @@
1
- export { default } from "./positions.js";
2
- export * from "./positions.js";
@@ -1,2 +0,0 @@
1
- import { PropsFor, positions } from "../Box/index.js";
2
- export type PositionsProps = PropsFor<typeof positions>;
@@ -1,5 +0,0 @@
1
- export default function preprocessStyles(input: any): {
2
- variants: any;
3
- style: any;
4
- isProcessed: boolean;
5
- };
@@ -1 +0,0 @@
1
- export { default } from "./propsToClassKey.js";
@@ -1 +0,0 @@
1
- export default function propsToClassKey(props: object): string;
@@ -1 +0,0 @@
1
- export { default } from "./responsivePropType.js";
@@ -1,2 +0,0 @@
1
- declare const responsivePropType: object;
2
- export default responsivePropType;
@@ -1 +0,0 @@
1
- export { default } from "./shadows.js";
@@ -1,2 +0,0 @@
1
- import { PropsFor, shadows } from "../Box/index.js";
2
- export type ShadowsProps = PropsFor<typeof shadows>;
package/sizing/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default } from "./sizing.js";
2
- export * from "./sizing.js";
@@ -1,11 +0,0 @@
1
- import { PropsFor, SimpleStyleFunction, sizing } from "../Box/index.js";
2
- export const width: SimpleStyleFunction<'width'>;
3
- export const maxWidth: SimpleStyleFunction<'maxWidth'>;
4
- export const minWidth: SimpleStyleFunction<'minWidth'>;
5
- export const height: SimpleStyleFunction<'height'>;
6
- export const maxHeight: SimpleStyleFunction<'maxHeight'>;
7
- export const minHeight: SimpleStyleFunction<'minHeight'>;
8
- export const sizeWidth: SimpleStyleFunction<'sizeWidth'>;
9
- export const sizeHeight: SimpleStyleFunction<'sizeHeight'>;
10
- export const boxSizing: SimpleStyleFunction<'boxSizing'>;
11
- export type SizingProps = PropsFor<typeof sizing>;
@@ -1,2 +0,0 @@
1
- export { default } from "./spacing.js";
2
- export * from "./spacing.js";
@@ -1,18 +0,0 @@
1
- import { SimpleStyleFunction, spacing, PropsFor } from "../Box/index.js";
2
- export type SpacingValueType = string | number | null | undefined;
3
- export type SpacingProps = PropsFor<typeof spacing>;
4
- export function createUnarySpacing<Spacing>(theme: {
5
- spacing: Spacing;
6
- }): Spacing extends number ? (abs: number | string) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
7
- // warns in Dev
8
- () => undefined;
9
- export function createUnaryUnit<Spacing>(theme: {
10
- spacing: Spacing;
11
- }, themeKey: string, defaultValue: Spacing, propName: string): Spacing extends number ? (abs: SpacingValueType) => number | number : Spacing extends any[] ? <Index extends number>(abs: Index | string) => Spacing[Index] | string : Spacing extends (...args: unknown[]) => unknown ? Spacing :
12
- // warns in Dev
13
- () => undefined;
14
- export const margin: SimpleStyleFunction<'m' | 'mt' | 'mr' | 'mb' | 'ml' | 'mx' | 'my' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'marginX' | 'marginY' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd'>;
15
- export type MarginProps = PropsFor<typeof margin>;
16
- export const padding: SimpleStyleFunction<'p' | 'pt' | 'pr' | 'pb' | 'pl' | 'px' | 'py' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'paddingX' | 'paddingY' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd'>;
17
- export function getValue(transformer: (prop: SpacingValueType) => SpacingValueType, propValue: SpacingValueType): SpacingValueType;
18
- export type PaddingProps = PropsFor<typeof padding>;
package/style/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default } from "./style.js";
2
- export * from "./style.js";
package/style/style.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import { CSSObject } from '@mui/styled-engine';
2
- import { StyleFunction } from "../Box/index.js";
3
- export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject;
4
- export interface StyleOptions<PropKey> {
5
- cssProperty?: PropKey | keyof React.CSSProperties | false;
6
- prop: PropKey;
7
- /**
8
- * dot access in `Theme`
9
- */
10
- themeKey?: string;
11
- transform?: TransformFunction;
12
- }
13
- export function style<PropKey extends string, Theme extends object>(options: StyleOptions<PropKey>): StyleFunction<{ [K in PropKey]?: unknown } & {
14
- theme?: Theme;
15
- }> & {
16
- filterProps: string[];
17
- };
18
- export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
19
- export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any;