@mui/docs 6.0.0-dev.240424162023-9968b4889d → 6.0.0

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.
Files changed (125) hide show
  1. package/Ad/Ad.d.ts +6 -0
  2. package/Ad/Ad.js +228 -0
  3. package/Ad/AdCarbon.d.ts +3 -0
  4. package/Ad/AdCarbon.js +120 -0
  5. package/Ad/AdDisplay.d.ts +16 -0
  6. package/Ad/AdDisplay.js +89 -0
  7. package/Ad/AdGuest.d.ts +10 -0
  8. package/Ad/AdGuest.js +29 -0
  9. package/Ad/AdInHouse.d.ts +5 -0
  10. package/Ad/AdInHouse.js +15 -0
  11. package/Ad/AdManager.d.ts +16 -0
  12. package/Ad/AdManager.js +36 -0
  13. package/Ad/AdProvider.d.ts +15 -0
  14. package/Ad/AdProvider.js +24 -0
  15. package/Ad/ad.styles.d.ts +4327 -0
  16. package/Ad/ad.styles.js +89 -0
  17. package/Ad/index.d.ts +5 -0
  18. package/Ad/index.js +7 -0
  19. package/Ad/package.json +6 -0
  20. package/CHANGELOG.md +1367 -22
  21. package/CodeCopy/CodeCopy.js +1 -1
  22. package/CodeCopy/CodeCopyButton.js +11 -20
  23. package/CodeCopy/index.js +3 -3
  24. package/CodeCopy/useClipboardCopy.js +1 -1
  25. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  26. package/ComponentLinkHeader/ComponentLinkHeader.js +197 -0
  27. package/ComponentLinkHeader/index.d.ts +2 -0
  28. package/ComponentLinkHeader/index.js +2 -0
  29. package/ComponentLinkHeader/package.json +6 -0
  30. package/DocsProvider/DocsProvider.d.ts +3 -1
  31. package/DocsProvider/DocsProvider.js +10 -5
  32. package/DocsProvider/index.js +1 -1
  33. package/HighlightedCode/HighlightedCode.d.ts +3 -1
  34. package/HighlightedCode/HighlightedCode.js +50 -24
  35. package/HighlightedCode/index.js +1 -1
  36. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +29 -0
  37. package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +355 -0
  38. package/HighlightedCodeWithTabs/index.d.ts +2 -0
  39. package/HighlightedCodeWithTabs/index.js +2 -0
  40. package/HighlightedCodeWithTabs/package.json +6 -0
  41. package/InfoCard/InfoCard.d.ts +0 -1
  42. package/InfoCard/InfoCard.js +46 -45
  43. package/InfoCard/index.js +1 -1
  44. package/Link/Link.js +41 -41
  45. package/Link/index.js +1 -1
  46. package/MarkdownElement/MarkdownElement.d.ts +1 -0
  47. package/MarkdownElement/MarkdownElement.js +187 -165
  48. package/MarkdownElement/index.js +1 -1
  49. package/NProgressBar/NProgressBar.js +6 -7
  50. package/NProgressBar/index.js +1 -1
  51. package/README.md +2 -2
  52. package/SectionTitle/SectionTitle.d.ts +7 -0
  53. package/SectionTitle/SectionTitle.js +30 -0
  54. package/SectionTitle/index.d.ts +1 -0
  55. package/SectionTitle/index.js +1 -0
  56. package/SectionTitle/package.json +6 -0
  57. package/branding/BrandingProvider.d.ts +1 -1
  58. package/branding/BrandingProvider.js +1 -1
  59. package/branding/brandingTheme.d.ts +2 -2
  60. package/branding/brandingTheme.js +657 -369
  61. package/branding/index.js +2 -2
  62. package/i18n/i18n.d.ts +2 -1
  63. package/i18n/i18n.js +19 -9
  64. package/i18n/index.js +1 -1
  65. package/node/Ad/Ad.js +238 -0
  66. package/node/Ad/AdCarbon.js +130 -0
  67. package/node/Ad/AdDisplay.js +97 -0
  68. package/node/Ad/AdGuest.js +37 -0
  69. package/node/Ad/AdInHouse.js +24 -0
  70. package/node/Ad/AdManager.js +46 -0
  71. package/node/Ad/AdProvider.js +33 -0
  72. package/node/Ad/ad.styles.js +97 -0
  73. package/node/Ad/index.js +63 -0
  74. package/node/CodeCopy/CodeCopy.js +10 -16
  75. package/node/CodeCopy/CodeCopyButton.js +10 -19
  76. package/node/CodeCopy/useClipboardCopy.js +1 -1
  77. package/node/ComponentLinkHeader/ComponentLinkHeader.js +206 -0
  78. package/node/ComponentLinkHeader/index.js +24 -0
  79. package/node/DocsProvider/DocsProvider.js +9 -4
  80. package/node/HighlightedCode/HighlightedCode.js +48 -22
  81. package/node/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +365 -0
  82. package/node/HighlightedCodeWithTabs/index.js +24 -0
  83. package/node/InfoCard/InfoCard.js +45 -44
  84. package/node/Link/Link.js +43 -42
  85. package/node/MarkdownElement/MarkdownElement.js +642 -623
  86. package/node/NProgressBar/NProgressBar.js +6 -7
  87. package/node/SectionTitle/SectionTitle.js +38 -0
  88. package/node/SectionTitle/index.js +16 -0
  89. package/node/branding/brandingTheme.js +657 -369
  90. package/node/i18n/i18n.js +18 -8
  91. package/node/svgIcons/AdobeXDIcon.js +22 -0
  92. package/node/svgIcons/BundleSizeIcon.js +22 -0
  93. package/node/svgIcons/FigmaIcon.js +31 -0
  94. package/node/svgIcons/FileDownload.js +3 -3
  95. package/node/svgIcons/JavaScript.js +3 -3
  96. package/node/svgIcons/MaterialDesignIcon.js +27 -0
  97. package/node/svgIcons/SketchIcon.js +36 -0
  98. package/node/svgIcons/TypeScript.js +3 -3
  99. package/node/svgIcons/W3CIcon.js +24 -0
  100. package/node/translations/translations.json +9 -4
  101. package/node/utils/loadScript.js +15 -0
  102. package/package.json +12 -10
  103. package/svgIcons/AdobeXDIcon.d.ts +4 -0
  104. package/svgIcons/AdobeXDIcon.js +14 -0
  105. package/svgIcons/BundleSizeIcon.d.ts +4 -0
  106. package/svgIcons/BundleSizeIcon.js +14 -0
  107. package/svgIcons/FigmaIcon.d.ts +4 -0
  108. package/svgIcons/FigmaIcon.js +23 -0
  109. package/svgIcons/FileDownload.d.ts +7 -0
  110. package/svgIcons/FileDownload.js +3 -3
  111. package/svgIcons/JavaScript.d.ts +7 -0
  112. package/svgIcons/JavaScript.js +3 -3
  113. package/svgIcons/MaterialDesignIcon.d.ts +4 -0
  114. package/svgIcons/MaterialDesignIcon.js +19 -0
  115. package/svgIcons/SketchIcon.d.ts +4 -0
  116. package/svgIcons/SketchIcon.js +28 -0
  117. package/svgIcons/TypeScript.d.ts +7 -0
  118. package/svgIcons/TypeScript.js +3 -3
  119. package/svgIcons/W3CIcon.d.ts +4 -0
  120. package/svgIcons/W3CIcon.js +16 -0
  121. package/translations/index.js +1 -1
  122. package/translations/translations.json +9 -4
  123. package/tsconfig.build.tsbuildinfo +1 -1
  124. package/utils/loadScript.d.ts +1 -0
  125. package/utils/loadScript.js +9 -0
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.getMetaThemeColor = exports.getDesignTokens = exports.error = exports.brandingLightTheme = exports.brandingDarkTheme = exports.blueDark = exports.blue = void 0;
8
8
  exports.getThemedComponents = getThemedComponents;
9
9
  exports.warning = exports.success = exports.grey = void 0;
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
10
  var _ArrowDropDownRounded = _interopRequireDefault(require("@mui/icons-material/ArrowDropDownRounded"));
12
11
  var _styles = require("@mui/material/styles");
13
12
  // TODO: enable this once types conflict is fixed
@@ -104,57 +103,75 @@ const getMetaThemeColor = mode => {
104
103
  };
105
104
  exports.getMetaThemeColor = getMetaThemeColor;
106
105
  const getDesignTokens = mode => ({
107
- palette: (0, _extends2.default)({
108
- primary: (0, _extends2.default)({}, blue, mode === 'dark' && {
109
- main: blue[400]
110
- }),
111
- secondary: (0, _extends2.default)({}, grey, mode === 'light' && {
112
- main: blueDark[100],
113
- contrastText: blueDark[600]
114
- }, mode === 'dark' && {
115
- main: blueDark[700],
116
- contrastText: blueDark[600]
117
- }),
106
+ palette: {
107
+ primary: {
108
+ ...blue,
109
+ ...(mode === 'dark' && {
110
+ main: blue[400]
111
+ })
112
+ },
113
+ secondary: {
114
+ ...grey,
115
+ ...(mode === 'light' && {
116
+ main: blueDark[100],
117
+ contrastText: blueDark[600]
118
+ }),
119
+ ...(mode === 'dark' && {
120
+ main: blueDark[700],
121
+ contrastText: blueDark[600]
122
+ })
123
+ },
118
124
  divider: mode === 'dark' ? (0, _styles.alpha)(blueDark[500], 0.3) : grey[100],
119
125
  primaryDark: blueDark,
120
- mode
121
- }, mode === 'dark' && {
122
- background: {
123
- default: blueDark[900],
124
- paper: (0, _styles.alpha)(blueDark[800], 0.8)
125
- }
126
- }, {
126
+ mode,
127
+ ...(mode === 'dark' && {
128
+ background: {
129
+ default: blueDark[900],
130
+ paper: (0, _styles.alpha)(blueDark[800], 0.8)
131
+ }
132
+ }),
127
133
  common: {
128
134
  black: 'hsl(200, 10%, 4%)'
129
135
  },
130
- text: (0, _extends2.default)({}, mode === 'light' && {
131
- primary: grey[900],
132
- secondary: grey[800],
133
- tertiary: grey[700]
134
- }, mode === 'dark' && {
135
- primary: '#fff',
136
- secondary: grey[400],
137
- tertiary: grey[500]
138
- }),
139
- grey: (0, _extends2.default)({}, grey, mode === 'light' && {
140
- main: grey[100],
141
- contrastText: grey[600]
142
- }, mode === 'dark' && {
143
- main: grey[700],
144
- contrastText: grey[600]
145
- }),
136
+ text: {
137
+ ...(mode === 'light' && {
138
+ primary: grey[900],
139
+ secondary: grey[800],
140
+ tertiary: grey[700]
141
+ }),
142
+ ...(mode === 'dark' && {
143
+ primary: '#fff',
144
+ secondary: grey[400],
145
+ tertiary: grey[500]
146
+ })
147
+ },
148
+ grey: {
149
+ ...grey,
150
+ ...(mode === 'light' && {
151
+ main: grey[100],
152
+ contrastText: grey[600]
153
+ }),
154
+ ...(mode === 'dark' && {
155
+ main: grey[700],
156
+ contrastText: grey[600]
157
+ })
158
+ },
146
159
  error,
147
- success: (0, _extends2.default)({}, success, mode === 'dark' && {
148
- main: success[600]
149
- }, mode === 'light' && {
150
- main: success[700]
151
- }),
160
+ success: {
161
+ ...success,
162
+ ...(mode === 'dark' && {
163
+ main: success[600]
164
+ }),
165
+ ...(mode === 'light' && {
166
+ main: success[700]
167
+ })
168
+ },
152
169
  warning,
153
170
  gradients: {
154
171
  radioSubtle: mode === 'dark' ? `radial-gradient(100% 100% at 100% 100%, transparent 0, ${(0, _styles.alpha)(blue[900], 0.3)} 300%)` : `radial-gradient(100% 90% at 50% 0, transparent 0, ${(0, _styles.alpha)(blue[100], 0.3)} 300%)`,
155
172
  linearSubtle: mode === 'dark' ? `linear-gradient(0deg, ${(0, _styles.alpha)(blue[900], 0.1)}, ${(0, _styles.alpha)(blueDark[900], 0.5)})` : `linear-gradient(0deg, ${(0, _styles.alpha)(blue[50], 0.4)}, ${(0, _styles.alpha)(grey[50], 0.1)})`
156
173
  }
157
- }),
174
+ },
158
175
  shape: {
159
176
  borderRadius: 12
160
177
  },
@@ -176,15 +193,16 @@ const getDesignTokens = mode => ({
176
193
  fontFamilySystem: systemFont.join(','),
177
194
  fontWeightSemiBold: 600,
178
195
  fontWeightExtraBold: 800,
179
- h1: (0, _extends2.default)({
196
+ h1: {
180
197
  fontFamily: ['"General Sans"', ...systemFont].join(','),
181
198
  fontSize: 'clamp(2.5rem, 1.125rem + 3.5vw, 3.5em)',
182
199
  fontWeight: 600,
183
200
  lineHeight: 78 / 70,
184
- letterSpacing: -0.2
185
- }, mode === 'light' && {
186
- color: blueDark[900]
187
- }),
201
+ letterSpacing: -0.2,
202
+ ...(mode === 'light' && {
203
+ color: blueDark[900]
204
+ })
205
+ },
188
206
  h2: {
189
207
  fontFamily: ['"General Sans"', ...systemFont].join(','),
190
208
  fontSize: 'clamp(1.5rem, 0.9643rem + 1.4286vw, 2.25rem)',
@@ -228,20 +246,17 @@ const getDesignTokens = mode => ({
228
246
  },
229
247
  body1: {
230
248
  fontSize: defaultTheme.typography.pxToRem(16),
231
- // 16px
232
249
  lineHeight: 24 / 16,
233
250
  letterSpacing: 0
234
251
  },
235
252
  body2: {
236
253
  fontSize: defaultTheme.typography.pxToRem(14),
237
- // 14px
238
254
  lineHeight: 21 / 14,
239
255
  letterSpacing: 0
240
256
  },
241
257
  caption: {
242
258
  display: 'inline-block',
243
259
  fontSize: defaultTheme.typography.pxToRem(12),
244
- // 12px
245
260
  lineHeight: 18 / 12,
246
261
  letterSpacing: 0,
247
262
  fontWeight: 700
@@ -314,29 +329,95 @@ function getThemedComponents() {
314
329
  MuiAlert: {
315
330
  styleOverrides: {
316
331
  root: {
317
- padding: '12px 16px'
332
+ padding: '16px',
333
+ gap: '12px',
334
+ fontSize: '1rem',
335
+ '& * ul': {
336
+ paddingLeft: '24px !important',
337
+ marginBottom: '0 !important'
338
+ },
339
+ // !important is used here to override the anchor tag color coming from MarkdownElement
340
+ '& .MuiAlert-icon': {
341
+ margin: 0,
342
+ marginTop: '2px',
343
+ padding: 0
344
+ },
345
+ '& .MuiAlert-message': {
346
+ padding: 0
347
+ }
348
+ },
349
+ icon: {
350
+ paddingTop: 10,
351
+ paddingBottom: 0
318
352
  },
319
353
  standardWarning: ({
320
354
  theme
321
- }) => [{
355
+ }) => [
356
+ // same styles from the MarkdownElement callout
357
+ {
322
358
  backgroundColor: (0, _styles.alpha)(theme.palette.warning[50], 0.5),
323
359
  color: (theme.vars || theme).palette.grey[900],
324
360
  border: '1px solid',
325
- borderColor: (0, _styles.alpha)(theme.palette.warning[600], 0.3),
361
+ borderColor: (0, _styles.alpha)(theme.palette.warning[700], 0.15),
326
362
  '& .MuiAlert-icon': {
327
- color: (theme.vars || theme).palette.warning[700]
363
+ color: (theme.vars || theme).palette.warning[600]
364
+ },
365
+ '& * a': {
366
+ // !important is used here to override the anchor tag color coming from MarkdownElement
367
+ color: `${(theme.vars || theme).palette.warning[900]} !important`,
368
+ textDecorationColor: `${(0, _styles.alpha)(theme.palette.warning.main, 0.4)} !important`,
369
+ '&:hover': {
370
+ textDecorationColor: `${(theme.vars || theme).palette.warning[900]} !important`
371
+ }
328
372
  }
329
373
  }, theme.applyDarkStyles({
330
- backgroundColor: (0, _styles.alpha)(theme.palette.warning[700], 0.2),
374
+ backgroundColor: (0, _styles.alpha)(theme.palette.warning[700], 0.12),
331
375
  color: (theme.vars || theme).palette.warning[50],
332
376
  '& .MuiAlert-icon': {
333
- color: (theme.vars || theme).palette.warning[200]
377
+ color: (theme.vars || theme).palette.warning[400]
378
+ },
379
+ '& * a': {
380
+ color: `${(theme.vars || theme).palette.warning[100]} !important`,
381
+ textDecorationColor: `${(0, _styles.alpha)(theme.palette.warning[600], 0.4)} !important`,
382
+ '&:hover': {
383
+ textDecorationColor: `${(theme.vars || theme).palette.warning[600]} !important`
384
+ }
334
385
  }
335
386
  })],
336
- icon: {
337
- paddingTop: 12,
338
- paddingBottom: 0
339
- }
387
+ standardSuccess: ({
388
+ theme
389
+ }) => [
390
+ // same styles from the MarkdownElement callout
391
+ {
392
+ backgroundColor: (0, _styles.alpha)(theme.palette.success[50], 0.5),
393
+ color: (theme.vars || theme).palette.success[900],
394
+ border: `1px solid ${(theme.vars || theme).palette.success[100]}`,
395
+ '& .MuiAlert-icon': {
396
+ color: (theme.vars || theme).palette.success[600]
397
+ },
398
+ '& * a': {
399
+ // !important is used here to override the anchor tag color coming from MarkdownElement
400
+ color: `${(theme.vars || theme).palette.success[900]} !important`,
401
+ textDecorationColor: `${(0, _styles.alpha)(theme.palette.success.main, 0.4)} !important`,
402
+ '&:hover': {
403
+ textDecorationColor: `${(theme.vars || theme).palette.success[900]} !important`
404
+ }
405
+ }
406
+ }, theme.applyDarkStyles({
407
+ backgroundColor: (0, _styles.alpha)(theme.palette.success[700], 0.12),
408
+ color: (theme.vars || theme).palette.success[50],
409
+ borderColor: (0, _styles.alpha)(theme.palette.success[400], 0.1),
410
+ '& .MuiAlert-icon': {
411
+ color: (theme.vars || theme).palette.success[500]
412
+ },
413
+ '& * a': {
414
+ color: `${(theme.vars || theme).palette.success[100]} !important`,
415
+ textDecorationColor: `${(0, _styles.alpha)(theme.palette.success[600], 0.4)} !important`,
416
+ '&:hover': {
417
+ textDecorationColor: `${(theme.vars || theme).palette.success[600]} !important`
418
+ }
419
+ }
420
+ })]
340
421
  }
341
422
  },
342
423
  MuiButtonBase: {
@@ -364,107 +445,183 @@ function getThemedComponents() {
364
445
  root: ({
365
446
  theme,
366
447
  ownerState
367
- }) => (0, _extends2.default)({
368
- transition: 'all 120ms ease-in'
369
- }, ownerState.size === 'large' && (0, _extends2.default)({}, theme.typography.body1, {
370
- lineHeight: 21 / 16,
371
- padding: theme.spacing('8px', '10px', '10px', '12px'),
372
- fontWeight: theme.typography.fontWeightSemiBold,
373
- borderRadius: 10,
374
- '& > span': {
375
- transition: '0.2s',
376
- marginLeft: 4
377
- },
378
- '&:hover > span': {
379
- transform: 'translateX(2px)'
380
- }
381
- }), ownerState.size === 'medium' && {
382
- fontSize: defaultTheme.typography.pxToRem(15),
383
- padding: theme.spacing('8px', '12px', '8px', '14px'),
384
- fontWeight: theme.typography.fontWeightSemiBold,
385
- borderRadius: 8,
386
- '& > span': {
387
- transition: '0.2s',
388
- marginLeft: 4
389
- },
390
- '&:hover > span': {
391
- transform: 'translateX(2px)'
392
- }
393
- }, ownerState.size === 'small' && {
394
- padding: theme.spacing('6px', 1),
395
- fontFamily: theme.typography.fontFamily,
396
- fontSize: defaultTheme.typography.pxToRem(13),
397
- fontWeight: theme.typography.fontWeightSemiBold,
398
- borderRadius: 8,
399
- '& .MuiButton-startIcon': {
400
- transition: '0.15s',
401
- marginRight: 4,
402
- marginLeft: -1
403
- },
404
- '& .MuiButton-endIcon': {
405
- transition: '0.15s',
406
- marginLeft: 4
407
- },
408
- '&:hover': {
448
+ }) => ({
449
+ transition: 'all 120ms ease-in',
450
+ ...(ownerState.size === 'large' && {
451
+ ...theme.typography.body1,
452
+ lineHeight: 1.5,
453
+ fontWeight: theme.typography.fontWeightMedium,
454
+ padding: theme.spacing('8px', '12px', '8px', '14px'),
455
+ borderRadius: 10,
456
+ '& > span': {
457
+ transition: '0.2s',
458
+ marginLeft: 4
459
+ },
460
+ '&:hover > span': {
461
+ transform: 'translateX(2px)'
462
+ }
463
+ }),
464
+ ...(ownerState.size === 'medium' && {
465
+ fontSize: defaultTheme.typography.pxToRem(15),
466
+ fontWeight: theme.typography.fontWeightMedium,
467
+ lineHeight: 1.25,
468
+ padding: theme.spacing('8px', '10px', '10px', '12px'),
469
+ borderRadius: 10,
470
+ '& > span': {
471
+ transition: '0.2s',
472
+ marginLeft: 4
473
+ },
474
+ '&:hover > span': {
475
+ transform: 'translateX(2px)'
476
+ }
477
+ }),
478
+ ...(ownerState.size === 'small' && {
479
+ padding: '6px 10px',
480
+ fontFamily: theme.typography.fontFamily,
481
+ fontSize: defaultTheme.typography.pxToRem(13),
482
+ fontWeight: theme.typography.fontWeightMedium,
483
+ borderRadius: 10,
409
484
  '& .MuiButton-startIcon': {
410
- transform: 'translateX(-2px)'
485
+ transition: '0.15s',
486
+ marginRight: 4,
487
+ marginLeft: -1
411
488
  },
412
489
  '& .MuiButton-endIcon': {
413
- transform: 'translateX(2px)'
490
+ transition: '0.15s',
491
+ marginLeft: 4
492
+ },
493
+ '&:hover': {
494
+ '& .MuiButton-startIcon': {
495
+ transform: 'translateX(-2px)'
496
+ },
497
+ '& .MuiButton-endIcon': {
498
+ transform: 'translateX(2px)'
499
+ }
414
500
  }
415
- }
416
- }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && (0, _extends2.default)({
417
- color: (theme.vars || theme).palette.text.primary,
418
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
419
- borderColor: (theme.vars || theme).palette.primaryDark[100],
420
- boxShadow: `${(0, _styles.alpha)(theme.palette.grey[50], 0.5)} 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[100], 0.5)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
421
- '&:hover': {
422
- backgroundColor: (theme.vars || theme).palette.grey[50]
423
- }
424
- }, theme.applyDarkStyles({
425
- color: (theme.vars || theme).palette.primaryDark[100],
426
- borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
427
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
428
- boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
429
- '&:hover': {
430
- backgroundColor: (theme.vars || theme).palette.primaryDark[700],
431
- borderColor: (theme.vars || theme).palette.primaryDark[600]
432
- }
433
- })), ownerState.variant === 'outlined' && ownerState.color === 'primary' && (0, _extends2.default)({
434
- color: (theme.vars || theme).palette.primary[600],
435
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[50], 0.2),
436
- borderColor: (theme.vars || theme).palette.primary[100],
437
- boxShadow: `${(0, _styles.alpha)(theme.palette.primary[50], 0.8)} 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.4)} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
438
- '&:hover': {
439
- backgroundColor: (theme.vars || theme).palette.primary[50],
440
- borderColor: (theme.vars || theme).palette.primary[200]
441
- }
442
- }, theme.applyDarkStyles({
443
- color: (theme.vars || theme).palette.primary[200],
444
- borderColor: (0, _styles.alpha)(theme.palette.primary[900], 0.7),
445
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.2),
446
- boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
447
- '&:hover': {
448
- backgroundColor: (theme.vars || theme).palette.primary[900],
449
- borderColor: (theme.vars || theme).palette.primary[700]
450
- }
451
- })), ownerState.variant === 'contained' && ownerState.color === 'primary' && {
452
- color: '#fff',
453
- textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
454
- backgroundColor: (theme.vars || theme).palette.primary[500],
455
- backgroundImage: `linear-gradient(180deg, ${(0, _styles.alpha)(theme.palette.primary[500], 0.6)} 0%, ${theme.palette.primary[600]} 100%)`,
456
- boxShadow: `${theme.palette.primary[400]} 0 2px 0 inset, ${theme.palette.primary[700]} 0 -2px 0 inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
457
- '&:hover': {
458
- backgroundColor: (theme.vars || theme).palette.primary[700]
459
- },
460
- '&:active': {
461
- backgroundColor: (theme.vars || theme).palette.primaryDark[700]
462
- }
463
- }, ownerState.variant === 'text' && (0, _extends2.default)({
464
- color: (theme.vars || theme).palette.primary[600]
465
- }, theme.applyDarkStyles({
466
- color: (theme.vars || theme).palette.primary[300]
467
- })))
501
+ }),
502
+ ...(ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
503
+ color: (theme.vars || theme).palette.text.primary,
504
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
505
+ borderColor: (theme.vars || theme).palette.primaryDark[100],
506
+ boxShadow: `#FFF 0 1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
507
+ '&:hover': {
508
+ backgroundColor: (theme.vars || theme).palette.grey[50]
509
+ },
510
+ '&:active': {
511
+ backgroundColor: (theme.vars || theme).palette.grey[100]
512
+ },
513
+ ...theme.applyDarkStyles({
514
+ color: (theme.vars || theme).palette.primaryDark[100],
515
+ borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
516
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
517
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[700], 0.3)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
518
+ '&:hover': {
519
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
520
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
521
+ },
522
+ '&:active': {
523
+ backgroundColor: (theme.vars || theme).palette.primaryDark[800]
524
+ }
525
+ })
526
+ }),
527
+ ...(ownerState.variant === 'outlined' && ownerState.color === 'primary' && {
528
+ color: (theme.vars || theme).palette.primary[600],
529
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[50], 0.2),
530
+ borderColor: (theme.vars || theme).palette.primary[100],
531
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[100], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.primary[100], 0.5)} 0 1px 2px 0`,
532
+ '&:hover': {
533
+ backgroundColor: (theme.vars || theme).palette.primary[50],
534
+ borderColor: (theme.vars || theme).palette.primary[200]
535
+ },
536
+ '&:active': {
537
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.7)
538
+ },
539
+ ...theme.applyDarkStyles({
540
+ color: (theme.vars || theme).palette.primary[200],
541
+ borderColor: (0, _styles.alpha)(theme.palette.primary[900], 0.7),
542
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.2),
543
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.2)} 0 1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 1px inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
544
+ '&:hover': {
545
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.5),
546
+ borderColor: (theme.vars || theme).palette.primary[900]
547
+ },
548
+ '&:active': {
549
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
550
+ }
551
+ })
552
+ }),
553
+ ...(ownerState.variant === 'contained' && ownerState.color === 'primary' && {
554
+ color: '#fff',
555
+ textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
556
+ backgroundColor: (theme.vars || theme).palette.primary[500],
557
+ backgroundImage: 'transparent',
558
+ border: '1px solid ',
559
+ borderColor: (theme.vars || theme).palette.primary[600],
560
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[400], 0.5)} 0 1px 0 inset, ${(0, _styles.alpha)(theme.palette.primary[800], 0.4)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
561
+ '&:hover': {
562
+ backgroundColor: (theme.vars || theme).palette.primary[700],
563
+ borderColor: (theme.vars || theme).palette.primary[800]
564
+ },
565
+ '&:active': {
566
+ backgroundColor: (theme.vars || theme).palette.primary[800],
567
+ borderColor: (theme.vars || theme).palette.primary[600],
568
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primary[900], 0.7)} 0 1px 0 1px inset`
569
+ }
570
+ }),
571
+ ...(ownerState.variant === 'contained' && ownerState.color === 'secondary' && {
572
+ color: '#fff',
573
+ textShadow: `0 1px 1px ${(0, _styles.alpha)(theme.palette.common.black, 0.6)}`,
574
+ backgroundColor: (theme.vars || theme).palette.primaryDark[500],
575
+ backgroundImage: 'transparent',
576
+ border: '1px solid ',
577
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
578
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[400], 0.5)} 0 1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.primaryDark[800], 0.7)} 0 -1px 0 1px inset, ${(0, _styles.alpha)(theme.palette.common.black, 0.1)} 0 2px 4px 0`,
579
+ '&:hover': {
580
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600],
581
+ borderColor: (theme.vars || theme).palette.primaryDark[700]
582
+ },
583
+ '&:active': {
584
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700],
585
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
586
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[900], 0.7)} 0 1px 0 1px inset`
587
+ }
588
+ }),
589
+ ...(ownerState.variant === 'text' && ownerState.color === 'secondary' && {
590
+ color: (theme.vars || theme).palette.text.secondary,
591
+ '&:hover': {
592
+ backgroundColor: (theme.vars || theme).palette.grey[50]
593
+ },
594
+ '&:active': {
595
+ backgroundColor: (theme.vars || theme).palette.grey[200]
596
+ },
597
+ ...theme.applyDarkStyles({
598
+ '&:hover': {
599
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5)
600
+ },
601
+ '&:active': {
602
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
603
+ }
604
+ })
605
+ }),
606
+ ...(ownerState.variant === 'text' && ownerState.color === 'primary' && {
607
+ color: (theme.vars || theme).palette.primary[600],
608
+ '&:hover': {
609
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.3)
610
+ },
611
+ '&:active': {
612
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.5)
613
+ },
614
+ ...theme.applyDarkStyles({
615
+ color: (theme.vars || theme).palette.primary[300],
616
+ '&:hover': {
617
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.3)
618
+ },
619
+ '&:active': {
620
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.1)
621
+ }
622
+ })
623
+ })
624
+ })
468
625
  },
469
626
  variants: [{
470
627
  // @ts-ignore internal repo module augmentation issue
@@ -582,23 +739,54 @@ function getThemedComponents() {
582
739
  },
583
740
  style: ({
584
741
  theme
585
- }) => (0, _extends2.default)({
742
+ }) => ({
586
743
  marginBottom: 1,
587
744
  fontSize: theme.typography.pxToRem(14),
588
745
  fontWeight: theme.typography.fontWeightBold,
589
746
  color: (theme.vars || theme).palette.primary[600],
590
747
  '&:hover': {
591
748
  backgroundColor: (theme.vars || theme).palette.primary[50]
592
- }
593
- }, theme.applyDarkStyles({
594
- color: (theme.vars || theme).palette.primary[300],
595
- '&:hover': {
596
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[800], 0.3)
597
- }
598
- }))
749
+ },
750
+ ...theme.applyDarkStyles({
751
+ color: (theme.vars || theme).palette.primary[300],
752
+ '&:hover': {
753
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[800], 0.3)
754
+ }
755
+ })
756
+ })
599
757
  }]
600
758
  },
601
759
  MuiIconButton: {
760
+ styleOverrides: {
761
+ root: ({
762
+ theme,
763
+ ownerState
764
+ }) => ({
765
+ borderRadius: theme.shape.borderRadius,
766
+ transition: 'all 100ms ease-in',
767
+ '&:hover': {
768
+ borderColor: (theme.vars || theme).palette.grey[300],
769
+ background: (theme.vars || theme).palette.grey[50],
770
+ ...theme.applyDarkStyles({
771
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
772
+ background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8)
773
+ })
774
+ },
775
+ '&:active': {
776
+ background: (theme.vars || theme).palette.grey[100],
777
+ ...theme.applyDarkStyles({
778
+ background: theme.palette.primaryDark[800]
779
+ })
780
+ },
781
+ ...(ownerState.size === 'small' && {
782
+ height: 32,
783
+ width: 32,
784
+ '& .MuiSvgIcon-root': {
785
+ fontSize: defaultTheme.typography.pxToRem(18)
786
+ }
787
+ })
788
+ })
789
+ },
602
790
  variants: [{
603
791
  props: {
604
792
  color: 'primary'
@@ -606,26 +794,30 @@ function getThemedComponents() {
606
794
  style: ({
607
795
  theme
608
796
  }) => [{
609
- height: 34,
610
- width: 34,
611
- border: `1px solid`,
612
- borderRadius: theme.shape.borderRadius,
613
797
  color: (theme.vars || theme).palette.primary.main,
614
798
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
615
- borderColor: (theme.vars || theme).palette.primaryDark[100],
616
- boxShadow: `${(0, _styles.alpha)(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
799
+ border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
800
+ 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`,
617
801
  '&:hover': {
618
802
  borderColor: (theme.vars || theme).palette.grey[300],
619
- background: (theme.vars || theme).palette.grey[50]
803
+ background: (theme.vars || theme).palette.grey[50],
804
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
805
+ },
806
+ '&:active': {
807
+ background: (theme.vars || theme).palette.grey[100]
620
808
  }
621
809
  }, theme.applyDarkStyles({
622
810
  color: (theme.vars || theme).palette.primary[300],
623
811
  borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
624
812
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
625
- boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
813
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
626
814
  '&:hover': {
627
- borderColor: (theme.vars || theme).palette.primaryDark[500],
628
- background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)
815
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
816
+ background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
817
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
818
+ },
819
+ '&:active': {
820
+ background: theme.palette.primaryDark[800]
629
821
  }
630
822
  })]
631
823
  }, {
@@ -635,27 +827,30 @@ function getThemedComponents() {
635
827
  style: ({
636
828
  theme
637
829
  }) => [{
638
- height: 34,
639
- width: 34,
640
- color: (theme.vars || theme).palette.text.tertiary,
641
- borderRadius: theme.shape.borderRadius,
642
- border: `1px solid`,
830
+ color: (theme.vars || theme).palette.text.secondary,
643
831
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[50], 0.1),
644
- borderColor: (theme.vars || theme).palette.primaryDark[100],
645
- boxShadow: `${(0, _styles.alpha)(theme.palette.grey[50], 0.4)} 0 2px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
832
+ border: `1px solid ${(theme.vars || theme).palette.primaryDark[100]}`,
833
+ 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`,
646
834
  '&:hover': {
647
- color: (theme.vars || theme).palette.primary.main,
835
+ color: (theme.vars || theme).palette.text.primary,
648
836
  borderColor: (theme.vars || theme).palette.grey[300],
649
- background: (theme.vars || theme).palette.grey[50]
837
+ background: (theme.vars || theme).palette.grey[50],
838
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.5)} 0 1px 2px 0`
839
+ },
840
+ '&:active': {
841
+ background: (theme.vars || theme).palette.grey[100]
650
842
  }
651
843
  }, theme.applyDarkStyles({
652
844
  borderColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.5),
653
845
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.2),
654
- boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.2)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
846
+ boxShadow: `${(0, _styles.alpha)(theme.palette.primaryDark[600], 0.3)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
655
847
  '&:hover': {
656
- color: (theme.vars || theme).palette.primary[400],
657
- borderColor: (theme.vars || theme).palette.primaryDark[500],
658
- background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4)
848
+ borderColor: (theme.vars || theme).palette.primaryDark[600],
849
+ background: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.8),
850
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 1px 2px 0`
851
+ },
852
+ '&:active': {
853
+ background: theme.palette.primaryDark[800]
659
854
  }
660
855
  })]
661
856
  }]
@@ -665,17 +860,29 @@ function getThemedComponents() {
665
860
  paper: ({
666
861
  theme
667
862
  }) => [{
863
+ padding: '6px',
668
864
  minWidth: 160,
669
865
  color: (theme.vars || theme).palette.text.secondary,
670
866
  backgroundImage: 'none',
671
867
  border: '1px solid',
672
868
  backgroundColor: (theme.vars || theme).palette.background.paper,
673
869
  borderColor: (theme.vars || theme).palette.grey[200],
870
+ '& .MuiMenu-list': {
871
+ display: 'flex',
872
+ flexDirection: 'column',
873
+ gap: '2px',
874
+ '& .MuiDivider-root': {
875
+ margin: '4px -8px 4px -8px'
876
+ }
877
+ },
674
878
  '& .MuiMenuItem-root': {
879
+ padding: '6px 8px',
880
+ borderRadius: '6px',
675
881
  fontSize: theme.typography.pxToRem(14),
676
- fontWeight: 500,
677
- '&:hover, &:focus': {
678
- backgroundColor: (theme.vars || theme).palette.grey[50]
882
+ fontWeight: theme.typography.fontWeightMedium,
883
+ '&:hover': {
884
+ backgroundColor: (theme.vars || theme).palette.grey[100],
885
+ color: (theme.vars || theme).palette.text.primary
679
886
  },
680
887
  '&:focus-visible': {
681
888
  outline: 'none'
@@ -690,11 +897,11 @@ function getThemedComponents() {
690
897
  backgroundColor: (theme.vars || theme).palette.primaryDark[900],
691
898
  borderColor: (theme.vars || theme).palette.primaryDark[700],
692
899
  '& .MuiMenuItem-root': {
693
- '&:hover, &:focus': {
900
+ '&:hover': {
694
901
  backgroundColor: (theme.vars || theme).palette.primaryDark[700]
695
902
  },
696
903
  '&.Mui-selected': {
697
- color: (theme.vars || theme).palette.primary[300],
904
+ color: (theme.vars || theme).palette.primary[200],
698
905
  backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.4)
699
906
  }
700
907
  }
@@ -705,22 +912,21 @@ function getThemedComponents() {
705
912
  styleOverrides: {
706
913
  paper: ({
707
914
  theme
708
- }) => (0, _extends2.default)({
709
- boxShadow: '0px 4px 20px rgba(170, 180, 190, 0.3)'
710
- }, theme.applyDarkStyles({
711
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.5)'
712
- }))
915
+ }) => ({
916
+ boxShadow: '0px 4px 20px rgba(170, 180, 190, 0.3)',
917
+ ...theme.applyDarkStyles({
918
+ boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.5)'
919
+ })
920
+ })
713
921
  }
714
922
  },
715
923
  MuiDivider: {
716
924
  styleOverrides: {
717
925
  root: ({
718
926
  theme
719
- }) => (0, _extends2.default)({
720
- borderColor: (theme.vars || theme).palette.grey[100]
721
- }, theme.applyDarkStyles({
722
- borderColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.3)
723
- }))
927
+ }) => ({
928
+ borderColor: (theme.vars || theme).palette.divider
929
+ })
724
930
  }
725
931
  },
726
932
  MuiLink: {
@@ -773,107 +979,131 @@ function getThemedComponents() {
773
979
  variant
774
980
  },
775
981
  theme
776
- }) => (0, _extends2.default)({
982
+ }) => ({
777
983
  fontWeight: theme.typography.fontWeightSemiBold,
778
- paddingBottom: 0.2
779
- }, variant === 'outlined' && color === 'default' && (0, _extends2.default)({
780
- backgroundColor: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
781
- color: (theme.vars || theme).palette.grey[900],
782
- borderColor: (theme.vars || theme).palette.grey[200],
783
- '&:hover': {
784
- backgroundColor: (theme.vars || theme).palette.grey[100],
785
- color: (theme.vars || theme).palette.grey[900]
786
- }
787
- }, theme.applyDarkStyles({
788
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4),
789
- color: (theme.vars || theme).palette.grey[300],
790
- borderColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.5),
791
- '&:hover': {
792
- color: (theme.vars || theme).palette.grey[300],
793
- backgroundColor: (theme.vars || theme).palette.primaryDark[700]
794
- }
795
- })), variant === 'outlined' && color === 'info' && (0, _extends2.default)({
796
- backgroundColor: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
797
- color: (theme.vars || theme).palette.grey[900],
798
- borderColor: (theme.vars || theme).palette.grey[200]
799
- }, theme.applyDarkStyles({
800
- color: (theme.vars || theme).palette.grey[300],
801
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5),
802
- borderColor: (theme.vars || theme).palette.primaryDark[600]
803
- })), variant === 'outlined' && color === 'primary' && (0, _extends2.default)({
804
- borderColor: (theme.vars || theme).palette.primary[100],
805
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.2)
806
- }, theme.applyDarkStyles({
807
- color: (theme.vars || theme).palette.primary[300],
808
- borderColor: (0, _styles.alpha)(theme.palette.primary[500], 0.2),
809
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[700], 0.2)
810
- })), variant === 'outlined' && color === 'success' && (0, _extends2.default)({
811
- borderColor: (theme.vars || theme).palette.success[100],
812
- backgroundColor: (theme.vars || theme).palette.success[50],
813
- color: (theme.vars || theme).palette.success[900]
814
- }, theme.applyDarkStyles({
815
- color: (theme.vars || theme).palette.success[300],
816
- borderColor: (0, _styles.alpha)(theme.palette.success[300], 0.2),
817
- background: (0, _styles.alpha)(theme.palette.success[800], 0.2)
818
- })), variant === 'filled' && (0, _extends2.default)({}, color === 'default' && (0, _extends2.default)({
819
- border: '1px solid transparent',
820
- color: (theme.vars || theme).palette.primary[700],
821
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.5),
822
- '&:hover': {
823
- backgroundColor: (theme.vars || theme).palette.primary[100]
824
- }
825
- }, theme.applyDarkStyles({
826
- color: '#fff',
827
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.8),
828
- '&:hover': {
829
- backgroundColor: (theme.vars || theme).palette.primaryDark[600]
830
- }
831
- })), color === 'primary' && (0, _extends2.default)({
832
- color: (theme.vars || theme).palette.primary[600],
833
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.4),
834
- '&:hover': {
835
- backgroundColor: (theme.vars || theme).palette.primary[100]
836
- },
837
- '& .MuiChip-deleteIcon': {
838
- color: (theme.vars || theme).palette.primary[600],
984
+ paddingBottom: 0.2,
985
+ ...(variant === 'outlined' && color === 'default' && {
986
+ backgroundColor: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
987
+ color: (theme.vars || theme).palette.grey[900],
988
+ borderColor: (theme.vars || theme).palette.grey[200],
839
989
  '&:hover': {
840
- color: (theme.vars || theme).palette.primary[700]
841
- }
842
- },
843
- '&.Mui-focusVisible': {
844
- backgroundColor: (theme.vars || theme).palette.primary[200]
845
- }
846
- }, theme.applyDarkStyles({
847
- color: (theme.vars || theme).palette.primary[100],
848
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[800], 0.5),
849
- '&:hover': {
850
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.5)
851
- },
852
- '& .MuiChip-deleteIcon': {
853
- color: (theme.vars || theme).palette.primary[100],
854
- '&:hover': {
855
- color: (theme.vars || theme).palette.primary[50]
856
- }
857
- }
858
- }))), variant === 'light' && (0, _extends2.default)({}, color === 'default' && (0, _extends2.default)({
859
- color: (theme.vars || theme).palette.primary[700],
860
- backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.3)
861
- }, theme.applyDarkStyles({
862
- color: (theme.vars || theme).palette.primary[200],
863
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5)
864
- })), color === 'warning' && (0, _extends2.default)({
865
- color: (theme.vars || theme).palette.warning[900],
866
- backgroundColor: (theme.vars || theme).palette.warning[100]
867
- }, theme.applyDarkStyles({
868
- color: '#fff',
869
- backgroundColor: (theme.vars || theme).palette.warning[900]
870
- })), color === 'success' && (0, _extends2.default)({
871
- color: (theme.vars || theme).palette.success[900],
872
- backgroundColor: (theme.vars || theme).palette.success[100]
873
- }, theme.applyDarkStyles({
874
- color: '#fff',
875
- backgroundColor: (theme.vars || theme).palette.success[900]
876
- }))))
990
+ backgroundColor: (theme.vars || theme).palette.grey[100],
991
+ color: (theme.vars || theme).palette.grey[900]
992
+ },
993
+ ...theme.applyDarkStyles({
994
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.4),
995
+ color: (theme.vars || theme).palette.grey[300],
996
+ borderColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.5),
997
+ '&:hover': {
998
+ color: (theme.vars || theme).palette.grey[300],
999
+ backgroundColor: (theme.vars || theme).palette.primaryDark[700]
1000
+ }
1001
+ })
1002
+ }),
1003
+ ...(variant === 'outlined' && color === 'info' && {
1004
+ backgroundColor: (0, _styles.alpha)(theme.palette.grey[50], 0.5),
1005
+ color: (theme.vars || theme).palette.grey[900],
1006
+ borderColor: (theme.vars || theme).palette.grey[200],
1007
+ ...theme.applyDarkStyles({
1008
+ color: (theme.vars || theme).palette.grey[300],
1009
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5),
1010
+ borderColor: (theme.vars || theme).palette.primaryDark[600]
1011
+ })
1012
+ }),
1013
+ ...(variant === 'outlined' && color === 'primary' && {
1014
+ borderColor: (theme.vars || theme).palette.primary[100],
1015
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.2),
1016
+ ...theme.applyDarkStyles({
1017
+ color: (theme.vars || theme).palette.primary[300],
1018
+ borderColor: (0, _styles.alpha)(theme.palette.primary[500], 0.2),
1019
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[700], 0.2)
1020
+ })
1021
+ }),
1022
+ ...(variant === 'outlined' && color === 'success' && {
1023
+ borderColor: (theme.vars || theme).palette.success[100],
1024
+ backgroundColor: (theme.vars || theme).palette.success[50],
1025
+ color: (theme.vars || theme).palette.success[900],
1026
+ ...theme.applyDarkStyles({
1027
+ color: (theme.vars || theme).palette.success[300],
1028
+ borderColor: (0, _styles.alpha)(theme.palette.success[300], 0.2),
1029
+ background: (0, _styles.alpha)(theme.palette.success[800], 0.2)
1030
+ })
1031
+ }),
1032
+ ...(variant === 'filled' && {
1033
+ ...(color === 'default' && {
1034
+ border: '1px solid transparent',
1035
+ color: (theme.vars || theme).palette.primary[700],
1036
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.5),
1037
+ '&:hover': {
1038
+ backgroundColor: (theme.vars || theme).palette.primary[100]
1039
+ },
1040
+ ...theme.applyDarkStyles({
1041
+ color: '#fff',
1042
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[500], 0.8),
1043
+ '&:hover': {
1044
+ backgroundColor: (theme.vars || theme).palette.primaryDark[600]
1045
+ }
1046
+ })
1047
+ }),
1048
+ ...(color === 'primary' && {
1049
+ color: (theme.vars || theme).palette.primary[600],
1050
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.4),
1051
+ '&:hover': {
1052
+ backgroundColor: (theme.vars || theme).palette.primary[100]
1053
+ },
1054
+ '& .MuiChip-deleteIcon': {
1055
+ color: (theme.vars || theme).palette.primary[600],
1056
+ '&:hover': {
1057
+ color: (theme.vars || theme).palette.primary[700]
1058
+ }
1059
+ },
1060
+ '&.Mui-focusVisible': {
1061
+ backgroundColor: (theme.vars || theme).palette.primary[200]
1062
+ },
1063
+ ...theme.applyDarkStyles({
1064
+ color: (theme.vars || theme).palette.primary[100],
1065
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[800], 0.5),
1066
+ '&:hover': {
1067
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[900], 0.5)
1068
+ },
1069
+ '& .MuiChip-deleteIcon': {
1070
+ color: (theme.vars || theme).palette.primary[100],
1071
+ '&:hover': {
1072
+ color: (theme.vars || theme).palette.primary[50]
1073
+ }
1074
+ }
1075
+ })
1076
+ })
1077
+ }),
1078
+ // for labelling product in the search
1079
+ // @ts-ignore internal repo module augmentation issue
1080
+ ...(variant === 'light' && {
1081
+ ...(color === 'default' && {
1082
+ color: (theme.vars || theme).palette.primary[700],
1083
+ backgroundColor: (0, _styles.alpha)(theme.palette.primary[100], 0.3),
1084
+ ...theme.applyDarkStyles({
1085
+ color: (theme.vars || theme).palette.primary[200],
1086
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[700], 0.5)
1087
+ })
1088
+ }),
1089
+ ...(color === 'warning' && {
1090
+ color: (theme.vars || theme).palette.warning[900],
1091
+ backgroundColor: (theme.vars || theme).palette.warning[100],
1092
+ ...theme.applyDarkStyles({
1093
+ color: '#fff',
1094
+ backgroundColor: (theme.vars || theme).palette.warning[900]
1095
+ })
1096
+ }),
1097
+ ...(color === 'success' && {
1098
+ color: (theme.vars || theme).palette.success[900],
1099
+ backgroundColor: (theme.vars || theme).palette.success[100],
1100
+ ...theme.applyDarkStyles({
1101
+ color: '#fff',
1102
+ backgroundColor: (theme.vars || theme).palette.success[900]
1103
+ })
1104
+ })
1105
+ })
1106
+ })
877
1107
  }
878
1108
  },
879
1109
  MuiList: {
@@ -943,7 +1173,7 @@ function getThemedComponents() {
943
1173
  root: ({
944
1174
  theme,
945
1175
  ownerState
946
- }) => [(0, _extends2.default)({
1176
+ }) => [{
947
1177
  backgroundImage: 'none',
948
1178
  backgroundColor: '#fff',
949
1179
  '&[href]': {
@@ -951,47 +1181,49 @@ function getThemedComponents() {
951
1181
  },
952
1182
  transition: theme.transitions.create(['border', 'box-shadow'], {
953
1183
  duration: theme.transitions.duration.shortest
954
- })
955
- }, ownerState.variant === 'outlined' && {
956
- display: 'block',
957
- borderColor: (theme.vars || theme).palette.grey[100],
958
- '&[href]': {
959
- textDecorationLine: 'none',
960
- 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`,
961
- '&:hover': {
962
- borderColor: (theme.vars || theme).palette.primary[200],
963
- boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
1184
+ }),
1185
+ ...(ownerState.variant === 'outlined' && {
1186
+ display: 'block',
1187
+ borderColor: (theme.vars || theme).palette.grey[100],
1188
+ '&[href]': {
1189
+ textDecorationLine: 'none',
1190
+ 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`,
1191
+ '&:hover': {
1192
+ borderColor: (theme.vars || theme).palette.primary[200],
1193
+ boxShadow: `0px 2px 8px ${(theme.vars || theme).palette.primary[100]}`
1194
+ },
1195
+ '&:focus-visible': {
1196
+ outline: `3px solid ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
1197
+ outlineOffset: '2px'
1198
+ }
964
1199
  },
965
- '&:focus-visible': {
966
- outline: `3px solid ${(0, _styles.alpha)(theme.palette.primary[500], 0.5)}`,
967
- outlineOffset: '2px'
968
- }
969
- },
970
- ':is(a&), :is(button&)': {
971
- '&:hover': {
972
- borderColor: (theme.vars || theme).palette.primary[200],
973
- boxShadow: `0px 4px 16px ${(theme.vars || theme).palette.grey[200]}`
974
- }
975
- }
976
- }), theme.applyDarkStyles((0, _extends2.default)({
977
- backgroundColor: (theme.vars || theme).palette.primaryDark[900]
978
- }, ownerState.variant === 'outlined' && {
979
- borderColor: (theme.vars || theme).palette.primaryDark[700],
980
- backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[800], 0.6),
981
- '&[href]': {
982
- textDecorationLine: 'none',
983
- 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`,
984
- '&:hover': {
985
- borderColor: (0, _styles.alpha)(theme.palette.primary[600], 0.5),
986
- boxShadow: `0px 2px 8px ${(0, _styles.alpha)(theme.palette.primary[900], 0.6)}`
1200
+ ':is(a&), :is(button&)': {
1201
+ '&:hover': {
1202
+ borderColor: (theme.vars || theme).palette.primary[200],
1203
+ boxShadow: `0px 4px 16px ${(theme.vars || theme).palette.grey[200]}`
1204
+ }
987
1205
  }
988
- },
989
- ':is(a&), :is(button&)': {
990
- '&:hover': {
991
- boxShadow: `0px 4px 24px ${(theme.vars || theme).palette.common.black}`
1206
+ })
1207
+ }, theme.applyDarkStyles({
1208
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900],
1209
+ ...(ownerState.variant === 'outlined' && {
1210
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
1211
+ backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[800], 0.6),
1212
+ '&[href]': {
1213
+ textDecorationLine: 'none',
1214
+ 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`,
1215
+ '&:hover': {
1216
+ borderColor: (0, _styles.alpha)(theme.palette.primary[600], 0.5),
1217
+ boxShadow: `0px 2px 8px ${(0, _styles.alpha)(theme.palette.primary[900], 0.6)}`
1218
+ }
1219
+ },
1220
+ ':is(a&), :is(button&)': {
1221
+ '&:hover': {
1222
+ boxShadow: `0px 4px 24px ${(theme.vars || theme).palette.common.black}`
1223
+ }
992
1224
  }
993
- }
994
- }))]
1225
+ })
1226
+ })]
995
1227
  }
996
1228
  },
997
1229
  MuiTableCell: {
@@ -999,14 +1231,16 @@ function getThemedComponents() {
999
1231
  root: ({
1000
1232
  theme,
1001
1233
  ownerState
1002
- }) => (0, _extends2.default)({
1234
+ }) => ({
1003
1235
  padding: theme.spacing(1, 2),
1004
- borderColor: (theme.vars || theme).palette.divider
1005
- }, ownerState.variant === 'head' && {
1006
- color: (theme.vars || theme).palette.text.primary,
1007
- fontWeight: 700
1008
- }, ownerState.variant === 'body' && {
1009
- color: (theme.vars || theme).palette.text.secondary
1236
+ borderColor: (theme.vars || theme).palette.divider,
1237
+ ...(ownerState.variant === 'head' && {
1238
+ color: (theme.vars || theme).palette.text.primary,
1239
+ fontWeight: 700
1240
+ }),
1241
+ ...(ownerState.variant === 'body' && {
1242
+ color: (theme.vars || theme).palette.text.secondary
1243
+ })
1010
1244
  })
1011
1245
  }
1012
1246
  },
@@ -1014,11 +1248,12 @@ function getThemedComponents() {
1014
1248
  styleOverrides: {
1015
1249
  root: ({
1016
1250
  theme
1017
- }) => (0, _extends2.default)({
1018
- backgroundColor: '#fff'
1019
- }, theme.applyDarkStyles({
1020
- backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1021
- }))
1251
+ }) => ({
1252
+ backgroundColor: '#fff',
1253
+ ...theme.applyDarkStyles({
1254
+ backgroundColor: (theme.vars || theme).palette.primaryDark[900]
1255
+ })
1256
+ })
1022
1257
  }
1023
1258
  },
1024
1259
  MuiToggleButton: {
@@ -1026,14 +1261,14 @@ function getThemedComponents() {
1026
1261
  root: ({
1027
1262
  theme,
1028
1263
  ownerState
1029
- }) => [(0, _extends2.default)({
1264
+ }) => [{
1030
1265
  textTransform: 'none',
1031
1266
  fontWeight: theme.typography.fontWeightMedium,
1032
1267
  color: theme.palette.text.secondary,
1033
- borderColor: theme.palette.grey[200]
1034
- }, ownerState.size === 'small' && {
1035
- padding: '0.375rem 0.75rem'
1036
- }, {
1268
+ borderColor: theme.palette.grey[200],
1269
+ ...(ownerState.size === 'small' && {
1270
+ padding: '0.375rem 0.75rem'
1271
+ }),
1037
1272
  '&.Mui-selected': {
1038
1273
  color: (theme.vars || theme).palette.primary[700],
1039
1274
  borderColor: `${(theme.vars || theme).palette.primary[200]} !important`,
@@ -1042,7 +1277,7 @@ function getThemedComponents() {
1042
1277
  backgroundColor: (theme.vars || theme).palette.primary[100]
1043
1278
  }
1044
1279
  }
1045
- }), theme.applyDarkStyles({
1280
+ }, theme.applyDarkStyles({
1046
1281
  borderColor: theme.palette.primaryDark[700],
1047
1282
  '&:hover': {
1048
1283
  backgroundColor: (0, _styles.alpha)(theme.palette.primaryDark[600], 0.2)
@@ -1060,11 +1295,20 @@ function getThemedComponents() {
1060
1295
  }
1061
1296
  },
1062
1297
  MuiTooltip: {
1298
+ defaultProps: {
1299
+ arrow: true
1300
+ },
1063
1301
  styleOverrides: {
1064
- tooltip: {
1302
+ tooltip: ({
1303
+ theme
1304
+ }) => ({
1305
+ padding: '6px 8px',
1065
1306
  borderRadius: 6,
1066
- padding: '6px 12px'
1067
- }
1307
+ backgroundColor: (theme.vars || theme).palette.grey[800],
1308
+ '& .MuiTooltip-arrow': {
1309
+ color: (theme.vars || theme).palette.grey[800]
1310
+ }
1311
+ })
1068
1312
  }
1069
1313
  },
1070
1314
  MuiSwitch: {
@@ -1075,7 +1319,7 @@ function getThemedComponents() {
1075
1319
  padding: 0,
1076
1320
  '& .MuiSwitch-switchBase': {
1077
1321
  '&.Mui-checked': {
1078
- transform: 'translateX(11px)',
1322
+ transform: 'translateX(12px)',
1079
1323
  color: '#fff'
1080
1324
  }
1081
1325
  }
@@ -1091,13 +1335,14 @@ function getThemedComponents() {
1091
1335
  },
1092
1336
  track: ({
1093
1337
  theme
1094
- }) => (0, _extends2.default)({
1338
+ }) => ({
1095
1339
  opacity: 1,
1096
1340
  borderRadius: 32,
1097
- backgroundColor: theme.palette.grey[400]
1098
- }, theme.applyDarkStyles({
1099
- backgroundColor: theme.palette.grey[800]
1100
- })),
1341
+ backgroundColor: theme.palette.grey[400],
1342
+ ...theme.applyDarkStyles({
1343
+ backgroundColor: theme.palette.grey[800]
1344
+ })
1345
+ }),
1101
1346
  thumb: {
1102
1347
  flexShrink: 0,
1103
1348
  width: '14px',
@@ -1105,6 +1350,25 @@ function getThemedComponents() {
1105
1350
  }
1106
1351
  }
1107
1352
  },
1353
+ MuiSnackbar: {
1354
+ styleOverrides: {
1355
+ root: ({
1356
+ theme
1357
+ }) => ({
1358
+ '& .MuiSnackbarContent-root': {
1359
+ backgroundColor: '#FFF',
1360
+ color: (theme.vars || theme).palette.text.primary,
1361
+ fontWeight: theme.typography.fontWeightMedium,
1362
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
1363
+ boxShadow: `0 4px 16px ${(0, _styles.alpha)(theme.palette.grey[400], 0.2)}`,
1364
+ ...theme.applyDarkStyles({
1365
+ backgroundColor: (theme.vars || theme).palette.primaryDark[800],
1366
+ boxShadow: '0 4px 16px hsl(0, 100%, 1%)'
1367
+ })
1368
+ }
1369
+ })
1370
+ }
1371
+ },
1108
1372
  MuiPaginationItem: {
1109
1373
  styleOverrides: {
1110
1374
  root: ({
@@ -1149,9 +1413,33 @@ function getThemedComponents() {
1149
1413
  // scrollbarGutter: 'stable',
1150
1414
  }
1151
1415
  }
1416
+ },
1417
+ MuiCard: {
1418
+ styleOverrides: {
1419
+ root: ({
1420
+ theme,
1421
+ ownerState
1422
+ }) => ({
1423
+ ...(ownerState.variant === 'elevation' && {
1424
+ border: '1px solid',
1425
+ borderColor: (theme.vars || theme).palette.grey[100],
1426
+ boxShadow: `${(0, _styles.alpha)(theme.palette.grey[200], 0.4)} 0 -1px 0 inset, ${(0, _styles.alpha)(theme.palette.grey[300], 0.5)} 0 1px 8px 0`,
1427
+ ...theme.applyDarkStyles({
1428
+ borderColor: (theme.vars || theme).palette.primaryDark[700],
1429
+ boxShadow: `${(theme.vars || theme).palette.common.black} 0 -1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 8px 0`
1430
+ })
1431
+ })
1432
+ })
1433
+ }
1152
1434
  }
1153
1435
  }
1154
1436
  };
1155
1437
  }
1156
- const brandingDarkTheme = exports.brandingDarkTheme = (0, _styles.createTheme)((0, _extends2.default)({}, getDesignTokens('dark'), getThemedComponents()));
1157
- const brandingLightTheme = exports.brandingLightTheme = (0, _styles.createTheme)((0, _extends2.default)({}, getDesignTokens('light'), getThemedComponents()));
1438
+ const brandingDarkTheme = exports.brandingDarkTheme = (0, _styles.createTheme)({
1439
+ ...getDesignTokens('dark'),
1440
+ ...getThemedComponents()
1441
+ });
1442
+ const brandingLightTheme = exports.brandingLightTheme = (0, _styles.createTheme)({
1443
+ ...getDesignTokens('light'),
1444
+ ...getThemedComponents()
1445
+ });