@selfcommunity/react-theme-default 0.5.0-alpha.2 → 0.5.0-alpha.20
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.
- package/lib/cjs/components/SCCategoryHeader.d.ts +4 -0
- package/lib/cjs/components/SCCategoryHeader.js +4 -0
- package/lib/cjs/components/SCComposer.d.ts +14 -4
- package/lib/cjs/components/SCComposer.js +18 -5
- package/lib/cjs/components/SCCourse.d.ts +4 -0
- package/lib/cjs/components/SCCourse.js +4 -0
- package/lib/cjs/components/SCDefaultDrawerContent.d.ts +8 -0
- package/lib/cjs/components/SCDefaultDrawerContent.js +8 -0
- package/lib/cjs/components/SCEvent.d.ts +2 -0
- package/lib/cjs/components/SCEvent.js +3 -1
- package/lib/cjs/components/SCFeedObject.d.ts +10 -0
- package/lib/cjs/components/SCFeedObject.js +10 -0
- package/lib/cjs/components/SCFooter.d.ts +1 -0
- package/lib/cjs/components/SCFooter.js +1 -0
- package/lib/cjs/components/SCFooterWidget.d.ts +10 -0
- package/lib/cjs/components/SCFooterWidget.js +12 -0
- package/lib/cjs/components/SCMediaFile.d.ts +6 -7
- package/lib/cjs/components/SCMediaFile.js +7 -8
- package/lib/cjs/components/SCPaywallsConfigurator.d.ts +3 -0
- package/lib/cjs/components/SCPaywallsConfigurator.js +6 -3
- package/lib/cjs/components/SCPdfPreview.d.ts +4 -0
- package/lib/cjs/components/SCPdfPreview.js +4 -0
- package/lib/cjs/components/SCUserAutocomplete.d.ts +18 -0
- package/lib/cjs/components/SCUserAutocomplete.js +20 -0
- package/lib/cjs/components/SCVoteAudienceButton.js +2 -2
- package/lib/cjs/components/SCVoteButton.d.ts +1 -1
- package/lib/cjs/components/SCVoteButton.js +2 -2
- package/lib/cjs/index.d.ts +90 -18
- package/lib/cjs/index.js +5 -1
- package/lib/esm/components/SCCategoryHeader.d.ts +4 -0
- package/lib/esm/components/SCCategoryHeader.js +4 -0
- package/lib/esm/components/SCComposer.d.ts +14 -4
- package/lib/esm/components/SCComposer.js +18 -5
- package/lib/esm/components/SCCourse.d.ts +4 -0
- package/lib/esm/components/SCCourse.js +4 -0
- package/lib/esm/components/SCDefaultDrawerContent.d.ts +8 -0
- package/lib/esm/components/SCDefaultDrawerContent.js +8 -0
- package/lib/esm/components/SCEvent.d.ts +2 -0
- package/lib/esm/components/SCEvent.js +3 -1
- package/lib/esm/components/SCFeedObject.d.ts +10 -0
- package/lib/esm/components/SCFeedObject.js +10 -0
- package/lib/esm/components/SCFooter.d.ts +1 -0
- package/lib/esm/components/SCFooter.js +1 -0
- package/lib/esm/components/SCFooterWidget.d.ts +10 -0
- package/lib/esm/components/SCFooterWidget.js +10 -0
- package/lib/esm/components/SCMediaFile.d.ts +6 -7
- package/lib/esm/components/SCMediaFile.js +7 -8
- package/lib/esm/components/SCPaywallsConfigurator.d.ts +3 -0
- package/lib/esm/components/SCPaywallsConfigurator.js +6 -3
- package/lib/esm/components/SCPdfPreview.d.ts +4 -0
- package/lib/esm/components/SCPdfPreview.js +4 -0
- package/lib/esm/components/SCUserAutocomplete.d.ts +18 -0
- package/lib/esm/components/SCUserAutocomplete.js +18 -0
- package/lib/esm/components/SCVoteAudienceButton.js +2 -2
- package/lib/esm/components/SCVoteButton.d.ts +1 -1
- package/lib/esm/components/SCVoteButton.js +2 -2
- package/lib/esm/index.d.ts +90 -18
- package/lib/esm/index.js +5 -1
- package/lib/umd/react-theme-default.js +1 -1
- 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
|
-
|
|
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': {
|
|
@@ -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
|
}
|
|
@@ -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
|
+
margin: 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
|
+
margin: theme.spacing(1, 0),
|
|
341
351
|
'& .SCFeedObjectMediaPreview-root': {
|
|
342
352
|
margin: theme.spacing(0, 1)
|
|
343
353
|
}
|
|
@@ -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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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',
|
|
@@ -75,15 +75,18 @@ const Component = {
|
|
|
75
75
|
margin: '3px 5px 0px -1px'
|
|
76
76
|
},
|
|
77
77
|
[`& .SCPaywallsConfigurator-product-card-icon`]: {
|
|
78
|
-
width:
|
|
79
|
-
height:
|
|
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.
|
|
32
|
-
height: theme.
|
|
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
|
}
|