@selfcommunity/react-theme-default 0.4.5-payments.166 → 0.4.5-payments.169

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 (94) hide show
  1. package/lib/cjs/components/SCAccordionLessons.d.ts +15 -0
  2. package/lib/cjs/components/SCAccordionLessons.js +16 -1
  3. package/lib/cjs/components/SCAddUsersButton.d.ts +7 -1
  4. package/lib/cjs/components/SCAddUsersButton.js +6 -1
  5. package/lib/cjs/components/SCCourse.d.ts +4 -1
  6. package/lib/cjs/components/SCCourse.js +4 -1
  7. package/lib/cjs/components/SCCourseContentMenu.d.ts +3 -1
  8. package/lib/cjs/components/SCCourseContentMenu.js +3 -1
  9. package/lib/cjs/components/SCCourseDashboard.d.ts +18 -4
  10. package/lib/cjs/components/SCCourseDashboard.js +23 -8
  11. package/lib/cjs/components/SCCourseForm.d.ts +50 -3
  12. package/lib/cjs/components/SCCourseForm.js +52 -7
  13. package/lib/cjs/components/SCCourseTypePopover.d.ts +23 -0
  14. package/lib/cjs/components/SCCourseTypePopover.js +24 -0
  15. package/lib/cjs/components/SCCourseUsersTable.d.ts +16 -0
  16. package/lib/cjs/components/SCCourseUsersTable.js +16 -0
  17. package/lib/cjs/components/SCCourses.d.ts +10 -5
  18. package/lib/cjs/components/SCCourses.js +11 -6
  19. package/lib/cjs/components/SCEditCourse.d.ts +176 -130
  20. package/lib/cjs/components/SCEditCourse.js +185 -138
  21. package/lib/cjs/components/SCEmptyStatus.d.ts +1 -0
  22. package/lib/cjs/components/SCEmptyStatus.js +1 -0
  23. package/lib/cjs/components/SCEvent.d.ts +22 -0
  24. package/lib/cjs/components/SCEvent.js +22 -0
  25. package/lib/cjs/components/SCEventForm.d.ts +3 -0
  26. package/lib/cjs/components/SCEventForm.js +3 -0
  27. package/lib/cjs/components/SCEventFormDialog.d.ts +9 -0
  28. package/lib/cjs/components/SCEventFormDialog.js +9 -0
  29. package/lib/cjs/components/SCEvents.d.ts +11 -1
  30. package/lib/cjs/components/SCEvents.js +12 -2
  31. package/lib/cjs/components/SCGroupForm.d.ts +3 -0
  32. package/lib/cjs/components/SCGroupForm.js +3 -0
  33. package/lib/cjs/components/SCLessonCommentObjects.d.ts +3 -1
  34. package/lib/cjs/components/SCLessonCommentObjects.js +4 -2
  35. package/lib/cjs/components/SCLessonDrawer.d.ts +3 -1
  36. package/lib/cjs/components/SCLessonDrawer.js +3 -1
  37. package/lib/cjs/components/SCLessonObject.d.ts +4 -1
  38. package/lib/cjs/components/SCLessonObject.js +5 -2
  39. package/lib/cjs/components/SCLessonTemplate.d.ts +5 -0
  40. package/lib/cjs/components/SCLessonTemplate.js +4 -0
  41. package/lib/cjs/components/SCNotification.d.ts +22 -0
  42. package/lib/cjs/components/SCNotification.js +22 -0
  43. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +150 -0
  44. package/lib/cjs/components/SCPaywallsConfigurator.js +153 -0
  45. package/lib/cjs/index.d.ts +561 -159
  46. package/lib/cjs/index.js +5 -1
  47. package/lib/esm/components/SCAccordionLessons.d.ts +15 -0
  48. package/lib/esm/components/SCAccordionLessons.js +16 -1
  49. package/lib/esm/components/SCAddUsersButton.d.ts +7 -1
  50. package/lib/esm/components/SCAddUsersButton.js +6 -1
  51. package/lib/esm/components/SCCourse.d.ts +4 -1
  52. package/lib/esm/components/SCCourse.js +4 -1
  53. package/lib/esm/components/SCCourseContentMenu.d.ts +3 -1
  54. package/lib/esm/components/SCCourseContentMenu.js +3 -1
  55. package/lib/esm/components/SCCourseDashboard.d.ts +18 -4
  56. package/lib/esm/components/SCCourseDashboard.js +23 -8
  57. package/lib/esm/components/SCCourseForm.d.ts +50 -3
  58. package/lib/esm/components/SCCourseForm.js +49 -4
  59. package/lib/esm/components/SCCourseTypePopover.d.ts +23 -0
  60. package/lib/esm/components/SCCourseTypePopover.js +22 -0
  61. package/lib/esm/components/SCCourseUsersTable.d.ts +16 -0
  62. package/lib/esm/components/SCCourseUsersTable.js +16 -0
  63. package/lib/esm/components/SCCourses.d.ts +10 -5
  64. package/lib/esm/components/SCCourses.js +11 -6
  65. package/lib/esm/components/SCEditCourse.d.ts +176 -130
  66. package/lib/esm/components/SCEditCourse.js +185 -138
  67. package/lib/esm/components/SCEmptyStatus.d.ts +1 -0
  68. package/lib/esm/components/SCEmptyStatus.js +1 -0
  69. package/lib/esm/components/SCEvent.d.ts +22 -0
  70. package/lib/esm/components/SCEvent.js +22 -0
  71. package/lib/esm/components/SCEventForm.d.ts +3 -0
  72. package/lib/esm/components/SCEventForm.js +3 -0
  73. package/lib/esm/components/SCEventFormDialog.d.ts +9 -0
  74. package/lib/esm/components/SCEventFormDialog.js +9 -0
  75. package/lib/esm/components/SCEvents.d.ts +11 -1
  76. package/lib/esm/components/SCEvents.js +12 -2
  77. package/lib/esm/components/SCGroupForm.d.ts +3 -0
  78. package/lib/esm/components/SCGroupForm.js +3 -0
  79. package/lib/esm/components/SCLessonCommentObjects.d.ts +3 -1
  80. package/lib/esm/components/SCLessonCommentObjects.js +4 -2
  81. package/lib/esm/components/SCLessonDrawer.d.ts +3 -1
  82. package/lib/esm/components/SCLessonDrawer.js +3 -1
  83. package/lib/esm/components/SCLessonObject.d.ts +4 -1
  84. package/lib/esm/components/SCLessonObject.js +5 -2
  85. package/lib/esm/components/SCLessonTemplate.d.ts +5 -0
  86. package/lib/esm/components/SCLessonTemplate.js +4 -0
  87. package/lib/esm/components/SCNotification.d.ts +22 -0
  88. package/lib/esm/components/SCNotification.js +22 -0
  89. package/lib/esm/components/SCPaywallsConfigurator.d.ts +150 -0
  90. package/lib/esm/components/SCPaywallsConfigurator.js +151 -0
  91. package/lib/esm/index.d.ts +561 -159
  92. package/lib/esm/index.js +5 -1
  93. package/lib/umd/react-theme-default.js +1 -1
  94. package/package.json +2 -2
package/lib/cjs/index.js CHANGED
@@ -46,6 +46,7 @@ const SCCategoryHeader_1 = tslib_1.__importDefault(require("./components/SCCateg
46
46
  const SCCategoryTemplate_1 = tslib_1.__importDefault(require("./components/SCCategoryTemplate"));
47
47
  const SCCategoryTrendingFeedWidget_1 = tslib_1.__importDefault(require("./components/SCCategoryTrendingFeedWidget"));
48
48
  const SCCategoryTrendingUsersWidget_1 = tslib_1.__importDefault(require("./components/SCCategoryTrendingUsersWidget"));
49
+ const SCCourseTypePopover_1 = tslib_1.__importDefault(require("./components/SCCourseTypePopover"));
49
50
  const SCCourseUsersTable_1 = tslib_1.__importDefault(require("./components/SCCourseUsersTable"));
50
51
  const SCChangeCoverButton_1 = tslib_1.__importDefault(require("./components/SCChangeCoverButton"));
51
52
  const SCChangeGroupCoverButton_1 = tslib_1.__importDefault(require("./components/SCChangeGroupCoverButton"));
@@ -213,6 +214,7 @@ const SCCheckout_1 = tslib_1.__importDefault(require("./components/SCCheckout"))
213
214
  const SCCheckoutReturnDialog_1 = tslib_1.__importDefault(require("./components/SCCheckoutReturnDialog"));
214
215
  const SCHiddenPurchasableContent_1 = tslib_1.__importDefault(require("./components/SCHiddenPurchasableContent"));
215
216
  const SCPaywalls_1 = tslib_1.__importDefault(require("./components/SCPaywalls"));
217
+ const SCPaywallsConfigurator_1 = tslib_1.__importDefault(require("./components/SCPaywallsConfigurator"));
216
218
  /**
217
219
  * Style fragments - Imports - End
218
220
  */
@@ -361,6 +363,7 @@ const theme = {
361
363
  SCCourseFormDialog: SCCourseFormDialog_1.default,
362
364
  SCCourseParticipantsButton: SCCourseParticipantsButton_1.default,
363
365
  SCCourseInfoDetails: SCCourseInfoDetails_1.default,
366
+ SCCourseTypePopover: SCCourseTypePopover_1.default,
364
367
  SCCourseUsersTable: SCCourseUsersTable_1.default,
365
368
  SCCreateGroupButton: SCCreateGroupButton_1.default,
366
369
  SCCustomAdv: SCCustomAdv_1.default,
@@ -508,7 +511,8 @@ const theme = {
508
511
  SCCheckout: SCCheckout_1.default,
509
512
  SCCheckoutReturnDialog: SCCheckoutReturnDialog_1.default,
510
513
  SCHiddenPurchasableContent: SCHiddenPurchasableContent_1.default,
511
- SCPaywalls: SCPaywalls_1.default
514
+ SCPaywalls: SCPaywalls_1.default,
515
+ SCPaywallsConfigurator: SCPaywallsConfigurator_1.default
512
516
  },
513
517
  selfcommunity: {
514
518
  user: {
@@ -3,6 +3,7 @@ declare const Component: {
3
3
  root: ({ theme }: {
4
4
  theme: any;
5
5
  }) => {
6
+ backgroundColor: any;
6
7
  border: string;
7
8
  borderRadius: string;
8
9
  '& .SCAccordionLessons-empty': {
@@ -18,6 +19,11 @@ declare const Component: {
18
19
  '& .MuiAccordionSummary-content': {
19
20
  justifyContent: string;
20
21
  margin: number;
22
+ '& .SCAccordionLessons-name-wrapper': {
23
+ flexDirection: string;
24
+ alignItems: string;
25
+ gap: string;
26
+ };
21
27
  };
22
28
  };
23
29
  '& .SCAccordionLessons-details': {
@@ -35,6 +41,15 @@ declare const Component: {
35
41
  borderRadius: string;
36
42
  backgroundColor: any;
37
43
  };
44
+ '& .SCAccordionLessons-link': {
45
+ textDecoration: string;
46
+ padding: number;
47
+ justifyContent: string;
48
+ '&:hover': {
49
+ backgroundColor: string;
50
+ textDecoration: string;
51
+ };
52
+ };
38
53
  };
39
54
  };
40
55
  };
@@ -1,6 +1,7 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
+ backgroundColor: theme.palette.common.white,
4
5
  border: `1px solid ${theme.palette.grey['300']}`,
5
6
  borderRadius: '5px',
6
7
  '& .SCAccordionLessons-empty': {
@@ -15,7 +16,12 @@ const Component = {
15
16
  backgroundColor: theme.palette.grey['200'],
16
17
  '& .MuiAccordionSummary-content': {
17
18
  justifyContent: 'space-between',
18
- margin: 0
19
+ margin: 0,
20
+ '& .SCAccordionLessons-name-wrapper': {
21
+ flexDirection: 'row',
22
+ alignItems: 'center',
23
+ gap: '5px'
24
+ }
19
25
  }
20
26
  },
21
27
  '& .SCAccordionLessons-details': {
@@ -32,6 +38,15 @@ const Component = {
32
38
  height: theme.spacing(2),
33
39
  borderRadius: '9999px',
34
40
  backgroundColor: theme.palette.grey['300']
41
+ },
42
+ '& .SCAccordionLessons-link': {
43
+ textDecoration: 'underline',
44
+ padding: 0,
45
+ justifyContent: 'space-between',
46
+ '&:hover': {
47
+ backgroundColor: 'unset',
48
+ textDecoration: 'underline'
49
+ }
35
50
  }
36
51
  }
37
52
  }
@@ -1,6 +1,12 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
- root: () => {};
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ '&.SCAddUsersButton-contrast-color': {
7
+ color: any;
8
+ };
9
+ };
4
10
  dialogRoot: () => {
5
11
  '& .MuiDialogActions-root': {
6
12
  marginTop: string;
@@ -1,6 +1,11 @@
1
+ import { getContrastRatio } from '@mui/material';
1
2
  const Component = {
2
3
  styleOverrides: {
3
- root: () => ({}),
4
+ root: ({ theme }) => ({
5
+ '&.SCAddUsersButton-contrast-color': {
6
+ color: getContrastRatio(theme.palette.background.default, theme.palette.common.white) > 4.5 ? theme.palette.common.white : undefined
7
+ }
8
+ }),
4
9
  dialogRoot: () => ({
5
10
  '& .MuiDialogActions-root': {
6
11
  marginTop: '36px'
@@ -143,7 +143,10 @@ declare const Component: {
143
143
  height: any;
144
144
  };
145
145
  '& .MuiChip-root': {
146
- marginRight: any;
146
+ [x: number]: {
147
+ maxWidth: any;
148
+ };
149
+ margin: any;
147
150
  };
148
151
  };
149
152
  };
@@ -143,7 +143,10 @@ const Component = {
143
143
  height: theme.spacing(4)
144
144
  },
145
145
  '& .MuiChip-root': {
146
- marginRight: theme.spacing(0.5)
146
+ margin: theme.spacing(0.5),
147
+ [theme.breakpoints.up('lg')]: {
148
+ maxWidth: theme.spacing(20)
149
+ }
147
150
  }
148
151
  }
149
152
  },
@@ -8,6 +8,9 @@ declare const Component: {
8
8
  backgroundColor: any;
9
9
  };
10
10
  };
11
+ '& .MuiButtonBase-root': {
12
+ paddingLeft: any;
13
+ };
11
14
  };
12
15
  '& .SCCourseContentMenu-list-item': {
13
16
  '&:hover, &:focus, &:active': {
@@ -19,7 +22,6 @@ declare const Component: {
19
22
  color: any;
20
23
  };
21
24
  '& .SCCourseContentMenu-item': {
22
- padding: any;
23
25
  '& .MuiListItemText-primary': {
24
26
  fontWeight: any;
25
27
  };
@@ -7,6 +7,9 @@ const Component = {
7
7
  '&:hover, &:focus, &:active': {
8
8
  backgroundColor: theme.palette.grey[300]
9
9
  }
10
+ },
11
+ '& .MuiButtonBase-root': {
12
+ paddingLeft: theme.spacing(5)
10
13
  }
11
14
  },
12
15
  '& .SCCourseContentMenu-list-item': {
@@ -19,7 +22,6 @@ const Component = {
19
22
  color: theme.palette.text.secondary
20
23
  },
21
24
  '& .SCCourseContentMenu-item': {
22
- padding: theme.spacing(0.5, 0, 0.5, 3),
23
25
  '& .MuiListItemText-primary': {
24
26
  fontWeight: theme.typography.fontWeightMedium
25
27
  },
@@ -6,6 +6,9 @@ declare const Component: {
6
6
  [x: number]: {
7
7
  marginBottom: string;
8
8
  };
9
+ '& .SCCourseDashboard-contrast-color': {
10
+ color: any;
11
+ };
9
12
  '& .SCCourseDashboard-header': {
10
13
  [x: number]: {
11
14
  paddingLeft: string;
@@ -21,6 +24,8 @@ declare const Component: {
21
24
  borderBottomLeftRadius: string;
22
25
  borderBottomRightRadius: string;
23
26
  marginBottom: string;
27
+ objectFit: string;
28
+ objectPosition: string;
24
29
  };
25
30
  '& .SCCourseDashboard-header-outer-wrapper': {
26
31
  [x: number]: {
@@ -70,6 +75,7 @@ declare const Component: {
70
75
  border: string;
71
76
  borderRadius: string;
72
77
  padding: any;
78
+ backgroundColor: any;
73
79
  '& .SCCourseParticipantsButton-root': {
74
80
  justifyContent: string;
75
81
  padding: number;
@@ -97,9 +103,12 @@ declare const Component: {
97
103
  };
98
104
  '& .SCCourseDashboard-comments-container': {
99
105
  [x: number]: {
100
- paddingLeft: string;
101
- paddingRight: string;
106
+ padding: any;
102
107
  };
108
+ backgroundColor: any;
109
+ border: string;
110
+ borderRadius: string;
111
+ padding: any;
103
112
  '& .SCCourseDashboard-outer-wrapper': {
104
113
  marginTop: string;
105
114
  marginBottom: string;
@@ -133,6 +142,9 @@ declare const Component: {
133
142
  };
134
143
  };
135
144
  '&.SCCourseDashboard-student-container': {
145
+ '& .SCCourseDashboard-description': {
146
+ whiteSpace: string;
147
+ };
136
148
  '& .SCCourseDashboard-accordion': {
137
149
  borderTopLeftRadius: string;
138
150
  borderTopRightRadius: string;
@@ -141,12 +153,12 @@ declare const Component: {
141
153
  flexDirection: string;
142
154
  alignItems: string;
143
155
  justifyContent: string;
156
+ backgroundColor: any;
157
+ padding: string;
144
158
  '& .SCCourseDashboard-user': {
145
159
  flexDirection: string;
146
160
  alignItems: string;
147
161
  gap: string;
148
- marginTop: string;
149
- marginBottom: string;
150
162
  '& .SCCourseDashboard-avatar': {
151
163
  width: string;
152
164
  height: string;
@@ -177,6 +189,7 @@ declare const Component: {
177
189
  borderTopLeftRadius: string;
178
190
  borderTopRightRadius: string;
179
191
  padding: string;
192
+ backgroundColor: any;
180
193
  '& .SCCourseDashboard-circle': {
181
194
  width: string;
182
195
  height: string;
@@ -193,6 +206,7 @@ declare const Component: {
193
206
  border: string;
194
207
  borderRadius: string;
195
208
  padding: string;
209
+ backgroundColor: any;
196
210
  };
197
211
  '& .SCCourseDashboard-percentage-wrapper': {
198
212
  [x: number]: {
@@ -1,9 +1,13 @@
1
+ import { getContrastRatio } from '@mui/material';
1
2
  const Component = {
2
3
  styleOverrides: {
3
4
  root: ({ theme }) => ({
4
5
  [theme.breakpoints.down('sm')]: {
5
6
  marginBottom: '56px'
6
7
  },
8
+ '& .SCCourseDashboard-contrast-color': {
9
+ color: getContrastRatio(theme.palette.background.default, theme.palette.common.white) > 4.5 ? theme.palette.common.white : undefined
10
+ },
7
11
  '& .SCCourseDashboard-header': {
8
12
  [theme.breakpoints.down('sm')]: {
9
13
  paddingLeft: '14px',
@@ -16,6 +20,8 @@ const Component = {
16
20
  borderBottomLeftRadius: '10px',
17
21
  borderBottomRightRadius: '10px',
18
22
  marginBottom: '17px',
23
+ objectFit: 'cover',
24
+ objectPosition: 'center',
19
25
  [theme.breakpoints.down('sm')]: {
20
26
  display: 'none'
21
27
  }
@@ -63,8 +69,9 @@ const Component = {
63
69
  flex: 1,
64
70
  gap: '6px',
65
71
  border: `1px solid ${theme.palette.grey['300']}`,
66
- borderRadius: '10px',
72
+ borderRadius: '5px',
67
73
  padding: theme.spacing('17px', 3, '19px'),
74
+ backgroundColor: theme.palette.common.white,
68
75
  '& .SCCourseParticipantsButton-root': {
69
76
  justifyContent: 'flex-start',
70
77
  padding: 0
@@ -84,16 +91,19 @@ const Component = {
84
91
  }
85
92
  },
86
93
  '& .SCCourseDashboard-tab-panel': {
87
- padding: theme.spacing(3, 0, 0),
94
+ padding: theme.spacing(3, 0),
88
95
  [theme.breakpoints.down('md')]: {
89
96
  paddingLeft: '14px',
90
97
  paddingRight: '14px'
91
98
  }
92
99
  },
93
100
  '& .SCCourseDashboard-comments-container': {
101
+ backgroundColor: theme.palette.common.white,
102
+ border: `1px solid ${theme.palette.grey['300']}`,
103
+ borderRadius: '5px',
104
+ padding: theme.spacing(1),
94
105
  [theme.breakpoints.up('sm')]: {
95
- paddingLeft: '36px',
96
- paddingRight: '36px'
106
+ padding: theme.spacing(2)
97
107
  },
98
108
  '& .SCCourseDashboard-outer-wrapper': {
99
109
  marginTop: '15px',
@@ -128,6 +138,9 @@ const Component = {
128
138
  }
129
139
  },
130
140
  '&.SCCourseDashboard-student-container': {
141
+ '& .SCCourseDashboard-description': {
142
+ whiteSpace: 'pre-line'
143
+ },
131
144
  '& .SCCourseDashboard-accordion': {
132
145
  borderTopLeftRadius: 'unset',
133
146
  borderTopRightRadius: 'unset'
@@ -136,12 +149,12 @@ const Component = {
136
149
  flexDirection: 'row',
137
150
  alignItems: 'center',
138
151
  justifyContent: 'space-between',
152
+ backgroundColor: theme.palette.common.white,
153
+ padding: '6px',
139
154
  '& .SCCourseDashboard-user': {
140
155
  flexDirection: 'row',
141
156
  alignItems: 'center',
142
157
  gap: '4px',
143
- marginTop: '6px',
144
- marginBottom: '6px',
145
158
  '& .SCCourseDashboard-avatar': {
146
159
  width: '36px',
147
160
  height: '36px'
@@ -172,6 +185,7 @@ const Component = {
172
185
  borderTopLeftRadius: '5px',
173
186
  borderTopRightRadius: '5px',
174
187
  padding: '19px 24px',
188
+ backgroundColor: theme.palette.common.white,
175
189
  '& .SCCourseDashboard-circle': {
176
190
  width: '6px',
177
191
  height: '6px',
@@ -187,7 +201,8 @@ const Component = {
187
201
  gap: '13px',
188
202
  border: `1px solid ${theme.palette.grey['300']}`,
189
203
  borderRadius: '5px',
190
- padding: '11px 24px'
204
+ padding: '11px 24px',
205
+ backgroundColor: theme.palette.common.white
191
206
  },
192
207
  '& .SCCourseDashboard-percentage-wrapper': {
193
208
  justifyContent: 'space-between',
@@ -268,7 +283,7 @@ const Component = {
268
283
  flex: 1,
269
284
  gap: '6px',
270
285
  border: `1px solid ${theme.palette.grey['300']}`,
271
- borderRadius: '10px',
286
+ borderRadius: '5px',
272
287
  padding: theme.spacing('17px', 3, '19px'),
273
288
  '& .SCCourseParticipantsButton-root': {
274
289
  justifyContent: 'flex-start',
@@ -1,6 +1,11 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
- root: ({ theme }: any) => {
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ '& .SCCourseForm-contrast-color': {
7
+ color: any;
8
+ };
4
9
  '& .SCCourseForm-cover': {
5
10
  position: string;
6
11
  height: number;
@@ -18,8 +23,20 @@ declare const Component: {
18
23
  marginTop: any;
19
24
  color: any;
20
25
  };
26
+ '& h5': {
27
+ padding: any;
28
+ };
21
29
  '& .SCCourseForm-form': {
22
- '& h5': {
30
+ '&.SCCourseForm-step-customization': {
31
+ [x: number]: {
32
+ padding: any;
33
+ };
34
+ backgroundColor: any;
35
+ border: string;
36
+ borderBottom: string;
37
+ borderRadius: string;
38
+ borderBottomLeftRadius: string;
39
+ borderBottomRightRadius: string;
23
40
  padding: any;
24
41
  };
25
42
  '& .SCCourseForm-name': {
@@ -29,6 +46,7 @@ declare const Component: {
29
46
  marginTop: any;
30
47
  };
31
48
  '& .SCCourseForm-edit-root': {
49
+ backgroundColor: any;
32
50
  marginTop: any;
33
51
  '& .SCCourseForm-edit-card': {
34
52
  display: string;
@@ -77,6 +95,13 @@ declare const Component: {
77
95
  '& .SCCourseForm-edit-privacy-item-info': {
78
96
  marginLeft: any;
79
97
  };
98
+ '& .SCCourseForm-disabled': {
99
+ opacity: number;
100
+ };
101
+ '& .SCCourseForm-edit-card': {
102
+ alignItems: string;
103
+ margin: any;
104
+ };
80
105
  };
81
106
  };
82
107
  };
@@ -93,6 +118,10 @@ declare const Component: {
93
118
  backgroundColor: string;
94
119
  };
95
120
  };
121
+ '& .SCCourseForm-disabled': {
122
+ pointerEvents: string;
123
+ opacity: number;
124
+ };
96
125
  '& .MuiCard-root': {
97
126
  boxShadow: string;
98
127
  border: string;
@@ -107,6 +136,13 @@ declare const Component: {
107
136
  '& .MuiTypography-body2': {
108
137
  whiteSpace: string;
109
138
  };
139
+ '& .SCCourseForm-card-title': {
140
+ display: string;
141
+ justifyContent: string;
142
+ '& .MuiChip-root': {
143
+ borderRadius: number;
144
+ };
145
+ };
110
146
  };
111
147
  };
112
148
  };
@@ -114,10 +150,21 @@ declare const Component: {
114
150
  color: any;
115
151
  };
116
152
  '& .SCCourseForm-actions': {
117
- marginTop: any;
118
153
  display: string;
119
154
  justifyContent: string;
120
155
  gap: any;
156
+ '&.SCCourseForm-step-customization': {
157
+ [x: number]: {
158
+ padding: any;
159
+ };
160
+ backgroundColor: any;
161
+ border: string;
162
+ borderTop: string;
163
+ borderRadius: string;
164
+ borderTopLeftRadius: string;
165
+ borderTopRightRadius: string;
166
+ padding: any;
167
+ };
121
168
  '& button': {
122
169
  width: string;
123
170
  };
@@ -1,7 +1,10 @@
1
- import { alpha } from '@mui/system';
1
+ import { alpha, getContrastRatio } from '@mui/material';
2
2
  const Component = {
3
3
  styleOverrides: {
4
4
  root: ({ theme }) => ({
5
+ '& .SCCourseForm-contrast-color': {
6
+ color: getContrastRatio(theme.palette.background.default, theme.palette.common.white) > 4.5 ? theme.palette.common.white : undefined
7
+ },
5
8
  '& .SCCourseForm-cover': {
6
9
  position: 'relative',
7
10
  height: 103,
@@ -19,9 +22,21 @@ const Component = {
19
22
  marginTop: theme.spacing(4.5),
20
23
  color: theme.palette.text.secondary
21
24
  },
25
+ '& h5': {
26
+ padding: theme.spacing(1)
27
+ },
22
28
  '& .SCCourseForm-form': {
23
- '& h5': {
24
- padding: theme.spacing(1)
29
+ '&.SCCourseForm-step-customization': {
30
+ backgroundColor: theme.palette.common.white,
31
+ border: `1px solid ${theme.palette.grey['300']}`,
32
+ borderBottom: 'unset',
33
+ borderRadius: '5px',
34
+ borderBottomLeftRadius: 'unset',
35
+ borderBottomRightRadius: 'unset',
36
+ padding: theme.spacing(1, 1, 0),
37
+ [theme.breakpoints.up('sm')]: {
38
+ padding: theme.spacing(2, 2, 0)
39
+ }
25
40
  },
26
41
  '& .SCCourseForm-name': {
27
42
  marginTop: theme.spacing(3)
@@ -30,6 +45,7 @@ const Component = {
30
45
  marginTop: theme.spacing(1)
31
46
  },
32
47
  '& .SCCourseForm-edit-root': {
48
+ backgroundColor: theme.palette.common.white,
33
49
  marginTop: theme.spacing(1),
34
50
  '& .SCCourseForm-edit-card': {
35
51
  display: 'flex',
@@ -77,6 +93,13 @@ const Component = {
77
93
  },
78
94
  '& .SCCourseForm-edit-privacy-item-info': {
79
95
  marginLeft: theme.spacing(2)
96
+ },
97
+ '& .SCCourseForm-disabled': {
98
+ opacity: 0.5
99
+ },
100
+ '& .SCCourseForm-edit-card': {
101
+ alignItems: 'center',
102
+ margin: theme.spacing(1)
80
103
  }
81
104
  }
82
105
  }
@@ -94,6 +117,10 @@ const Component = {
94
117
  backgroundColor: alpha(theme.palette.success.main, theme.palette.action.selectedOpacity)
95
118
  }
96
119
  },
120
+ '& .SCCourseForm-disabled': {
121
+ pointerEvents: 'none',
122
+ opacity: 0.5
123
+ },
97
124
  '& .MuiCard-root': {
98
125
  boxShadow: 'none',
99
126
  border: `1px solid ${theme.palette.grey[300]}`,
@@ -107,6 +134,13 @@ const Component = {
107
134
  },
108
135
  '& .MuiTypography-body2': {
109
136
  whiteSpace: 'pre-line'
137
+ },
138
+ '& .SCCourseForm-card-title': {
139
+ display: 'flex',
140
+ justifyContent: 'space-between',
141
+ '& .MuiChip-root': {
142
+ borderRadius: 0
143
+ }
110
144
  }
111
145
  }
112
146
  }
@@ -115,10 +149,21 @@ const Component = {
115
149
  color: theme.palette.error.main
116
150
  },
117
151
  '& .SCCourseForm-actions': {
118
- marginTop: theme.spacing(2),
119
152
  display: 'flex',
120
153
  justifyContent: 'flex-end',
121
154
  gap: theme.spacing(2),
155
+ '&.SCCourseForm-step-customization': {
156
+ backgroundColor: theme.palette.common.white,
157
+ border: `1px solid ${theme.palette.grey['300']}`,
158
+ borderTop: 'unset',
159
+ borderRadius: '5px',
160
+ borderTopLeftRadius: 'unset',
161
+ borderTopRightRadius: 'unset',
162
+ padding: theme.spacing(0, 1, 1),
163
+ [theme.breakpoints.up('sm')]: {
164
+ padding: theme.spacing(0, 2, 2)
165
+ }
166
+ },
122
167
  '& button': {
123
168
  width: 'fit-content'
124
169
  }
@@ -0,0 +1,23 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ flexDirection: string;
7
+ alignItems: string;
8
+ gap: any;
9
+ '&.SCCourseTypePopover-contrast-color': {
10
+ color: any;
11
+ };
12
+ '& .SCCourseTypePopover-button': {
13
+ padding: number;
14
+ textDecoration: string;
15
+ '&:hover': {
16
+ backgroundColor: string;
17
+ textDecoration: string;
18
+ };
19
+ };
20
+ };
21
+ };
22
+ };
23
+ export default Component;
@@ -0,0 +1,22 @@
1
+ import { getContrastRatio } from '@mui/material';
2
+ const Component = {
3
+ styleOverrides: {
4
+ root: ({ theme }) => ({
5
+ flexDirection: 'row',
6
+ alignItems: 'center',
7
+ gap: theme.spacing(1),
8
+ '&.SCCourseTypePopover-contrast-color': {
9
+ color: getContrastRatio(theme.palette.background.default, theme.palette.common.white) > 4.5 ? theme.palette.common.white : undefined
10
+ },
11
+ '& .SCCourseTypePopover-button': {
12
+ padding: 0,
13
+ textDecoration: 'underline',
14
+ '&:hover': {
15
+ backgroundColor: 'unset',
16
+ textDecoration: 'underline'
17
+ }
18
+ }
19
+ })
20
+ }
21
+ };
22
+ export default Component;
@@ -3,11 +3,27 @@ declare const Component: {
3
3
  root: ({ theme }: {
4
4
  theme: any;
5
5
  }) => {
6
+ [x: number]: {
7
+ padding: any;
8
+ };
9
+ border: string;
10
+ borderRadius: string;
11
+ padding: any;
12
+ backgroundColor: any;
6
13
  '& .SCCourseUsersTable-search': {
7
14
  '& > .MuiInputBase-root': {
8
15
  borderBottomLeftRadius: string;
9
16
  borderBottomRightRadius: string;
10
17
  };
18
+ '& .SCCourseUsersTable-end-adornment-wrapper': {
19
+ flexDirection: string;
20
+ '& .SCCourseUsersTable-search-button': {
21
+ minWidth: string;
22
+ width: string;
23
+ height: string;
24
+ padding: any;
25
+ };
26
+ };
11
27
  };
12
28
  '& .SCCourseUsersTable-avatar-wrapper': {
13
29
  flexDirection: string;