@selfcommunity/react-theme-default 0.1.0-alpha.287 → 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/SCComposer.d.ts +163 -295
- package/lib/cjs/components/SCComposer.js +173 -314
- 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/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/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 +425 -333
- 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/SCComposer.d.ts +163 -295
- package/lib/esm/components/SCComposer.js +173 -314
- 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/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/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 +425 -333
- 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
|
@@ -1,351 +1,210 @@
|
|
|
1
1
|
import { alpha } from '@mui/system';
|
|
2
|
-
import { hexToRgb } from '@mui/material';
|
|
3
2
|
const Component = {
|
|
4
3
|
styleOverrides: {
|
|
5
|
-
root: ({ theme }) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
root: ({ theme }) => ({
|
|
5
|
+
'& .MuiDialog-paper': {
|
|
6
|
+
position: 'relative',
|
|
7
|
+
overflowX: 'hidden',
|
|
8
|
+
'& > form': {
|
|
9
|
+
zIndex: 0
|
|
10
|
+
},
|
|
11
|
+
'& .MuiDialogTitle-root': {
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
top: 0,
|
|
14
|
+
left: 0,
|
|
15
|
+
right: 0,
|
|
16
|
+
padding: theme.spacing(0.5, 2, 0.5, 1),
|
|
16
17
|
display: 'flex',
|
|
17
18
|
flexDirection: 'row',
|
|
18
|
-
flexWrap: 'nowrap',
|
|
19
19
|
justifyContent: 'space-between',
|
|
20
20
|
alignItems: 'center',
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
textAlign: 'center'
|
|
29
|
-
},
|
|
30
|
-
'& > div:first-of-type': {
|
|
31
|
-
textAlign: 'left'
|
|
32
|
-
},
|
|
33
|
-
'& > div:last-of-type': {
|
|
34
|
-
textAlign: 'right',
|
|
35
|
-
display: 'block'
|
|
21
|
+
borderBottom: `1px solid ${theme.palette.grey[400]}`,
|
|
22
|
+
zIndex: 2,
|
|
23
|
+
backgroundColor: theme.palette.background.paper,
|
|
24
|
+
'& .MuiTypography-root': {
|
|
25
|
+
flexGrow: 1,
|
|
26
|
+
textAlign: 'left',
|
|
27
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
36
28
|
}
|
|
37
29
|
},
|
|
38
|
-
'& .
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
display: 'inline-block'
|
|
46
|
-
},
|
|
47
|
-
'& .SCComposer-content': {
|
|
48
|
-
position: 'relative',
|
|
49
|
-
overflowY: 'visible',
|
|
50
|
-
padding: theme.spacing(3, 0),
|
|
51
|
-
minHeight: 300,
|
|
52
|
-
display: 'flex',
|
|
53
|
-
flexDirection: 'column',
|
|
54
|
-
justifyContent: 'space-between',
|
|
55
|
-
'& .SCComposer-editor': {
|
|
56
|
-
flexGrow: 1,
|
|
57
|
-
padding: 0,
|
|
58
|
-
fontSize: '1rem',
|
|
30
|
+
'& .MuiDialogContent-root': {
|
|
31
|
+
margin: '45px 0',
|
|
32
|
+
padding: theme.spacing(1, 2),
|
|
33
|
+
height: `calc(100vh - 45px - 45px - ${theme.spacing(2)})`,
|
|
34
|
+
'& .SCEditor-root': {
|
|
35
|
+
padding: theme.spacing(1, 0),
|
|
36
|
+
position: 'static',
|
|
59
37
|
'& .SCEditor-placeholder': {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
'& .SCEditor-actions': {
|
|
64
|
-
bottom: theme.spacing(4),
|
|
65
|
-
padding: theme.spacing(3, 0, 0, 0),
|
|
66
|
-
'& > p.MuiTypography-alignLeft > .MuiIconButton-root': {
|
|
67
|
-
marginLeft: theme.spacing(0.3),
|
|
68
|
-
marginRight: theme.spacing(0.3),
|
|
69
|
-
'&:first-of-type': {
|
|
70
|
-
marginLeft: 0
|
|
71
|
-
},
|
|
72
|
-
'&:last-child': {
|
|
73
|
-
marginRight: 0
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
'& > p.MuiTypography-alignRight > .MuiIconButton-root': {
|
|
77
|
-
marginRight: theme.spacing(1.5)
|
|
78
|
-
},
|
|
79
|
-
'& .MuiIconButton-sizeMedium': {
|
|
80
|
-
fontSize: '1.429rem'
|
|
81
|
-
}
|
|
38
|
+
left: 0,
|
|
39
|
+
top: -60,
|
|
40
|
+
position: 'relative'
|
|
82
41
|
},
|
|
83
|
-
'
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
'& .SCComposer-medias, & .SCComposer-audience, & .SCComposer-block': {
|
|
94
|
-
margin: theme.spacing(1, 0),
|
|
95
|
-
padding: 0
|
|
96
|
-
},
|
|
97
|
-
'& .SCComposer-medias': {
|
|
98
|
-
'& .SCComposer-mediasActions': {
|
|
99
|
-
position: 'relative',
|
|
100
|
-
borderTop: `1px solid ${theme.palette.grey[400]}`,
|
|
101
|
-
backgroundColor: theme.palette.background.paper,
|
|
102
|
-
padding: theme.spacing(1, 0),
|
|
103
|
-
'& .SCComposer-mediasActionsTitle': {
|
|
104
|
-
fontSize: '1.143rem'
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
'& .SCComposer-mediaContent, & .SCComposer-audienceContent, & .SCComposer-locationContent': {
|
|
110
|
-
minHeight: 300
|
|
111
|
-
},
|
|
112
|
-
'& .SCComposer-audienceContent': {
|
|
113
|
-
maxWidth: 400,
|
|
114
|
-
margin: theme.spacing(0, 'auto'),
|
|
115
|
-
'& .MuiTabs-root': {
|
|
116
|
-
margin: theme.spacing(0),
|
|
117
|
-
'& .MuiTabs-flexContainer': {
|
|
118
|
-
justifyContent: 'center',
|
|
119
|
-
'& .MuiTab-root': {
|
|
120
|
-
minHeight: theme.spacing(6),
|
|
121
|
-
flexDirection: 'row',
|
|
122
|
-
'& .MuiTab-iconWrapper': {
|
|
123
|
-
marginRight: theme.spacing(1),
|
|
124
|
-
fontSize: '1.429rem'
|
|
125
|
-
}
|
|
126
|
-
}
|
|
42
|
+
'& .SCEditorToolbarPlugin-root': {
|
|
43
|
+
zIndex: 1,
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
display: 'flex',
|
|
46
|
+
bottom: 45,
|
|
47
|
+
right: theme.spacing(0.2),
|
|
48
|
+
left: theme.spacing(0.2),
|
|
49
|
+
marginBottom: 0,
|
|
50
|
+
backgroundColor: theme.palette.background.paper
|
|
127
51
|
}
|
|
128
|
-
},
|
|
129
|
-
'& .SCComposer-block': {
|
|
130
|
-
marginBottom: theme.spacing(4)
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
'& .SCComposer-block': {
|
|
134
|
-
padding: theme.spacing(1)
|
|
135
|
-
},
|
|
136
|
-
'& .SCComposer-editor': {
|
|
137
|
-
minHeight: 200,
|
|
138
|
-
'& .SCEditor-placeholder': {
|
|
139
|
-
top: theme.spacing(1),
|
|
140
|
-
left: theme.spacing(1)
|
|
141
52
|
}
|
|
142
53
|
},
|
|
143
|
-
'& .SCComposer-
|
|
144
|
-
borderTop: '1px solid #D1D1D1'
|
|
145
|
-
},
|
|
146
|
-
'& .SCComposer-medias': {
|
|
147
|
-
margin: '0 23px'
|
|
148
|
-
},
|
|
149
|
-
'& .SCComposer-location, & .SCComposer-audience': {
|
|
150
|
-
padding: theme.spacing(2),
|
|
151
|
-
paddingBottom: 0
|
|
152
|
-
},
|
|
153
|
-
'& .SCComposer-mediasActions': {
|
|
54
|
+
'& .SCComposer-types': {
|
|
154
55
|
position: 'absolute',
|
|
56
|
+
zIndex: 2,
|
|
57
|
+
bottom: theme.spacing(7),
|
|
155
58
|
left: 0,
|
|
156
59
|
right: 0,
|
|
157
|
-
|
|
158
|
-
padding: theme.spacing(),
|
|
159
|
-
zIndex: 1,
|
|
160
|
-
display: 'flex',
|
|
161
|
-
flexWrap: 'nowrap',
|
|
162
|
-
justifyContent: 'space-between',
|
|
163
|
-
'& .SCComposer-mediasActionsActions': {
|
|
164
|
-
textAlign: 'right'
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
'& .SCComposer-sortableMedia': {
|
|
168
|
-
position: 'relative'
|
|
169
|
-
},
|
|
170
|
-
'& .SCComposer-sortableMediaCover': {
|
|
171
|
-
backgroundSize: 'cover !important',
|
|
172
|
-
backgroundPosition: 'center !important',
|
|
173
|
-
backgroundRepeat: 'no-repeat !important',
|
|
174
|
-
border: '2px solid white',
|
|
175
|
-
borderRadius: 6,
|
|
176
|
-
height: 300
|
|
60
|
+
justifyContent: 'center'
|
|
177
61
|
},
|
|
178
|
-
'& .
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
padding: theme.spacing(1),
|
|
185
|
-
'& .SCComposer-media-actions': {},
|
|
186
|
-
'& .SCComposer-filter-actions': {
|
|
187
|
-
flexGrow: 1,
|
|
188
|
-
textAlign: 'right'
|
|
189
|
-
},
|
|
62
|
+
'& .MuiDialogActions-root': {
|
|
63
|
+
position: 'absolute',
|
|
64
|
+
bottom: 0,
|
|
65
|
+
left: 0,
|
|
66
|
+
right: 0,
|
|
67
|
+
padding: theme.spacing(0.5, 1),
|
|
190
68
|
display: 'flex',
|
|
191
69
|
flexDirection: 'row',
|
|
192
|
-
flexWrap: 'nowrap',
|
|
193
70
|
justifyContent: 'space-between',
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
display: 'none !important'
|
|
71
|
+
zIndex: 1,
|
|
72
|
+
backgroundColor: theme.palette.background.paper,
|
|
73
|
+
borderTop: `1px solid ${theme.palette.grey[400]}`
|
|
198
74
|
},
|
|
199
|
-
'& .SCComposer-
|
|
200
|
-
|
|
75
|
+
'& .SCComposer-general-error': {
|
|
76
|
+
marginBottom: theme.spacing(2),
|
|
77
|
+
color: theme.palette.error.main
|
|
201
78
|
},
|
|
79
|
+
},
|
|
80
|
+
[theme.breakpoints.up('md')]: {
|
|
202
81
|
'& .MuiDialog-paper': {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
'& .SCComposer-mediaContent': {
|
|
206
|
-
'& .SCMediaActionImage-root': {
|
|
207
|
-
padding: 0,
|
|
208
|
-
'& .SCMediaActionImage-upload': {
|
|
209
|
-
padding: theme.spacing(2),
|
|
210
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
|
|
211
|
-
borderRadius: theme.shape.borderRadius,
|
|
212
|
-
color: theme.palette.primary.main,
|
|
213
|
-
'&.SCMediaActionImage-dragOver': {
|
|
214
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)
|
|
215
|
-
},
|
|
216
|
-
'& .SCMediaActionImage-uploadBtn': {
|
|
217
|
-
border: '0 none'
|
|
218
|
-
}
|
|
219
|
-
}
|
|
82
|
+
'& > form': {
|
|
83
|
+
zIndex: 0
|
|
220
84
|
},
|
|
221
|
-
'& .
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
'&.SCMediaActionDocument-dragOver': {
|
|
229
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)
|
|
230
|
-
},
|
|
231
|
-
'& .SCMediaActionDocument-uploadBtn': {
|
|
232
|
-
border: '0 none'
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
'& .SCComposer-locationContent': {
|
|
238
|
-
padding: theme.spacing(3, 0),
|
|
239
|
-
minHeight: 300
|
|
240
|
-
},
|
|
241
|
-
'& .MuiDialog-container': {
|
|
242
|
-
'& .MuiDialog-paper': {
|
|
243
|
-
boxShadow: theme.shadows[12],
|
|
244
|
-
[theme.breakpoints.up('md')]: {
|
|
245
|
-
borderRadius: theme.shape.borderRadius
|
|
246
|
-
},
|
|
247
|
-
'&.MuiDialog-paperFullScreen': {
|
|
248
|
-
height: 'auto',
|
|
249
|
-
minHeight: '100%'
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
'& .SCCategoryAutocomplete-root': {
|
|
254
|
-
minWidth: 120,
|
|
255
|
-
'& .MuiFormControl-root': {
|
|
256
|
-
margin: 0
|
|
85
|
+
'& .MuiDialogContent-root': {
|
|
86
|
+
minHeight: 300,
|
|
87
|
+
height: 'auto',
|
|
88
|
+
maxHeight: 600
|
|
89
|
+
},
|
|
90
|
+
'& .MuiDialogActions-root': {
|
|
91
|
+
justifyContent: 'center'
|
|
257
92
|
}
|
|
258
93
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
attributesRoot: ({ theme }) => ({}),
|
|
97
|
+
contentDiscussionRoot: ({ theme }) => ({
|
|
98
|
+
'& .SCComposer-content-discussion-title': {
|
|
99
|
+
paddingBottom: theme.spacing(2),
|
|
100
|
+
'& .MuiInputBase-root': {
|
|
101
|
+
paddingLeft: 0,
|
|
102
|
+
paddingRight: 0,
|
|
103
|
+
paddingBottom: 0,
|
|
104
|
+
fontSize: '1.429rem',
|
|
105
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
106
|
+
'& fieldset': {
|
|
107
|
+
display: 'none'
|
|
271
108
|
},
|
|
272
|
-
'
|
|
273
|
-
|
|
274
|
-
padding: theme.spacing(9, 0)
|
|
109
|
+
'&.MuiInputBase-adornedEnd .MuiTypography-root': {
|
|
110
|
+
alignSelf: 'end'
|
|
275
111
|
},
|
|
276
|
-
'
|
|
277
|
-
|
|
278
|
-
bottom: 0,
|
|
279
|
-
left: 0,
|
|
280
|
-
right: 0,
|
|
281
|
-
padding: theme.spacing(2, 2),
|
|
282
|
-
zIndex: 1000,
|
|
283
|
-
backgroundColor: theme.palette.background.paper,
|
|
284
|
-
'& .SCComposer-media-actions': {
|
|
285
|
-
borderRight: `1px solid ${theme.palette.grey[400]}`,
|
|
286
|
-
paddingRight: theme.spacing(1)
|
|
287
|
-
},
|
|
288
|
-
'& .SCComposer-filter-actions': {
|
|
289
|
-
textAlign: 'right'
|
|
290
|
-
}
|
|
112
|
+
'&.Mui-error': {
|
|
113
|
+
color: theme.palette.error.main
|
|
291
114
|
}
|
|
292
115
|
},
|
|
293
|
-
'
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
116
|
+
'& .MuiFormHelperText-root': {
|
|
117
|
+
marginLeft: 0
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
contentPollRoot: ({ theme }) => ({
|
|
122
|
+
padding: theme.spacing(2),
|
|
123
|
+
'& .SCComposer-content-poll-title, & .SCComposer-content-poll-choices, & .SCComposer-content-poll-choice-new, & .SCComposer-content-poll-metadata': {
|
|
124
|
+
marginBottom: theme.spacing(3)
|
|
125
|
+
},
|
|
126
|
+
'& .SCComposer-content-poll-choices .MuiTextField-root': {
|
|
127
|
+
marginBottom: theme.spacing()
|
|
128
|
+
},
|
|
129
|
+
'& .SCComposer-content-poll-metadata': {
|
|
130
|
+
marginTop: theme.spacing(3)
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
133
|
+
contentPostRoot: ({ theme }) => ({}),
|
|
134
|
+
layerTransitionRoot: ({ theme }) => ({
|
|
135
|
+
position: 'absolute',
|
|
136
|
+
top: 0,
|
|
137
|
+
left: 0,
|
|
138
|
+
right: 0,
|
|
139
|
+
bottom: 0,
|
|
140
|
+
zIndex: 5,
|
|
141
|
+
background: theme.palette.background.paper,
|
|
142
|
+
'& .MuiDialogContent-root': {
|
|
143
|
+
height: 'calc(100% - 45px - 16px) !important',
|
|
144
|
+
marginBottom: '0 !important'
|
|
145
|
+
}
|
|
146
|
+
}),
|
|
147
|
+
layerAudienceRoot: ({ theme }) => ({
|
|
148
|
+
'& .MuiTabs-root': {
|
|
149
|
+
minHeight: 'auto',
|
|
150
|
+
marginBottom: theme.spacing(4),
|
|
151
|
+
'& .MuiTabs-flexContainer': {
|
|
152
|
+
justifyContent: 'center',
|
|
153
|
+
'& .MuiTab-labelIcon': {
|
|
154
|
+
minHeight: 'auto',
|
|
155
|
+
flexDirection: 'row',
|
|
156
|
+
'& .MuiIcon-root': {
|
|
157
|
+
marginRight: theme.spacing(1)
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
'& .SCComposer-layer-audience-message': {
|
|
163
|
+
textAlign: 'center',
|
|
164
|
+
marginBottom: theme.spacing(4)
|
|
165
|
+
}
|
|
166
|
+
}),
|
|
167
|
+
layerCategoryRoot: ({ theme }) => ({}),
|
|
168
|
+
layerCloseRoot: ({ theme }) => ({
|
|
169
|
+
'& .SCComposer-layer-content': {
|
|
170
|
+
'& .MuiTypography-root': {
|
|
171
|
+
textAlign: 'center'
|
|
172
|
+
},
|
|
173
|
+
'& .MuiList-root': {
|
|
174
|
+
'& .MuiListItem-root': {
|
|
175
|
+
padding: 0,
|
|
176
|
+
'& .MuiTypography-root': {
|
|
177
|
+
fontSize: '1.143rem'
|
|
340
178
|
},
|
|
341
|
-
'
|
|
179
|
+
'&:nth-last-of-type(1)': {
|
|
180
|
+
color: theme.palette.error.main
|
|
181
|
+
}
|
|
342
182
|
}
|
|
343
|
-
},
|
|
344
|
-
'&.SCComposer-ios .SCComposer-actions': {
|
|
345
|
-
marginBottom: '15px'
|
|
346
183
|
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
184
|
+
}
|
|
185
|
+
}),
|
|
186
|
+
layerLocationRoot: ({ theme }) => ({}),
|
|
187
|
+
skeletonRoot: ({ theme }) => ({}),
|
|
188
|
+
typeSwitchButtonGroupRoot: ({ theme }) => ({
|
|
189
|
+
'& .MuiToggleButton-root': {
|
|
190
|
+
backgroundColor: theme.palette.common.black,
|
|
191
|
+
color: alpha(theme.palette.common.white, 0.5),
|
|
192
|
+
padding: theme.spacing(0.5, 2),
|
|
193
|
+
fontSize: '1rem',
|
|
194
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
195
|
+
textTransform: 'capitalize',
|
|
196
|
+
'&.Mui-selected, &:hover, &:active, &.Mui-selected:hover': {
|
|
197
|
+
color: theme.palette.common.white,
|
|
198
|
+
backgroundColor: theme.palette.common.black
|
|
199
|
+
},
|
|
200
|
+
'&:nth-of-type(1)': {
|
|
201
|
+
paddingLeft: theme.spacing(4)
|
|
202
|
+
},
|
|
203
|
+
'&:nth-last-of-type(1)': {
|
|
204
|
+
paddingRight: theme.spacing(4)
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}),
|
|
349
208
|
}
|
|
350
209
|
};
|
|
351
210
|
export default Component;
|
|
@@ -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
|
}
|