@mui/docs 5.15.14 → 6.0.0-alpha.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 +209 -3
- package/InfoCard/InfoCard.d.ts +21 -0
- package/InfoCard/InfoCard.js +86 -0
- package/InfoCard/index.d.ts +1 -0
- package/InfoCard/index.js +1 -0
- package/InfoCard/package.json +6 -0
- package/Link/Link.js +1 -1
- package/NProgressBar/NProgressBar.js +3 -6
- package/README.md +6 -2
- package/branding/BrandingProvider.d.ts +9 -0
- package/branding/BrandingProvider.js +17 -0
- package/branding/brandingTheme.d.ts +152 -0
- package/branding/brandingTheme.js +1146 -0
- package/branding/index.d.ts +2 -0
- package/branding/index.js +2 -0
- package/branding/package.json +6 -0
- package/legacy/InfoCard/InfoCard.js +86 -0
- package/legacy/InfoCard/index.js +1 -0
- package/legacy/NProgressBar/NProgressBar.js +1 -2
- package/legacy/branding/BrandingProvider.js +17 -0
- package/legacy/branding/brandingTheme.js +1168 -0
- package/legacy/branding/index.js +2 -0
- package/node/DocsProvider/DocsProvider.js +1 -1
- package/node/InfoCard/InfoCard.js +96 -0
- package/node/InfoCard/index.js +16 -0
- package/node/Link/Link.js +1 -1
- package/node/NProgressBar/NProgressBar.js +1 -1
- package/node/branding/BrandingProvider.js +25 -0
- package/node/branding/brandingTheme.js +1157 -0
- package/node/branding/index.js +27 -0
- package/node/i18n/i18n.js +1 -1
- package/node/svgIcons/FileDownload.js +1 -1
- package/node/svgIcons/JavaScript.js +1 -1
- package/node/svgIcons/TypeScript.js +1 -1
- package/node/translations/translations.json +214 -0
- package/package.json +9 -8
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,211 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.1
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 5, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 3 more Material UI components to use Pigment CSS. Current progress is 36%!
|
|
12
|
+
- 🚀 Added a spacing CSS variable to the Material UI and Joy UI themes.
|
|
13
|
+
- 💫 Added 3 redesigned free Material UI templates: [Sign-in](https://next.mui.com/material-ui/getting-started/templates/sign-in/), [Sign-in side](https://next.mui.com/material-ui/getting-started/templates/sign-in-side/), and [Sign-up](https://next.mui.com/material-ui/getting-started/templates/sign-up/).
|
|
14
|
+
|
|
15
|
+
### `@mui/material@6.0.0-alpha.1`
|
|
16
|
+
|
|
17
|
+
- [AppBar] Convert to support CSS extraction (#41247) @mnajdova
|
|
18
|
+
- [Badge] Deprecate components and componentsProps (#41655) @skmanoj322
|
|
19
|
+
- [Button] Convert to support CSS extraction (#41378) @siriwatknp
|
|
20
|
+
- [ButtonGroup] Convert to support CSS extraction (#41666) @zanivan
|
|
21
|
+
- [RadioGroup] Apply classnames (#41610) @ZeeshanTamboli
|
|
22
|
+
- [Slider] Move palette styles to the bottom (#41676) @siriwatknp
|
|
23
|
+
- Add the `spacing` theme token (#40224) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/system@6.0.0-alpha.1`
|
|
26
|
+
|
|
27
|
+
- Add the `spacing` theme token to be used in `theme.spacing()` (#40224) @siriwatknp
|
|
28
|
+
|
|
29
|
+
### `@mui/codemod@6.0.0-alpha.1`
|
|
30
|
+
|
|
31
|
+
- [codemod] Setup v6 codemod structure (#41668) @DiegoAndai
|
|
32
|
+
|
|
33
|
+
### `@mui/lab@6.0.0-alpha.1`
|
|
34
|
+
|
|
35
|
+
- [TabPanel] Add keepMounted prop to match Joy UI (#41651) @ppaskaris-plooto
|
|
36
|
+
|
|
37
|
+
### `@mui/joy@5.0.0-beta.34`
|
|
38
|
+
|
|
39
|
+
- Add `spacing` theme token (#40224) @siriwatknp
|
|
40
|
+
|
|
41
|
+
### `@pigment-css/react@0.0.5`
|
|
42
|
+
|
|
43
|
+
- Improve sx prop support (#41589) @brijeshb42
|
|
44
|
+
- Fix Emotion styled error (#41699) @siriwatknp
|
|
45
|
+
- Fix propTypes removal during eval stage (#41695) @brijeshb42
|
|
46
|
+
- Fix props forwarding (#41688) @siriwatknp
|
|
47
|
+
- Fix sx prop transformation on Box (#41705) @brijeshb42
|
|
48
|
+
|
|
49
|
+
### `@pigment-css/vite-plugin@0.0.5`
|
|
50
|
+
|
|
51
|
+
- Use constant filename for pigment styles (#41667) @brijeshb42
|
|
52
|
+
|
|
53
|
+
### `@pigment-css/nextjs-plugin@0.0.5`
|
|
54
|
+
|
|
55
|
+
- Add missing RTL implementation (#41751) @brijeshb42
|
|
56
|
+
|
|
57
|
+
### Docs
|
|
58
|
+
|
|
59
|
+
- [pigment-css] Update README.md installation to use the next tag (#41649) @mnajdova
|
|
60
|
+
- [pigment-css] Add "Building design system components" guide with Pigment CSS (#41635) @siriwatknp
|
|
61
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
62
|
+
- Stick to one way to write IE 11 @oliviertassinari
|
|
63
|
+
- Fix typo in CONTRIBUTING.md (#41670) @adriancuadrado
|
|
64
|
+
- Drop IE 11 official support (#41611) @iammminzzy
|
|
65
|
+
- [material-ui] Fix typo on the Accordion page (#41687) @connorshea
|
|
66
|
+
- [pigment-css] Add small edits on the README (#41646) @danilo-leal
|
|
67
|
+
- [pigment-css] Edit the example app's README files (#41639) @danilo-leal
|
|
68
|
+
|
|
69
|
+
### Core
|
|
70
|
+
|
|
71
|
+
- [code-infra] Move BrandingProvider/brandingTheme/InfoCard to @mui/docs (#41206) @Janpot
|
|
72
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#41741) @aarongarciah
|
|
73
|
+
- [core] Update the prettier script to use the next branch (#41637) @mnajdova
|
|
74
|
+
- [docs-infra] Skip loading source for non-editable modules (#41588) @bharatkashyap
|
|
75
|
+
- [docs-infra] Vale rule for M3 (#41737) @oliviertassinari
|
|
76
|
+
- [docs-infra] Allows to remove edit button (#41702) @alexfauquette
|
|
77
|
+
- [pigment-css][examples] Add example project with Remix (#41700) @brijeshb42
|
|
78
|
+
- [examples] Update MUI's packages to the next version (#41701) @mnajdova
|
|
79
|
+
- [material-ui] Refine the Sign-in and Sign-up templates (#41192) @zanivan
|
|
80
|
+
- [test] Add test to display options provided to the options prop even if loading is true. (#41675) @ZeeshanTamboli
|
|
81
|
+
- [blog] Refresh the design slightly (#41697) @danilo-leal
|
|
82
|
+
- [website] Use en-US over en-UK for career link @oliviertassinari
|
|
83
|
+
- [website] Add Aarón to About Us (#41736) @aarongarciah
|
|
84
|
+
- [website] Refine button design and other details (#41686) @danilo-leal
|
|
85
|
+
- [website] Improve job og image (#41672) @oliviertassinari
|
|
86
|
+
- [website] Page <title> should have no dots @oliviertassinari
|
|
87
|
+
|
|
88
|
+
All contributors of this release in alphabetical order: @aarongarciah, @adriancuadrado, @alexfauquette, @bharatkashyap, @brijeshb42, @connorshea, @danilo-leal, @DiegoAndai, @iammminzzy, @Janpot, @JCQuintas, @levigunz, @mnajdova, @oliviertassinari, @ppaskaris-plooto, @siriwatknp, @skmanoj322, @zanivan, @ZeeshanTamboli
|
|
89
|
+
|
|
90
|
+
## v6.0.0-alpha.0
|
|
91
|
+
|
|
92
|
+
<!-- generated comparing v5.15.14..next -->
|
|
93
|
+
|
|
94
|
+
_Mar 26, 2024_
|
|
95
|
+
|
|
96
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
97
|
+
|
|
98
|
+
- 🔥 Converted 10+ Material UI components to support static CSS extraction
|
|
99
|
+
- ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
|
|
100
|
+
|
|
101
|
+
### `@mui/material@6.0.0-alpha.0`
|
|
102
|
+
|
|
103
|
+
- [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
|
|
104
|
+
- [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
|
|
105
|
+
- [Backdrop] Convert to support CSS extraction (#41581) @aacevski
|
|
106
|
+
- [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
|
|
107
|
+
- [Card] Convert to support CSS extraction (#41580) @aacevski
|
|
108
|
+
- [Divider] Convert to support CSS extraction (#41366) @sai6855
|
|
109
|
+
- [FormControl] Convert to support CSS extraction (#41613) @aacevski
|
|
110
|
+
- [FormGroup] Convert to support CSS extraction (#41614) @aacevski
|
|
111
|
+
- [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
|
|
112
|
+
- [Modal] Support CSS extraction (#41483) @sai6855
|
|
113
|
+
- [Popover] Convert to support CSS extraction (#41564) @aacevski
|
|
114
|
+
- [Stepper] Convert to support CSS extraction (#41546) @aacevski
|
|
115
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
|
|
116
|
+
- [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
|
|
117
|
+
- [ButtonGroup] Deprecate composed classes (#41259) @sai6855
|
|
118
|
+
- [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
|
|
119
|
+
- [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
|
|
120
|
+
|
|
121
|
+
### `@pigment-css/react@0.0.4`
|
|
122
|
+
|
|
123
|
+
- Fix evaluation of undefined variables (#41569) @siriwatknp
|
|
124
|
+
- Fix react-modal demos location (#41560) @sai6855
|
|
125
|
+
- [react] RTL Support (#41570) @brijeshb42
|
|
126
|
+
|
|
127
|
+
### `@mui/system@6.0.0-alpha.0`
|
|
128
|
+
|
|
129
|
+
- [core] Standardize index pattern (#41574) @DiegoAndai
|
|
130
|
+
- Fix typo to avoid infinite recursion in function call (#41616) @michael-land
|
|
131
|
+
- Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
|
|
132
|
+
|
|
133
|
+
### Docs
|
|
134
|
+
|
|
135
|
+
- [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
|
|
136
|
+
- [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
|
|
137
|
+
- [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
|
|
138
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
|
|
139
|
+
- [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
|
|
140
|
+
|
|
141
|
+
### Core
|
|
142
|
+
|
|
143
|
+
- [blog] Update the callout (#41645) @cherniavskii
|
|
144
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
|
|
145
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
|
|
146
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
147
|
+
- [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
|
|
148
|
+
- [core] Fix failing CI steps (#41636) @mnajdova
|
|
149
|
+
- [core] Update browser support versions (#41568) @siriwatknp
|
|
150
|
+
- [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
|
|
151
|
+
- [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
|
|
152
|
+
- [core] Init the next branch (#41552) @mnajdova
|
|
153
|
+
- [core] Lower the frequency of no-response action runs (#41553) @michaldudak
|
|
154
|
+
- [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
|
|
155
|
+
- [core] Run pnpm dedupe (#41658) @michaldudak
|
|
156
|
+
- [core] Fix dedupe check (#41657) @Janpot
|
|
157
|
+
- [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
|
|
158
|
+
- [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
|
|
159
|
+
- [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
|
|
160
|
+
- [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
|
|
161
|
+
- [docs] Update the installation guides to use the next tag (#41558) @mnajdova
|
|
162
|
+
- [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
|
|
163
|
+
- [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
164
|
+
- [website] Update pricing table (#41595) @cherniavskii
|
|
165
|
+
- [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
|
|
166
|
+
|
|
167
|
+
All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
|
|
168
|
+
|
|
169
|
+
## v5.15.15
|
|
170
|
+
|
|
171
|
+
<!-- generated comparing v5.15.14..master -->
|
|
172
|
+
|
|
173
|
+
_Apr 4, 2024_
|
|
174
|
+
|
|
175
|
+
A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
176
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
177
|
+
|
|
178
|
+
### `@mui/material@5.15.15`
|
|
179
|
+
|
|
180
|
+
- [Autocomplete] Display options provided to the `options` prop even if loading is true (#41677) @ZeeshanTamboli
|
|
181
|
+
- [RadioGroup] Apply classnames (#41681) @ZeeshanTamboli
|
|
182
|
+
|
|
183
|
+
### `@mui/system@5.15.15`
|
|
184
|
+
|
|
185
|
+
- Fix typo to avoid infinite recursion in function call (#41678) @ZeeshanTamboli
|
|
186
|
+
|
|
187
|
+
### Docs
|
|
188
|
+
|
|
189
|
+
- [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41679) @ZeeshanTamboli
|
|
190
|
+
- [material-ui] Remove deleted page from the sidenav (#41594) @danilo-leal
|
|
191
|
+
- [material-ui] Fix typo in CSS theme variables customization (#41680) @ZeeshanTamboli
|
|
192
|
+
- Continue migration of Base UI to sperate repository @oliviertassinari
|
|
193
|
+
- Add notification for MUI X v7 blog post (#41587) (#41605) @cherniavskii
|
|
194
|
+
- Update the versions dropdown to show v6 (#41557) @mnajdova
|
|
195
|
+
|
|
196
|
+
### Core
|
|
197
|
+
|
|
198
|
+
- [blog] Link to Romain's blog post in MUI X v7 announcement post (#41641) @cherniavskii
|
|
199
|
+
- [blog] Blog post with MUI X v7.0.0 annoucement (#41563) (#41604) @cherniavskii
|
|
200
|
+
- [blog] Add post about remote (#41565) @danilo-leal
|
|
201
|
+
- [core] Continue rename of Toolpad @oliviertassinari
|
|
202
|
+
- [docs-infra] Add Toolpad product/category IDs to types (#41551) @bharatkashyap
|
|
203
|
+
- [website] Add Aarón to About Us (#41747) @aarongarciah
|
|
204
|
+
- [website] Add stray design adjustments throughout the site (#41642) @mnajdova
|
|
205
|
+
- [website] Update pricing table (#41606) @cherniavskii
|
|
206
|
+
|
|
207
|
+
All contributors of this release in alphabetical order: @aarongarciah, @bharatkashyap, @cherniavskii, @danilo-leal, @mnajdova, @oliviertassinari, @ZeeshanTamboli
|
|
208
|
+
|
|
3
209
|
## v5.15.14
|
|
4
210
|
|
|
5
211
|
<!-- generated comparing v5.15.13..master -->
|
|
@@ -9,7 +215,7 @@ _Mar 18, 2024_
|
|
|
9
215
|
A big thanks to the 15 contributors who made this release possible.
|
|
10
216
|
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
217
|
|
|
12
|
-
### `@mui/material@5.15.
|
|
218
|
+
### `@mui/material@5.15.14`
|
|
13
219
|
|
|
14
220
|
- [Accordion] Convert to support CSS extraction (#41221) @mnajdova
|
|
15
221
|
- ​<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
|
|
@@ -814,7 +1020,7 @@ A big thanks to the 22 contributors who made this release possible. Here are som
|
|
|
814
1020
|
- [material-ui] Revise the Alert demo page (#34892) @samuelsycamore
|
|
815
1021
|
- [material-ui] Revise the Accordion page (#40284) @anle9650
|
|
816
1022
|
- [material-ui] Add docs for complementary Card components (#40346) @anle9650
|
|
817
|
-
- [material-ui] Add Material 3 components page (#40350) @DiegoAndai
|
|
1023
|
+
- [material-ui] Add Material Design 3 components page (#40350) @DiegoAndai
|
|
818
1024
|
- Fix strange italic style @oliviertassinari
|
|
819
1025
|
- Fix references to ESLint @oliviertassinari
|
|
820
1026
|
- Fix 301 redirections @oliviertassinari
|
|
@@ -12978,7 +13184,7 @@ Here are some highlights ✨:
|
|
|
12978
13184
|
|
|
12979
13185
|
1. `stable` (default, formerly `esm`) which targets a snapshot (on release) of `> 0.5%, last 2 versions, Firefox ESR, not dead, not IE 11"`
|
|
12980
13186
|
2. `node` (formerly default) which targets a snapshot (on release) of `maintained node versions`
|
|
12981
|
-
3. `legacy` (new) which is `stable` +
|
|
13187
|
+
3. `legacy` (new) which is `stable` + IE 11
|
|
12982
13188
|
4. `modern` (formerly `es`) which targets the last 1 version of evergreen browsers and active node (currently that is 14
|
|
12983
13189
|
|
|
12984
13190
|
The change yields a 6% reduction in bundle size 📦 (Babel only).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { LinkProps } from '../Link';
|
|
4
|
+
interface GlowingIconContainerProps {
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function GlowingIconContainer({ icon }: GlowingIconContainerProps): React.JSX.Element;
|
|
8
|
+
interface InfoCardProps {
|
|
9
|
+
classNameDescription?: string;
|
|
10
|
+
classNameTitle?: string;
|
|
11
|
+
dense?: boolean;
|
|
12
|
+
description?: string;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
link?: string;
|
|
15
|
+
prefetch?: LinkProps['prefetch'];
|
|
16
|
+
svg?: React.ReactNode;
|
|
17
|
+
title: string;
|
|
18
|
+
titleProps?: TypographyProps;
|
|
19
|
+
}
|
|
20
|
+
export declare function InfoCard(props: InfoCardProps): React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["classNameDescription", "classNameTitle", "dense", "description", "icon", "link", "svg", "title", "titleProps"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { alpha } from '@mui/material/styles';
|
|
6
|
+
import Box from '@mui/material/Box';
|
|
7
|
+
import Paper from '@mui/material/Paper';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import { Link } from '../Link';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
export function GlowingIconContainer({
|
|
12
|
+
icon
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
15
|
+
sx: theme => _extends({
|
|
16
|
+
width: 40,
|
|
17
|
+
height: 40,
|
|
18
|
+
display: 'flex',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
flexShrink: 0,
|
|
22
|
+
borderRadius: 1,
|
|
23
|
+
border: '1px solid',
|
|
24
|
+
borderColor: 'primary.200',
|
|
25
|
+
bgcolor: 'primary.50',
|
|
26
|
+
boxShadow: `0px 1px 6px 0px ${alpha(theme.palette.primary[500], 0.2)}, 0px 2px 12px 0px rgba(234, 237, 241, 0.3) inset`
|
|
27
|
+
}, theme.applyDarkStyles({
|
|
28
|
+
borderColor: alpha(theme.palette.primary[400], 0.25),
|
|
29
|
+
bgcolor: alpha(theme.palette.primary[900], 0.25),
|
|
30
|
+
boxShadow: `0 2px 6px 0 ${alpha(theme.palette.primary[600], 0.3)}, 0px 2px 12px 0px rgba(0, 0, 0, 0.25) inset`
|
|
31
|
+
})),
|
|
32
|
+
children: icon
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export function InfoCard(props) {
|
|
36
|
+
const {
|
|
37
|
+
classNameDescription,
|
|
38
|
+
classNameTitle,
|
|
39
|
+
dense,
|
|
40
|
+
description,
|
|
41
|
+
icon,
|
|
42
|
+
link,
|
|
43
|
+
svg,
|
|
44
|
+
title,
|
|
45
|
+
titleProps
|
|
46
|
+
} = props,
|
|
47
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
48
|
+
return /*#__PURE__*/_jsxs(Paper, _extends({
|
|
49
|
+
variant: "outlined",
|
|
50
|
+
component: link ? Link : 'div',
|
|
51
|
+
href: link
|
|
52
|
+
}, link ? {
|
|
53
|
+
noLinkStyle: true,
|
|
54
|
+
// Fix overloading with prefetch={false}, only prefetch on hover.
|
|
55
|
+
prefetch: false
|
|
56
|
+
} : {}, {
|
|
57
|
+
sx: theme => _extends({
|
|
58
|
+
p: dense ? 2.5 : 3.5,
|
|
59
|
+
height: '100%',
|
|
60
|
+
background: `${(theme.vars || theme).palette.gradients.linearSubtle}`
|
|
61
|
+
}, theme.applyDarkStyles({
|
|
62
|
+
bgcolor: alpha(theme.palette.primaryDark[800], 0.25),
|
|
63
|
+
background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
|
|
64
|
+
borderColor: 'primaryDark.700'
|
|
65
|
+
}))
|
|
66
|
+
}, other, {
|
|
67
|
+
children: [svg && svg, icon && /*#__PURE__*/_jsx(GlowingIconContainer, {
|
|
68
|
+
icon: icon
|
|
69
|
+
}), /*#__PURE__*/_jsx(Typography, _extends({
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
component: "h3",
|
|
72
|
+
color: "text.primary",
|
|
73
|
+
variant: "body2",
|
|
74
|
+
mt: icon ? 2 : 0,
|
|
75
|
+
mb: description ? 0.5 : 0,
|
|
76
|
+
className: classNameTitle
|
|
77
|
+
}, titleProps, {
|
|
78
|
+
children: title
|
|
79
|
+
})), /*#__PURE__*/_jsx(Typography, {
|
|
80
|
+
variant: "body2",
|
|
81
|
+
color: "text.secondary",
|
|
82
|
+
className: classNameDescription,
|
|
83
|
+
children: description
|
|
84
|
+
})]
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoCard';
|
package/Link/Link.js
CHANGED
|
@@ -70,7 +70,7 @@ export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
|
|
|
70
70
|
} = props,
|
|
71
71
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
72
72
|
const router = useRouter();
|
|
73
|
-
const pathname = typeof href === 'string' ? href : href
|
|
73
|
+
const pathname = typeof href === 'string' ? href : href?.pathname;
|
|
74
74
|
const routerPathname = router.pathname.replace('/[docsTab]', '');
|
|
75
75
|
const shouldBeActive = routerPathname === pathname;
|
|
76
76
|
const className = clsx(classNameProps, shouldBeActive && activeClassName);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
let _ = t => t,
|
|
3
|
-
_t;
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import PropTypes from 'prop-types';
|
|
6
4
|
import NProgress from 'nprogress';
|
|
@@ -8,8 +6,7 @@ import { NoSsr } from '@mui/base/NoSsr';
|
|
|
8
6
|
import { exactProp } from '@mui/utils';
|
|
9
7
|
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
10
8
|
import { keyframes } from '@mui/material/styles';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
10
|
NProgress.configure({
|
|
14
11
|
barSelector: '.nprogress-bar',
|
|
15
12
|
template: `
|
|
@@ -19,7 +16,7 @@ NProgress.configure({
|
|
|
19
16
|
</div>
|
|
20
17
|
`
|
|
21
18
|
});
|
|
22
|
-
const muiNProgressPulse = keyframes
|
|
19
|
+
const muiNProgressPulse = keyframes`
|
|
23
20
|
30% {
|
|
24
21
|
opacity: 0.6;
|
|
25
22
|
}
|
|
@@ -31,7 +28,7 @@ const muiNProgressPulse = keyframes(_t || (_t = _`
|
|
|
31
28
|
to {
|
|
32
29
|
opacity: 0.6;
|
|
33
30
|
}
|
|
34
|
-
|
|
31
|
+
`;
|
|
35
32
|
|
|
36
33
|
/**
|
|
37
34
|
* Elegant and ready-to-use wrapper on top of https://github.com/rstacruz/nprogress/.
|
package/README.md
CHANGED
|
@@ -6,15 +6,19 @@ This package hosts the documentation building blocks.
|
|
|
6
6
|
|
|
7
7
|
Install the package in your project directory with:
|
|
8
8
|
|
|
9
|
+
<!-- #default-branch-switch -->
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
|
-
npm install @mui/docs
|
|
12
|
+
npm install @mui/docs@next
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
The docs has a peer dependency on the core components.
|
|
14
16
|
If you are not already using Material UI in your project, you can add it with:
|
|
15
17
|
|
|
18
|
+
<!-- #default-branch-switch -->
|
|
19
|
+
|
|
16
20
|
```bash
|
|
17
|
-
npm install @mui/material
|
|
21
|
+
npm install @mui/material@next
|
|
18
22
|
```
|
|
19
23
|
|
|
20
24
|
## Documentation
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BrandingProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* If not `undefined`, the provider is considered nesting and does not render NextNProgressBar & CssBaseline
|
|
6
|
+
*/
|
|
7
|
+
mode: 'light' | 'dark';
|
|
8
|
+
}
|
|
9
|
+
export declare function BrandingProvider(props: BrandingProviderProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ThemeProvider, useTheme } from '@mui/material/styles';
|
|
3
|
+
import { brandingDarkTheme, brandingLightTheme } from './brandingTheme';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export function BrandingProvider(props) {
|
|
6
|
+
const {
|
|
7
|
+
children,
|
|
8
|
+
mode: modeProp
|
|
9
|
+
} = props;
|
|
10
|
+
const upperTheme = useTheme();
|
|
11
|
+
const mode = modeProp || upperTheme.palette.mode;
|
|
12
|
+
const theme = mode === 'dark' ? brandingDarkTheme : brandingLightTheme;
|
|
13
|
+
return /*#__PURE__*/_jsx(ThemeProvider, {
|
|
14
|
+
theme: modeProp ? () => theme : theme,
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { CSSObject } from '@mui/system';
|
|
2
|
+
import { ThemeOptions, Theme } from '@mui/material/styles';
|
|
3
|
+
interface ApplyDarkStyles {
|
|
4
|
+
(scheme: CSSObject): CSSObject;
|
|
5
|
+
}
|
|
6
|
+
declare module '@mui/material/styles' {
|
|
7
|
+
interface Theme {
|
|
8
|
+
applyDarkStyles: ApplyDarkStyles;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare module '@mui/material/styles/createPalette' {
|
|
12
|
+
interface ColorRange {
|
|
13
|
+
50: string;
|
|
14
|
+
100: string;
|
|
15
|
+
200: string;
|
|
16
|
+
300: string;
|
|
17
|
+
400: string;
|
|
18
|
+
500: string;
|
|
19
|
+
600: string;
|
|
20
|
+
700: string;
|
|
21
|
+
800: string;
|
|
22
|
+
900: string;
|
|
23
|
+
}
|
|
24
|
+
interface PaletteColor extends ColorRange {
|
|
25
|
+
}
|
|
26
|
+
interface Palette {
|
|
27
|
+
primaryDark: PaletteColor;
|
|
28
|
+
gradients: {
|
|
29
|
+
radioSubtle: string;
|
|
30
|
+
linearSubtle: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface TypeText {
|
|
34
|
+
tertiary: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
declare module '@mui/material/styles/createTypography' {
|
|
38
|
+
interface TypographyOptions {
|
|
39
|
+
fontWeightSemiBold?: number;
|
|
40
|
+
fontWeightExtraBold?: number;
|
|
41
|
+
fontFamilyCode?: string;
|
|
42
|
+
fontFamilySystem?: string;
|
|
43
|
+
}
|
|
44
|
+
interface Typography {
|
|
45
|
+
fontWeightSemiBold: number;
|
|
46
|
+
fontWeightExtraBold: number;
|
|
47
|
+
fontFamilyCode: string;
|
|
48
|
+
fontFamilySystem: string;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
declare module '@mui/material/Chip' {
|
|
52
|
+
interface ChipPropsColorOverrides {
|
|
53
|
+
grey: true;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
declare module '@mui/material/SvgIcon' {
|
|
57
|
+
interface SvgIconPropsColorOverrides {
|
|
58
|
+
danger: true;
|
|
59
|
+
}
|
|
60
|
+
interface SvgIconPropsSizeOverrides {
|
|
61
|
+
xs: true;
|
|
62
|
+
sm: true;
|
|
63
|
+
md: true;
|
|
64
|
+
lg: true;
|
|
65
|
+
xl: true;
|
|
66
|
+
xl2: true;
|
|
67
|
+
xl3: true;
|
|
68
|
+
xl4: true;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export declare const blue: {
|
|
72
|
+
50: string;
|
|
73
|
+
100: string;
|
|
74
|
+
200: string;
|
|
75
|
+
300: string;
|
|
76
|
+
400: string;
|
|
77
|
+
main: string;
|
|
78
|
+
500: string;
|
|
79
|
+
600: string;
|
|
80
|
+
700: string;
|
|
81
|
+
800: string;
|
|
82
|
+
900: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const blueDark: {
|
|
85
|
+
50: string;
|
|
86
|
+
100: string;
|
|
87
|
+
200: string;
|
|
88
|
+
300: string;
|
|
89
|
+
main: string;
|
|
90
|
+
400: string;
|
|
91
|
+
500: string;
|
|
92
|
+
600: string;
|
|
93
|
+
700: string;
|
|
94
|
+
800: string;
|
|
95
|
+
900: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const grey: {
|
|
98
|
+
50: string;
|
|
99
|
+
100: string;
|
|
100
|
+
200: string;
|
|
101
|
+
300: string;
|
|
102
|
+
400: string;
|
|
103
|
+
500: string;
|
|
104
|
+
600: string;
|
|
105
|
+
700: string;
|
|
106
|
+
800: string;
|
|
107
|
+
900: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const error: {
|
|
110
|
+
50: string;
|
|
111
|
+
100: string;
|
|
112
|
+
200: string;
|
|
113
|
+
300: string;
|
|
114
|
+
400: string;
|
|
115
|
+
500: string;
|
|
116
|
+
main: string;
|
|
117
|
+
600: string;
|
|
118
|
+
700: string;
|
|
119
|
+
800: string;
|
|
120
|
+
900: string;
|
|
121
|
+
};
|
|
122
|
+
export declare const success: {
|
|
123
|
+
50: string;
|
|
124
|
+
100: string;
|
|
125
|
+
200: string;
|
|
126
|
+
300: string;
|
|
127
|
+
400: string;
|
|
128
|
+
500: string;
|
|
129
|
+
600: string;
|
|
130
|
+
700: string;
|
|
131
|
+
800: string;
|
|
132
|
+
900: string;
|
|
133
|
+
};
|
|
134
|
+
export declare const warning: {
|
|
135
|
+
50: string;
|
|
136
|
+
100: string;
|
|
137
|
+
200: string;
|
|
138
|
+
300: string;
|
|
139
|
+
400: string;
|
|
140
|
+
500: string;
|
|
141
|
+
main: string;
|
|
142
|
+
600: string;
|
|
143
|
+
700: string;
|
|
144
|
+
800: string;
|
|
145
|
+
900: string;
|
|
146
|
+
};
|
|
147
|
+
export declare const getMetaThemeColor: (mode: 'light' | 'dark') => string;
|
|
148
|
+
export declare const getDesignTokens: (mode: 'light' | 'dark') => ThemeOptions;
|
|
149
|
+
export declare function getThemedComponents(): ThemeOptions;
|
|
150
|
+
export declare const brandingDarkTheme: Theme;
|
|
151
|
+
export declare const brandingLightTheme: Theme;
|
|
152
|
+
export {};
|