@selfcommunity/react-theme-default 0.4.5-payments.149 → 0.4.5-payments.151
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.
- package/lib/cjs/components/SCAccordionLessons.d.ts +3 -0
- package/lib/cjs/components/SCAccordionLessons.js +3 -0
- package/lib/cjs/components/SCCategoryFollowButton.d.ts +8 -0
- package/lib/cjs/components/SCCategoryFollowButton.js +10 -0
- package/lib/cjs/components/SCCategoryHeader.d.ts +4 -0
- package/lib/cjs/components/SCCategoryHeader.js +5 -1
- package/lib/cjs/components/SCCheckout.d.ts +3 -1
- package/lib/cjs/components/SCCheckout.js +3 -1
- package/lib/cjs/components/SCCommentObjectReply.d.ts +7 -0
- package/lib/cjs/components/SCCommentObjectReply.js +8 -1
- package/lib/cjs/components/SCComposer.d.ts +13 -0
- package/lib/cjs/components/SCComposer.js +14 -22
- package/lib/cjs/components/SCCourse.d.ts +25 -6
- package/lib/cjs/components/SCCourse.js +28 -9
- package/lib/cjs/components/SCCourseDashboard.d.ts +15 -1
- package/lib/cjs/components/SCCourseDashboard.js +16 -2
- package/lib/cjs/components/SCCourses.d.ts +0 -1
- package/lib/cjs/components/SCCourses.js +0 -1
- package/lib/cjs/components/SCEditCourse.d.ts +6 -0
- package/lib/cjs/components/SCEditCourse.js +6 -0
- package/lib/cjs/components/SCEditor.d.ts +0 -20
- package/lib/cjs/components/SCEditor.js +0 -20
- package/lib/cjs/components/SCHiddenPurchasableContent.d.ts +8 -0
- package/lib/cjs/components/SCHiddenPurchasableContent.js +10 -0
- package/lib/cjs/components/SCLessonCommentObject.d.ts +3 -0
- package/lib/cjs/components/SCLessonCommentObject.js +3 -0
- package/lib/cjs/components/SCLessonFilePreview.d.ts +31 -0
- package/lib/cjs/components/SCLessonFilePreview.js +33 -0
- package/lib/cjs/components/SCLessonObject.d.ts +22 -4
- package/lib/cjs/components/SCLessonObject.js +22 -5
- package/lib/cjs/components/SCLessonTemplate.d.ts +5 -1
- package/lib/cjs/components/SCLessonTemplate.js +6 -1
- package/lib/cjs/components/SCPaymentProduct.d.ts +0 -7
- package/lib/cjs/components/SCPaymentProduct.js +3 -10
- package/lib/cjs/index.d.ts +151 -44
- package/lib/cjs/index.js +7 -1
- package/lib/esm/components/SCAccordionLessons.d.ts +3 -0
- package/lib/esm/components/SCAccordionLessons.js +3 -0
- package/lib/esm/components/SCCategoryFollowButton.d.ts +8 -0
- package/lib/esm/components/SCCategoryFollowButton.js +8 -0
- package/lib/esm/components/SCCategoryHeader.d.ts +4 -0
- package/lib/esm/components/SCCategoryHeader.js +5 -1
- package/lib/esm/components/SCCheckout.d.ts +3 -1
- package/lib/esm/components/SCCheckout.js +3 -1
- package/lib/esm/components/SCCommentObjectReply.d.ts +7 -0
- package/lib/esm/components/SCCommentObjectReply.js +8 -1
- package/lib/esm/components/SCComposer.d.ts +13 -0
- package/lib/esm/components/SCComposer.js +14 -22
- package/lib/esm/components/SCCourse.d.ts +25 -6
- package/lib/esm/components/SCCourse.js +28 -9
- package/lib/esm/components/SCCourseDashboard.d.ts +15 -1
- package/lib/esm/components/SCCourseDashboard.js +16 -2
- package/lib/esm/components/SCCourses.d.ts +0 -1
- package/lib/esm/components/SCCourses.js +0 -1
- package/lib/esm/components/SCEditCourse.d.ts +6 -0
- package/lib/esm/components/SCEditCourse.js +6 -0
- package/lib/esm/components/SCEditor.d.ts +0 -20
- package/lib/esm/components/SCEditor.js +0 -20
- package/lib/esm/components/SCHiddenPurchasableContent.d.ts +8 -0
- package/lib/esm/components/SCHiddenPurchasableContent.js +8 -0
- package/lib/esm/components/SCLessonCommentObject.d.ts +3 -0
- package/lib/esm/components/SCLessonCommentObject.js +3 -0
- package/lib/esm/components/SCLessonFilePreview.d.ts +31 -0
- package/lib/esm/components/SCLessonFilePreview.js +31 -0
- package/lib/esm/components/SCLessonObject.d.ts +22 -4
- package/lib/esm/components/SCLessonObject.js +22 -5
- package/lib/esm/components/SCLessonTemplate.d.ts +5 -1
- package/lib/esm/components/SCLessonTemplate.js +6 -1
- package/lib/esm/components/SCPaymentProduct.d.ts +0 -7
- package/lib/esm/components/SCPaymentProduct.js +3 -10
- package/lib/esm/index.d.ts +151 -44
- package/lib/esm/index.js +7 -1
- package/lib/umd/react-theme-default.js +1 -1
- package/package.json +2 -2
|
@@ -46,6 +46,10 @@ declare const Component: {
|
|
|
46
46
|
'& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
|
|
47
47
|
textAlign: string;
|
|
48
48
|
marginBottom: any;
|
|
49
|
+
'& button': {
|
|
50
|
+
marginLeft: any;
|
|
51
|
+
marginRight: any;
|
|
52
|
+
};
|
|
49
53
|
};
|
|
50
54
|
'& .SCCategoryHeader-followed': {
|
|
51
55
|
marginBottom: string;
|
|
@@ -45,7 +45,11 @@ const Component = {
|
|
|
45
45
|
},
|
|
46
46
|
'& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
|
|
47
47
|
textAlign: 'center',
|
|
48
|
-
marginBottom: theme.spacing(2)
|
|
48
|
+
marginBottom: theme.spacing(2),
|
|
49
|
+
'& button': {
|
|
50
|
+
marginLeft: theme.spacing(0.5),
|
|
51
|
+
marginRight: theme.spacing(0.5)
|
|
52
|
+
}
|
|
49
53
|
},
|
|
50
54
|
'& .SCCategoryHeader-followed': {
|
|
51
55
|
marginBottom: `${theme.spacing(0)} !important`,
|
|
@@ -27,6 +27,13 @@ declare const Component: {
|
|
|
27
27
|
'& .SCCommentObjectReply-comment': {
|
|
28
28
|
overflow: string;
|
|
29
29
|
borderRadius: number;
|
|
30
|
+
'& .SCCommentObjectReply-media': {
|
|
31
|
+
maxWidth: number;
|
|
32
|
+
padding: any;
|
|
33
|
+
'& .SCMediaFile-media': {
|
|
34
|
+
height: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
30
37
|
};
|
|
31
38
|
'& .SCCommentObjectReply-actions': {
|
|
32
39
|
marginLeft: any;
|
|
@@ -26,7 +26,14 @@ const Component = {
|
|
|
26
26
|
},
|
|
27
27
|
'& .SCCommentObjectReply-comment': {
|
|
28
28
|
overflow: 'visible',
|
|
29
|
-
borderRadius: theme.shape.borderRadius * 0.5
|
|
29
|
+
borderRadius: theme.shape.borderRadius * 0.5,
|
|
30
|
+
'& .SCCommentObjectReply-media': {
|
|
31
|
+
maxWidth: 200,
|
|
32
|
+
padding: theme.spacing(1),
|
|
33
|
+
'& .SCMediaFile-media': {
|
|
34
|
+
height: '40px !important'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
30
37
|
},
|
|
31
38
|
'& .SCCommentObjectReply-actions': {
|
|
32
39
|
marginLeft: theme.spacing(),
|
|
@@ -170,11 +170,24 @@ declare const Component: {
|
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
contentLessonRoot: ({ theme }: any) => {
|
|
173
|
+
padding: any;
|
|
173
174
|
'& .SCEditor-root': {
|
|
174
175
|
'& .SCEditor-content': {
|
|
175
176
|
paddingTop: any;
|
|
176
177
|
};
|
|
177
178
|
};
|
|
179
|
+
'& .SCComposer-content-lesson-medias': {
|
|
180
|
+
'& .SCMediaFile-preview-root': {
|
|
181
|
+
marginBottom: any;
|
|
182
|
+
'& .SCMediaFile-media': {
|
|
183
|
+
height: string;
|
|
184
|
+
maxWidth: number;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
'& .SCMediaLink-preview-root': {
|
|
188
|
+
marginBottom: any;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
178
191
|
};
|
|
179
192
|
layerTransitionRoot: ({ theme }: any) => {
|
|
180
193
|
position: string;
|
|
@@ -171,31 +171,23 @@ const Component = {
|
|
|
171
171
|
}
|
|
172
172
|
}),
|
|
173
173
|
contentLessonRoot: ({ theme }) => ({
|
|
174
|
-
|
|
174
|
+
padding: theme.spacing(2),
|
|
175
175
|
'& .SCEditor-root': {
|
|
176
176
|
'& .SCEditor-content': {
|
|
177
|
-
paddingTop: theme.spacing(1)
|
|
177
|
+
paddingTop: theme.spacing(1.5)
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
'& .SCComposer-content-lesson-medias': {
|
|
181
|
+
'& .SCMediaFile-preview-root': {
|
|
182
|
+
marginBottom: theme.spacing(1),
|
|
183
|
+
'& .SCMediaFile-media': {
|
|
184
|
+
height: '60px !important',
|
|
185
|
+
maxWidth: 140
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
'& .SCMediaLink-preview-root': {
|
|
189
|
+
marginBottom: theme.spacing(1)
|
|
178
190
|
}
|
|
179
|
-
// paddingBottom: theme.spacing(2),
|
|
180
|
-
// '& .MuiInputBase-root': {
|
|
181
|
-
// paddingLeft: 0,
|
|
182
|
-
// paddingRight: 0,
|
|
183
|
-
// paddingBottom: 0,
|
|
184
|
-
// fontSize: '1.429rem',
|
|
185
|
-
// fontWeight: theme.typography.fontWeightBold,
|
|
186
|
-
// '& fieldset': {
|
|
187
|
-
// display: 'none'
|
|
188
|
-
// },
|
|
189
|
-
// '&.MuiInputBase-adornedEnd .MuiTypography-root': {
|
|
190
|
-
// alignSelf: 'end'
|
|
191
|
-
// },
|
|
192
|
-
// '&.Mui-error': {
|
|
193
|
-
// color: theme.palette.error.main
|
|
194
|
-
// }
|
|
195
|
-
// },
|
|
196
|
-
// '& .MuiFormHelperText-root': {
|
|
197
|
-
// marginLeft: 0
|
|
198
|
-
// }
|
|
199
191
|
}
|
|
200
192
|
}),
|
|
201
193
|
layerTransitionRoot: ({ theme }) => ({
|
|
@@ -62,7 +62,10 @@ declare const Component: {
|
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
previewRoot: ({ theme }: any) => {
|
|
65
|
-
|
|
65
|
+
[x: number]: {
|
|
66
|
+
minHeight: string;
|
|
67
|
+
};
|
|
68
|
+
height: string;
|
|
66
69
|
'& .SCCourse-preview-image-wrapper': {
|
|
67
70
|
position: string;
|
|
68
71
|
'& .SCCourse-preview-image': {
|
|
@@ -88,12 +91,19 @@ declare const Component: {
|
|
|
88
91
|
height: any;
|
|
89
92
|
border: string;
|
|
90
93
|
};
|
|
94
|
+
'.MuiBadge-badge': {
|
|
95
|
+
left: any;
|
|
96
|
+
top: any;
|
|
97
|
+
};
|
|
91
98
|
};
|
|
92
99
|
'& .SCCourse-preview-content': {
|
|
93
100
|
padding: any;
|
|
94
101
|
'& .SCCourse-preview-creator': {
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
textDecoration: string;
|
|
103
|
+
color: string;
|
|
104
|
+
'& .MuiTypography-root': {
|
|
105
|
+
marginBottom: any;
|
|
106
|
+
};
|
|
97
107
|
};
|
|
98
108
|
'& .SCCourse-preview-name-wrapper': {
|
|
99
109
|
textDecoration: string;
|
|
@@ -157,7 +167,10 @@ declare const Component: {
|
|
|
157
167
|
};
|
|
158
168
|
};
|
|
159
169
|
createPlaceholderRoot: ({ theme }: any) => {
|
|
160
|
-
|
|
170
|
+
[x: number]: {
|
|
171
|
+
minHeight: string;
|
|
172
|
+
};
|
|
173
|
+
height: string;
|
|
161
174
|
'& .SCCourse-create-placeholder-image-wrapper': {
|
|
162
175
|
position: string;
|
|
163
176
|
'& .SCCourse-create-placeholder-image': {
|
|
@@ -199,18 +212,24 @@ declare const Component: {
|
|
|
199
212
|
};
|
|
200
213
|
skeletonRoot: ({ theme }: any) => {
|
|
201
214
|
'& .SCCourse-skeleton-preview-root': {
|
|
215
|
+
[x: number]: {
|
|
216
|
+
minHeight: string;
|
|
217
|
+
};
|
|
218
|
+
height: string;
|
|
202
219
|
'& .SCCourse-skeleton-preview-avatar': {
|
|
203
220
|
position: string;
|
|
204
|
-
bottom:
|
|
221
|
+
bottom: any;
|
|
205
222
|
left: any;
|
|
223
|
+
width: any;
|
|
224
|
+
height: any;
|
|
206
225
|
border: string;
|
|
207
226
|
};
|
|
208
227
|
'& .SCCourse-skeleton-preview-content': {
|
|
209
228
|
padding: string;
|
|
229
|
+
minHeight: number;
|
|
210
230
|
};
|
|
211
231
|
'& .SCCourse-skeleton-preview-actions': {
|
|
212
232
|
display: string;
|
|
213
|
-
marginTop: any;
|
|
214
233
|
justifyContent: string;
|
|
215
234
|
padding: any;
|
|
216
235
|
};
|
|
@@ -62,7 +62,10 @@ const Component = {
|
|
|
62
62
|
}
|
|
63
63
|
}),
|
|
64
64
|
previewRoot: ({ theme }) => ({
|
|
65
|
-
|
|
65
|
+
height: '100%',
|
|
66
|
+
[theme.breakpoints.up('sm')]: {
|
|
67
|
+
minHeight: '376px'
|
|
68
|
+
},
|
|
66
69
|
'& .SCCourse-preview-image-wrapper': {
|
|
67
70
|
position: 'relative',
|
|
68
71
|
'& .SCCourse-preview-image': {
|
|
@@ -87,13 +90,20 @@ const Component = {
|
|
|
87
90
|
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
88
91
|
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
89
92
|
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
93
|
+
},
|
|
94
|
+
'.MuiBadge-badge': {
|
|
95
|
+
left: theme.spacing(3),
|
|
96
|
+
top: theme.spacing(-0.5)
|
|
90
97
|
}
|
|
91
98
|
},
|
|
92
99
|
'& .SCCourse-preview-content': {
|
|
93
|
-
padding: theme.spacing(2),
|
|
100
|
+
padding: theme.spacing(1.5, 2, 2, 2),
|
|
94
101
|
'& .SCCourse-preview-creator': {
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
textDecoration: 'none',
|
|
103
|
+
color: 'inherit',
|
|
104
|
+
'& .MuiTypography-root': {
|
|
105
|
+
marginBottom: theme.spacing(1)
|
|
106
|
+
}
|
|
97
107
|
},
|
|
98
108
|
'& .SCCourse-preview-name-wrapper': {
|
|
99
109
|
textDecoration: 'none',
|
|
@@ -157,7 +167,10 @@ const Component = {
|
|
|
157
167
|
}
|
|
158
168
|
}),
|
|
159
169
|
createPlaceholderRoot: ({ theme }) => ({
|
|
160
|
-
|
|
170
|
+
height: '100%',
|
|
171
|
+
[theme.breakpoints.up('sm')]: {
|
|
172
|
+
minHeight: '376px'
|
|
173
|
+
},
|
|
161
174
|
'& .SCCourse-create-placeholder-image-wrapper': {
|
|
162
175
|
position: 'relative',
|
|
163
176
|
'& .SCCourse-create-placeholder-image': {
|
|
@@ -194,23 +207,29 @@ const Component = {
|
|
|
194
207
|
'& .SCCourse-create-placeholder-actions': {
|
|
195
208
|
display: 'flex',
|
|
196
209
|
justifyContent: 'center',
|
|
197
|
-
height: '
|
|
210
|
+
height: '258px'
|
|
198
211
|
}
|
|
199
212
|
}),
|
|
200
213
|
skeletonRoot: ({ theme }) => ({
|
|
201
214
|
'& .SCCourse-skeleton-preview-root': {
|
|
215
|
+
height: '100%',
|
|
216
|
+
[theme.breakpoints.up('sm')]: {
|
|
217
|
+
minHeight: '376px'
|
|
218
|
+
},
|
|
202
219
|
'& .SCCourse-skeleton-preview-avatar': {
|
|
203
220
|
position: 'absolute',
|
|
204
|
-
bottom:
|
|
221
|
+
bottom: theme.spacing(-2),
|
|
205
222
|
left: theme.spacing(1.5),
|
|
223
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
224
|
+
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
206
225
|
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
207
226
|
},
|
|
208
227
|
'& .SCCourse-skeleton-preview-content': {
|
|
209
|
-
padding:
|
|
228
|
+
padding: `${theme.spacing(1.5, 2, 2, 2)} !important`,
|
|
229
|
+
minHeight: 184
|
|
210
230
|
},
|
|
211
231
|
'& .SCCourse-skeleton-preview-actions': {
|
|
212
232
|
display: 'flex',
|
|
213
|
-
marginTop: theme.spacing(4),
|
|
214
233
|
justifyContent: 'center',
|
|
215
234
|
padding: theme.spacing(2)
|
|
216
235
|
}
|
|
@@ -3,6 +3,9 @@ declare const Component: {
|
|
|
3
3
|
root: ({ theme }: {
|
|
4
4
|
theme: any;
|
|
5
5
|
}) => {
|
|
6
|
+
[x: number]: {
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
};
|
|
6
9
|
'& .SCCourseDashboard-header': {
|
|
7
10
|
[x: number]: {
|
|
8
11
|
paddingLeft: string;
|
|
@@ -148,9 +151,20 @@ declare const Component: {
|
|
|
148
151
|
width: string;
|
|
149
152
|
height: string;
|
|
150
153
|
};
|
|
154
|
+
'& a': {
|
|
155
|
+
textDecoration: string;
|
|
156
|
+
color: string;
|
|
157
|
+
};
|
|
158
|
+
'& .MuiBadge-root': {
|
|
159
|
+
marginRight: any;
|
|
160
|
+
};
|
|
151
161
|
};
|
|
152
162
|
'& .SCCourseDashboard-actions-wrapper': {
|
|
153
|
-
|
|
163
|
+
[x: number]: {
|
|
164
|
+
flexDirection: string;
|
|
165
|
+
margin: number;
|
|
166
|
+
};
|
|
167
|
+
margin: string;
|
|
154
168
|
gap: string;
|
|
155
169
|
};
|
|
156
170
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
const Component = {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
|
+
[theme.breakpoints.down('sm')]: {
|
|
5
|
+
marginBottom: '56px'
|
|
6
|
+
},
|
|
4
7
|
'& .SCCourseDashboard-header': {
|
|
5
8
|
[theme.breakpoints.down('sm')]: {
|
|
6
9
|
paddingLeft: '14px',
|
|
@@ -142,11 +145,22 @@ const Component = {
|
|
|
142
145
|
'& .SCCourseDashboard-avatar': {
|
|
143
146
|
width: '36px',
|
|
144
147
|
height: '36px'
|
|
148
|
+
},
|
|
149
|
+
'& a': {
|
|
150
|
+
textDecoration: 'none',
|
|
151
|
+
color: 'inherit'
|
|
152
|
+
},
|
|
153
|
+
'& .MuiBadge-root': {
|
|
154
|
+
marginRight: theme.spacing(0.5)
|
|
145
155
|
}
|
|
146
156
|
},
|
|
147
157
|
'& .SCCourseDashboard-actions-wrapper': {
|
|
148
|
-
|
|
149
|
-
gap: '5px'
|
|
158
|
+
margin: '6px 0',
|
|
159
|
+
gap: '5px',
|
|
160
|
+
[theme.breakpoints.up('sm')]: {
|
|
161
|
+
flexDirection: 'row',
|
|
162
|
+
margin: 0
|
|
163
|
+
}
|
|
150
164
|
}
|
|
151
165
|
},
|
|
152
166
|
'& .SCCourseDashboard-lessons-sections': {
|
|
@@ -3,6 +3,9 @@ declare const Component: {
|
|
|
3
3
|
root: ({ theme }: {
|
|
4
4
|
theme: any;
|
|
5
5
|
}) => {
|
|
6
|
+
[x: number]: {
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
};
|
|
6
9
|
'& .SCEditCourse-header': {
|
|
7
10
|
[x: number]: {
|
|
8
11
|
paddingLeft: any;
|
|
@@ -102,6 +105,9 @@ declare const Component: {
|
|
|
102
105
|
'& .SCEditCourse-cell-padding': {
|
|
103
106
|
paddingRight: number;
|
|
104
107
|
};
|
|
108
|
+
'& .MuiTableCell-root': {
|
|
109
|
+
textWrapMode: string;
|
|
110
|
+
};
|
|
105
111
|
'& .SCEditCourse-table-header': {
|
|
106
112
|
'& .SCEditCourse-table-header-typography': {
|
|
107
113
|
textTransform: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
const Component = {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
|
+
[theme.breakpoints.down('sm')]: {
|
|
5
|
+
marginBottom: '56px'
|
|
6
|
+
},
|
|
4
7
|
'& .SCEditCourse-header': {
|
|
5
8
|
flexDirection: 'row',
|
|
6
9
|
alignItems: 'center',
|
|
@@ -100,6 +103,9 @@ const Component = {
|
|
|
100
103
|
'& .SCEditCourse-cell-padding': {
|
|
101
104
|
paddingRight: 0
|
|
102
105
|
},
|
|
106
|
+
'& .MuiTableCell-root': {
|
|
107
|
+
textWrapMode: 'nowrap'
|
|
108
|
+
},
|
|
103
109
|
'& .SCEditCourse-table-header': {
|
|
104
110
|
'& .SCEditCourse-table-header-typography': {
|
|
105
111
|
textTransform: 'uppercase'
|
|
@@ -154,26 +154,6 @@ declare const Component: {
|
|
|
154
154
|
'& .SCEditor-listItem': {
|
|
155
155
|
margin: string;
|
|
156
156
|
};
|
|
157
|
-
'& .SCEditor-document': {
|
|
158
|
-
'& .selected': {
|
|
159
|
-
border: string;
|
|
160
|
-
};
|
|
161
|
-
'& .MuiBox-root': {
|
|
162
|
-
padding: any;
|
|
163
|
-
borderRadius: string;
|
|
164
|
-
background: any;
|
|
165
|
-
'& a': {
|
|
166
|
-
display: string;
|
|
167
|
-
alignItems: string;
|
|
168
|
-
width: string;
|
|
169
|
-
'& img': {
|
|
170
|
-
height: any;
|
|
171
|
-
width: any;
|
|
172
|
-
marginRight: any;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
157
|
};
|
|
178
158
|
toolbar: ({ theme }: any) => {
|
|
179
159
|
'& .SCEditor-placeholder': {
|
|
@@ -154,26 +154,6 @@ const Component = {
|
|
|
154
154
|
},
|
|
155
155
|
'& .SCEditor-listItem': {
|
|
156
156
|
margin: '0 32px'
|
|
157
|
-
},
|
|
158
|
-
'& .SCEditor-document': {
|
|
159
|
-
'& .selected': {
|
|
160
|
-
border: `2px solid ${theme.palette.secondary.main}`
|
|
161
|
-
},
|
|
162
|
-
'& .MuiBox-root': {
|
|
163
|
-
padding: theme.spacing(1),
|
|
164
|
-
borderRadius: '5px',
|
|
165
|
-
background: theme.palette.grey[300],
|
|
166
|
-
'& a': {
|
|
167
|
-
display: 'flex',
|
|
168
|
-
alignItems: 'center',
|
|
169
|
-
width: 'fit-content',
|
|
170
|
-
'& img': {
|
|
171
|
-
height: theme.spacing(3),
|
|
172
|
-
width: theme.spacing(3),
|
|
173
|
-
marginRight: theme.spacing(1)
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
157
|
}
|
|
178
158
|
}),
|
|
179
159
|
toolbar: ({ theme }) => ({
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: any) => {
|
|
4
|
+
backgroundSize: string;
|
|
5
|
+
backgroundPosition: string;
|
|
6
|
+
position: string;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
margin: any;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
flexBasis: number;
|
|
12
|
+
flexGrow: number;
|
|
13
|
+
flexShrink: number;
|
|
14
|
+
'& .SCLessonFilePreview-title': {
|
|
15
|
+
position: string;
|
|
16
|
+
left: any;
|
|
17
|
+
top: any;
|
|
18
|
+
borderRadius: any;
|
|
19
|
+
background: string;
|
|
20
|
+
color: any;
|
|
21
|
+
fontSize: string;
|
|
22
|
+
padding: any;
|
|
23
|
+
maxWidth: number;
|
|
24
|
+
textOverflow: string;
|
|
25
|
+
overflow: string;
|
|
26
|
+
whiteSpace: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }) => ({
|
|
4
|
+
backgroundSize: 'cover',
|
|
5
|
+
backgroundPosition: 'center',
|
|
6
|
+
position: 'relative',
|
|
7
|
+
borderRadius: theme.shape.borderRadius * 0.5,
|
|
8
|
+
margin: theme.spacing(0.5),
|
|
9
|
+
width: '100%',
|
|
10
|
+
height: '60px',
|
|
11
|
+
flexBasis: 120,
|
|
12
|
+
flexGrow: 0,
|
|
13
|
+
flexShrink: 0,
|
|
14
|
+
'& .SCLessonFilePreview-title': {
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
left: theme.spacing(1),
|
|
17
|
+
top: theme.spacing(1),
|
|
18
|
+
borderRadius: theme.shape.borderRadius,
|
|
19
|
+
background: '#33333380 0% 0% no-repeat padding-box',
|
|
20
|
+
color: theme.palette.common.white,
|
|
21
|
+
fontSize: '0.875rem',
|
|
22
|
+
padding: theme.spacing(0.5, 1),
|
|
23
|
+
maxWidth: 80,
|
|
24
|
+
textOverflow: 'ellipsis',
|
|
25
|
+
overflow: 'hidden',
|
|
26
|
+
whiteSpace: 'nowrap'
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
declare const Component: {
|
|
2
2
|
styleOverrides: {
|
|
3
3
|
root: ({ theme }: any) => {
|
|
4
|
+
[x: number]: {
|
|
5
|
+
padding: any;
|
|
6
|
+
};
|
|
4
7
|
display: string;
|
|
5
8
|
flexDirection: string;
|
|
6
|
-
padding: any;
|
|
7
9
|
'& .SCLessonObject-content': {
|
|
8
10
|
padding: string;
|
|
9
11
|
'& .SCLessonObject-text': {
|
|
10
12
|
'& > div:first-of-type': {
|
|
11
|
-
height: string;
|
|
12
13
|
img: {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
display: string;
|
|
15
|
+
margin: string;
|
|
16
|
+
width: string;
|
|
17
|
+
maxWidth: string;
|
|
18
|
+
position: string;
|
|
15
19
|
};
|
|
16
20
|
padding: string;
|
|
17
21
|
};
|
|
@@ -25,6 +29,20 @@ declare const Component: {
|
|
|
25
29
|
color: string;
|
|
26
30
|
};
|
|
27
31
|
};
|
|
32
|
+
'& .SCLessonObject-medias-section': {
|
|
33
|
+
display: string;
|
|
34
|
+
'& .SCLessonFilePreview-root': {
|
|
35
|
+
marginBottom: any;
|
|
36
|
+
};
|
|
37
|
+
'& .SCMediaLink-display-root': {
|
|
38
|
+
marginBottom: any;
|
|
39
|
+
'& > div > div': {
|
|
40
|
+
[x: number]: {
|
|
41
|
+
height: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
28
46
|
};
|
|
29
47
|
'& .SCLessonObject-content-edit': {
|
|
30
48
|
padding: string;
|