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

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.
@@ -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,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': {
@@ -1841,7 +1841,7 @@ declare const theme: {
1841
1841
  '&::-webkit-scrollbar': {
1842
1842
  display: string;
1843
1843
  };
1844
- '& a': {
1844
+ '& a:not(.MuiChip-clickable)': {
1845
1845
  color: string;
1846
1846
  textDecoration: string;
1847
1847
  '&::after': {
@@ -2105,6 +2105,12 @@ declare const theme: {
2105
2105
  fontSize: any;
2106
2106
  fontWeight: any;
2107
2107
  padding: any;
2108
+ /**
2109
+ * Style fragments - Imports - End
2110
+ */
2111
+ /**
2112
+ * Export default theme
2113
+ */
2108
2114
  justifyContent: string;
2109
2115
  '&:hover': {
2110
2116
  backgroundColor: string;
@@ -6432,7 +6438,7 @@ declare const theme: {
6432
6438
  width: number;
6433
6439
  height: number;
6434
6440
  '& img': {
6435
- borderRadius: number;
6441
+ borderRadius: string;
6436
6442
  };
6437
6443
  };
6438
6444
  };
@@ -6449,8 +6455,15 @@ declare const theme: {
6449
6455
  };
6450
6456
  };
6451
6457
  skeletonRoot: ({ theme }: any) => {
6458
+ gap: string;
6459
+ '& .SCBaseItem-content': {
6460
+ flex: number;
6461
+ };
6452
6462
  '& .SCEvent-skeleton-image': {
6453
6463
  position: string;
6464
+ '& .MuiSkeleton-root': {
6465
+ borderRadius: string;
6466
+ };
6454
6467
  '& .MuiIcon-root': {
6455
6468
  color: any;
6456
6469
  position: string;
@@ -6459,6 +6472,9 @@ declare const theme: {
6459
6472
  transform: string;
6460
6473
  };
6461
6474
  };
6475
+ '& .SCBaseItem-actions': {
6476
+ maxWidth: string;
6477
+ };
6462
6478
  };
6463
6479
  };
6464
6480
  };
@@ -6569,6 +6585,170 @@ declare const theme: {
6569
6585
  };
6570
6586
  };
6571
6587
  };
6588
+ SCEventHeader: {
6589
+ styleOverrides: {
6590
+ root: ({ theme }: any) => {
6591
+ '& .SCEventHeader-cover': {
6592
+ [x: number]: {
6593
+ borderRadius: any;
6594
+ };
6595
+ position: string;
6596
+ minHeight: number;
6597
+ background: string;
6598
+ height: number;
6599
+ borderRadius: number;
6600
+ };
6601
+ '& .SCEventHeader-time': {
6602
+ textTransform: string;
6603
+ fontSize: string;
6604
+ fontWeight: any;
6605
+ color: any;
6606
+ };
6607
+ '& .SCEventHeader-info': {
6608
+ marginTop: any;
6609
+ '& .SCEventHeader-name': {
6610
+ fontSize: string;
6611
+ fontWeight: any;
6612
+ };
6613
+ '& .SCEventHeader-visibility': {
6614
+ display: string;
6615
+ justifyContent: string;
6616
+ alignItems: string;
6617
+ gap: any;
6618
+ '& .SCEventHeader-visibility-item': {
6619
+ fontSize: any;
6620
+ fontWeight: any;
6621
+ color: any;
6622
+ display: string;
6623
+ justifyContent: string;
6624
+ alignItems: string;
6625
+ gap: any;
6626
+ };
6627
+ };
6628
+ '& .SCEditEvenButton-root': {
6629
+ marginLeft: string;
6630
+ marginTop: any;
6631
+ marginRight: any;
6632
+ };
6633
+ '& .SCEvenSubscribeButton-root': {
6634
+ marginTop: any;
6635
+ };
6636
+ '& .SCUser-root': {
6637
+ borderTop: string;
6638
+ borderBottom: string;
6639
+ padding: string;
6640
+ marginTop: any;
6641
+ '& .SCBaseItemButton-actions': {
6642
+ maxWidth: string;
6643
+ width: string;
6644
+ '& .SCEventHeader-multi-actions': {
6645
+ display: string;
6646
+ justifyContent: string;
6647
+ };
6648
+ '& .SCEventSubscribeButton-select-root': {
6649
+ float: string;
6650
+ };
6651
+ };
6652
+ };
6653
+ };
6654
+ '& .SCEventHeader-name': {
6655
+ fontWeight: any;
6656
+ fontSize: string;
6657
+ };
6658
+ };
6659
+ skeletonRoot: ({ theme }: any) => {
6660
+ position: string;
6661
+ '& .SCEventHeader-cover': {
6662
+ height: number;
6663
+ };
6664
+ '& .SCEventHeader-avatar': {
6665
+ top: number;
6666
+ display: string;
6667
+ position: string;
6668
+ marginLeft: any;
6669
+ "& .MuiSkeleton-root": {
6670
+ border: string;
6671
+ };
6672
+ };
6673
+ '& .SCEventHeader-info': {
6674
+ marginTop: number;
6675
+ };
6676
+ };
6677
+ };
6678
+ };
6679
+ SCEventSubscribeButton: {
6680
+ styleOverrides: {
6681
+ selectRoot: ({ theme }: any) => {
6682
+ backgroundColor: any;
6683
+ justifyContent: string;
6684
+ height: number;
6685
+ width: number;
6686
+ borderRadius: string;
6687
+ '&:hover, &:active': {
6688
+ backgroundColor: any;
6689
+ color: any;
6690
+ '& .MuiIcon-root': {
6691
+ color: any;
6692
+ };
6693
+ };
6694
+ '&.SCEventSubscribeButton-going': {
6695
+ backgroundColor: string;
6696
+ color: any;
6697
+ '& .MuiIcon-root': {
6698
+ color: any;
6699
+ };
6700
+ '&:hover': {
6701
+ backgroundColor: any;
6702
+ color: any;
6703
+ '& .MuiIcon-root': {
6704
+ color: any;
6705
+ };
6706
+ };
6707
+ };
6708
+ '&.SCEventSubscribeButton-not-going': {
6709
+ backgroundColor: any;
6710
+ color: any;
6711
+ '& .MuiIcon-root': {
6712
+ color: any;
6713
+ };
6714
+ '&:hover': {
6715
+ backgroundColor: any;
6716
+ color: any;
6717
+ '& .MuiIcon-root': {
6718
+ color: any;
6719
+ };
6720
+ };
6721
+ };
6722
+ };
6723
+ requestRoot: ({ theme }: any) => {};
6724
+ menuRoot: ({ theme }: any) => {
6725
+ '& .MuiPaper-root': {
6726
+ width: number;
6727
+ borderRadius: string;
6728
+ '& .MuiList-root .SCEventSubscribeButton-item': {
6729
+ justifyContent: string;
6730
+ paddingTop: number;
6731
+ paddingBottom: number;
6732
+ '& .Mui-checked .MuiSvgIcon-root': {
6733
+ color: any;
6734
+ };
6735
+ };
6736
+ };
6737
+ };
6738
+ drawerRoot: ({ theme }: any) => {
6739
+ '& .MuiPaper-root': {
6740
+ '& .SCEventSubscribeButton-item': {
6741
+ justifyContent: string;
6742
+ paddingTop: number;
6743
+ paddingBottom: number;
6744
+ '& .Mui-checked .MuiSvgIcon-root': {
6745
+ color: any;
6746
+ };
6747
+ };
6748
+ };
6749
+ };
6750
+ };
6751
+ };
6572
6752
  };
6573
6753
  selfcommunity: {
6574
6754
  user: {
package/lib/cjs/index.js CHANGED
@@ -145,6 +145,8 @@ const SCEventLocationWidget_1 = tslib_1.__importDefault(require("./components/SC
145
145
  const SCEvent_1 = tslib_1.__importDefault(require("./components/SCEvent"));
146
146
  const SCEvents_1 = tslib_1.__importDefault(require("./components/SCEvents"));
147
147
  const SCEventInviteButton_1 = tslib_1.__importDefault(require("./components/SCEventInviteButton"));
148
+ const SCEventSubscribeButton_1 = tslib_1.__importDefault(require("./components/SCEventSubscribeButton"));
149
+ const SCEventHeader_1 = tslib_1.__importDefault(require("./components/SCEventHeader"));
148
150
  /**
149
151
  * Style fragments - Imports - End
150
152
  */
@@ -353,7 +355,9 @@ const theme = {
353
355
  SCEventLocationWidget: SCEventLocationWidget_1.default,
354
356
  SCEvent: SCEvent_1.default,
355
357
  SCEvents: SCEvents_1.default,
356
- SCEventInviteButton: SCEventInviteButton_1.default
358
+ SCEventInviteButton: SCEventInviteButton_1.default,
359
+ SCEventHeader: SCEventHeader_1.default,
360
+ SCEventSubscribeButton: SCEventSubscribeButton_1.default
357
361
  },
358
362
  selfcommunity: {
359
363
  user: {