@selfcommunity/react-theme-default 0.1.9-alpha.1 → 0.1.9-alpha.11

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 (103) hide show
  1. package/lib/cjs/components/SCChangeGroupCoverButton.d.ts +9 -0
  2. package/lib/cjs/components/SCChangeGroupCoverButton.js +11 -0
  3. package/lib/cjs/components/SCChangeGroupPictureButton.d.ts +9 -0
  4. package/lib/cjs/components/SCChangeGroupPictureButton.js +11 -0
  5. package/lib/cjs/components/SCComposer.d.ts +1 -0
  6. package/lib/cjs/components/SCComposer.js +5 -4
  7. package/lib/cjs/components/SCCreateGroupButton.d.ts +13 -0
  8. package/lib/cjs/components/SCCreateGroupButton.js +15 -0
  9. package/lib/cjs/components/SCEditGroupButton.d.ts +13 -0
  10. package/lib/cjs/components/SCEditGroupButton.js +15 -0
  11. package/lib/cjs/components/SCGroup.d.ts +36 -0
  12. package/lib/cjs/components/SCGroup.js +38 -0
  13. package/lib/cjs/components/SCGroupAutocomplete.d.ts +6 -0
  14. package/lib/cjs/components/SCGroupAutocomplete.js +8 -0
  15. package/lib/cjs/components/SCGroupFeedTemplate.d.ts +14 -0
  16. package/lib/cjs/components/SCGroupFeedTemplate.js +16 -0
  17. package/lib/cjs/components/SCGroupForm.d.ts +88 -0
  18. package/lib/cjs/components/SCGroupForm.js +91 -0
  19. package/lib/cjs/components/SCGroupHeader.d.ts +116 -0
  20. package/lib/cjs/components/SCGroupHeader.js +117 -0
  21. package/lib/cjs/components/SCGroupInfoWidget.d.ts +32 -0
  22. package/lib/cjs/components/SCGroupInfoWidget.js +34 -0
  23. package/lib/cjs/components/SCGroupInviteButton.d.ts +51 -0
  24. package/lib/cjs/components/SCGroupInviteButton.js +54 -0
  25. package/lib/cjs/components/SCGroupMembersButton.d.ts +22 -0
  26. package/lib/cjs/components/SCGroupMembersButton.js +24 -0
  27. package/lib/cjs/components/SCGroupMembersWidget.d.ts +12 -0
  28. package/lib/cjs/components/SCGroupMembersWidget.js +14 -0
  29. package/lib/cjs/components/SCGroupRequestsWidget.d.ts +8 -0
  30. package/lib/cjs/components/SCGroupRequestsWidget.js +10 -0
  31. package/lib/cjs/components/SCGroupSettingsIconButton.d.ts +19 -0
  32. package/lib/cjs/components/SCGroupSettingsIconButton.js +21 -0
  33. package/lib/cjs/components/SCGroupTemplate.d.ts +17 -0
  34. package/lib/cjs/components/SCGroupTemplate.js +19 -0
  35. package/lib/cjs/components/SCGroups.d.ts +41 -0
  36. package/lib/cjs/components/SCGroups.js +43 -0
  37. package/lib/cjs/components/SCNavigationToolbar.d.ts +2 -2
  38. package/lib/cjs/components/SCNavigationToolbar.js +2 -2
  39. package/lib/cjs/components/SCPrivateMessageEditor.d.ts +0 -3
  40. package/lib/cjs/components/SCPrivateMessageEditor.js +0 -3
  41. package/lib/cjs/fonts/community/icons.eot +0 -0
  42. package/lib/cjs/fonts/community/icons.svg +11 -3
  43. package/lib/cjs/fonts/community/icons.ttf +0 -0
  44. package/lib/cjs/fonts/community/icons.woff +0 -0
  45. package/lib/cjs/fonts/community/icons.woff2 +0 -0
  46. package/lib/cjs/fonts/community-icons.css +19 -7
  47. package/lib/cjs/index.d.ts +501 -5
  48. package/lib/cjs/index.js +45 -2
  49. package/lib/esm/components/SCChangeGroupCoverButton.d.ts +9 -0
  50. package/lib/esm/components/SCChangeGroupCoverButton.js +9 -0
  51. package/lib/esm/components/SCChangeGroupPictureButton.d.ts +9 -0
  52. package/lib/esm/components/SCChangeGroupPictureButton.js +9 -0
  53. package/lib/esm/components/SCComposer.d.ts +1 -0
  54. package/lib/esm/components/SCComposer.js +5 -4
  55. package/lib/esm/components/SCCreateGroupButton.d.ts +13 -0
  56. package/lib/esm/components/SCCreateGroupButton.js +13 -0
  57. package/lib/esm/components/SCEditGroupButton.d.ts +13 -0
  58. package/lib/esm/components/SCEditGroupButton.js +13 -0
  59. package/lib/esm/components/SCGroup.d.ts +36 -0
  60. package/lib/esm/components/SCGroup.js +36 -0
  61. package/lib/esm/components/SCGroupAutocomplete.d.ts +6 -0
  62. package/lib/esm/components/SCGroupAutocomplete.js +6 -0
  63. package/lib/esm/components/SCGroupFeedTemplate.d.ts +14 -0
  64. package/lib/esm/components/SCGroupFeedTemplate.js +14 -0
  65. package/lib/esm/components/SCGroupForm.d.ts +88 -0
  66. package/lib/esm/components/SCGroupForm.js +89 -0
  67. package/lib/esm/components/SCGroupHeader.d.ts +116 -0
  68. package/lib/esm/components/SCGroupHeader.js +115 -0
  69. package/lib/esm/components/SCGroupInfoWidget.d.ts +32 -0
  70. package/lib/esm/components/SCGroupInfoWidget.js +32 -0
  71. package/lib/esm/components/SCGroupInviteButton.d.ts +51 -0
  72. package/lib/esm/components/SCGroupInviteButton.js +52 -0
  73. package/lib/esm/components/SCGroupMembersButton.d.ts +22 -0
  74. package/lib/esm/components/SCGroupMembersButton.js +22 -0
  75. package/lib/esm/components/SCGroupMembersWidget.d.ts +12 -0
  76. package/lib/esm/components/SCGroupMembersWidget.js +12 -0
  77. package/lib/esm/components/SCGroupRequestsWidget.d.ts +8 -0
  78. package/lib/esm/components/SCGroupRequestsWidget.js +8 -0
  79. package/lib/esm/components/SCGroupSettingsIconButton.d.ts +19 -0
  80. package/lib/esm/components/SCGroupSettingsIconButton.js +19 -0
  81. package/lib/esm/components/SCGroupTemplate.d.ts +17 -0
  82. package/lib/esm/components/SCGroupTemplate.js +17 -0
  83. package/lib/esm/components/SCGroups.d.ts +41 -0
  84. package/lib/esm/components/SCGroups.js +41 -0
  85. package/lib/esm/components/SCNavigationToolbar.d.ts +2 -2
  86. package/lib/esm/components/SCNavigationToolbar.js +2 -2
  87. package/lib/esm/components/SCPrivateMessageEditor.d.ts +0 -3
  88. package/lib/esm/components/SCPrivateMessageEditor.js +0 -3
  89. package/lib/esm/fonts/community/icons.eot +0 -0
  90. package/lib/esm/fonts/community/icons.svg +11 -3
  91. package/lib/esm/fonts/community/icons.ttf +0 -0
  92. package/lib/esm/fonts/community/icons.woff +0 -0
  93. package/lib/esm/fonts/community/icons.woff2 +0 -0
  94. package/lib/esm/fonts/community-icons.css +19 -7
  95. package/lib/esm/index.d.ts +501 -5
  96. package/lib/esm/index.js +45 -2
  97. package/lib/umd/community/icons.eot +0 -0
  98. package/lib/umd/community/icons.svg +11 -3
  99. package/lib/umd/community/icons.ttf +0 -0
  100. package/lib/umd/community/icons.woff +0 -0
  101. package/lib/umd/community/icons.woff2 +0 -0
  102. package/lib/umd/react-theme-default.js +2 -2
  103. package/package.json +4 -4
@@ -0,0 +1,32 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCGroupInfoWidget-title': {
5
+ fontWeight: theme.typography.fontWeightBold,
6
+ marginBottom: theme.spacing(1)
7
+ },
8
+ '& .SCGroupInfoWidget-description': {
9
+ marginBottom: theme.spacing(1)
10
+ },
11
+ '& .SCGroupInfoWidget-privacy': {
12
+ marginBottom: theme.spacing(1),
13
+ '& .SCGroupInfoWidget-privacy-title': {
14
+ color: theme.palette.secondary.main,
15
+ fontWeight: theme.typography.fontWeightMedium,
16
+ display: 'flex',
17
+ alignItems: 'center',
18
+ gap: theme.spacing(0.5)
19
+ }
20
+ },
21
+ '& .SCGroupInfoWidget-visibility-title': {
22
+ color: theme.palette.secondary.main,
23
+ fontWeight: theme.typography.fontWeightMedium,
24
+ display: 'flex',
25
+ alignItems: 'center',
26
+ gap: theme.spacing(0.5)
27
+ }
28
+ }),
29
+ skeletonRoot: ({ theme }) => ({})
30
+ }
31
+ };
32
+ export default Component;
@@ -0,0 +1,51 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .MuiButton-startIcon': {
5
+ marginRight: any;
6
+ '& .MuiIcon-root': {
7
+ fontSize: string;
8
+ };
9
+ };
10
+ };
11
+ dialogRoot: ({ theme }: any) => {
12
+ '& .SCBaseDialog-title-root span ': {
13
+ width: string;
14
+ display: string;
15
+ alignItems: string;
16
+ justifyContent: string;
17
+ '& .SCGroupInviteButton-dialog-title': {
18
+ fontWeight: any;
19
+ fontSize: any;
20
+ };
21
+ };
22
+ '& .SCGroupInviteButton-input': {
23
+ backgroundColor: string;
24
+ borderRadius: any;
25
+ height: any;
26
+ padding: any;
27
+ '& .SCGroupInviteButton-icon ': {
28
+ marginLeft: any;
29
+ };
30
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
31
+ border: string;
32
+ };
33
+ };
34
+ '& .SCGroupInviteButton-invited-box': {
35
+ marginTop: any;
36
+ marginBottom: any;
37
+ };
38
+ '& .SCGroupInviteButton-suggested': {
39
+ '& h4': {
40
+ marginBottom: any;
41
+ };
42
+ '& .SCUser-root': {
43
+ '&:hover': {
44
+ backgroundColor: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ };
51
+ export default Component;
@@ -0,0 +1,52 @@
1
+ import { alpha } from '@mui/system';
2
+ const Component = {
3
+ styleOverrides: {
4
+ root: ({ theme }) => ({
5
+ '& .MuiButton-startIcon': {
6
+ marginRight: theme.spacing(0.5),
7
+ '& .MuiIcon-root': {
8
+ fontSize: '0.75rem !important'
9
+ }
10
+ }
11
+ }),
12
+ dialogRoot: ({ theme }) => ({
13
+ '& .SCBaseDialog-title-root span ': {
14
+ width: '100%',
15
+ display: 'flex',
16
+ alignItems: 'center',
17
+ justifyContent: 'space-between',
18
+ '& .SCGroupInviteButton-dialog-title': {
19
+ fontWeight: theme.typography.fontWeightBold,
20
+ fontSize: theme.typography.h4.fontSize
21
+ }
22
+ },
23
+ '& .SCGroupInviteButton-input': {
24
+ backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
25
+ borderRadius: theme.shape.borderRadius,
26
+ height: theme.spacing(3.75),
27
+ padding: theme.spacing(0.5, 1),
28
+ '& .SCGroupInviteButton-icon ': {
29
+ marginLeft: theme.spacing(1)
30
+ },
31
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
32
+ border: '1px solid'
33
+ }
34
+ },
35
+ '& .SCGroupInviteButton-invited-box': {
36
+ marginTop: theme.spacing(2),
37
+ marginBottom: theme.spacing(3)
38
+ },
39
+ '& .SCGroupInviteButton-suggested': {
40
+ '& h4': {
41
+ marginBottom: theme.spacing(1)
42
+ },
43
+ '& .SCUser-root': {
44
+ '&:hover': {
45
+ backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)
46
+ }
47
+ }
48
+ }
49
+ })
50
+ }
51
+ };
52
+ export default Component;
@@ -0,0 +1,22 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ padding: any;
5
+ '& .MuiAvatarGroup-root .MuiAvatar-root': {
6
+ width: any;
7
+ height: any;
8
+ border: string;
9
+ fontSize: string;
10
+ '&.MuiAvatar-colorDefault': {
11
+ marginLeft: number;
12
+ backgroundColor: string;
13
+ color: any;
14
+ border: string;
15
+ borderRadius: number;
16
+ padding: number;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ };
22
+ export default Component;
@@ -0,0 +1,22 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ padding: theme.spacing(),
5
+ '& .MuiAvatarGroup-root .MuiAvatar-root': {
6
+ width: theme.selfcommunity.user.avatar.sizeSmall,
7
+ height: theme.selfcommunity.user.avatar.sizeSmall,
8
+ border: '1px solid #fff',
9
+ fontSize: '0.76rem',
10
+ '&.MuiAvatar-colorDefault': {
11
+ marginLeft: 0,
12
+ backgroundColor: 'transparent',
13
+ color: theme.palette.primary.main,
14
+ border: '0 none',
15
+ borderRadius: 0,
16
+ padding: 1
17
+ }
18
+ }
19
+ })
20
+ }
21
+ };
22
+ export default Component;
@@ -0,0 +1,12 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: any;
6
+ };
7
+ };
8
+ skeletonRoot: ({ theme }: any) => {};
9
+ dialogRoot: ({ theme }: any) => {};
10
+ };
11
+ };
12
+ export default Component;
@@ -0,0 +1,12 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCGroupMembersWidget-actions': {
5
+ margin: theme.spacing(0, 0, 2, 1)
6
+ }
7
+ }),
8
+ skeletonRoot: ({ theme }) => ({}),
9
+ dialogRoot: ({ theme }) => ({})
10
+ }
11
+ };
12
+ export default Component;
@@ -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;
@@ -0,0 +1,19 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {};
4
+ menuRoot: ({ theme }: any) => {
5
+ '& .SCGroupSettingsIconButton-paper': {
6
+ maxWidth: number;
7
+ padding: any;
8
+ };
9
+ };
10
+ drawerRoot: ({ theme }: any) => {
11
+ '& .MuiList-root': {
12
+ '& a': {
13
+ color: string;
14
+ };
15
+ };
16
+ };
17
+ };
18
+ };
19
+ export default Component;
@@ -0,0 +1,19 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({}),
4
+ menuRoot: ({ theme }) => ({
5
+ '& .SCGroupSettingsIconButton-paper': {
6
+ maxWidth: 400,
7
+ padding: theme.spacing(1)
8
+ }
9
+ }),
10
+ drawerRoot: ({ theme }) => ({
11
+ '& .MuiList-root': {
12
+ '& a': {
13
+ color: 'inherit'
14
+ }
15
+ }
16
+ })
17
+ }
18
+ };
19
+ export default Component;
@@ -0,0 +1,17 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ marginTop: number;
5
+ '& .SCCategoryTemplate-feed': {
6
+ marginTop: any;
7
+ };
8
+ };
9
+ skeletonRoot: ({ theme }: any) => {
10
+ [x: number]: {
11
+ marginTop: number;
12
+ };
13
+ marginTop: number;
14
+ };
15
+ };
16
+ };
17
+ export default Component;
@@ -0,0 +1,17 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ marginTop: 0,
5
+ '& .SCCategoryTemplate-feed': {
6
+ marginTop: theme.spacing(2)
7
+ }
8
+ }),
9
+ skeletonRoot: ({ theme }) => ({
10
+ marginTop: 0,
11
+ [theme.breakpoints.up('md')]: {
12
+ marginTop: 30
13
+ }
14
+ })
15
+ }
16
+ };
17
+ export default Component;
@@ -0,0 +1,41 @@
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
+ '& .SCGroups-no-results': {
16
+ display: string;
17
+ flexDirection: string;
18
+ justifyContent: string;
19
+ alignItems: string;
20
+ '& h4': {
21
+ fontWeight: any;
22
+ fontSize: any;
23
+ };
24
+ '& .MuiTypography-body1': {
25
+ fontWeight: any;
26
+ fontSize: any;
27
+ };
28
+ };
29
+ };
30
+ skeletonRoot: ({ theme }: any) => {
31
+ '& .SCGroups-groups': {
32
+ marginTop: any;
33
+ '& .SCGroup-skeleton-root': {
34
+ padding: any;
35
+ width: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ };
41
+ export default Component;
@@ -0,0 +1,41 @@
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
+ '& .SCGroups-no-results': {
16
+ display: 'flex',
17
+ flexDirection: 'column',
18
+ justifyContent: 'center',
19
+ alignItems: 'center',
20
+ '& h4': {
21
+ fontWeight: theme.typography.fontWeightBold,
22
+ fontSize: theme.typography.h4.fontSize
23
+ },
24
+ '& .MuiTypography-body1': {
25
+ fontWeight: theme.typography.fontWeightMedium,
26
+ fontSize: theme.typography.body1.fontSize
27
+ }
28
+ }
29
+ }),
30
+ skeletonRoot: ({ theme }) => ({
31
+ '& .SCGroups-groups': {
32
+ marginTop: theme.spacing(3),
33
+ '& .SCGroup-skeleton-root': {
34
+ padding: theme.spacing(1.5),
35
+ width: 'auto'
36
+ }
37
+ }
38
+ })
39
+ }
40
+ };
41
+ export default Component;
@@ -17,14 +17,14 @@ declare const Component: {
17
17
  marginRight: any;
18
18
  '& img': {
19
19
  verticalAlign: string;
20
- maxHeight: any;
20
+ maxHeight: number;
21
21
  };
22
22
  };
23
23
  '& .SCNavigationToolbar-navigation': {
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;
@@ -6,14 +6,14 @@ const Component = {
6
6
  marginRight: theme.spacing(2),
7
7
  '& img': {
8
8
  verticalAlign: 'middle',
9
- maxHeight: theme.mixins.toolbar.minHeight
9
+ maxHeight: theme.mixins.toolbar.minHeight - 10
10
10
  }
11
11
  },
12
12
  '& .SCNavigationToolbar-navigation': {
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
  },
Binary file