@selfcommunity/react-theme-default 1.2.0-alpha.2 → 1.2.0-alpha.4

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 (88) hide show
  1. package/lib/cjs/components/SCAccordionLessons.d.ts +2 -2
  2. package/lib/cjs/components/SCAccordionLessons.js +2 -4
  3. package/lib/cjs/components/SCAddUsersButton.d.ts +7 -2
  4. package/lib/cjs/components/SCAddUsersButton.js +6 -4
  5. package/lib/cjs/components/SCBaseItemButton.d.ts +2 -2
  6. package/lib/cjs/components/SCBaseItemButton.js +7 -2
  7. package/lib/cjs/components/SCCategoryAutocomplete.d.ts +2 -2
  8. package/lib/cjs/components/SCCategoryAutocomplete.js +2 -5
  9. package/lib/cjs/components/SCCategoryFollowersButton.js +4 -1
  10. package/lib/cjs/components/SCCourseDashboard.d.ts +5 -3
  11. package/lib/cjs/components/SCCourseDashboard.js +6 -6
  12. package/lib/cjs/components/SCCourseForm.d.ts +8 -2
  13. package/lib/cjs/components/SCCourseForm.js +8 -4
  14. package/lib/cjs/components/SCCourseParticipantsButton.d.ts +5 -2
  15. package/lib/cjs/components/SCCourseParticipantsButton.js +8 -5
  16. package/lib/cjs/components/SCCourseUsersTable.d.ts +8 -2
  17. package/lib/cjs/components/SCCourseUsersTable.js +8 -4
  18. package/lib/cjs/components/SCEditCourse.d.ts +9 -3
  19. package/lib/cjs/components/SCEditCourse.js +9 -7
  20. package/lib/cjs/components/SCEventHeader.d.ts +0 -3
  21. package/lib/cjs/components/SCEventHeader.js +18 -7
  22. package/lib/cjs/components/SCEventSubscribeButton.d.ts +2 -0
  23. package/lib/cjs/components/SCEventSubscribeButton.js +7 -2
  24. package/lib/cjs/components/SCFeedObject.d.ts +3 -1
  25. package/lib/cjs/components/SCFeedObject.js +4 -2
  26. package/lib/cjs/components/SCGroupMembersButton.js +4 -1
  27. package/lib/cjs/components/SCInlineComposerWidget.js +1 -1
  28. package/lib/cjs/components/SCNavigationSettingsIconButton.d.ts +6 -3
  29. package/lib/cjs/components/SCNavigationSettingsIconButton.js +7 -4
  30. package/lib/cjs/components/SCOnBoardingWidget.js +10 -3
  31. package/lib/cjs/components/SCPrivateMessageEditor.js +4 -2
  32. package/lib/cjs/components/SCPrivateMessageSnippetItem.d.ts +3 -0
  33. package/lib/cjs/components/SCPrivateMessageSnippetItem.js +6 -0
  34. package/lib/cjs/components/SCPrivateMessageSnippets.d.ts +0 -10
  35. package/lib/cjs/components/SCPrivateMessageSnippets.js +2 -11
  36. package/lib/cjs/components/SCPrivateMessageThread.js +15 -7
  37. package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +3 -0
  38. package/lib/cjs/components/SCPrivateMessageThreadItem.js +3 -0
  39. package/lib/cjs/components/SCUser.d.ts +3 -0
  40. package/lib/cjs/components/SCUser.js +3 -0
  41. package/lib/cjs/components/SCWidget.d.ts +1 -1
  42. package/lib/cjs/components/SCWidget.js +1 -2
  43. package/lib/cjs/index.d.ts +73 -41
  44. package/lib/esm/components/SCAccordionLessons.d.ts +2 -2
  45. package/lib/esm/components/SCAccordionLessons.js +3 -5
  46. package/lib/esm/components/SCAddUsersButton.d.ts +7 -2
  47. package/lib/esm/components/SCAddUsersButton.js +6 -4
  48. package/lib/esm/components/SCBaseItemButton.d.ts +2 -2
  49. package/lib/esm/components/SCBaseItemButton.js +7 -2
  50. package/lib/esm/components/SCCategoryAutocomplete.d.ts +2 -2
  51. package/lib/esm/components/SCCategoryAutocomplete.js +2 -5
  52. package/lib/esm/components/SCCategoryFollowersButton.js +4 -1
  53. package/lib/esm/components/SCCourseDashboard.d.ts +5 -3
  54. package/lib/esm/components/SCCourseDashboard.js +6 -6
  55. package/lib/esm/components/SCCourseForm.d.ts +8 -2
  56. package/lib/esm/components/SCCourseForm.js +9 -5
  57. package/lib/esm/components/SCCourseParticipantsButton.d.ts +5 -2
  58. package/lib/esm/components/SCCourseParticipantsButton.js +8 -5
  59. package/lib/esm/components/SCCourseUsersTable.d.ts +8 -2
  60. package/lib/esm/components/SCCourseUsersTable.js +8 -4
  61. package/lib/esm/components/SCEditCourse.d.ts +9 -3
  62. package/lib/esm/components/SCEditCourse.js +10 -8
  63. package/lib/esm/components/SCEventHeader.d.ts +0 -3
  64. package/lib/esm/components/SCEventHeader.js +19 -8
  65. package/lib/esm/components/SCEventSubscribeButton.d.ts +2 -0
  66. package/lib/esm/components/SCEventSubscribeButton.js +7 -2
  67. package/lib/esm/components/SCFeedObject.d.ts +3 -1
  68. package/lib/esm/components/SCFeedObject.js +4 -2
  69. package/lib/esm/components/SCGroupMembersButton.js +4 -1
  70. package/lib/esm/components/SCInlineComposerWidget.js +1 -1
  71. package/lib/esm/components/SCNavigationSettingsIconButton.d.ts +6 -3
  72. package/lib/esm/components/SCNavigationSettingsIconButton.js +7 -4
  73. package/lib/esm/components/SCOnBoardingWidget.js +10 -3
  74. package/lib/esm/components/SCPrivateMessageEditor.js +4 -2
  75. package/lib/esm/components/SCPrivateMessageSnippetItem.d.ts +3 -0
  76. package/lib/esm/components/SCPrivateMessageSnippetItem.js +6 -0
  77. package/lib/esm/components/SCPrivateMessageSnippets.d.ts +0 -10
  78. package/lib/esm/components/SCPrivateMessageSnippets.js +2 -11
  79. package/lib/esm/components/SCPrivateMessageThread.js +13 -5
  80. package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +3 -0
  81. package/lib/esm/components/SCPrivateMessageThreadItem.js +3 -0
  82. package/lib/esm/components/SCUser.d.ts +3 -0
  83. package/lib/esm/components/SCUser.js +3 -0
  84. package/lib/esm/components/SCWidget.d.ts +1 -1
  85. package/lib/esm/components/SCWidget.js +1 -2
  86. package/lib/esm/index.d.ts +73 -41
  87. package/lib/umd/react-theme-default.js +1 -1
  88. package/package.json +2 -2
@@ -10,10 +10,13 @@ const Component = {
10
10
  padding: 0
11
11
  }
12
12
  },
13
- '& .SCNavigationSettingsIconButton-item .MuiListItemIcon-root': {
14
- marginLeft: theme.spacing(0.5),
15
- marginBottom: theme.spacing(0.5),
16
- color: theme.palette.secondary.main
13
+ '& .SCNavigationSettingsIconButton-item': {
14
+ color: theme.palette.getContrastText(theme.palette.background.default),
15
+ '& .MuiListItemIcon-root': {
16
+ marginLeft: theme.spacing(0.5),
17
+ marginBottom: theme.spacing(0.5),
18
+ color: theme.palette.secondary.main
19
+ }
17
20
  }
18
21
  }),
19
22
  drawerRoot: ({ theme }) => ({
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const material_1 = require("@mui/material");
3
4
  const Component = {
4
5
  styleOverrides: {
5
6
  root: ({ theme }) => ({
@@ -18,7 +19,9 @@ const Component = {
18
19
  '& .MuiCardContent-root': {
19
20
  '& .MuiList-root': {
20
21
  paddingTop: 0,
21
- borderRight: `1px solid ${theme.palette.grey[200]}`,
22
+ borderRight: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
23
+ ? '1px solid rgba(255, 255, 255, 0.12)'
24
+ : `1px solid ${theme.palette.grey[200]}`,
22
25
  '& .MuiListItem-root': {
23
26
  paddingBottom: 0
24
27
  }
@@ -101,7 +104,9 @@ const Component = {
101
104
  }
102
105
  },
103
106
  '& .MuiAccordionSummary-root': {
104
- borderBottom: `1px solid ${theme.palette.grey[200]}`,
107
+ borderBottom: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
108
+ ? '1px solid rgba(255, 255, 255, 0.12)'
109
+ : `1px solid ${theme.palette.grey[200]}`,
105
110
  borderRadius: 0,
106
111
  [theme.breakpoints.up('md')]: {
107
112
  borderRadius: theme.shape.borderRadius,
@@ -174,7 +179,9 @@ const Component = {
174
179
  padding: 0
175
180
  },
176
181
  [theme.breakpoints.up('md')]: {
177
- borderRight: `1px solid ${theme.palette.grey[200]}`
182
+ borderRight: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
183
+ ? '1px solid rgba(255, 255, 255, 0.12)'
184
+ : `1px solid ${theme.palette.grey[200]}`
178
185
  }
179
186
  }
180
187
  }),
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const system_1 = require("@mui/system");
3
+ const material_1 = require("@mui/material");
4
4
  const Component = {
5
5
  styleOverrides: {
6
6
  root: ({ theme }) => ({
7
- backgroundColor: (0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity),
7
+ backgroundColor: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
8
+ ? (0, material_1.alpha)(theme.palette.primary.dark, 0.5)
9
+ : (0, material_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity),
8
10
  '& .SCPrivateMessageEditor-message-input': {
9
11
  width: '100%'
10
12
  },
@@ -5,6 +5,9 @@ declare const Component: {
5
5
  padding: string;
6
6
  boxShadow: string;
7
7
  marginBottom: any;
8
+ '& .SCPrivateMessageSnippetItem-contrast-color': {
9
+ color: string;
10
+ };
8
11
  '& .SCPrivateMessageSnippetItem-time': {
9
12
  float: string;
10
13
  fontSize: any;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const material_1 = require("@mui/material");
3
4
  const Component = {
4
5
  styleOverrides: {
5
6
  root: ({ theme }) => ({
@@ -7,6 +8,11 @@ const Component = {
7
8
  padding: `${theme.spacing(0)}!important`,
8
9
  boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',
9
10
  marginBottom: theme.spacing(1),
11
+ '& .SCPrivateMessageSnippetItem-contrast-color': {
12
+ color: (0, material_1.getContrastRatio)(theme.palette.background.paper, theme.palette.common.white) > 4.5
13
+ ? (0, material_1.lighten)(theme.palette.common.white, 0.5)
14
+ : (0, material_1.darken)(theme.palette.common.white, 0.5)
15
+ },
10
16
  '& .SCPrivateMessageSnippetItem-time': {
11
17
  float: 'right',
12
18
  fontSize: theme.typography.fontWeightRegular
@@ -22,25 +22,15 @@ declare const Component: {
22
22
  };
23
23
  };
24
24
  '& .SCPrivateMessageSnippets-new-message-button': {
25
- color: string;
26
25
  alignSelf: string;
27
- backgroundColor: string;
28
- '&:hover': {
29
- borderWidth: string;
30
- backgroundColor: any;
31
- };
32
26
  };
33
27
  '& .MuiList-root': {
34
28
  flexGrow: number;
35
29
  overflowY: string;
36
30
  padding: any;
37
- '& .Mui-selected': {
38
- backgroundColor: any;
39
- };
40
31
  '& .MuiButtonBase-root, MuiListItemButton-root': {
41
32
  '&:hover': {
42
33
  borderRadius: string;
43
- backgroundColor: any;
44
34
  };
45
35
  };
46
36
  };
@@ -24,23 +24,14 @@ const Component = {
24
24
  }
25
25
  },
26
26
  '& .SCPrivateMessageSnippets-new-message-button': {
27
- color: `${theme.palette.primary.main} !important`,
28
- alignSelf: 'center',
29
- backgroundColor: 'transparent',
30
- '&:hover': {
31
- borderWidth: '2px !important',
32
- backgroundColor: theme.palette.grey['A200']
33
- }
27
+ alignSelf: 'center'
34
28
  },
35
29
  '& .MuiList-root': {
36
30
  flexGrow: 1,
37
31
  overflowY: 'auto',
38
32
  padding: theme.spacing(1),
39
- '& .Mui-selected': {
40
- backgroundColor: theme.palette.grey['A200']
41
- },
42
33
  '& .MuiButtonBase-root, MuiListItemButton-root': {
43
- '&:hover': { borderRadius: 'inherit', backgroundColor: theme.palette.grey['A200'] }
34
+ '&:hover': { borderRadius: 'inherit' }
44
35
  }
45
36
  }
46
37
  },
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const system_1 = require("@mui/system");
3
+ const material_1 = require("@mui/material");
4
4
  const Component = {
5
5
  styleOverrides: {
6
6
  root: ({ theme }) => ({
7
7
  height: '100%',
8
8
  width: '100%',
9
- backgroundColor: (0, system_1.alpha)(theme.palette.common.white, 0.5),
9
+ backgroundColor: (0, material_1.alpha)(theme.palette.common.white, 0.5),
10
10
  borderRadius: 0,
11
11
  '& .MuiCardContent-root': {
12
12
  display: 'flex',
@@ -41,7 +41,9 @@ const Component = {
41
41
  position: 'relative',
42
42
  marginBottom: theme.spacing(1),
43
43
  '&.SCPrivateMessageThread-receiver': {
44
- backgroundColor: theme.palette.common.white,
44
+ backgroundColor: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
45
+ ? theme.palette.background.paper
46
+ : theme.palette.common.white,
45
47
  marginLeft: theme.spacing(-4),
46
48
  filter: 'drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1))',
47
49
  '&:after': {
@@ -49,13 +51,17 @@ const Component = {
49
51
  content: `""`,
50
52
  position: 'absolute',
51
53
  border: `${theme.spacing(3)} solid transparent`,
52
- borderTop: `${theme.spacing(3)} solid ${theme.palette.common.white}`,
54
+ borderTop: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
55
+ ? `${theme.spacing(3)} solid ${theme.palette.background.paper}`
56
+ : `${theme.spacing(3)} solid ${theme.palette.common.white}`,
53
57
  top: theme.spacing(0),
54
58
  left: theme.spacing(-2)
55
59
  }
56
60
  },
57
61
  '&.SCPrivateMessageThread-sender': {
58
- backgroundColor: theme.palette.grey[300],
62
+ backgroundColor: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
63
+ ? theme.palette.grey[600]
64
+ : theme.palette.grey[300],
59
65
  position: 'relative',
60
66
  marginLeft: 'auto',
61
67
  marginRight: theme.spacing(1),
@@ -63,7 +69,9 @@ const Component = {
63
69
  content: `""`,
64
70
  position: 'absolute',
65
71
  border: `${theme.spacing(3)} solid transparent`,
66
- borderTop: `${theme.spacing(3)} solid ${theme.palette.grey[300]}`,
72
+ borderTop: (0, material_1.getContrastRatio)(theme.palette.background.default, theme.palette.common.white) > 4.5
73
+ ? `${theme.spacing(3)} solid ${theme.palette.grey[600]}`
74
+ : `${theme.spacing(3)} solid ${theme.palette.grey[300]}`,
67
75
  top: theme.spacing(0),
68
76
  right: theme.spacing(-2)
69
77
  }
@@ -97,7 +105,7 @@ const Component = {
97
105
  height: theme.mixins.toolbar.minHeight,
98
106
  alignItems: 'center',
99
107
  justifyContent: 'center',
100
- backgroundColor: (0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity),
108
+ backgroundColor: (0, material_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity),
101
109
  '& .SCPrivateMessageThread-new-message-header-content': {
102
110
  display: 'flex',
103
111
  alignItems: 'center',
@@ -6,6 +6,9 @@ declare const Component: {
6
6
  padding: any;
7
7
  boxShadow: string;
8
8
  marginBottom: any;
9
+ '& .SCPrivateMessageThreadItem-paper-contrast-color': {
10
+ color: any;
11
+ };
9
12
  '& .MuiListItemSecondaryAction-root': {
10
13
  right: number;
11
14
  top: any;
@@ -8,6 +8,9 @@ const Component = {
8
8
  padding: theme.spacing(2, 4, 4, 2),
9
9
  boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',
10
10
  marginBottom: theme.spacing(1),
11
+ '& .SCPrivateMessageThreadItem-paper-contrast-color': {
12
+ color: theme.palette.getContrastText(theme.palette.background.paper)
13
+ },
11
14
  '& .MuiListItemSecondaryAction-root': {
12
15
  right: 10,
13
16
  top: theme.spacing(3),
@@ -7,6 +7,9 @@ declare const Component: {
7
7
  borderRadius: number;
8
8
  paddingBottom: number;
9
9
  overflow: string;
10
+ '& .SCUser-paper-contrast-color': {
11
+ color: any;
12
+ };
10
13
  '& .MuiChip-root': {
11
14
  height: string;
12
15
  };
@@ -9,6 +9,9 @@ const Component = {
9
9
  [theme.breakpoints.up('sm')]: {
10
10
  borderRadius: theme.shape.borderRadius
11
11
  },
12
+ '& .SCUser-paper-contrast-color': {
13
+ color: theme.palette.getContrastText(theme.palette.background.paper)
14
+ },
12
15
  '& .MuiChip-root': {
13
16
  height: '18px'
14
17
  },
@@ -35,7 +35,7 @@ declare const Component: {
35
35
  '& h5': {
36
36
  fontFamily: any;
37
37
  fontWeight: any;
38
- color: string;
38
+ color: any;
39
39
  fontSize: string;
40
40
  };
41
41
  '& .MuiList-root': {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const material_1 = require("@mui/material");
4
3
  const Component = {
5
4
  variants: [
6
5
  {
@@ -35,7 +34,7 @@ const Component = {
35
34
  '& h5': {
36
35
  fontFamily: theme.typography.fontFamily,
37
36
  fontWeight: theme.typography.fontWeightBold,
38
- color: (0, material_1.lighten)(theme.palette.text.primary, 0.5),
37
+ color: theme.palette.getContrastText(theme.palette.background.default),
39
38
  fontSize: '1.143rem'
40
39
  },
41
40
  '& .MuiList-root': {
@@ -249,8 +249,8 @@ declare const theme: {
249
249
  backgroundColor: any;
250
250
  border: string;
251
251
  borderRadius: string;
252
- '& .SCAccordionLessons-contrast-color': {
253
- color: string;
252
+ '& .SCAccordionLessons-paper-contrast-color': {
253
+ color: any;
254
254
  };
255
255
  '& .SCAccordionLessons-empty': {
256
256
  padding: any;
@@ -382,11 +382,16 @@ declare const theme: {
382
382
  root: ({ theme }: {
383
383
  theme: any;
384
384
  }) => {
385
- '&.SCAddUsersButton-contrast-color': {
385
+ '&.SCAddUsersButton-default-contrast-color': {
386
386
  color: any;
387
387
  };
388
388
  };
389
- dialogRoot: () => {
389
+ dialogRoot: ({ theme }: {
390
+ theme: any;
391
+ }) => {
392
+ '& .SCAddUsersButton-dialog-paper-contrast-color': {
393
+ color: any;
394
+ };
390
395
  '& .MuiDialogActions-root': {
391
396
  marginTop: string;
392
397
  };
@@ -562,10 +567,10 @@ declare const theme: {
562
567
  marginTop: any;
563
568
  marginBottom: any;
564
569
  '& .SCBaseItemButton-primary': {
565
- color: any;
570
+ color: string;
566
571
  };
567
572
  '& .SCBaseItemButton-secondary': {
568
- color: any;
573
+ color: string;
569
574
  };
570
575
  };
571
576
  };
@@ -812,8 +817,8 @@ declare const theme: {
812
817
  SCCategoryAutocomplete: {
813
818
  styleOverrides: {
814
819
  root: ({ theme }: any) => {
815
- '& .SCCategoryAutocomplete-contrast-color': {
816
- color: string;
820
+ '& .SCCategoryAutocomplete-paper-contrast-color': {
821
+ color: any;
817
822
  };
818
823
  };
819
824
  };
@@ -2168,8 +2173,11 @@ declare const theme: {
2168
2173
  [x: number]: {
2169
2174
  marginBottom: string;
2170
2175
  };
2171
- '& .SCCourseDashboard-contrast-color': {
2172
- color: string;
2176
+ '& .SCCourseDashboard-default-contrast-color': {
2177
+ color: any;
2178
+ };
2179
+ '& .SCCourseDashboard-paper-contrast-color': {
2180
+ color: any;
2173
2181
  };
2174
2182
  '& .SCCourseDashboard-header': {
2175
2183
  [x: number]: {
@@ -2340,7 +2348,6 @@ declare const theme: {
2340
2348
  };
2341
2349
  '& a': {
2342
2350
  textDecoration: string;
2343
- color: string;
2344
2351
  };
2345
2352
  '& .MuiBadge-root': {
2346
2353
  marginRight: any;
@@ -2538,9 +2545,7 @@ declare const theme: {
2538
2545
  borderTopRightRadius: string;
2539
2546
  padding: string;
2540
2547
  '& .SCCourseDashboard-circle': {
2541
- width: string; /**
2542
- * Export default theme
2543
- */
2548
+ width: string;
2544
2549
  height: string;
2545
2550
  borderRadius: number;
2546
2551
  };
@@ -2693,8 +2698,11 @@ declare const theme: {
2693
2698
  root: ({ theme }: {
2694
2699
  theme: any;
2695
2700
  }) => {
2696
- '& .SCCourseForm-contrast-color': {
2697
- color: string;
2701
+ '& .SCCourseForm-default-contrast-color': {
2702
+ color: any;
2703
+ };
2704
+ '& .SCCourseForm-paper-contrast-color': {
2705
+ color: any;
2698
2706
  };
2699
2707
  '& .SCCourseForm-cover': {
2700
2708
  position: string;
@@ -2732,6 +2740,9 @@ declare const theme: {
2732
2740
  '& .SCCourseForm-name': {
2733
2741
  marginTop: any;
2734
2742
  };
2743
+ '.MuiInputBase-root': {
2744
+ color: any;
2745
+ };
2735
2746
  '& .SCCategoryAutocomplete-root ': {
2736
2747
  marginTop: any;
2737
2748
  };
@@ -2895,8 +2906,8 @@ declare const theme: {
2895
2906
  '&:hover': {
2896
2907
  backgroundColor: string;
2897
2908
  };
2898
- '& .SCCourseParticipantsButton-contrast-color': {
2899
- color: string;
2909
+ '& .SCCourseParticipantsButton-paper-contrast-color': {
2910
+ color: any;
2900
2911
  };
2901
2912
  '& .MuiAvatarGroup-root': {
2902
2913
  '&:not(.SCAvatarCourseSkeleton-root) .MuiAvatar-root': {
@@ -2930,6 +2941,9 @@ declare const theme: {
2930
2941
  dialogRoot: ({ theme }: {
2931
2942
  theme: any;
2932
2943
  }) => {
2944
+ '& .SCCourseParticipantsButton-dialog-paper-contrast-color': {
2945
+ color: any;
2946
+ };
2933
2947
  '& .SCCourseParticipantsButton-infinite-scroll': {
2934
2948
  [x: number]: {
2935
2949
  height: string;
@@ -3015,8 +3029,11 @@ declare const theme: {
3015
3029
  borderRadius: string;
3016
3030
  padding: any;
3017
3031
  backgroundColor: any;
3018
- '& .SCCourseUsersTable-contrast-color': {
3019
- color: string;
3032
+ '& .SCCourseUsersTable-default-contrast-color': {
3033
+ color: any;
3034
+ };
3035
+ '& .SCCourseUsersTable-paper-contrast-color': {
3036
+ color: any;
3020
3037
  };
3021
3038
  '& .SCCourseUsersTable-search': {
3022
3039
  '& > .MuiInputBase-root': {
@@ -3075,6 +3092,9 @@ declare const theme: {
3075
3092
  dialogRoot: ({ theme }: {
3076
3093
  theme: any;
3077
3094
  }) => {
3095
+ '& .SCCourseUsersTable-dialog-paper-contrast-color': {
3096
+ color: any;
3097
+ };
3078
3098
  '& .MuiDialogTitle-root': {
3079
3099
  color: string;
3080
3100
  };
@@ -3562,8 +3582,11 @@ declare const theme: {
3562
3582
  [x: number]: {
3563
3583
  marginBottom: string;
3564
3584
  };
3565
- '& .SCEditCourse-contrast-color': {
3566
- color: string;
3585
+ '& .SCEditCourse-default-contrast-color': {
3586
+ color: any;
3587
+ };
3588
+ '& .SCEditCourse-paper-contrast-color': {
3589
+ color: any;
3567
3590
  };
3568
3591
  '& .SCEditCourse-header': {
3569
3592
  [x: number]: {
@@ -3724,8 +3747,11 @@ declare const theme: {
3724
3747
  gap: string;
3725
3748
  '& .SCEditCourse-change-lesson-status-published-wrapper': {
3726
3749
  backgroundColor: any;
3750
+ '& .MuiTypography-root': {
3751
+ color: any;
3752
+ };
3727
3753
  '& .MuiIcon-root': {
3728
- color: string;
3754
+ color: any;
3729
3755
  };
3730
3756
  };
3731
3757
  '& .SCEditCourse-change-lesson-status-icon-draft': {
@@ -4591,6 +4617,8 @@ declare const theme: {
4591
4617
  };
4592
4618
  contributorsRoot: ({ theme }: any) => {
4593
4619
  '& .SCFeedObject-contributors-btn-participants': {
4620
+ display: string;
4621
+ gap: string;
4594
4622
  padding: any;
4595
4623
  marginLeft: any;
4596
4624
  color: string;
@@ -4606,7 +4634,7 @@ declare const theme: {
4606
4634
  "& .MuiAvatar-root": {
4607
4635
  backgroundColor: string;
4608
4636
  border: string;
4609
- color: string;
4637
+ color: any;
4610
4638
  fontSize: string;
4611
4639
  width: any;
4612
4640
  height: any;
@@ -6981,10 +7009,13 @@ declare const theme: {
6981
7009
  padding: number;
6982
7010
  };
6983
7011
  };
6984
- '& .SCNavigationSettingsIconButton-item .MuiListItemIcon-root': {
6985
- marginLeft: any;
6986
- marginBottom: any;
7012
+ '& .SCNavigationSettingsIconButton-item': {
6987
7013
  color: any;
7014
+ '& .MuiListItemIcon-root': {
7015
+ marginLeft: any;
7016
+ marginBottom: any;
7017
+ color: any;
7018
+ };
6988
7019
  };
6989
7020
  };
6990
7021
  drawerRoot: ({ theme }: any) => {
@@ -8111,6 +8142,9 @@ declare const theme: {
8111
8142
  '& .SCOnBoardingWidget-app-image-android': {
8112
8143
  width: string;
8113
8144
  marginTop: any;
8145
+ /**
8146
+ * Style assets - Imports - Start
8147
+ */
8114
8148
  marginBottom: any;
8115
8149
  };
8116
8150
  };
@@ -8442,6 +8476,9 @@ declare const theme: {
8442
8476
  padding: string;
8443
8477
  boxShadow: string;
8444
8478
  marginBottom: any;
8479
+ '& .SCPrivateMessageSnippetItem-contrast-color': {
8480
+ color: string;
8481
+ };
8445
8482
  '& .SCPrivateMessageSnippetItem-time': {
8446
8483
  float: string;
8447
8484
  fontSize: any;
@@ -8522,25 +8559,15 @@ declare const theme: {
8522
8559
  };
8523
8560
  };
8524
8561
  '& .SCPrivateMessageSnippets-new-message-button': {
8525
- color: string;
8526
8562
  alignSelf: string;
8527
- backgroundColor: string;
8528
- '&:hover': {
8529
- borderWidth: string;
8530
- backgroundColor: any;
8531
- };
8532
8563
  };
8533
8564
  '& .MuiList-root': {
8534
8565
  flexGrow: number;
8535
8566
  overflowY: string;
8536
8567
  padding: any;
8537
- '& .Mui-selected': {
8538
- backgroundColor: any;
8539
- };
8540
8568
  '& .MuiButtonBase-root, MuiListItemButton-root': {
8541
8569
  '&:hover': {
8542
8570
  borderRadius: string;
8543
- backgroundColor: any;
8544
8571
  };
8545
8572
  };
8546
8573
  };
@@ -8734,6 +8761,9 @@ declare const theme: {
8734
8761
  padding: any;
8735
8762
  boxShadow: string;
8736
8763
  marginBottom: any;
8764
+ '& .SCPrivateMessageThreadItem-paper-contrast-color': {
8765
+ color: any;
8766
+ };
8737
8767
  '& .MuiListItemSecondaryAction-root': {
8738
8768
  right: number;
8739
8769
  top: any;
@@ -9064,6 +9094,9 @@ declare const theme: {
9064
9094
  borderRadius: number;
9065
9095
  paddingBottom: number;
9066
9096
  overflow: string;
9097
+ '& .SCUser-paper-contrast-color': {
9098
+ color: any;
9099
+ };
9067
9100
  '& .MuiChip-root': {
9068
9101
  height: string;
9069
9102
  };
@@ -10161,8 +10194,6 @@ declare const theme: {
10161
10194
  '& .SCEventHeader-chip': {
10162
10195
  marginLeft: any;
10163
10196
  marginBottom: any;
10164
- backgroundColor: any;
10165
- color: any;
10166
10197
  border: string;
10167
10198
  '& .SCEventHeader-chip-icon': {
10168
10199
  marginLeft: any;
@@ -10189,7 +10220,6 @@ declare const theme: {
10189
10220
  alignItems: string;
10190
10221
  gap: any;
10191
10222
  paddingLeft: any;
10192
- color: any;
10193
10223
  '& .SCEventHeader-visibility-item': {
10194
10224
  fontSize: any;
10195
10225
  fontWeight: any;
@@ -10367,6 +10397,7 @@ declare const theme: {
10367
10397
  padding: string;
10368
10398
  };
10369
10399
  backgroundColor: any;
10400
+ color: any;
10370
10401
  justifyContent: string;
10371
10402
  height: number;
10372
10403
  borderRadius: string;
@@ -10430,6 +10461,7 @@ declare const theme: {
10430
10461
  '& .MuiList-root .SCEventSubscribeButton-item': {
10431
10462
  paddingTop: number;
10432
10463
  paddingBottom: number;
10464
+ color: string;
10433
10465
  '&.Mui-disabled': {
10434
10466
  paddingTop: any;
10435
10467
  paddingBottom: any;
@@ -10991,7 +11023,7 @@ declare const theme: {
10991
11023
  '& h5': {
10992
11024
  fontFamily: any;
10993
11025
  fontWeight: any;
10994
- color: string;
11026
+ color: any;
10995
11027
  fontSize: string;
10996
11028
  };
10997
11029
  '& .MuiList-root': {
@@ -6,8 +6,8 @@ declare const Component: {
6
6
  backgroundColor: any;
7
7
  border: string;
8
8
  borderRadius: string;
9
- '& .SCAccordionLessons-contrast-color': {
10
- color: string;
9
+ '& .SCAccordionLessons-paper-contrast-color': {
10
+ color: any;
11
11
  };
12
12
  '& .SCAccordionLessons-empty': {
13
13
  padding: any;
@@ -1,4 +1,4 @@
1
- import { darken, getContrastRatio, lighten } from '@mui/material';
1
+ import { getContrastRatio } from '@mui/material';
2
2
  const Component = {
3
3
  styleOverrides: {
4
4
  root: ({ theme }) => ({
@@ -9,10 +9,8 @@ const Component = {
9
9
  ? `1px solid ${theme.palette.grey[800]}`
10
10
  : `1px solid ${theme.palette.grey[300]}`,
11
11
  borderRadius: '5px',
12
- '& .SCAccordionLessons-contrast-color': {
13
- color: getContrastRatio(theme.palette.background.paper, theme.palette.common.white) > 4.5
14
- ? lighten(theme.palette.common.white, 0.5)
15
- : darken(theme.palette.common.white, 0.5)
12
+ '& .SCAccordionLessons-paper-contrast-color': {
13
+ color: theme.palette.getContrastText(theme.palette.background.paper)
16
14
  },
17
15
  '& .SCAccordionLessons-empty': {
18
16
  padding: theme.spacing('19px', 3)