@selfcommunity/react-theme-default 0.1.9-alpha.9 → 0.1.9

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 (72) 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 +3 -6
  10. package/lib/cjs/components/SCGroupHeader.js +10 -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/SCGroupTemplate.d.ts +3 -0
  16. package/lib/cjs/components/SCGroupTemplate.js +3 -0
  17. package/lib/cjs/components/SCGroups.d.ts +28 -1
  18. package/lib/cjs/components/SCGroups.js +30 -3
  19. package/lib/cjs/components/SCNavigationToolbarMobile.js +1 -1
  20. package/lib/cjs/components/SCNotification.d.ts +1 -0
  21. package/lib/cjs/components/SCNotification.js +1 -0
  22. package/lib/cjs/components/SCPrivateMessageSnippets.d.ts +1 -0
  23. package/lib/cjs/components/SCPrivateMessageSnippets.js +1 -0
  24. package/lib/cjs/components/SCPrivateMessageThread.d.ts +11 -0
  25. package/lib/cjs/components/SCPrivateMessageThread.js +15 -4
  26. package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +5 -1
  27. package/lib/cjs/components/SCPrivateMessageThreadItem.js +6 -1
  28. package/lib/cjs/components/SCUser.d.ts +5 -0
  29. package/lib/cjs/components/SCUser.js +5 -0
  30. package/lib/cjs/components/SCUserProfileHeader.d.ts +2 -2
  31. package/lib/cjs/components/SCUserProfileHeader.js +10 -10
  32. package/lib/cjs/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
  33. package/lib/cjs/components/SCUserSubscribedGroupsWidget.js +10 -0
  34. package/lib/cjs/index.d.ts +126 -11
  35. package/lib/cjs/index.js +6 -2
  36. package/lib/esm/components/SCCategoryHeader.d.ts +10 -1
  37. package/lib/esm/components/SCCategoryHeader.js +12 -3
  38. package/lib/esm/components/SCFeedObject.d.ts +32 -0
  39. package/lib/esm/components/SCFeedObject.js +33 -1
  40. package/lib/esm/components/SCGroup.d.ts +5 -0
  41. package/lib/esm/components/SCGroup.js +6 -1
  42. package/lib/esm/components/SCGroupFeedTemplate.d.ts +3 -0
  43. package/lib/esm/components/SCGroupFeedTemplate.js +4 -1
  44. package/lib/esm/components/SCGroupHeader.d.ts +3 -6
  45. package/lib/esm/components/SCGroupHeader.js +10 -12
  46. package/lib/esm/components/SCGroupInviteButton.d.ts +3 -0
  47. package/lib/esm/components/SCGroupInviteButton.js +4 -1
  48. package/lib/esm/components/SCGroupInvitedWidget.d.ts +8 -0
  49. package/lib/esm/components/SCGroupInvitedWidget.js +8 -0
  50. package/lib/esm/components/SCGroupTemplate.d.ts +3 -0
  51. package/lib/esm/components/SCGroupTemplate.js +3 -0
  52. package/lib/esm/components/SCGroups.d.ts +28 -1
  53. package/lib/esm/components/SCGroups.js +30 -3
  54. package/lib/esm/components/SCNavigationToolbarMobile.js +1 -1
  55. package/lib/esm/components/SCNotification.d.ts +1 -0
  56. package/lib/esm/components/SCNotification.js +1 -0
  57. package/lib/esm/components/SCPrivateMessageSnippets.d.ts +1 -0
  58. package/lib/esm/components/SCPrivateMessageSnippets.js +1 -0
  59. package/lib/esm/components/SCPrivateMessageThread.d.ts +11 -0
  60. package/lib/esm/components/SCPrivateMessageThread.js +15 -4
  61. package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +5 -1
  62. package/lib/esm/components/SCPrivateMessageThreadItem.js +6 -1
  63. package/lib/esm/components/SCUser.d.ts +5 -0
  64. package/lib/esm/components/SCUser.js +5 -0
  65. package/lib/esm/components/SCUserProfileHeader.d.ts +2 -2
  66. package/lib/esm/components/SCUserProfileHeader.js +10 -10
  67. package/lib/esm/components/SCUserSubscribedGroupsWidget.d.ts +8 -0
  68. package/lib/esm/components/SCUserSubscribedGroupsWidget.js +8 -0
  69. package/lib/esm/index.d.ts +126 -11
  70. package/lib/esm/index.js +6 -2
  71. package/lib/umd/react-theme-default.js +2 -2
  72. package/package.json +4 -4
@@ -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,7 +5613,7 @@ declare const theme: {
5554
5613
  boxShadow: string;
5555
5614
  };
5556
5615
  '& .SCGroupHeader-info': {
5557
- marginTop: number;
5616
+ marginTop: any;
5558
5617
  display: string;
5559
5618
  flexDirection: string;
5560
5619
  justifyContent: string;
@@ -5584,6 +5643,7 @@ declare const theme: {
5584
5643
  '& .SCEditGroupButton-root': {
5585
5644
  marginLeft: string;
5586
5645
  marginTop: any;
5646
+ marginRight: any;
5587
5647
  };
5588
5648
  '& .SCGroupSubscribeButton-root': {
5589
5649
  marginTop: any;
@@ -5626,7 +5686,7 @@ declare const theme: {
5626
5686
  position: string;
5627
5687
  '& .SCGroupHeader-cover': {
5628
5688
  [x: number]: {
5629
- margin: any;
5689
+ borderRadius: any;
5630
5690
  };
5631
5691
  height: number;
5632
5692
  };
@@ -5822,6 +5882,9 @@ declare const theme: {
5822
5882
  '& .SCGroupInviteButton-invited-box': {
5823
5883
  marginTop: any;
5824
5884
  marginBottom: any;
5885
+ '& .MuiChip-root': {
5886
+ marginBottom: any;
5887
+ };
5825
5888
  };
5826
5889
  '& .SCGroupInviteButton-suggested': {
5827
5890
  '& h4': {
@@ -5887,7 +5950,12 @@ declare const theme: {
5887
5950
  };
5888
5951
  };
5889
5952
  '& .SCBaseItemButton-primary': {
5953
+ display: string;
5954
+ alignItems: string;
5890
5955
  fontWeight: any;
5956
+ '& .SCGroup-icon': {
5957
+ marginLeft: any;
5958
+ };
5891
5959
  };
5892
5960
  '& .SCBaseItemButton-secondary': {
5893
5961
  fontSize: string;
@@ -5909,6 +5977,9 @@ declare const theme: {
5909
5977
  '& .SCCategoryTemplate-feed': {
5910
5978
  marginTop: any;
5911
5979
  };
5980
+ '& .SCGroupInfoWidget-root': {
5981
+ marginTop: any;
5982
+ };
5912
5983
  };
5913
5984
  skeletonRoot: ({ theme }: any) => {
5914
5985
  [x: number]: {
@@ -5922,6 +5993,9 @@ declare const theme: {
5922
5993
  styleOverrides: {
5923
5994
  root: ({ theme }: any) => {
5924
5995
  marginTop: number;
5996
+ '& .SCGroupInfoWidget-root': {
5997
+ padding: any;
5998
+ };
5925
5999
  };
5926
6000
  skeletonRoot: ({ theme }: any) => {
5927
6001
  [x: number]: {
@@ -5952,10 +6026,24 @@ declare const theme: {
5952
6026
  SCGroups: {
5953
6027
  styleOverrides: {
5954
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
+ };
5955
6041
  '& .SCGroups-groups': {
5956
6042
  marginTop: any;
5957
6043
  '& .SCGroups-item': {
5958
- padding: any;
6044
+ [x: number]: {
6045
+ padding: any;
6046
+ };
5959
6047
  width: string;
5960
6048
  '& > div': {
5961
6049
  cursor: string;
@@ -5964,6 +6052,7 @@ declare const theme: {
5964
6052
  };
5965
6053
  };
5966
6054
  '& .SCGroups-no-results': {
6055
+ marginTop: any;
5967
6056
  display: string;
5968
6057
  flexDirection: string;
5969
6058
  justifyContent: string;
@@ -5977,9 +6066,21 @@ declare const theme: {
5977
6066
  fontSize: any;
5978
6067
  };
5979
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
+ };
5980
6080
  };
5981
6081
  skeletonRoot: ({ theme }: any) => {
5982
6082
  '& .SCGroups-groups': {
6083
+ justifyContent: string;
5983
6084
  marginTop: any;
5984
6085
  '& .SCGroup-skeleton-root': {
5985
6086
  padding: any;
@@ -6024,6 +6125,20 @@ declare const theme: {
6024
6125
  };
6025
6126
  };
6026
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
+ };
6027
6142
  };
6028
6143
  selfcommunity: {
6029
6144
  user: {
package/lib/esm/index.js CHANGED
@@ -133,6 +133,8 @@ import SCGroups from './components/SCGroups';
133
133
  import SCEditGroupButton from './components/SCEditGroupButton';
134
134
  import SCGroupAutocomplete from './components/SCGroupAutocomplete';
135
135
  import SCGroupSettingsIconButton from './components/SCGroupSettingsIconButton';
136
+ import SCGroupInvitedWidget from './components/SCGroupInvitedWidget';
137
+ import SCUserSubscribedGroupsWidget from './components/SCUserSubscribedGroupsWidget';
136
138
  /**
137
139
  * Style fragments - Imports - End
138
140
  */
@@ -329,7 +331,9 @@ const theme = {
329
331
  SCGroups,
330
332
  SCEditGroupButton,
331
333
  SCGroupAutocomplete,
332
- SCGroupSettingsIconButton
334
+ SCGroupSettingsIconButton,
335
+ SCGroupInvitedWidget,
336
+ SCUserSubscribedGroupsWidget
333
337
  },
334
338
  selfcommunity: {
335
339
  user: {
@@ -352,7 +356,7 @@ const theme = {
352
356
  sizeSmall: 40,
353
357
  sizeMedium: 60,
354
358
  sizeLarge: 90,
355
- sizeXLarge: 120
359
+ sizeXLarge: 205
356
360
  }
357
361
  }
358
362
  }