@selfcommunity/react-theme-default 0.4.2-alpha.9 → 0.4.2-courses.99
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 +40 -0
- package/lib/cjs/components/SCAccordionLessons.js +40 -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/SCCommentObject.d.ts +19 -17
- package/lib/cjs/components/SCCommentObject.js +19 -17
- package/lib/cjs/components/SCComposer.d.ts +54 -14
- package/lib/cjs/components/SCComposer.js +79 -18
- package/lib/cjs/components/SCContributionActionsMenu.js +1 -1
- package/lib/cjs/components/SCCourse.d.ts +263 -0
- package/lib/cjs/components/SCCourse.js +265 -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 +198 -0
- package/lib/cjs/components/SCCourseDashboard.js +195 -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 +55 -0
- package/lib/cjs/components/SCCourseParticipantsButton.js +52 -0
- package/lib/cjs/components/SCCourseUsersTable.d.ts +82 -0
- package/lib/cjs/components/SCCourseUsersTable.js +80 -0
- package/lib/cjs/components/SCCourses.d.ts +137 -0
- package/lib/cjs/components/SCCourses.js +139 -0
- package/lib/cjs/components/SCCreateCourseButton.d.ts +12 -0
- package/lib/cjs/components/SCCreateCourseButton.js +14 -0
- package/lib/cjs/components/SCCreateLiveStreamButton.d.ts +12 -0
- package/lib/cjs/components/SCCreateLiveStreamButton.js +14 -0
- package/lib/cjs/components/SCDefaultDrawerContent.d.ts +31 -0
- package/lib/cjs/components/SCDefaultDrawerContent.js +33 -0
- package/lib/cjs/components/SCEditCourse.d.ts +218 -0
- package/lib/cjs/components/SCEditCourse.js +214 -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/SCEventHeader.d.ts +2 -0
- package/lib/cjs/components/SCEventHeader.js +3 -1
- package/lib/cjs/components/SCEventInfoDetails.d.ts +3 -0
- package/lib/cjs/components/SCEventInfoDetails.js +3 -0
- package/lib/cjs/components/SCFeedObject.d.ts +41 -13
- package/lib/cjs/components/SCFeedObject.js +43 -15
- package/lib/cjs/components/SCFeedObjectDetailTemplate.d.ts +11 -0
- package/lib/cjs/components/SCFeedObjectDetailTemplate.js +12 -1
- package/lib/cjs/components/SCLessonAppbar.d.ts +22 -0
- package/lib/cjs/components/SCLessonAppbar.js +24 -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 +39 -0
- package/lib/cjs/components/SCLessonCommentObjects.js +41 -0
- package/lib/cjs/components/SCLessonCompletedDialog.d.ts +21 -0
- package/lib/cjs/components/SCLessonCompletedDialog.js +23 -0
- package/lib/cjs/components/SCLessonDrawer.d.ts +37 -0
- package/lib/cjs/components/SCLessonDrawer.js +39 -0
- package/lib/cjs/components/SCLessonEditForm.d.ts +30 -0
- package/lib/cjs/components/SCLessonEditForm.js +30 -0
- package/lib/cjs/components/SCLessonObject.d.ts +45 -0
- package/lib/cjs/components/SCLessonObject.js +48 -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 +19 -0
- package/lib/cjs/components/SCLessonTemplate.js +20 -0
- package/lib/cjs/components/SCLiveStream.d.ts +218 -0
- package/lib/cjs/components/SCLiveStream.js +220 -0
- package/lib/cjs/components/SCLiveStreamDialog.d.ts +16 -0
- package/lib/cjs/components/SCLiveStreamDialog.js +18 -0
- package/lib/cjs/components/SCLiveStreamForm.d.ts +34 -0
- package/lib/cjs/components/SCLiveStreamForm.js +36 -0
- package/lib/cjs/components/SCLiveStreamFormSettings.d.ts +15 -0
- package/lib/cjs/components/SCLiveStreamFormSettings.js +17 -0
- package/lib/cjs/components/SCLiveStreamInfoDetails.d.ts +43 -0
- package/lib/cjs/components/SCLiveStreamInfoDetails.js +43 -0
- package/lib/cjs/components/SCLiveStreamRoom.d.ts +120 -0
- package/lib/cjs/components/SCLiveStreamRoom.js +122 -0
- package/lib/cjs/components/SCLiveStreamSelector.d.ts +71 -0
- package/lib/cjs/components/SCLiveStreamSelector.js +75 -0
- package/lib/cjs/components/SCLiveStreamVideoConference.d.ts +30 -0
- package/lib/cjs/components/SCLiveStreamVideoConference.js +32 -0
- package/lib/cjs/components/SCMediaFile.d.ts +0 -4
- package/lib/cjs/components/SCMediaFile.js +1 -5
- package/lib/cjs/components/SCNavigationMenuDrawer.d.ts +7 -0
- package/lib/cjs/components/SCNavigationMenuDrawer.js +7 -0
- package/lib/cjs/components/SCNavigationToolbar.d.ts +1 -1
- package/lib/cjs/components/SCNavigationToolbar.js +1 -1
- package/lib/cjs/components/SCNotification.d.ts +27 -0
- package/lib/cjs/components/SCNotification.js +27 -0
- package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +2 -0
- package/lib/cjs/components/SCPrivateMessageThreadItem.js +2 -1
- package/lib/cjs/components/SCUpScalingTierBadge.d.ts +13 -0
- package/lib/cjs/components/SCUpScalingTierBadge.js +15 -0
- package/lib/cjs/components/SCUserLiveStreamWidget.d.ts +101 -0
- package/lib/cjs/components/SCUserLiveStreamWidget.js +97 -0
- package/lib/cjs/components/SCVoteButton.d.ts +1 -0
- package/lib/cjs/components/SCVoteButton.js +1 -0
- 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 +4337 -1846
- package/lib/cjs/index.js +73 -1
- package/lib/esm/components/SCAccordionLessons.d.ts +40 -0
- package/lib/esm/components/SCAccordionLessons.js +38 -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/SCCommentObject.d.ts +19 -17
- package/lib/esm/components/SCCommentObject.js +19 -17
- package/lib/esm/components/SCComposer.d.ts +54 -14
- package/lib/esm/components/SCComposer.js +79 -18
- package/lib/esm/components/SCContributionActionsMenu.js +1 -1
- package/lib/esm/components/SCCourse.d.ts +263 -0
- package/lib/esm/components/SCCourse.js +263 -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 +198 -0
- package/lib/esm/components/SCCourseDashboard.js +193 -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 +55 -0
- package/lib/esm/components/SCCourseParticipantsButton.js +50 -0
- package/lib/esm/components/SCCourseUsersTable.d.ts +82 -0
- package/lib/esm/components/SCCourseUsersTable.js +78 -0
- package/lib/esm/components/SCCourses.d.ts +137 -0
- package/lib/esm/components/SCCourses.js +137 -0
- package/lib/esm/components/SCCreateCourseButton.d.ts +12 -0
- package/lib/esm/components/SCCreateCourseButton.js +12 -0
- package/lib/esm/components/SCCreateLiveStreamButton.d.ts +12 -0
- package/lib/esm/components/SCCreateLiveStreamButton.js +12 -0
- package/lib/esm/components/SCDefaultDrawerContent.d.ts +31 -0
- package/lib/esm/components/SCDefaultDrawerContent.js +31 -0
- package/lib/esm/components/SCEditCourse.d.ts +218 -0
- package/lib/esm/components/SCEditCourse.js +212 -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/SCEventHeader.d.ts +2 -0
- package/lib/esm/components/SCEventHeader.js +3 -1
- package/lib/esm/components/SCEventInfoDetails.d.ts +3 -0
- package/lib/esm/components/SCEventInfoDetails.js +3 -0
- package/lib/esm/components/SCFeedObject.d.ts +41 -13
- package/lib/esm/components/SCFeedObject.js +43 -15
- package/lib/esm/components/SCFeedObjectDetailTemplate.d.ts +11 -0
- package/lib/esm/components/SCFeedObjectDetailTemplate.js +12 -1
- package/lib/esm/components/SCLessonAppbar.d.ts +22 -0
- package/lib/esm/components/SCLessonAppbar.js +22 -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 +39 -0
- package/lib/esm/components/SCLessonCommentObjects.js +39 -0
- package/lib/esm/components/SCLessonCompletedDialog.d.ts +21 -0
- package/lib/esm/components/SCLessonCompletedDialog.js +21 -0
- package/lib/esm/components/SCLessonDrawer.d.ts +37 -0
- package/lib/esm/components/SCLessonDrawer.js +37 -0
- package/lib/esm/components/SCLessonEditForm.d.ts +30 -0
- package/lib/esm/components/SCLessonEditForm.js +28 -0
- package/lib/esm/components/SCLessonObject.d.ts +45 -0
- package/lib/esm/components/SCLessonObject.js +46 -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 +19 -0
- package/lib/esm/components/SCLessonTemplate.js +18 -0
- package/lib/esm/components/SCLiveStream.d.ts +218 -0
- package/lib/esm/components/SCLiveStream.js +218 -0
- package/lib/esm/components/SCLiveStreamDialog.d.ts +16 -0
- package/lib/esm/components/SCLiveStreamDialog.js +16 -0
- package/lib/esm/components/SCLiveStreamForm.d.ts +34 -0
- package/lib/esm/components/SCLiveStreamForm.js +34 -0
- package/lib/esm/components/SCLiveStreamFormSettings.d.ts +15 -0
- package/lib/esm/components/SCLiveStreamFormSettings.js +15 -0
- package/lib/esm/components/SCLiveStreamInfoDetails.d.ts +43 -0
- package/lib/esm/components/SCLiveStreamInfoDetails.js +41 -0
- package/lib/esm/components/SCLiveStreamRoom.d.ts +120 -0
- package/lib/esm/components/SCLiveStreamRoom.js +120 -0
- package/lib/esm/components/SCLiveStreamSelector.d.ts +71 -0
- package/lib/esm/components/SCLiveStreamSelector.js +73 -0
- package/lib/esm/components/SCLiveStreamVideoConference.d.ts +30 -0
- package/lib/esm/components/SCLiveStreamVideoConference.js +30 -0
- package/lib/esm/components/SCMediaFile.d.ts +0 -4
- package/lib/esm/components/SCMediaFile.js +1 -5
- package/lib/esm/components/SCNavigationMenuDrawer.d.ts +7 -0
- package/lib/esm/components/SCNavigationMenuDrawer.js +7 -0
- package/lib/esm/components/SCNavigationToolbar.d.ts +1 -1
- package/lib/esm/components/SCNavigationToolbar.js +1 -1
- package/lib/esm/components/SCNotification.d.ts +27 -0
- package/lib/esm/components/SCNotification.js +27 -0
- package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +2 -0
- package/lib/esm/components/SCPrivateMessageThreadItem.js +2 -1
- package/lib/esm/components/SCUpScalingTierBadge.d.ts +13 -0
- package/lib/esm/components/SCUpScalingTierBadge.js +13 -0
- package/lib/esm/components/SCUserLiveStreamWidget.d.ts +101 -0
- package/lib/esm/components/SCUserLiveStreamWidget.js +95 -0
- package/lib/esm/components/SCVoteButton.d.ts +1 -0
- package/lib/esm/components/SCVoteButton.js +1 -0
- 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 +4337 -1846
- package/lib/esm/index.js +73 -1
- 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 -19
- package/package.json +123 -119
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }) => ({}),
|
|
4
|
+
snippetRoot: ({ theme }) => ({
|
|
5
|
+
overflow: 'visible',
|
|
6
|
+
boxSizing: 'border-box',
|
|
7
|
+
paddingLeft: `${theme.spacing()} !important`,
|
|
8
|
+
paddingRight: `${theme.spacing()} !important`,
|
|
9
|
+
'& .SCBaseItem-image': {
|
|
10
|
+
'& .MuiAvatar-root': {
|
|
11
|
+
width: 100,
|
|
12
|
+
height: 60,
|
|
13
|
+
'& img': {
|
|
14
|
+
borderRadius: '5px'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
'& .SCCourse-snippet-image': {
|
|
19
|
+
position: 'relative',
|
|
20
|
+
'& .SCCourse-snippet-in-progress': {
|
|
21
|
+
height: 18,
|
|
22
|
+
backgroundColor: theme.palette.secondary.main,
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
top: 5,
|
|
25
|
+
right: 3,
|
|
26
|
+
color: theme.palette.common.white,
|
|
27
|
+
boxShadow: 'rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px',
|
|
28
|
+
'& span': {
|
|
29
|
+
fontSize: '0.8rem',
|
|
30
|
+
paddingLeft: theme.spacing(0.5),
|
|
31
|
+
paddingRight: theme.spacing(0.5)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
'& .SCBaseItem-text': {
|
|
36
|
+
fontSize: theme.typography.fontSize,
|
|
37
|
+
'& .SCCourse-snippet-primary': {
|
|
38
|
+
color: theme.palette.text.primary,
|
|
39
|
+
textDecoration: 'none',
|
|
40
|
+
'&:hover': {
|
|
41
|
+
textDecoration: 'none'
|
|
42
|
+
},
|
|
43
|
+
'& p': {
|
|
44
|
+
fontWeight: theme.typography.fontWeightBold
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
'& .SCCourse-snippet-secondary': {
|
|
48
|
+
color: theme.palette.text.secondary
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
'& .SCCourse-chip': {
|
|
52
|
+
textTransform: 'uppercase',
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
top: theme.spacing(1),
|
|
55
|
+
left: theme.spacing(0.5),
|
|
56
|
+
color: theme.palette.common.white,
|
|
57
|
+
borderRadius: 0,
|
|
58
|
+
'& .MuiChip-label': {
|
|
59
|
+
fontWeight: 700,
|
|
60
|
+
padding: theme.spacing(0.5)
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
previewRoot: ({ theme }) => ({
|
|
65
|
+
'& .SCCourse-preview-image-wrapper': {
|
|
66
|
+
position: 'relative',
|
|
67
|
+
'& .SCCourse-preview-image': {
|
|
68
|
+
height: '110px'
|
|
69
|
+
},
|
|
70
|
+
'& .SCCourse-chip': {
|
|
71
|
+
textTransform: 'uppercase',
|
|
72
|
+
position: 'absolute',
|
|
73
|
+
top: theme.spacing(2),
|
|
74
|
+
left: theme.spacing(2),
|
|
75
|
+
color: theme.palette.common.white,
|
|
76
|
+
borderRadius: 0,
|
|
77
|
+
'& .MuiChip-label': {
|
|
78
|
+
fontWeight: 700,
|
|
79
|
+
padding: theme.spacing(0.5)
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
'& .SCCourse-preview-avatar': {
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
bottom: theme.spacing(-2),
|
|
85
|
+
left: theme.spacing(1.5),
|
|
86
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
87
|
+
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
88
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'& .SCCourse-preview-content': {
|
|
92
|
+
padding: `16px ${theme.spacing(2)} 0 !important`,
|
|
93
|
+
'& .SCCourse-preview-creator': {
|
|
94
|
+
paddingTop: 0,
|
|
95
|
+
marginBottom: theme.spacing(1)
|
|
96
|
+
},
|
|
97
|
+
'& .SCCourse-preview-name-wrapper': {
|
|
98
|
+
textDecoration: 'none',
|
|
99
|
+
color: 'inherit',
|
|
100
|
+
h6: {
|
|
101
|
+
fontWeight: 700
|
|
102
|
+
},
|
|
103
|
+
'& .SCCourse-preview-name': {
|
|
104
|
+
marginBottom: theme.spacing(0.5)
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
'& .SCCourse-preview-info': {
|
|
108
|
+
display: 'flex',
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
marginBottom: theme.spacing(1)
|
|
111
|
+
},
|
|
112
|
+
'& .SCCourse-preview-category': {
|
|
113
|
+
[theme.breakpoints.up('sm')]: {
|
|
114
|
+
height: theme.spacing(4)
|
|
115
|
+
},
|
|
116
|
+
'& .MuiChip-root': {
|
|
117
|
+
marginRight: theme.spacing(0.5)
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
'& .SCCourse-preview-progress': {
|
|
122
|
+
[theme.breakpoints.up('sm')]: {
|
|
123
|
+
height: theme.spacing(3)
|
|
124
|
+
},
|
|
125
|
+
justifyContent: 'center',
|
|
126
|
+
padding: theme.spacing(1),
|
|
127
|
+
'& .MuiLinearProgress-root': {
|
|
128
|
+
width: '100%',
|
|
129
|
+
height: 5,
|
|
130
|
+
borderRadius: 5,
|
|
131
|
+
marginTop: theme.spacing(1)
|
|
132
|
+
},
|
|
133
|
+
'& .SCCourse-preview-completed-status': {
|
|
134
|
+
display: 'flex',
|
|
135
|
+
alignItems: 'center',
|
|
136
|
+
justifyContent: 'center',
|
|
137
|
+
'& .MuiIcon-root': {
|
|
138
|
+
marginRight: theme.spacing(1)
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
'& .SCCourse-preview-progress-bar': {
|
|
142
|
+
backgroundColor: theme.palette.grey['300']
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
'& .SCCourse-preview-actions': {
|
|
146
|
+
justifyContent: 'center',
|
|
147
|
+
padding: theme.spacing(2)
|
|
148
|
+
}
|
|
149
|
+
}),
|
|
150
|
+
placeholderRoot: ({ theme }) => ({
|
|
151
|
+
'& .SCCourse-placeholder-image-wrapper': {
|
|
152
|
+
position: 'relative',
|
|
153
|
+
'& .SCCourse-placeholder-image': {
|
|
154
|
+
height: '110px'
|
|
155
|
+
},
|
|
156
|
+
'& .SCCourse-placeholder-icon': {
|
|
157
|
+
position: 'absolute',
|
|
158
|
+
top: '50%',
|
|
159
|
+
left: '50%',
|
|
160
|
+
transform: 'translate(-50%, -50%)',
|
|
161
|
+
color: theme.palette.common.white
|
|
162
|
+
},
|
|
163
|
+
'& .SCCourse-placeholder-chip': {
|
|
164
|
+
backgroundColor: theme.palette.grey['600'],
|
|
165
|
+
position: 'absolute',
|
|
166
|
+
top: theme.spacing(2),
|
|
167
|
+
left: theme.spacing(2),
|
|
168
|
+
color: theme.palette.common.white,
|
|
169
|
+
borderRadius: 0,
|
|
170
|
+
'& .MuiChip-label': {
|
|
171
|
+
fontWeight: 700,
|
|
172
|
+
padding: theme.spacing(0.5)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
'& .SCCourse-placeholder-avatar': {
|
|
176
|
+
position: 'absolute',
|
|
177
|
+
bottom: theme.spacing(-2),
|
|
178
|
+
left: theme.spacing(1.5),
|
|
179
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
180
|
+
height: theme.selfcommunity.user.avatar.sizeMedium,
|
|
181
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
'& .SCCourse-placeholder-content': {
|
|
185
|
+
padding: `16px ${theme.spacing(2)} 0 !important`,
|
|
186
|
+
'& .SCCourse-placeholder-creator': {
|
|
187
|
+
fontSize: '0.875rem',
|
|
188
|
+
marginBottom: theme.spacing(0.5)
|
|
189
|
+
},
|
|
190
|
+
'& .SCCourse-placeholder-name-wrapper': {
|
|
191
|
+
textDecoration: 'none',
|
|
192
|
+
color: 'inherit',
|
|
193
|
+
'& .SCCourse-placeholder-name': {
|
|
194
|
+
fontSize: '1rem',
|
|
195
|
+
marginBottom: theme.spacing(0.5)
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
'& .SCCourse-placeholder-info': {
|
|
199
|
+
display: 'flex',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
marginBottom: theme.spacing(1)
|
|
202
|
+
},
|
|
203
|
+
[theme.breakpoints.up('sm')]: {
|
|
204
|
+
height: theme.spacing(20.5)
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
'& .SCCourse-placeholder-actions': {
|
|
208
|
+
'& .MuiIcon-root': {
|
|
209
|
+
marginRight: theme.spacing(1)
|
|
210
|
+
},
|
|
211
|
+
padding: theme.spacing(2)
|
|
212
|
+
},
|
|
213
|
+
'& .SCCourse-placeholder-create-button': {
|
|
214
|
+
display: 'flex',
|
|
215
|
+
justifyContent: 'center',
|
|
216
|
+
marginTop: theme.spacing(10.25),
|
|
217
|
+
marginBottom: theme.spacing(10.25)
|
|
218
|
+
}
|
|
219
|
+
}),
|
|
220
|
+
skeletonRoot: ({ theme }) => ({
|
|
221
|
+
'& .SCCourse-skeleton-preview-root': {
|
|
222
|
+
'& .SCCourse-skeleton-preview-avatar': {
|
|
223
|
+
position: 'absolute',
|
|
224
|
+
bottom: '-20px',
|
|
225
|
+
left: theme.spacing(1.5),
|
|
226
|
+
border: `#FFF solid ${theme.spacing(0.2)}`
|
|
227
|
+
},
|
|
228
|
+
'& .SCCourse-skeleton-preview-content': {
|
|
229
|
+
padding: `16px ${theme.spacing(2)} 0 !important`
|
|
230
|
+
},
|
|
231
|
+
'& .SCCourse-skeleton-preview-actions': {
|
|
232
|
+
display: 'flex',
|
|
233
|
+
marginTop: theme.spacing(4),
|
|
234
|
+
justifyContent: 'center',
|
|
235
|
+
padding: theme.spacing(2)
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
'& .SCCourse-skeleton-snippet-root': {
|
|
239
|
+
overflow: 'visible',
|
|
240
|
+
boxSizing: 'border-box',
|
|
241
|
+
paddingLeft: `${theme.spacing()} !important`,
|
|
242
|
+
paddingRight: `${theme.spacing()} !important`,
|
|
243
|
+
'& .SCCourse-skeleton-snippet-image': {
|
|
244
|
+
position: 'relative',
|
|
245
|
+
'& .MuiSkeleton-root': {
|
|
246
|
+
borderRadius: '5px'
|
|
247
|
+
},
|
|
248
|
+
'& .MuiIcon-root': {
|
|
249
|
+
color: theme.palette.common.white,
|
|
250
|
+
position: 'absolute',
|
|
251
|
+
top: '50%',
|
|
252
|
+
left: '50%',
|
|
253
|
+
transform: 'translate(-50%, -50%)'
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
'& .SCBaseItem-actions': {
|
|
257
|
+
maxWidth: 'none !important'
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
export default Component;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: any) => {
|
|
4
|
+
'& .MuiList-root': {
|
|
5
|
+
'& .Mui-selected': {
|
|
6
|
+
backgroundColor: any;
|
|
7
|
+
'&:hover, &:focus, &:active': {
|
|
8
|
+
backgroundColor: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
'& .SCCourseContentMenu-list-item': {
|
|
13
|
+
'&:hover, &:focus, &:active': {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
'& .SCCourseContentMenu-list-item-icon': {
|
|
18
|
+
minWidth: any;
|
|
19
|
+
color: any;
|
|
20
|
+
};
|
|
21
|
+
'& .SCCourseContentMenu-item': {
|
|
22
|
+
padding: any;
|
|
23
|
+
'& .MuiListItemText-primary': {
|
|
24
|
+
fontWeight: any;
|
|
25
|
+
};
|
|
26
|
+
'&:hover': {
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
'& .SCCourseContentMenu-item-icon': {
|
|
31
|
+
minWidth: any;
|
|
32
|
+
};
|
|
33
|
+
'& .SCCourseContentMenu-icon-complete': {
|
|
34
|
+
color: any;
|
|
35
|
+
};
|
|
36
|
+
'& .SCCourseContentMenu-icon-incomplete': {
|
|
37
|
+
color: any;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default Component;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }) => ({
|
|
4
|
+
'& .MuiList-root': {
|
|
5
|
+
'& .Mui-selected': {
|
|
6
|
+
backgroundColor: theme.palette.grey[300],
|
|
7
|
+
'&:hover, &:focus, &:active': {
|
|
8
|
+
backgroundColor: theme.palette.grey[300]
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
'& .SCCourseContentMenu-list-item': {
|
|
13
|
+
'&:hover, &:focus, &:active': {
|
|
14
|
+
backgroundColor: 'transparent'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
'& .SCCourseContentMenu-list-item-icon': {
|
|
18
|
+
minWidth: theme.spacing(3),
|
|
19
|
+
color: theme.palette.text.secondary
|
|
20
|
+
},
|
|
21
|
+
'& .SCCourseContentMenu-item': {
|
|
22
|
+
padding: theme.spacing(0.5, 0, 0.5, 3),
|
|
23
|
+
'& .MuiListItemText-primary': {
|
|
24
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
25
|
+
},
|
|
26
|
+
'&:hover': { backgroundColor: 'transparent' }
|
|
27
|
+
},
|
|
28
|
+
'& .SCCourseContentMenu-item-icon': {
|
|
29
|
+
minWidth: theme.spacing(4)
|
|
30
|
+
},
|
|
31
|
+
'& .SCCourseContentMenu-icon-complete': {
|
|
32
|
+
color: theme.palette.success.main
|
|
33
|
+
},
|
|
34
|
+
'& .SCCourseContentMenu-icon-incomplete': {
|
|
35
|
+
color: theme.palette.grey[300]
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export default Component;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: {
|
|
4
|
+
theme: any;
|
|
5
|
+
}) => {
|
|
6
|
+
'& .SCCourseDashboard-header': {
|
|
7
|
+
[x: number]: {
|
|
8
|
+
paddingLeft: string;
|
|
9
|
+
paddingRight: string;
|
|
10
|
+
};
|
|
11
|
+
'& .SCCourseDashboard-header-img': {
|
|
12
|
+
[x: number]: {
|
|
13
|
+
display: string;
|
|
14
|
+
};
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
borderBottomLeftRadius: string;
|
|
18
|
+
borderBottomRightRadius: string;
|
|
19
|
+
marginBottom: string;
|
|
20
|
+
};
|
|
21
|
+
'& .SCCourseDashboard-header-outer-wrapper': {
|
|
22
|
+
[x: number]: {
|
|
23
|
+
flexDirection: string;
|
|
24
|
+
alignItems: string;
|
|
25
|
+
justifyContent: string;
|
|
26
|
+
marginTop: any;
|
|
27
|
+
marginBottom: string;
|
|
28
|
+
};
|
|
29
|
+
alignItems: string;
|
|
30
|
+
gap: string;
|
|
31
|
+
marginTop: any;
|
|
32
|
+
marginBottom: any;
|
|
33
|
+
'& .SCCourseDashboard-header-inner-wrapper': {
|
|
34
|
+
[x: number]: {
|
|
35
|
+
flexDirection: string;
|
|
36
|
+
alignItems: string;
|
|
37
|
+
gap: string;
|
|
38
|
+
};
|
|
39
|
+
alignItems: string;
|
|
40
|
+
gap: string;
|
|
41
|
+
'& .SCCourseDashboard-header-icon-wrapper': {
|
|
42
|
+
flexDirection: string;
|
|
43
|
+
alignItems: string;
|
|
44
|
+
gap: any;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
'& .SCCourseDashboard-info-wrapper': {
|
|
50
|
+
[x: number]: {
|
|
51
|
+
flexDirection: string;
|
|
52
|
+
gap: string;
|
|
53
|
+
paddingLeft?: undefined;
|
|
54
|
+
paddingRight?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
paddingLeft: string;
|
|
57
|
+
paddingRight: string;
|
|
58
|
+
flexDirection?: undefined;
|
|
59
|
+
gap?: undefined;
|
|
60
|
+
};
|
|
61
|
+
gap: any;
|
|
62
|
+
marginBottom: any;
|
|
63
|
+
'& .SCCourseDashboard-info': {
|
|
64
|
+
flex: number;
|
|
65
|
+
gap: string;
|
|
66
|
+
border: string;
|
|
67
|
+
borderRadius: string;
|
|
68
|
+
padding: any;
|
|
69
|
+
'& .SCCourseParticipantsButton-root': {
|
|
70
|
+
justifyContent: string;
|
|
71
|
+
padding: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
'& .SCCourseDashboard-tab-list': {
|
|
76
|
+
borderBottom: string;
|
|
77
|
+
'& .SCCourseDashboard-tab': {
|
|
78
|
+
textTransform: string;
|
|
79
|
+
};
|
|
80
|
+
'& > .Mui-disabled': {
|
|
81
|
+
opacity: number;
|
|
82
|
+
};
|
|
83
|
+
'& > .MuiTabs-scrollButtons': {
|
|
84
|
+
display: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
'& .SCCourseDashboard-tab-panel': {
|
|
88
|
+
[x: number]: {
|
|
89
|
+
paddingLeft: string;
|
|
90
|
+
paddingRight: string;
|
|
91
|
+
};
|
|
92
|
+
padding: any;
|
|
93
|
+
};
|
|
94
|
+
'& .SCCourseDashboard-comments-container': {
|
|
95
|
+
[x: number]: {
|
|
96
|
+
paddingLeft: string;
|
|
97
|
+
paddingRight: string;
|
|
98
|
+
};
|
|
99
|
+
'& .SCCourseDashboard-outer-wrapper': {
|
|
100
|
+
marginTop: string;
|
|
101
|
+
marginBottom: string;
|
|
102
|
+
'& .SCCourseDashboard-inner-wrapper': {
|
|
103
|
+
gap: any;
|
|
104
|
+
marginTop: string;
|
|
105
|
+
marginBottom: string;
|
|
106
|
+
'& .SCCourseDashboard-user-wrapper': {
|
|
107
|
+
flexDirection: string;
|
|
108
|
+
gap: string;
|
|
109
|
+
'& .SCCourseDashboard-avatar': {
|
|
110
|
+
width: string;
|
|
111
|
+
height: string;
|
|
112
|
+
};
|
|
113
|
+
'& .SCCourseDashboard-user-info': {
|
|
114
|
+
flexDirection: string;
|
|
115
|
+
alignItems: string;
|
|
116
|
+
gap: string;
|
|
117
|
+
'& .SCCourseDashboard-circle': {
|
|
118
|
+
width: string;
|
|
119
|
+
height: string;
|
|
120
|
+
borderRadius: string;
|
|
121
|
+
backgroundColor: any;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
'& .SCCourseDashboard-button': {
|
|
126
|
+
width: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
'&.SCCourseDashboard-student-container': {
|
|
132
|
+
'& .SCCourseDashboard-progress': {
|
|
133
|
+
borderRadius: string;
|
|
134
|
+
backgroundColor: any;
|
|
135
|
+
};
|
|
136
|
+
'& .SCCourseDashboard-accordion': {
|
|
137
|
+
borderTopLeftRadius: string;
|
|
138
|
+
borderTopRightRadius: string;
|
|
139
|
+
};
|
|
140
|
+
'& .SCCourseDashboard-user-wrapper': {
|
|
141
|
+
flexDirection: string;
|
|
142
|
+
alignItems: string;
|
|
143
|
+
justifyContent: string;
|
|
144
|
+
'& .SCCourseDashboard-user': {
|
|
145
|
+
flexDirection: string;
|
|
146
|
+
gap: string;
|
|
147
|
+
marginTop: string;
|
|
148
|
+
marginBottom: string;
|
|
149
|
+
'& .SCCourseDashboard-avatar': {
|
|
150
|
+
width: string;
|
|
151
|
+
height: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
'& .SCCourseDashboard-lessons-sections': {
|
|
156
|
+
flexDirection: string;
|
|
157
|
+
alignItems: string;
|
|
158
|
+
gap: string;
|
|
159
|
+
border: string;
|
|
160
|
+
borderBottom: string;
|
|
161
|
+
borderTopLeftRadius: string;
|
|
162
|
+
borderTopRightRadius: string;
|
|
163
|
+
padding: string;
|
|
164
|
+
'& .SCCourseDashboard-circle': {
|
|
165
|
+
width: string;
|
|
166
|
+
height: string;
|
|
167
|
+
borderRadius: number;
|
|
168
|
+
backgroundColor: any;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
'& .SCCourseDashboard-margin': {
|
|
172
|
+
marginTop: string;
|
|
173
|
+
marginBottom: string;
|
|
174
|
+
};
|
|
175
|
+
'& .SCCourseDashboard-box': {
|
|
176
|
+
gap: string;
|
|
177
|
+
border: string;
|
|
178
|
+
borderRadius: string;
|
|
179
|
+
padding: string;
|
|
180
|
+
};
|
|
181
|
+
'& .SCCourseDashboard-percentage-wrapper': {
|
|
182
|
+
[x: number]: {
|
|
183
|
+
flexDirection: string;
|
|
184
|
+
};
|
|
185
|
+
justifyContent: string;
|
|
186
|
+
gap: string;
|
|
187
|
+
};
|
|
188
|
+
'& .SCCourseDashboard-completed-wrapper': {
|
|
189
|
+
flexDirection: string;
|
|
190
|
+
alignItems: string;
|
|
191
|
+
gap: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
skeletonRoot: () => {};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export default Component;
|