@selfcommunity/react-theme-default 0.1.55 → 0.2.0-alpha.0

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 (129) hide show
  1. package/lib/cjs/components/MuiAutocomplete.js +3 -4
  2. package/lib/cjs/components/MuiSelect.js +2 -3
  3. package/lib/cjs/components/SCCalendar.d.ts +24 -0
  4. package/lib/cjs/components/SCCalendar.js +24 -0
  5. package/lib/cjs/components/SCCreateEventButton.d.ts +12 -0
  6. package/lib/cjs/components/SCCreateEventButton.js +14 -0
  7. package/lib/cjs/components/SCCreateEventWidget.d.ts +56 -0
  8. package/lib/cjs/components/SCCreateEventWidget.js +54 -0
  9. package/lib/cjs/components/SCEvent.d.ts +217 -0
  10. package/lib/cjs/components/SCEvent.js +219 -0
  11. package/lib/cjs/components/SCEventActionsMenu.d.ts +26 -0
  12. package/lib/cjs/components/SCEventActionsMenu.js +28 -0
  13. package/lib/cjs/components/SCEventForm.d.ts +103 -0
  14. package/lib/cjs/components/SCEventForm.js +106 -0
  15. package/lib/cjs/components/SCEventHeader.d.ts +147 -0
  16. package/lib/cjs/components/SCEventHeader.js +150 -0
  17. package/lib/cjs/components/SCEventInfoDetails.d.ts +43 -0
  18. package/lib/cjs/components/SCEventInfoDetails.js +43 -0
  19. package/lib/cjs/components/SCEventInfoWidget.d.ts +37 -0
  20. package/lib/cjs/components/SCEventInfoWidget.js +35 -0
  21. package/lib/cjs/components/SCEventInviteButton.d.ts +54 -0
  22. package/lib/cjs/components/SCEventInviteButton.js +57 -0
  23. package/lib/cjs/components/SCEventLocationWidget.d.ts +22 -0
  24. package/lib/cjs/components/SCEventLocationWidget.js +25 -0
  25. package/lib/cjs/components/SCEventMembersWidget.d.ts +68 -0
  26. package/lib/cjs/components/SCEventMembersWidget.js +64 -0
  27. package/lib/cjs/components/SCEventParticipantsButton.d.ts +33 -0
  28. package/lib/cjs/components/SCEventParticipantsButton.js +31 -0
  29. package/lib/cjs/components/SCEventSubscribeButton.d.ts +93 -0
  30. package/lib/cjs/components/SCEventSubscribeButton.js +87 -0
  31. package/lib/cjs/components/SCEvents.d.ts +86 -0
  32. package/lib/cjs/components/SCEvents.js +88 -0
  33. package/lib/cjs/components/SCFeedObject.d.ts +5 -5
  34. package/lib/cjs/components/SCFeedObject.js +5 -5
  35. package/lib/cjs/components/SCFeedUpdatesWidget.js +1 -1
  36. package/lib/cjs/components/SCMediaShare.d.ts +6 -1
  37. package/lib/cjs/components/SCMediaShare.js +6 -1
  38. package/lib/cjs/components/SCMyEventsWidget.d.ts +35 -0
  39. package/lib/cjs/components/SCMyEventsWidget.js +33 -0
  40. package/lib/cjs/components/SCNavigationToolbar.d.ts +1 -1
  41. package/lib/cjs/components/SCNavigationToolbar.js +1 -1
  42. package/lib/cjs/components/SCNotification.d.ts +27 -0
  43. package/lib/cjs/components/SCNotification.js +27 -0
  44. package/lib/cjs/components/SCOnBoardingWidget.d.ts +451 -0
  45. package/lib/cjs/components/SCOnBoardingWidget.js +449 -0
  46. package/lib/cjs/components/SCPlatformWidget.d.ts +22 -1
  47. package/lib/cjs/components/SCPlatformWidget.js +22 -1
  48. package/lib/cjs/components/SCProgressBar.d.ts +23 -0
  49. package/lib/cjs/components/SCProgressBar.js +25 -0
  50. package/lib/cjs/components/SCRelatedEventsWidget.d.ts +101 -0
  51. package/lib/cjs/components/SCRelatedEventsWidget.js +97 -0
  52. package/lib/cjs/components/SCSuggestedEventsWidget.d.ts +97 -0
  53. package/lib/cjs/components/SCSuggestedEventsWidget.js +95 -0
  54. package/lib/cjs/fonts/community/icons.eot +0 -0
  55. package/lib/cjs/fonts/community/icons.svg +17 -1
  56. package/lib/cjs/fonts/community/icons.ttf +0 -0
  57. package/lib/cjs/fonts/community/icons.woff +0 -0
  58. package/lib/cjs/fonts/community/icons.woff2 +0 -0
  59. package/lib/cjs/fonts/community-icons.css +30 -6
  60. package/lib/cjs/index.d.ts +3706 -1923
  61. package/lib/cjs/index.js +209 -167
  62. package/lib/esm/components/MuiAutocomplete.js +3 -3
  63. package/lib/esm/components/MuiSelect.js +2 -2
  64. package/lib/esm/components/SCCalendar.d.ts +24 -0
  65. package/lib/esm/components/SCCalendar.js +22 -0
  66. package/lib/esm/components/SCCreateEventButton.d.ts +12 -0
  67. package/lib/esm/components/SCCreateEventButton.js +12 -0
  68. package/lib/esm/components/SCCreateEventWidget.d.ts +56 -0
  69. package/lib/esm/components/SCCreateEventWidget.js +52 -0
  70. package/lib/esm/components/SCEvent.d.ts +217 -0
  71. package/lib/esm/components/SCEvent.js +217 -0
  72. package/lib/esm/components/SCEventActionsMenu.d.ts +26 -0
  73. package/lib/esm/components/SCEventActionsMenu.js +26 -0
  74. package/lib/esm/components/SCEventForm.d.ts +103 -0
  75. package/lib/esm/components/SCEventForm.js +104 -0
  76. package/lib/esm/components/SCEventHeader.d.ts +147 -0
  77. package/lib/esm/components/SCEventHeader.js +148 -0
  78. package/lib/esm/components/SCEventInfoDetails.d.ts +43 -0
  79. package/lib/esm/components/SCEventInfoDetails.js +41 -0
  80. package/lib/esm/components/SCEventInfoWidget.d.ts +37 -0
  81. package/lib/esm/components/SCEventInfoWidget.js +33 -0
  82. package/lib/esm/components/SCEventInviteButton.d.ts +54 -0
  83. package/lib/esm/components/SCEventInviteButton.js +55 -0
  84. package/lib/esm/components/SCEventLocationWidget.d.ts +22 -0
  85. package/lib/esm/components/SCEventLocationWidget.js +23 -0
  86. package/lib/esm/components/SCEventMembersWidget.d.ts +68 -0
  87. package/lib/esm/components/SCEventMembersWidget.js +62 -0
  88. package/lib/esm/components/SCEventParticipantsButton.d.ts +33 -0
  89. package/lib/esm/components/SCEventParticipantsButton.js +29 -0
  90. package/lib/esm/components/SCEventSubscribeButton.d.ts +93 -0
  91. package/lib/esm/components/SCEventSubscribeButton.js +85 -0
  92. package/lib/esm/components/SCEvents.d.ts +86 -0
  93. package/lib/esm/components/SCEvents.js +86 -0
  94. package/lib/esm/components/SCFeedObject.d.ts +5 -5
  95. package/lib/esm/components/SCFeedObject.js +5 -5
  96. package/lib/esm/components/SCFeedUpdatesWidget.js +1 -1
  97. package/lib/esm/components/SCMediaShare.d.ts +6 -1
  98. package/lib/esm/components/SCMediaShare.js +6 -1
  99. package/lib/esm/components/SCMyEventsWidget.d.ts +35 -0
  100. package/lib/esm/components/SCMyEventsWidget.js +31 -0
  101. package/lib/esm/components/SCNavigationToolbar.d.ts +1 -1
  102. package/lib/esm/components/SCNavigationToolbar.js +1 -1
  103. package/lib/esm/components/SCNotification.d.ts +27 -0
  104. package/lib/esm/components/SCNotification.js +27 -0
  105. package/lib/esm/components/SCOnBoardingWidget.d.ts +451 -0
  106. package/lib/esm/components/SCOnBoardingWidget.js +447 -0
  107. package/lib/esm/components/SCPlatformWidget.d.ts +22 -1
  108. package/lib/esm/components/SCPlatformWidget.js +22 -1
  109. package/lib/esm/components/SCProgressBar.d.ts +23 -0
  110. package/lib/esm/components/SCProgressBar.js +23 -0
  111. package/lib/esm/components/SCRelatedEventsWidget.d.ts +101 -0
  112. package/lib/esm/components/SCRelatedEventsWidget.js +95 -0
  113. package/lib/esm/components/SCSuggestedEventsWidget.d.ts +97 -0
  114. package/lib/esm/components/SCSuggestedEventsWidget.js +93 -0
  115. package/lib/esm/fonts/community/icons.eot +0 -0
  116. package/lib/esm/fonts/community/icons.svg +17 -1
  117. package/lib/esm/fonts/community/icons.ttf +0 -0
  118. package/lib/esm/fonts/community/icons.woff +0 -0
  119. package/lib/esm/fonts/community/icons.woff2 +0 -0
  120. package/lib/esm/fonts/community-icons.css +30 -6
  121. package/lib/esm/index.d.ts +3706 -1923
  122. package/lib/esm/index.js +209 -167
  123. package/lib/umd/community/icons.eot +0 -0
  124. package/lib/umd/community/icons.svg +17 -1
  125. package/lib/umd/community/icons.ttf +0 -0
  126. package/lib/umd/community/icons.woff +0 -0
  127. package/lib/umd/community/icons.woff2 +0 -0
  128. package/lib/umd/react-theme-default.js +3 -3
  129. package/package.json +4 -4
@@ -0,0 +1,86 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCEvents-filters': {
5
+ alignItems: 'center',
6
+ marginTop: theme.spacing(),
7
+ marginBottom: theme.spacing(2),
8
+ '& .SCEvents-search': {
9
+ '& .MuiInputBase-root': {
10
+ paddingRight: 0,
11
+ '& .MuiButtonBase-root': {
12
+ borderRadius: '0 5px 5px 0',
13
+ height: '37px',
14
+ '& .MuiButton-endIcon': {
15
+ margin: 0
16
+ }
17
+ }
18
+ }
19
+ }
20
+ },
21
+ '& .SCEvents-events': {
22
+ marginTop: theme.spacing(2),
23
+ '& .SCEvents-item': {
24
+ paddingTop: theme.spacing(2)
25
+ },
26
+ '& .SCEvents-item-skeleton': {
27
+ paddingTop: theme.spacing(2)
28
+ },
29
+ '& .SCBaseItem-root': {
30
+ display: 'flex',
31
+ justifyContent: 'space-between'
32
+ },
33
+ '& .SCEvent-skeleton-preview-name': {
34
+ marginTop: 6,
35
+ marginBottom: 6
36
+ },
37
+ '& .SCEvent-skeleton-snippet .SCBaseItem-content': {
38
+ maxWidth: '70%'
39
+ }
40
+ },
41
+ '& .SCEvents-no-results': {
42
+ marginTop: theme.spacing(3),
43
+ display: 'flex',
44
+ flexDirection: 'column',
45
+ alignItems: 'flex-start',
46
+ '& .SCEvent-skeleton-root': {
47
+ marginBottom: theme.spacing(2),
48
+ minWidth: '50%'
49
+ },
50
+ '& .SCEvent-skeleton-snippet .SCBaseItem-content': {
51
+ maxWidth: '70%'
52
+ },
53
+ '& .MuiTypography-body1': {
54
+ fontWeight: theme.typography.fontWeightMedium,
55
+ fontSize: '16px',
56
+ whiteSpace: 'pre-line'
57
+ }
58
+ },
59
+ '& .SCEvents-show-more': {
60
+ paddingLeft: theme.spacing(1),
61
+ '&.Mui-selected, &:hover': {
62
+ backgroundColor: 'transparent'
63
+ }
64
+ }
65
+ }),
66
+ skeletonRoot: ({ theme }) => ({
67
+ '& .SCEvents-skeleton-events': {
68
+ justifyContent: 'center',
69
+ marginTop: theme.spacing(2),
70
+ '& .SCEvents-skeleton-item': {
71
+ paddingTop: theme.spacing(2)
72
+ }
73
+ }
74
+ }),
75
+ eventsChipRoot: ({ theme, showFollowed, showPastEvents }) => ({
76
+ height: theme.spacing(4.75),
77
+ borderRadius: theme.spacing(0.5),
78
+ color: showFollowed || showPastEvents ? theme.palette.common.white : theme.palette.text.primary,
79
+ '& .MuiIcon-root': {
80
+ fontSize: '1rem',
81
+ color: theme.palette.common.white
82
+ }
83
+ })
84
+ }
85
+ };
86
+ export 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': {
@@ -59,11 +59,11 @@ declare const Component: {
59
59
  fontWeight: any;
60
60
  };
61
61
  };
62
- '& .SCFeedObject-group': {
62
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
63
63
  marginRight: string;
64
64
  };
65
65
  };
66
- '& .SCFeedObject-group': {
66
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
67
67
  justifyContent: string;
68
68
  padding: any;
69
69
  '& a': {
@@ -139,7 +139,7 @@ declare const Component: {
139
139
  '& .SCFeedObject-category': {
140
140
  borderBottom: string;
141
141
  margin: any;
142
- '& .SCFeedObject-group': {
142
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
143
143
  borderBottom: string;
144
144
  margin: any;
145
145
  '& .MuiChip-icon': {
@@ -149,7 +149,7 @@ declare const Component: {
149
149
  };
150
150
  };
151
151
  };
152
- '& .SCFeedObject-group': {
152
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
153
153
  borderBottom: string;
154
154
  margin: any;
155
155
  };
@@ -42,7 +42,7 @@ const Component = {
42
42
  '&::-webkit-scrollbar': {
43
43
  display: 'none'
44
44
  },
45
- '& a': {
45
+ '& a:not(.MuiChip-clickable)': {
46
46
  color: 'inherit',
47
47
  textDecoration: 'none',
48
48
  '&::after': {
@@ -60,11 +60,11 @@ const Component = {
60
60
  fontWeight: theme.typography.fontWeightBold
61
61
  }
62
62
  },
63
- '& .SCFeedObject-group': {
63
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
64
64
  marginRight: `${theme.spacing(1)} !important`
65
65
  }
66
66
  },
67
- '& .SCFeedObject-group': {
67
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
68
68
  justifyContent: 'flex-start',
69
69
  padding: theme.spacing(0.5),
70
70
  '& a': {
@@ -140,7 +140,7 @@ const Component = {
140
140
  '& .SCFeedObject-category': {
141
141
  borderBottom: '1px solid rgba(221, 221, 221, 1)',
142
142
  margin: theme.spacing(0, 2),
143
- '& .SCFeedObject-group': {
143
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
144
144
  borderBottom: 'none',
145
145
  margin: theme.spacing(0),
146
146
  '& .MuiChip-icon': {
@@ -150,7 +150,7 @@ const Component = {
150
150
  }
151
151
  }
152
152
  },
153
- '& .SCFeedObject-group': {
153
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
154
154
  borderBottom: '1px solid rgba(221, 221, 221, 1)',
155
155
  margin: theme.spacing(1, 2, 0, 2)
156
156
  },
@@ -8,7 +8,7 @@ const Component = {
8
8
  },
9
9
  '& .MuiCardContent-root': {
10
10
  ' > .MuiButton-sizeMedium': {
11
- marginLeft: -10,
11
+ marginLeft: -3,
12
12
  marginTop: -1
13
13
  }
14
14
  },
@@ -1,6 +1,11 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
- displayRoot: ({ theme }: any) => {};
3
+ displayRoot: ({ theme }: any) => {
4
+ '& .SCMediaShare-share-preview': {
5
+ paddingLeft: any;
6
+ paddingRight: any;
7
+ };
8
+ };
4
9
  };
5
10
  };
6
11
  export default Component;
@@ -1,6 +1,11 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
- displayRoot: ({ theme }) => ({})
3
+ displayRoot: ({ theme }) => ({
4
+ '& .SCMediaShare-share-preview': {
5
+ paddingLeft: theme.spacing(),
6
+ paddingRight: theme.spacing()
7
+ }
8
+ })
4
9
  }
5
10
  };
6
11
  export default Component;
@@ -0,0 +1,35 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ '& .SCMyEventsWidget-title-wrapper': {
7
+ padding: string;
8
+ };
9
+ '& .SCMyEventsWidget-actions': {
10
+ padding: string;
11
+ justifyContent: string;
12
+ gap: any;
13
+ '& .SCMyEventsWidget-arrows': {
14
+ width: string;
15
+ height: string;
16
+ };
17
+ '& .SCMyEventsWidget-action-button': {
18
+ color: any;
19
+ textDecoration: string;
20
+ };
21
+ };
22
+ };
23
+ skeletonRoot: ({ theme }: {
24
+ theme: any;
25
+ }) => {
26
+ '& .SCMyEventsWidget-actions': {
27
+ height: string;
28
+ padding: string;
29
+ justifyContent: string;
30
+ gap: any;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ export default Component;
@@ -0,0 +1,31 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCMyEventsWidget-title-wrapper': {
5
+ padding: `12px ${theme.spacing(2)}`
6
+ },
7
+ '& .SCMyEventsWidget-actions': {
8
+ padding: `0 ${theme.spacing(3)} 18px`,
9
+ justifyContent: 'center',
10
+ gap: theme.spacing(3),
11
+ '& .SCMyEventsWidget-arrows': {
12
+ width: '24px',
13
+ height: '24px'
14
+ },
15
+ '& .SCMyEventsWidget-action-button': {
16
+ color: theme.palette.primary.main,
17
+ textDecoration: 'none'
18
+ }
19
+ }
20
+ }),
21
+ skeletonRoot: ({ theme }) => ({
22
+ '& .SCMyEventsWidget-actions': {
23
+ height: '40px',
24
+ padding: `0 ${theme.spacing(3)} 18px`,
25
+ justifyContent: 'center',
26
+ gap: theme.spacing(3)
27
+ }
28
+ })
29
+ }
30
+ };
31
+ export default Component;
@@ -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;
@@ -13,7 +13,7 @@ const Component = {
13
13
  flexGrow: 1,
14
14
  textAlign: 'center',
15
15
  alignSelf: 'end',
16
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups': {
16
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
17
17
  paddingTop: 12,
18
18
  paddingLeft: theme.spacing(1),
19
19
  paddingRight: theme.spacing(1),
@@ -278,6 +278,33 @@ declare const Component: {
278
278
  maxWidth: string;
279
279
  };
280
280
  };
281
+ eventRoot: ({ theme }: any) => {
282
+ '& .SCNotification-username, & a': {
283
+ fontWeight: any;
284
+ };
285
+ '& .SCNotificationItem-primary': {
286
+ '& .MuiIcon-root': {
287
+ float: string;
288
+ fontSize: string;
289
+ marginLeft: any;
290
+ };
291
+ '& .SCEvent-root': {
292
+ width: string;
293
+ '& .SCEvent-snippet-root': {
294
+ paddingLeft: string;
295
+ };
296
+ };
297
+ };
298
+ '& .SCNotificationItem-secondary': {
299
+ textTransform: string;
300
+ };
301
+ '& .SCNotification-snippet-time': {
302
+ paddingLeft: any;
303
+ };
304
+ '& .SCEvent-snippet-root': {
305
+ backgroundColor: string;
306
+ };
307
+ };
281
308
  groupRoot: ({ theme }: any) => {};
282
309
  undeletedForRoot: ({ theme }: any) => {
283
310
  '& .SCNotification-undeleted-icon': {
@@ -280,6 +280,33 @@ const Component = {
280
280
  maxWidth: '40%'
281
281
  }
282
282
  }),
283
+ eventRoot: ({ theme }) => ({
284
+ '& .SCNotification-username, & a': {
285
+ fontWeight: theme.typography.fontWeightBold
286
+ },
287
+ '& .SCNotificationItem-primary': {
288
+ '& .MuiIcon-root': {
289
+ float: 'right',
290
+ fontSize: '20px',
291
+ marginLeft: theme.spacing(0.5)
292
+ },
293
+ '& .SCEvent-root': {
294
+ width: '100%',
295
+ '& .SCEvent-snippet-root': {
296
+ paddingLeft: '0 !important'
297
+ }
298
+ }
299
+ },
300
+ '& .SCNotificationItem-secondary': {
301
+ textTransform: 'capitalize'
302
+ },
303
+ '& .SCNotification-snippet-time': {
304
+ paddingLeft: theme.spacing(5)
305
+ },
306
+ '& .SCEvent-snippet-root': {
307
+ backgroundColor: 'transparent !important'
308
+ }
309
+ }),
283
310
  groupRoot: ({ theme }) => ({}),
284
311
  undeletedForRoot: ({ theme }) => ({
285
312
  '& .SCNotification-undeleted-icon': {