@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,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ '& .SCEvents-filters': {
7
+ alignItems: 'center',
8
+ marginTop: theme.spacing(),
9
+ marginBottom: theme.spacing(2),
10
+ '& .SCEvents-search': {
11
+ '& .MuiInputBase-root': {
12
+ paddingRight: 0,
13
+ '& .MuiButtonBase-root': {
14
+ borderRadius: '0 5px 5px 0',
15
+ height: '37px',
16
+ '& .MuiButton-endIcon': {
17
+ margin: 0
18
+ }
19
+ }
20
+ }
21
+ }
22
+ },
23
+ '& .SCEvents-events': {
24
+ marginTop: theme.spacing(2),
25
+ '& .SCEvents-item': {
26
+ paddingTop: theme.spacing(2)
27
+ },
28
+ '& .SCEvents-item-skeleton': {
29
+ paddingTop: theme.spacing(2)
30
+ },
31
+ '& .SCBaseItem-root': {
32
+ display: 'flex',
33
+ justifyContent: 'space-between'
34
+ },
35
+ '& .SCEvent-skeleton-preview-name': {
36
+ marginTop: 6,
37
+ marginBottom: 6
38
+ },
39
+ '& .SCEvent-skeleton-snippet .SCBaseItem-content': {
40
+ maxWidth: '70%'
41
+ }
42
+ },
43
+ '& .SCEvents-no-results': {
44
+ marginTop: theme.spacing(3),
45
+ display: 'flex',
46
+ flexDirection: 'column',
47
+ alignItems: 'flex-start',
48
+ '& .SCEvent-skeleton-root': {
49
+ marginBottom: theme.spacing(2),
50
+ minWidth: '50%'
51
+ },
52
+ '& .SCEvent-skeleton-snippet .SCBaseItem-content': {
53
+ maxWidth: '70%'
54
+ },
55
+ '& .MuiTypography-body1': {
56
+ fontWeight: theme.typography.fontWeightMedium,
57
+ fontSize: '16px',
58
+ whiteSpace: 'pre-line'
59
+ }
60
+ },
61
+ '& .SCEvents-show-more': {
62
+ paddingLeft: theme.spacing(1),
63
+ '&.Mui-selected, &:hover': {
64
+ backgroundColor: 'transparent'
65
+ }
66
+ }
67
+ }),
68
+ skeletonRoot: ({ theme }) => ({
69
+ '& .SCEvents-skeleton-events': {
70
+ justifyContent: 'center',
71
+ marginTop: theme.spacing(2),
72
+ '& .SCEvents-skeleton-item': {
73
+ paddingTop: theme.spacing(2)
74
+ }
75
+ }
76
+ }),
77
+ eventsChipRoot: ({ theme, showFollowed, showPastEvents }) => ({
78
+ height: theme.spacing(4.75),
79
+ borderRadius: theme.spacing(0.5),
80
+ color: showFollowed || showPastEvents ? theme.palette.common.white : theme.palette.text.primary,
81
+ '& .MuiIcon-root': {
82
+ fontSize: '1rem',
83
+ color: theme.palette.common.white
84
+ }
85
+ })
86
+ }
87
+ };
88
+ 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': {
@@ -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
  };
@@ -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': {
@@ -62,11 +62,11 @@ const Component = {
62
62
  fontWeight: theme.typography.fontWeightBold
63
63
  }
64
64
  },
65
- '& .SCFeedObject-group': {
65
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
66
66
  marginRight: `${theme.spacing(1)} !important`
67
67
  }
68
68
  },
69
- '& .SCFeedObject-group': {
69
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
70
70
  justifyContent: 'flex-start',
71
71
  padding: theme.spacing(0.5),
72
72
  '& a': {
@@ -142,7 +142,7 @@ const Component = {
142
142
  '& .SCFeedObject-category': {
143
143
  borderBottom: '1px solid rgba(221, 221, 221, 1)',
144
144
  margin: theme.spacing(0, 2),
145
- '& .SCFeedObject-group': {
145
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
146
146
  borderBottom: 'none',
147
147
  margin: theme.spacing(0),
148
148
  '& .MuiChip-icon': {
@@ -152,7 +152,7 @@ const Component = {
152
152
  }
153
153
  }
154
154
  },
155
- '& .SCFeedObject-group': {
155
+ '& .SCFeedObject-group, & .SCFeedObject-event': {
156
156
  borderBottom: '1px solid rgba(221, 221, 221, 1)',
157
157
  margin: theme.spacing(1, 2, 0, 2)
158
158
  },
@@ -10,7 +10,7 @@ const Component = {
10
10
  },
11
11
  '& .MuiCardContent-root': {
12
12
  ' > .MuiButton-sizeMedium': {
13
- marginLeft: -10,
13
+ marginLeft: -3,
14
14
  marginTop: -1
15
15
  }
16
16
  },
@@ -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;
@@ -2,7 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const Component = {
4
4
  styleOverrides: {
5
- displayRoot: ({ theme }) => ({})
5
+ displayRoot: ({ theme }) => ({
6
+ '& .SCMediaShare-share-preview': {
7
+ paddingLeft: theme.spacing(),
8
+ paddingRight: theme.spacing()
9
+ }
10
+ })
6
11
  }
7
12
  };
8
13
  exports.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,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ '& .SCMyEventsWidget-title-wrapper': {
7
+ padding: `12px ${theme.spacing(2)}`
8
+ },
9
+ '& .SCMyEventsWidget-actions': {
10
+ padding: `0 ${theme.spacing(3)} 18px`,
11
+ justifyContent: 'center',
12
+ gap: theme.spacing(3),
13
+ '& .SCMyEventsWidget-arrows': {
14
+ width: '24px',
15
+ height: '24px'
16
+ },
17
+ '& .SCMyEventsWidget-action-button': {
18
+ color: theme.palette.primary.main,
19
+ textDecoration: 'none'
20
+ }
21
+ }
22
+ }),
23
+ skeletonRoot: ({ theme }) => ({
24
+ '& .SCMyEventsWidget-actions': {
25
+ height: '40px',
26
+ padding: `0 ${theme.spacing(3)} 18px`,
27
+ justifyContent: 'center',
28
+ gap: theme.spacing(3)
29
+ }
30
+ })
31
+ }
32
+ };
33
+ exports.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;
@@ -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),
@@ -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': {
@@ -282,6 +282,33 @@ const Component = {
282
282
  maxWidth: '40%'
283
283
  }
284
284
  }),
285
+ eventRoot: ({ theme }) => ({
286
+ '& .SCNotification-username, & a': {
287
+ fontWeight: theme.typography.fontWeightBold
288
+ },
289
+ '& .SCNotificationItem-primary': {
290
+ '& .MuiIcon-root': {
291
+ float: 'right',
292
+ fontSize: '20px',
293
+ marginLeft: theme.spacing(0.5)
294
+ },
295
+ '& .SCEvent-root': {
296
+ width: '100%',
297
+ '& .SCEvent-snippet-root': {
298
+ paddingLeft: '0 !important'
299
+ }
300
+ }
301
+ },
302
+ '& .SCNotificationItem-secondary': {
303
+ textTransform: 'capitalize'
304
+ },
305
+ '& .SCNotification-snippet-time': {
306
+ paddingLeft: theme.spacing(5)
307
+ },
308
+ '& .SCEvent-snippet-root': {
309
+ backgroundColor: 'transparent !important'
310
+ }
311
+ }),
285
312
  groupRoot: ({ theme }) => ({}),
286
313
  undeletedForRoot: ({ theme }) => ({
287
314
  '& .SCNotification-undeleted-icon': {