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

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 (34) hide show
  1. package/lib/cjs/components/SCCommentObject.d.ts +1 -0
  2. package/lib/cjs/components/SCCommentObject.js +2 -1
  3. package/lib/cjs/components/SCCommentObjectReply.d.ts +1 -0
  4. package/lib/cjs/components/SCCommentObjectReply.js +1 -0
  5. package/lib/cjs/components/SCCommentsObject.d.ts +21 -1
  6. package/lib/cjs/components/SCCommentsObject.js +21 -1
  7. package/lib/cjs/components/SCContributorsFeedObject.d.ts +1 -0
  8. package/lib/cjs/components/SCContributorsFeedObject.js +2 -1
  9. package/lib/cjs/components/SCFeedObject.d.ts +7 -1
  10. package/lib/cjs/components/SCFeedObject.js +13 -7
  11. package/lib/cjs/components/SCLoyaltyProgramWidget.js +1 -1
  12. package/lib/cjs/components/SCUserAvatar.d.ts +1 -0
  13. package/lib/cjs/components/SCUserAvatar.js +2 -1
  14. package/lib/cjs/components/SCWidget.d.ts +6 -4
  15. package/lib/cjs/components/SCWidget.js +7 -5
  16. package/lib/cjs/index.d.ts +38 -9
  17. package/lib/esm/components/SCCommentObject.d.ts +1 -0
  18. package/lib/esm/components/SCCommentObject.js +2 -1
  19. package/lib/esm/components/SCCommentObjectReply.d.ts +1 -0
  20. package/lib/esm/components/SCCommentObjectReply.js +1 -0
  21. package/lib/esm/components/SCCommentsObject.d.ts +21 -1
  22. package/lib/esm/components/SCCommentsObject.js +21 -1
  23. package/lib/esm/components/SCContributorsFeedObject.d.ts +1 -0
  24. package/lib/esm/components/SCContributorsFeedObject.js +2 -1
  25. package/lib/esm/components/SCFeedObject.d.ts +7 -1
  26. package/lib/esm/components/SCFeedObject.js +13 -7
  27. package/lib/esm/components/SCLoyaltyProgramWidget.js +1 -1
  28. package/lib/esm/components/SCUserAvatar.d.ts +1 -0
  29. package/lib/esm/components/SCUserAvatar.js +2 -1
  30. package/lib/esm/components/SCWidget.d.ts +6 -4
  31. package/lib/esm/components/SCWidget.js +7 -5
  32. package/lib/esm/index.d.ts +38 -9
  33. package/lib/umd/react-theme-default.js +2 -2
  34. package/package.json +3 -3
@@ -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.5, 2)
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
- padding: theme.spacing(0, 2, 1),
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(1),
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.5),
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)
@@ -2,7 +2,7 @@ const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
4
  '& .MuiCardContent-root': {
5
- padding: theme.spacing(2, 3, 2, 3)
5
+ padding: theme.spacing(2)
6
6
  },
7
7
  '& .SCLoyaltyProgramWidget-title': {
8
8
  fontWeight: theme.typography.fontWeightBold,
@@ -13,6 +13,7 @@ declare const Component: {
13
13
  };
14
14
  '.MuiBadge-badge': {
15
15
  right: any;
16
+ top: any;
16
17
  };
17
18
  };
18
19
  };
@@ -12,7 +12,8 @@ const Component = {
12
12
  height: `${theme.spacing(1.75)} !important`
13
13
  },
14
14
  '.MuiBadge-badge': {
15
- right: theme.spacing(0)
15
+ right: theme.spacing(0.2),
16
+ top: theme.spacing(0.9)
16
17
  }
17
18
  })
18
19
  }
@@ -39,7 +39,10 @@ declare const Component: {
39
39
  };
40
40
  '& .MuiList-root': {
41
41
  paddingTop: any;
42
- paddingBottom: any;
42
+ paddingBottom: number;
43
+ '& .MuiListItem-root:first-of-type': {
44
+ paddingTop: number;
45
+ };
43
46
  '& .MuiListItem-root': {
44
47
  paddingTop: any;
45
48
  paddingBottom: any;
@@ -58,9 +61,8 @@ declare const Component: {
58
61
  paddingTop: any;
59
62
  };
60
63
  '& > .MuiButton-sizeMedium': {
61
- marginLeft: any;
62
- paddingLeft: any;
63
- paddingRight: any;
64
+ marginTop: any;
65
+ padding: any;
64
66
  color: any;
65
67
  };
66
68
  };
@@ -27,7 +27,7 @@ const Component = {
27
27
  borderRadius: 0
28
28
  },
29
29
  '& .MuiCardContent-root': {
30
- padding: theme.spacing(3),
30
+ padding: theme.spacing(2.2),
31
31
  '& h5': {
32
32
  fontFamily: theme.typography.fontFamily,
33
33
  fontWeight: theme.typography.fontWeightBold,
@@ -36,7 +36,10 @@ const Component = {
36
36
  },
37
37
  '& .MuiList-root': {
38
38
  paddingTop: theme.spacing(2),
39
- paddingBottom: theme.spacing(2),
39
+ paddingBottom: 0,
40
+ '& .MuiListItem-root:first-of-type': {
41
+ paddingTop: 0
42
+ },
40
43
  '& .MuiListItem-root': {
41
44
  paddingTop: theme.spacing(1),
42
45
  paddingBottom: theme.spacing(1),
@@ -55,9 +58,8 @@ const Component = {
55
58
  paddingTop: theme.spacing(2)
56
59
  },
57
60
  '& > .MuiButton-sizeMedium': {
58
- marginLeft: theme.spacing(-2),
59
- paddingLeft: theme.spacing(2),
60
- paddingRight: theme.spacing(2),
61
+ marginTop: theme.spacing(1),
62
+ padding: theme.spacing(0),
61
63
  color: theme.palette.secondary.main
62
64
  }
63
65
  }
@@ -777,6 +777,7 @@ declare const theme: {
777
777
  };
778
778
  '& .SCBaseItem-text': {
779
779
  marginBottom: number;
780
+ marginTop: any;
780
781
  };
781
782
  };
782
783
  '& .SCCommentObject-nested-comments': {
@@ -922,6 +923,7 @@ declare const theme: {
922
923
  };
923
924
  };
924
925
  '& .SCBaseItem-image': {
926
+ marginTop: any;
925
927
  '& .MuiBadge-badge': {
926
928
  top: any;
927
929
  };
@@ -1019,8 +1021,28 @@ declare const theme: {
1019
1021
  SCCommentsObject: {
1020
1022
  styleOverrides: {
1021
1023
  root: ({ theme }: any) => {
1024
+ boxShadow: string;
1025
+ position: string;
1026
+ display: string;
1027
+ flexWrap: string;
1028
+ width: string;
1029
+ paddingBottom: any;
1030
+ '& .SCCommentsObject-load-more-comments-button': {
1031
+ textTransform: string;
1032
+ padding: any;
1033
+ };
1034
+ '& .SCCommentsObject-load-previous-comments-button': {
1035
+ textTransform: string;
1036
+ padding: any;
1037
+ };
1038
+ '& .SCCommentsObject-comments-counter': {
1039
+ paddingRight: any;
1040
+ };
1041
+ '& .SCCommentsObject-pagination-link': {
1042
+ display: string;
1043
+ };
1022
1044
  '& .SCCommentsObject-pagination': {
1023
- paddingBottom: any;
1045
+ width: string;
1024
1046
  '& button': {
1025
1047
  fontWeight: any;
1026
1048
  textDecoration: string;
@@ -1441,6 +1463,7 @@ declare const theme: {
1441
1463
  styleOverrides: {
1442
1464
  root: ({ theme }: any) => {
1443
1465
  '& .SCContributorsFeedObject-btn-participants': {
1466
+ padding: any;
1444
1467
  marginLeft: any;
1445
1468
  color: string;
1446
1469
  fontWeight: any;
@@ -1903,6 +1926,7 @@ declare const theme: {
1903
1926
  height: any;
1904
1927
  };
1905
1928
  '& .SCFeedObject-header': {
1929
+ paddingTop: any;
1906
1930
  paddingBottom: number;
1907
1931
  '& .MuiCardHeader-subheader': {
1908
1932
  display: string;
@@ -2036,6 +2060,7 @@ declare const theme: {
2036
2060
  '& .SCFeedObject-text-section': {
2037
2061
  overflowWrap: string;
2038
2062
  '& > :first-of-type': {
2063
+ marginBottom: number;
2039
2064
  padding: any;
2040
2065
  display: string;
2041
2066
  };
@@ -2136,9 +2161,12 @@ declare const theme: {
2136
2161
  margin: string;
2137
2162
  };
2138
2163
  };
2164
+ '& .SCFeedObject-show-more': {
2165
+ padding: any;
2166
+ marginTop: any;
2167
+ };
2139
2168
  };
2140
2169
  '& .SCFeedObject-actions-section': {
2141
- marginBottom: any;
2142
2170
  '&:last-of-type': {
2143
2171
  marginBottom: number;
2144
2172
  };
@@ -2160,9 +2188,6 @@ declare const theme: {
2160
2188
  '& .MuiDivider-root': {
2161
2189
  borderColor: any;
2162
2190
  };
2163
- /**
2164
- * Style fragments - Imports - End
2165
- */
2166
2191
  '& .SCVoteAction-button, & .SCCommentAction-button, & .SCShareAction-button, & .SCReactionAction-button': {
2167
2192
  color: any;
2168
2193
  marginTop: any;
@@ -2214,6 +2239,7 @@ declare const theme: {
2214
2239
  paddingBottom: number;
2215
2240
  '& .SCActivitiesMenu-selector': {
2216
2241
  '& .MuiButton-root': {
2242
+ marginTop: any;
2217
2243
  fontSize: string;
2218
2244
  fontWeight: any;
2219
2245
  padding: any;
@@ -3873,7 +3899,10 @@ declare const theme: {
3873
3899
  };
3874
3900
  '& .MuiList-root': {
3875
3901
  paddingTop: any;
3876
- paddingBottom: any;
3902
+ paddingBottom: number;
3903
+ '& .MuiListItem-root:first-of-type': {
3904
+ paddingTop: number;
3905
+ };
3877
3906
  '& .MuiListItem-root': {
3878
3907
  paddingTop: any;
3879
3908
  paddingBottom: any;
@@ -3892,9 +3921,8 @@ declare const theme: {
3892
3921
  paddingTop: any;
3893
3922
  };
3894
3923
  '& > .MuiButton-sizeMedium': {
3895
- marginLeft: any;
3896
- paddingLeft: any;
3897
- paddingRight: any;
3924
+ marginTop: any;
3925
+ padding: any;
3898
3926
  color: any;
3899
3927
  };
3900
3928
  };
@@ -4606,6 +4634,7 @@ declare const theme: {
4606
4634
  };
4607
4635
  '.MuiBadge-badge': {
4608
4636
  right: any;
4637
+ top: any;
4609
4638
  };
4610
4639
  };
4611
4640
  };