@selfcommunity/react-theme-default 0.4.2-alpha.8 → 0.4.2
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/SCCommentObject.d.ts +12 -0
- package/lib/cjs/components/SCCommentObject.js +12 -0
- package/lib/cjs/components/SCDefaultDrawerContent.d.ts +31 -0
- package/lib/cjs/components/SCDefaultDrawerContent.js +33 -0
- package/lib/cjs/components/SCEventHeader.d.ts +2 -0
- package/lib/cjs/components/SCEventHeader.js +3 -1
- package/lib/cjs/components/SCFeedObject.d.ts +15 -8
- package/lib/cjs/components/SCFeedObject.js +17 -10
- package/lib/cjs/components/SCUserProfileEdit.js +1 -1
- package/lib/cjs/components/SCVoteButton.d.ts +1 -0
- package/lib/cjs/components/SCVoteButton.js +1 -0
- package/lib/cjs/index.d.ts +60 -8
- package/lib/cjs/index.js +2 -0
- package/lib/esm/components/SCCommentObject.d.ts +12 -0
- package/lib/esm/components/SCCommentObject.js +12 -0
- package/lib/esm/components/SCDefaultDrawerContent.d.ts +31 -0
- package/lib/esm/components/SCDefaultDrawerContent.js +31 -0
- package/lib/esm/components/SCEventHeader.d.ts +2 -0
- package/lib/esm/components/SCEventHeader.js +3 -1
- package/lib/esm/components/SCFeedObject.d.ts +15 -8
- package/lib/esm/components/SCFeedObject.js +17 -10
- package/lib/esm/components/SCUserProfileEdit.js +1 -1
- package/lib/esm/components/SCVoteButton.d.ts +1 -0
- package/lib/esm/components/SCVoteButton.js +1 -0
- package/lib/esm/index.d.ts +60 -8
- package/lib/esm/index.js +2 -0
- package/lib/umd/react-theme-default.js +2 -2
- package/package.json +4 -4
|
@@ -45,9 +45,11 @@ const Component = {
|
|
|
45
45
|
'& a:not(.MuiChip-clickable)': {
|
|
46
46
|
color: 'inherit',
|
|
47
47
|
textDecoration: 'none',
|
|
48
|
+
display: 'inline-flex',
|
|
48
49
|
'&::after': {
|
|
49
50
|
content: '"\\2022"',
|
|
50
|
-
padding: theme.spacing()
|
|
51
|
+
padding: theme.spacing(),
|
|
52
|
+
alignSelf: 'center'
|
|
51
53
|
},
|
|
52
54
|
'&:last-child::after': {
|
|
53
55
|
display: 'none'
|
|
@@ -61,7 +63,9 @@ const Component = {
|
|
|
61
63
|
}
|
|
62
64
|
},
|
|
63
65
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
64
|
-
|
|
66
|
+
[theme.breakpoints.up('sm')]: {
|
|
67
|
+
marginRight: `${theme.spacing(1)} !important`
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
70
|
},
|
|
67
71
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
@@ -78,7 +82,9 @@ const Component = {
|
|
|
78
82
|
color: theme.palette.common.white,
|
|
79
83
|
textTransform: 'initial'
|
|
80
84
|
}
|
|
81
|
-
}
|
|
85
|
+
},
|
|
86
|
+
borderBottom: '1px solid rgba(221, 221, 221, 1)',
|
|
87
|
+
margin: theme.spacing(1, 2, 0, 2)
|
|
82
88
|
},
|
|
83
89
|
'& .SCFeedObject-content': {
|
|
84
90
|
padding: theme.spacing(1, 0, 0, 0),
|
|
@@ -142,18 +148,19 @@ const Component = {
|
|
|
142
148
|
margin: theme.spacing(0, 2),
|
|
143
149
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
144
150
|
borderBottom: 'none',
|
|
145
|
-
|
|
151
|
+
marginTop: theme.spacing(0.5),
|
|
146
152
|
'& .MuiChip-icon': {
|
|
147
|
-
marginLeft: theme.spacing(1),
|
|
148
|
-
marginRight: theme.spacing(-1),
|
|
149
153
|
fontWeight: theme.typography.fontWeightRegular
|
|
150
154
|
}
|
|
155
|
+
},
|
|
156
|
+
'& .SCFeedObject-group .MuiChip-icon': {
|
|
157
|
+
marginLeft: theme.spacing(1),
|
|
158
|
+
marginRight: theme.spacing(-1)
|
|
159
|
+
},
|
|
160
|
+
[theme.breakpoints.down('md')]: {
|
|
161
|
+
justifyContent: 'space-evenly'
|
|
151
162
|
}
|
|
152
163
|
},
|
|
153
|
-
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
154
|
-
borderBottom: '1px solid rgba(221, 221, 221, 1)',
|
|
155
|
-
margin: theme.spacing(1, 2, 0, 2)
|
|
156
|
-
},
|
|
157
164
|
'& .SCFeedObject-header': {
|
|
158
165
|
'& .MuiCardHeader-avatar': {
|
|
159
166
|
marginRight: theme.spacing(1.5),
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -987,6 +987,18 @@ declare const theme: {
|
|
|
987
987
|
maxWidth: string;
|
|
988
988
|
};
|
|
989
989
|
};
|
|
990
|
+
'& .SCCommentObject-flag-chip': {
|
|
991
|
+
borderRadius: number;
|
|
992
|
+
display: string;
|
|
993
|
+
width: string;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
'& .SCCommentObject-collapsed': {
|
|
997
|
+
justifyContent: string;
|
|
998
|
+
alignItems: string;
|
|
999
|
+
'& .MuiCardContent-root': {
|
|
1000
|
+
marginLeft: any;
|
|
1001
|
+
};
|
|
990
1002
|
};
|
|
991
1003
|
'& .SCCommentObject-show-more-content': {
|
|
992
1004
|
color: any;
|
|
@@ -1694,6 +1706,36 @@ declare const theme: {
|
|
|
1694
1706
|
};
|
|
1695
1707
|
};
|
|
1696
1708
|
};
|
|
1709
|
+
SCDefaultDrawerContent: {
|
|
1710
|
+
styleOverrides: {
|
|
1711
|
+
root: ({ theme }: any) => {
|
|
1712
|
+
'& .SCDefaultDrawerContent-no-results': {
|
|
1713
|
+
paddingLeft: any;
|
|
1714
|
+
};
|
|
1715
|
+
'& .SCDefaultDrawerContent-title': {
|
|
1716
|
+
paddingTop: any;
|
|
1717
|
+
};
|
|
1718
|
+
'& .SCDefaultDrawerContent-navigation': {
|
|
1719
|
+
paddingTop: any;
|
|
1720
|
+
paddingBottom: number;
|
|
1721
|
+
'& .MuiListItemButton-root': {
|
|
1722
|
+
paddingLeft: any;
|
|
1723
|
+
paddingRight: any;
|
|
1724
|
+
'& .MuiListItemText-root .MuiTypography-root': {
|
|
1725
|
+
fontWeight: number;
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
'& .MuiListItemIcon-root': {
|
|
1729
|
+
minWidth: number;
|
|
1730
|
+
marginRight: any;
|
|
1731
|
+
};
|
|
1732
|
+
'& .MuiIcon-root': {
|
|
1733
|
+
fontSize: number;
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1697
1739
|
SCEditGroupButton: {
|
|
1698
1740
|
styleOverrides: {
|
|
1699
1741
|
root: ({ theme }: any) => {
|
|
@@ -2148,9 +2190,11 @@ declare const theme: {
|
|
|
2148
2190
|
'& a:not(.MuiChip-clickable)': {
|
|
2149
2191
|
color: string;
|
|
2150
2192
|
textDecoration: string;
|
|
2193
|
+
display: string;
|
|
2151
2194
|
'&::after': {
|
|
2152
2195
|
content: string;
|
|
2153
2196
|
padding: any;
|
|
2197
|
+
alignSelf: string;
|
|
2154
2198
|
};
|
|
2155
2199
|
'&:last-child::after': {
|
|
2156
2200
|
display: string;
|
|
@@ -2164,7 +2208,9 @@ declare const theme: {
|
|
|
2164
2208
|
};
|
|
2165
2209
|
};
|
|
2166
2210
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
2167
|
-
|
|
2211
|
+
[x: number]: {
|
|
2212
|
+
marginRight: string;
|
|
2213
|
+
};
|
|
2168
2214
|
};
|
|
2169
2215
|
};
|
|
2170
2216
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
@@ -2182,6 +2228,8 @@ declare const theme: {
|
|
|
2182
2228
|
textTransform: string;
|
|
2183
2229
|
};
|
|
2184
2230
|
};
|
|
2231
|
+
borderBottom: string;
|
|
2232
|
+
margin: any;
|
|
2185
2233
|
};
|
|
2186
2234
|
'& .SCFeedObject-content': {
|
|
2187
2235
|
padding: any;
|
|
@@ -2241,21 +2289,22 @@ declare const theme: {
|
|
|
2241
2289
|
boxShadow: string;
|
|
2242
2290
|
borderRadius: number;
|
|
2243
2291
|
'& .SCFeedObject-category': {
|
|
2292
|
+
[x: number]: {
|
|
2293
|
+
justifyContent: string;
|
|
2294
|
+
};
|
|
2244
2295
|
borderBottom: string;
|
|
2245
2296
|
margin: any;
|
|
2246
2297
|
'& .SCFeedObject-group, & .SCFeedObject-event': {
|
|
2247
2298
|
borderBottom: string;
|
|
2248
|
-
|
|
2299
|
+
marginTop: any;
|
|
2249
2300
|
'& .MuiChip-icon': {
|
|
2250
|
-
marginLeft: any;
|
|
2251
|
-
marginRight: any;
|
|
2252
2301
|
fontWeight: any;
|
|
2253
2302
|
};
|
|
2254
2303
|
};
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2304
|
+
'& .SCFeedObject-group .MuiChip-icon': {
|
|
2305
|
+
marginLeft: any;
|
|
2306
|
+
marginRight: any;
|
|
2307
|
+
};
|
|
2259
2308
|
};
|
|
2260
2309
|
'& .SCFeedObject-header': {
|
|
2261
2310
|
'& .MuiCardHeader-avatar': {
|
|
@@ -7488,6 +7537,8 @@ declare const theme: {
|
|
|
7488
7537
|
marginLeft: any;
|
|
7489
7538
|
marginBottom: any;
|
|
7490
7539
|
backgroundColor: any;
|
|
7540
|
+
color: any;
|
|
7541
|
+
border: string;
|
|
7491
7542
|
'& .SCEventHeader-chip-icon': {
|
|
7492
7543
|
marginLeft: any;
|
|
7493
7544
|
};
|
|
@@ -8247,6 +8298,7 @@ declare const theme: {
|
|
|
8247
8298
|
};
|
|
8248
8299
|
};
|
|
8249
8300
|
popperRoot: ({ theme }: any) => {
|
|
8301
|
+
zIndex: number;
|
|
8250
8302
|
'& .SCVoteButton-reaction .MuiIcon-root': {
|
|
8251
8303
|
fontSize: string;
|
|
8252
8304
|
};
|
package/lib/esm/index.js
CHANGED
|
@@ -58,6 +58,7 @@ import SCCustomAdv from './components/SCCustomAdv';
|
|
|
58
58
|
import SCCustomSnackMessage from './components/SCCustomSnackMessage';
|
|
59
59
|
import SCDateTimeAgo from './components/SCDateTimeAgo';
|
|
60
60
|
import SCDefaultHeaderContent from './components/SCDefaultHeaderContent';
|
|
61
|
+
import SCDefaultDrawerContent from './components/SCDefaultDrawerContent';
|
|
61
62
|
import SCEditGroupButton from './components/SCEditGroupButton';
|
|
62
63
|
import SCEditor from './components/SCEditor';
|
|
63
64
|
import SCEmojiPicker from './components/SCEmojiPicker';
|
|
@@ -296,6 +297,7 @@ const theme = {
|
|
|
296
297
|
SCCustomSnackMessage,
|
|
297
298
|
SCDateTimeAgo,
|
|
298
299
|
SCDefaultHeaderContent,
|
|
300
|
+
SCDefaultDrawerContent,
|
|
299
301
|
SCEditGroupButton,
|
|
300
302
|
SCEditor,
|
|
301
303
|
SCEmojiPicker,
|