@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
|
@@ -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
|
};
|
|
@@ -3,6 +3,7 @@ const Component = {
|
|
|
3
3
|
root: ({ theme }) => ({
|
|
4
4
|
display: 'flex',
|
|
5
5
|
flexDirection: 'column',
|
|
6
|
+
marginTop: '12px',
|
|
6
7
|
[`& .SCPdfPreview-document-pdf-wrapper`]: {
|
|
7
8
|
filter: 'drop-shadow(0 0 5px #00000040)'
|
|
8
9
|
},
|
|
@@ -21,6 +22,9 @@ const Component = {
|
|
|
21
22
|
'& .react-pdf__Page__textContent': {
|
|
22
23
|
mixBlendMode: 'multiply',
|
|
23
24
|
opacity: 0.6
|
|
25
|
+
},
|
|
26
|
+
'& .react-pdf__Page__canvas': {
|
|
27
|
+
margin: 'auto'
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
})
|
|
@@ -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,18 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }) => ({
|
|
4
|
+
'& .SCUserAutocomplete-info': {
|
|
5
|
+
marginTop: theme.spacing(3),
|
|
6
|
+
display: 'flex',
|
|
7
|
+
[theme.breakpoints.up('sm')]: {
|
|
8
|
+
alignItems: 'center'
|
|
9
|
+
},
|
|
10
|
+
'& .MuiIcon-root': {
|
|
11
|
+
marginRight: theme.spacing(0.5)
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}),
|
|
15
|
+
autocompleteRoot: ({ theme }) => ({})
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export default Component;
|
|
@@ -26,8 +26,8 @@ const Component = {
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
'& .SCVoteAudienceButton-dialog-vote-badge': {
|
|
29
|
-
width: theme.
|
|
30
|
-
height: theme.
|
|
29
|
+
width: theme.spacing(2),
|
|
30
|
+
height: theme.spacing(2),
|
|
31
31
|
backgroundColor: theme.palette.background.paper,
|
|
32
32
|
border: `1px solid ${theme.palette.background.paper}`
|
|
33
33
|
}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -898,6 +898,10 @@ declare const theme: {
|
|
|
898
898
|
fontWeight: any;
|
|
899
899
|
marginBottom: string;
|
|
900
900
|
};
|
|
901
|
+
'& .SCCategoryHeader-tags': {
|
|
902
|
+
display: string;
|
|
903
|
+
justifyContent: string;
|
|
904
|
+
};
|
|
901
905
|
'& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
|
|
902
906
|
textAlign: string;
|
|
903
907
|
marginBottom: any;
|
|
@@ -1370,9 +1374,6 @@ declare const theme: {
|
|
|
1370
1374
|
};
|
|
1371
1375
|
};
|
|
1372
1376
|
'& .MuiDialogContent-root': {
|
|
1373
|
-
[x: number]: {
|
|
1374
|
-
overflowY: string;
|
|
1375
|
-
};
|
|
1376
1377
|
margin: string;
|
|
1377
1378
|
padding: any;
|
|
1378
1379
|
height: string;
|
|
@@ -1418,6 +1419,14 @@ declare const theme: {
|
|
|
1418
1419
|
zIndex: number;
|
|
1419
1420
|
backgroundColor: any;
|
|
1420
1421
|
borderTop: string;
|
|
1422
|
+
'& .SCComposer-selected-action': {
|
|
1423
|
+
display: string;
|
|
1424
|
+
alignItems: string;
|
|
1425
|
+
'& .SCComposer-action-selected-icon': {
|
|
1426
|
+
marginLeft: any;
|
|
1427
|
+
fontSize: any;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1421
1430
|
};
|
|
1422
1431
|
'& .SCComposer-general-error': {
|
|
1423
1432
|
marginBottom: any;
|
|
@@ -1425,7 +1434,12 @@ declare const theme: {
|
|
|
1425
1434
|
};
|
|
1426
1435
|
};
|
|
1427
1436
|
};
|
|
1428
|
-
attributesRoot: () => {
|
|
1437
|
+
attributesRoot: ({ theme }: any) => {
|
|
1438
|
+
'& .MuiChip-root': {
|
|
1439
|
+
marginRight: any;
|
|
1440
|
+
marginTop: any;
|
|
1441
|
+
};
|
|
1442
|
+
};
|
|
1429
1443
|
contentDiscussionRoot: ({ theme }: any) => {
|
|
1430
1444
|
'& .SCComposer-content-discussion-title': {
|
|
1431
1445
|
'& .MuiInputBase-root': {
|
|
@@ -1875,6 +1889,10 @@ declare const theme: {
|
|
|
1875
1889
|
'& .SCBaseItemButton-actions': {
|
|
1876
1890
|
marginRight: any;
|
|
1877
1891
|
};
|
|
1892
|
+
'& .SCCourse-snippet-privacy': {
|
|
1893
|
+
flexDirection: string;
|
|
1894
|
+
alignItems: string;
|
|
1895
|
+
};
|
|
1878
1896
|
};
|
|
1879
1897
|
previewRoot: ({ theme }: any) => {
|
|
1880
1898
|
[x: number]: {
|
|
@@ -3179,6 +3197,14 @@ declare const theme: {
|
|
|
3179
3197
|
fontSize: number;
|
|
3180
3198
|
};
|
|
3181
3199
|
};
|
|
3200
|
+
'& .MuiAccordion-root': {
|
|
3201
|
+
'& .MuiAccordionSummary-content': {
|
|
3202
|
+
marginBottom: any;
|
|
3203
|
+
};
|
|
3204
|
+
'& .MuiAccordionDetails-root, .MuiList-root': {
|
|
3205
|
+
paddingTop: number;
|
|
3206
|
+
};
|
|
3207
|
+
};
|
|
3182
3208
|
};
|
|
3183
3209
|
};
|
|
3184
3210
|
};
|
|
@@ -4066,6 +4092,15 @@ declare const theme: {
|
|
|
4066
4092
|
opacity: number;
|
|
4067
4093
|
};
|
|
4068
4094
|
};
|
|
4095
|
+
'& .SCFeedObject-new': {
|
|
4096
|
+
color: any;
|
|
4097
|
+
backgroundColor: string;
|
|
4098
|
+
padding: string;
|
|
4099
|
+
borderRadius: string;
|
|
4100
|
+
marginRight: string;
|
|
4101
|
+
fontSize: string;
|
|
4102
|
+
fontWeight: number;
|
|
4103
|
+
};
|
|
4069
4104
|
'&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
|
|
4070
4105
|
[x: number]: {
|
|
4071
4106
|
borderRadius: any;
|
|
@@ -4258,6 +4293,7 @@ declare const theme: {
|
|
|
4258
4293
|
};
|
|
4259
4294
|
};
|
|
4260
4295
|
'& .SCFeedObject-medias-section': {
|
|
4296
|
+
margin: any;
|
|
4261
4297
|
'& .SCFeedObjectMediaPreview-root': {
|
|
4262
4298
|
margin: any;
|
|
4263
4299
|
};
|
|
@@ -4362,6 +4398,9 @@ declare const theme: {
|
|
|
4362
4398
|
'& .SCCommentObject-skeleton-root': {
|
|
4363
4399
|
background: string;
|
|
4364
4400
|
marginTop: number;
|
|
4401
|
+
/**
|
|
4402
|
+
* Style assets - Imports - Start
|
|
4403
|
+
*/
|
|
4365
4404
|
marginBottom: string;
|
|
4366
4405
|
'& .SCBaseItem-text': {
|
|
4367
4406
|
'& .SCWidget-root': {
|
|
@@ -4386,9 +4425,7 @@ declare const theme: {
|
|
|
4386
4425
|
};
|
|
4387
4426
|
};
|
|
4388
4427
|
};
|
|
4389
|
-
};
|
|
4390
|
-
* Export default theme
|
|
4391
|
-
*/
|
|
4428
|
+
};
|
|
4392
4429
|
};
|
|
4393
4430
|
};
|
|
4394
4431
|
'&.SCFeedObject-snippet': {
|
|
@@ -4609,6 +4646,9 @@ declare const theme: {
|
|
|
4609
4646
|
};
|
|
4610
4647
|
};
|
|
4611
4648
|
};
|
|
4649
|
+
/**
|
|
4650
|
+
* Style assets - Exports - End
|
|
4651
|
+
*/
|
|
4612
4652
|
pollObjectChoicesRoot: ({ theme }: any) => {
|
|
4613
4653
|
backgroundColor: string;
|
|
4614
4654
|
marginBottom: any;
|
|
@@ -4769,6 +4809,7 @@ declare const theme: {
|
|
|
4769
4809
|
display: string;
|
|
4770
4810
|
justifyContent: string;
|
|
4771
4811
|
flexDirection: string;
|
|
4812
|
+
flexWrap: string;
|
|
4772
4813
|
'& .SCFooter-item': {
|
|
4773
4814
|
padding: any;
|
|
4774
4815
|
color: any;
|
|
@@ -6476,9 +6517,6 @@ declare const theme: {
|
|
|
6476
6517
|
SCMediaFile: {
|
|
6477
6518
|
styleOverrides: {
|
|
6478
6519
|
displayRoot: ({ theme }: any) => {
|
|
6479
|
-
[x: number]: {
|
|
6480
|
-
minHeight: number;
|
|
6481
|
-
};
|
|
6482
6520
|
textAlign: string;
|
|
6483
6521
|
margin: string;
|
|
6484
6522
|
width: string;
|
|
@@ -6640,15 +6678,17 @@ declare const theme: {
|
|
|
6640
6678
|
docRoot: ({ theme }: {
|
|
6641
6679
|
theme: any;
|
|
6642
6680
|
}) => {
|
|
6643
|
-
borderRadius: string;
|
|
6644
6681
|
border: string;
|
|
6682
|
+
borderRadius: string;
|
|
6645
6683
|
padding: any;
|
|
6646
6684
|
flexDirection: string;
|
|
6647
6685
|
gap: string;
|
|
6648
|
-
'& .SCMediaFile-image': {
|
|
6649
|
-
width: string;
|
|
6650
|
-
height: string;
|
|
6686
|
+
'& .SCMediaFile-image-wrapper': {
|
|
6651
6687
|
flexShrink: number;
|
|
6688
|
+
padding: number;
|
|
6689
|
+
'&:hover': {
|
|
6690
|
+
backgroundColor: string;
|
|
6691
|
+
};
|
|
6652
6692
|
};
|
|
6653
6693
|
'& .SCMediaFile-text-wrapper': {
|
|
6654
6694
|
[x: number]: {
|
|
@@ -8016,9 +8056,6 @@ declare const theme: {
|
|
|
8016
8056
|
alignItems: string;
|
|
8017
8057
|
marginRight: any;
|
|
8018
8058
|
'& .MuiIcon-root': {
|
|
8019
|
-
/**
|
|
8020
|
-
* Style assets - Imports - Start
|
|
8021
|
-
*/
|
|
8022
8059
|
margin: any;
|
|
8023
8060
|
};
|
|
8024
8061
|
};
|
|
@@ -9018,6 +9055,23 @@ declare const theme: {
|
|
|
9018
9055
|
};
|
|
9019
9056
|
};
|
|
9020
9057
|
};
|
|
9058
|
+
SCUserAutocomplete: {
|
|
9059
|
+
styleOverrides: {
|
|
9060
|
+
root: ({ theme }: any) => {
|
|
9061
|
+
'& .SCUserAutocomplete-info': {
|
|
9062
|
+
[x: number]: {
|
|
9063
|
+
alignItems: string;
|
|
9064
|
+
};
|
|
9065
|
+
marginTop: any;
|
|
9066
|
+
display: string;
|
|
9067
|
+
'& .MuiIcon-root': {
|
|
9068
|
+
marginRight: any;
|
|
9069
|
+
};
|
|
9070
|
+
};
|
|
9071
|
+
};
|
|
9072
|
+
autocompleteRoot: ({ theme }: any) => {};
|
|
9073
|
+
};
|
|
9074
|
+
};
|
|
9021
9075
|
SCUserCategoriesFollowedWidget: {
|
|
9022
9076
|
styleOverrides: {
|
|
9023
9077
|
root: ({ theme }: any) => {};
|
|
@@ -9744,6 +9798,8 @@ declare const theme: {
|
|
|
9744
9798
|
};
|
|
9745
9799
|
'& .SCEvent-snippet-secondary': {
|
|
9746
9800
|
color: any;
|
|
9801
|
+
display: string;
|
|
9802
|
+
alignItems: string;
|
|
9747
9803
|
};
|
|
9748
9804
|
};
|
|
9749
9805
|
};
|
|
@@ -10833,7 +10889,7 @@ declare const theme: {
|
|
|
10833
10889
|
};
|
|
10834
10890
|
};
|
|
10835
10891
|
};
|
|
10836
|
-
popperRoot: (
|
|
10892
|
+
popperRoot: () => {
|
|
10837
10893
|
zIndex: number;
|
|
10838
10894
|
'& .SCVoteButton-reaction .MuiIcon-root': {
|
|
10839
10895
|
fontSize: string;
|
|
@@ -12142,6 +12198,9 @@ declare const theme: {
|
|
|
12142
12198
|
padding: string;
|
|
12143
12199
|
backgroundColor: string;
|
|
12144
12200
|
color: string;
|
|
12201
|
+
"& > .community-icons": {
|
|
12202
|
+
fontSize: string;
|
|
12203
|
+
};
|
|
12145
12204
|
};
|
|
12146
12205
|
"& .SCPaywallsConfigurator-product-content": {
|
|
12147
12206
|
flexGrow: number;
|
|
@@ -12220,6 +12279,7 @@ declare const theme: {
|
|
|
12220
12279
|
root: ({ theme }: any) => {
|
|
12221
12280
|
display: string;
|
|
12222
12281
|
flexDirection: string;
|
|
12282
|
+
marginTop: string;
|
|
12223
12283
|
"& .SCPdfPreview-document-pdf-wrapper": {
|
|
12224
12284
|
filter: string;
|
|
12225
12285
|
};
|
|
@@ -12239,6 +12299,9 @@ declare const theme: {
|
|
|
12239
12299
|
mixBlendMode: string;
|
|
12240
12300
|
opacity: number;
|
|
12241
12301
|
};
|
|
12302
|
+
'& .react-pdf__Page__canvas': {
|
|
12303
|
+
margin: string;
|
|
12304
|
+
};
|
|
12242
12305
|
};
|
|
12243
12306
|
};
|
|
12244
12307
|
};
|
|
@@ -12337,6 +12400,15 @@ declare const theme: {
|
|
|
12337
12400
|
};
|
|
12338
12401
|
};
|
|
12339
12402
|
};
|
|
12403
|
+
SCFooterWidget: {
|
|
12404
|
+
styleOverrides: {
|
|
12405
|
+
root: ({ theme }: any) => {
|
|
12406
|
+
'& .SCFooterWidget-content': {
|
|
12407
|
+
paddingBottom: any;
|
|
12408
|
+
};
|
|
12409
|
+
};
|
|
12410
|
+
};
|
|
12411
|
+
};
|
|
12340
12412
|
};
|
|
12341
12413
|
selfcommunity: {
|
|
12342
12414
|
user: {
|
package/lib/esm/index.js
CHANGED
|
@@ -183,6 +183,7 @@ import SCToastNotifications from './components/SCToastNotifications';
|
|
|
183
183
|
import SCUser from './components/SCUser';
|
|
184
184
|
import SCUserActionIconButton from './components/SCUserActionIconButton';
|
|
185
185
|
import SCUserAvatar from './components/SCUserAvatar';
|
|
186
|
+
import SCUserAutocomplete from './components/SCUserAutocomplete';
|
|
186
187
|
import SCUserCategoriesFollowedWidget from './components/SCUserCategoriesFollowedWidget';
|
|
187
188
|
import SCUserConnectionsRequestsSentWidget from './components/SCUserConnectionsRequestsSentWidget';
|
|
188
189
|
import SCUserConnectionsRequestsWidget from './components/SCUserConnectionsRequestsWidget';
|
|
@@ -217,6 +218,7 @@ import SCPaywallsConfigurator from './components/SCPaywallsConfigurator';
|
|
|
217
218
|
import SCPdfPreview from './components/SCPdfPreview';
|
|
218
219
|
import SCPaymentOrders from './components/SCPaymentOrders';
|
|
219
220
|
import SCCheckoutHeaderInfoWidget from './components/SCCheckoutHeaderInfoWidget';
|
|
221
|
+
import SCFooterWidget from './components/SCFooterWidget';
|
|
220
222
|
/**
|
|
221
223
|
* Style fragments - Imports - End
|
|
222
224
|
*/
|
|
@@ -446,6 +448,7 @@ const theme = {
|
|
|
446
448
|
SCUser,
|
|
447
449
|
SCUserActionIconButton,
|
|
448
450
|
SCUserAvatar,
|
|
451
|
+
SCUserAutocomplete,
|
|
449
452
|
SCUserCategoriesFollowedWidget,
|
|
450
453
|
SCUserConnectionsRequestsSentWidget,
|
|
451
454
|
SCUserConnectionsRequestsWidget,
|
|
@@ -512,7 +515,8 @@ const theme = {
|
|
|
512
515
|
SCPaywallsConfigurator,
|
|
513
516
|
SCPdfPreview,
|
|
514
517
|
SCPaymentOrders,
|
|
515
|
-
SCCheckoutHeaderInfoWidget
|
|
518
|
+
SCCheckoutHeaderInfoWidget,
|
|
519
|
+
SCFooterWidget
|
|
516
520
|
},
|
|
517
521
|
selfcommunity: {
|
|
518
522
|
user: {
|