@selfcommunity/react-theme-default 0.4.2-alpha.1 → 0.4.2-alpha.10

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/assets/social/contained/facebook.d.ts +2 -0
  2. package/lib/cjs/assets/social/contained/facebook.js +3 -0
  3. package/lib/cjs/assets/social/contained/google.d.ts +2 -0
  4. package/lib/cjs/assets/social/contained/google.js +3 -0
  5. package/lib/cjs/assets/social/contained/linkedin.d.ts +2 -0
  6. package/lib/cjs/assets/social/contained/linkedin.js +3 -0
  7. package/lib/cjs/assets/social/contained/twitter.d.ts +2 -0
  8. package/lib/cjs/assets/social/contained/twitter.js +3 -0
  9. package/lib/cjs/assets/social/outlined/facebook.d.ts +2 -0
  10. package/lib/cjs/assets/social/outlined/facebook.js +3 -0
  11. package/lib/cjs/assets/social/outlined/google.d.ts +2 -0
  12. package/lib/cjs/assets/social/outlined/google.js +3 -0
  13. package/lib/cjs/assets/social/outlined/linkedin.d.ts +2 -0
  14. package/lib/cjs/assets/social/outlined/linkedin.js +3 -0
  15. package/lib/cjs/assets/social/outlined/twitter.d.ts +2 -0
  16. package/lib/cjs/assets/social/outlined/twitter.js +3 -0
  17. package/lib/cjs/components/SCCategoryFollowersButton.d.ts +12 -10
  18. package/lib/cjs/components/SCCategoryFollowersButton.js +12 -10
  19. package/lib/cjs/components/SCCommentObject.d.ts +12 -0
  20. package/lib/cjs/components/SCCommentObject.js +12 -0
  21. package/lib/cjs/components/SCEventMembersWidget.d.ts +1 -10
  22. package/lib/cjs/components/SCEventMembersWidget.js +1 -8
  23. package/lib/cjs/components/SCEventParticipantsButton.d.ts +19 -15
  24. package/lib/cjs/components/SCEventParticipantsButton.js +20 -16
  25. package/lib/cjs/components/SCEvents.d.ts +6 -0
  26. package/lib/cjs/components/SCEvents.js +7 -1
  27. package/lib/cjs/components/SCGroupMembersButton.d.ts +12 -10
  28. package/lib/cjs/components/SCGroupMembersButton.js +12 -10
  29. package/lib/cjs/components/SCUserProfileEdit.d.ts +17 -0
  30. package/lib/cjs/components/SCUserProfileEdit.js +17 -0
  31. package/lib/cjs/index.d.ts +100 -48
  32. package/lib/cjs/index.js +26 -0
  33. package/lib/esm/assets/social/contained/facebook.d.ts +2 -0
  34. package/lib/esm/assets/social/contained/facebook.js +1 -0
  35. package/lib/esm/assets/social/contained/google.d.ts +2 -0
  36. package/lib/esm/assets/social/contained/google.js +1 -0
  37. package/lib/esm/assets/social/contained/linkedin.d.ts +2 -0
  38. package/lib/esm/assets/social/contained/linkedin.js +1 -0
  39. package/lib/esm/assets/social/contained/twitter.d.ts +2 -0
  40. package/lib/esm/assets/social/contained/twitter.js +1 -0
  41. package/lib/esm/assets/social/outlined/facebook.d.ts +2 -0
  42. package/lib/esm/assets/social/outlined/facebook.js +1 -0
  43. package/lib/esm/assets/social/outlined/google.d.ts +2 -0
  44. package/lib/esm/assets/social/outlined/google.js +1 -0
  45. package/lib/esm/assets/social/outlined/linkedin.d.ts +2 -0
  46. package/lib/esm/assets/social/outlined/linkedin.js +1 -0
  47. package/lib/esm/assets/social/outlined/twitter.d.ts +2 -0
  48. package/lib/esm/assets/social/outlined/twitter.js +1 -0
  49. package/lib/esm/components/SCCategoryFollowersButton.d.ts +12 -10
  50. package/lib/esm/components/SCCategoryFollowersButton.js +12 -10
  51. package/lib/esm/components/SCCommentObject.d.ts +12 -0
  52. package/lib/esm/components/SCCommentObject.js +12 -0
  53. package/lib/esm/components/SCEventMembersWidget.d.ts +1 -10
  54. package/lib/esm/components/SCEventMembersWidget.js +1 -8
  55. package/lib/esm/components/SCEventParticipantsButton.d.ts +19 -15
  56. package/lib/esm/components/SCEventParticipantsButton.js +20 -16
  57. package/lib/esm/components/SCEvents.d.ts +6 -0
  58. package/lib/esm/components/SCEvents.js +7 -1
  59. package/lib/esm/components/SCGroupMembersButton.d.ts +12 -10
  60. package/lib/esm/components/SCGroupMembersButton.js +12 -10
  61. package/lib/esm/components/SCUserProfileEdit.d.ts +17 -0
  62. package/lib/esm/components/SCUserProfileEdit.js +17 -0
  63. package/lib/esm/index.d.ts +100 -48
  64. package/lib/esm/index.js +21 -0
  65. package/lib/umd/react-theme-default.js +2 -2
  66. package/package.json +4 -4
@@ -7,23 +7,27 @@ const Component = {
7
7
  '&:hover': {
8
8
  backgroundColor: 'unset'
9
9
  },
10
- '& .MuiAvatarGroup-avatar': {
11
- '&:first-of-type': {
12
- width: followers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
10
+ '& .MuiAvatarGroup-root': {
11
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
12
+ '&.MuiAvatar-colorDefault': {
13
+ marginLeft: 0,
14
+ backgroundColor: 'transparent',
15
+ color: theme.palette.primary.main,
16
+ border: '0 none',
17
+ borderRadius: 0,
18
+ padding: 1
19
+ }
13
20
  },
14
- '&:not(:first-of-type)': {
15
- width: theme.selfcommunity.user.avatar.sizeSmall
16
- },
17
- height: theme.selfcommunity.user.avatar.sizeSmall,
18
- border: `1px solid ${theme.palette.common.white}`,
19
- fontSize: '0.7rem',
20
- '&.MuiAvatar-colorDefault': {
21
- marginLeft: 0,
22
- backgroundColor: 'transparent',
23
- color: theme.palette.primary.main,
24
- border: '0 none',
25
- borderRadius: 0,
26
- padding: 1
21
+ '& .MuiAvatar-root': {
22
+ height: theme.selfcommunity.user.avatar.sizeSmall,
23
+ border: `1px solid ${theme.palette.common.white}`,
24
+ fontSize: '0.7rem',
25
+ '&:first-of-type': {
26
+ width: followers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
27
+ },
28
+ '&:not(:first-of-type)': {
29
+ width: theme.selfcommunity.user.avatar.sizeSmall
30
+ }
27
31
  }
28
32
  },
29
33
  '& .SCEventParticipantsButton-participants': {
@@ -19,6 +19,9 @@ declare const Component: {
19
19
  };
20
20
  };
21
21
  '& .SCEvents-events': {
22
+ [x: number]: {
23
+ marginBottom: any;
24
+ };
22
25
  marginTop: any;
23
26
  '& .SCEvents-item': {
24
27
  paddingTop: any;
@@ -44,6 +47,9 @@ declare const Component: {
44
47
  flexDirection: string;
45
48
  alignItems: string;
46
49
  '& .SCEvent-skeleton-root': {
50
+ [x: number]: {
51
+ width: string;
52
+ };
47
53
  marginBottom: any;
48
54
  minWidth: string;
49
55
  };
@@ -20,6 +20,9 @@ const Component = {
20
20
  },
21
21
  '& .SCEvents-events': {
22
22
  marginTop: theme.spacing(2),
23
+ [theme.breakpoints.down('md')]: {
24
+ marginBottom: theme.spacing(7)
25
+ },
23
26
  '& .SCEvents-item': {
24
27
  paddingTop: theme.spacing(2)
25
28
  },
@@ -45,7 +48,10 @@ const Component = {
45
48
  alignItems: 'flex-start',
46
49
  '& .SCEvent-skeleton-root': {
47
50
  marginBottom: theme.spacing(2),
48
- minWidth: '50%'
51
+ minWidth: '50%',
52
+ [theme.breakpoints.down('md')]: {
53
+ width: '100%'
54
+ }
49
55
  },
50
56
  '& .SCEvent-skeleton-snippet .SCBaseItem-content': {
51
57
  maxWidth: '70%'
@@ -3,16 +3,7 @@ declare const Component: {
3
3
  root: ({ theme, subscribers }: any) => {
4
4
  padding: any;
5
5
  '& .MuiAvatarGroup-root': {
6
- '& .MuiAvatar-root': {
7
- '&:first-of-type': {
8
- width: any;
9
- };
10
- '&:not(:first-of-type)': {
11
- width: any;
12
- };
13
- height: any;
14
- border: string;
15
- fontSize: string;
6
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
16
7
  '&.MuiAvatar-colorDefault': {
17
8
  marginLeft: number;
18
9
  backgroundColor: string;
@@ -22,6 +13,17 @@ declare const Component: {
22
13
  padding: number;
23
14
  };
24
15
  };
16
+ '& .MuiAvatar-root': {
17
+ height: any;
18
+ border: string;
19
+ fontSize: string;
20
+ '&:first-of-type': {
21
+ width: any;
22
+ };
23
+ '&:not(:first-of-type)': {
24
+ width: any;
25
+ };
26
+ };
25
27
  };
26
28
  };
27
29
  dialogRoot: () => {};
@@ -3,16 +3,7 @@ const Component = {
3
3
  root: ({ theme, subscribers }) => ({
4
4
  padding: theme.spacing(),
5
5
  '& .MuiAvatarGroup-root': {
6
- '& .MuiAvatar-root': {
7
- '&:first-of-type': {
8
- width: subscribers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
9
- },
10
- '&:not(:first-of-type)': {
11
- width: theme.selfcommunity.user.avatar.sizeSmall
12
- },
13
- height: theme.selfcommunity.user.avatar.sizeSmall,
14
- border: `1px solid ${theme.palette.common.white}`,
15
- fontSize: '0.7rem',
6
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
16
7
  '&.MuiAvatar-colorDefault': {
17
8
  marginLeft: 0,
18
9
  backgroundColor: 'transparent',
@@ -21,6 +12,17 @@ const Component = {
21
12
  borderRadius: 0,
22
13
  padding: 1
23
14
  }
15
+ },
16
+ '& .MuiAvatar-root': {
17
+ height: theme.selfcommunity.user.avatar.sizeSmall,
18
+ border: `1px solid ${theme.palette.common.white}`,
19
+ fontSize: '0.7rem',
20
+ '&:first-of-type': {
21
+ width: subscribers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
22
+ },
23
+ '&:not(:first-of-type)': {
24
+ width: theme.selfcommunity.user.avatar.sizeSmall
25
+ }
24
26
  }
25
27
  }
26
28
  }),
@@ -35,6 +35,23 @@ declare const Component: {
35
35
  marginBottom: any;
36
36
  };
37
37
  };
38
+ '& .SCUserSocialAssociation-provider-table': {
39
+ backgroundColor: string;
40
+ border: string;
41
+ '& th,td': {
42
+ padding: number;
43
+ fontWeight: string;
44
+ };
45
+ '& td': {
46
+ padding: number;
47
+ '& .SCUserSocialAssociation-provider-name': {
48
+ textTransform: string;
49
+ position: string;
50
+ top: any;
51
+ left: any;
52
+ };
53
+ };
54
+ };
38
55
  '& .SCUserProfileEdit-language-switcher': {
39
56
  margin: any;
40
57
  };
@@ -35,6 +35,23 @@ const Component = {
35
35
  marginBottom: theme.spacing(2)
36
36
  }
37
37
  },
38
+ '& .SCUserSocialAssociation-provider-table': {
39
+ backgroundColor: 'transparent',
40
+ border: '1px solid #3b3b3b',
41
+ '& th,td': {
42
+ padding: 12,
43
+ fontWeight: 'bold'
44
+ },
45
+ '& td': {
46
+ padding: 12,
47
+ '& .SCUserSocialAssociation-provider-name': {
48
+ textTransform: 'capitalize',
49
+ position: 'relative',
50
+ top: theme.spacing(-1),
51
+ left: theme.spacing()
52
+ }
53
+ }
54
+ },
38
55
  '& .SCUserProfileEdit-language-switcher': {
39
56
  margin: theme.spacing(1, 0, 1, 0)
40
57
  },
@@ -4,6 +4,20 @@ import './styles/reset.css';
4
4
  /**
5
5
  * Style fragments - Imports - End
6
6
  */
7
+ /**
8
+ * Style assets - Imports - Start
9
+ */
10
+ import GoogleIconContained from './assets/social/contained/google';
11
+ import FacebookIconContained from './assets/social/contained/facebook';
12
+ import TwitterIconContained from './assets/social/contained/twitter';
13
+ import LinkedinIconContained from './assets/social/contained/linkedin';
14
+ import GoogleIconOutlined from './assets/social/outlined/google';
15
+ import FacebookIconOutlined from './assets/social/outlined/facebook';
16
+ import TwitterIconOutlined from './assets/social/outlined/twitter';
17
+ import LinkedinIconOutlined from './assets/social/outlined/linkedin';
18
+ /**
19
+ * Style assets - Imports - End
20
+ */
7
21
  /**
8
22
  * Export default theme
9
23
  */
@@ -711,16 +725,7 @@ declare const theme: {
711
725
  root: ({ theme, followers }: any) => {
712
726
  padding: any;
713
727
  '& .MuiAvatarGroup-root': {
714
- '& .MuiAvatar-root': {
715
- '&:first-of-type': {
716
- width: any;
717
- };
718
- '&:not(:first-of-type)': {
719
- width: any;
720
- };
721
- height: any;
722
- border: string;
723
- fontSize: string;
728
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
724
729
  '&.MuiAvatar-colorDefault': {
725
730
  marginLeft: number;
726
731
  backgroundColor: string;
@@ -730,6 +735,17 @@ declare const theme: {
730
735
  padding: number;
731
736
  };
732
737
  };
738
+ '& .MuiAvatar-root': {
739
+ height: any;
740
+ border: string;
741
+ fontSize: string;
742
+ '&:first-of-type': {
743
+ width: any;
744
+ };
745
+ '&:not(:first-of-type)': {
746
+ width: any;
747
+ };
748
+ };
733
749
  };
734
750
  };
735
751
  dialogRoot: () => {};
@@ -971,6 +987,18 @@ declare const theme: {
971
987
  maxWidth: string;
972
988
  };
973
989
  };
990
+ '& .SCCommentObject-flag-chip': {
991
+ borderRadius: number;
992
+ display: string;
993
+ width: string;
994
+ };
995
+ };
996
+ '& .SCCommentObject-collapsed': {
997
+ justifyContent: string;
998
+ alignItems: string;
999
+ '& .MuiCardContent-root': {
1000
+ marginLeft: any;
1001
+ };
974
1002
  };
975
1003
  '& .SCCommentObject-show-more-content': {
976
1004
  color: any;
@@ -3288,16 +3316,7 @@ declare const theme: {
3288
3316
  root: ({ theme, subscribers }: any) => {
3289
3317
  padding: any;
3290
3318
  '& .MuiAvatarGroup-root': {
3291
- '& .MuiAvatar-root': {
3292
- '&:first-of-type': {
3293
- width: any;
3294
- };
3295
- '&:not(:first-of-type)': {
3296
- width: any;
3297
- };
3298
- height: any;
3299
- border: string;
3300
- fontSize: string;
3319
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
3301
3320
  '&.MuiAvatar-colorDefault': {
3302
3321
  marginLeft: number;
3303
3322
  backgroundColor: string;
@@ -3307,6 +3326,17 @@ declare const theme: {
3307
3326
  padding: number;
3308
3327
  };
3309
3328
  };
3329
+ '& .MuiAvatar-root': {
3330
+ height: any;
3331
+ border: string;
3332
+ fontSize: string;
3333
+ '&:first-of-type': {
3334
+ width: any;
3335
+ };
3336
+ '&:not(:first-of-type)': {
3337
+ width: any;
3338
+ };
3339
+ };
3310
3340
  };
3311
3341
  };
3312
3342
  dialogRoot: () => {};
@@ -6654,6 +6684,23 @@ declare const theme: {
6654
6684
  marginBottom: any;
6655
6685
  };
6656
6686
  };
6687
+ '& .SCUserSocialAssociation-provider-table': {
6688
+ backgroundColor: string;
6689
+ border: string;
6690
+ '& th,td': {
6691
+ padding: number;
6692
+ fontWeight: string;
6693
+ };
6694
+ '& td': {
6695
+ padding: number;
6696
+ '& .SCUserSocialAssociation-provider-name': {
6697
+ textTransform: string;
6698
+ position: string;
6699
+ top: any;
6700
+ left: any;
6701
+ };
6702
+ };
6703
+ };
6657
6704
  '& .SCUserProfileEdit-language-switcher': {
6658
6705
  margin: any;
6659
6706
  };
@@ -7286,6 +7333,9 @@ declare const theme: {
7286
7333
  };
7287
7334
  };
7288
7335
  '& .SCEvents-events': {
7336
+ [x: number]: {
7337
+ marginBottom: any;
7338
+ };
7289
7339
  marginTop: any;
7290
7340
  '& .SCEvents-item': {
7291
7341
  paddingTop: any;
@@ -7311,6 +7361,9 @@ declare const theme: {
7311
7361
  flexDirection: string;
7312
7362
  alignItems: string;
7313
7363
  '& .SCEvent-skeleton-root': {
7364
+ [x: number]: {
7365
+ width: string;
7366
+ };
7314
7367
  marginBottom: any;
7315
7368
  minWidth: string;
7316
7369
  };
@@ -7736,23 +7789,27 @@ declare const theme: {
7736
7789
  '&:hover': {
7737
7790
  backgroundColor: string;
7738
7791
  };
7739
- '& .MuiAvatarGroup-avatar': {
7740
- '&:first-of-type': {
7741
- width: any;
7742
- };
7743
- '&:not(:first-of-type)': {
7744
- width: any;
7792
+ '& .MuiAvatarGroup-root': {
7793
+ '&:not(.SCAvatarGroupSkeleton-root) .MuiAvatar-root': {
7794
+ '&.MuiAvatar-colorDefault': {
7795
+ marginLeft: number;
7796
+ backgroundColor: string;
7797
+ color: any;
7798
+ border: string;
7799
+ borderRadius: number;
7800
+ padding: number;
7801
+ };
7745
7802
  };
7746
- height: any;
7747
- border: string;
7748
- fontSize: string;
7749
- '&.MuiAvatar-colorDefault': {
7750
- marginLeft: number;
7751
- backgroundColor: string;
7752
- color: any;
7803
+ '& .MuiAvatar-root': {
7804
+ height: any;
7753
7805
  border: string;
7754
- borderRadius: number;
7755
- padding: number;
7806
+ fontSize: string;
7807
+ '&:first-of-type': {
7808
+ width: any;
7809
+ };
7810
+ '&:not(:first-of-type)': {
7811
+ width: any;
7812
+ };
7756
7813
  };
7757
7814
  };
7758
7815
  '& .SCEventParticipantsButton-participants': {
@@ -7990,9 +8047,6 @@ declare const theme: {
7990
8047
  root: ({ theme }: {
7991
8048
  theme: any;
7992
8049
  }) => {
7993
- /**
7994
- * Style fragments - Imports - Start
7995
- */
7996
8050
  '& .SCEventMembersWidget-content': {
7997
8051
  padding: string;
7998
8052
  '& .SCEventMembersWidget-title': {
@@ -8043,16 +8097,7 @@ declare const theme: {
8043
8097
  };
8044
8098
  };
8045
8099
  };
8046
- dialogRoot: ({ theme }: {
8047
- theme: any;
8048
- }) => {
8049
- '& .SCEventMembersWidget-infinite-scroll': {
8050
- [x: number]: {
8051
- height: string;
8052
- };
8053
- height: string;
8054
- };
8055
- };
8100
+ dialogRoot: () => {};
8056
8101
  };
8057
8102
  };
8058
8103
  SCRelatedEventsWidget: {
@@ -8438,3 +8483,10 @@ declare const theme: {
8438
8483
  };
8439
8484
  };
8440
8485
  export default theme;
8486
+ /**
8487
+ * Style assets - Exports - Start
8488
+ */
8489
+ export { GoogleIconContained, FacebookIconContained, LinkedinIconContained, TwitterIconContained, GoogleIconOutlined, FacebookIconOutlined, LinkedinIconOutlined, TwitterIconOutlined };
8490
+ /**
8491
+ * Style assets - Exports - End
8492
+ */
package/lib/esm/index.js CHANGED
@@ -165,6 +165,20 @@ import SCWidget from './components/SCWidget';
165
165
  /**
166
166
  * Style fragments - Imports - End
167
167
  */
168
+ /**
169
+ * Style assets - Imports - Start
170
+ */
171
+ import GoogleIconContained from './assets/social/contained/google';
172
+ import FacebookIconContained from './assets/social/contained/facebook';
173
+ import TwitterIconContained from './assets/social/contained/twitter';
174
+ import LinkedinIconContained from './assets/social/contained/linkedin';
175
+ import GoogleIconOutlined from './assets/social/outlined/google';
176
+ import FacebookIconOutlined from './assets/social/outlined/facebook';
177
+ import TwitterIconOutlined from './assets/social/outlined/twitter';
178
+ import LinkedinIconOutlined from './assets/social/outlined/linkedin';
179
+ /**
180
+ * Style assets - Imports - End
181
+ */
168
182
  /**
169
183
  * Export default theme
170
184
  */
@@ -417,3 +431,10 @@ const theme = {
417
431
  }
418
432
  };
419
433
  export default theme;
434
+ /**
435
+ * Style assets - Exports - Start
436
+ */
437
+ export { GoogleIconContained, FacebookIconContained, LinkedinIconContained, TwitterIconContained, GoogleIconOutlined, FacebookIconOutlined, LinkedinIconOutlined, TwitterIconOutlined };
438
+ /**
439
+ * Style assets - Exports - End
440
+ */