@selfcommunity/react-theme-default 0.1.9-alpha.8 → 0.1.9-alpha.80

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 (76) hide show
  1. package/lib/cjs/components/SCCategoryHeader.d.ts +10 -1
  2. package/lib/cjs/components/SCCategoryHeader.js +12 -3
  3. package/lib/cjs/components/SCFeedObject.d.ts +32 -0
  4. package/lib/cjs/components/SCFeedObject.js +33 -1
  5. package/lib/cjs/components/SCGroup.d.ts +5 -0
  6. package/lib/cjs/components/SCGroup.js +6 -1
  7. package/lib/cjs/components/SCGroupFeedTemplate.d.ts +3 -0
  8. package/lib/cjs/components/SCGroupFeedTemplate.js +4 -1
  9. package/lib/cjs/components/SCGroupHeader.d.ts +6 -5
  10. package/lib/cjs/components/SCGroupHeader.js +14 -12
  11. package/lib/cjs/components/SCGroupInviteButton.d.ts +3 -0
  12. package/lib/cjs/components/SCGroupInviteButton.js +4 -1
  13. package/lib/cjs/components/SCGroupInvitedWidget.d.ts +8 -0
  14. package/lib/cjs/components/SCGroupInvitedWidget.js +10 -0
  15. package/lib/cjs/components/SCGroupSettingsIconButton.d.ts +19 -0
  16. package/lib/cjs/components/SCGroupSettingsIconButton.js +21 -0
  17. package/lib/cjs/components/SCGroupTemplate.d.ts +3 -0
  18. package/lib/cjs/components/SCGroupTemplate.js +3 -0
  19. package/lib/cjs/components/SCGroups.d.ts +28 -1
  20. package/lib/cjs/components/SCGroups.js +30 -3
  21. package/lib/cjs/components/SCNavigationToolbarMobile.js +1 -1
  22. package/lib/cjs/components/SCNotification.d.ts +1 -0
  23. package/lib/cjs/components/SCNotification.js +1 -0
  24. package/lib/cjs/components/SCPrivateMessageSnippets.d.ts +1 -0
  25. package/lib/cjs/components/SCPrivateMessageSnippets.js +1 -0
  26. package/lib/cjs/components/SCPrivateMessageThread.d.ts +11 -0
  27. package/lib/cjs/components/SCPrivateMessageThread.js +15 -4
  28. package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +5 -1
  29. package/lib/cjs/components/SCPrivateMessageThreadItem.js +6 -1
  30. package/lib/cjs/components/SCUser.d.ts +5 -0
  31. package/lib/cjs/components/SCUser.js +5 -0
  32. package/lib/cjs/components/SCUserProfileHeader.d.ts +2 -2
  33. package/lib/cjs/components/SCUserProfileHeader.js +10 -10
  34. package/lib/cjs/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
  35. package/lib/cjs/components/SCUserSubscribedGroupsWidget.js +10 -0
  36. package/lib/cjs/index.d.ts +147 -10
  37. package/lib/cjs/index.js +8 -2
  38. package/lib/esm/components/SCCategoryHeader.d.ts +10 -1
  39. package/lib/esm/components/SCCategoryHeader.js +12 -3
  40. package/lib/esm/components/SCFeedObject.d.ts +32 -0
  41. package/lib/esm/components/SCFeedObject.js +33 -1
  42. package/lib/esm/components/SCGroup.d.ts +5 -0
  43. package/lib/esm/components/SCGroup.js +6 -1
  44. package/lib/esm/components/SCGroupFeedTemplate.d.ts +3 -0
  45. package/lib/esm/components/SCGroupFeedTemplate.js +4 -1
  46. package/lib/esm/components/SCGroupHeader.d.ts +6 -5
  47. package/lib/esm/components/SCGroupHeader.js +14 -12
  48. package/lib/esm/components/SCGroupInviteButton.d.ts +3 -0
  49. package/lib/esm/components/SCGroupInviteButton.js +4 -1
  50. package/lib/esm/components/SCGroupInvitedWidget.d.ts +8 -0
  51. package/lib/esm/components/SCGroupInvitedWidget.js +8 -0
  52. package/lib/esm/components/SCGroupSettingsIconButton.d.ts +19 -0
  53. package/lib/esm/components/SCGroupSettingsIconButton.js +19 -0
  54. package/lib/esm/components/SCGroupTemplate.d.ts +3 -0
  55. package/lib/esm/components/SCGroupTemplate.js +3 -0
  56. package/lib/esm/components/SCGroups.d.ts +28 -1
  57. package/lib/esm/components/SCGroups.js +30 -3
  58. package/lib/esm/components/SCNavigationToolbarMobile.js +1 -1
  59. package/lib/esm/components/SCNotification.d.ts +1 -0
  60. package/lib/esm/components/SCNotification.js +1 -0
  61. package/lib/esm/components/SCPrivateMessageSnippets.d.ts +1 -0
  62. package/lib/esm/components/SCPrivateMessageSnippets.js +1 -0
  63. package/lib/esm/components/SCPrivateMessageThread.d.ts +11 -0
  64. package/lib/esm/components/SCPrivateMessageThread.js +15 -4
  65. package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +5 -1
  66. package/lib/esm/components/SCPrivateMessageThreadItem.js +6 -1
  67. package/lib/esm/components/SCUser.d.ts +5 -0
  68. package/lib/esm/components/SCUser.js +5 -0
  69. package/lib/esm/components/SCUserProfileHeader.d.ts +2 -2
  70. package/lib/esm/components/SCUserProfileHeader.js +10 -10
  71. package/lib/esm/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
  72. package/lib/esm/components/SCUserSubscribedGroupsWidget.js +8 -0
  73. package/lib/esm/index.d.ts +147 -10
  74. package/lib/esm/index.js +8 -2
  75. package/lib/umd/react-theme-default.js +2 -2
  76. package/package.json +4 -4
@@ -3,13 +3,13 @@ const Component = {
3
3
  root: ({ theme }) => ({
4
4
  '& .SCUserProfileHeader-cover': {
5
5
  position: 'relative',
6
- height: 150,
6
+ height: 230,
7
7
  minHeight: 150,
8
8
  borderRadius: 0,
9
9
  background: 'linear-gradient(180deg, rgba(177,177,177,1) 0%, rgba(255,255,255,1) 90%)',
10
10
  boxShadow: 'unset',
11
- [theme.breakpoints.up('lg')]: {
12
- margin: theme.spacing(0, -5, 0, -5)
11
+ [theme.breakpoints.up('md')]: {
12
+ borderRadius: theme.spacing(0, 0, 2.5, 2.5)
13
13
  }
14
14
  },
15
15
  '& .SCUserProfileHeader-infops-section': {
@@ -17,7 +17,7 @@ const Component = {
17
17
  justifyContent: 'space-between'
18
18
  },
19
19
  '& .SCUserProfileHeader-avatar': {
20
- top: 150 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge,
20
+ top: 180,
21
21
  [theme.breakpoints.up('lg')]: {
22
22
  left: theme.selfcommunity.user.avatar.sizeXLarge / 2,
23
23
  marginLeft: 0
@@ -30,7 +30,7 @@ const Component = {
30
30
  width: theme.selfcommunity.user.avatar.sizeXLarge,
31
31
  borderRadius: '50%',
32
32
  border: `#FFF solid ${theme.spacing(0.5)}`,
33
- objectFit: 'cover',
33
+ objectFit: 'cover'
34
34
  },
35
35
  '& .MuiBadge-badge .SCUserAvatar-badge-content': {
36
36
  width: 32,
@@ -38,7 +38,7 @@ const Component = {
38
38
  }
39
39
  },
40
40
  '& .SCUserProfileHeader-change-picture': {
41
- top: 180 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge,
41
+ top: 215,
42
42
  [theme.breakpoints.up('lg')]: {
43
43
  left: 155 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge
44
44
  },
@@ -70,15 +70,15 @@ const Component = {
70
70
  skeletonRoot: ({ theme }) => ({
71
71
  position: 'relative',
72
72
  '& .SCUserProfileHeader-cover': {
73
- [theme.breakpoints.up('lg')]: {
74
- margin: theme.spacing(0, -5, 0, -5)
73
+ [theme.breakpoints.up('md')]: {
74
+ borderRadius: theme.spacing(0, 0, 2.5, 2.5)
75
75
  },
76
- height: 150
76
+ height: 230
77
77
  },
78
78
  '& .SCUserProfileHeader-avatar': {
79
79
  display: 'block',
80
80
  position: 'absolute',
81
- top: 150 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge - 5,
81
+ top: 230 - 0.5 * theme.selfcommunity.user.avatar.sizeXLarge - 5,
82
82
  marginLeft: theme.spacing(4),
83
83
  [`& .MuiSkeleton-root`]: {
84
84
  border: '#FFF solid 5px'
@@ -0,0 +1,8 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {};
4
+ skeletonRoot: ({ theme }: any) => {};
5
+ dialogRoot: ({ theme }: any) => {};
6
+ };
7
+ };
8
+ export default Component;
@@ -0,0 +1,8 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({}),
4
+ skeletonRoot: ({ theme }) => ({}),
5
+ dialogRoot: ({ theme }) => ({})
6
+ }
7
+ };
8
+ export default Component;
@@ -695,6 +695,9 @@ declare const theme: {
695
695
  styleOverrides: {
696
696
  root: ({ theme }: any) => {
697
697
  '& .SCCategoryHeader-cover': {
698
+ [x: number]: {
699
+ borderRadius: any;
700
+ };
698
701
  display: string;
699
702
  flexDirection: string;
700
703
  justifyContent: string;
@@ -742,7 +745,13 @@ declare const theme: {
742
745
  };
743
746
  };
744
747
  };
745
- skeletonRoot: ({ theme }: any) => {};
748
+ skeletonRoot: ({ theme }: any) => {
749
+ '& .SCCategoryHeader-skeleton-cover': {
750
+ [x: number]: {
751
+ borderRadius: any;
752
+ };
753
+ };
754
+ };
746
755
  };
747
756
  };
748
757
  SCCategoryTemplate: {
@@ -1781,6 +1790,25 @@ declare const theme: {
1781
1790
  fontWeight: any;
1782
1791
  };
1783
1792
  };
1793
+ '& .SCFeedObject-group': {
1794
+ marginRight: string;
1795
+ };
1796
+ };
1797
+ '& .SCFeedObject-group': {
1798
+ justifyContent: string;
1799
+ padding: any;
1800
+ '& a': {
1801
+ padding: any;
1802
+ marginBottom: any;
1803
+ color: any;
1804
+ '&:hover': {
1805
+ backgroundColor: any;
1806
+ };
1807
+ '& span': {
1808
+ color: any;
1809
+ textTransform: string;
1810
+ };
1811
+ };
1784
1812
  };
1785
1813
  '& .SCFeedObject-content': {
1786
1814
  padding: any;
@@ -1842,6 +1870,19 @@ declare const theme: {
1842
1870
  '& .SCFeedObject-category': {
1843
1871
  borderBottom: string;
1844
1872
  margin: any;
1873
+ '& .SCFeedObject-group': {
1874
+ borderBottom: string;
1875
+ margin: any;
1876
+ '& .MuiChip-icon': {
1877
+ marginLeft: any;
1878
+ marginRight: any;
1879
+ fontWeight: any;
1880
+ };
1881
+ };
1882
+ };
1883
+ '& .SCFeedObject-group': {
1884
+ borderBottom: string;
1885
+ margin: any;
1845
1886
  };
1846
1887
  '& .SCFeedObject-header': {
1847
1888
  '& .MuiCardHeader-avatar': {
@@ -3642,6 +3683,7 @@ declare const theme: {
3642
3683
  maxWidth: string;
3643
3684
  };
3644
3685
  };
3686
+ groupRoot: ({ theme }: any) => {};
3645
3687
  undeletedForRoot: ({ theme }: any) => {
3646
3688
  '& .SCNotification-undeleted-icon': {
3647
3689
  backgroundColor: "#f44336";
@@ -4055,6 +4097,11 @@ declare const theme: {
4055
4097
  borderRadius: number;
4056
4098
  fontSize: string;
4057
4099
  };
4100
+ '& .SCUser-group-admin-badge-label': {
4101
+ marginLeft: any;
4102
+ fontSize: string;
4103
+ color: any;
4104
+ };
4058
4105
  '& .SCBaseItemButton-primary': {
4059
4106
  fontWeight: any;
4060
4107
  };
@@ -4141,7 +4188,7 @@ declare const theme: {
4141
4188
  root: ({ theme }: any) => {
4142
4189
  '& .SCUserProfileHeader-cover': {
4143
4190
  [x: number]: {
4144
- margin: any;
4191
+ borderRadius: any;
4145
4192
  };
4146
4193
  position: string;
4147
4194
  height: number;
@@ -4209,7 +4256,7 @@ declare const theme: {
4209
4256
  position: string;
4210
4257
  '& .SCUserProfileHeader-cover': {
4211
4258
  [x: number]: {
4212
- margin: any;
4259
+ borderRadius: any;
4213
4260
  };
4214
4261
  height: number;
4215
4262
  };
@@ -4546,6 +4593,7 @@ declare const theme: {
4546
4593
  root: ({ theme }: any) => {
4547
4594
  height: string;
4548
4595
  width: string;
4596
+ borderRadius: number;
4549
4597
  '& .MuiCardContent-root': {
4550
4598
  display: string;
4551
4599
  flexDirection: string;
@@ -4665,6 +4713,17 @@ declare const theme: {
4665
4713
  };
4666
4714
  };
4667
4715
  };
4716
+ '& .SCPrivateMessageThread-item': {
4717
+ display: string;
4718
+ marginBottom: any;
4719
+ '& .SCPrivateMessageThread-avatar': {
4720
+ marginRight: any;
4721
+ '& img': {
4722
+ height: any;
4723
+ width: any;
4724
+ };
4725
+ };
4726
+ };
4668
4727
  };
4669
4728
  '& .SCPrivateMessageThread-empty-message': {
4670
4729
  height: string;
@@ -4759,6 +4818,7 @@ declare const theme: {
4759
4818
  SCPrivateMessageThreadItem: {
4760
4819
  styleOverrides: {
4761
4820
  root: ({ theme }: any) => {
4821
+ flexDirection: string;
4762
4822
  borderRadius: any;
4763
4823
  padding: any;
4764
4824
  boxShadow: string;
@@ -4777,6 +4837,10 @@ declare const theme: {
4777
4837
  right: any;
4778
4838
  padding: any;
4779
4839
  };
4840
+ '& .SCPrivateMessageThreadItem-username': {
4841
+ marginRight: string;
4842
+ marginBottom: any;
4843
+ };
4780
4844
  '& .SCPrivateMessageThreadItem-text': {
4781
4845
  display: string;
4782
4846
  alignItems: string;
@@ -4841,7 +4905,6 @@ declare const theme: {
4841
4905
  };
4842
4906
  '& .MuiButtonBase-root': {
4843
4907
  flexWrap: string;
4844
- width: string;
4845
4908
  position: string;
4846
4909
  bottom: any;
4847
4910
  backgroundColor: string;
@@ -5541,10 +5604,6 @@ declare const theme: {
5541
5604
  '& .SCGroupHeader-cover': {
5542
5605
  [x: number]: {
5543
5606
  borderRadius: any;
5544
- margin?: undefined;
5545
- } | {
5546
- margin: any;
5547
- borderRadius?: undefined;
5548
5607
  };
5549
5608
  position: string;
5550
5609
  height: number;
@@ -5554,6 +5613,7 @@ declare const theme: {
5554
5613
  boxShadow: string;
5555
5614
  };
5556
5615
  '& .SCGroupHeader-info': {
5616
+ marginTop: any;
5557
5617
  display: string;
5558
5618
  flexDirection: string;
5559
5619
  justifyContent: string;
@@ -5583,6 +5643,10 @@ declare const theme: {
5583
5643
  '& .SCEditGroupButton-root': {
5584
5644
  marginLeft: string;
5585
5645
  marginTop: any;
5646
+ marginRight: any;
5647
+ };
5648
+ '& .SCGroupSubscribeButton-root': {
5649
+ marginTop: any;
5586
5650
  };
5587
5651
  };
5588
5652
  '& .SCGroupHeader-avatar': {
@@ -5622,7 +5686,7 @@ declare const theme: {
5622
5686
  position: string;
5623
5687
  '& .SCGroupHeader-cover': {
5624
5688
  [x: number]: {
5625
- margin: any;
5689
+ borderRadius: any;
5626
5690
  };
5627
5691
  height: number;
5628
5692
  };
@@ -5818,6 +5882,9 @@ declare const theme: {
5818
5882
  '& .SCGroupInviteButton-invited-box': {
5819
5883
  marginTop: any;
5820
5884
  marginBottom: any;
5885
+ '& .MuiChip-root': {
5886
+ marginBottom: any;
5887
+ };
5821
5888
  };
5822
5889
  '& .SCGroupInviteButton-suggested': {
5823
5890
  '& h4': {
@@ -5883,7 +5950,12 @@ declare const theme: {
5883
5950
  };
5884
5951
  };
5885
5952
  '& .SCBaseItemButton-primary': {
5953
+ display: string;
5954
+ alignItems: string;
5886
5955
  fontWeight: any;
5956
+ '& .SCGroup-icon': {
5957
+ marginLeft: any;
5958
+ };
5887
5959
  };
5888
5960
  '& .SCBaseItemButton-secondary': {
5889
5961
  fontSize: string;
@@ -5905,6 +5977,9 @@ declare const theme: {
5905
5977
  '& .SCCategoryTemplate-feed': {
5906
5978
  marginTop: any;
5907
5979
  };
5980
+ '& .SCGroupInfoWidget-root': {
5981
+ marginTop: any;
5982
+ };
5908
5983
  };
5909
5984
  skeletonRoot: ({ theme }: any) => {
5910
5985
  [x: number]: {
@@ -5918,6 +5993,9 @@ declare const theme: {
5918
5993
  styleOverrides: {
5919
5994
  root: ({ theme }: any) => {
5920
5995
  marginTop: number;
5996
+ '& .SCGroupInfoWidget-root': {
5997
+ padding: any;
5998
+ };
5921
5999
  };
5922
6000
  skeletonRoot: ({ theme }: any) => {
5923
6001
  [x: number]: {
@@ -5948,10 +6026,24 @@ declare const theme: {
5948
6026
  SCGroups: {
5949
6027
  styleOverrides: {
5950
6028
  root: ({ theme }: any) => {
6029
+ '& .SCGroups-skeleton-root ': {
6030
+ '& .MuiGrid-item': {
6031
+ paddingTop: number;
6032
+ };
6033
+ };
6034
+ '& .MuiGrid-container': {
6035
+ justifyContent: string;
6036
+ };
6037
+ '& .SCGroups-filters': {
6038
+ marginTop: any;
6039
+ marginBottom: any;
6040
+ };
5951
6041
  '& .SCGroups-groups': {
5952
6042
  marginTop: any;
5953
6043
  '& .SCGroups-item': {
5954
- padding: any;
6044
+ [x: number]: {
6045
+ padding: any;
6046
+ };
5955
6047
  width: string;
5956
6048
  '& > div': {
5957
6049
  cursor: string;
@@ -5960,6 +6052,7 @@ declare const theme: {
5960
6052
  };
5961
6053
  };
5962
6054
  '& .SCGroups-no-results': {
6055
+ marginTop: any;
5963
6056
  display: string;
5964
6057
  flexDirection: string;
5965
6058
  justifyContent: string;
@@ -5973,9 +6066,21 @@ declare const theme: {
5973
6066
  fontSize: any;
5974
6067
  };
5975
6068
  };
6069
+ '& .SCGroups-end-message': {
6070
+ display: string;
6071
+ alignItems: string;
6072
+ justifyContent: string;
6073
+ '& .MuiButtonBase-root': {
6074
+ paddingLeft: any;
6075
+ '&.Mui-selected, &:hover': {
6076
+ backgroundColor: string;
6077
+ };
6078
+ };
6079
+ };
5976
6080
  };
5977
6081
  skeletonRoot: ({ theme }: any) => {
5978
6082
  '& .SCGroups-groups': {
6083
+ justifyContent: string;
5979
6084
  marginTop: any;
5980
6085
  '& .SCGroup-skeleton-root': {
5981
6086
  padding: any;
@@ -6002,6 +6107,38 @@ declare const theme: {
6002
6107
  root: ({ theme }: any) => {};
6003
6108
  };
6004
6109
  };
6110
+ SCGroupSettingsIconButton: {
6111
+ styleOverrides: {
6112
+ root: ({ theme }: any) => {};
6113
+ menuRoot: ({ theme }: any) => {
6114
+ '& .SCGroupSettingsIconButton-paper': {
6115
+ maxWidth: number;
6116
+ padding: any;
6117
+ };
6118
+ };
6119
+ drawerRoot: ({ theme }: any) => {
6120
+ '& .MuiList-root': {
6121
+ '& a': {
6122
+ color: string;
6123
+ };
6124
+ };
6125
+ };
6126
+ };
6127
+ };
6128
+ SCGroupInvitedWidget: {
6129
+ styleOverrides: {
6130
+ root: ({ theme }: any) => {};
6131
+ skeletonRoot: ({ theme }: any) => {};
6132
+ dialogRoot: ({ theme }: any) => {};
6133
+ };
6134
+ };
6135
+ SCUserSubscribedGroupsWidget: {
6136
+ styleOverrides: {
6137
+ root: ({ theme }: any) => {};
6138
+ skeletonRoot: ({ theme }: any) => {};
6139
+ dialogRoot: ({ theme }: any) => {};
6140
+ };
6141
+ };
6005
6142
  };
6006
6143
  selfcommunity: {
6007
6144
  user: {
package/lib/esm/index.js CHANGED
@@ -132,6 +132,9 @@ import SCGroupRequestsWidget from './components/SCGroupRequestsWidget';
132
132
  import SCGroups from './components/SCGroups';
133
133
  import SCEditGroupButton from './components/SCEditGroupButton';
134
134
  import SCGroupAutocomplete from './components/SCGroupAutocomplete';
135
+ import SCGroupSettingsIconButton from './components/SCGroupSettingsIconButton';
136
+ import SCGroupInvitedWidget from './components/SCGroupInvitedWidget';
137
+ import SCUserSubscribedGroupsWidget from './components/SCUserSubscribedGroupsWidget';
135
138
  /**
136
139
  * Style fragments - Imports - End
137
140
  */
@@ -327,7 +330,10 @@ const theme = {
327
330
  SCGroupRequestsWidget,
328
331
  SCGroups,
329
332
  SCEditGroupButton,
330
- SCGroupAutocomplete
333
+ SCGroupAutocomplete,
334
+ SCGroupSettingsIconButton,
335
+ SCGroupInvitedWidget,
336
+ SCUserSubscribedGroupsWidget
331
337
  },
332
338
  selfcommunity: {
333
339
  user: {
@@ -350,7 +356,7 @@ const theme = {
350
356
  sizeSmall: 40,
351
357
  sizeMedium: 60,
352
358
  sizeLarge: 90,
353
- sizeXLarge: 120
359
+ sizeXLarge: 205
354
360
  }
355
361
  }
356
362
  }