@selfcommunity/react-theme-default 0.1.0-alpha.286 → 0.1.0-alpha.288
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/SCBottomNavigation.d.ts +7 -0
- package/lib/cjs/components/SCBottomNavigation.js +8 -1
- package/lib/cjs/components/SCCommentObject.d.ts +1 -0
- package/lib/cjs/components/SCCommentObject.js +2 -1
- package/lib/cjs/components/SCCommentObjectReply.d.ts +1 -0
- package/lib/cjs/components/SCCommentObjectReply.js +1 -0
- package/lib/cjs/components/SCCommentsObject.d.ts +21 -1
- package/lib/cjs/components/SCCommentsObject.js +21 -1
- package/lib/cjs/components/SCComposer.d.ts +163 -295
- package/lib/cjs/components/SCComposer.js +173 -314
- package/lib/cjs/components/SCContributorsFeedObject.d.ts +1 -0
- package/lib/cjs/components/SCContributorsFeedObject.js +2 -1
- package/lib/cjs/components/SCFeedObject.d.ts +7 -1
- package/lib/cjs/components/SCFeedObject.js +13 -7
- package/lib/cjs/components/SCFeedObjectMediaPreview.d.ts +11 -0
- package/lib/cjs/components/{SCNavigationToolbarMobileSkeleton.js → SCFeedObjectMediaPreview.js} +4 -4
- package/lib/cjs/components/SCInlineComposerWidget.d.ts +31 -7
- package/lib/cjs/components/SCInlineComposerWidget.js +31 -7
- package/lib/cjs/components/SCLightbox.d.ts +1 -0
- package/lib/cjs/components/SCLightbox.js +2 -1
- package/lib/cjs/components/SCLoyaltyProgramWidget.js +1 -1
- package/lib/cjs/components/SCMediaFile.d.ts +158 -0
- package/lib/cjs/components/SCMediaFile.js +160 -0
- package/lib/cjs/components/SCMediaLink.d.ts +65 -0
- package/lib/cjs/components/SCMediaLink.js +68 -0
- package/lib/cjs/components/SCMediaShare.d.ts +6 -0
- package/lib/cjs/components/SCMediaShare.js +8 -0
- package/lib/cjs/components/SCNavigationToolbarMobile.d.ts +6 -0
- package/lib/cjs/components/SCNavigationToolbarMobile.js +6 -0
- package/lib/cjs/components/SCUserAvatar.d.ts +1 -0
- package/lib/cjs/components/SCUserAvatar.js +2 -1
- package/lib/cjs/components/SCWidget.d.ts +6 -4
- package/lib/cjs/components/SCWidget.js +7 -5
- package/lib/cjs/fonts/community/icons.eot +0 -0
- package/lib/cjs/fonts/community/icons.svg +30 -27
- 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 +12 -9
- package/lib/cjs/index.d.ts +464 -343
- package/lib/cjs/index.js +5 -5
- package/lib/esm/components/SCBottomNavigation.d.ts +7 -0
- package/lib/esm/components/SCBottomNavigation.js +8 -1
- package/lib/esm/components/SCCommentObject.d.ts +1 -0
- package/lib/esm/components/SCCommentObject.js +2 -1
- package/lib/esm/components/SCCommentObjectReply.d.ts +1 -0
- package/lib/esm/components/SCCommentObjectReply.js +1 -0
- package/lib/esm/components/SCCommentsObject.d.ts +21 -1
- package/lib/esm/components/SCCommentsObject.js +21 -1
- package/lib/esm/components/SCComposer.d.ts +163 -295
- package/lib/esm/components/SCComposer.js +173 -314
- package/lib/esm/components/SCContributorsFeedObject.d.ts +1 -0
- package/lib/esm/components/SCContributorsFeedObject.js +2 -1
- package/lib/esm/components/SCFeedObject.d.ts +7 -1
- package/lib/esm/components/SCFeedObject.js +13 -7
- package/lib/esm/components/SCFeedObjectMediaPreview.d.ts +11 -0
- package/lib/esm/components/SCFeedObjectMediaPreview.js +11 -0
- package/lib/esm/components/SCInlineComposerWidget.d.ts +31 -7
- package/lib/esm/components/SCInlineComposerWidget.js +31 -7
- package/lib/esm/components/SCLightbox.d.ts +1 -0
- package/lib/esm/components/SCLightbox.js +2 -1
- package/lib/esm/components/SCLoyaltyProgramWidget.js +1 -1
- package/lib/esm/components/SCMediaFile.d.ts +158 -0
- package/lib/esm/components/SCMediaFile.js +158 -0
- package/lib/esm/components/SCMediaLink.d.ts +65 -0
- package/lib/esm/components/SCMediaLink.js +66 -0
- package/lib/esm/components/SCMediaShare.d.ts +6 -0
- package/lib/esm/components/SCMediaShare.js +6 -0
- package/lib/esm/components/SCNavigationToolbarMobile.d.ts +6 -0
- package/lib/esm/components/SCNavigationToolbarMobile.js +6 -0
- package/lib/esm/components/SCUserAvatar.d.ts +1 -0
- package/lib/esm/components/SCUserAvatar.js +2 -1
- package/lib/esm/components/SCWidget.d.ts +6 -4
- package/lib/esm/components/SCWidget.js +7 -5
- package/lib/esm/fonts/community/icons.eot +0 -0
- package/lib/esm/fonts/community/icons.svg +30 -27
- 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 +12 -9
- package/lib/esm/index.d.ts +464 -343
- package/lib/esm/index.js +5 -5
- package/lib/umd/community/icons.eot +0 -0
- package/lib/umd/community/icons.svg +30 -27
- 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 +2 -2
- package/package.json +4 -4
- package/lib/cjs/components/SCComposerPoll.d.ts +0 -26
- package/lib/cjs/components/SCComposerPoll.js +0 -28
- package/lib/cjs/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
- package/lib/esm/components/SCComposerPoll.d.ts +0 -26
- package/lib/esm/components/SCComposerPoll.js +0 -26
- package/lib/esm/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
- package/lib/esm/components/SCNavigationToolbarMobileSkeleton.js +0 -11
|
@@ -20,6 +20,7 @@ const Component = {
|
|
|
20
20
|
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
21
21
|
},
|
|
22
22
|
'& .SCFeedObject-header': {
|
|
23
|
+
paddingTop: theme.spacing(1),
|
|
23
24
|
paddingBottom: 0,
|
|
24
25
|
'& .MuiCardHeader-subheader': {
|
|
25
26
|
display: 'flex',
|
|
@@ -84,7 +85,7 @@ const Component = {
|
|
|
84
85
|
width: '100%',
|
|
85
86
|
boxSizing: 'border-box',
|
|
86
87
|
margin: 0,
|
|
87
|
-
padding: theme.spacing(0.
|
|
88
|
+
padding: theme.spacing(0.2, 2)
|
|
88
89
|
},
|
|
89
90
|
'& .SCFeedObject-info-section': {
|
|
90
91
|
padding: theme.spacing(0, 2)
|
|
@@ -153,7 +154,8 @@ const Component = {
|
|
|
153
154
|
'& .SCFeedObject-text-section': {
|
|
154
155
|
overflowWrap: 'anywhere',
|
|
155
156
|
'& > :first-of-type': {
|
|
156
|
-
|
|
157
|
+
marginBottom: 0,
|
|
158
|
+
padding: theme.spacing(0, 2, 0.5),
|
|
157
159
|
display: 'block'
|
|
158
160
|
},
|
|
159
161
|
'& hr': {
|
|
@@ -252,22 +254,25 @@ const Component = {
|
|
|
252
254
|
'& li': {
|
|
253
255
|
margin: '0 32px'
|
|
254
256
|
}
|
|
257
|
+
},
|
|
258
|
+
'& .SCFeedObject-show-more': {
|
|
259
|
+
padding: theme.spacing(0.5),
|
|
260
|
+
marginTop: theme.spacing(-0.5)
|
|
255
261
|
}
|
|
256
262
|
},
|
|
257
263
|
'& .SCFeedObject-actions-section': {
|
|
258
|
-
marginBottom: theme.spacing(1),
|
|
259
264
|
'&:last-of-type': {
|
|
260
265
|
marginBottom: 0
|
|
261
266
|
},
|
|
262
267
|
'& .SCFeedObjectActions-root': {
|
|
263
268
|
margin: 0,
|
|
264
|
-
padding: theme.spacing(0, 2, 0, 2),
|
|
269
|
+
padding: theme.spacing(0.2, 2, 0, 2),
|
|
265
270
|
'& .SCFeedObjectActions-action': {
|
|
266
271
|
marginTop: 'auto',
|
|
267
272
|
'& .SCVoteAction-view-audience-button, & .SCCommentAction-view-audience-button, & .SCShareAction-view-audience-button, & .SCReactionAction-view-audience-button': {
|
|
268
273
|
fontSize: '0.857rem',
|
|
269
274
|
fontWeight: theme.typography.fontWeightRegular,
|
|
270
|
-
marginTop: theme.spacing(
|
|
275
|
+
marginTop: theme.spacing(0),
|
|
271
276
|
marginBottom: 0,
|
|
272
277
|
color: theme.palette.primary.main,
|
|
273
278
|
'&:hover': {
|
|
@@ -279,10 +284,10 @@ const Component = {
|
|
|
279
284
|
},
|
|
280
285
|
'& .SCVoteAction-button, & .SCCommentAction-button, & .SCShareAction-button, & .SCReactionAction-button': {
|
|
281
286
|
color: theme.palette.primary.main,
|
|
282
|
-
marginTop: theme.spacing(0.5),
|
|
287
|
+
marginTop: theme.spacing(-0.5),
|
|
283
288
|
marginBottom: theme.spacing(0.5),
|
|
284
289
|
borderRadius: '50%',
|
|
285
|
-
padding: theme.spacing(1
|
|
290
|
+
padding: theme.spacing(1),
|
|
286
291
|
minWidth: 0,
|
|
287
292
|
'& .MuiIcon-root': {
|
|
288
293
|
fontSize: '1.57rem'
|
|
@@ -328,6 +333,7 @@ const Component = {
|
|
|
328
333
|
paddingBottom: 0,
|
|
329
334
|
'& .SCActivitiesMenu-selector': {
|
|
330
335
|
'& .MuiButton-root': {
|
|
336
|
+
marginTop: theme.spacing(0.2),
|
|
331
337
|
fontSize: '0.857rem',
|
|
332
338
|
fontWeight: theme.typography.fontWeightRegular,
|
|
333
339
|
padding: theme.spacing(1)
|
|
@@ -28,13 +28,37 @@ declare const Component: {
|
|
|
28
28
|
textTransform: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
'& .SCInlineComposerWidget-
|
|
31
|
+
'& .SCInlineComposerWidget-avatar': {
|
|
32
|
+
[x: number]: {
|
|
33
|
+
marginLeft: any;
|
|
34
|
+
};
|
|
32
35
|
display: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
alignItems: string;
|
|
37
|
+
'& .MuiAvatar-root': {
|
|
38
|
+
width: any;
|
|
39
|
+
height: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
skeletonRoot: ({ theme }: any) => {
|
|
45
|
+
marginBottom: any;
|
|
46
|
+
'& .SCInlineComposerWidget-content, & .SCInlineComposerWidget-content:last-child': {
|
|
47
|
+
[x: number]: {
|
|
48
|
+
padding: any;
|
|
49
|
+
};
|
|
50
|
+
padding: any;
|
|
51
|
+
display: string;
|
|
52
|
+
flexDirection: string;
|
|
53
|
+
justifyContent: string;
|
|
54
|
+
'& .SCInlineComposerWidget-input': {
|
|
55
|
+
display: string;
|
|
56
|
+
flexGrow: number;
|
|
57
|
+
height: number;
|
|
58
|
+
width: string;
|
|
59
|
+
'& .MuiSkeleton-root': {
|
|
60
|
+
width: string;
|
|
61
|
+
height: string;
|
|
38
62
|
};
|
|
39
63
|
};
|
|
40
64
|
'& .SCInlineComposerWidget-avatar': {
|
|
@@ -43,7 +67,7 @@ declare const Component: {
|
|
|
43
67
|
};
|
|
44
68
|
display: string;
|
|
45
69
|
alignItems: string;
|
|
46
|
-
'& .
|
|
70
|
+
'& .MuiSkeleton-root': {
|
|
47
71
|
width: any;
|
|
48
72
|
height: any;
|
|
49
73
|
};
|
|
@@ -28,13 +28,37 @@ const Component = {
|
|
|
28
28
|
textTransform: 'none'
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
'& .SCInlineComposerWidget-
|
|
31
|
+
'& .SCInlineComposerWidget-avatar': {
|
|
32
32
|
display: 'flex',
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
[theme.breakpoints.up('sm')]: {
|
|
35
|
+
marginLeft: theme.spacing(2)
|
|
36
|
+
},
|
|
37
|
+
'& .MuiAvatar-root': {
|
|
38
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
39
|
+
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
skeletonRoot: ({ theme }) => ({
|
|
45
|
+
marginBottom: theme.spacing(2),
|
|
46
|
+
'& .SCInlineComposerWidget-content, & .SCInlineComposerWidget-content:last-child': {
|
|
47
|
+
padding: theme.spacing(0.5, 1),
|
|
48
|
+
display: 'flex',
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
justifyContent: 'space-between',
|
|
51
|
+
[theme.breakpoints.up('sm')]: {
|
|
52
|
+
padding: theme.spacing(0.5, 1, 0.5, 2)
|
|
53
|
+
},
|
|
54
|
+
'& .SCInlineComposerWidget-input': {
|
|
55
|
+
display: 'flex',
|
|
56
|
+
flexGrow: 2,
|
|
57
|
+
height: 30,
|
|
58
|
+
width: '80%',
|
|
59
|
+
'& .MuiSkeleton-root': {
|
|
60
|
+
width: '100%',
|
|
61
|
+
height: '100%'
|
|
38
62
|
}
|
|
39
63
|
},
|
|
40
64
|
'& .SCInlineComposerWidget-avatar': {
|
|
@@ -43,7 +67,7 @@ const Component = {
|
|
|
43
67
|
[theme.breakpoints.up('sm')]: {
|
|
44
68
|
marginLeft: theme.spacing(2)
|
|
45
69
|
},
|
|
46
|
-
'& .
|
|
70
|
+
'& .MuiSkeleton-root': {
|
|
47
71
|
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
48
72
|
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
49
73
|
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
displayRoot: ({ theme }: any) => {
|
|
4
|
+
[x: number]: {
|
|
5
|
+
minHeight: number;
|
|
6
|
+
};
|
|
7
|
+
textAlign: string;
|
|
8
|
+
margin: string;
|
|
9
|
+
width: string;
|
|
10
|
+
position: string;
|
|
11
|
+
'& .SCMediaFile-background': {
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
backgroundPosition: string;
|
|
14
|
+
backgroundRepeat: string;
|
|
15
|
+
};
|
|
16
|
+
'& .SCMediaFile-background-portrait': {
|
|
17
|
+
backgroundSize: string;
|
|
18
|
+
backgroundPosition: string;
|
|
19
|
+
backgroundRepeat: string;
|
|
20
|
+
};
|
|
21
|
+
'& .SCMediaFile-height-one': {
|
|
22
|
+
width: string;
|
|
23
|
+
paddingTop: string;
|
|
24
|
+
};
|
|
25
|
+
'& .SCMediaFile-height-half-one': {
|
|
26
|
+
paddingTop: string;
|
|
27
|
+
};
|
|
28
|
+
'& .SCMediaFile-height-two': {
|
|
29
|
+
width: string;
|
|
30
|
+
paddingTop: string;
|
|
31
|
+
};
|
|
32
|
+
'& .SCMediaFile-height-three': {
|
|
33
|
+
width: string;
|
|
34
|
+
paddingTop: string;
|
|
35
|
+
};
|
|
36
|
+
'& .SCMediaFile-cover': {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
opacity: number;
|
|
39
|
+
position: string;
|
|
40
|
+
right: number;
|
|
41
|
+
top: number;
|
|
42
|
+
left: number;
|
|
43
|
+
bottom: number;
|
|
44
|
+
};
|
|
45
|
+
'& .SCMediaFile-cover-text': {
|
|
46
|
+
right: number;
|
|
47
|
+
left: number;
|
|
48
|
+
bottom: number;
|
|
49
|
+
color: string;
|
|
50
|
+
fontSize: string;
|
|
51
|
+
position: string;
|
|
52
|
+
top: string;
|
|
53
|
+
transform: string;
|
|
54
|
+
textAlign: string;
|
|
55
|
+
'& > p': {
|
|
56
|
+
margin: number;
|
|
57
|
+
position: string;
|
|
58
|
+
top: string;
|
|
59
|
+
left: string;
|
|
60
|
+
transform: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
'& .SCMediaFile-slide': {
|
|
64
|
+
height: number;
|
|
65
|
+
bottom: string;
|
|
66
|
+
overflow: string;
|
|
67
|
+
fontSize: string;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
'& .SCMediaFile-border': {
|
|
71
|
+
position: string;
|
|
72
|
+
border: string;
|
|
73
|
+
'&:hover > div': {
|
|
74
|
+
bottom: number;
|
|
75
|
+
height: string;
|
|
76
|
+
};
|
|
77
|
+
'&:hover > div.animate-text': {
|
|
78
|
+
top: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
'& .SCMediaFile-gallery': {
|
|
82
|
+
cursor: string;
|
|
83
|
+
};
|
|
84
|
+
'& .SCMediaFile-title .MuiTypography-root': {
|
|
85
|
+
color: string;
|
|
86
|
+
backgroundColor: any;
|
|
87
|
+
opacity: number;
|
|
88
|
+
};
|
|
89
|
+
'& .SCMediaFile-icon-file': {
|
|
90
|
+
fontSize: number;
|
|
91
|
+
position: string;
|
|
92
|
+
top: number;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
lightboxRoot: ({ theme }: any) => {};
|
|
96
|
+
previewRoot: ({ theme }: any) => {
|
|
97
|
+
'& > div': {
|
|
98
|
+
display: string;
|
|
99
|
+
flexDirection: string;
|
|
100
|
+
flexWrap: string;
|
|
101
|
+
maxWidth: string;
|
|
102
|
+
overflow: string;
|
|
103
|
+
'-ms-overflow-style': string;
|
|
104
|
+
scrollbarWidth: string;
|
|
105
|
+
'&::-webkit-scrollbar': {
|
|
106
|
+
display: string;
|
|
107
|
+
};
|
|
108
|
+
'& .SCMediaFile-media': {
|
|
109
|
+
backgroundSize: string;
|
|
110
|
+
backgroundPosition: string;
|
|
111
|
+
position: string;
|
|
112
|
+
borderRadius: number;
|
|
113
|
+
margin: any;
|
|
114
|
+
width: number;
|
|
115
|
+
height: number;
|
|
116
|
+
flexBasis: number;
|
|
117
|
+
flexGrow: number;
|
|
118
|
+
flexShrink: number;
|
|
119
|
+
'& .SCMediaFile-title': {
|
|
120
|
+
position: string;
|
|
121
|
+
left: any;
|
|
122
|
+
top: any;
|
|
123
|
+
borderRadius: any;
|
|
124
|
+
background: string;
|
|
125
|
+
color: any;
|
|
126
|
+
fontSize: string;
|
|
127
|
+
padding: any;
|
|
128
|
+
maxWidth: number;
|
|
129
|
+
textOverflow: string;
|
|
130
|
+
overflow: string;
|
|
131
|
+
whiteSpace: string;
|
|
132
|
+
};
|
|
133
|
+
'& .SCMediaFile-delete': {
|
|
134
|
+
position: string;
|
|
135
|
+
right: any;
|
|
136
|
+
top: any;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
'&:has(> :last-child:nth-of-type(1)) .SCMediaFile-media': {
|
|
140
|
+
width: string;
|
|
141
|
+
flexBasis: string;
|
|
142
|
+
height: number;
|
|
143
|
+
margin: any;
|
|
144
|
+
'& .SCMediaFile-title': {
|
|
145
|
+
fontSize: string;
|
|
146
|
+
maxWidth: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
triggerRoot: ({ theme }: any) => {};
|
|
152
|
+
triggerDrawerRoot: ({ theme }: any) => {
|
|
153
|
+
zIndex: number;
|
|
154
|
+
};
|
|
155
|
+
triggerMenuRoot: ({ theme }: any) => {};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
export default Component;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
displayRoot: ({ theme }) => ({
|
|
4
|
+
textAlign: 'center',
|
|
5
|
+
margin: 'auto',
|
|
6
|
+
width: '100%',
|
|
7
|
+
position: 'relative',
|
|
8
|
+
[theme.breakpoints.down('md')]: {
|
|
9
|
+
minHeight: 170
|
|
10
|
+
},
|
|
11
|
+
'& .SCMediaFile-background': {
|
|
12
|
+
backgroundSize: 'cover !important',
|
|
13
|
+
backgroundPosition: 'center !important',
|
|
14
|
+
backgroundRepeat: 'no-repeat !important'
|
|
15
|
+
},
|
|
16
|
+
'& .SCMediaFile-background-portrait': {
|
|
17
|
+
backgroundSize: 'contain !important',
|
|
18
|
+
backgroundPosition: 'center !important',
|
|
19
|
+
backgroundRepeat: 'no-repeat !important'
|
|
20
|
+
},
|
|
21
|
+
'& .SCMediaFile-height-one': {
|
|
22
|
+
width: '100%',
|
|
23
|
+
paddingTop: '99%'
|
|
24
|
+
},
|
|
25
|
+
'& .SCMediaFile-height-half-one': {
|
|
26
|
+
paddingTop: '50%'
|
|
27
|
+
},
|
|
28
|
+
'& .SCMediaFile-height-two': {
|
|
29
|
+
width: '50%',
|
|
30
|
+
paddingTop: '50%'
|
|
31
|
+
},
|
|
32
|
+
'& .SCMediaFile-height-three': {
|
|
33
|
+
width: '33.3333%',
|
|
34
|
+
paddingTop: '33.3333%'
|
|
35
|
+
},
|
|
36
|
+
'& .SCMediaFile-cover': {
|
|
37
|
+
backgroundColor: 'rgba(102,102,102,0.2)',
|
|
38
|
+
opacity: 0.8,
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
right: 0,
|
|
41
|
+
top: 0,
|
|
42
|
+
left: 0,
|
|
43
|
+
bottom: 0
|
|
44
|
+
},
|
|
45
|
+
'& .SCMediaFile-cover-text': {
|
|
46
|
+
right: 0,
|
|
47
|
+
left: 0,
|
|
48
|
+
bottom: 0,
|
|
49
|
+
color: '#FFF',
|
|
50
|
+
fontSize: '7%',
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
top: '50%',
|
|
53
|
+
transform: 'translate(0%, -50%)',
|
|
54
|
+
textAlign: 'center',
|
|
55
|
+
'& > p': {
|
|
56
|
+
margin: 0,
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
top: '50%',
|
|
59
|
+
left: '50%',
|
|
60
|
+
transform: 'translate(-50%, -50%)'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
'& .SCMediaFile-slide': {
|
|
64
|
+
height: 0,
|
|
65
|
+
bottom: '100%',
|
|
66
|
+
overflow: 'hidden',
|
|
67
|
+
fontSize: '3%',
|
|
68
|
+
color: '#FFF'
|
|
69
|
+
},
|
|
70
|
+
'& .SCMediaFile-border': {
|
|
71
|
+
position: 'relative',
|
|
72
|
+
border: '2px solid #FFF',
|
|
73
|
+
'&:hover > div': {
|
|
74
|
+
bottom: 0,
|
|
75
|
+
height: 'auto'
|
|
76
|
+
},
|
|
77
|
+
'&:hover > div.animate-text': {
|
|
78
|
+
top: '66%'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
'& .SCMediaFile-gallery': {
|
|
82
|
+
cursor: 'pointer'
|
|
83
|
+
},
|
|
84
|
+
'& .SCMediaFile-title .MuiTypography-root': {
|
|
85
|
+
color: '#FFF',
|
|
86
|
+
backgroundColor: theme.palette.getContrastText('#FFF'),
|
|
87
|
+
opacity: 0.6
|
|
88
|
+
},
|
|
89
|
+
'& .SCMediaFile-icon-file': {
|
|
90
|
+
fontSize: 14,
|
|
91
|
+
position: 'relative',
|
|
92
|
+
top: 2
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
lightboxRoot: ({ theme }) => ({}),
|
|
96
|
+
previewRoot: ({ theme }) => ({
|
|
97
|
+
'& > div': {
|
|
98
|
+
display: 'flex',
|
|
99
|
+
flexDirection: 'row',
|
|
100
|
+
flexWrap: 'nowrap',
|
|
101
|
+
maxWidth: '100%',
|
|
102
|
+
overflow: 'auto',
|
|
103
|
+
'-ms-overflow-style': 'none',
|
|
104
|
+
scrollbarWidth: 'none',
|
|
105
|
+
'&::-webkit-scrollbar': {
|
|
106
|
+
display: 'none'
|
|
107
|
+
},
|
|
108
|
+
'& .SCMediaFile-media': {
|
|
109
|
+
backgroundSize: 'cover',
|
|
110
|
+
backgroundPosition: 'center',
|
|
111
|
+
position: 'relative',
|
|
112
|
+
borderRadius: theme.shape.borderRadius * 0.5,
|
|
113
|
+
margin: theme.spacing(0.5),
|
|
114
|
+
width: 120,
|
|
115
|
+
height: 140,
|
|
116
|
+
flexBasis: 120,
|
|
117
|
+
flexGrow: 0,
|
|
118
|
+
flexShrink: 0,
|
|
119
|
+
'& .SCMediaFile-title': {
|
|
120
|
+
position: 'absolute',
|
|
121
|
+
left: theme.spacing(1),
|
|
122
|
+
top: theme.spacing(1),
|
|
123
|
+
borderRadius: theme.shape.borderRadius,
|
|
124
|
+
background: '#33333380 0% 0% no-repeat padding-box',
|
|
125
|
+
color: theme.palette.common.white,
|
|
126
|
+
fontSize: '0.875rem',
|
|
127
|
+
padding: theme.spacing(0.5, 1),
|
|
128
|
+
maxWidth: 50,
|
|
129
|
+
textOverflow: 'ellipsis',
|
|
130
|
+
overflow: 'hidden',
|
|
131
|
+
whiteSpace: 'nowrap'
|
|
132
|
+
},
|
|
133
|
+
'& .SCMediaFile-delete': {
|
|
134
|
+
position: 'absolute',
|
|
135
|
+
right: theme.spacing(0.5),
|
|
136
|
+
top: theme.spacing(0.5)
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
'&:has(> :last-child:nth-of-type(1)) .SCMediaFile-media': {
|
|
140
|
+
width: '100%',
|
|
141
|
+
flexBasis: '100%',
|
|
142
|
+
height: 220,
|
|
143
|
+
margin: theme.spacing(0.5, 0),
|
|
144
|
+
'& .SCMediaFile-title': {
|
|
145
|
+
fontSize: '1rem',
|
|
146
|
+
maxWidth: 200
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
triggerRoot: ({ theme }) => ({}),
|
|
152
|
+
triggerDrawerRoot: ({ theme }) => ({
|
|
153
|
+
zIndex: 1300
|
|
154
|
+
}),
|
|
155
|
+
triggerMenuRoot: ({ theme }) => ({})
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
export default Component;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
displayRoot: ({ theme }: any) => {
|
|
4
|
+
'& .SCMediaLink-link': {
|
|
5
|
+
position: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
margin: any;
|
|
8
|
+
padding: any;
|
|
9
|
+
};
|
|
10
|
+
'& .SCMediaLink-video': {
|
|
11
|
+
margin: string;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
'& .SCMediaLink-thumbnail': {
|
|
15
|
+
[x: number]: {
|
|
16
|
+
maxWidth: number;
|
|
17
|
+
width: string;
|
|
18
|
+
float: string;
|
|
19
|
+
};
|
|
20
|
+
border: string;
|
|
21
|
+
borderRadius: number;
|
|
22
|
+
paddingTop: any;
|
|
23
|
+
margin: any;
|
|
24
|
+
};
|
|
25
|
+
'& .SCMediaLink-image': {
|
|
26
|
+
backgroundSize: string;
|
|
27
|
+
backgroundPosition: string;
|
|
28
|
+
backgroundRepeat: string;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
paddingBottom: number;
|
|
31
|
+
};
|
|
32
|
+
'& .SCMediaLink-snippet': {
|
|
33
|
+
padding: any;
|
|
34
|
+
'& .SCMediaLink-snippet-title': {};
|
|
35
|
+
'& .SCMediaLink-snippet-description': {
|
|
36
|
+
fontSize: string;
|
|
37
|
+
};
|
|
38
|
+
'& a': {
|
|
39
|
+
fontSize: string;
|
|
40
|
+
fontStyle: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
layerRoot: ({ theme }: any) => {
|
|
45
|
+
'& .SCMediaLink-content': {
|
|
46
|
+
'& form button[type=submit]': {
|
|
47
|
+
fontWeight: any;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
previewRoot: ({ theme }: any) => {
|
|
52
|
+
'& .SCMediaLink-media': {
|
|
53
|
+
position: string;
|
|
54
|
+
margin: any;
|
|
55
|
+
'& .SCMediaLink-delete': {
|
|
56
|
+
position: string;
|
|
57
|
+
right: any;
|
|
58
|
+
top: any;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
triggerRoot: ({ theme }: any) => {};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default Component;
|