@selfcommunity/react-theme-default 0.1.9-alpha.3 → 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 (46) 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 -29
  10. package/lib/cjs/components/SCGroupFeedTemplate.js +1 -30
  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 +2 -2
  18. package/lib/cjs/components/SCGroupMembersWidget.js +2 -2
  19. package/lib/cjs/components/SCGroups.d.ts +22 -2
  20. package/lib/cjs/components/SCGroups.js +22 -2
  21. package/lib/cjs/index.d.ts +69 -48
  22. package/lib/cjs/index.js +7 -3
  23. package/lib/esm/components/SCComposer.d.ts +1 -0
  24. package/lib/esm/components/SCComposer.js +5 -4
  25. package/lib/esm/components/SCCreateGroupButton.d.ts +5 -2
  26. package/lib/esm/components/SCCreateGroupButton.js +5 -2
  27. package/lib/esm/components/SCEditGroupButton.d.ts +13 -0
  28. package/lib/esm/components/SCEditGroupButton.js +13 -0
  29. package/lib/esm/components/SCGroupAutocomplete.d.ts +6 -0
  30. package/lib/esm/components/SCGroupAutocomplete.js +6 -0
  31. package/lib/esm/components/SCGroupFeedTemplate.d.ts +0 -29
  32. package/lib/esm/components/SCGroupFeedTemplate.js +1 -30
  33. package/lib/esm/components/{SCCreateGroup.d.ts → SCGroupForm.d.ts} +13 -10
  34. package/lib/esm/components/{SCCreateGroup.js → SCGroupForm.js} +13 -10
  35. package/lib/esm/components/SCGroupHeader.d.ts +4 -1
  36. package/lib/esm/components/SCGroupHeader.js +4 -1
  37. package/lib/esm/components/SCGroupInviteButton.d.ts +5 -2
  38. package/lib/esm/components/SCGroupInviteButton.js +5 -2
  39. package/lib/esm/components/SCGroupMembersWidget.d.ts +2 -2
  40. package/lib/esm/components/SCGroupMembersWidget.js +2 -2
  41. package/lib/esm/components/SCGroups.d.ts +22 -2
  42. package/lib/esm/components/SCGroups.js +22 -2
  43. package/lib/esm/index.d.ts +69 -48
  44. package/lib/esm/index.js +7 -3
  45. package/lib/umd/react-theme-default.js +2 -2
  46. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
3
  root: ({ theme }: any) => {
4
- '& .SCGroupMembersWidget-button': {
5
- marginTop: any;
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: any;
6
6
  };
7
7
  };
8
8
  skeletonRoot: ({ theme }: any) => {};
@@ -1,8 +1,8 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
- '& .SCGroupMembersWidget-button': {
5
- marginTop: theme.spacing(1)
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: theme.spacing(0, 0, 2, 1)
6
6
  }
7
7
  }),
8
8
  skeletonRoot: ({ theme }) => ({}),
@@ -1,7 +1,27 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
- root: ({ theme }: any) => {};
4
- skeletonRoot: ({ theme }: any) => {};
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
+ };
5
25
  };
6
26
  };
7
27
  export default Component;
@@ -1,7 +1,27 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
- root: ({ theme }) => ({}),
4
- skeletonRoot: ({ theme }) => ({})
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
+ })
5
25
  }
6
26
  };
7
27
  export default Component;
@@ -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': {
@@ -5579,6 +5580,10 @@ declare const theme: {
5579
5580
  gap: any;
5580
5581
  };
5581
5582
  };
5583
+ '& .SCEditGroupButton-root': {
5584
+ marginLeft: string;
5585
+ marginTop: any;
5586
+ };
5582
5587
  };
5583
5588
  '& .SCGroupHeader-avatar': {
5584
5589
  top: number;
@@ -5602,7 +5607,6 @@ declare const theme: {
5602
5607
  display: string;
5603
5608
  };
5604
5609
  '& .SCGroupHeader-name': {
5605
- marginTop: number;
5606
5610
  marginBottom: any;
5607
5611
  fontWeight: any;
5608
5612
  fontSize: string;
@@ -5693,20 +5697,23 @@ declare const theme: {
5693
5697
  SCCreateGroupButton: {
5694
5698
  styleOverrides: {
5695
5699
  root: ({ theme }: any) => {
5696
- '& .MuiIcon-root': {
5697
- fontSize: string;
5700
+ '& .MuiButton-startIcon': {
5701
+ marginRight: any;
5702
+ '& .MuiIcon-root': {
5703
+ fontSize: string;
5704
+ };
5698
5705
  };
5699
5706
  };
5700
5707
  };
5701
5708
  };
5702
- SCCreateGroup: {
5709
+ SCGroupForm: {
5703
5710
  styleOverrides: {
5704
5711
  root: ({ theme }: any) => {
5705
- '& .SCCreateGroup-cover': {
5712
+ '& .SCGroupForm-cover': {
5706
5713
  position: string;
5707
5714
  height: number;
5708
5715
  minHeight: number;
5709
- '& .SCCreateGroup-avatar': {
5716
+ '& .SCGroupForm-avatar': {
5710
5717
  top: number;
5711
5718
  display: string;
5712
5719
  position: string;
@@ -5737,11 +5744,14 @@ declare const theme: {
5737
5744
  bottom: any;
5738
5745
  };
5739
5746
  };
5740
- '& .SCCreateGroup-header': {
5747
+ '& .SCGroupForm-header': {
5741
5748
  marginTop: any;
5742
5749
  color: any;
5743
5750
  };
5744
- '& .SCCreateGroup-switch': {
5751
+ '& .SCGroupForm-error': {
5752
+ color: any;
5753
+ };
5754
+ '& .SCGroupForm-switch': {
5745
5755
  '& .MuiButtonBase-root': {
5746
5756
  '&.Mui-checked': {
5747
5757
  color: any;
@@ -5751,30 +5761,30 @@ declare const theme: {
5751
5761
  };
5752
5762
  };
5753
5763
  };
5754
- '& .SCCreateGroup-switch-label': {
5764
+ '& .SCGroupForm-switch-label': {
5755
5765
  fontWeight: any;
5756
5766
  display: string;
5757
5767
  alignItems: string;
5758
5768
  justifyContent: string;
5759
5769
  gap: any;
5760
5770
  };
5761
- '& .SCCreateGroup-active': {
5771
+ '& .SCGroupForm-active': {
5762
5772
  color: any;
5763
5773
  };
5764
- '& .SCCreateGroup-privacy-section': {
5774
+ '& .SCGroupForm-privacy-section': {
5765
5775
  marginTop: any;
5766
- '& .SCCreateGroup-privacy-section-info': {
5776
+ '& .SCGroupForm-privacy-section-info': {
5767
5777
  marginBottom: any;
5768
5778
  };
5769
5779
  };
5770
- '& .SCCreateGroup-visibility-section-info': {
5780
+ '& .SCGroupForm-visibility-section-info': {
5771
5781
  marginTop: any;
5772
5782
  };
5773
5783
  '& .MuiDivider-root': {
5774
5784
  marginTop: any;
5775
5785
  border: string;
5776
5786
  };
5777
- '& .SCCreateGroup-invite-section': {
5787
+ '& .SCGroupForm-invite-section': {
5778
5788
  marginTop: any;
5779
5789
  display: string;
5780
5790
  justifyContent: string;
@@ -5786,8 +5796,11 @@ declare const theme: {
5786
5796
  SCGroupInviteButton: {
5787
5797
  styleOverrides: {
5788
5798
  root: ({ theme }: any) => {
5789
- '& .MuiIcon-root': {
5790
- fontSize: string;
5799
+ '& .MuiButton-startIcon': {
5800
+ marginRight: any;
5801
+ '& .MuiIcon-root': {
5802
+ fontSize: string;
5803
+ };
5791
5804
  };
5792
5805
  };
5793
5806
  dialogRoot: ({ theme }: any) => {
@@ -5916,35 +5929,6 @@ declare const theme: {
5916
5929
  styleOverrides: {
5917
5930
  root: ({ theme }: any) => {
5918
5931
  marginTop: number;
5919
- '& .SCGroupFeedTemplate-feed': {
5920
- marginTop: any;
5921
- };
5922
- '& .SCGroupFeedTemplate-tabs': {
5923
- '& .MuiTabs-flexContainer': {
5924
- borderBottom: string;
5925
- };
5926
- '& .MuiTabs-indicator': {
5927
- display: string;
5928
- justifyContent: string;
5929
- backgroundColor: string;
5930
- };
5931
- '& .MuiTabs-indicatorSpan': {
5932
- maxWidth: string;
5933
- width: string;
5934
- backgroundColor: any;
5935
- };
5936
- };
5937
- '& .SCGroupFeedTemplate-tab-content': {
5938
- '& .SCGroupFeedTemplate-members': {
5939
- display: string;
5940
- flexDirection: string;
5941
- gap: any;
5942
- };
5943
- };
5944
- };
5945
- tabRoot: ({ theme }: any) => {
5946
- textTransform: string;
5947
- fontWeight: any;
5948
5932
  };
5949
5933
  skeletonRoot: ({ theme }: any) => {
5950
5934
  [x: number]: {
@@ -5957,8 +5941,8 @@ declare const theme: {
5957
5941
  SCGroupMembersWidget: {
5958
5942
  styleOverrides: {
5959
5943
  root: ({ theme }: any) => {
5960
- '& .SCGroupMembersWidget-button': {
5961
- marginTop: any;
5944
+ '& .SCGroupMembersWidget-actions': {
5945
+ margin: any;
5962
5946
  };
5963
5947
  };
5964
5948
  skeletonRoot: ({ theme }: any) => {};
@@ -5973,9 +5957,46 @@ declare const theme: {
5973
5957
  };
5974
5958
  };
5975
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: {
5976
5998
  styleOverrides: {
5977
5999
  root: ({ theme }: any) => {};
5978
- skeletonRoot: ({ theme }: any) => {};
5979
6000
  };
5980
6001
  };
5981
6002
  };
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';
@@ -130,6 +130,8 @@ import SCGroupFeedTemplate from './components/SCGroupFeedTemplate';
130
130
  import SCGroupMembersWidget from './components/SCGroupMembersWidget';
131
131
  import SCGroupRequestsWidget from './components/SCGroupRequestsWidget';
132
132
  import SCGroups from './components/SCGroups';
133
+ import SCEditGroupButton from './components/SCEditGroupButton';
134
+ import SCGroupAutocomplete from './components/SCGroupAutocomplete';
133
135
  /**
134
136
  * Style fragments - Imports - End
135
137
  */
@@ -315,7 +317,7 @@ const theme = {
315
317
  SCChangeGroupPictureButton,
316
318
  SCGroupMembersButton,
317
319
  SCCreateGroupButton,
318
- SCCreateGroup,
320
+ SCGroupForm,
319
321
  SCGroupInviteButton,
320
322
  SCGroupInfoWidget,
321
323
  SCGroup,
@@ -323,7 +325,9 @@ const theme = {
323
325
  SCGroupFeedTemplate,
324
326
  SCGroupMembersWidget,
325
327
  SCGroupRequestsWidget,
326
- SCGroups
328
+ SCGroups,
329
+ SCEditGroupButton,
330
+ SCGroupAutocomplete
327
331
  },
328
332
  selfcommunity: {
329
333
  user: {