@selfcommunity/react-theme-default 0.5.0-alpha.2 → 0.5.0-alpha.21

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 (60) hide show
  1. package/lib/cjs/components/SCCategoryHeader.d.ts +4 -0
  2. package/lib/cjs/components/SCCategoryHeader.js +4 -0
  3. package/lib/cjs/components/SCComposer.d.ts +14 -4
  4. package/lib/cjs/components/SCComposer.js +18 -5
  5. package/lib/cjs/components/SCCourse.d.ts +4 -0
  6. package/lib/cjs/components/SCCourse.js +4 -0
  7. package/lib/cjs/components/SCDefaultDrawerContent.d.ts +8 -0
  8. package/lib/cjs/components/SCDefaultDrawerContent.js +8 -0
  9. package/lib/cjs/components/SCEvent.d.ts +2 -0
  10. package/lib/cjs/components/SCEvent.js +3 -1
  11. package/lib/cjs/components/SCFeedObject.d.ts +10 -0
  12. package/lib/cjs/components/SCFeedObject.js +10 -0
  13. package/lib/cjs/components/SCFooter.d.ts +1 -0
  14. package/lib/cjs/components/SCFooter.js +1 -0
  15. package/lib/cjs/components/SCFooterWidget.d.ts +10 -0
  16. package/lib/cjs/components/SCFooterWidget.js +12 -0
  17. package/lib/cjs/components/SCMediaFile.d.ts +6 -7
  18. package/lib/cjs/components/SCMediaFile.js +7 -8
  19. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +3 -0
  20. package/lib/cjs/components/SCPaywallsConfigurator.js +6 -3
  21. package/lib/cjs/components/SCPdfPreview.d.ts +4 -0
  22. package/lib/cjs/components/SCPdfPreview.js +4 -0
  23. package/lib/cjs/components/SCUserAutocomplete.d.ts +18 -0
  24. package/lib/cjs/components/SCUserAutocomplete.js +20 -0
  25. package/lib/cjs/components/SCVoteAudienceButton.js +2 -2
  26. package/lib/cjs/components/SCVoteButton.d.ts +1 -1
  27. package/lib/cjs/components/SCVoteButton.js +2 -2
  28. package/lib/cjs/index.d.ts +87 -18
  29. package/lib/cjs/index.js +5 -1
  30. package/lib/esm/components/SCCategoryHeader.d.ts +4 -0
  31. package/lib/esm/components/SCCategoryHeader.js +4 -0
  32. package/lib/esm/components/SCComposer.d.ts +14 -4
  33. package/lib/esm/components/SCComposer.js +18 -5
  34. package/lib/esm/components/SCCourse.d.ts +4 -0
  35. package/lib/esm/components/SCCourse.js +4 -0
  36. package/lib/esm/components/SCDefaultDrawerContent.d.ts +8 -0
  37. package/lib/esm/components/SCDefaultDrawerContent.js +8 -0
  38. package/lib/esm/components/SCEvent.d.ts +2 -0
  39. package/lib/esm/components/SCEvent.js +3 -1
  40. package/lib/esm/components/SCFeedObject.d.ts +10 -0
  41. package/lib/esm/components/SCFeedObject.js +10 -0
  42. package/lib/esm/components/SCFooter.d.ts +1 -0
  43. package/lib/esm/components/SCFooter.js +1 -0
  44. package/lib/esm/components/SCFooterWidget.d.ts +10 -0
  45. package/lib/esm/components/SCFooterWidget.js +10 -0
  46. package/lib/esm/components/SCMediaFile.d.ts +6 -7
  47. package/lib/esm/components/SCMediaFile.js +7 -8
  48. package/lib/esm/components/SCPaywallsConfigurator.d.ts +3 -0
  49. package/lib/esm/components/SCPaywallsConfigurator.js +6 -3
  50. package/lib/esm/components/SCPdfPreview.d.ts +4 -0
  51. package/lib/esm/components/SCPdfPreview.js +4 -0
  52. package/lib/esm/components/SCUserAutocomplete.d.ts +18 -0
  53. package/lib/esm/components/SCUserAutocomplete.js +18 -0
  54. package/lib/esm/components/SCVoteAudienceButton.js +2 -2
  55. package/lib/esm/components/SCVoteButton.d.ts +1 -1
  56. package/lib/esm/components/SCVoteButton.js +2 -2
  57. package/lib/esm/index.d.ts +87 -18
  58. package/lib/esm/index.js +5 -1
  59. package/lib/umd/react-theme-default.js +1 -1
  60. package/package.json +2 -2
@@ -43,6 +43,10 @@ declare const Component: {
43
43
  fontWeight: any;
44
44
  marginBottom: string;
45
45
  };
46
+ '& .SCCategoryHeader-tags': {
47
+ display: string;
48
+ justifyContent: string;
49
+ };
46
50
  '& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
47
51
  textAlign: string;
48
52
  marginBottom: any;
@@ -45,6 +45,10 @@ const Component = {
45
45
  fontWeight: theme.typography.fontWeightMedium,
46
46
  marginBottom: `${theme.spacing(0)} !important`
47
47
  },
48
+ '& .SCCategoryHeader-tags': {
49
+ display: 'flex',
50
+ justifyContent: 'center'
51
+ },
48
52
  '& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
49
53
  textAlign: 'center',
50
54
  marginBottom: theme.spacing(2),
@@ -45,9 +45,6 @@ declare const Component: {
45
45
  };
46
46
  };
47
47
  '& .MuiDialogContent-root': {
48
- [x: number]: {
49
- overflowY: string;
50
- };
51
48
  margin: string;
52
49
  padding: any;
53
50
  height: string;
@@ -93,6 +90,14 @@ declare const Component: {
93
90
  zIndex: number;
94
91
  backgroundColor: any;
95
92
  borderTop: string;
93
+ '& .SCComposer-selected-action': {
94
+ display: string;
95
+ alignItems: string;
96
+ '& .SCComposer-action-selected-icon': {
97
+ marginLeft: any;
98
+ fontSize: any;
99
+ };
100
+ };
96
101
  };
97
102
  '& .SCComposer-general-error': {
98
103
  marginBottom: any;
@@ -100,7 +105,12 @@ declare const Component: {
100
105
  };
101
106
  };
102
107
  };
103
- attributesRoot: () => {};
108
+ attributesRoot: ({ theme }: any) => {
109
+ '& .MuiChip-root': {
110
+ marginRight: any;
111
+ marginTop: any;
112
+ };
113
+ };
104
114
  contentDiscussionRoot: ({ theme }: any) => {
105
115
  '& .SCComposer-content-discussion-title': {
106
116
  '& .MuiInputBase-root': {
@@ -37,9 +37,9 @@ const Component = {
37
37
  margin: '45px 0',
38
38
  padding: theme.spacing(1, 2),
39
39
  height: `calc(100% - 45px - 45px - ${theme.spacing(2)})`,
40
- [theme.breakpoints.up('md')]: {
41
- overflowY: 'hidden'
42
- },
40
+ // [theme.breakpoints.up('md')]: {
41
+ // overflowY: 'hidden'
42
+ // },
43
43
  '& .SCEditor-root': {
44
44
  padding: theme.spacing(1, 0),
45
45
  marginBottom: theme.spacing(3),
@@ -81,7 +81,15 @@ const Component = {
81
81
  justifyContent: 'space-between',
82
82
  zIndex: 1,
83
83
  backgroundColor: theme.palette.background.paper,
84
- borderTop: `1px solid ${theme.palette.grey[400]}`
84
+ borderTop: `1px solid ${theme.palette.grey[400]}`,
85
+ '& .SCComposer-selected-action': {
86
+ display: 'flex',
87
+ alignItems: 'center',
88
+ '& .SCComposer-action-selected-icon': {
89
+ marginLeft: theme.spacing(0.5),
90
+ fontSize: theme.spacing(1)
91
+ }
92
+ }
85
93
  },
86
94
  '& .SCComposer-general-error': {
87
95
  marginBottom: theme.spacing(2),
@@ -103,7 +111,12 @@ const Component = {
103
111
  }
104
112
  }
105
113
  }),
106
- attributesRoot: () => ({}),
114
+ attributesRoot: ({ theme }) => ({
115
+ '& .MuiChip-root': {
116
+ marginRight: theme.spacing(0.5),
117
+ marginTop: theme.spacing(0.5)
118
+ }
119
+ }),
107
120
  contentDiscussionRoot: ({ theme }) => ({
108
121
  '& .SCComposer-content-discussion-title': {
109
122
  '& .MuiInputBase-root': {
@@ -84,6 +84,10 @@ declare const Component: {
84
84
  '& .SCBaseItemButton-actions': {
85
85
  marginRight: any;
86
86
  };
87
+ '& .SCCourse-snippet-privacy': {
88
+ flexDirection: string;
89
+ alignItems: string;
90
+ };
87
91
  };
88
92
  previewRoot: ({ theme }: any) => {
89
93
  [x: number]: {
@@ -85,6 +85,10 @@ const Component = {
85
85
  },
86
86
  '& .SCBaseItemButton-actions': {
87
87
  marginRight: theme.spacing()
88
+ },
89
+ '& .SCCourse-snippet-privacy': {
90
+ flexDirection: 'row',
91
+ alignItems: 'center'
88
92
  }
89
93
  }),
90
94
  previewRoot: ({ theme }) => ({
@@ -25,6 +25,14 @@ declare const Component: {
25
25
  fontSize: number;
26
26
  };
27
27
  };
28
+ '& .MuiAccordion-root': {
29
+ '& .MuiAccordionSummary-content': {
30
+ marginBottom: any;
31
+ };
32
+ '& .MuiAccordionDetails-root, .MuiList-root': {
33
+ paddingTop: number;
34
+ };
35
+ };
28
36
  };
29
37
  };
30
38
  };
@@ -26,6 +26,14 @@ const Component = {
26
26
  '& .MuiIcon-root': {
27
27
  fontSize: 18
28
28
  }
29
+ },
30
+ '& .MuiAccordion-root': {
31
+ '& .MuiAccordionSummary-content': {
32
+ marginBottom: theme.spacing(1.5)
33
+ },
34
+ '& .MuiAccordionDetails-root, .MuiList-root': {
35
+ paddingTop: 0
36
+ }
29
37
  }
30
38
  })
31
39
  }
@@ -154,6 +154,8 @@ declare const Component: {
154
154
  };
155
155
  '& .SCEvent-snippet-secondary': {
156
156
  color: any;
157
+ display: string;
158
+ alignItems: string;
157
159
  };
158
160
  };
159
161
  };
@@ -155,7 +155,9 @@ const Component = {
155
155
  }
156
156
  },
157
157
  '& .SCEvent-snippet-secondary': {
158
- color: theme.palette.text.secondary
158
+ color: theme.palette.text.secondary,
159
+ display: 'flex',
160
+ alignItems: 'center'
159
161
  }
160
162
  }
161
163
  }),
@@ -143,6 +143,15 @@ declare const Component: {
143
143
  opacity: number;
144
144
  };
145
145
  };
146
+ '& .SCFeedObject-new': {
147
+ color: any;
148
+ backgroundColor: string;
149
+ padding: string;
150
+ borderRadius: string;
151
+ marginRight: string;
152
+ fontSize: string;
153
+ fontWeight: number;
154
+ };
146
155
  '&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
147
156
  [x: number]: {
148
157
  borderRadius: any;
@@ -335,6 +344,7 @@ declare const Component: {
335
344
  };
336
345
  };
337
346
  '& .SCFeedObject-medias-section': {
347
+ padding: any;
338
348
  '& .SCFeedObjectMediaPreview-root': {
339
349
  margin: any;
340
350
  };
@@ -146,6 +146,15 @@ const Component = {
146
146
  opacity: 1
147
147
  }
148
148
  },
149
+ '& .SCFeedObject-new': {
150
+ color: theme.palette.common.white,
151
+ backgroundColor: '#fa0501',
152
+ padding: '0 3px',
153
+ borderRadius: '3px',
154
+ marginRight: '3px',
155
+ fontSize: '10px',
156
+ fontWeight: 600
157
+ },
149
158
  '&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
150
159
  border: `0 none`,
151
160
  boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',
@@ -338,6 +347,7 @@ const Component = {
338
347
  }
339
348
  },
340
349
  '& .SCFeedObject-medias-section': {
350
+ padding: theme.spacing(1, 0),
341
351
  '& .SCFeedObjectMediaPreview-root': {
342
352
  margin: theme.spacing(0, 1)
343
353
  }
@@ -9,6 +9,7 @@ declare const Component: {
9
9
  display: string;
10
10
  justifyContent: string;
11
11
  flexDirection: string;
12
+ flexWrap: string;
12
13
  '& .SCFooter-item': {
13
14
  padding: any;
14
15
  color: any;
@@ -11,6 +11,7 @@ const Component = {
11
11
  display: 'flex',
12
12
  justifyContent: 'center',
13
13
  flexDirection: 'row',
14
+ flexWrap: 'wrap',
14
15
  '& .SCFooter-item': {
15
16
  padding: theme.spacing(0.5, 1),
16
17
  color: theme.palette.text.primary
@@ -0,0 +1,10 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCFooterWidget-content': {
5
+ paddingBottom: any;
6
+ };
7
+ };
8
+ };
9
+ };
10
+ export default Component;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ '& .SCFooterWidget-content': {
7
+ paddingBottom: theme.spacing(2.2)
8
+ }
9
+ })
10
+ }
11
+ };
12
+ exports.default = Component;
@@ -1,9 +1,6 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
3
  displayRoot: ({ theme }: any) => {
4
- [x: number]: {
5
- minHeight: number;
6
- };
7
4
  textAlign: string;
8
5
  margin: string;
9
6
  width: string;
@@ -165,15 +162,17 @@ declare const Component: {
165
162
  docRoot: ({ theme }: {
166
163
  theme: any;
167
164
  }) => {
168
- borderRadius: string;
169
165
  border: string;
166
+ borderRadius: string;
170
167
  padding: any;
171
168
  flexDirection: string;
172
169
  gap: string;
173
- '& .SCMediaFile-image': {
174
- width: string;
175
- height: string;
170
+ '& .SCMediaFile-image-wrapper': {
176
171
  flexShrink: number;
172
+ padding: number;
173
+ '&:hover': {
174
+ backgroundColor: string;
175
+ };
177
176
  };
178
177
  '& .SCMediaFile-text-wrapper': {
179
178
  [x: number]: {
@@ -8,9 +8,6 @@ const Component = {
8
8
  width: '100%',
9
9
  position: 'relative',
10
10
  gap: theme.spacing(2),
11
- [theme.breakpoints.down('md')]: {
12
- minHeight: 170
13
- },
14
11
  '& .SCMediaFile-background': {
15
12
  backgroundSize: 'cover !important',
16
13
  backgroundPosition: 'center !important',
@@ -165,15 +162,17 @@ const Component = {
165
162
  }),
166
163
  triggerMenuRoot: () => ({}),
167
164
  docRoot: ({ theme }) => ({
168
- borderRadius: '10px',
169
165
  border: '1px solid #DDD',
166
+ borderRadius: '10px',
170
167
  padding: theme.spacing(1),
171
168
  flexDirection: 'row',
172
169
  gap: '8px',
173
- '& .SCMediaFile-image': {
174
- width: '50px',
175
- height: '50px',
176
- flexShrink: 0
170
+ '& .SCMediaFile-image-wrapper': {
171
+ flexShrink: 0,
172
+ padding: 0,
173
+ '&:hover': {
174
+ backgroundColor: 'unset'
175
+ }
177
176
  },
178
177
  '& .SCMediaFile-text-wrapper': {
179
178
  gap: '4px',
@@ -81,6 +81,9 @@ declare const Component: {
81
81
  padding: string;
82
82
  backgroundColor: string;
83
83
  color: string;
84
+ "& > .community-icons": {
85
+ fontSize: string;
86
+ };
84
87
  };
85
88
  "& .SCPaywallsConfigurator-product-content": {
86
89
  flexGrow: number;
@@ -75,15 +75,18 @@ const Component = {
75
75
  margin: '3px 5px 0px -1px'
76
76
  },
77
77
  [`& .SCPaywallsConfigurator-product-card-icon`]: {
78
- width: 14,
79
- height: 14,
78
+ width: 20,
79
+ height: 20,
80
80
  flexShrink: 0,
81
81
  borderRadius: '3px',
82
82
  marginRight: theme.spacing(),
83
83
  marginTop: '2px',
84
84
  padding: '3px',
85
85
  backgroundColor: 'red',
86
- color: 'white'
86
+ color: 'white',
87
+ [`& > .community-icons`]: {
88
+ fontSize: '20px'
89
+ }
87
90
  },
88
91
  [`& .SCPaywallsConfigurator-product-content`]: {
89
92
  flexGrow: 1,
@@ -3,6 +3,7 @@ declare const Component: {
3
3
  root: ({ theme }: any) => {
4
4
  display: string;
5
5
  flexDirection: string;
6
+ marginTop: string;
6
7
  "& .SCPdfPreview-document-pdf-wrapper": {
7
8
  filter: string;
8
9
  };
@@ -22,6 +23,9 @@ declare const Component: {
22
23
  mixBlendMode: string;
23
24
  opacity: number;
24
25
  };
26
+ '& .react-pdf__Page__canvas': {
27
+ margin: string;
28
+ };
25
29
  };
26
30
  };
27
31
  };
@@ -5,6 +5,7 @@ const Component = {
5
5
  root: ({ theme }) => ({
6
6
  display: 'flex',
7
7
  flexDirection: 'column',
8
+ marginTop: '12px',
8
9
  [`& .SCPdfPreview-document-pdf-wrapper`]: {
9
10
  filter: 'drop-shadow(0 0 5px #00000040)'
10
11
  },
@@ -23,6 +24,9 @@ const Component = {
23
24
  '& .react-pdf__Page__textContent': {
24
25
  mixBlendMode: 'multiply',
25
26
  opacity: 0.6
27
+ },
28
+ '& .react-pdf__Page__canvas': {
29
+ margin: 'auto'
26
30
  }
27
31
  }
28
32
  })
@@ -0,0 +1,18 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCUserAutocomplete-info': {
5
+ [x: number]: {
6
+ alignItems: string;
7
+ };
8
+ marginTop: any;
9
+ display: string;
10
+ '& .MuiIcon-root': {
11
+ marginRight: any;
12
+ };
13
+ };
14
+ };
15
+ autocompleteRoot: ({ theme }: any) => {};
16
+ };
17
+ };
18
+ export default Component;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({
6
+ '& .SCUserAutocomplete-info': {
7
+ marginTop: theme.spacing(3),
8
+ display: 'flex',
9
+ [theme.breakpoints.up('sm')]: {
10
+ alignItems: 'center'
11
+ },
12
+ '& .MuiIcon-root': {
13
+ marginRight: theme.spacing(0.5)
14
+ }
15
+ }
16
+ }),
17
+ autocompleteRoot: ({ theme }) => ({})
18
+ }
19
+ };
20
+ exports.default = Component;
@@ -28,8 +28,8 @@ const Component = {
28
28
  }
29
29
  },
30
30
  '& .SCVoteAudienceButton-dialog-vote-badge': {
31
- width: theme.selfcommunity.user.avatar.sizeSmall,
32
- height: theme.selfcommunity.user.avatar.sizeSmall,
31
+ width: theme.spacing(2),
32
+ height: theme.spacing(2),
33
33
  backgroundColor: theme.palette.background.paper,
34
34
  border: `1px solid ${theme.palette.background.paper}`
35
35
  }
@@ -17,7 +17,7 @@ declare const Component: {
17
17
  };
18
18
  };
19
19
  };
20
- popperRoot: ({ theme }: any) => {
20
+ popperRoot: () => {
21
21
  zIndex: number;
22
22
  '& .SCVoteButton-reaction .MuiIcon-root': {
23
23
  fontSize: string;
@@ -19,10 +19,10 @@ const Component = {
19
19
  }
20
20
  }
21
21
  }),
22
- popperRoot: ({ theme }) => ({
22
+ popperRoot: () => ({
23
23
  zIndex: 1400,
24
24
  '& .SCVoteButton-reaction .MuiIcon-root': {
25
- fontSize: '22px'
25
+ fontSize: '30px'
26
26
  }
27
27
  })
28
28
  }