@selfcommunity/react-theme-default 0.4.5-alpha.8 → 0.4.5-payments.143
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 +55 -0
- package/lib/cjs/components/SCAccordionLessons.js +53 -0
- package/lib/cjs/components/SCAddUsersButton.d.ts +19 -0
- package/lib/cjs/components/SCAddUsersButton.js +21 -0
- package/lib/cjs/components/SCBaseItemButton.d.ts +26 -35
- package/lib/cjs/components/SCBaseItemButton.js +27 -36
- package/lib/cjs/components/SCBuyButton.d.ts +15 -0
- package/lib/cjs/components/SCBuyButton.js +13 -0
- package/lib/cjs/components/SCCheckoutSuccessDialog.d.ts +23 -0
- package/lib/cjs/components/SCCheckoutSuccessDialog.js +23 -0
- package/lib/cjs/components/SCCommentObject.d.ts +7 -17
- package/lib/cjs/components/SCCommentObject.js +7 -17
- package/lib/cjs/components/SCComposer.d.ts +50 -14
- package/lib/cjs/components/SCComposer.js +73 -16
- package/lib/cjs/components/SCContributionActionsMenu.js +1 -1
- package/lib/cjs/components/SCCourse.d.ts +243 -0
- package/lib/cjs/components/SCCourse.js +245 -0
- package/lib/cjs/components/SCCourseCompletedDialog.d.ts +21 -0
- package/lib/cjs/components/SCCourseCompletedDialog.js +23 -0
- package/lib/cjs/components/SCCourseContentMenu.d.ts +42 -0
- package/lib/cjs/components/SCCourseContentMenu.js +42 -0
- package/lib/cjs/components/SCCourseDashboard.d.ts +337 -0
- package/lib/cjs/components/SCCourseDashboard.js +329 -0
- package/lib/cjs/components/SCCourseForm.d.ts +143 -0
- package/lib/cjs/components/SCCourseForm.js +144 -0
- package/lib/cjs/components/SCCourseFormDialog.d.ts +6 -0
- package/lib/cjs/components/SCCourseFormDialog.js +8 -0
- package/lib/cjs/components/SCCourseInfoDetails.d.ts +43 -0
- package/lib/cjs/components/SCCourseInfoDetails.js +43 -0
- package/lib/cjs/components/SCCourseParticipantsButton.d.ts +56 -0
- package/lib/cjs/components/SCCourseParticipantsButton.js +53 -0
- package/lib/cjs/components/SCCourseUsersTable.d.ts +86 -0
- package/lib/cjs/components/SCCourseUsersTable.js +82 -0
- package/lib/cjs/components/SCCourses.d.ts +133 -0
- package/lib/cjs/components/SCCourses.js +135 -0
- package/lib/cjs/components/SCCreateCourseButton.d.ts +12 -0
- package/lib/cjs/components/SCCreateCourseButton.js +14 -0
- package/lib/cjs/components/SCEditCourse.d.ts +273 -0
- package/lib/cjs/components/SCEditCourse.js +271 -0
- package/lib/cjs/components/SCEditor.d.ts +20 -0
- package/lib/cjs/components/SCEditor.js +20 -0
- package/lib/cjs/components/SCEmptyStatus.d.ts +33 -0
- package/lib/cjs/components/SCEmptyStatus.js +33 -0
- package/lib/cjs/components/SCFeedObject.d.ts +18 -12
- package/lib/cjs/components/SCFeedObject.js +18 -12
- package/lib/cjs/components/SCFeedObjectDetailTemplate.js +1 -1
- package/lib/cjs/components/SCLessonAppbar.d.ts +27 -0
- package/lib/cjs/components/SCLessonAppbar.js +28 -0
- package/lib/cjs/components/SCLessonCommentActionsMenu.d.ts +32 -0
- package/lib/cjs/components/SCLessonCommentActionsMenu.js +35 -0
- package/lib/cjs/components/SCLessonCommentObject.d.ts +117 -0
- package/lib/cjs/components/SCLessonCommentObject.js +119 -0
- package/lib/cjs/components/SCLessonCommentObjects.d.ts +48 -0
- package/lib/cjs/components/SCLessonCommentObjects.js +50 -0
- package/lib/cjs/components/SCLessonDrawer.d.ts +42 -0
- package/lib/cjs/components/SCLessonDrawer.js +44 -0
- package/lib/cjs/components/SCLessonEditForm.d.ts +33 -0
- package/lib/cjs/components/SCLessonEditForm.js +33 -0
- package/lib/cjs/components/SCLessonObject.d.ts +48 -0
- package/lib/cjs/components/SCLessonObject.js +51 -0
- package/lib/cjs/components/SCLessonReleaseMenu.d.ts +32 -0
- package/lib/cjs/components/SCLessonReleaseMenu.js +34 -0
- package/lib/cjs/components/SCLessonTemplate.d.ts +20 -0
- package/lib/cjs/components/SCLessonTemplate.js +20 -0
- package/lib/cjs/components/SCLiveStreamForm.d.ts +9 -0
- package/lib/cjs/components/SCLiveStreamForm.js +10 -1
- package/lib/cjs/components/SCLiveStreamRoom.d.ts +27 -1
- package/lib/cjs/components/SCLiveStreamRoom.js +27 -1
- package/lib/cjs/components/SCLiveStreamSelector.d.ts +2 -0
- package/lib/cjs/components/SCLiveStreamSelector.js +3 -1
- package/lib/cjs/components/SCLiveStreamVideoConference.d.ts +2 -1
- package/lib/cjs/components/SCLiveStreamVideoConference.js +2 -1
- package/lib/cjs/components/SCNavigationToolbar.d.ts +1 -1
- package/lib/cjs/components/SCNavigationToolbar.js +1 -1
- package/lib/cjs/components/SCPaymentProduct.d.ts +55 -0
- package/lib/cjs/components/SCPaymentProduct.js +53 -0
- package/lib/cjs/components/SCPaymentProductPrice.d.ts +15 -0
- package/lib/cjs/components/SCPaymentProductPrice.js +13 -0
- package/lib/cjs/components/SCPaymentProducts.d.ts +15 -0
- package/lib/cjs/components/SCPaymentProducts.js +13 -0
- package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +2 -0
- package/lib/cjs/components/SCPrivateMessageThreadItem.js +2 -1
- package/lib/cjs/fonts/community/icons.eot +0 -0
- package/lib/cjs/fonts/community/icons.svg +9 -3
- package/lib/cjs/fonts/community/icons.ttf +0 -0
- package/lib/cjs/fonts/community/icons.woff +0 -0
- package/lib/cjs/fonts/community/icons.woff2 +0 -0
- package/lib/cjs/fonts/community-icons.css +15 -6
- package/lib/cjs/index.d.ts +2739 -642
- package/lib/cjs/index.js +74 -2
- package/lib/esm/components/SCAccordionLessons.d.ts +55 -0
- package/lib/esm/components/SCAccordionLessons.js +51 -0
- package/lib/esm/components/SCAddUsersButton.d.ts +19 -0
- package/lib/esm/components/SCAddUsersButton.js +19 -0
- package/lib/esm/components/SCBaseItemButton.d.ts +26 -35
- package/lib/esm/components/SCBaseItemButton.js +27 -36
- package/lib/esm/components/SCBuyButton.d.ts +15 -0
- package/lib/esm/components/SCBuyButton.js +11 -0
- package/lib/esm/components/SCCheckoutSuccessDialog.d.ts +23 -0
- package/lib/esm/components/SCCheckoutSuccessDialog.js +21 -0
- package/lib/esm/components/SCCommentObject.d.ts +7 -17
- package/lib/esm/components/SCCommentObject.js +7 -17
- package/lib/esm/components/SCComposer.d.ts +50 -14
- package/lib/esm/components/SCComposer.js +73 -16
- package/lib/esm/components/SCContributionActionsMenu.js +1 -1
- package/lib/esm/components/SCCourse.d.ts +243 -0
- package/lib/esm/components/SCCourse.js +243 -0
- package/lib/esm/components/SCCourseCompletedDialog.d.ts +21 -0
- package/lib/esm/components/SCCourseCompletedDialog.js +21 -0
- package/lib/esm/components/SCCourseContentMenu.d.ts +42 -0
- package/lib/esm/components/SCCourseContentMenu.js +40 -0
- package/lib/esm/components/SCCourseDashboard.d.ts +337 -0
- package/lib/esm/components/SCCourseDashboard.js +327 -0
- package/lib/esm/components/SCCourseForm.d.ts +143 -0
- package/lib/esm/components/SCCourseForm.js +142 -0
- package/lib/esm/components/SCCourseFormDialog.d.ts +6 -0
- package/lib/esm/components/SCCourseFormDialog.js +6 -0
- package/lib/esm/components/SCCourseInfoDetails.d.ts +43 -0
- package/lib/esm/components/SCCourseInfoDetails.js +41 -0
- package/lib/esm/components/SCCourseParticipantsButton.d.ts +56 -0
- package/lib/esm/components/SCCourseParticipantsButton.js +51 -0
- package/lib/esm/components/SCCourseUsersTable.d.ts +86 -0
- package/lib/esm/components/SCCourseUsersTable.js +80 -0
- package/lib/esm/components/SCCourses.d.ts +133 -0
- package/lib/esm/components/SCCourses.js +133 -0
- package/lib/esm/components/SCCreateCourseButton.d.ts +12 -0
- package/lib/esm/components/SCCreateCourseButton.js +12 -0
- package/lib/esm/components/SCEditCourse.d.ts +273 -0
- package/lib/esm/components/SCEditCourse.js +269 -0
- package/lib/esm/components/SCEditor.d.ts +20 -0
- package/lib/esm/components/SCEditor.js +20 -0
- package/lib/esm/components/SCEmptyStatus.d.ts +33 -0
- package/lib/esm/components/SCEmptyStatus.js +31 -0
- package/lib/esm/components/SCFeedObject.d.ts +18 -12
- package/lib/esm/components/SCFeedObject.js +18 -12
- package/lib/esm/components/SCFeedObjectDetailTemplate.js +1 -1
- package/lib/esm/components/SCLessonAppbar.d.ts +27 -0
- package/lib/esm/components/SCLessonAppbar.js +26 -0
- package/lib/esm/components/SCLessonCommentActionsMenu.d.ts +32 -0
- package/lib/esm/components/SCLessonCommentActionsMenu.js +33 -0
- package/lib/esm/components/SCLessonCommentObject.d.ts +117 -0
- package/lib/esm/components/SCLessonCommentObject.js +117 -0
- package/lib/esm/components/SCLessonCommentObjects.d.ts +48 -0
- package/lib/esm/components/SCLessonCommentObjects.js +48 -0
- package/lib/esm/components/SCLessonDrawer.d.ts +42 -0
- package/lib/esm/components/SCLessonDrawer.js +42 -0
- package/lib/esm/components/SCLessonEditForm.d.ts +33 -0
- package/lib/esm/components/SCLessonEditForm.js +31 -0
- package/lib/esm/components/SCLessonObject.d.ts +48 -0
- package/lib/esm/components/SCLessonObject.js +49 -0
- package/lib/esm/components/SCLessonReleaseMenu.d.ts +32 -0
- package/lib/esm/components/SCLessonReleaseMenu.js +32 -0
- package/lib/esm/components/SCLessonTemplate.d.ts +20 -0
- package/lib/esm/components/SCLessonTemplate.js +18 -0
- package/lib/esm/components/SCLiveStreamForm.d.ts +9 -0
- package/lib/esm/components/SCLiveStreamForm.js +10 -1
- package/lib/esm/components/SCLiveStreamRoom.d.ts +27 -1
- package/lib/esm/components/SCLiveStreamRoom.js +27 -1
- package/lib/esm/components/SCLiveStreamSelector.d.ts +2 -0
- package/lib/esm/components/SCLiveStreamSelector.js +3 -1
- package/lib/esm/components/SCLiveStreamVideoConference.d.ts +2 -1
- package/lib/esm/components/SCLiveStreamVideoConference.js +2 -1
- package/lib/esm/components/SCNavigationToolbar.d.ts +1 -1
- package/lib/esm/components/SCNavigationToolbar.js +1 -1
- package/lib/esm/components/SCPaymentProduct.d.ts +55 -0
- package/lib/esm/components/SCPaymentProduct.js +51 -0
- package/lib/esm/components/SCPaymentProductPrice.d.ts +15 -0
- package/lib/esm/components/SCPaymentProductPrice.js +11 -0
- package/lib/esm/components/SCPaymentProducts.d.ts +15 -0
- package/lib/esm/components/SCPaymentProducts.js +11 -0
- package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +2 -0
- package/lib/esm/components/SCPrivateMessageThreadItem.js +2 -1
- package/lib/esm/fonts/community/icons.eot +0 -0
- package/lib/esm/fonts/community/icons.svg +9 -3
- package/lib/esm/fonts/community/icons.ttf +0 -0
- package/lib/esm/fonts/community/icons.woff +0 -0
- package/lib/esm/fonts/community/icons.woff2 +0 -0
- package/lib/esm/fonts/community-icons.css +15 -6
- package/lib/esm/index.d.ts +2739 -642
- package/lib/esm/index.js +74 -2
- package/lib/umd/community/icons.eot +0 -0
- package/lib/umd/community/icons.svg +9 -3
- package/lib/umd/community/icons.ttf +0 -0
- package/lib/umd/community/icons.woff +0 -0
- package/lib/umd/community/icons.woff2 +0 -0
- package/lib/umd/react-theme-default.js +1 -1
- package/package.json +2 -2
|
@@ -37,19 +37,18 @@ const Component = {
|
|
|
37
37
|
margin: '45px 0',
|
|
38
38
|
padding: theme.spacing(1, 2),
|
|
39
39
|
height: `calc(100% - 45px - 45px - ${theme.spacing(2)})`,
|
|
40
|
+
[theme.breakpoints.up('md')]: {
|
|
41
|
+
overflowY: 'hidden'
|
|
42
|
+
},
|
|
40
43
|
'& .SCEditor-root': {
|
|
41
44
|
padding: theme.spacing(1, 0),
|
|
45
|
+
marginBottom: theme.spacing(3),
|
|
46
|
+
position: 'relative',
|
|
42
47
|
'& .SCEditor-placeholder': {
|
|
43
48
|
left: 0,
|
|
44
|
-
top: theme.spacing(1),
|
|
45
49
|
position: 'absolute'
|
|
46
50
|
},
|
|
47
51
|
'&.SCEditor-toolbar': {
|
|
48
|
-
position: 'static',
|
|
49
|
-
'& .SCEditor-placeholder': {
|
|
50
|
-
marginTop: -40,
|
|
51
|
-
position: 'static'
|
|
52
|
-
},
|
|
53
52
|
'& .SCEditorToolbarPlugin-root': {
|
|
54
53
|
zIndex: 1,
|
|
55
54
|
position: 'absolute',
|
|
@@ -96,8 +95,7 @@ const Component = {
|
|
|
96
95
|
},
|
|
97
96
|
'& .MuiDialogContent-root': {
|
|
98
97
|
minHeight: 300,
|
|
99
|
-
height: 'auto'
|
|
100
|
-
maxHeight: 600
|
|
98
|
+
height: 'auto'
|
|
101
99
|
},
|
|
102
100
|
'& .MuiDialogActions-root': {
|
|
103
101
|
justifyContent: 'center'
|
|
@@ -105,16 +103,20 @@ const Component = {
|
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
}),
|
|
108
|
-
attributesRoot: (
|
|
106
|
+
attributesRoot: () => ({}),
|
|
109
107
|
contentDiscussionRoot: ({ theme }) => ({
|
|
110
108
|
'& .SCComposer-content-discussion-title': {
|
|
111
|
-
paddingBottom: theme.spacing(2),
|
|
112
109
|
'& .MuiInputBase-root': {
|
|
110
|
+
maxHeight: 160,
|
|
111
|
+
overflowY: 'auto',
|
|
113
112
|
paddingLeft: 0,
|
|
114
113
|
paddingRight: 0,
|
|
115
114
|
paddingBottom: 0,
|
|
116
|
-
fontSize: '1.
|
|
115
|
+
fontSize: '1.3rem',
|
|
117
116
|
fontWeight: theme.typography.fontWeightBold,
|
|
117
|
+
[theme.breakpoints.up('md')]: {
|
|
118
|
+
maxHeight: 110
|
|
119
|
+
},
|
|
118
120
|
'& fieldset': {
|
|
119
121
|
display: 'none'
|
|
120
122
|
},
|
|
@@ -128,6 +130,19 @@ const Component = {
|
|
|
128
130
|
'& .MuiFormHelperText-root': {
|
|
129
131
|
marginLeft: 0
|
|
130
132
|
}
|
|
133
|
+
},
|
|
134
|
+
'& .SCEditor-root': {
|
|
135
|
+
'& .SCEditor-placeholder': {
|
|
136
|
+
top: theme.spacing(7)
|
|
137
|
+
},
|
|
138
|
+
'& .SCEditor-content': {
|
|
139
|
+
overflowY: 'auto',
|
|
140
|
+
minHeight: 300,
|
|
141
|
+
maxHeight: `calc(100vh - 45px - 45px - 55px - 45px - ${theme.spacing(2)})`,
|
|
142
|
+
[theme.breakpoints.up('md')]: {
|
|
143
|
+
maxHeight: 380
|
|
144
|
+
}
|
|
145
|
+
}
|
|
131
146
|
}
|
|
132
147
|
}),
|
|
133
148
|
contentPollRoot: ({ theme }) => ({
|
|
@@ -142,7 +157,49 @@ const Component = {
|
|
|
142
157
|
marginTop: theme.spacing(3)
|
|
143
158
|
}
|
|
144
159
|
}),
|
|
145
|
-
contentPostRoot: ({ theme }) => ({
|
|
160
|
+
contentPostRoot: ({ theme }) => ({
|
|
161
|
+
'& .SCEditor-root': {
|
|
162
|
+
'& .SCEditor-placeholder': {
|
|
163
|
+
top: theme.spacing()
|
|
164
|
+
},
|
|
165
|
+
'& .SCEditor-content': {
|
|
166
|
+
overflowY: 'auto',
|
|
167
|
+
minHeight: 300,
|
|
168
|
+
maxHeight: `calc(100vh - 45px - 45px - ${theme.spacing(3)})`,
|
|
169
|
+
[theme.breakpoints.up('md')]: {
|
|
170
|
+
maxHeight: 400
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
contentLessonRoot: ({ theme }) => ({
|
|
176
|
+
// '& .SCComposer-content-lesson-editor': {
|
|
177
|
+
'& .SCEditor-root': {
|
|
178
|
+
'& .SCEditor-content': {
|
|
179
|
+
paddingTop: theme.spacing(1)
|
|
180
|
+
}
|
|
181
|
+
// paddingBottom: theme.spacing(2),
|
|
182
|
+
// '& .MuiInputBase-root': {
|
|
183
|
+
// paddingLeft: 0,
|
|
184
|
+
// paddingRight: 0,
|
|
185
|
+
// paddingBottom: 0,
|
|
186
|
+
// fontSize: '1.429rem',
|
|
187
|
+
// fontWeight: theme.typography.fontWeightBold,
|
|
188
|
+
// '& fieldset': {
|
|
189
|
+
// display: 'none'
|
|
190
|
+
// },
|
|
191
|
+
// '&.MuiInputBase-adornedEnd .MuiTypography-root': {
|
|
192
|
+
// alignSelf: 'end'
|
|
193
|
+
// },
|
|
194
|
+
// '&.Mui-error': {
|
|
195
|
+
// color: theme.palette.error.main
|
|
196
|
+
// }
|
|
197
|
+
// },
|
|
198
|
+
// '& .MuiFormHelperText-root': {
|
|
199
|
+
// marginLeft: 0
|
|
200
|
+
// }
|
|
201
|
+
}
|
|
202
|
+
}),
|
|
146
203
|
layerTransitionRoot: ({ theme }) => ({
|
|
147
204
|
position: 'absolute',
|
|
148
205
|
top: 0,
|
|
@@ -176,8 +233,8 @@ const Component = {
|
|
|
176
233
|
marginBottom: theme.spacing(4)
|
|
177
234
|
}
|
|
178
235
|
}),
|
|
179
|
-
layerCategoryRoot: (
|
|
180
|
-
layerGroupRoot: (
|
|
236
|
+
layerCategoryRoot: () => ({}),
|
|
237
|
+
layerGroupRoot: () => ({}),
|
|
181
238
|
layerCloseRoot: ({ theme }) => ({
|
|
182
239
|
'& .SCComposer-layer-content': {
|
|
183
240
|
'& .MuiTypography-root': {
|
|
@@ -196,8 +253,8 @@ const Component = {
|
|
|
196
253
|
}
|
|
197
254
|
}
|
|
198
255
|
}),
|
|
199
|
-
layerLocationRoot: (
|
|
200
|
-
skeletonRoot: (
|
|
256
|
+
layerLocationRoot: () => ({}),
|
|
257
|
+
skeletonRoot: () => ({}),
|
|
201
258
|
typeSwitchButtonGroupRoot: ({ theme }) => ({
|
|
202
259
|
'& .MuiToggleButton-root': {
|
|
203
260
|
backgroundColor: theme.palette.common.black,
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: any) => {};
|
|
4
|
+
snippetRoot: ({ theme }: any) => {
|
|
5
|
+
overflow: string;
|
|
6
|
+
boxSizing: string;
|
|
7
|
+
paddingLeft: string;
|
|
8
|
+
paddingRight: string;
|
|
9
|
+
'& .SCBaseItem-image': {
|
|
10
|
+
'& .MuiAvatar-root': {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
'& img': {
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
'& .SCCourse-snippet-image': {
|
|
19
|
+
position: string;
|
|
20
|
+
'& .SCCourse-snippet-in-progress': {
|
|
21
|
+
height: number;
|
|
22
|
+
backgroundColor: any;
|
|
23
|
+
position: string;
|
|
24
|
+
top: number;
|
|
25
|
+
right: number;
|
|
26
|
+
color: any;
|
|
27
|
+
boxShadow: string;
|
|
28
|
+
'& span': {
|
|
29
|
+
fontSize: string;
|
|
30
|
+
paddingLeft: any;
|
|
31
|
+
paddingRight: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
'& .SCBaseItem-text': {
|
|
36
|
+
fontSize: any;
|
|
37
|
+
'& .SCCourse-snippet-primary': {
|
|
38
|
+
color: any;
|
|
39
|
+
textDecoration: string;
|
|
40
|
+
'&:hover': {
|
|
41
|
+
textDecoration: string;
|
|
42
|
+
};
|
|
43
|
+
'& p': {
|
|
44
|
+
fontWeight: any;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
'& .SCCourse-snippet-secondary': {
|
|
48
|
+
color: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
'& .SCCourse-chip': {
|
|
52
|
+
textTransform: string;
|
|
53
|
+
position: string;
|
|
54
|
+
top: any;
|
|
55
|
+
left: any;
|
|
56
|
+
color: any;
|
|
57
|
+
borderRadius: number;
|
|
58
|
+
'& .MuiChip-label': {
|
|
59
|
+
fontWeight: number;
|
|
60
|
+
padding: any;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
previewRoot: ({ theme }: any) => {
|
|
65
|
+
minHeight: string;
|
|
66
|
+
'& .SCCourse-preview-image-wrapper': {
|
|
67
|
+
position: string;
|
|
68
|
+
'& .SCCourse-preview-image': {
|
|
69
|
+
height: string;
|
|
70
|
+
};
|
|
71
|
+
'& .SCCourse-chip': {
|
|
72
|
+
textTransform: string;
|
|
73
|
+
position: string;
|
|
74
|
+
top: any;
|
|
75
|
+
left: any;
|
|
76
|
+
color: any;
|
|
77
|
+
borderRadius: number;
|
|
78
|
+
'& .MuiChip-label': {
|
|
79
|
+
fontWeight: number;
|
|
80
|
+
padding: any;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
'& .SCCourse-preview-avatar': {
|
|
84
|
+
position: string;
|
|
85
|
+
bottom: any;
|
|
86
|
+
left: any;
|
|
87
|
+
width: any;
|
|
88
|
+
height: any;
|
|
89
|
+
border: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
'& .SCCourse-preview-content': {
|
|
93
|
+
padding: any;
|
|
94
|
+
'& .SCCourse-preview-creator': {
|
|
95
|
+
paddingTop: number;
|
|
96
|
+
marginBottom: any;
|
|
97
|
+
};
|
|
98
|
+
'& .SCCourse-preview-name-wrapper': {
|
|
99
|
+
textDecoration: string;
|
|
100
|
+
color: string;
|
|
101
|
+
h6: {
|
|
102
|
+
fontWeight: number;
|
|
103
|
+
};
|
|
104
|
+
'& .SCCourse-preview-name': {
|
|
105
|
+
display: string;
|
|
106
|
+
height: any;
|
|
107
|
+
marginBottom: any;
|
|
108
|
+
textOverflow: string;
|
|
109
|
+
overflow: string;
|
|
110
|
+
WebkitLineClamp: string;
|
|
111
|
+
WebkitBoxOrient: string;
|
|
112
|
+
lineHeight: number;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
'& .SCCourse-preview-info': {
|
|
116
|
+
height: any;
|
|
117
|
+
display: string;
|
|
118
|
+
alignItems: string;
|
|
119
|
+
marginBottom: any;
|
|
120
|
+
};
|
|
121
|
+
'& .SCCourse-preview-category': {
|
|
122
|
+
[x: number]: {
|
|
123
|
+
height: any;
|
|
124
|
+
};
|
|
125
|
+
'& .MuiChip-root': {
|
|
126
|
+
marginRight: any;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
'& .SCCourse-preview-progress': {
|
|
131
|
+
[x: number]: {
|
|
132
|
+
height: any;
|
|
133
|
+
};
|
|
134
|
+
justifyContent: string;
|
|
135
|
+
padding: any;
|
|
136
|
+
'& .MuiLinearProgress-root': {
|
|
137
|
+
width: string;
|
|
138
|
+
height: number;
|
|
139
|
+
borderRadius: number;
|
|
140
|
+
marginTop: any;
|
|
141
|
+
};
|
|
142
|
+
'& .SCCourse-preview-completed-status': {
|
|
143
|
+
display: string;
|
|
144
|
+
alignItems: string;
|
|
145
|
+
justifyContent: string;
|
|
146
|
+
'& .MuiIcon-root': {
|
|
147
|
+
marginRight: any;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
'& .SCCourse-preview-progress-bar': {
|
|
151
|
+
backgroundColor: any;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
'& .SCCourse-preview-actions': {
|
|
155
|
+
justifyContent: string;
|
|
156
|
+
padding: any;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
createPlaceholderRoot: ({ theme }: any) => {
|
|
160
|
+
minHeight: string;
|
|
161
|
+
'& .SCCourse-create-placeholder-image-wrapper': {
|
|
162
|
+
position: string;
|
|
163
|
+
'& .SCCourse-create-placeholder-image': {
|
|
164
|
+
height: string;
|
|
165
|
+
};
|
|
166
|
+
'& .SCCourse-create-placeholder-icon': {
|
|
167
|
+
position: string;
|
|
168
|
+
top: string;
|
|
169
|
+
left: string;
|
|
170
|
+
transform: string;
|
|
171
|
+
color: any;
|
|
172
|
+
};
|
|
173
|
+
'& .SCCourse-create-placeholder-chip': {
|
|
174
|
+
backgroundColor: any;
|
|
175
|
+
position: string;
|
|
176
|
+
top: any;
|
|
177
|
+
left: any;
|
|
178
|
+
color: any;
|
|
179
|
+
borderRadius: number;
|
|
180
|
+
'& .MuiChip-label': {
|
|
181
|
+
fontWeight: number;
|
|
182
|
+
padding: any;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
'& .SCCourse-create-placeholder-avatar': {
|
|
186
|
+
position: string;
|
|
187
|
+
bottom: any;
|
|
188
|
+
left: any;
|
|
189
|
+
width: any;
|
|
190
|
+
height: any;
|
|
191
|
+
border: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
'& .SCCourse-create-placeholder-actions': {
|
|
195
|
+
display: string;
|
|
196
|
+
justifyContent: string;
|
|
197
|
+
height: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
skeletonRoot: ({ theme }: any) => {
|
|
201
|
+
'& .SCCourse-skeleton-preview-root': {
|
|
202
|
+
'& .SCCourse-skeleton-preview-avatar': {
|
|
203
|
+
position: string;
|
|
204
|
+
bottom: string;
|
|
205
|
+
left: any;
|
|
206
|
+
border: string;
|
|
207
|
+
};
|
|
208
|
+
'& .SCCourse-skeleton-preview-content': {
|
|
209
|
+
padding: string;
|
|
210
|
+
};
|
|
211
|
+
'& .SCCourse-skeleton-preview-actions': {
|
|
212
|
+
display: string;
|
|
213
|
+
marginTop: any;
|
|
214
|
+
justifyContent: string;
|
|
215
|
+
padding: any;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
'& .SCCourse-skeleton-snippet-root': {
|
|
219
|
+
overflow: string;
|
|
220
|
+
boxSizing: string;
|
|
221
|
+
paddingLeft: string;
|
|
222
|
+
paddingRight: string;
|
|
223
|
+
'& .SCCourse-skeleton-snippet-image': {
|
|
224
|
+
position: string;
|
|
225
|
+
'& .MuiSkeleton-root': {
|
|
226
|
+
borderRadius: string;
|
|
227
|
+
};
|
|
228
|
+
'& .MuiIcon-root': {
|
|
229
|
+
color: any;
|
|
230
|
+
position: string;
|
|
231
|
+
top: string;
|
|
232
|
+
left: string;
|
|
233
|
+
transform: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
'& .SCBaseItem-actions': {
|
|
237
|
+
maxWidth: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
export default Component;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Component = {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: ({ theme }) => ({}),
|
|
6
|
+
snippetRoot: ({ theme }) => ({
|
|
7
|
+
overflow: 'visible',
|
|
8
|
+
boxSizing: 'border-box',
|
|
9
|
+
paddingLeft: `${theme.spacing()} !important`,
|
|
10
|
+
paddingRight: `${theme.spacing()} !important`,
|
|
11
|
+
'& .SCBaseItem-image': {
|
|
12
|
+
'& .MuiAvatar-root': {
|
|
13
|
+
width: 100,
|
|
14
|
+
height: 60,
|
|
15
|
+
'& img': {
|
|
16
|
+
borderRadius: '5px'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
'& .SCCourse-snippet-image': {
|
|
21
|
+
position: 'relative',
|
|
22
|
+
'& .SCCourse-snippet-in-progress': {
|
|
23
|
+
height: 18,
|
|
24
|
+
backgroundColor: theme.palette.secondary.main,
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
top: 5,
|
|
27
|
+
right: 3,
|
|
28
|
+
color: theme.palette.common.white,
|
|
29
|
+
boxShadow: 'rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px',
|
|
30
|
+
'& span': {
|
|
31
|
+
fontSize: '0.8rem',
|
|
32
|
+
paddingLeft: theme.spacing(0.5),
|
|
33
|
+
paddingRight: theme.spacing(0.5)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'& .SCBaseItem-text': {
|
|
38
|
+
fontSize: theme.typography.fontSize,
|
|
39
|
+
'& .SCCourse-snippet-primary': {
|
|
40
|
+
color: theme.palette.text.primary,
|
|
41
|
+
textDecoration: 'none',
|
|
42
|
+
'&:hover': {
|
|
43
|
+
textDecoration: 'none'
|
|
44
|
+
},
|
|
45
|
+
'& p': {
|
|
46
|
+
fontWeight: theme.typography.fontWeightBold
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
'& .SCCourse-snippet-secondary': {
|
|
50
|
+
color: theme.palette.text.secondary
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
'& .SCCourse-chip': {
|
|
54
|
+
textTransform: 'uppercase',
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
top: theme.spacing(1),
|
|
57
|
+
left: theme.spacing(0.5),
|
|
58
|
+
color: theme.palette.common.white,
|
|
59
|
+
borderRadius: 0,
|
|
60
|
+
'& .MuiChip-label': {
|
|
61
|
+
fontWeight: 700,
|
|
62
|
+
padding: theme.spacing(0.5)
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
previewRoot: ({ theme }) => ({
|
|
67
|
+
minHeight: '290px',
|
|
68
|
+
'& .SCCourse-preview-image-wrapper': {
|
|
69
|
+
position: 'relative',
|
|
70
|
+
'& .SCCourse-preview-image': {
|
|
71
|
+
height: '110px'
|
|
72
|
+
},
|
|
73
|
+
'& .SCCourse-chip': {
|
|
74
|
+
textTransform: 'uppercase',
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
top: theme.spacing(2),
|
|
77
|
+
left: theme.spacing(2),
|
|
78
|
+
color: theme.palette.common.white,
|
|
79
|
+
borderRadius: 0,
|
|
80
|
+
'& .MuiChip-label': {
|
|
81
|
+
fontWeight: 700,
|
|
82
|
+
padding: theme.spacing(0.5)
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'& .SCCourse-preview-avatar': {
|
|
86
|
+
position: 'absolute',
|
|
87
|
+
bottom: theme.spacing(-2),
|
|
88
|
+
left: theme.spacing(1.5),
|
|
89
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
90
|
+
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
91
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
'& .SCCourse-preview-content': {
|
|
95
|
+
padding: theme.spacing(2),
|
|
96
|
+
'& .SCCourse-preview-creator': {
|
|
97
|
+
paddingTop: 0,
|
|
98
|
+
marginBottom: theme.spacing(1)
|
|
99
|
+
},
|
|
100
|
+
'& .SCCourse-preview-name-wrapper': {
|
|
101
|
+
textDecoration: 'none',
|
|
102
|
+
color: 'inherit',
|
|
103
|
+
h6: {
|
|
104
|
+
fontWeight: 700
|
|
105
|
+
},
|
|
106
|
+
'& .SCCourse-preview-name': {
|
|
107
|
+
display: '-webkit-box',
|
|
108
|
+
height: theme.spacing(4),
|
|
109
|
+
marginBottom: theme.spacing(0.5),
|
|
110
|
+
textOverflow: 'ellipsis',
|
|
111
|
+
overflow: 'hidden',
|
|
112
|
+
WebkitLineClamp: '2',
|
|
113
|
+
WebkitBoxOrient: 'vertical',
|
|
114
|
+
lineHeight: 1.2
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
'& .SCCourse-preview-info': {
|
|
118
|
+
height: theme.spacing(3),
|
|
119
|
+
display: 'flex',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
marginBottom: theme.spacing(1)
|
|
122
|
+
},
|
|
123
|
+
'& .SCCourse-preview-category': {
|
|
124
|
+
[theme.breakpoints.up('sm')]: {
|
|
125
|
+
height: theme.spacing(4)
|
|
126
|
+
},
|
|
127
|
+
'& .MuiChip-root': {
|
|
128
|
+
marginRight: theme.spacing(0.5)
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
'& .SCCourse-preview-progress': {
|
|
133
|
+
[theme.breakpoints.up('sm')]: {
|
|
134
|
+
height: theme.spacing(3)
|
|
135
|
+
},
|
|
136
|
+
justifyContent: 'center',
|
|
137
|
+
padding: theme.spacing(1),
|
|
138
|
+
'& .MuiLinearProgress-root': {
|
|
139
|
+
width: '100%',
|
|
140
|
+
height: 5,
|
|
141
|
+
borderRadius: 5,
|
|
142
|
+
marginTop: theme.spacing(1)
|
|
143
|
+
},
|
|
144
|
+
'& .SCCourse-preview-completed-status': {
|
|
145
|
+
display: 'flex',
|
|
146
|
+
alignItems: 'center',
|
|
147
|
+
justifyContent: 'center',
|
|
148
|
+
'& .MuiIcon-root': {
|
|
149
|
+
marginRight: theme.spacing(1)
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
'& .SCCourse-preview-progress-bar': {
|
|
153
|
+
backgroundColor: theme.palette.grey['300']
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
'& .SCCourse-preview-actions': {
|
|
157
|
+
justifyContent: 'center',
|
|
158
|
+
padding: theme.spacing(2)
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
161
|
+
createPlaceholderRoot: ({ theme }) => ({
|
|
162
|
+
minHeight: '290px',
|
|
163
|
+
'& .SCCourse-create-placeholder-image-wrapper': {
|
|
164
|
+
position: 'relative',
|
|
165
|
+
'& .SCCourse-create-placeholder-image': {
|
|
166
|
+
height: '110px'
|
|
167
|
+
},
|
|
168
|
+
'& .SCCourse-create-placeholder-icon': {
|
|
169
|
+
position: 'absolute',
|
|
170
|
+
top: '50%',
|
|
171
|
+
left: '50%',
|
|
172
|
+
transform: 'translate(-50%, -50%)',
|
|
173
|
+
color: theme.palette.common.white
|
|
174
|
+
},
|
|
175
|
+
'& .SCCourse-create-placeholder-chip': {
|
|
176
|
+
backgroundColor: theme.palette.grey['600'],
|
|
177
|
+
position: 'absolute',
|
|
178
|
+
top: theme.spacing(2),
|
|
179
|
+
left: theme.spacing(2),
|
|
180
|
+
color: theme.palette.common.white,
|
|
181
|
+
borderRadius: 0,
|
|
182
|
+
'& .MuiChip-label': {
|
|
183
|
+
fontWeight: 700,
|
|
184
|
+
padding: theme.spacing(0.5)
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
'& .SCCourse-create-placeholder-avatar': {
|
|
188
|
+
position: 'absolute',
|
|
189
|
+
bottom: theme.spacing(-2),
|
|
190
|
+
left: theme.spacing(1.5),
|
|
191
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
192
|
+
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
193
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
'& .SCCourse-create-placeholder-actions': {
|
|
197
|
+
display: 'flex',
|
|
198
|
+
justifyContent: 'center',
|
|
199
|
+
height: '246px'
|
|
200
|
+
}
|
|
201
|
+
}),
|
|
202
|
+
skeletonRoot: ({ theme }) => ({
|
|
203
|
+
'& .SCCourse-skeleton-preview-root': {
|
|
204
|
+
'& .SCCourse-skeleton-preview-avatar': {
|
|
205
|
+
position: 'absolute',
|
|
206
|
+
bottom: '-20px',
|
|
207
|
+
left: theme.spacing(1.5),
|
|
208
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
209
|
+
},
|
|
210
|
+
'& .SCCourse-skeleton-preview-content': {
|
|
211
|
+
padding: `16px ${theme.spacing(2)} 0 !important`
|
|
212
|
+
},
|
|
213
|
+
'& .SCCourse-skeleton-preview-actions': {
|
|
214
|
+
display: 'flex',
|
|
215
|
+
marginTop: theme.spacing(4),
|
|
216
|
+
justifyContent: 'center',
|
|
217
|
+
padding: theme.spacing(2)
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
'& .SCCourse-skeleton-snippet-root': {
|
|
221
|
+
overflow: 'visible',
|
|
222
|
+
boxSizing: 'border-box',
|
|
223
|
+
paddingLeft: `${theme.spacing()} !important`,
|
|
224
|
+
paddingRight: `${theme.spacing()} !important`,
|
|
225
|
+
'& .SCCourse-skeleton-snippet-image': {
|
|
226
|
+
position: 'relative',
|
|
227
|
+
'& .MuiSkeleton-root': {
|
|
228
|
+
borderRadius: '5px'
|
|
229
|
+
},
|
|
230
|
+
'& .MuiIcon-root': {
|
|
231
|
+
color: theme.palette.common.white,
|
|
232
|
+
position: 'absolute',
|
|
233
|
+
top: '50%',
|
|
234
|
+
left: '50%',
|
|
235
|
+
transform: 'translate(-50%, -50%)'
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
'& .SCBaseItem-actions': {
|
|
239
|
+
maxWidth: 'none !important'
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
exports.default = Component;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: () => {
|
|
4
|
+
'& .SCCourseCompletedDialog-wrapper': {
|
|
5
|
+
alignItems: string;
|
|
6
|
+
'& .SCCourseCompletedDialog-title': {
|
|
7
|
+
marginTop: string;
|
|
8
|
+
marginBottom: string;
|
|
9
|
+
};
|
|
10
|
+
'& .SCCourseCompletedDialog-description-pt1': {
|
|
11
|
+
marginTop: string;
|
|
12
|
+
};
|
|
13
|
+
'& .SCCourseCompletedDialog-description-pt2': {
|
|
14
|
+
marginTop: string;
|
|
15
|
+
marginBottom: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default Component;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Component = {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: () => ({
|
|
6
|
+
'& .SCCourseCompletedDialog-wrapper': {
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
'& .SCCourseCompletedDialog-title': {
|
|
9
|
+
marginTop: '60px',
|
|
10
|
+
marginBottom: '27px'
|
|
11
|
+
},
|
|
12
|
+
'& .SCCourseCompletedDialog-description-pt1': {
|
|
13
|
+
marginTop: '27px'
|
|
14
|
+
},
|
|
15
|
+
'& .SCCourseCompletedDialog-description-pt2': {
|
|
16
|
+
marginTop: '11px',
|
|
17
|
+
marginBottom: '53px'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = Component;
|