@mui/docs 6.0.0-alpha.10 → 6.0.0-alpha.12

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.
@@ -140,7 +140,7 @@ const getDesignTokens = mode => ({
140
140
  tertiary: grey[700]
141
141
  }),
142
142
  ...(mode === 'dark' && {
143
- primary: '#fff',
143
+ primary: 'hsl(0, 0%, 100%)',
144
144
  secondary: grey[400],
145
145
  tertiary: grey[500]
146
146
  })
@@ -274,10 +274,10 @@ const getDesignTokens = mode => ({
274
274
  * ...theme.vars ? {
275
275
  * color: theme.vars.palette.primary.main,
276
276
  * [theme.getColorScheme('dark')]: {
277
- * color: '#fff',
277
+ * color: 'hsl(0, 0%, 100%)',
278
278
  * }
279
279
  * } : {
280
- * color: theme.palette.mode === 'dark' ? '#fff' : theme.palette.primary.main,
280
+ * color: theme.palette.mode === 'dark' ? 'hsl(0, 0%, 100%)' : theme.palette.primary.main,
281
281
  * }
282
282
  * }
283
283
  *
@@ -285,7 +285,7 @@ const getDesignTokens = mode => ({
285
285
  * {
286
286
  * color: (theme.vars || theme).palette.primary.main,
287
287
  * ...theme.applyDarkStyles({
288
- * color: '#fff',
288
+ * color: 'hsl(0, 0%, 100%)',
289
289
  * }),
290
290
  * }
291
291
  *
@@ -502,7 +502,7 @@ function getThemedComponents() {
502
502
  color: (theme.vars || theme).palette.text.primary,
503
503
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
504
504
  borderColor: (theme.vars || theme).palette.primaryDark[100],
505
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
505
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
506
506
  '&:hover': {
507
507
  backgroundColor: (theme.vars || theme).palette.grey[50]
508
508
  },
@@ -538,7 +538,7 @@ function getThemedComponents() {
538
538
  })
539
539
  }),
540
540
  ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
541
- color: '#fff',
541
+ color: 'hsl(0, 0%, 100%)',
542
542
  textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
543
543
  backgroundColor: (theme.vars || theme).palette.primary[500],
544
544
  backgroundImage: `linear-gradient(180deg, ${(0, _styles.alpha)(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
@@ -743,7 +743,7 @@ function getThemedComponents() {
743
743
  color: (theme.vars || theme).palette.primary.main,
744
744
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
745
745
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
746
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
746
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
747
747
  '&:hover': {
748
748
  borderColor: (theme.vars || theme).palette.grey[300],
749
749
  background: (theme.vars || theme).palette.grey[50]
@@ -768,7 +768,7 @@ function getThemedComponents() {
768
768
  color: (theme.vars || theme).palette.text.secondary,
769
769
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
770
770
  border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
771
- boxShadow: `#FFF 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
771
+ boxShadow: `hsl(0, 0%, 100%) 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
772
772
  '&:hover': {
773
773
  color: (theme.vars || theme).palette.text.primary,
774
774
  borderColor: (theme.vars || theme).palette.grey[300],
@@ -869,7 +869,7 @@ function getThemedComponents() {
869
869
  }) => ({
870
870
  display: 'inline-flex',
871
871
  alignItems: 'center',
872
- fontWeight: theme.typography.fontWeightSemiBold,
872
+ fontWeight: theme.typography.fontWeightMedium,
873
873
  '&.MuiTypography-body1 > svg': {
874
874
  marginTop: 2
875
875
  },
@@ -968,7 +968,7 @@ function getThemedComponents() {
968
968
  backgroundColor: (theme.vars || theme).palette.primary[100]
969
969
  },
970
970
  ...theme.applyDarkStyles({
971
- color: '#fff',
971
+ color: 'hsl(0, 0%, 100%)',
972
972
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.8),
973
973
  '&:hover': {
974
974
  backgroundColor: (theme.vars || theme).palette.primaryDark[600]
@@ -1020,7 +1020,7 @@ function getThemedComponents() {
1020
1020
  color: (theme.vars || theme).palette.warning[900],
1021
1021
  backgroundColor: (theme.vars || theme).palette.warning[100],
1022
1022
  ...theme.applyDarkStyles({
1023
- color: '#fff',
1023
+ color: 'hsl(0, 0%, 100%)',
1024
1024
  backgroundColor: (theme.vars || theme).palette.warning[900]
1025
1025
  })
1026
1026
  }),
@@ -1028,7 +1028,7 @@ function getThemedComponents() {
1028
1028
  color: (theme.vars || theme).palette.success[900],
1029
1029
  backgroundColor: (theme.vars || theme).palette.success[100],
1030
1030
  ...theme.applyDarkStyles({
1031
- color: '#fff',
1031
+ color: 'hsl(0, 0%, 100%)',
1032
1032
  backgroundColor: (theme.vars || theme).palette.success[900]
1033
1033
  })
1034
1034
  })
@@ -1073,7 +1073,7 @@ function getThemedComponents() {
1073
1073
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)
1074
1074
  },
1075
1075
  '&.Mui-selected': {
1076
- color: '#fff',
1076
+ color: 'hsl(0, 0%, 100%)',
1077
1077
  borderColor: `${(theme.vars || theme).palette.primary[700]} !important`,
1078
1078
  backgroundColor: (theme.vars || theme).palette.primaryDark[700],
1079
1079
  '&:hover': {
@@ -1105,7 +1105,7 @@ function getThemedComponents() {
1105
1105
  ownerState
1106
1106
  }) => [{
1107
1107
  backgroundImage: 'none',
1108
- backgroundColor: '#fff',
1108
+ backgroundColor: 'hsl(0, 0%, 100%)',
1109
1109
  '&[href]': {
1110
1110
  textDecorationLine: 'none'
1111
1111
  },
@@ -1117,7 +1117,7 @@ function getThemedComponents() {
1117
1117
  borderColor: (theme.vars || theme).palette.grey[100],
1118
1118
  '&[href]': {
1119
1119
  textDecorationLine: 'none',
1120
- boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1120
+ boxShadow: `hsl(0, 0%, 100%) 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.3)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
1121
1121
  '&:hover': {
1122
1122
  borderColor: (theme.vars || theme).palette.primary[200],
1123
1123
  boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
@@ -1140,8 +1140,7 @@ function getThemedComponents() {
1140
1140
  borderColor: (theme.vars || theme).palette.primaryDark[700],
1141
1141
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[800], 0.6),
1142
1142
  '&[href]': {
1143
- textDecorationLine: 'none',
1144
- boxShadow: `${(0, _styles.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`,
1143
+ boxShadow: `${(0, _styles.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`,
1145
1144
  '&:hover': {
1146
1145
  borderColor: (0, _styles.alpha)(theme.palette.primary[600], 0.5),
1147
1146
  boxShadow: `0px 2px 8px ${(0, _styles.alpha)(theme.palette.primary[900], 0.6)}`
@@ -1179,7 +1178,7 @@ function getThemedComponents() {
1179
1178
  root: ({
1180
1179
  theme
1181
1180
  }) => ({
1182
- backgroundColor: '#fff',
1181
+ backgroundColor: 'hsl(0, 0%, 100%)',
1183
1182
  ...theme.applyDarkStyles({
1184
1183
  backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1185
1184
  })
@@ -1250,7 +1249,7 @@ function getThemedComponents() {
1250
1249
  '& .MuiSwitch-switchBase': {
1251
1250
  '&.Mui-checked': {
1252
1251
  transform: 'translateX(11px)',
1253
- color: '#fff'
1252
+ color: 'hsl(0, 0%, 100%)'
1254
1253
  }
1255
1254
  }
1256
1255
  },
@@ -1258,7 +1257,7 @@ function getThemedComponents() {
1258
1257
  height: 20,
1259
1258
  width: 20,
1260
1259
  padding: 0,
1261
- color: '#fff',
1260
+ color: 'hsl(0, 0%, 100%)',
1262
1261
  '&.Mui-checked + .MuiSwitch-track': {
1263
1262
  opacity: 1
1264
1263
  }
@@ -1286,7 +1285,7 @@ function getThemedComponents() {
1286
1285
  theme
1287
1286
  }) => ({
1288
1287
  '& .MuiSnackbarContent-root': {
1289
- backgroundColor: '#FFF',
1288
+ backgroundColor: 'hsl(0, 0%, 100%)',
1290
1289
  color: (theme.vars || theme).palette.text.primary,
1291
1290
  fontWeight: theme.typography.fontWeightMedium,
1292
1291
  border: `1px solid ${(theme.vars || theme).palette.divider}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "6.0.0-alpha.10",
3
+ "version": "6.0.0-alpha.12",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.24.6",
26
+ "@babel/runtime": "^7.24.7",
27
27
  "clipboard-copy": "^4.0.1",
28
28
  "clsx": "^2.1.1",
29
29
  "nprogress": "^0.2.0",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/internal-markdown": "^1.0.4"
31
+ "@mui/internal-markdown": "^1.0.6"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/base": "*",