@selfcommunity/react-theme-default 0.1.9-alpha.2 → 0.1.9-alpha.4

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 (54) hide show
  1. package/lib/cjs/components/SCComposer.d.ts +1 -0
  2. package/lib/cjs/components/SCComposer.js +5 -4
  3. package/lib/cjs/components/SCCreateGroupButton.d.ts +5 -2
  4. package/lib/cjs/components/SCCreateGroupButton.js +5 -2
  5. package/lib/cjs/components/SCEditGroupButton.d.ts +13 -0
  6. package/lib/cjs/components/SCEditGroupButton.js +15 -0
  7. package/lib/cjs/components/SCGroupAutocomplete.d.ts +6 -0
  8. package/lib/cjs/components/SCGroupAutocomplete.js +8 -0
  9. package/lib/cjs/components/SCGroupFeedTemplate.d.ts +0 -22
  10. package/lib/cjs/components/SCGroupFeedTemplate.js +1 -23
  11. package/lib/cjs/components/{SCCreateGroup.d.ts → SCGroupForm.d.ts} +13 -10
  12. package/lib/cjs/components/{SCCreateGroup.js → SCGroupForm.js} +13 -10
  13. package/lib/cjs/components/SCGroupHeader.d.ts +4 -1
  14. package/lib/cjs/components/SCGroupHeader.js +4 -1
  15. package/lib/cjs/components/SCGroupInviteButton.d.ts +5 -2
  16. package/lib/cjs/components/SCGroupInviteButton.js +5 -2
  17. package/lib/cjs/components/SCGroupMembersWidget.d.ts +5 -1
  18. package/lib/cjs/components/SCGroupMembersWidget.js +5 -1
  19. package/lib/cjs/components/SCGroups.d.ts +27 -0
  20. package/lib/cjs/components/SCGroups.js +29 -0
  21. package/lib/cjs/components/SCNavigationToolbar.d.ts +1 -1
  22. package/lib/cjs/components/SCNavigationToolbar.js +1 -1
  23. package/lib/cjs/components/SCPrivateMessageEditor.d.ts +0 -3
  24. package/lib/cjs/components/SCPrivateMessageEditor.js +0 -3
  25. package/lib/cjs/index.d.ts +78 -43
  26. package/lib/cjs/index.js +9 -3
  27. package/lib/esm/components/SCComposer.d.ts +1 -0
  28. package/lib/esm/components/SCComposer.js +5 -4
  29. package/lib/esm/components/SCCreateGroupButton.d.ts +5 -2
  30. package/lib/esm/components/SCCreateGroupButton.js +5 -2
  31. package/lib/esm/components/SCEditGroupButton.d.ts +13 -0
  32. package/lib/esm/components/SCEditGroupButton.js +13 -0
  33. package/lib/esm/components/SCGroupAutocomplete.d.ts +6 -0
  34. package/lib/esm/components/SCGroupAutocomplete.js +6 -0
  35. package/lib/esm/components/SCGroupFeedTemplate.d.ts +0 -22
  36. package/lib/esm/components/SCGroupFeedTemplate.js +1 -23
  37. package/lib/esm/components/{SCCreateGroup.d.ts → SCGroupForm.d.ts} +13 -10
  38. package/lib/esm/components/{SCCreateGroup.js → SCGroupForm.js} +13 -10
  39. package/lib/esm/components/SCGroupHeader.d.ts +4 -1
  40. package/lib/esm/components/SCGroupHeader.js +4 -1
  41. package/lib/esm/components/SCGroupInviteButton.d.ts +5 -2
  42. package/lib/esm/components/SCGroupInviteButton.js +5 -2
  43. package/lib/esm/components/SCGroupMembersWidget.d.ts +5 -1
  44. package/lib/esm/components/SCGroupMembersWidget.js +5 -1
  45. package/lib/esm/components/SCGroups.d.ts +27 -0
  46. package/lib/esm/components/SCGroups.js +27 -0
  47. package/lib/esm/components/SCNavigationToolbar.d.ts +1 -1
  48. package/lib/esm/components/SCNavigationToolbar.js +1 -1
  49. package/lib/esm/components/SCPrivateMessageEditor.d.ts +0 -3
  50. package/lib/esm/components/SCPrivateMessageEditor.js +0 -3
  51. package/lib/esm/index.d.ts +78 -43
  52. package/lib/esm/index.js +9 -3
  53. package/lib/umd/react-theme-default.js +2 -2
  54. package/package.json +4 -4
@@ -1,6 +1,10 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
- root: ({ theme }: any) => {};
3
+ root: ({ theme }: any) => {
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: any;
6
+ };
7
+ };
4
8
  skeletonRoot: ({ theme }: any) => {};
5
9
  dialogRoot: ({ theme }: any) => {};
6
10
  };
@@ -1,6 +1,10 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
- root: ({ theme }) => ({}),
3
+ root: ({ theme }) => ({
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: theme.spacing(0, 0, 2, 1)
6
+ }
7
+ }),
4
8
  skeletonRoot: ({ theme }) => ({}),
5
9
  dialogRoot: ({ theme }) => ({})
6
10
  }
@@ -0,0 +1,27 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCGroups-groups': {
5
+ marginTop: any;
6
+ '& .SCGroups-item': {
7
+ padding: any;
8
+ width: string;
9
+ '& > div': {
10
+ cursor: string;
11
+ padding: any;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ skeletonRoot: ({ theme }: any) => {
17
+ '& .SCGroups-groups': {
18
+ marginTop: any;
19
+ '& .SCGroup-skeleton-root': {
20
+ padding: any;
21
+ width: string;
22
+ };
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export default Component;
@@ -0,0 +1,27 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCGroups-groups': {
5
+ marginTop: theme.spacing(3),
6
+ '& .SCGroups-item': {
7
+ padding: theme.spacing(2),
8
+ width: 'auto',
9
+ '& > div': {
10
+ cursor: 'default',
11
+ padding: theme.spacing(1)
12
+ }
13
+ }
14
+ }
15
+ }),
16
+ skeletonRoot: ({ theme }) => ({
17
+ '& .SCGroups-groups': {
18
+ marginTop: theme.spacing(3),
19
+ '& .SCGroup-skeleton-root': {
20
+ padding: theme.spacing(1.5),
21
+ width: 'auto'
22
+ }
23
+ }
24
+ })
25
+ }
26
+ };
27
+ export default Component;
@@ -24,7 +24,7 @@ declare const Component: {
24
24
  flexGrow: number;
25
25
  textAlign: string;
26
26
  alignSelf: string;
27
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
27
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
28
28
  paddingTop: number;
29
29
  paddingLeft: any;
30
30
  paddingRight: any;
@@ -13,7 +13,7 @@ const Component = {
13
13
  flexGrow: 1,
14
14
  textAlign: 'center',
15
15
  alignSelf: 'end',
16
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
16
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
17
17
  paddingTop: 12,
18
18
  paddingLeft: theme.spacing(1),
19
19
  paddingRight: theme.spacing(1),
@@ -2,9 +2,6 @@ declare const Component: {
2
2
  styleOverrides: {
3
3
  root: ({ theme }: any) => {
4
4
  backgroundColor: string;
5
- '& .MuiIcon-root': {
6
- fontSize: string;
7
- };
8
5
  '& .SCPrivateMessageEditor-message-input': {
9
6
  width: string;
10
7
  };
@@ -3,9 +3,6 @@ const Component = {
3
3
  styleOverrides: {
4
4
  root: ({ theme }) => ({
5
5
  backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),
6
- '& .MuiIcon-root': {
7
- fontSize: '1.57rem'
8
- },
9
6
  '& .SCPrivateMessageEditor-message-input': {
10
7
  width: '100%'
11
8
  },
@@ -1231,6 +1231,7 @@ declare const theme: {
1231
1231
  };
1232
1232
  };
1233
1233
  layerCategoryRoot: ({ theme }: any) => {};
1234
+ layerGroupRoot: ({ theme }: any) => {};
1234
1235
  layerCloseRoot: ({ theme }: any) => {
1235
1236
  '& .SCComposer-layer-content': {
1236
1237
  '& .MuiTypography-root': {
@@ -3254,7 +3255,7 @@ declare const theme: {
3254
3255
  flexGrow: number;
3255
3256
  textAlign: string;
3256
3257
  alignSelf: string;
3257
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
3258
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
3258
3259
  paddingTop: number;
3259
3260
  paddingLeft: any;
3260
3261
  paddingRight: any;
@@ -4886,9 +4887,6 @@ declare const theme: {
4886
4887
  styleOverrides: {
4887
4888
  root: ({ theme }: any) => {
4888
4889
  backgroundColor: string;
4889
- '& .MuiIcon-root': {
4890
- fontSize: string;
4891
- };
4892
4890
  '& .SCPrivateMessageEditor-message-input': {
4893
4891
  width: string;
4894
4892
  };
@@ -5582,6 +5580,10 @@ declare const theme: {
5582
5580
  gap: any;
5583
5581
  };
5584
5582
  };
5583
+ '& .SCEditGroupButton-root': {
5584
+ marginLeft: string;
5585
+ marginTop: any;
5586
+ };
5585
5587
  };
5586
5588
  '& .SCGroupHeader-avatar': {
5587
5589
  top: number;
@@ -5605,7 +5607,6 @@ declare const theme: {
5605
5607
  display: string;
5606
5608
  };
5607
5609
  '& .SCGroupHeader-name': {
5608
- marginTop: number;
5609
5610
  marginBottom: any;
5610
5611
  fontWeight: any;
5611
5612
  fontSize: string;
@@ -5696,20 +5697,23 @@ declare const theme: {
5696
5697
  SCCreateGroupButton: {
5697
5698
  styleOverrides: {
5698
5699
  root: ({ theme }: any) => {
5699
- '& .MuiIcon-root': {
5700
- fontSize: string;
5700
+ '& .MuiButton-startIcon': {
5701
+ marginRight: any;
5702
+ '& .MuiIcon-root': {
5703
+ fontSize: string;
5704
+ };
5701
5705
  };
5702
5706
  };
5703
5707
  };
5704
5708
  };
5705
- SCCreateGroup: {
5709
+ SCGroupForm: {
5706
5710
  styleOverrides: {
5707
5711
  root: ({ theme }: any) => {
5708
- '& .SCCreateGroup-cover': {
5712
+ '& .SCGroupForm-cover': {
5709
5713
  position: string;
5710
5714
  height: number;
5711
5715
  minHeight: number;
5712
- '& .SCCreateGroup-avatar': {
5716
+ '& .SCGroupForm-avatar': {
5713
5717
  top: number;
5714
5718
  display: string;
5715
5719
  position: string;
@@ -5740,11 +5744,14 @@ declare const theme: {
5740
5744
  bottom: any;
5741
5745
  };
5742
5746
  };
5743
- '& .SCCreateGroup-header': {
5747
+ '& .SCGroupForm-header': {
5744
5748
  marginTop: any;
5745
5749
  color: any;
5746
5750
  };
5747
- '& .SCCreateGroup-switch': {
5751
+ '& .SCGroupForm-error': {
5752
+ color: any;
5753
+ };
5754
+ '& .SCGroupForm-switch': {
5748
5755
  '& .MuiButtonBase-root': {
5749
5756
  '&.Mui-checked': {
5750
5757
  color: any;
@@ -5754,30 +5761,30 @@ declare const theme: {
5754
5761
  };
5755
5762
  };
5756
5763
  };
5757
- '& .SCCreateGroup-switch-label': {
5764
+ '& .SCGroupForm-switch-label': {
5758
5765
  fontWeight: any;
5759
5766
  display: string;
5760
5767
  alignItems: string;
5761
5768
  justifyContent: string;
5762
5769
  gap: any;
5763
5770
  };
5764
- '& .SCCreateGroup-active': {
5771
+ '& .SCGroupForm-active': {
5765
5772
  color: any;
5766
5773
  };
5767
- '& .SCCreateGroup-privacy-section': {
5774
+ '& .SCGroupForm-privacy-section': {
5768
5775
  marginTop: any;
5769
- '& .SCCreateGroup-privacy-section-info': {
5776
+ '& .SCGroupForm-privacy-section-info': {
5770
5777
  marginBottom: any;
5771
5778
  };
5772
5779
  };
5773
- '& .SCCreateGroup-visibility-section-info': {
5780
+ '& .SCGroupForm-visibility-section-info': {
5774
5781
  marginTop: any;
5775
5782
  };
5776
5783
  '& .MuiDivider-root': {
5777
5784
  marginTop: any;
5778
5785
  border: string;
5779
5786
  };
5780
- '& .SCCreateGroup-invite-section': {
5787
+ '& .SCGroupForm-invite-section': {
5781
5788
  marginTop: any;
5782
5789
  display: string;
5783
5790
  justifyContent: string;
@@ -5789,8 +5796,11 @@ declare const theme: {
5789
5796
  SCGroupInviteButton: {
5790
5797
  styleOverrides: {
5791
5798
  root: ({ theme }: any) => {
5792
- '& .MuiIcon-root': {
5793
- fontSize: string;
5799
+ '& .MuiButton-startIcon': {
5800
+ marginRight: any;
5801
+ '& .MuiIcon-root': {
5802
+ fontSize: string;
5803
+ };
5794
5804
  };
5795
5805
  };
5796
5806
  dialogRoot: ({ theme }: any) => {
@@ -5919,28 +5929,6 @@ declare const theme: {
5919
5929
  styleOverrides: {
5920
5930
  root: ({ theme }: any) => {
5921
5931
  marginTop: number;
5922
- '& .SCGroupFeedTemplate-feed': {
5923
- marginTop: any;
5924
- };
5925
- '& .SCGroupFeedTemplate-tabs': {
5926
- '& .MuiTabs-flexContainer': {
5927
- borderBottom: string;
5928
- };
5929
- '& .MuiTabs-indicator': {
5930
- display: string;
5931
- justifyContent: string;
5932
- backgroundColor: string;
5933
- };
5934
- '& .MuiTabs-indicatorSpan': {
5935
- maxWidth: string;
5936
- width: string;
5937
- backgroundColor: any;
5938
- };
5939
- };
5940
- };
5941
- tabRoot: ({ theme }: any) => {
5942
- textTransform: string;
5943
- fontWeight: any;
5944
5932
  };
5945
5933
  skeletonRoot: ({ theme }: any) => {
5946
5934
  [x: number]: {
@@ -5952,7 +5940,11 @@ declare const theme: {
5952
5940
  };
5953
5941
  SCGroupMembersWidget: {
5954
5942
  styleOverrides: {
5955
- root: ({ theme }: any) => {};
5943
+ root: ({ theme }: any) => {
5944
+ '& .SCGroupMembersWidget-actions': {
5945
+ margin: any;
5946
+ };
5947
+ };
5956
5948
  skeletonRoot: ({ theme }: any) => {};
5957
5949
  dialogRoot: ({ theme }: any) => {};
5958
5950
  };
@@ -5964,6 +5956,49 @@ declare const theme: {
5964
5956
  dialogRoot: ({ theme }: any) => {};
5965
5957
  };
5966
5958
  };
5959
+ SCGroups: {
5960
+ styleOverrides: {
5961
+ root: ({ theme }: any) => {
5962
+ '& .SCGroups-groups': {
5963
+ marginTop: any;
5964
+ '& .SCGroups-item': {
5965
+ padding: any;
5966
+ width: string;
5967
+ '& > div': {
5968
+ cursor: string;
5969
+ padding: any;
5970
+ };
5971
+ };
5972
+ };
5973
+ };
5974
+ skeletonRoot: ({ theme }: any) => {
5975
+ '& .SCGroups-groups': {
5976
+ marginTop: any;
5977
+ '& .SCGroup-skeleton-root': {
5978
+ padding: any;
5979
+ width: string;
5980
+ };
5981
+ };
5982
+ };
5983
+ };
5984
+ };
5985
+ SCEditGroupButton: {
5986
+ styleOverrides: {
5987
+ root: ({ theme }: any) => {
5988
+ '& .MuiButton-startIcon': {
5989
+ marginRight: any;
5990
+ '& .MuiIcon-root': {
5991
+ fontSize: string;
5992
+ };
5993
+ };
5994
+ };
5995
+ };
5996
+ };
5997
+ SCGroupAutocomplete: {
5998
+ styleOverrides: {
5999
+ root: ({ theme }: any) => {};
6000
+ };
6001
+ };
5967
6002
  };
5968
6003
  selfcommunity: {
5969
6004
  user: {
package/lib/esm/index.js CHANGED
@@ -121,7 +121,7 @@ import SCChangeGroupCoverButton from './components/SCChangeGroupCoverButton';
121
121
  import SCChangeGroupPictureButton from './components/SCChangeGroupPictureButton';
122
122
  import SCGroupMembersButton from './components/SCGroupMembersButton';
123
123
  import SCCreateGroupButton from './components/SCCreateGroupButton';
124
- import SCCreateGroup from './components/SCCreateGroup';
124
+ import SCGroupForm from './components/SCGroupForm';
125
125
  import SCGroupInviteButton from './components/SCGroupInviteButton';
126
126
  import SCGroupInfoWidget from './components/SCGroupInfoWidget';
127
127
  import SCGroup from './components/SCGroup';
@@ -129,6 +129,9 @@ import SCGroupTemplate from './components/SCGroupTemplate';
129
129
  import SCGroupFeedTemplate from './components/SCGroupFeedTemplate';
130
130
  import SCGroupMembersWidget from './components/SCGroupMembersWidget';
131
131
  import SCGroupRequestsWidget from './components/SCGroupRequestsWidget';
132
+ import SCGroups from './components/SCGroups';
133
+ import SCEditGroupButton from './components/SCEditGroupButton';
134
+ import SCGroupAutocomplete from './components/SCGroupAutocomplete';
132
135
  /**
133
136
  * Style fragments - Imports - End
134
137
  */
@@ -314,14 +317,17 @@ const theme = {
314
317
  SCChangeGroupPictureButton,
315
318
  SCGroupMembersButton,
316
319
  SCCreateGroupButton,
317
- SCCreateGroup,
320
+ SCGroupForm,
318
321
  SCGroupInviteButton,
319
322
  SCGroupInfoWidget,
320
323
  SCGroup,
321
324
  SCGroupTemplate,
322
325
  SCGroupFeedTemplate,
323
326
  SCGroupMembersWidget,
324
- SCGroupRequestsWidget
327
+ SCGroupRequestsWidget,
328
+ SCGroups,
329
+ SCEditGroupButton,
330
+ SCGroupAutocomplete
325
331
  },
326
332
  selfcommunity: {
327
333
  user: {