@selfcommunity/react-theme-default 0.1.50-events.38 → 0.1.50-events.40

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 (34) hide show
  1. package/lib/cjs/components/SCEvent.d.ts +11 -1
  2. package/lib/cjs/components/SCEvent.js +11 -1
  3. package/lib/cjs/components/SCEventHeader.d.ts +92 -0
  4. package/lib/cjs/components/SCEventHeader.js +109 -0
  5. package/lib/cjs/components/SCEventInfoDetails.d.ts +30 -0
  6. package/lib/cjs/components/SCEventInfoDetails.js +30 -0
  7. package/lib/cjs/components/SCEventInfoWidget.d.ts +31 -0
  8. package/lib/cjs/components/SCEventInfoWidget.js +31 -0
  9. package/lib/cjs/components/SCEventSubscribeButton.d.ts +74 -0
  10. package/lib/cjs/components/SCEventSubscribeButton.js +76 -0
  11. package/lib/cjs/components/SCFeedObject.d.ts +1 -1
  12. package/lib/cjs/components/SCFeedObject.js +1 -1
  13. package/lib/cjs/components/SCNavigationToolbar.d.ts +1 -1
  14. package/lib/cjs/components/SCNavigationToolbar.js +1 -1
  15. package/lib/cjs/index.d.ts +237 -4
  16. package/lib/cjs/index.js +124 -114
  17. package/lib/esm/components/SCEvent.d.ts +11 -1
  18. package/lib/esm/components/SCEvent.js +11 -1
  19. package/lib/esm/components/SCEventHeader.d.ts +92 -0
  20. package/lib/esm/components/SCEventHeader.js +107 -0
  21. package/lib/esm/components/SCEventInfoDetails.d.ts +30 -0
  22. package/lib/esm/components/SCEventInfoDetails.js +28 -0
  23. package/lib/esm/components/SCEventInfoWidget.d.ts +31 -0
  24. package/lib/esm/components/SCEventInfoWidget.js +29 -0
  25. package/lib/esm/components/SCEventSubscribeButton.d.ts +74 -0
  26. package/lib/esm/components/SCEventSubscribeButton.js +74 -0
  27. package/lib/esm/components/SCFeedObject.d.ts +1 -1
  28. package/lib/esm/components/SCFeedObject.js +1 -1
  29. package/lib/esm/components/SCNavigationToolbar.d.ts +1 -1
  30. package/lib/esm/components/SCNavigationToolbar.js +1 -1
  31. package/lib/esm/index.d.ts +237 -4
  32. package/lib/esm/index.js +124 -114
  33. package/lib/umd/react-theme-default.js +2 -2
  34. package/package.json +4 -4
@@ -7,7 +7,7 @@ declare const Component: {
7
7
  width: number;
8
8
  height: number;
9
9
  '& img': {
10
- borderRadius: number;
10
+ borderRadius: string;
11
11
  };
12
12
  };
13
13
  };
@@ -24,8 +24,15 @@ declare const Component: {
24
24
  };
25
25
  };
26
26
  skeletonRoot: ({ theme }: any) => {
27
+ gap: string;
28
+ '& .SCBaseItem-content': {
29
+ flex: number;
30
+ };
27
31
  '& .SCEvent-skeleton-image': {
28
32
  position: string;
33
+ '& .MuiSkeleton-root': {
34
+ borderRadius: string;
35
+ };
29
36
  '& .MuiIcon-root': {
30
37
  color: any;
31
38
  position: string;
@@ -34,6 +41,9 @@ declare const Component: {
34
41
  transform: string;
35
42
  };
36
43
  };
44
+ '& .SCBaseItem-actions': {
45
+ maxWidth: string;
46
+ };
37
47
  };
38
48
  };
39
49
  };
@@ -9,7 +9,7 @@ const Component = {
9
9
  width: 100,
10
10
  height: 60,
11
11
  '& img': {
12
- borderRadius: 0
12
+ borderRadius: '5px'
13
13
  }
14
14
  }
15
15
  },
@@ -26,8 +26,15 @@ const Component = {
26
26
  }
27
27
  }),
28
28
  skeletonRoot: ({ theme }) => ({
29
+ gap: '10%',
30
+ '& .SCBaseItem-content': {
31
+ flex: 0
32
+ },
29
33
  '& .SCEvent-skeleton-image': {
30
34
  position: 'relative',
35
+ '& .MuiSkeleton-root': {
36
+ borderRadius: '5px'
37
+ },
31
38
  '& .MuiIcon-root': {
32
39
  color: theme.palette.common.white,
33
40
  position: 'absolute',
@@ -35,6 +42,9 @@ const Component = {
35
42
  left: '50%',
36
43
  transform: 'translate(-50%, -50%)'
37
44
  }
45
+ },
46
+ '& .SCBaseItem-actions': {
47
+ maxWidth: 'none !important'
38
48
  }
39
49
  })
40
50
  }
@@ -0,0 +1,92 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCEventHeader-cover': {
5
+ [x: number]: {
6
+ borderRadius: any;
7
+ };
8
+ position: string;
9
+ minHeight: number;
10
+ background: string;
11
+ height: number;
12
+ borderRadius: number;
13
+ };
14
+ '& .SCEventHeader-time': {
15
+ textTransform: string;
16
+ fontSize: string;
17
+ fontWeight: any;
18
+ color: any;
19
+ };
20
+ '& .SCEventHeader-info': {
21
+ marginTop: any;
22
+ '& .SCEventHeader-name': {
23
+ fontSize: string;
24
+ fontWeight: any;
25
+ };
26
+ '& .SCEventHeader-visibility': {
27
+ display: string;
28
+ justifyContent: string;
29
+ alignItems: string;
30
+ gap: any;
31
+ '& .SCEventHeader-visibility-item': {
32
+ fontSize: any;
33
+ fontWeight: any;
34
+ color: any;
35
+ display: string;
36
+ justifyContent: string;
37
+ alignItems: string;
38
+ gap: any;
39
+ };
40
+ };
41
+ '& .SCEditEvenButton-root': {
42
+ marginLeft: string;
43
+ marginTop: any;
44
+ marginRight: any;
45
+ };
46
+ '& .SCEvenSubscribeButton-root': {
47
+ marginTop: any;
48
+ };
49
+ '& .SCUser-root': {
50
+ borderTop: string;
51
+ borderBottom: string;
52
+ padding: string;
53
+ marginTop: any;
54
+ '& .SCBaseItemButton-actions': {
55
+ maxWidth: string;
56
+ width: string;
57
+ '& .SCEventHeader-multi-actions': {
58
+ display: string;
59
+ justifyContent: string;
60
+ };
61
+ '& .SCEventSubscribeButton-select-root': {
62
+ float: string;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ '& .SCEventHeader-name': {
68
+ fontWeight: any;
69
+ fontSize: string;
70
+ };
71
+ };
72
+ skeletonRoot: ({ theme }: any) => {
73
+ position: string;
74
+ '& .SCEventHeader-cover': {
75
+ height: number;
76
+ };
77
+ '& .SCEventHeader-avatar': {
78
+ top: number;
79
+ display: string;
80
+ position: string;
81
+ marginLeft: any;
82
+ "& .MuiSkeleton-root": {
83
+ border: string;
84
+ };
85
+ };
86
+ '& .SCEventHeader-info': {
87
+ marginTop: number;
88
+ };
89
+ };
90
+ };
91
+ };
92
+ export default Component;
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const system_1 = require("@mui/system");
4
+ const Component = {
5
+ styleOverrides: {
6
+ root: ({ theme }) => ({
7
+ '& .SCEventHeader-cover': {
8
+ position: 'relative',
9
+ minHeight: 150,
10
+ background: 'linear-gradient(180deg, rgba(177,177,177,1) 0%, rgba(255,255,255,1) 90%)',
11
+ height: 230,
12
+ borderRadius: 0,
13
+ [theme.breakpoints.up('md')]: {
14
+ borderRadius: theme.spacing(0, 0, 2.5, 2.5)
15
+ }
16
+ },
17
+ '& .SCEventHeader-time': {
18
+ textTransform: 'uppercase',
19
+ fontSize: '1.143rem',
20
+ fontWeight: theme.typography.fontWeightLight,
21
+ color: theme.palette.text.secondary
22
+ },
23
+ '& .SCEventHeader-info': {
24
+ marginTop: theme.spacing(6),
25
+ '& .SCEventHeader-name': {
26
+ fontSize: '1.857rem',
27
+ fontWeight: theme.typography.fontWeightBold
28
+ },
29
+ '& .SCEventHeader-visibility': {
30
+ display: 'flex',
31
+ justifyContent: 'flex-start',
32
+ alignItems: 'center',
33
+ gap: theme.spacing(0.5),
34
+ '& .SCEventHeader-visibility-item': {
35
+ fontSize: theme.typography.fontSize,
36
+ fontWeight: theme.typography.fontWeightLight,
37
+ color: theme.palette.text.secondary,
38
+ display: 'flex',
39
+ justifyContent: 'center',
40
+ alignItems: 'center',
41
+ gap: theme.spacing(0.5)
42
+ }
43
+ },
44
+ '& .SCEditEvenButton-root': {
45
+ marginLeft: 'auto',
46
+ marginTop: theme.spacing(-4.25),
47
+ marginRight: theme.spacing(1)
48
+ },
49
+ '& .SCEvenSubscribeButton-root': {
50
+ marginTop: theme.spacing(1)
51
+ },
52
+ '& .SCUser-root': {
53
+ borderTop: `1px solid ${(0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
54
+ borderBottom: `1px solid ${(0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
55
+ padding: `${theme.spacing(0.5)} !important`,
56
+ marginTop: theme.spacing(1),
57
+ '& .SCBaseItemButton-actions': {
58
+ maxWidth: 'none',
59
+ width: '60%',
60
+ '& .SCEventHeader-multi-actions': {
61
+ display: 'flex',
62
+ justifyContent: 'space-between'
63
+ },
64
+ '& .SCEventSubscribeButton-select-root': {
65
+ float: 'right'
66
+ }
67
+ }
68
+ }
69
+ },
70
+ // '& .SCEventHeader-avatar': {
71
+ // top: 230,
72
+ // display: 'block',
73
+ // position: 'absolute',
74
+ // transform: 'translate(-50%, -50%)',
75
+ // left: '50%',
76
+ // '& .MuiAvatar-root': {
77
+ // height: theme.selfcommunity.group.avatar.sizeLarge,
78
+ // width: theme.selfcommunity.group.avatar.sizeLarge,
79
+ // borderRadius: '50%',
80
+ // border: `#FFF solid ${theme.spacing(0.5)}`,
81
+ // objectFit: 'cover'
82
+ // }
83
+ // },
84
+ '& .SCEventHeader-name': {
85
+ fontWeight: theme.typography.fontWeightBold,
86
+ fontSize: '1.429rem'
87
+ }
88
+ }),
89
+ skeletonRoot: ({ theme }) => ({
90
+ position: 'relative',
91
+ '& .SCEventHeader-cover': {
92
+ height: 190
93
+ },
94
+ '& .SCEventHeader-avatar': {
95
+ top: 140,
96
+ display: 'block',
97
+ position: 'absolute',
98
+ marginLeft: theme.spacing(2),
99
+ [`& .MuiSkeleton-root`]: {
100
+ border: '#FFF solid 5px'
101
+ }
102
+ },
103
+ '& .SCEventHeader-info': {
104
+ marginTop: 60
105
+ }
106
+ })
107
+ }
108
+ };
109
+ exports.default = Component;
@@ -0,0 +1,30 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ gap: any;
7
+ '& .SCEventInfoDetails-icon-text-wrapper': {
8
+ flexDirection: string;
9
+ alignItems: string;
10
+ gap: any;
11
+ '& .SCEventInfoDetails-link': {
12
+ textDecoration: string;
13
+ '& .SCEventInfoDetails-url': {
14
+ overflow: string;
15
+ textOverflow: string;
16
+ display: string;
17
+ '-webkit-line-clamp': string;
18
+ '-webkit-box-orient': string;
19
+ };
20
+ };
21
+ };
22
+ '& .SCEventInfoDetails-creation-wrapper': {
23
+ flexDirection: string;
24
+ alignItems: string;
25
+ gap: any;
26
+ };
27
+ };
28
+ };
29
+ };
30
+ export default Component;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ gap: theme.spacing(2),
7
+ '& .SCEventInfoDetails-icon-text-wrapper': {
8
+ flexDirection: 'row',
9
+ alignItems: 'center',
10
+ gap: theme.spacing(1),
11
+ '& .SCEventInfoDetails-link': {
12
+ textDecoration: 'none',
13
+ '& .SCEventInfoDetails-url': {
14
+ overflow: 'hidden',
15
+ textOverflow: 'ellipsis',
16
+ display: '-webkit-box',
17
+ '-webkit-line-clamp': '1',
18
+ '-webkit-box-orient': 'vertical'
19
+ }
20
+ }
21
+ },
22
+ '& .SCEventInfoDetails-creation-wrapper': {
23
+ flexDirection: 'row',
24
+ alignItems: 'center',
25
+ gap: theme.spacing(1)
26
+ }
27
+ })
28
+ }
29
+ };
30
+ exports.default = Component;
@@ -0,0 +1,31 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ '& .SCEventInfoWidget-content': {
7
+ position: string;
8
+ padding: string;
9
+ '& .SCEventInfoWidget-title-wrapper': {
10
+ flexDirection: string;
11
+ alignItems: string;
12
+ gap: string;
13
+ marginBottom: any;
14
+ };
15
+ '& .SCEventInfoWidget-text-wrapper': {
16
+ marginBottom: any;
17
+ '& .SCEventInfoWidget-show-more': {
18
+ fontSize: any;
19
+ fontWeight: any;
20
+ padding: any;
21
+ justifyContent: string;
22
+ '&:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ };
26
+ };
27
+ };
28
+ };
29
+ };
30
+ };
31
+ export default Component;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ '& .SCEventInfoWidget-content': {
7
+ position: 'relative',
8
+ padding: `${theme.spacing(2)} ${theme.spacing(2)} 13px !important`,
9
+ '& .SCEventInfoWidget-title-wrapper': {
10
+ flexDirection: 'row',
11
+ alignItems: 'center',
12
+ gap: '9px',
13
+ marginBottom: theme.spacing(1)
14
+ },
15
+ '& .SCEventInfoWidget-text-wrapper': {
16
+ marginBottom: theme.spacing(3),
17
+ '& .SCEventInfoWidget-show-more': {
18
+ fontSize: theme.typography.fontSize,
19
+ fontWeight: theme.typography.fontWeightBold,
20
+ padding: theme.spacing(0.25),
21
+ justifyContent: 'start',
22
+ '&:hover': {
23
+ backgroundColor: 'transparent'
24
+ }
25
+ }
26
+ }
27
+ }
28
+ })
29
+ }
30
+ };
31
+ exports.default = Component;
@@ -0,0 +1,74 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ selectRoot: ({ theme }: any) => {
4
+ backgroundColor: any;
5
+ justifyContent: string;
6
+ height: number;
7
+ width: number;
8
+ borderRadius: string;
9
+ '&:hover, &:active': {
10
+ backgroundColor: any;
11
+ color: any;
12
+ '& .MuiIcon-root': {
13
+ color: any;
14
+ };
15
+ };
16
+ '&.SCEventSubscribeButton-going': {
17
+ backgroundColor: string;
18
+ color: any;
19
+ '& .MuiIcon-root': {
20
+ color: any;
21
+ };
22
+ '&:hover': {
23
+ backgroundColor: any;
24
+ color: any;
25
+ '& .MuiIcon-root': {
26
+ color: any;
27
+ };
28
+ };
29
+ };
30
+ '&.SCEventSubscribeButton-not-going': {
31
+ backgroundColor: any;
32
+ color: any;
33
+ '& .MuiIcon-root': {
34
+ color: any;
35
+ };
36
+ '&:hover': {
37
+ backgroundColor: any;
38
+ color: any;
39
+ '& .MuiIcon-root': {
40
+ color: any;
41
+ };
42
+ };
43
+ };
44
+ };
45
+ requestRoot: ({ theme }: any) => {};
46
+ menuRoot: ({ theme }: any) => {
47
+ '& .MuiPaper-root': {
48
+ width: number;
49
+ borderRadius: string;
50
+ '& .MuiList-root .SCEventSubscribeButton-item': {
51
+ justifyContent: string;
52
+ paddingTop: number;
53
+ paddingBottom: number;
54
+ '& .Mui-checked .MuiSvgIcon-root': {
55
+ color: any;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ drawerRoot: ({ theme }: any) => {
61
+ '& .MuiPaper-root': {
62
+ '& .SCEventSubscribeButton-item': {
63
+ justifyContent: string;
64
+ paddingTop: number;
65
+ paddingBottom: number;
66
+ '& .Mui-checked .MuiSvgIcon-root': {
67
+ color: any;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ export default Component;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ selectRoot: ({ theme }) => ({
6
+ backgroundColor: theme.palette.grey['A200'],
7
+ justifyContent: 'space-between',
8
+ height: 33,
9
+ width: 195,
10
+ borderRadius: '5px',
11
+ '&:hover, &:active': {
12
+ backgroundColor: theme.palette.common.black,
13
+ color: theme.palette.common.white,
14
+ '& .MuiIcon-root': {
15
+ color: theme.palette.common.white
16
+ }
17
+ },
18
+ '&.SCEventSubscribeButton-going': {
19
+ backgroundColor: `${theme.palette.success.dark} !important`,
20
+ color: theme.palette.common.white,
21
+ '& .MuiIcon-root': {
22
+ color: theme.palette.common.white
23
+ },
24
+ '&:hover': {
25
+ backgroundColor: theme.palette.success.dark,
26
+ color: theme.palette.common.white,
27
+ '& .MuiIcon-root': {
28
+ color: theme.palette.common.white
29
+ }
30
+ }
31
+ },
32
+ '&.SCEventSubscribeButton-not-going': {
33
+ backgroundColor: theme.palette.error.dark,
34
+ color: theme.palette.common.white,
35
+ '& .MuiIcon-root': {
36
+ color: theme.palette.common.white
37
+ },
38
+ '&:hover': {
39
+ backgroundColor: theme.palette.error.dark,
40
+ color: theme.palette.common.white,
41
+ '& .MuiIcon-root': {
42
+ color: theme.palette.common.white
43
+ }
44
+ }
45
+ }
46
+ }),
47
+ requestRoot: ({ theme }) => ({}),
48
+ menuRoot: ({ theme }) => ({
49
+ '& .MuiPaper-root': {
50
+ width: 195,
51
+ borderRadius: '5px',
52
+ '& .MuiList-root .SCEventSubscribeButton-item': {
53
+ justifyContent: 'space-between',
54
+ paddingTop: 0,
55
+ paddingBottom: 0,
56
+ '& .Mui-checked .MuiSvgIcon-root': {
57
+ color: theme.palette.success.main
58
+ }
59
+ }
60
+ }
61
+ }),
62
+ drawerRoot: ({ theme }) => ({
63
+ '& .MuiPaper-root': {
64
+ '& .SCEventSubscribeButton-item': {
65
+ justifyContent: 'space-between',
66
+ paddingTop: 0,
67
+ paddingBottom: 0,
68
+ '& .Mui-checked .MuiSvgIcon-root': {
69
+ color: theme.palette.success.main
70
+ }
71
+ }
72
+ }
73
+ })
74
+ }
75
+ };
76
+ exports.default = Component;
@@ -41,7 +41,7 @@ declare const Component: {
41
41
  '&::-webkit-scrollbar': {
42
42
  display: string;
43
43
  };
44
- '& a': {
44
+ '& a:not(.MuiChip-clickable)': {
45
45
  color: string;
46
46
  textDecoration: string;
47
47
  '&::after': {
@@ -44,7 +44,7 @@ const Component = {
44
44
  '&::-webkit-scrollbar': {
45
45
  display: 'none'
46
46
  },
47
- '& a': {
47
+ '& a:not(.MuiChip-clickable)': {
48
48
  color: 'inherit',
49
49
  textDecoration: 'none',
50
50
  '&::after': {
@@ -21,7 +21,7 @@ declare const Component: {
21
21
  flexGrow: number;
22
22
  textAlign: string;
23
23
  alignSelf: string;
24
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
24
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
25
25
  paddingTop: number;
26
26
  paddingLeft: any;
27
27
  paddingRight: any;
@@ -15,7 +15,7 @@ const Component = {
15
15
  flexGrow: 1,
16
16
  textAlign: 'center',
17
17
  alignSelf: 'end',
18
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
18
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
19
19
  paddingTop: 12,
20
20
  paddingLeft: theme.spacing(1),
21
21
  paddingRight: theme.spacing(1),