@selfcommunity/react-theme-default 0.1.0-alpha.287 → 0.1.0-alpha.289

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