@mui/docs 6.0.0-alpha.11 → 6.0.0-alpha.13

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 CHANGED
@@ -1,5 +1,113 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.13
4
+
5
+ <!-- generated comparing v6.0.0-alpha.12..next -->
6
+
7
+ _Jun 27, 2024_
8
+
9
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 Added layout components for Pigment CSS integration (#42693) @siriwatknp
12
+
13
+ ### `@mui/material@6.0.0-alpha.13`
14
+
15
+ - [Autocomplete] Fix more React 18.3 key spread warnings in demos (#42639) @wbt
16
+ - [Container][Grid][Stack][Hidden] Export Pigment CSS layout components (#42693) @siriwatknp
17
+ - [Text Field] when click password visibility button, text caret position change to very front. (#42595) @appleSimple
18
+ - [Modal] migrate useSlotProps to useSLot (#42150) @sai6855
19
+
20
+ ### `@mui/styles@6.0.0-alpha.13`
21
+
22
+ - [withStyles] Expect React defaultProps warning in test (#42752) @aarongarciah
23
+
24
+ ### Docs
25
+
26
+ - Fix link in CONTRIBUTING.md (#42755) @Janpot
27
+ - Add documentation on migrating JSS's alternative, array-based syntax to syntax supported by Emotion (#42053) @cjl750
28
+ - Fix type error in virtualized table demo (#42757) @aarongarciah
29
+ - Add first batch of v6 migration (#42242) @siriwatknp
30
+ - Fix quotes on font-family dedeclaration in the Landing Page template theme (#42748) @joetats
31
+
32
+ ### Core
33
+
34
+ - [code-infra] Refactor eslint `import/no-cycle` rule (#42705) @LukasTy
35
+ - [core] Target direct version for prerelease (#42768) @siriwatknp
36
+ - [test] Remove enzyme (#42706) @aarongarciah
37
+ - [test] Remove createMount test util (#42703) @aarongarciah
38
+ - [website] Add Ale to team (#42764) @alelthomas
39
+
40
+ All contributors of this release in alphabetical order: @aarongarciah, @alelthomas, @appleSimple, @cjl750, @Janpot, @joetats, @LukasTy, @sai6855, @siriwatknp, @wbt
41
+
42
+ ## v6.0.0-alpha.12
43
+
44
+ <!-- generated comparing v6.0.0-alpha.11..next -->
45
+
46
+ _Jun 24, 2024_
47
+
48
+ A big thanks to the 17 contributors who made this release possible.
49
+
50
+ ### `@mui/material@6.0.0-alpha.12`
51
+
52
+ - Add `InitColorSchemeScript` for Next.js App Router (#42247) @siriwatknp
53
+ - [Autocomplete] Fix renderOption props type (#42689) @DiegoAndai
54
+ - [Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) @aarongarciah
55
+ - Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) @siriwatknp
56
+ - Add `DefaultPropsProvider` for Pigment CSS integration (#42638) @siriwatknp
57
+ - [Stepper] Generate class for nonLinear prop (#42620) @alexismo
58
+ - [Tab] Fix failing test (#42686) @aarongarciah
59
+ - [Tab] Deprecate iconWrapper class for icon class (#42647) @sai6855
60
+ - [TableSortLabel] Deprecate composed classes (#42281) @sai6855
61
+ - [usePagination] Update pagination `siblingsEnd` calculation logic (#42667) @Mini-ghost
62
+
63
+ ### `@mui/codemod@6.0.0-alpha.12`
64
+
65
+ - Support dynamic props styled transformation (#42683) @siriwatknp
66
+
67
+ ### `@mui/system@6.0.0-alpha.12`
68
+
69
+ - Fix issues reported by react compiler in `mui-system` package (#42637) @sai6855
70
+ - [useMediaQuery] Remove deprecated types (#42560) @aarongarciah
71
+
72
+ ### `@mui/joy@5.0.0-beta.45`
73
+
74
+ - Fix issues reported by the React Compiler (#42671) @anuujj
75
+ - [Autocomplete] Fix React spread key warning (#42741) @aarongarciah
76
+
77
+ ### `@mui/lab@6.0.0-alpha.12`
78
+
79
+ - [LoadingButton] Apply wrapping element to prevent React crash on Google page translation (#35198) @BartJanvanAssen
80
+
81
+ ### Docs
82
+
83
+ - Fix git diff format in migration to v6 (#42711) @oliviertassinari
84
+ - Use new email for sponsoring @oliviertassinari
85
+ - Fix 301 links (#42697) @alexfauquette
86
+ - Normalize the capitalization of Design Kit @oliviertassinari
87
+ - Recommend setting HTML attribute instead of DOM property for RTL (#42599) @aarongarciah
88
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) @Danielkhakbaz
89
+
90
+ ### Core
91
+
92
+ - [code-infra] Try disabling animations when taking screenshots (#42537) @Janpot
93
+ - [code-infra] Fix benchmark package (#42553) @Janpot
94
+ - [core] Replace enzyme in describeConformance (#42447) @DiegoAndai
95
+ - [docs-infra] Fix layout shift demo toolbar (#42743) @oliviertassinari
96
+ - [docs-infra] Fix visual look of in-house ad (#42735) @oliviertassinari
97
+ - [docs-infra] Add stray design polish (#42646) @danilo-leal
98
+ - [docs-infra] Fix wrong migration (#42675) @siriwatknp
99
+ - [docs-infra] Fine tune markdown elements design (#42643) @danilo-leal
100
+ - [docs-infra] Revamp the product switcher design (#42603) @danilo-leal
101
+ - [docs-infra] Allow Link component to receive the `role` attribute (#42629) @danilo-leal
102
+ - [infra] Add support donation button (#42499) @oliviertassinari
103
+ - [infra] Raise `tsconfig`/`tsc` target to `es2022` (#42645) @LukasTy
104
+ - [test] Fix tests on CI (#42670) @michaldudak
105
+ - [test] Fix issues reported by react-compiler in test packages (#42626) @sai6855
106
+ - [website] Add Armin to the team members (#42679) @arminmeh
107
+ - [website] Open Staff Engineer role for Pigment CSS (#42531) @mnajdova
108
+
109
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @alexismo, @anuujj, @arminmeh, @BartJanvanAssen, @Danielkhakbaz, @danilo-leal, @DiegoAndai, @Janpot, @LukasTy, @michaldudak, @Mini-ghost, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp
110
+
3
111
  ## v6.0.0-alpha.11
4
112
 
5
113
  <!-- generated comparing v6.0.0-alpha.10..next -->
package/Link/Link.js CHANGED
@@ -61,8 +61,6 @@ export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
61
61
  noLinkStyle,
62
62
  prefetch,
63
63
  replace,
64
- role,
65
- // Link don't have roles.
66
64
  scroll,
67
65
  shallow,
68
66
  ...other
@@ -8,8 +8,8 @@ const Root = styled('div')(({
8
8
  theme
9
9
  }) => ({
10
10
  ...lightTheme.typography.body1,
11
- lineHeight: 1.6,
12
- // Increased compared to the 1.5 default to make the docs easier to read.
11
+ lineHeight: 1.625,
12
+ // Rounds up to 26px-increased compared to the 1.5 default to make the docs easier to read.
13
13
  color: `var(--muidocs-palette-text-primary, ${lightTheme.palette.text.primary})`,
14
14
  '& :focus-visible': {
15
15
  outline: `3px solid ${alpha(lightTheme.palette.primary[500], 0.5)}`,
@@ -24,7 +24,7 @@ const Root = styled('div')(({
24
24
  // Developers like when the code is dense.
25
25
  margin: theme.spacing(2, 'auto'),
26
26
  padding: theme.spacing(2),
27
- backgroundColor: 'hsl(210, 35%, 9%)',
27
+ backgroundColor: 'hsl(210, 25%, 9%)',
28
28
  // a special, one-off, color tailored for the code blocks using MUI's branding theme blue palette as the starting point. It has a less saturaded color but still maintaining a bit of the blue tint.
29
29
  color: 'hsl(60, 30%, 96%)',
30
30
  colorScheme: 'dark',
@@ -123,6 +123,44 @@ const Root = styled('div')(({
123
123
  marginBottom: 6
124
124
  }
125
125
  },
126
+ '& a[target="_blank"]::after': {
127
+ content: '""',
128
+ maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`,
129
+ display: 'inline-flex',
130
+ width: '1em',
131
+ height: '1em',
132
+ color: 'inherit',
133
+ backgroundColor: 'currentColor',
134
+ transform: 'translate(0, 2px)',
135
+ transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)',
136
+ // bounce effect
137
+ opacity: 0.8
138
+ },
139
+ '& a[target="_blank"]:hover::after': {
140
+ opacity: 1,
141
+ transform: 'translate(1px, 0)'
142
+ },
143
+ '& a.remove-link-arrow::after': {
144
+ // Allows to remove link arrows for images
145
+ display: 'none'
146
+ },
147
+ '& .Ad-root a::after': {
148
+ // Remove link arrow for ads
149
+ display: 'none'
150
+ },
151
+ '& a': {
152
+ // Style taken from the Link component
153
+ color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
154
+ fontWeight: theme.typography.fontWeightMedium,
155
+ textDecoration: 'underline',
156
+ textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4),
157
+ '&:hover': {
158
+ textDecorationColor: 'inherit'
159
+ }
160
+ },
161
+ '& a code': {
162
+ color: darken(lightTheme.palette.primary.main, 0.2)
163
+ },
126
164
  '& h1, & h2, & h3, & h4': {
127
165
  display: 'flex',
128
166
  alignItems: 'center',
@@ -136,6 +174,8 @@ const Root = styled('div')(({
136
174
  '& .title-link-to-anchor': {
137
175
  color: 'inherit',
138
176
  textDecoration: 'none',
177
+ boxShadow: 'none',
178
+ fontWeight: 'inherit',
139
179
  position: 'relative',
140
180
  display: 'flex',
141
181
  alignItems: 'center',
@@ -147,12 +187,6 @@ const Root = styled('div')(({
147
187
  alignItems: 'center',
148
188
  visibility: 'hidden'
149
189
  },
150
- '& a:not(.title-link-to-anchor):hover': {
151
- color: 'currentColor',
152
- border: 'none',
153
- boxShadow: '0 1px 0 0 currentColor',
154
- textDecoration: 'none'
155
- },
156
190
  '& .anchor-icon, & .comment-link': {
157
191
  padding: 0,
158
192
  cursor: 'pointer',
@@ -286,44 +320,58 @@ const Root = styled('div')(({
286
320
  },
287
321
  '& .MuiCallout-root': {
288
322
  display: 'flex',
289
- gap: 12,
290
- padding: '16px',
323
+ gap: '8px',
324
+ padding: '12px',
291
325
  margin: '16px 0',
292
326
  border: '1px solid',
293
327
  color: `var(--muidocs-palette-text-secondary, ${lightTheme.palette.text.secondary})`,
294
328
  borderColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[100]})`,
295
329
  borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? lightTheme.shape.borderRadius}px)`,
296
- '& > code': {
330
+ '& .MuiCallout-content': {
331
+ minWidth: 0,
332
+ // Allows content to shrink. Useful when callout contains code block
333
+ flexGrow: 1
334
+ },
335
+ '& code': {
297
336
  height: 'fit-content',
298
337
  backgroundColor: `var(--muidocs-palette-grey-100, ${lightTheme.palette.grey[100]})`,
299
338
  borderColor: `var(--muidocs-palette-grey-300, ${lightTheme.palette.grey[300]})`
300
339
  },
301
- '& .MuiCallout-content': {
302
- minWidth: 0,
303
- // Allows content to shrink. Useful when callout contains code block
304
- flexGrow: 1,
340
+ '& p': {
341
+ marginBottom: '8px',
305
342
  '& > p:last-child, & > ul:last-child': {
306
343
  // Avoid margin on last child
307
344
  marginBottom: 0
308
345
  },
309
- '& .MuiCode-root': {
310
- '& > pre': {
311
- margin: 0,
312
- marginTop: 4
313
- }
314
- },
315
346
  '& > ul': {
316
347
  // Because of the gap left by the icon, we visually need less padding
317
348
  paddingLeft: 22
318
349
  }
319
350
  },
320
- '& > svg': {
321
- marginTop: 2,
322
- width: 20,
323
- height: 20,
324
- flexShrink: 0
351
+ '& .MuiCode-root': {
352
+ '& pre': {
353
+ margin: '4px 0 0 0',
354
+ borderRadius: '12px 12px 6px 12px',
355
+ borderColor: alpha(lightTheme.palette.primaryDark[600], 0.6),
356
+ '& code': {
357
+ backgroundColor: 'transparent'
358
+ }
359
+ }
360
+ },
361
+ '& .MuiCallout-icon-container': {
362
+ width: 26,
363
+ // to match text's line-height
364
+ height: 26,
365
+ display: 'flex',
366
+ alignItems: 'center',
367
+ justifyContent: 'center',
368
+ flexShrink: 0,
369
+ '& svg': {
370
+ width: 18,
371
+ height: 18
372
+ }
325
373
  },
326
- '& > ul, & > p': {
374
+ '& ul, & p': {
327
375
  '&:last-child': {
328
376
  margin: 0
329
377
  }
@@ -338,7 +386,7 @@ const Root = styled('div')(({
338
386
  '& strong': {
339
387
  color: `var(--muidocs-palette-error-800, ${lightTheme.palette.error[800]})`
340
388
  },
341
- '& > svg': {
389
+ '& svg': {
342
390
  fill: `var(--muidocs-palette-error-500, ${lightTheme.palette.error[600]})`
343
391
  },
344
392
  '& a': {
@@ -356,7 +404,7 @@ const Root = styled('div')(({
356
404
  '& strong': {
357
405
  color: `var(--muidocs-palette-primary-800, ${lightTheme.palette.primary[800]})`
358
406
  },
359
- '& > svg': {
407
+ '& svg': {
360
408
  fill: `var(--muidocs-palette-grey-600, ${lightTheme.palette.grey[600]})`
361
409
  }
362
410
  },
@@ -367,7 +415,7 @@ const Root = styled('div')(({
367
415
  '& strong': {
368
416
  color: `var(--muidocs-palette-success-900, ${lightTheme.palette.success[900]})`
369
417
  },
370
- '& > svg': {
418
+ '& svg': {
371
419
  fill: `var(--muidocs-palette-success-600, ${lightTheme.palette.success[600]})`
372
420
  },
373
421
  '& a': {
@@ -385,7 +433,7 @@ const Root = styled('div')(({
385
433
  '& strong': {
386
434
  color: `var(--muidocs-palette-warning-800, ${lightTheme.palette.warning[800]})`
387
435
  },
388
- '& > svg': {
436
+ '& svg': {
389
437
  fill: `var(--muidocs-palette-warning-600, ${lightTheme.palette.warning[600]})`
390
438
  },
391
439
  '& a': {
@@ -397,47 +445,6 @@ const Root = styled('div')(({
397
445
  }
398
446
  }
399
447
  },
400
- '& a[target="_blank"]::after': {
401
- content: '""',
402
- maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`,
403
- display: 'inline-flex',
404
- width: '1em',
405
- height: '1em',
406
- color: 'inherit',
407
- backgroundColor: 'currentColor',
408
- transform: 'translate(0, 2px)',
409
- transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)',
410
- // bounce effect
411
- opacity: 0.8
412
- },
413
- '& a[target="_blank"]:hover::after': {
414
- opacity: 1,
415
- transform: 'translate(1px, 0)'
416
- },
417
- '& a.remove-link-arrow::after': {
418
- // Allows to remove link arrows for images
419
- display: 'none'
420
- },
421
- '& .Ad-root a::after': {
422
- // Remove link arrow for ads
423
- display: 'none'
424
- },
425
- '& a:not(.title-link-to-anchor), & a:not(.title-link-to-anchor) code': {
426
- // Style taken from the Link component
427
- color: `var(--muidocs-palette-primary-600, ${lightTheme.palette.primary[600]})`,
428
- fontWeight: theme.typography.fontWeightMedium,
429
- textDecoration: 'underline',
430
- textDecorationColor: alpha(lightTheme.palette.primary.main, 0.4),
431
- '&:hover': {
432
- textDecorationColor: 'inherit'
433
- }
434
- },
435
- '& a code': {
436
- color: darken(lightTheme.palette.primary.main, 0.04)
437
- },
438
- '& a:not(.title-link-to-anchor) code': {
439
- color: darken(lightTheme.palette.primary.main, 0.2)
440
- },
441
448
  '& img, & video': {
442
449
  // Use !important so that inline style on <img> or <video> can't win.
443
450
  // This avoid horizontal overflows on mobile.
@@ -665,24 +672,28 @@ const Root = styled('div')(({
665
672
  '& hr': {
666
673
  backgroundColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`
667
674
  },
668
- '& h1, & h2, & h3, & h4, & h5': {
669
- color: `var(--muidocs-palette-grey-50, ${darkTheme.palette.grey[50]})`
675
+ '& a': {
676
+ color: `var(--muidocs-palette-primary-300, ${darkTheme.palette.primary[300]})`
670
677
  },
671
- '& p, & ul, & ol': {
672
- color: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`
678
+ '& a code': {
679
+ color: `var(--muidocs-palette-primary-light, ${darkTheme.palette.primary.light})`
673
680
  },
674
- '& h1, & h2, & h3, & h4': {
675
- '&:hover .anchor-icon, & .comment-link': {
681
+ '& h1, & h2, & h3, & h4, & h5': {
682
+ color: `var(--muidocs-palette-grey-50, ${darkTheme.palette.grey[50]})`,
683
+ '& .anchor-icon, & .comment-link': {
676
684
  color: `var(--muidocs-palette-primary-300, ${darkTheme.palette.primaryDark[300]})`,
677
685
  borderColor: `var(--muidocs-palette-divider, ${darkTheme.palette.divider})`,
678
686
  backgroundColor: alpha(darkTheme.palette.primaryDark[700], 0.5),
679
687
  '&:hover': {
688
+ color: `var(--muidocs-palette-primary-100, ${darkTheme.palette.primary[100]})`,
680
689
  borderColor: `var(--muidocs-palette-primary-900, ${darkTheme.palette.primary[900]})`,
681
- backgroundColor: alpha(darkTheme.palette.primary[900], 0.6),
682
- color: `var(--muidocs-palette-primary-100, ${darkTheme.palette.primary[100]})`
690
+ backgroundColor: alpha(darkTheme.palette.primary[900], 0.6)
683
691
  }
684
692
  }
685
693
  },
694
+ '& p, & ul, & ol': {
695
+ color: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`
696
+ },
686
697
  '& h1 code, & h2 code, & h3 code': {
687
698
  color: `var(--muidocs-palette-grey-100, ${darkTheme.palette.grey[100]})`
688
699
  },
@@ -716,8 +727,7 @@ const Root = styled('div')(({
716
727
  },
717
728
  '& .MuiCallout-root': {
718
729
  borderColor: `var(--muidocs-palette-primaryDark-700, ${darkTheme.palette.primaryDark[700]})`,
719
- '& > code': {
720
- height: 'fit-content',
730
+ '& code': {
721
731
  backgroundColor: `var(--muidocs-palette-primaryDark-600, ${darkTheme.palette.primaryDark[600]})`,
722
732
  borderColor: `var(--muidocs-palette-primaryDark-500, ${darkTheme.palette.primaryDark[500]})`
723
733
  },
@@ -728,7 +738,7 @@ const Root = styled('div')(({
728
738
  '& strong': {
729
739
  color: `var(--muidocs-palette-error-300, ${darkTheme.palette.error[300]})`
730
740
  },
731
- '& > svg': {
741
+ '& svg': {
732
742
  fill: `var(--muidocs-palette-error-500, ${darkTheme.palette.error[500]})`
733
743
  },
734
744
  '& a': {
@@ -742,7 +752,7 @@ const Root = styled('div')(({
742
752
  '& strong': {
743
753
  color: `var(--muidocs-palette-primary-200, ${darkTheme.palette.primary[200]})`
744
754
  },
745
- '& > svg': {
755
+ '& svg': {
746
756
  fill: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`
747
757
  }
748
758
  },
@@ -753,7 +763,7 @@ const Root = styled('div')(({
753
763
  '& strong': {
754
764
  color: `var(--muidocs-palette-success-200, ${darkTheme.palette.success[200]})`
755
765
  },
756
- '& > svg': {
766
+ '& svg': {
757
767
  fill: `var(--muidocs-palette-success-500, ${darkTheme.palette.success[500]})`
758
768
  },
759
769
  '& a': {
@@ -767,7 +777,7 @@ const Root = styled('div')(({
767
777
  '& strong': {
768
778
  color: `var(--muidocs-palette-warning-200, ${darkTheme.palette.warning[200]})`
769
779
  },
770
- '& > svg': {
780
+ '& svg': {
771
781
  fill: `var(--muidocs-palette-warning-400, ${darkTheme.palette.warning[400]})`
772
782
  },
773
783
  '& a': {
@@ -775,12 +785,6 @@ const Root = styled('div')(({
775
785
  }
776
786
  }
777
787
  },
778
- '& a:not(.title-link-to-anchor), & a:not(.title-link-to-anchor) code': {
779
- color: `var(--muidocs-palette-primary-300, ${darkTheme.palette.primary[300]})`
780
- },
781
- '& a:not(.title-link-to-anchor) code': {
782
- color: `var(--muidocs-palette-primary-light, ${darkTheme.palette.primary.light})`
783
- },
784
788
  '& kbd.key': {
785
789
  color: `var(--muidocs-palette-text-primary, ${darkTheme.palette.text.primary})`,
786
790
  backgroundColor: `var(--muidocs-palette-primaryDark-800, ${darkTheme.palette.primaryDark[800]})`,
@@ -130,7 +130,7 @@ export const getDesignTokens = mode => ({
130
130
  tertiary: grey[700]
131
131
  }),
132
132
  ...(mode === 'dark' && {
133
- primary: '#fff',
133
+ primary: 'hsl(0, 0%, 100%)',
134
134
  secondary: grey[400],
135
135
  tertiary: grey[500]
136
136
  })
@@ -264,10 +264,10 @@ export const getDesignTokens = mode => ({
264
264
  * ...theme.vars ? {
265
265
  * color: theme.vars.palette.primary.main,
266
266
  * [theme.getColorScheme('dark')]: {
267
- * color: '#fff',
267
+ * color: 'hsl(0, 0%, 100%)',
268
268
  * }
269
269
  * } : {
270
- * color: theme.palette.mode === 'dark' ? '#fff' : theme.palette.primary.main,
270
+ * color: theme.palette.mode === 'dark' ? 'hsl(0, 0%, 100%)' : theme.palette.primary.main,
271
271
  * }
272
272
  * }
273
273
  *
@@ -275,7 +275,7 @@ export const getDesignTokens = mode => ({
275
275
  * {
276
276
  * color: (theme.vars || theme).palette.primary.main,
277
277
  * ...theme.applyDarkStyles({
278
- * color: '#fff',
278
+ * color: 'hsl(0, 0%, 100%)',
279
279
  * }),
280
280
  * }
281
281
  *
@@ -491,7 +491,7 @@ export function getThemedComponents() {
491
491
  color: (theme.vars || theme).palette.text.primary,
492
492
  backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
493
493
  borderColor: (theme.vars || theme).palette.primaryDark[100],
494
- boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
494
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
495
495
  '&:hover': {
496
496
  backgroundColor: (theme.vars || theme).palette.grey[50]
497
497
  },
@@ -527,7 +527,7 @@ export function getThemedComponents() {
527
527
  })
528
528
  }),
529
529
  ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
530
- color: '#fff',
530
+ color: 'hsl(0, 0%, 100%)',
531
531
  textShadow: `0 1px 1px ${alpha(theme.palette.common.black, 0.6)}`,
532
532
  backgroundColor: (theme.vars || theme).palette.primary[500],
533
533
  backgroundImage: `linear-gradient(180deg, ${alpha(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
@@ -732,7 +732,7 @@ export function getThemedComponents() {
732
732
  color: (theme.vars || theme).palette.primary.main,
733
733
  backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
734
734
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
735
- boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
735
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
736
736
  '&:hover': {
737
737
  borderColor: (theme.vars || theme).palette.grey[300],
738
738
  background: (theme.vars || theme).palette.grey[50]
@@ -757,7 +757,7 @@ export function getThemedComponents() {
757
757
  color: (theme.vars || theme).palette.text.secondary,
758
758
  backgroundColor: alpha(theme.palette.primaryDark[50], 0.1),
759
759
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
760
- boxShadow: `#FFF 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
760
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${alpha(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
761
761
  '&:hover': {
762
762
  color: (theme.vars || theme).palette.text.primary,
763
763
  borderColor: (theme.vars || theme).palette.grey[300],
@@ -858,7 +858,7 @@ export function getThemedComponents() {
858
858
  }) => ({
859
859
  display: 'inline-flex',
860
860
  alignItems: 'center',
861
- fontWeight: theme.typography.fontWeightSemiBold,
861
+ fontWeight: theme.typography.fontWeightMedium,
862
862
  '&.MuiTypography-body1 > svg': {
863
863
  marginTop: 2
864
864
  },
@@ -957,7 +957,7 @@ export function getThemedComponents() {
957
957
  backgroundColor: (theme.vars || theme).palette.primary[100]
958
958
  },
959
959
  ...theme.applyDarkStyles({
960
- color: '#fff',
960
+ color: 'hsl(0, 0%, 100%)',
961
961
  backgroundColor: alpha(theme.palette.primaryDark[500], 0.8),
962
962
  '&:hover': {
963
963
  backgroundColor: (theme.vars || theme).palette.primaryDark[600]
@@ -1009,7 +1009,7 @@ export function getThemedComponents() {
1009
1009
  color: (theme.vars || theme).palette.warning[900],
1010
1010
  backgroundColor: (theme.vars || theme).palette.warning[100],
1011
1011
  ...theme.applyDarkStyles({
1012
- color: '#fff',
1012
+ color: 'hsl(0, 0%, 100%)',
1013
1013
  backgroundColor: (theme.vars || theme).palette.warning[900]
1014
1014
  })
1015
1015
  }),
@@ -1017,7 +1017,7 @@ export function getThemedComponents() {
1017
1017
  color: (theme.vars || theme).palette.success[900],
1018
1018
  backgroundColor: (theme.vars || theme).palette.success[100],
1019
1019
  ...theme.applyDarkStyles({
1020
- color: '#fff',
1020
+ color: 'hsl(0, 0%, 100%)',
1021
1021
  backgroundColor: (theme.vars || theme).palette.success[900]
1022
1022
  })
1023
1023
  })
@@ -1062,7 +1062,7 @@ export function getThemedComponents() {
1062
1062
  backgroundColor: alpha(theme.palette.primaryDark[700], 0.4)
1063
1063
  },
1064
1064
  '&.Mui-selected': {
1065
- color: '#fff',
1065
+ color: 'hsl(0, 0%, 100%)',
1066
1066
  borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1067
1067
  backgroundColor: (theme.vars || theme).palette.primaryDark[700],
1068
1068
  '&:hover': {
@@ -1094,7 +1094,7 @@ export function getThemedComponents() {
1094
1094
  ownerState
1095
1095
  }) => [{
1096
1096
  backgroundImage: 'none',
1097
- backgroundColor: '#fff',
1097
+ backgroundColor: 'hsl(0, 0%, 100%)',
1098
1098
  '&[href]': {
1099
1099
  textDecorationLine: 'none'
1100
1100
  },
@@ -1106,7 +1106,7 @@ export function getThemedComponents() {
1106
1106
  borderColor: (theme.vars || theme).palette.grey[100],
1107
1107
  '&[href]': {
1108
1108
  textDecorationLine: 'none',
1109
- boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1109
+ boxShadow: `hsl(0, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.primary[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1110
1110
  '&:hover': {
1111
1111
  borderColor: (theme.vars || theme).palette.primary[200],
1112
1112
  boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
@@ -1129,8 +1129,7 @@ export function getThemedComponents() {
1129
1129
  borderColor: (theme.vars || theme).palette.primaryDark[700],
1130
1130
  backgroundColor: alpha(theme.palette.primaryDark[800], 0.6),
1131
1131
  '&[href]': {
1132
- textDecorationLine: 'none',
1133
- boxShadow: `${alpha(theme.palette.primaryDark[700], 0.4)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
1132
+ boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
1134
1133
  '&:hover': {
1135
1134
  borderColor: alpha(theme.palette.primary[600], 0.5),
1136
1135
  boxShadow: `0px 2px 8px ${alpha(theme.palette.primary[900], 0.6)}`
@@ -1168,7 +1167,7 @@ export function getThemedComponents() {
1168
1167
  root: ({
1169
1168
  theme
1170
1169
  }) => ({
1171
- backgroundColor: '#fff',
1170
+ backgroundColor: 'hsl(0, 0%, 100%)',
1172
1171
  ...theme.applyDarkStyles({
1173
1172
  backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1174
1173
  })
@@ -1239,7 +1238,7 @@ export function getThemedComponents() {
1239
1238
  '& .MuiSwitch-switchBase': {
1240
1239
  '&.Mui-checked': {
1241
1240
  transform: 'translateX(11px)',
1242
- color: '#fff'
1241
+ color: 'hsl(0, 0%, 100%)'
1243
1242
  }
1244
1243
  }
1245
1244
  },
@@ -1247,7 +1246,7 @@ export function getThemedComponents() {
1247
1246
  height: 20,
1248
1247
  width: 20,
1249
1248
  padding: 0,
1250
- color: '#fff',
1249
+ color: 'hsl(0, 0%, 100%)',
1251
1250
  '&.Mui-checked + .MuiSwitch-track': {
1252
1251
  opacity: 1
1253
1252
  }
@@ -1275,7 +1274,7 @@ export function getThemedComponents() {
1275
1274
  theme
1276
1275
  }) => ({
1277
1276
  '& .MuiSnackbarContent-root': {
1278
- backgroundColor: '#FFF',
1277
+ backgroundColor: 'hsl(0, 0%, 100%)',
1279
1278
  color: (theme.vars || theme).palette.text.primary,
1280
1279
  fontWeight: theme.typography.fontWeightMedium,
1281
1280
  border: `1px solid ${(theme.vars || theme).palette.divider}`,
package/node/Link/Link.js CHANGED
@@ -69,8 +69,6 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef(function Link(props, r
69
69
  noLinkStyle,
70
70
  prefetch,
71
71
  replace,
72
- role,
73
- // Link don't have roles.
74
72
  scroll,
75
73
  shallow,
76
74
  ...other