@mui/system 5.9.3 → 5.10.2
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/Box/Box.spec.d.ts +1 -1
- package/CHANGELOG.md +179 -4
- package/Container/Container.d.ts +13 -13
- package/Container/ContainerProps.d.ts +40 -40
- package/Container/containerClasses.d.ts +22 -22
- package/Container/createContainer.d.ts +18 -18
- package/Container/index.d.ts +1 -1
- package/README.md +1 -1
- package/Stack/Stack.d.ts +12 -0
- package/Stack/Stack.js +62 -0
- package/Stack/StackProps.d.ts +42 -0
- package/Stack/StackProps.js +5 -0
- package/Stack/createStack.d.ts +21 -0
- package/Stack/createStack.js +209 -0
- package/Stack/index.d.ts +5 -0
- package/Stack/index.js +65 -0
- package/Stack/package.json +6 -0
- package/Stack/stackClasses.d.ts +8 -0
- package/Stack/stackClasses.js +17 -0
- package/Unstable_Grid/Grid.d.ts +12 -12
- package/Unstable_Grid/GridProps.d.ts +162 -162
- package/Unstable_Grid/createGrid.d.ts +11 -11
- package/Unstable_Grid/gridClasses.d.ts +20 -20
- package/Unstable_Grid/gridGenerator.d.ts +26 -26
- package/Unstable_Grid/index.d.ts +5 -5
- package/breakpoints.d.ts +21 -0
- package/createBox.js +3 -1
- package/createBox.spec.d.ts +1 -1
- package/createStyled.js +30 -11
- package/createTheme/createSpacing.d.ts +10 -10
- package/cssVars/createCssVarsProvider.spec.d.ts +1 -1
- package/cssVars/createGetCssVar.d.ts +5 -5
- package/cssVars/cssVarsParser.d.ts +65 -65
- package/cssVars/getInitColorSchemeScript.d.ts +45 -45
- package/cssVars/index.d.ts +3 -3
- package/cssVars/useCurrentColorScheme.d.ts +53 -53
- package/cssVars/useCurrentColorScheme.js +28 -18
- package/esm/Stack/Stack.js +51 -0
- package/esm/Stack/StackProps.js +1 -0
- package/esm/Stack/createStack.js +179 -0
- package/esm/Stack/index.js +5 -0
- package/esm/Stack/stackClasses.js +6 -0
- package/esm/createBox.js +3 -1
- package/esm/createStyled.js +28 -10
- package/esm/cssVars/useCurrentColorScheme.js +28 -18
- package/esm/index.js +3 -1
- package/index.d.ts +4 -6
- package/index.js +25 -2
- package/index.spec.d.ts +1 -1
- package/legacy/Stack/Stack.js +51 -0
- package/legacy/Stack/StackProps.js +1 -0
- package/legacy/Stack/createStack.js +187 -0
- package/legacy/Stack/index.js +5 -0
- package/legacy/Stack/stackClasses.js +6 -0
- package/legacy/createBox.js +5 -1
- package/legacy/createStyled.js +31 -10
- package/legacy/cssVars/useCurrentColorScheme.js +28 -18
- package/legacy/index.js +4 -2
- package/modern/Stack/Stack.js +51 -0
- package/modern/Stack/StackProps.js +1 -0
- package/modern/Stack/createStack.js +179 -0
- package/modern/Stack/index.js +5 -0
- package/modern/Stack/stackClasses.js +6 -0
- package/modern/createBox.js +3 -1
- package/modern/createStyled.js +28 -10
- package/modern/cssVars/useCurrentColorScheme.js +28 -18
- package/modern/index.js +4 -2
- package/package.json +3 -3
- package/spacing.d.ts +6 -0
- package/styleFunctionSx/styleFunctionSx.spec.d.ts +1 -1
package/Box/Box.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,180 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.10.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.10.1..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 22, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).
|
|
12
|
+
A couple of icons changed their appearance. See the difference [on this Argos build](https://app.argos-ci.com/mui/material-ui/builds/4428]).
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.10.2`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 16 -->[Autocomplete] Fix `keepMounted` Popper prop not working (#33957) @ZeeshanTamboli
|
|
17
|
+
- ​<!-- 10 -->[IconButton] Fix hover effect when CSS Variables are enabled (#33971) @TheUnlocked
|
|
18
|
+
- ​<!-- 07 -->[LoadingButton] Add support for CSS variables (#34001) @ZeeshanTamboli
|
|
19
|
+
- ​<!-- 05 -->[TimelineConnector] Add support for CSS variables (#34002) @ZeeshanTamboli
|
|
20
|
+
- ​<!-- 04 -->[TimelineDot] Add support for CSS variables (#34003) @ZeeshanTamboli
|
|
21
|
+
- ​<!-- 03 -->[TreeItem] Add support for CSS variables (#34004) @ZeeshanTamboli
|
|
22
|
+
|
|
23
|
+
### `@mui/system@5.10.2`
|
|
24
|
+
|
|
25
|
+
- ​<!-- 06 -->[system] catch localStorage errors (#34027) @jsakas
|
|
26
|
+
|
|
27
|
+
### `@mui/joy@5.0.0-alpha.42`
|
|
28
|
+
|
|
29
|
+
- ​<!-- 08 -->[Joy] Add missing global exports (#33982) @tomasz-sodzawiczny
|
|
30
|
+
|
|
31
|
+
### `@mui/icons-material@5.8.5`
|
|
32
|
+
|
|
33
|
+
- ​<!-- 09 -->[icons] Sync the Material Icons (#33988) @michaldudak
|
|
34
|
+
|
|
35
|
+
### Docs
|
|
36
|
+
|
|
37
|
+
- ​<!-- 21 -->[docs] Fix typo in using-joy-ui-and-material-ui.md (#33997) @djohalo2 @danilo-leal
|
|
38
|
+
- ​<!-- 20 -->[docs] Fix typo in the Transition docs (#34040) @alirezahekmati
|
|
39
|
+
- ​<!-- 19 -->[docs] Typo fix in Joy UI Aspect Ratio doc (#33984) @AjeetSingh2016
|
|
40
|
+
- ​<!-- 15 -->[docs] Fix broken Joy UI codesandbox export (#34007) @oliviertassinari
|
|
41
|
+
- ​<!-- 14 -->[docs] Fix typos in `test` folder's README (#33976) @ropereraLK
|
|
42
|
+
- ​<!-- 13 -->[docs] Fix interior section links in Base docs that feature hooks (#33948) @samuelsycamore
|
|
43
|
+
- ​<!-- 12 -->[docs] Fix typo in Joy UI's List Component docs (#33956) @Cerebro92
|
|
44
|
+
- ​<!-- 11 -->[docs] Fix typo in Joy UI's docs (#33938) @AjeetSingh2016
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- ​<!-- 18 -->[website] Optimize meta description length (#34006) @oliviertassinari
|
|
49
|
+
- ​<!-- 17 -->Revert "[core] Replace `getInitialProps` with `getStaticProps`" (#33991) @mnajdova
|
|
50
|
+
- ​<!-- 02 -->[website] Move the React Engineer - X to next roles (#34030) @mnajdova
|
|
51
|
+
- ​<!-- 01 -->[website] Add Icons8 gold sponsor (#33978) @michaldudak
|
|
52
|
+
|
|
53
|
+
All contributors of this release in alphabetical order: @AjeetSingh2016, @alirezahekmati, @Cerebro92, @danilo-leal, @djohalo2, @jsakas, @michaldudak, @mnajdova, @oliviertassinari, @ropereraLK, @samuelsycamore, @TheUnlocked, @tomasz-sodzawiczny, @ZeeshanTamboli
|
|
54
|
+
|
|
55
|
+
## 5.10.1
|
|
56
|
+
|
|
57
|
+
<!-- generated comparing v5.10.0..master -->
|
|
58
|
+
|
|
59
|
+
_Aug 15, 2022_
|
|
60
|
+
|
|
61
|
+
A big thanks to the 18 contributors who made this release possible. This release was mostly around 🐛 bug fixes and 📚 documentation improvements.
|
|
62
|
+
|
|
63
|
+
### `@mui/material@5.10.1`
|
|
64
|
+
|
|
65
|
+
- ​<!-- 04 -->[TableCell] Enable variant overrides via TypeScript module augmentation (#33856) @arjunvijayanathakurup
|
|
66
|
+
|
|
67
|
+
### `@mui/system@5.10.1`
|
|
68
|
+
|
|
69
|
+
- ​<!-- 05 -->[system] Fix `ContainerProps` export (#33923) @bugzpodder
|
|
70
|
+
|
|
71
|
+
### `@mui/base@5.0.0-alpha.93`
|
|
72
|
+
|
|
73
|
+
- ​<!-- 31 -->[TrapFocus] Removes invisible tabbable elements from (#33543) @EthanStandel
|
|
74
|
+
- ​<!-- 30 -->[Input][base] Pass the rows prop to the underlying textarea (#33873) @michaldudak
|
|
75
|
+
- ​<!-- 06 -->[SelectUnstyled] Add ability to post the select's value when submitting a form (#33697) @michaldudak
|
|
76
|
+
|
|
77
|
+
### `@mui/joy@5.0.0-alpha.41`
|
|
78
|
+
|
|
79
|
+
- ​<!-- 07 -->[IconButton][joy] Fix large IconButton scaling (#33885) @cherewaty
|
|
80
|
+
|
|
81
|
+
### Docs
|
|
82
|
+
|
|
83
|
+
- ​<!-- 23 -->[docs] Expand on a11y section for Material UI `Link` component (#32839) @TKrishnasamy
|
|
84
|
+
- ​<!-- 22 -->[docs] Fix typo in Joy UI's `AspectRatio` docs (#33895) @IsaacInsoll
|
|
85
|
+
- ​<!-- 21 -->[docs] Improve the Base Usage page (#33272) @samuelsycamore
|
|
86
|
+
- ​<!-- 20 -->[docs] Avoid refreshing the page when button on demo is clicked (#33852) @PunitSoniME
|
|
87
|
+
- ​<!-- 19 -->[docs] Improve the HorizontalNonLinearStepper demo styling (#33886) @hayawata3626
|
|
88
|
+
- ​<!-- 18 -->[docs] Remove dead NoSsr in the demos (#33910) @oliviertassinari
|
|
89
|
+
- ​<!-- 17 -->[docs] Fix the reopening menu problem in MenuUnstyled demo (#33890) @michaldudak
|
|
90
|
+
- ​<!-- 24 -->[docs] Fix a few link issues (#33909) @oliviertassinari
|
|
91
|
+
- ​<!-- 16 -->[docs] Explain the icons package dependencies (#33592) @michaldudak
|
|
92
|
+
- ​<!-- 15 -->[docs] Fix reported SEO issues (#33818) @oliviertassinari
|
|
93
|
+
- ​<!-- 14 -->[docs] Add permanent notifications back (#33843) @oliviertassinari
|
|
94
|
+
- ​<!-- 13 -->[docs] Enforce description for all pages (#33698) @oliviertassinari
|
|
95
|
+
- ​<!-- 12 -->[docs] Clarify difference in startup times between named and default imports (#33109) @cmdcolin
|
|
96
|
+
- ​<!-- 11 -->[docs] Update transform function in the sx prop sizing docs (#33850) @ZeeshanTamboli
|
|
97
|
+
- ​<!-- 10 -->[docs] Adding missing accessibility labels (#33782) @PunitSoniME
|
|
98
|
+
- ​<!-- 09 -->[docs] Fix `/system/getting-started/advanced/` does not exist (#33867) @MonstraG
|
|
99
|
+
- ​<!-- 32 -->[docs] New Crowdin updates (#32213) @l10nbot
|
|
100
|
+
- ​<!-- 08 -->[examples] Fix broken path to favicon.ico (#33906) @mmostafavi
|
|
101
|
+
- ​<!-- 02 -->[website] Add new FAQ to pricing page (#33553) @oliviertassinari
|
|
102
|
+
- ​<!-- 03 -->[website] Miscellaneous improvements to the marketing pages (#33897) @danilo-leal
|
|
103
|
+
|
|
104
|
+
### Core
|
|
105
|
+
|
|
106
|
+
- ​<!-- 29 -->[core] Add the download tracker package (#33899) @michaldudak
|
|
107
|
+
- ​<!-- 28 -->[core] Use proper external build id for Argos uploads (#33929) @cherniavskii
|
|
108
|
+
- ​<!-- 27 -->[core] Enforce 70 as the max width on the title on the docs (#33819) @oliviertassinari
|
|
109
|
+
- ​<!-- 26 -->[core] Clear yarn installation warning (#33776) @michaldudak
|
|
110
|
+
- ​<!-- 25 -->[core] Bump yarn to 1.22.19 (#33656) @michaldudak
|
|
111
|
+
- ​<!-- 24 -->[core] Remove outdated Next.js options (#33845) @oliviertassinari
|
|
112
|
+
- ​<!-- 34 -->[core] Add the download tracker build script (#33941) @michaldudak
|
|
113
|
+
- ​<!-- 01 -->[website] Allow /r/store- redirection pattern @oliviertassinari
|
|
114
|
+
|
|
115
|
+
All contributors of this release in alphabetical order: @arjunvijayanathakurup, @bugzpodder, @cherewaty, @cherniavskii, @cmdcolin, @danilo-leal, @EthanStandel, @hayawata3626, @IsaacInsoll, @l10nbot, @michaldudak, @mmostafavi, @MonstraG, @oliviertassinari, @PunitSoniME, @samuelsycamore, @TKrishnasamy, @ZeeshanTamboli
|
|
116
|
+
|
|
117
|
+
## 5.10.0
|
|
118
|
+
|
|
119
|
+
<!-- generated comparing v5.9.3..master -->
|
|
120
|
+
|
|
121
|
+
_Aug 8, 2022_
|
|
122
|
+
|
|
123
|
+
A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
124
|
+
|
|
125
|
+
- ✨ [Stack](https://mui.com/system/react-stack/) component is added to MUI System and Joy UI #33760 #33800 @mnajdova
|
|
126
|
+
- ✨ [Breadcrumbs](https://mui.com/joy-ui/react-breadcrumbs/) component is added to Joy UI (#32697) @hbjORbj
|
|
127
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
128
|
+
|
|
129
|
+
### `@mui/material@5.10.0`
|
|
130
|
+
|
|
131
|
+
- [Grid] Prevent crash if spacing is set to zero in theme (#33777) @PunitSoniME
|
|
132
|
+
- [Grid] Export interface `RegularBreakpoints` to fix type error (#33751) @ZeeshanTamboli
|
|
133
|
+
- [Skeleton] Add `rounded` variant (#33687) @siriwatknp
|
|
134
|
+
- [Stepper] Fix classes for icon container (#33734) @pratikkarad
|
|
135
|
+
- [TableCell] Enable size prop overrides via module augmentation (#33816) @brentertz
|
|
136
|
+
- [Tooltip] Fix tooltip arrow css var background (#33753) @TimoWilhelm
|
|
137
|
+
- [useScrollTrigger] Add passive flag to scroll trigger event listener #32437 (#33749) @Dsalazar1685
|
|
138
|
+
|
|
139
|
+
### `@mui/system@5.10.0`
|
|
140
|
+
|
|
141
|
+
- Fix unnecessary styles created from `sx` (#33752) @siriwatknp
|
|
142
|
+
- Fix duplicated styles in Box (#33774) @iamxukai
|
|
143
|
+
- Don't spread props to DOM for string tags (#33761) @siriwatknp
|
|
144
|
+
- Add `Stack` component (#33760) @mnajdova
|
|
145
|
+
|
|
146
|
+
### `@mui/joy@5.0.0-alpha.40`
|
|
147
|
+
|
|
148
|
+
- [Stack] Add new component (#33800) @mnajdova
|
|
149
|
+
- [Breadcrumbs] Add `Breadcrumbs` component (#32697) @hbjORbj
|
|
150
|
+
- [Card] Fix wrong api description for `size` prop (#33862) @hbjORbj
|
|
151
|
+
- Miscellaneous fixes (#33796, #33750) @siriwatknp
|
|
152
|
+
|
|
153
|
+
### Docs
|
|
154
|
+
|
|
155
|
+
- [docs] Create, revise, and expand System "Getting started" docs (#33503) @samuelsycamore
|
|
156
|
+
- [docs] Test new image best practice @oliviertassinari
|
|
157
|
+
- [docs] Fix typo in the ClickAwayListerner name (#33813) @pawelsmigielski
|
|
158
|
+
- [docs] Fix link to `Basics` section in `Trap Focus` docs (#33772) @ZeeshanTamboli
|
|
159
|
+
- [docs] z-index added in popper when used by split button (#33763) @PunitSoniME
|
|
160
|
+
- [docs] Improve the guide for using @mui/base with Tailwind CSS (#33670) @mnajdova
|
|
161
|
+
- [docs] Fix warnings related to Next.js' links (#33693) @mnajdova
|
|
162
|
+
- [docs] Add notification to aggregation blogpost (#33745) @joserodolfofreitas
|
|
163
|
+
- [docs] Add Grid version 2 docs (#33554) @siriwatknp
|
|
164
|
+
- [examples] Fix `NextLinkComposedProps` type error (#33842) @adham618
|
|
165
|
+
|
|
166
|
+
### Core
|
|
167
|
+
|
|
168
|
+
- [blog] Add social card to Tenerife retreat post (#33764)
|
|
169
|
+
- [blog] Fix blue outline bug (#33707) @oliviertassinari
|
|
170
|
+
- [blog] Improve the width of the layout (#33706) @oliviertassinari@samuelsycamore
|
|
171
|
+
- [core] Remove unnecessary packageName attribute from pages (#33488) @cherniavskii
|
|
172
|
+
- [core] Remove duplicated CODE_OF_CONDUCT (#33702) @oliviertassinari
|
|
173
|
+
- [core] Update Playwright packages together (#33737) @michaldudak
|
|
174
|
+
- [website] Fix notifications not being marked as read in production (#33756) @cherniavskii
|
|
175
|
+
|
|
176
|
+
All contributors of this release in alphabetical order: @adham618, @brentertz, @cherniavskii, @Dsalazar1685, @hbjORbj, @iamxukai, @joserodolfofreitas, @michaldudak, @mnajdova, @oliviertassinari, @pawelsmigielski, @pratikkarad, @PunitSoniME, @siriwatknp, @TimoWilhelm, @ZeeshanTamboli
|
|
177
|
+
|
|
3
178
|
## 5.9.3
|
|
4
179
|
|
|
5
180
|
<!-- generated comparing v5.9.2..master -->
|
|
@@ -6880,7 +7055,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
|
|
|
6880
7055
|
|
|
6881
7056
|
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
6882
7057
|
|
|
6883
|
-
- 📚 Revamp the documentation for [the system](https://mui.com/system/
|
|
7058
|
+
- 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/overview/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
|
|
6884
7059
|
- 👩🎨 Upgrade emotion to v11 (#23007) @mnajdova.
|
|
6885
7060
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
6886
7061
|
|
|
@@ -7282,7 +7457,7 @@ Here are some highlights ✨:
|
|
|
7282
7457
|
If you target IE11, you need to use the new bundle (`legacy`). We are treating IE11 as a second class-citizen, which is a continuation of the direction taken in #22873.
|
|
7283
7458
|
|
|
7284
7459
|
- 🚀 Improve the internal benchmark suite (#22923, #23058) @mnajdova.
|
|
7285
|
-
This was a prerequisite step to improve the [system](https://mui.com/system/
|
|
7460
|
+
This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/overview/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
|
|
7286
7461
|
- ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
|
|
7287
7462
|
- 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
|
|
7288
7463
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
@@ -7623,7 +7798,7 @@ Here are some highlights ✨:
|
|
|
7623
7798
|
|
|
7624
7799
|
The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
|
|
7625
7800
|
|
|
7626
|
-
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/
|
|
7801
|
+
Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/overview/)).
|
|
7627
7802
|
|
|
7628
7803
|
This change has been in our roadmap for more than a year.
|
|
7629
7804
|
We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
|
|
@@ -8876,7 +9051,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
|
|
|
8876
9051
|
/>
|
|
8877
9052
|
```
|
|
8878
9053
|
|
|
8879
|
-
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/
|
|
9054
|
+
- [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
|
|
8880
9055
|
|
|
8881
9056
|
```diff
|
|
8882
9057
|
-import Typography from '@material-ui/core/Typography';
|
package/Container/Container.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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").ContainerTypeMap<{}, "div">>;
|
|
13
|
-
export default Container;
|
|
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").ContainerTypeMap<{}, "div">>;
|
|
13
|
+
export default Container;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps } from '../styleFunctionSx';
|
|
4
|
-
import { Theme, Breakpoint } from '../createTheme';
|
|
5
|
-
import { ContainerClasses } from './containerClasses';
|
|
6
|
-
export interface ContainerTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
7
|
-
props: P & {
|
|
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: D;
|
|
39
|
-
}
|
|
40
|
-
export declare type ContainerProps<D extends React.ElementType = ContainerTypeMap['defaultComponent'], P = {}> = OverrideProps<ContainerTypeMap<P, D>, D>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverrideProps } from '@mui/types';
|
|
3
|
+
import { SxProps } from '../styleFunctionSx';
|
|
4
|
+
import { Theme, Breakpoint } from '../createTheme';
|
|
5
|
+
import { ContainerClasses } from './containerClasses';
|
|
6
|
+
export interface ContainerTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
7
|
+
props: P & {
|
|
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: D;
|
|
39
|
+
}
|
|
40
|
+
export declare type ContainerProps<D extends React.ElementType = ContainerTypeMap['defaultComponent'], P = {}> = OverrideProps<ContainerTypeMap<P, D>, D>;
|
|
@@ -1,22 +1,22 @@
|
|
|
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 declare type ContainerClassKey = keyof ContainerClasses;
|
|
20
|
-
export declare function getContainerUtilityClass(slot: string): string;
|
|
21
|
-
declare const containerClasses: ContainerClasses;
|
|
22
|
-
export default containerClasses;
|
|
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 declare type ContainerClassKey = keyof ContainerClasses;
|
|
20
|
+
export declare function getContainerUtilityClass(slot: string): string;
|
|
21
|
+
declare const containerClasses: ContainerClasses;
|
|
22
|
+
export default containerClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Interpolation, StyledComponent } from '@mui/styled-engine';
|
|
3
|
-
import { OverridableComponent } from '@mui/types';
|
|
4
|
-
import { ContainerProps, ContainerTypeMap } from './ContainerProps';
|
|
5
|
-
import { Theme as DefaultTheme } from '../createTheme';
|
|
6
|
-
interface StyleFnProps<Theme> extends ContainerProps {
|
|
7
|
-
theme: Theme;
|
|
8
|
-
ownerState: ContainerProps;
|
|
9
|
-
}
|
|
10
|
-
declare 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
|
+
import * as React from 'react';
|
|
2
|
+
import { Interpolation, StyledComponent } from '@mui/styled-engine';
|
|
3
|
+
import { OverridableComponent } from '@mui/types';
|
|
4
|
+
import { ContainerProps, ContainerTypeMap } from './ContainerProps';
|
|
5
|
+
import { Theme as DefaultTheme } from '../createTheme';
|
|
6
|
+
interface StyleFnProps<Theme> extends ContainerProps {
|
|
7
|
+
theme: Theme;
|
|
8
|
+
ownerState: ContainerProps;
|
|
9
|
+
}
|
|
10
|
+
declare 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 {};
|
package/Container/index.d.ts
CHANGED
package/README.md
CHANGED
package/Stack/Stack.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Demos:
|
|
4
|
+
*
|
|
5
|
+
* - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)
|
|
6
|
+
*
|
|
7
|
+
* API:
|
|
8
|
+
*
|
|
9
|
+
* - [Stack API](https://mui.com/system/api/stack/)
|
|
10
|
+
*/
|
|
11
|
+
declare const Stack: import("@mui/types").OverridableComponent<import("./StackProps").StackTypeMap<{}, "div">>;
|
|
12
|
+
export default Stack;
|
package/Stack/Stack.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _createStack = _interopRequireDefault(require("./createStack"));
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)
|
|
19
|
+
*
|
|
20
|
+
* API:
|
|
21
|
+
*
|
|
22
|
+
* - [Stack API](https://mui.com/system/api/stack/)
|
|
23
|
+
*/
|
|
24
|
+
const Stack = (0, _createStack.default)();
|
|
25
|
+
process.env.NODE_ENV !== "production" ? Stack.propTypes
|
|
26
|
+
/* remove-proptypes */
|
|
27
|
+
= {
|
|
28
|
+
// ----------------------------- Warning --------------------------------
|
|
29
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
30
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
31
|
+
// ----------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The content of the component.
|
|
35
|
+
*/
|
|
36
|
+
children: _propTypes.default.node,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Defines the `flex-direction` style property.
|
|
40
|
+
* It is applied for all screen sizes.
|
|
41
|
+
* @default 'column'
|
|
42
|
+
*/
|
|
43
|
+
direction: _propTypes.default.oneOfType([_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), _propTypes.default.object]),
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Add an element between each child.
|
|
47
|
+
*/
|
|
48
|
+
divider: _propTypes.default.node,
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Defines the space between immediate children.
|
|
52
|
+
* @default 0
|
|
53
|
+
*/
|
|
54
|
+
spacing: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])), _propTypes.default.number, _propTypes.default.object, _propTypes.default.string]),
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
58
|
+
*/
|
|
59
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
60
|
+
} : void 0;
|
|
61
|
+
var _default = Stack;
|
|
62
|
+
exports.default = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverrideProps } from '@mui/types';
|
|
3
|
+
import { ResponsiveStyleValue, SxProps } from '../styleFunctionSx';
|
|
4
|
+
import { SystemProps } from '../Box';
|
|
5
|
+
import { Theme } from '../createTheme';
|
|
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
|
+
export interface StackTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
28
|
+
props: P & StackBaseProps & {
|
|
29
|
+
/**
|
|
30
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
31
|
+
*/
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
33
|
+
} & SystemProps<Theme>;
|
|
34
|
+
defaultComponent: D;
|
|
35
|
+
}
|
|
36
|
+
export declare type StackProps<D extends React.ElementType = StackTypeMap['defaultComponent'], P = {
|
|
37
|
+
component?: React.ElementType;
|
|
38
|
+
}> = OverrideProps<StackTypeMap<P, D>, D>;
|
|
39
|
+
export interface StackOwnerState {
|
|
40
|
+
direction: StackProps['direction'];
|
|
41
|
+
spacing: StackProps['spacing'];
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverridableComponent } from '@mui/types';
|
|
3
|
+
import { StackTypeMap, StackOwnerState } from './StackProps';
|
|
4
|
+
import { Breakpoints } from '../createTheme/createBreakpoints';
|
|
5
|
+
import { Spacing } from '../createTheme/createSpacing';
|
|
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").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
14
|
+
declare function useThemePropsDefault<T>(props: T): T & {};
|
|
15
|
+
export declare const style: ({ ownerState, theme }: StyleFunctionProps) => any;
|
|
16
|
+
export default function createStack(options?: {
|
|
17
|
+
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
18
|
+
useThemeProps?: typeof useThemePropsDefault;
|
|
19
|
+
componentName?: string;
|
|
20
|
+
}): OverridableComponent<StackTypeMap<{}, "div">>;
|
|
21
|
+
export {};
|