@mui/system 5.11.16 → 5.12.1
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 +147 -22
- 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/GlobalStyles/GlobalStyles.d.ts +13 -0
- package/GlobalStyles/GlobalStyles.js +45 -0
- package/GlobalStyles/index.d.ts +2 -0
- package/GlobalStyles/index.js +26 -0
- package/GlobalStyles/package.json +6 -0
- package/Stack/Stack.d.ts +14 -13
- package/Stack/Stack.js +2 -1
- package/Stack/StackProps.d.ts +53 -53
- package/Stack/createStack.d.ts +21 -21
- package/Stack/index.d.ts +5 -5
- package/Stack/stackClasses.d.ts +8 -8
- package/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/ThemeProvider/ThemeProvider.js +43 -17
- package/Unstable_Grid/Grid.d.ts +12 -12
- package/Unstable_Grid/GridProps.d.ts +185 -173
- package/Unstable_Grid/createGrid.d.ts +11 -11
- package/Unstable_Grid/createGrid.js +18 -11
- package/Unstable_Grid/gridClasses.d.ts +20 -20
- package/Unstable_Grid/gridGenerator.d.ts +38 -38
- package/Unstable_Grid/gridGenerator.js +12 -12
- package/Unstable_Grid/index.d.ts +5 -5
- package/createBox.d.ts +1 -0
- package/createBox.js +2 -1
- package/createStyled.d.ts +1 -0
- package/createStyled.js +37 -24
- package/createTheme/createSpacing.d.ts +10 -10
- package/cssVars/createCssVarsProvider.d.ts +22 -7
- package/cssVars/createCssVarsProvider.js +7 -3
- package/cssVars/createCssVarsTheme.d.ts +15 -13
- package/cssVars/createGetCssVar.d.ts +5 -5
- package/cssVars/cssVarsParser.d.ts +64 -64
- package/cssVars/getInitColorSchemeScript.d.ts +42 -42
- package/cssVars/index.d.ts +5 -5
- package/cssVars/prepareCssVars.d.ts +16 -14
- package/cssVars/prepareCssVars.js +6 -2
- package/cssVars/useCurrentColorScheme.d.ts +53 -53
- package/esm/GlobalStyles/GlobalStyles.js +35 -0
- package/esm/GlobalStyles/index.js +2 -0
- package/esm/Stack/Stack.js +2 -1
- package/esm/ThemeProvider/ThemeProvider.js +44 -18
- package/esm/Unstable_Grid/createGrid.js +19 -12
- package/esm/Unstable_Grid/gridGenerator.js +12 -12
- package/esm/createBox.js +2 -1
- package/esm/createStyled.js +37 -24
- package/esm/cssVars/createCssVarsProvider.js +7 -3
- package/esm/cssVars/prepareCssVars.js +6 -2
- package/esm/index.js +2 -1
- package/esm/useThemeProps/useThemeProps.js +6 -2
- package/esm/useThemeWithoutDefault.js +3 -2
- package/index.d.ts +2 -2
- package/index.js +4 -3
- package/legacy/GlobalStyles/GlobalStyles.js +35 -0
- package/legacy/GlobalStyles/index.js +2 -0
- package/legacy/Stack/Stack.js +2 -1
- package/legacy/ThemeProvider/ThemeProvider.js +44 -19
- package/legacy/Unstable_Grid/createGrid.js +19 -11
- package/legacy/Unstable_Grid/gridGenerator.js +12 -12
- package/legacy/createBox.js +3 -2
- package/legacy/createStyled.js +37 -17
- package/legacy/cssVars/createCssVarsProvider.js +18 -14
- package/legacy/cssVars/prepareCssVars.js +6 -2
- package/legacy/index.js +3 -2
- package/legacy/useThemeProps/useThemeProps.js +5 -1
- package/legacy/useThemeWithoutDefault.js +3 -2
- package/modern/GlobalStyles/GlobalStyles.js +35 -0
- package/modern/GlobalStyles/index.js +2 -0
- package/modern/Stack/Stack.js +2 -1
- package/modern/ThemeProvider/ThemeProvider.js +44 -18
- package/modern/Unstable_Grid/createGrid.js +18 -12
- package/modern/Unstable_Grid/gridGenerator.js +12 -12
- package/modern/createBox.js +2 -1
- package/modern/createStyled.js +37 -24
- package/modern/cssVars/createCssVarsProvider.js +7 -3
- package/modern/cssVars/prepareCssVars.js +6 -2
- package/modern/index.js +3 -2
- package/modern/useThemeProps/useThemeProps.js +6 -2
- package/modern/useThemeWithoutDefault.js +3 -2
- package/package.json +5 -5
- package/useThemeProps/useThemeProps.d.ts +6 -1
- package/useThemeProps/useThemeProps.js +6 -2
- package/useThemeWithoutDefault.js +5 -2
- package/Box/Box.spec.d.ts +0 -1
- package/createBox.spec.d.ts +0 -1
- package/cssVars/createCssVarsProvider.spec.d.ts +0 -1
- package/index.spec.d.ts +0 -1
- package/styleFunctionSx/styleFunctionSx.spec.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.12.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.12.0..master -->
|
|
6
|
+
|
|
7
|
+
_Apr 17, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 16 contributors who made this release possible. This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@5.12.1`
|
|
12
|
+
|
|
13
|
+
- ​<!-- 24 -->[Autocomplete] Fix autocomplete left padding (#36649) @mj12albert
|
|
14
|
+
- ​<!-- 17 -->[Button] Fix contained with inherit prop not adapting on dark mode (#34508) @jesrodri
|
|
15
|
+
- ​<!-- 07 -->[FormControlLabel] Add `required` prop (#34207) @emlai
|
|
16
|
+
- ​<!-- 04 -->[Tabs] Fix null reference in ScrollbarSize after unmounting (#36485) @rkdrnf
|
|
17
|
+
- ​<!-- 03 -->[TextField] Fix type error when using `inputTypeSearch` class for `outlined` and `filled` inputs (#36740) @sai6855
|
|
18
|
+
- ​<!-- 02 -->[ThemeProvider] Fix theme proptypes (#36852) @siriwatknp
|
|
19
|
+
|
|
20
|
+
### `@mui/system@5.12.1`
|
|
21
|
+
|
|
22
|
+
#### Breaking changes
|
|
23
|
+
|
|
24
|
+
- ​<!-- 06 -->[Grid2] Replace context with `cloneElement` (#36399) @siriwatknp
|
|
25
|
+
|
|
26
|
+
`Grid2` now uses `React.cloneElement` instead of React context for passing the spacing and columns to the next container. The change is close to how CSS flexbox behaves.
|
|
27
|
+
|
|
28
|
+
#### Changes
|
|
29
|
+
|
|
30
|
+
- ​<!-- 14 -->[CssVarsProvider] Always generate new `css` object (#36853) @siriwatknp
|
|
31
|
+
|
|
32
|
+
### `@mui/base@5.0.0-alpha.126`
|
|
33
|
+
|
|
34
|
+
#### Breaking changes
|
|
35
|
+
|
|
36
|
+
- ​<!-- 23 -->[base] Refactor the compound components building blocks (#36400) @michaldudak
|
|
37
|
+
Components affected by the changes are:
|
|
38
|
+
- Menu
|
|
39
|
+
- `MenuUnstyledContext` is replaced by `MenuProvider`. The value to pass to the provider is returned by the `useMenu` hook.
|
|
40
|
+
- MenuUnstyled's `onClose` prop is replaced by `onOpenChange`. It has the `open` parameter and is called when a menu is opened or closed
|
|
41
|
+
- Select
|
|
42
|
+
- `SelectUnstyledContext` is replaced by `SelectProvider`. The value to pass to the provider is returned by the `useSelect` hook.
|
|
43
|
+
- `SelectUnstyled`'s popup is permanently mounted.
|
|
44
|
+
- The `defaultOpen` prop was added to the SelectUnstyled. The open/close state can now be controlled or uncontrolled, as a `value`.
|
|
45
|
+
- Tabs
|
|
46
|
+
- `TabsContext` is replaced by `TabsProvider`. The value to pass to the provider is returned by the `useTabs` hook.
|
|
47
|
+
- To deselect all tabs, pass in `null` to Tabs' `value` prop, instead of `false`. This is consistent with how Select works.
|
|
48
|
+
- The `value` prop is still technically not mandatory on TabUnstyled and TabPanel, but when omitted, the contents of the selected tab panel will not be rendered during SSR.
|
|
49
|
+
|
|
50
|
+
### `@mui/joy@5.0.0-alpha.76`
|
|
51
|
+
|
|
52
|
+
- ​<!-- 05 -->[Table][Joy] Replace uses of css selector `*-child` to `*-of-type` (#36839) @keyvanm
|
|
53
|
+
|
|
54
|
+
### Docs
|
|
55
|
+
|
|
56
|
+
- ​<!-- 25 --> [docs][base] Move styles to the bottom of demos code for `BadgeUnstyled` (#36723) @varunmulay22
|
|
57
|
+
- ​<!-- 22 -->[docs][base] Mention that the hook does not accept any parameters in the `Parameters` section of the API docs (#36773) @ZeeshanTamboli
|
|
58
|
+
- ​<!-- 21 -->[docs][base] Move styles to the bottom of demos code for `ModalUnstyled` (#36580) @gitstart
|
|
59
|
+
- ​<!-- 20 -->[docs][base] Move styles to the bottom of demos code for `Tabs` (#36577) @gitstart
|
|
60
|
+
- ​<!-- 19 -->[docs][base] Move styles to the bottom of demos code for `Popper` (#36578) @gitstart
|
|
61
|
+
- ​<!-- 18 -->[docs][base] Move styles to the bottom of demos code for `TablePagination` (#36593) @gitstart
|
|
62
|
+
- ​<!-- 13 -->[docs] Remove the incorrect info about useButton's ref parameter (#36883) @michaldudak
|
|
63
|
+
- ​<!-- 12 -->[docs] Sync <Stack> between projects (#36785) @oliviertassinari
|
|
64
|
+
- ​<!-- 11 -->[docs] Add guides to overriding component structure in Base UI and Joy UI docs (#34990) @samuelsycamore
|
|
65
|
+
- ​<!-- 10 -->[docs] Content changed from 'row' to 'orientation=horizontal' (#36858) @navedqb
|
|
66
|
+
- ​<!-- 09 -->[docs][Joy] `component`, `slots`, `slotProps` must be visible in Prop table in API docs (#36666) @hbjORbj
|
|
67
|
+
- ​<!-- 08 -->[docs][Select] Fix duplicate ID in small size Select demo (#36792) @sai6855
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- ​<!-- 16 -->[core] Use glob to find the test files in parseTest (#36305) @flaviendelangle
|
|
72
|
+
- ​<!-- 15 -->[core] Fix minor SEO issues @oliviertassinari
|
|
73
|
+
- ​<!-- 01 -->[website] Fix visual bug appbar (#36875) @oliviertassinari
|
|
74
|
+
|
|
75
|
+
All contributors of this release in alphabetical order: @emlai, @flaviendelangle, @gitstart, @hbjORbj, @jesrodri, @keyvanm, @michaldudak, @mj12albert, @navedqb, @oliviertassinari, @rkdrnf, @sai6855, @samuelsycamore, @siriwatknp, @varunmulay22, @ZeeshanTamboli
|
|
76
|
+
|
|
77
|
+
## 5.12.0
|
|
78
|
+
|
|
79
|
+
<!-- generated comparing v5.11.16..master -->
|
|
80
|
+
|
|
81
|
+
_Apr 11, 2023_
|
|
82
|
+
|
|
83
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
84
|
+
|
|
85
|
+
- 💫 Added [theme scope](https://mui.com/material-ui/guides/styled-engine/#theme-scoping) for using multiple design systems (#36664) @siriwatknp
|
|
86
|
+
- 🐛 bug fixes and 📚 documentation improvements.
|
|
87
|
+
|
|
88
|
+
### `@mui/system@5.12.0`
|
|
89
|
+
|
|
90
|
+
- ​<!-- 05 -->[system] Introduce theme scope for using multiple design systems (#36664) @siriwatknp
|
|
91
|
+
|
|
92
|
+
### `@mui/base@5.0.0-alpha.125`
|
|
93
|
+
|
|
94
|
+
- ​<!-- 06 -->[PopperUnstyled] Do not merge internal `ownerState` with `ownerState` from props (#36599) @hbjORbj
|
|
95
|
+
|
|
96
|
+
### `@mui/joy@5.0.0-alpha.75`
|
|
97
|
+
|
|
98
|
+
- ​<!-- 08 -->[Joy] Add tests for slots/slotProps for all components (#36828) @hbjORbj
|
|
99
|
+
- ​<!-- 07 -->[Joy] Support `slots`/`slotsProps` for every component (components with only root slot too) (#36540) @hbjORbj
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- ​<!-- 23 -->[docs][Backdrop] Improvements to the docs (#34244) @alirezahekmati
|
|
104
|
+
- ​<!-- 20 -->[docs] Fix base API redirects (#36833) @mnajdova
|
|
105
|
+
- ​<!-- 19 -->[docs] Improve perf on tab APIs (#36832) @mnajdova
|
|
106
|
+
- ​<!-- 18 -->[docs] Revert CircularProgress component text to be proper noun instead (#36837) @ZeeshanTamboli
|
|
107
|
+
- ​<!-- 17 -->[docs] Simplify language redirection @oliviertassinari
|
|
108
|
+
- ​<!-- 16 -->[docs] Add missing `readOnly` state class in the list (#36788) @ZeeshanTamboli
|
|
109
|
+
- ​<!-- 15 -->[docs] Improve side nav scroll into view (#36732) @oliviertassinari
|
|
110
|
+
- ​<!-- 14 -->[docs][base & joy] Display "Classes" Section in API docs (#36589) @hbjORbj
|
|
111
|
+
- ​<!-- 13 -->[docs] Fix 100+ typos throughout the Material UI docs (#36194) @Lioness100
|
|
112
|
+
- ​<!-- 12 -->[docs] Change "coming soon" chip color (#36786) @danilo-leal
|
|
113
|
+
- ​<!-- 11 -->[docs][Joy] Fix wrong prop descriptions (#36826) @hbjORbj
|
|
114
|
+
- ​<!-- 10 -->[docs][material] Highlight global state classes in CSS table in API docs (#36633) @hbjORbj
|
|
115
|
+
- ​<!-- 09 -->[examples] Fix `SliderUnstyled` slots `key` name (#36830) @sai6855
|
|
116
|
+
- ​<!-- 04 -->[Tabs] Improve useTab() API page (#36725) @oliviertassinari
|
|
117
|
+
|
|
118
|
+
### Core
|
|
119
|
+
|
|
120
|
+
- ​<!-- 22 -->[core] Increase margin to scroll @oliviertassinari
|
|
121
|
+
- ​<!-- 21 -->[core] Replace MUI Base with Base UI (#36716) @mnajdova
|
|
122
|
+
- ​<!-- 03 -->[website] Fix broken career website links @oliviertassinari
|
|
123
|
+
- ​<!-- 02 -->[website] Fix backlinks to homepage (#36801) @oliviertassinari
|
|
124
|
+
- ​<!-- 01 -->[website] Tweaks to the Designer position ad (#36771) @danilo-leal
|
|
125
|
+
|
|
126
|
+
All contributors of this release in alphabetical order: @alirezahekmati, @danilo-leal, @hbjORbj, @Lioness100, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @ZeeshanTamboli
|
|
127
|
+
|
|
3
128
|
## 5.11.16
|
|
4
129
|
|
|
5
130
|
<!-- generated comparing v5.11.15..master -->
|
|
@@ -190,12 +315,12 @@ _Mar 14, 2023_
|
|
|
190
315
|
|
|
191
316
|
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
192
317
|
|
|
193
|
-
- @michaldudak added an option for [disabling the generation](https://mui.com/base/getting-started/customization/#disabling-default-css-classes) of the default classes in
|
|
318
|
+
- @michaldudak added an option for [disabling the generation](https://mui.com/base/getting-started/customization/#disabling-default-css-classes) of the default classes in Base UI (#35963)
|
|
194
319
|
- other 🐛 bug fixes and 📚 documentation improvements.
|
|
195
320
|
|
|
196
321
|
### `@mui/material@5.11.13`
|
|
197
322
|
|
|
198
|
-
- ​<!-- 13 -->[core] Bump
|
|
323
|
+
- ​<!-- 13 -->[core] Bump Base UI's version in Material UI (#36492) @hbjORbj
|
|
199
324
|
- ​<!-- 17 -->[material] Export `shouldSkipGeneratingVar` from Material UI (#36489) @siriwatknp
|
|
200
325
|
- ​<!-- 06 -->[Typography] Apply font properties to typography inherit variant (#33621) @oyar99
|
|
201
326
|
|
|
@@ -345,7 +470,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
345
470
|
- ​<!-- 23 -->[docs] Add instructions for deploying docs without a release (#36301) @cherniavskii
|
|
346
471
|
- ​<!-- 22 -->[docs] Fix 301 redirections on the docs @oliviertassinari
|
|
347
472
|
- ​<!-- 21 -->[docs] Update MUI X banner to reflect stable release (#36354) @MBilalShafi
|
|
348
|
-
- ​<!-- 20 -->[docs] Clarify the future plan for integrating
|
|
473
|
+
- ​<!-- 20 -->[docs] Clarify the future plan for integrating Base UI in Material UI (#36365) @mnajdova
|
|
349
474
|
- ​<!-- 19 -->[docs] Improve visual look of loose lists (#36190) @oliviertassinari
|
|
350
475
|
- ​<!-- 18 -->[docs] Fix @mui/styles example links (#36331) @oliviertassinari
|
|
351
476
|
- ​<!-- 17 -->[docs][joy] Build TS versions for List component demos (#36382) @sai6855
|
|
@@ -375,7 +500,7 @@ _Feb 27, 2023_
|
|
|
375
500
|
|
|
376
501
|
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
377
502
|
|
|
378
|
-
- 📚 added API documentation for the slots in
|
|
503
|
+
- 📚 added API documentation for the slots in Base UI and Joy UI by @hbjORbj, for e.g. [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/#slots)
|
|
379
504
|
- other 🐛 bug fixes and 📚 documentation improvements.
|
|
380
505
|
|
|
381
506
|
### `@mui/material@5.11.11`
|
|
@@ -612,7 +737,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
612
737
|
- ​<!-- 16 -->[docs] Improve inline preview's information (#35974) @oliviertassinari
|
|
613
738
|
- ​<!-- 15 -->[docs] Fix wrong v5 migration instructions (#36022) @oliviertassinari
|
|
614
739
|
- ​<!-- 14 -->[docs] Fix autocomplete render group key warning in the demo (#36025) @chuanyu0201
|
|
615
|
-
- ​<!-- 13 -->[docs] Add hooks API pages for
|
|
740
|
+
- ​<!-- 13 -->[docs] Add hooks API pages for Base UI (#35828) @mnajdova
|
|
616
741
|
- ​<!-- 12 -->[docs] Fix grammar typo (#36016) @alexownejazayeri
|
|
617
742
|
- ​<!-- 11 -->[docs][joy] Add JSDoc for the `AutocompleteProps` type (#36039) @ArthurPedroti
|
|
618
743
|
|
|
@@ -828,7 +953,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
|
|
|
828
953
|
|
|
829
954
|
- [docs] Improve pickers lab migration stressing `mui-x` usage (#35740) @LukasTy
|
|
830
955
|
- [docs] Fix incorrectly named AccessibleTable demo component (#35832) @HeVictor
|
|
831
|
-
- [docs] Clarify where to find docs for
|
|
956
|
+
- [docs] Clarify where to find docs for Base UI components in Material UI (#35799) @samuelsycamore
|
|
832
957
|
- [docs] Fix typos (#35814) @alexfauquette
|
|
833
958
|
- [docs] Revise and expand the Joy UI Card page (#35745) @samuelsycamore
|
|
834
959
|
- [docs] Fix navigation layout shift (#35679) @oliviertassinari
|
|
@@ -939,7 +1064,7 @@ _Dec 26, 2022_
|
|
|
939
1064
|
|
|
940
1065
|
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
|
|
941
1066
|
|
|
942
|
-
- ⚙️ Several
|
|
1067
|
+
- ⚙️ Several Base UI components were converted to TypeScript by @trizotti, @leventdeniz and @danhuynhdev (#35005, #34793, #34771)
|
|
943
1068
|
- Many other 🐛 bug fixes abd 📚 documentation improvements.
|
|
944
1069
|
|
|
945
1070
|
### `@mui/material@5.11.2`
|
|
@@ -1116,7 +1241,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
1116
1241
|
- [docs] Refactor `ToggleButtonSizes` demo (#35375) @Armanio
|
|
1117
1242
|
- [docs] Standardize the usage of callouts in the MUI Core docs (#35361) @samuelsycamore
|
|
1118
1243
|
- [docs] Format feedback to add a link to the commented section (#35381) @alexfauquette
|
|
1119
|
-
- [docs] Direct users from Material UI to
|
|
1244
|
+
- [docs] Direct users from Material UI to Base UI for duplicated components (#35293) @samuelsycamore
|
|
1120
1245
|
- [docs] Fix typo in FormControl API docs (#35449) @Spanishiwa
|
|
1121
1246
|
- [docs] Update callouts design (#35390) @danilo-leal
|
|
1122
1247
|
- [website] New wave of open roles (#35240) @mnajdova
|
|
@@ -1191,7 +1316,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
1191
1316
|
- ​<!-- 14 -->[docs] Improve the autogenerated "Unstyled" and "API" text (#35185) @samuelsycamore
|
|
1192
1317
|
- ​<!-- 13 -->[docs] Fix ad margin on API pages (#35201) @oliviertassinari
|
|
1193
1318
|
- ​<!-- 12 -->[docs] Revise and expand the Joy UI "Badge" page (#35199) @samuelsycamore
|
|
1194
|
-
- ​<!-- 11 -->[docs] Update
|
|
1319
|
+
- ​<!-- 11 -->[docs] Update Base UI docs with latest style conventions (#35034) @samuelsycamore
|
|
1195
1320
|
- ​<!-- 09 -->[l10n] Improve Chinese (Taiwan) zh-TW locale (#35328) @happyincent
|
|
1196
1321
|
- ​<!-- 02 -->[website] Update MUI stats: GitHub stars, Twitter followers, etc. (#35318) @nomandhoni-cs
|
|
1197
1322
|
|
|
@@ -1524,7 +1649,7 @@ _Oct 25, 2022_
|
|
|
1524
1649
|
|
|
1525
1650
|
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
1526
1651
|
|
|
1527
|
-
- 🔧 Moved `components` to `slots` prop starting at
|
|
1652
|
+
- 🔧 Moved `components` to `slots` prop starting at Base UI to create consistency across products
|
|
1528
1653
|
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
1529
1654
|
|
|
1530
1655
|
### `@mui/material@5.10.11`
|
|
@@ -1606,7 +1731,7 @@ A big thanks to the 21 contributors who made this release possible. Here are som
|
|
|
1606
1731
|
|
|
1607
1732
|
- 🖌 Thanks to the efforts of @bharatkashyap and @nihgwu, we now have editable demos across our docs (#34454)!
|
|
1608
1733
|
- 🚀 The Tooltip component has been added to Joy UI by @hbjORbj (#34509).
|
|
1609
|
-
- ⚙️ We started converting the remaining JS components in
|
|
1734
|
+
- ⚙️ We started converting the remaining JS components in Base UI to TypeScript.
|
|
1610
1735
|
@mbayucot finished the first PR with the conversion of the NoSsr code (#34735).
|
|
1611
1736
|
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
1612
1737
|
|
|
@@ -1737,7 +1862,7 @@ _Oct 3, 2022_
|
|
|
1737
1862
|
|
|
1738
1863
|
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
1739
1864
|
|
|
1740
|
-
- 🚀 [SnackbarUnstyled](https://mui.com/base/react-snackbar/) component & headless hook are added to
|
|
1865
|
+
- 🚀 [SnackbarUnstyled](https://mui.com/base/react-snackbar/) component & headless hook are added to Base UI (#33227) @ZeeshanTamboli
|
|
1741
1866
|
- 📚 [CSS variables documentation](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/) for Material UI has been added by @siriwatknp (#33958)
|
|
1742
1867
|
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
1743
1868
|
|
|
@@ -1839,7 +1964,7 @@ A big thanks to the 21 contributors who made this release possible. Here are som
|
|
|
1839
1964
|
|
|
1840
1965
|
### Docs
|
|
1841
1966
|
|
|
1842
|
-
- [blog]
|
|
1967
|
+
- [blog] Base UI announcement typo fixed (#34409) @prakhargupta1
|
|
1843
1968
|
- [blog] Fix typo in date-pickers v5 stable (#34386) @alexfauquette
|
|
1844
1969
|
- [blog] Update date on date pickers v5 release blog post (#34406) @joserodolfofreitas
|
|
1845
1970
|
- [docs] Update `useMenu` and `useMenuItem` hooks demo (#34166) @ZeeshanTamboli
|
|
@@ -1925,7 +2050,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
|
|
|
1925
2050
|
- [docs] Fix 301 link to external projects @oliviertassinari
|
|
1926
2051
|
- [docs] Move 12 component names to Title Case (#34188) @oliviertassinari
|
|
1927
2052
|
- [docs] Fix broken links (#34320) @alexfauquette
|
|
1928
|
-
- [docs] Add notification for
|
|
2053
|
+
- [docs] Add notification for Base UI announcement post (#34295) @samuelsycamore
|
|
1929
2054
|
- [website] Fix MUI X subscribe email border style (#34330) @oliviertassinari
|
|
1930
2055
|
- [website] Improve security header @oliviertassinari
|
|
1931
2056
|
|
|
@@ -1946,7 +2071,7 @@ _Sep 12, 2022_
|
|
|
1946
2071
|
|
|
1947
2072
|
A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
1948
2073
|
|
|
1949
|
-
- 🚀 [Blog post](https://mui.com/blog/introducing-mui-base/) for announcing the release of the
|
|
2074
|
+
- 🚀 [Blog post](https://mui.com/blog/introducing-mui-base/) for announcing the release of the Base UI package is out thanks to @michaldudak.
|
|
1950
2075
|
- 🚀 Added [`Alert`](https://mui.com/joy-ui/react-alert/), [`Modal`](https://mui.com/joy-ui/react-modal/), [`ListSubheader`](https://mui.com/joy-ui/react-list-subheader/), [`FormControl`](https://mui.com/joy-ui/react-form-control/), [`CircularProgress`](https://mui.com/joy-ui/react-circular-progress/) components to Joy UI (#33859) @hbjORbj @siriwatknp
|
|
1951
2076
|
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
1952
2077
|
|
|
@@ -1969,7 +2094,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
|
|
|
1969
2094
|
|
|
1970
2095
|
### Docs
|
|
1971
2096
|
|
|
1972
|
-
- ​<!-- 16 -->[blog] Introducing
|
|
2097
|
+
- ​<!-- 16 -->[blog] Introducing Base UI (#33778) @michaldudak
|
|
1973
2098
|
- ​<!-- 13 -->[docs] Fix spelling error (#34209) @ChrystianDeMatos
|
|
1974
2099
|
- ​<!-- 12 -->[docs] Improve link to the security policy (#34219) @oliviertassinari
|
|
1975
2100
|
- ​<!-- 11 -->[docs] Fix typo in Joy UI's `Usage` docs (#34200) @zillion504
|
|
@@ -2524,7 +2649,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
|
|
|
2524
2649
|
- [docs] Add "refine" demo to showcase (#33240) @omeraplak
|
|
2525
2650
|
- [docs] Add webpack alias for legacy utils package (#33376) @jgbae
|
|
2526
2651
|
- [docs] Improve external link icons synonyms (#33257) @davidgarciab
|
|
2527
|
-
- [examples] Update
|
|
2652
|
+
- [examples] Update Base UI with Tailwind CSS to use the latest versions of the dependencies (#33401) @mnajdova
|
|
2528
2653
|
- [examples] Add MUI base example (#33154) @siriwatknp
|
|
2529
2654
|
|
|
2530
2655
|
### Core
|
|
@@ -2698,7 +2823,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
2698
2823
|
- ​<!-- 28 -->[blog] Update Blogpost to clear confusion on "no impact" disclaimer. (#33131) @joserodolfofreitas
|
|
2699
2824
|
- ​<!-- 27 -->[blog] Add post about v5 Migration guide update (#33063) @samuelsycamore
|
|
2700
2825
|
- ​<!-- 26 -->[blog] Fix display on Safari (#33102) @oliviertassinari
|
|
2701
|
-
- ​<!-- 18 -->[docs] Add guide on how to use
|
|
2826
|
+
- ​<!-- 18 -->[docs] Add guide on how to use Base UI with Tailwind CSS (#33100) @mnajdova
|
|
2702
2827
|
- ​<!-- 17 -->[docs] Improve Joy template UX (#33159) @siriwatknp
|
|
2703
2828
|
- ​<!-- 16 -->[docs] Update Shadow DOM guide (#33160) @cherniavskii
|
|
2704
2829
|
- ​<!-- 15 -->[docs] Fix SEO regressions (#33106) @oliviertassinari
|
|
@@ -2776,7 +2901,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
|
|
|
2776
2901
|
- ​<!-- 31 -->[docs] Move codesandbox to MUI org (#33122) @oliviertassinari
|
|
2777
2902
|
- ​<!-- 30 -->[docs] Add Shadow DOM guide (#33007) @cherniavskii
|
|
2778
2903
|
- ​<!-- 29 -->[docs] Fix typo in Material UI overview page (#33087) @oliviertassinari
|
|
2779
|
-
- ​<!-- 28 -->[docs] Miscellaneous fixes in `
|
|
2904
|
+
- ​<!-- 28 -->[docs] Miscellaneous fixes in `Base UI` docs (#33091) @ZeeshanTamboli
|
|
2780
2905
|
- ​<!-- 27 -->[docs] Fix GitHub capitalization (#33071) @oliviertassinari
|
|
2781
2906
|
- ​<!-- 26 -->[docs] Fix a typo in `InputUnstyled` docs (#33077) @ZeeshanTamboli
|
|
2782
2907
|
- ​<!-- 25 -->[docs] Add notification for Joy blog post (#33059) @siriwatknp
|
|
@@ -3212,7 +3337,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
3212
3337
|
- ​<!-- 24 -->[docs] Base Button style revisions and final review (#32380) @samuelsycamore
|
|
3213
3338
|
- ​<!-- 23 -->[docs] Base NoSsr style revisions and final review (#32254) @samuelsycamore
|
|
3214
3339
|
- ​<!-- 22 -->[docs] Correctly capitalize Ctrl @oliviertassinari
|
|
3215
|
-
- ​<!-- 21 -->[docs] Fix styling in `Basic Popper` demo on the
|
|
3340
|
+
- ​<!-- 21 -->[docs] Fix styling in `Basic Popper` demo on the Base UI docs (#32488) @ZeeshanTamboli
|
|
3216
3341
|
- ​<!-- 20 -->[docs] Add "Overview" page to Base docs (#32310) @samuelsycamore
|
|
3217
3342
|
- ​<!-- 19 -->[docs] Add copy button to code block (#32390) @siriwatknp
|
|
3218
3343
|
- ​<!-- 18 -->[docs] Base Tabs style revisions and final review (#32423) @samuelsycamore
|
|
@@ -3466,7 +3591,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
|
|
|
3466
3591
|
|
|
3467
3592
|
- ​<!-- 28 -->[core] Update peer deps to support React 18 (#32063) @eps1lon
|
|
3468
3593
|
- ​<!-- 27 -->[core] Fix running docs:api on Windows (#32091) @michaldudak
|
|
3469
|
-
- ​<!-- 26 -->[core] Fix api build script for
|
|
3594
|
+
- ​<!-- 26 -->[core] Fix api build script for Base UI (#32081) @siriwatknp
|
|
3470
3595
|
|
|
3471
3596
|
All contributors of this release in alphabetical order: @apeltop, @eps1lon, @flaviendelangle, @garronej, @ivan-ngchakming, @m4theushw, @MatthijsMud, @michaldudak, @mnajdova, @oliviertassinari, @psjishnu, @raigoinabox, @samuelsycamore, @siriwatknp, @TkaczykAdam
|
|
3472
3597
|
|
|
@@ -3693,7 +3818,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
3693
3818
|
|
|
3694
3819
|
- ​<!-- 24 -->[ClassNameGenerator] Prevent all `base` imports (#31297) @siriwatknp
|
|
3695
3820
|
|
|
3696
|
-
`unstable_ClassNameGenerator` has been moved from `utils` to `className` folder to prevent all
|
|
3821
|
+
`unstable_ClassNameGenerator` has been moved from `utils` to `className` folder to prevent all Base UI module imports. If you use the module, please update the import as suggested in the diff below:
|
|
3697
3822
|
|
|
3698
3823
|
```diff
|
|
3699
3824
|
-import { unstable_ClassNameGenerator } from '@mui/material/utils';
|
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 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 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 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 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
|
-
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
|
+
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Interpolation } from '@mui/styled-engine';
|
|
3
|
+
import { Theme as SystemTheme } from '../createTheme';
|
|
4
|
+
export interface GlobalStylesProps<Theme = SystemTheme> {
|
|
5
|
+
styles: Interpolation<Theme>;
|
|
6
|
+
defaultTheme?: object;
|
|
7
|
+
themeId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function GlobalStyles<Theme = SystemTheme>({ styles, themeId, defaultTheme, }: GlobalStylesProps<Theme>): JSX.Element;
|
|
10
|
+
declare namespace GlobalStyles {
|
|
11
|
+
var propTypes: any;
|
|
12
|
+
}
|
|
13
|
+
export default GlobalStyles;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _styledEngine = require("@mui/styled-engine");
|
|
11
|
+
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function GlobalStyles({
|
|
16
|
+
styles,
|
|
17
|
+
themeId,
|
|
18
|
+
defaultTheme = {}
|
|
19
|
+
}) {
|
|
20
|
+
const upperTheme = (0, _useTheme.default)(defaultTheme);
|
|
21
|
+
const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;
|
|
22
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledEngine.GlobalStyles, {
|
|
23
|
+
styles: globalStyles
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes /* remove-proptypes */ = {
|
|
27
|
+
// ----------------------------- Warning --------------------------------
|
|
28
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
29
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
30
|
+
// ----------------------------------------------------------------------
|
|
31
|
+
/**
|
|
32
|
+
* @ignore
|
|
33
|
+
*/
|
|
34
|
+
defaultTheme: _propTypes.default.object,
|
|
35
|
+
/**
|
|
36
|
+
* @ignore
|
|
37
|
+
*/
|
|
38
|
+
styles: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.array, _propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.string, _propTypes.default.bool]),
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
*/
|
|
42
|
+
themeId: _propTypes.default.string
|
|
43
|
+
} : void 0;
|
|
44
|
+
var _default = GlobalStyles;
|
|
45
|
+
exports.default = _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {};
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _GlobalStyles.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _GlobalStyles = _interopRequireWildcard(require("./GlobalStyles"));
|
|
14
|
+
Object.keys(_GlobalStyles).forEach(function (key) {
|
|
15
|
+
if (key === "default" || key === "__esModule") return;
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
17
|
+
if (key in exports && exports[key] === _GlobalStyles[key]) return;
|
|
18
|
+
Object.defineProperty(exports, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _GlobalStyles[key];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/Stack/Stack.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Demos:
|
|
4
|
-
*
|
|
5
|
-
* - [Stack (
|
|
6
|
-
* - [Stack (
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Demos:
|
|
4
|
+
*
|
|
5
|
+
* - [Stack (Joy UI)](https://mui.com/joy/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").StackTypeMap<{}, "div">>;
|
|
14
|
+
export default Stack;
|