@selfcommunity/react-theme-default 0.4.5-payments.168 → 0.4.5-payments.175

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 (78) 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 +181 -128
  20. package/lib/cjs/components/SCEditCourse.js +191 -137
  21. package/lib/cjs/components/SCEmptyStatus.d.ts +1 -0
  22. package/lib/cjs/components/SCEmptyStatus.js +1 -0
  23. package/lib/cjs/components/SCGroupForm.d.ts +3 -0
  24. package/lib/cjs/components/SCGroupForm.js +3 -0
  25. package/lib/cjs/components/SCLessonCommentObjects.d.ts +3 -1
  26. package/lib/cjs/components/SCLessonCommentObjects.js +4 -2
  27. package/lib/cjs/components/SCLessonDrawer.d.ts +3 -1
  28. package/lib/cjs/components/SCLessonDrawer.js +3 -1
  29. package/lib/cjs/components/SCLessonObject.d.ts +4 -1
  30. package/lib/cjs/components/SCLessonObject.js +5 -2
  31. package/lib/cjs/components/SCLessonTemplate.d.ts +5 -0
  32. package/lib/cjs/components/SCLessonTemplate.js +4 -0
  33. package/lib/cjs/components/SCNotification.d.ts +22 -0
  34. package/lib/cjs/components/SCNotification.js +22 -0
  35. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +150 -0
  36. package/lib/cjs/components/SCPaywallsConfigurator.js +153 -0
  37. package/lib/cjs/index.d.ts +517 -152
  38. package/lib/cjs/index.js +5 -1
  39. package/lib/esm/components/SCAccordionLessons.d.ts +15 -0
  40. package/lib/esm/components/SCAccordionLessons.js +16 -1
  41. package/lib/esm/components/SCAddUsersButton.d.ts +7 -1
  42. package/lib/esm/components/SCAddUsersButton.js +6 -1
  43. package/lib/esm/components/SCCourse.d.ts +4 -1
  44. package/lib/esm/components/SCCourse.js +4 -1
  45. package/lib/esm/components/SCCourseContentMenu.d.ts +3 -1
  46. package/lib/esm/components/SCCourseContentMenu.js +3 -1
  47. package/lib/esm/components/SCCourseDashboard.d.ts +18 -4
  48. package/lib/esm/components/SCCourseDashboard.js +23 -8
  49. package/lib/esm/components/SCCourseForm.d.ts +50 -3
  50. package/lib/esm/components/SCCourseForm.js +49 -4
  51. package/lib/esm/components/SCCourseTypePopover.d.ts +23 -0
  52. package/lib/esm/components/SCCourseTypePopover.js +22 -0
  53. package/lib/esm/components/SCCourseUsersTable.d.ts +16 -0
  54. package/lib/esm/components/SCCourseUsersTable.js +16 -0
  55. package/lib/esm/components/SCCourses.d.ts +10 -5
  56. package/lib/esm/components/SCCourses.js +11 -6
  57. package/lib/esm/components/SCEditCourse.d.ts +181 -128
  58. package/lib/esm/components/SCEditCourse.js +191 -137
  59. package/lib/esm/components/SCEmptyStatus.d.ts +1 -0
  60. package/lib/esm/components/SCEmptyStatus.js +1 -0
  61. package/lib/esm/components/SCGroupForm.d.ts +3 -0
  62. package/lib/esm/components/SCGroupForm.js +3 -0
  63. package/lib/esm/components/SCLessonCommentObjects.d.ts +3 -1
  64. package/lib/esm/components/SCLessonCommentObjects.js +4 -2
  65. package/lib/esm/components/SCLessonDrawer.d.ts +3 -1
  66. package/lib/esm/components/SCLessonDrawer.js +3 -1
  67. package/lib/esm/components/SCLessonObject.d.ts +4 -1
  68. package/lib/esm/components/SCLessonObject.js +5 -2
  69. package/lib/esm/components/SCLessonTemplate.d.ts +5 -0
  70. package/lib/esm/components/SCLessonTemplate.js +4 -0
  71. package/lib/esm/components/SCNotification.d.ts +22 -0
  72. package/lib/esm/components/SCNotification.js +22 -0
  73. package/lib/esm/components/SCPaywallsConfigurator.d.ts +150 -0
  74. package/lib/esm/components/SCPaywallsConfigurator.js +151 -0
  75. package/lib/esm/index.d.ts +517 -152
  76. package/lib/esm/index.js +5 -1
  77. package/lib/umd/react-theme-default.js +1 -1
  78. package/package.json +2 -2
@@ -3,10 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const Component = {
4
4
  styleOverrides: {
5
5
  root: ({ theme }) => ({
6
+ border: `1px solid ${theme.palette.grey['300']}`,
7
+ borderRadius: '5px',
8
+ padding: theme.spacing(1),
9
+ backgroundColor: theme.palette.common.white,
10
+ [theme.breakpoints.up('sm')]: {
11
+ padding: theme.spacing(2)
12
+ },
6
13
  '& .SCCourseUsersTable-search': {
7
14
  '& > .MuiInputBase-root': {
8
15
  borderBottomLeftRadius: 'unset',
9
16
  borderBottomRightRadius: 'unset'
17
+ },
18
+ '& .SCCourseUsersTable-end-adornment-wrapper': {
19
+ flexDirection: 'row',
20
+ '& .SCCourseUsersTable-search-button': {
21
+ minWidth: 'unset',
22
+ width: '36px',
23
+ height: '36px',
24
+ padding: theme.spacing(1)
25
+ }
10
26
  }
11
27
  },
12
28
  '& .SCCourseUsersTable-avatar-wrapper': {
@@ -103,10 +103,15 @@ declare const Component: {
103
103
  };
104
104
  };
105
105
  };
106
- '& .SCCourses-show-more': {
107
- paddingLeft: any;
108
- '&.Mui-selected, &:hover': {
109
- backgroundColor: string;
106
+ '& .SCCourses-end-message': {
107
+ display: string;
108
+ alignItems: string;
109
+ justifyContent: string;
110
+ '& .MuiButtonBase-root': {
111
+ paddingLeft: any;
112
+ '&.Mui-selected, &:hover': {
113
+ backgroundColor: string;
114
+ };
110
115
  };
111
116
  };
112
117
  };
@@ -118,7 +123,7 @@ declare const Component: {
118
123
  };
119
124
  };
120
125
  };
121
- coursesChipRoot: ({ theme, showForMe, showMyCourses }: any) => {
126
+ coursesChipRoot: ({ theme, showMine, showManagedCourses }: any) => {
122
127
  height: any;
123
128
  borderRadius: any;
124
129
  color: any;
@@ -105,10 +105,15 @@ const Component = {
105
105
  }
106
106
  }
107
107
  },
108
- '& .SCCourses-show-more': {
109
- paddingLeft: theme.spacing(1),
110
- '&.Mui-selected, &:hover': {
111
- backgroundColor: 'transparent'
108
+ '& .SCCourses-end-message': {
109
+ display: 'flex',
110
+ alignItems: 'center',
111
+ justifyContent: 'center',
112
+ '& .MuiButtonBase-root': {
113
+ paddingLeft: theme.spacing(1),
114
+ '&.Mui-selected, &:hover': {
115
+ backgroundColor: 'transparent'
116
+ }
112
117
  }
113
118
  }
114
119
  }),
@@ -120,10 +125,10 @@ const Component = {
120
125
  }
121
126
  }
122
127
  }),
123
- coursesChipRoot: ({ theme, showForMe, showMyCourses }) => ({
128
+ coursesChipRoot: ({ theme, showMine, showManagedCourses }) => ({
124
129
  height: theme.spacing(5.25),
125
130
  borderRadius: theme.spacing(0.5),
126
- color: showForMe || showMyCourses ? theme.palette.common.white : theme.palette.text.primary,
131
+ color: showMine || showManagedCourses ? theme.palette.common.white : theme.palette.text.primary,
127
132
  '& .MuiIcon-root': {
128
133
  fontSize: '1rem',
129
134
  color: theme.palette.common.white
@@ -6,6 +6,9 @@ declare const Component: {
6
6
  [x: number]: {
7
7
  marginBottom: string;
8
8
  };
9
+ '& .SCEditCourse-contrast-color': {
10
+ color: any;
11
+ };
9
12
  '& .SCEditCourse-header': {
10
13
  [x: number]: {
11
14
  paddingLeft: any;
@@ -51,6 +54,14 @@ declare const Component: {
51
54
  };
52
55
  '& .SCEditCourse-status': {
53
56
  borderRadius: any;
57
+ '& .MuiButtonBase-root': {
58
+ padding: number;
59
+ textDecoration: string;
60
+ '&:hover': {
61
+ backgroundColor: string;
62
+ textDecoration: string;
63
+ };
64
+ };
54
65
  };
55
66
  '& .SCEditCourse-lesson-empty-status': {
56
67
  border: string;
@@ -59,110 +70,121 @@ declare const Component: {
59
70
  '& .SCEditCourse-empty-status-button': {
60
71
  marginTop: string;
61
72
  };
62
- '& .SCEditCourse-lessons-sections-wrapper': {
63
- flexDirection: string;
64
- alignItems: string;
65
- justifyContent: string;
73
+ '& .SCEditCourse-lessons-inner-wrapper': {
74
+ [x: number]: {
75
+ padding: any;
76
+ };
77
+ border: string;
78
+ borderRadius: string;
79
+ backgroundColor: any;
66
80
  marginTop: string;
67
81
  padding: any;
68
- border: string;
69
- borderBottom: string;
70
- borderTopLeftRadius: string;
71
- borderTopRightRadius: string;
72
- '& .SCEditCourse-lessons-sections': {
82
+ '& .SCEditCourse-lessons-sections-wrapper': {
73
83
  flexDirection: string;
74
84
  alignItems: string;
75
- gap: string;
76
- '& .SCEditCourse-circle': {
77
- width: string;
78
- height: string;
79
- borderRadius: number;
80
- backgroundColor: any;
81
- };
82
- };
83
- '& .SCEditCourse-section-button': {
84
- alignItems: string;
85
- '& .SCEditCourse-section-button-typography': {
86
- textTransform: string;
87
- };
88
- };
89
- };
90
- '& .SCEditCourse-table-container': {
91
- width: string;
92
- border: string;
93
- borderBottomLeftRadius: string;
94
- borderBottomRightRadius: string;
95
- '& .SCEditCourse-table': {
96
- '& .SCEditCourse-cell-width': {
97
- width: string;
98
- };
99
- '& .SCEditCourse-cell-align-center': {
100
- textAlign: string;
101
- };
102
- '& .SCEditCourse-cell-align-right': {
103
- textAlign: string;
104
- };
105
- '& .SCEditCourse-cell-padding': {
106
- paddingRight: number;
107
- };
108
- '& .MuiTableCell-root': {
109
- textWrapMode: string;
85
+ justifyContent: string;
86
+ padding: any;
87
+ border: string;
88
+ borderBottom: string;
89
+ borderTopLeftRadius: string;
90
+ borderTopRightRadius: string;
91
+ backgroundColor: any;
92
+ '& .SCEditCourse-lessons-sections': {
93
+ flexDirection: string;
94
+ alignItems: string;
95
+ gap: string;
96
+ '& .SCEditCourse-circle': {
97
+ width: string;
98
+ height: string;
99
+ borderRadius: number;
100
+ backgroundColor: any;
101
+ };
110
102
  };
111
- '& .SCEditCourse-table-header': {
112
- '& .SCEditCourse-table-header-typography': {
103
+ '& .SCEditCourse-section-button': {
104
+ alignItems: string;
105
+ '& .SCEditCourse-section-button-typography': {
113
106
  textTransform: string;
114
107
  };
115
108
  };
116
- '& .SCEditCourse-table-body': {
117
- '& .SCEditCourse-table-body-icon-wrapper': {
118
- flexDirection: string;
119
- alignItems: string;
120
- gap: string;
109
+ };
110
+ '& .SCEditCourse-table-container': {
111
+ width: string;
112
+ border: string;
113
+ borderBottomLeftRadius: string;
114
+ borderBottomRightRadius: string;
115
+ backgroundColor: any;
116
+ '& .SCEditCourse-table': {
117
+ '& .SCEditCourse-cell-width': {
118
+ width: string;
121
119
  };
122
- '& .SCEditCourse-table-body-accordion': {
123
- backgroundColor: any;
120
+ '& .SCEditCourse-cell-align-center': {
121
+ textAlign: string;
124
122
  };
125
- '& .SCEditCourse-edit-mode-wrapper': {
126
- flexDirection: string;
127
- alignItems: string;
128
- gap: string;
129
- '& .SCEditCourse-edit-mode-save-button': {
130
- minWidth: string;
131
- borderRadius: string;
132
- padding: string;
133
- };
134
- '& .SCEditCourse-edit-mode-close-button': {
135
- border: string;
136
- borderRadius: string;
137
- padding: string;
123
+ '& .SCEditCourse-cell-align-right': {
124
+ textAlign: string;
125
+ };
126
+ '& .SCEditCourse-cell-padding': {
127
+ paddingRight: number;
128
+ };
129
+ '& .MuiTableCell-root': {
130
+ textWrapMode: string;
131
+ };
132
+ '& .SCEditCourse-table-header': {
133
+ '& .SCEditCourse-table-header-typography': {
134
+ textTransform: string;
138
135
  };
139
136
  };
140
- '& .SCEditCourse-actions-wrapper': {
141
- [x: number]: {
137
+ '& .SCEditCourse-table-body': {
138
+ '& .SCEditCourse-table-body-icon-wrapper': {
139
+ flexDirection: string;
140
+ alignItems: string;
142
141
  gap: string;
143
142
  };
144
- display: string;
145
- flexDirection: string;
146
- alignItems: string;
147
- gap: string;
148
- '& .SCEditCourse-change-lesson-status-published-wrapper': {
149
- color: any;
143
+ '& .SCEditCourse-table-body-accordion': {
150
144
  backgroundColor: any;
151
- '& .MuiIcon-root': {
145
+ };
146
+ '& .SCEditCourse-edit-mode-wrapper': {
147
+ flexDirection: string;
148
+ alignItems: string;
149
+ gap: string;
150
+ '& .SCEditCourse-edit-mode-save-button': {
151
+ minWidth: string;
152
+ borderRadius: string;
153
+ padding: string;
154
+ };
155
+ '& .SCEditCourse-edit-mode-close-button': {
156
+ border: string;
157
+ borderRadius: string;
158
+ padding: string;
159
+ };
160
+ };
161
+ '& .SCEditCourse-actions-wrapper': {
162
+ [x: number]: {
163
+ gap: string;
164
+ };
165
+ display: string;
166
+ flexDirection: string;
167
+ alignItems: string;
168
+ gap: string;
169
+ '& .SCEditCourse-change-lesson-status-published-wrapper': {
152
170
  color: any;
171
+ backgroundColor: any;
172
+ '& .MuiIcon-root': {
173
+ color: any;
174
+ };
175
+ };
176
+ '& .SCEditCourse-change-lesson-status-icon-draft': {
177
+ width: string;
178
+ height: string;
179
+ borderRadius: number;
180
+ backgroundColor: any;
153
181
  };
154
182
  };
155
- '& .SCEditCourse-change-lesson-status-icon-draft': {
156
- width: string;
157
- height: string;
158
- borderRadius: number;
159
- backgroundColor: any;
183
+ '& .SCEditCourse-table-body-collapse-wrapper': {
184
+ padding: number;
185
+ border: number;
160
186
  };
161
187
  };
162
- '& .SCEditCourse-table-body-collapse-wrapper': {
163
- padding: number;
164
- border: number;
165
- };
166
188
  };
167
189
  };
168
190
  };
@@ -174,19 +196,35 @@ declare const Component: {
174
196
  marginTop: string;
175
197
  marginBottom: any;
176
198
  };
177
- '& .SCEditCourse-options-wrapper': {
178
- gap: any;
179
- maxWidth: string;
180
- margin: string;
199
+ '& .SCEditCourse-options-container': {
200
+ [x: number]: {
201
+ padding: any;
202
+ };
203
+ border: string;
204
+ borderRadius: string;
205
+ padding: any;
206
+ backgroundColor: any;
207
+ '& .SCEditCourse-options-wrapper': {
208
+ gap: any;
209
+ maxWidth: string;
210
+ margin: string;
211
+ };
212
+ '& .SCEditCourse-options-divider': {
213
+ marginTop: string;
214
+ marginBottom: any;
215
+ };
216
+ '& .SCEditCourse-options-button-wrapper': {
217
+ alignItems: string;
218
+ maxWidth: string;
219
+ margin: any;
220
+ };
181
221
  };
182
- '& .SCEditCourse-options-divider': {
183
- marginTop: string;
222
+ '& .SCCourseForm-paywalls-configurator-wrap': {
184
223
  marginBottom: any;
185
- };
186
- '& .SCEditCourse-options-button-wrapper': {
187
- alignItems: string;
188
- maxWidth: string;
189
- margin: string;
224
+ '& .SCPaywallsConfigurator-content-access-type': {
225
+ fontSize: string;
226
+ padding: any;
227
+ };
190
228
  };
191
229
  };
192
230
  };
@@ -227,30 +265,39 @@ declare const Component: {
227
265
  gap: any;
228
266
  };
229
267
  };
230
- '& .SCEditCourse-lessons-sections-wrapper': {
231
- flexDirection: string;
232
- alignItems: string;
233
- justifyContent: string;
234
- marginTop: string;
235
- padding: any;
268
+ '& .SCEditCourse-lessons-inner-wrapper': {
269
+ [x: number]: {
270
+ padding: any;
271
+ };
236
272
  border: string;
237
273
  borderRadius: string;
238
- };
239
- '& .SCEditCourse-table-container': {
240
- width: string;
241
- border: string;
242
- borderBottomLeftRadius: string;
243
- borderBottomRightRadius: string;
244
- '& .SCEditCourse-margin': {
245
- margin: string;
246
- };
247
- '& .SCEditCourse-margin-left': {
248
- marginLeft: string;
249
- };
250
- '& .SCEditCourse-actions-wrapper': {
274
+ backgroundColor: any;
275
+ marginTop: string;
276
+ padding: any;
277
+ '& .SCEditCourse-lessons-sections-wrapper': {
251
278
  flexDirection: string;
279
+ alignItems: string;
252
280
  justifyContent: string;
253
- gap: string;
281
+ padding: any;
282
+ border: string;
283
+ borderRadius: string;
284
+ };
285
+ '& .SCEditCourse-table-container': {
286
+ width: string;
287
+ border: string;
288
+ borderBottomLeftRadius: string;
289
+ borderBottomRightRadius: string;
290
+ '& .SCEditCourse-margin': {
291
+ margin: string;
292
+ };
293
+ '& .SCEditCourse-margin-left': {
294
+ marginLeft: string;
295
+ };
296
+ '& .SCEditCourse-actions-wrapper': {
297
+ flexDirection: string;
298
+ justifyContent: string;
299
+ gap: string;
300
+ };
254
301
  };
255
302
  };
256
303
  '& .SCEditCourse-users-status-wrapper': {
@@ -259,19 +306,25 @@ declare const Component: {
259
306
  marginTop: string;
260
307
  marginBottom: any;
261
308
  };
262
- '& .SCEditCourse-options-wrapper': {
263
- gap: any;
264
- maxWidth: string;
265
- margin: string;
266
- };
267
- '& .SCEditCourse-options-divider': {
268
- marginTop: string;
269
- marginBottom: any;
270
- };
271
- '& .SCEditCourse-options-button-wrapper': {
272
- alignItems: string;
273
- maxWidth: string;
274
- margin: string;
309
+ '& .SCEditCourse-options-container': {
310
+ border: string;
311
+ borderRadius: string;
312
+ paddingBottom: string;
313
+ backgroundColor: any;
314
+ '& .SCEditCourse-options-wrapper': {
315
+ gap: any;
316
+ maxWidth: string;
317
+ margin: string;
318
+ };
319
+ '& .SCEditCourse-options-divider': {
320
+ marginTop: string;
321
+ marginBottom: any;
322
+ };
323
+ '& .SCEditCourse-options-button-wrapper': {
324
+ alignItems: string;
325
+ maxWidth: string;
326
+ margin: string;
327
+ };
275
328
  };
276
329
  };
277
330
  };