@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.
- 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 +87 -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 +87 -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
|
+
padding: 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': {
|
|
@@ -4769,6 +4806,7 @@ declare const theme: {
|
|
|
4769
4806
|
display: string;
|
|
4770
4807
|
justifyContent: string;
|
|
4771
4808
|
flexDirection: string;
|
|
4809
|
+
flexWrap: string;
|
|
4772
4810
|
'& .SCFooter-item': {
|
|
4773
4811
|
padding: any;
|
|
4774
4812
|
color: any;
|
|
@@ -6476,9 +6514,6 @@ declare const theme: {
|
|
|
6476
6514
|
SCMediaFile: {
|
|
6477
6515
|
styleOverrides: {
|
|
6478
6516
|
displayRoot: ({ theme }: any) => {
|
|
6479
|
-
[x: number]: {
|
|
6480
|
-
minHeight: number;
|
|
6481
|
-
};
|
|
6482
6517
|
textAlign: string;
|
|
6483
6518
|
margin: string;
|
|
6484
6519
|
width: string;
|
|
@@ -6640,15 +6675,17 @@ declare const theme: {
|
|
|
6640
6675
|
docRoot: ({ theme }: {
|
|
6641
6676
|
theme: any;
|
|
6642
6677
|
}) => {
|
|
6643
|
-
borderRadius: string;
|
|
6644
6678
|
border: string;
|
|
6679
|
+
borderRadius: string;
|
|
6645
6680
|
padding: any;
|
|
6646
6681
|
flexDirection: string;
|
|
6647
6682
|
gap: string;
|
|
6648
|
-
'& .SCMediaFile-image': {
|
|
6649
|
-
width: string;
|
|
6650
|
-
height: string;
|
|
6683
|
+
'& .SCMediaFile-image-wrapper': {
|
|
6651
6684
|
flexShrink: number;
|
|
6685
|
+
padding: number;
|
|
6686
|
+
'&:hover': {
|
|
6687
|
+
backgroundColor: string;
|
|
6688
|
+
};
|
|
6652
6689
|
};
|
|
6653
6690
|
'& .SCMediaFile-text-wrapper': {
|
|
6654
6691
|
[x: number]: {
|
|
@@ -8016,9 +8053,6 @@ declare const theme: {
|
|
|
8016
8053
|
alignItems: string;
|
|
8017
8054
|
marginRight: any;
|
|
8018
8055
|
'& .MuiIcon-root': {
|
|
8019
|
-
/**
|
|
8020
|
-
* Style assets - Imports - Start
|
|
8021
|
-
*/
|
|
8022
8056
|
margin: any;
|
|
8023
8057
|
};
|
|
8024
8058
|
};
|
|
@@ -9018,6 +9052,23 @@ declare const theme: {
|
|
|
9018
9052
|
};
|
|
9019
9053
|
};
|
|
9020
9054
|
};
|
|
9055
|
+
SCUserAutocomplete: {
|
|
9056
|
+
styleOverrides: {
|
|
9057
|
+
root: ({ theme }: any) => {
|
|
9058
|
+
'& .SCUserAutocomplete-info': {
|
|
9059
|
+
[x: number]: {
|
|
9060
|
+
alignItems: string;
|
|
9061
|
+
};
|
|
9062
|
+
marginTop: any;
|
|
9063
|
+
display: string;
|
|
9064
|
+
'& .MuiIcon-root': {
|
|
9065
|
+
marginRight: any;
|
|
9066
|
+
};
|
|
9067
|
+
};
|
|
9068
|
+
};
|
|
9069
|
+
autocompleteRoot: ({ theme }: any) => {};
|
|
9070
|
+
};
|
|
9071
|
+
};
|
|
9021
9072
|
SCUserCategoriesFollowedWidget: {
|
|
9022
9073
|
styleOverrides: {
|
|
9023
9074
|
root: ({ theme }: any) => {};
|
|
@@ -9744,6 +9795,8 @@ declare const theme: {
|
|
|
9744
9795
|
};
|
|
9745
9796
|
'& .SCEvent-snippet-secondary': {
|
|
9746
9797
|
color: any;
|
|
9798
|
+
display: string;
|
|
9799
|
+
alignItems: string;
|
|
9747
9800
|
};
|
|
9748
9801
|
};
|
|
9749
9802
|
};
|
|
@@ -10833,7 +10886,7 @@ declare const theme: {
|
|
|
10833
10886
|
};
|
|
10834
10887
|
};
|
|
10835
10888
|
};
|
|
10836
|
-
popperRoot: (
|
|
10889
|
+
popperRoot: () => {
|
|
10837
10890
|
zIndex: number;
|
|
10838
10891
|
'& .SCVoteButton-reaction .MuiIcon-root': {
|
|
10839
10892
|
fontSize: string;
|
|
@@ -12142,6 +12195,9 @@ declare const theme: {
|
|
|
12142
12195
|
padding: string;
|
|
12143
12196
|
backgroundColor: string;
|
|
12144
12197
|
color: string;
|
|
12198
|
+
"& > .community-icons": {
|
|
12199
|
+
fontSize: string;
|
|
12200
|
+
};
|
|
12145
12201
|
};
|
|
12146
12202
|
"& .SCPaywallsConfigurator-product-content": {
|
|
12147
12203
|
flexGrow: number;
|
|
@@ -12220,6 +12276,7 @@ declare const theme: {
|
|
|
12220
12276
|
root: ({ theme }: any) => {
|
|
12221
12277
|
display: string;
|
|
12222
12278
|
flexDirection: string;
|
|
12279
|
+
marginTop: string;
|
|
12223
12280
|
"& .SCPdfPreview-document-pdf-wrapper": {
|
|
12224
12281
|
filter: string;
|
|
12225
12282
|
};
|
|
@@ -12239,6 +12296,9 @@ declare const theme: {
|
|
|
12239
12296
|
mixBlendMode: string;
|
|
12240
12297
|
opacity: number;
|
|
12241
12298
|
};
|
|
12299
|
+
'& .react-pdf__Page__canvas': {
|
|
12300
|
+
margin: string;
|
|
12301
|
+
};
|
|
12242
12302
|
};
|
|
12243
12303
|
};
|
|
12244
12304
|
};
|
|
@@ -12337,6 +12397,15 @@ declare const theme: {
|
|
|
12337
12397
|
};
|
|
12338
12398
|
};
|
|
12339
12399
|
};
|
|
12400
|
+
SCFooterWidget: {
|
|
12401
|
+
styleOverrides: {
|
|
12402
|
+
root: ({ theme }: any) => {
|
|
12403
|
+
'& .SCFooterWidget-content': {
|
|
12404
|
+
paddingBottom: any;
|
|
12405
|
+
};
|
|
12406
|
+
};
|
|
12407
|
+
};
|
|
12408
|
+
};
|
|
12340
12409
|
};
|
|
12341
12410
|
selfcommunity: {
|
|
12342
12411
|
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: {
|