@selfcommunity/react-theme-default 0.5.0-alpha.0 → 0.5.0-alpha.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/MuiAppBar.js +2 -2
- package/lib/cjs/components/SCBottomNavigation.js +2 -2
- package/lib/cjs/components/SCBuyButton.d.ts +15 -0
- package/lib/cjs/components/SCBuyButton.js +13 -0
- package/lib/cjs/components/SCCategory.d.ts +8 -0
- package/lib/cjs/components/SCCategory.js +8 -0
- package/lib/cjs/components/SCCategoryFollowButton.d.ts +8 -0
- package/lib/cjs/components/SCCategoryFollowButton.js +10 -0
- package/lib/cjs/components/SCCategoryHeader.d.ts +4 -0
- package/lib/cjs/components/SCCategoryHeader.js +5 -1
- package/lib/cjs/components/SCCheckout.d.ts +115 -0
- package/lib/cjs/components/SCCheckout.js +116 -0
- package/lib/cjs/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
- package/lib/cjs/components/SCCheckoutHeaderInfoWidget.js +34 -0
- package/lib/cjs/components/SCCheckoutReturnDialog.d.ts +26 -0
- package/lib/cjs/components/SCCheckoutReturnDialog.js +26 -0
- package/lib/cjs/components/SCComposer.d.ts +16 -0
- package/lib/cjs/components/SCComposer.js +16 -0
- package/lib/cjs/components/SCCourse.d.ts +19 -1
- package/lib/cjs/components/SCCourse.js +19 -1
- package/lib/cjs/components/SCCourseDashboard.d.ts +22 -0
- package/lib/cjs/components/SCCourseDashboard.js +22 -0
- package/lib/cjs/components/SCCourses.d.ts +3 -0
- package/lib/cjs/components/SCCourses.js +3 -0
- package/lib/cjs/components/SCEditCourse.d.ts +7 -0
- package/lib/cjs/components/SCEditCourse.js +7 -0
- package/lib/cjs/components/SCEventForm.d.ts +3 -0
- package/lib/cjs/components/SCEventForm.js +3 -0
- package/lib/cjs/components/SCEventHeader.d.ts +12 -0
- package/lib/cjs/components/SCEventHeader.js +12 -0
- package/lib/cjs/components/SCEventSubscribeButton.d.ts +12 -0
- package/lib/cjs/components/SCEventSubscribeButton.js +10 -0
- package/lib/cjs/components/SCFeedObject.d.ts +17 -10
- package/lib/cjs/components/SCFeedObject.js +18 -11
- package/lib/cjs/components/SCGroup.d.ts +6 -2
- package/lib/cjs/components/SCGroup.js +6 -2
- package/lib/cjs/components/SCGroupHeader.d.ts +12 -0
- package/lib/cjs/components/SCGroupHeader.js +12 -0
- package/lib/cjs/components/SCGroupSubscribeButton.d.ts +18 -0
- package/lib/cjs/components/SCGroupSubscribeButton.js +18 -0
- package/lib/cjs/components/SCHiddenPurchasableContent.d.ts +8 -0
- package/lib/cjs/components/SCHiddenPurchasableContent.js +10 -0
- package/lib/cjs/components/SCMediaFile.d.ts +58 -5
- package/lib/cjs/components/SCMediaFile.js +56 -5
- package/lib/cjs/components/SCMediaLink.d.ts +2 -1
- package/lib/cjs/components/SCMediaLink.js +2 -1
- package/lib/cjs/components/SCNavigationToolbar.js +2 -2
- package/lib/cjs/components/SCNavigationToolbarMobile.js +2 -2
- package/lib/cjs/components/SCPaymentOrder.d.ts +22 -0
- package/lib/cjs/components/SCPaymentOrder.js +20 -0
- package/lib/cjs/components/SCPaymentOrderPdfButton.d.ts +16 -0
- package/lib/cjs/components/SCPaymentOrderPdfButton.js +16 -0
- package/lib/cjs/components/SCPaymentOrders.d.ts +62 -0
- package/lib/cjs/components/SCPaymentOrders.js +64 -0
- package/lib/cjs/components/SCPaymentProduct.d.ts +49 -0
- package/lib/cjs/components/SCPaymentProduct.js +47 -0
- package/lib/cjs/components/SCPaymentProductPrice.d.ts +39 -0
- package/lib/cjs/components/SCPaymentProductPrice.js +37 -0
- package/lib/cjs/components/SCPaymentProducts.d.ts +15 -0
- package/lib/cjs/components/SCPaymentProducts.js +13 -0
- package/lib/cjs/components/SCPaywalls.d.ts +12 -0
- package/lib/cjs/components/SCPaywalls.js +12 -0
- package/lib/cjs/components/SCPaywallsConfigurator.d.ts +157 -0
- package/lib/cjs/components/SCPaywallsConfigurator.js +160 -0
- package/lib/cjs/components/SCPdfPreview.d.ts +29 -0
- package/lib/cjs/components/SCPdfPreview.js +31 -0
- package/lib/cjs/components/SCSearchAutocomplete.js +7 -7
- package/lib/cjs/fonts/community/icons.eot +0 -0
- package/lib/cjs/fonts/community/icons.svg +75 -69
- package/lib/cjs/fonts/community/icons.ttf +0 -0
- package/lib/cjs/fonts/community/icons.woff +0 -0
- package/lib/cjs/fonts/community/icons.woff2 +0 -0
- package/lib/cjs/fonts/community-icons.css +133 -126
- package/lib/cjs/index.d.ts +849 -39
- package/lib/cjs/index.js +47 -1
- package/lib/esm/components/MuiAppBar.js +1 -1
- package/lib/esm/components/SCBottomNavigation.js +1 -1
- package/lib/esm/components/SCBuyButton.d.ts +15 -0
- package/lib/esm/components/SCBuyButton.js +11 -0
- package/lib/esm/components/SCCategory.d.ts +8 -0
- package/lib/esm/components/SCCategory.js +8 -0
- package/lib/esm/components/SCCategoryFollowButton.d.ts +8 -0
- package/lib/esm/components/SCCategoryFollowButton.js +8 -0
- package/lib/esm/components/SCCategoryHeader.d.ts +4 -0
- package/lib/esm/components/SCCategoryHeader.js +5 -1
- package/lib/esm/components/SCCheckout.d.ts +115 -0
- package/lib/esm/components/SCCheckout.js +114 -0
- package/lib/esm/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
- package/lib/esm/components/SCCheckoutHeaderInfoWidget.js +32 -0
- package/lib/esm/components/SCCheckoutReturnDialog.d.ts +26 -0
- package/lib/esm/components/SCCheckoutReturnDialog.js +24 -0
- package/lib/esm/components/SCComposer.d.ts +16 -0
- package/lib/esm/components/SCComposer.js +16 -0
- package/lib/esm/components/SCCourse.d.ts +19 -1
- package/lib/esm/components/SCCourse.js +19 -1
- package/lib/esm/components/SCCourseDashboard.d.ts +22 -0
- package/lib/esm/components/SCCourseDashboard.js +22 -0
- package/lib/esm/components/SCCourses.d.ts +3 -0
- package/lib/esm/components/SCCourses.js +3 -0
- package/lib/esm/components/SCEditCourse.d.ts +7 -0
- package/lib/esm/components/SCEditCourse.js +7 -0
- package/lib/esm/components/SCEventForm.d.ts +3 -0
- package/lib/esm/components/SCEventForm.js +3 -0
- package/lib/esm/components/SCEventHeader.d.ts +12 -0
- package/lib/esm/components/SCEventHeader.js +12 -0
- package/lib/esm/components/SCEventSubscribeButton.d.ts +12 -0
- package/lib/esm/components/SCEventSubscribeButton.js +10 -0
- package/lib/esm/components/SCFeedObject.d.ts +17 -10
- package/lib/esm/components/SCFeedObject.js +18 -11
- package/lib/esm/components/SCGroup.d.ts +6 -2
- package/lib/esm/components/SCGroup.js +6 -2
- package/lib/esm/components/SCGroupHeader.d.ts +12 -0
- package/lib/esm/components/SCGroupHeader.js +12 -0
- package/lib/esm/components/SCGroupSubscribeButton.d.ts +18 -0
- package/lib/esm/components/SCGroupSubscribeButton.js +16 -0
- package/lib/esm/components/SCHiddenPurchasableContent.d.ts +8 -0
- package/lib/esm/components/SCHiddenPurchasableContent.js +8 -0
- package/lib/esm/components/SCMediaFile.d.ts +58 -5
- package/lib/esm/components/SCMediaFile.js +56 -5
- package/lib/esm/components/SCMediaLink.d.ts +2 -1
- package/lib/esm/components/SCMediaLink.js +2 -1
- package/lib/esm/components/SCNavigationToolbar.js +1 -1
- package/lib/esm/components/SCNavigationToolbarMobile.js +1 -1
- package/lib/esm/components/SCPaymentOrder.d.ts +22 -0
- package/lib/esm/components/SCPaymentOrder.js +18 -0
- package/lib/esm/components/SCPaymentOrderPdfButton.d.ts +16 -0
- package/lib/esm/components/SCPaymentOrderPdfButton.js +14 -0
- package/lib/esm/components/SCPaymentOrders.d.ts +62 -0
- package/lib/esm/components/SCPaymentOrders.js +62 -0
- package/lib/esm/components/SCPaymentProduct.d.ts +49 -0
- package/lib/esm/components/SCPaymentProduct.js +45 -0
- package/lib/esm/components/SCPaymentProductPrice.d.ts +39 -0
- package/lib/esm/components/SCPaymentProductPrice.js +35 -0
- package/lib/esm/components/SCPaymentProducts.d.ts +15 -0
- package/lib/esm/components/SCPaymentProducts.js +11 -0
- package/lib/esm/components/SCPaywalls.d.ts +12 -0
- package/lib/esm/components/SCPaywalls.js +10 -0
- package/lib/esm/components/SCPaywallsConfigurator.d.ts +157 -0
- package/lib/esm/components/SCPaywallsConfigurator.js +158 -0
- package/lib/esm/components/SCPdfPreview.d.ts +29 -0
- package/lib/esm/components/SCPdfPreview.js +29 -0
- package/lib/esm/components/SCSearchAutocomplete.js +1 -1
- package/lib/esm/fonts/community/icons.eot +0 -0
- package/lib/esm/fonts/community/icons.svg +75 -69
- package/lib/esm/fonts/community/icons.ttf +0 -0
- package/lib/esm/fonts/community/icons.woff +0 -0
- package/lib/esm/fonts/community/icons.woff2 +0 -0
- package/lib/esm/fonts/community-icons.css +133 -126
- package/lib/esm/index.d.ts +849 -39
- package/lib/esm/index.js +47 -1
- package/lib/umd/community/icons.eot +0 -0
- package/lib/umd/community/icons.svg +75 -69
- package/lib/umd/community/icons.ttf +0 -0
- package/lib/umd/community/icons.woff +0 -0
- package/lib/umd/community/icons.woff2 +0 -0
- package/lib/umd/react-theme-default.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: any) => {
|
|
4
|
+
"& .SCPaywallsConfigurator-new-product": {
|
|
5
|
+
background: string;
|
|
6
|
+
padding: any;
|
|
7
|
+
marginTop: any;
|
|
8
|
+
borderRadius: any;
|
|
9
|
+
};
|
|
10
|
+
"& .SCPaywallsConfigurator-no-product": {
|
|
11
|
+
textDecoration: string;
|
|
12
|
+
paddingLeft: number;
|
|
13
|
+
color: "#bdbdbd";
|
|
14
|
+
};
|
|
15
|
+
"& .SCPaywallsConfigurator-content-access-type": {
|
|
16
|
+
'& > p': {
|
|
17
|
+
marginBottom: any;
|
|
18
|
+
};
|
|
19
|
+
'& .MuiPaper-root': {
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
'& .MuiAccordion-root:first-of-type': {
|
|
23
|
+
borderTopLeftRadius: number;
|
|
24
|
+
borderTopRightRadius: number;
|
|
25
|
+
};
|
|
26
|
+
'& .MuiAccordion-root:last-of-type': {
|
|
27
|
+
borderBottomLeftRadius: number;
|
|
28
|
+
borderBottomRightRadius: number;
|
|
29
|
+
};
|
|
30
|
+
"& .SCPaywallsConfigurator-selected-payment-products-list": {
|
|
31
|
+
borderTop: string;
|
|
32
|
+
marginTop: number;
|
|
33
|
+
};
|
|
34
|
+
"& .SCPaywallsConfigurator-add-payment-product": {
|
|
35
|
+
position: string;
|
|
36
|
+
left: number;
|
|
37
|
+
'& .MuiButton-startIcon': {
|
|
38
|
+
fontSize: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
paymentProductsAutocompletePopperRoot: ({ theme }: any) => {
|
|
44
|
+
"& .MuiAutocomplete-paper": {
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
margin: number;
|
|
47
|
+
color: string;
|
|
48
|
+
fontSize: number;
|
|
49
|
+
};
|
|
50
|
+
"& .MuiAutocomplete-listbox": {
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
padding: number;
|
|
53
|
+
"& .MuiAutocomplete-option": {
|
|
54
|
+
minHeight: string;
|
|
55
|
+
alignItems: string;
|
|
56
|
+
padding: number;
|
|
57
|
+
borderBottom: string;
|
|
58
|
+
'&[aria-selected="true"]': {
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
};
|
|
61
|
+
"&.MuiAutocomplete-focused, &.MuiAutocomplete-focused[aria-selected=\"true\"]": {
|
|
62
|
+
backgroundColor: any;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
"&.MuiAutocomplete-popperDisablePortal": {
|
|
67
|
+
position: string;
|
|
68
|
+
};
|
|
69
|
+
"& .SCPaywallsConfigurator-product-check-icon": {
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
margin: string;
|
|
73
|
+
};
|
|
74
|
+
"& .SCPaywallsConfigurator-product-card-icon": {
|
|
75
|
+
width: number;
|
|
76
|
+
height: number;
|
|
77
|
+
flexShrink: number;
|
|
78
|
+
borderRadius: string;
|
|
79
|
+
marginRight: any;
|
|
80
|
+
marginTop: string;
|
|
81
|
+
padding: string;
|
|
82
|
+
backgroundColor: string;
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
|
85
|
+
"& .SCPaywallsConfigurator-product-content": {
|
|
86
|
+
flexGrow: number;
|
|
87
|
+
'& span': {
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
"& .SCPaywallsConfigurator-product-remove-icon": {
|
|
92
|
+
opacity: number;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
};
|
|
96
|
+
"& .SCPaywallsConfigurator-autocomplete-footer": {
|
|
97
|
+
backgroundColor: "#bdbdbd";
|
|
98
|
+
};
|
|
99
|
+
"& .SCPaywallsConfigurator-autocomplete-products-loading": {
|
|
100
|
+
width: string;
|
|
101
|
+
minHeight: number;
|
|
102
|
+
display: string;
|
|
103
|
+
alignItems: string;
|
|
104
|
+
justifyContent: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
paymentProductsPopperRoot: ({ theme }: any) => {
|
|
108
|
+
border: string;
|
|
109
|
+
boxShadow: string;
|
|
110
|
+
borderRadius: number;
|
|
111
|
+
width: number;
|
|
112
|
+
zIndex: any;
|
|
113
|
+
fontSize: number;
|
|
114
|
+
color: string;
|
|
115
|
+
backgroundColor: string;
|
|
116
|
+
'& .MuiPaper-root': {
|
|
117
|
+
borderRadius: number;
|
|
118
|
+
};
|
|
119
|
+
"& .SCPaywallsConfigurator-payment-products-popper-title": {
|
|
120
|
+
borderBottom: string;
|
|
121
|
+
padding: string;
|
|
122
|
+
fontWeight: number;
|
|
123
|
+
};
|
|
124
|
+
"& .SCPaywallsConfigurator-payment-products-popper-footer": {
|
|
125
|
+
borderTop: string;
|
|
126
|
+
padding: string;
|
|
127
|
+
display: string;
|
|
128
|
+
alignItems: string;
|
|
129
|
+
justifyContent: string;
|
|
130
|
+
'& button': {
|
|
131
|
+
padding: string;
|
|
132
|
+
'& .MuiIcon-root': {
|
|
133
|
+
fontSize: number;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
filterInputRoot: ({ theme }: any) => {
|
|
139
|
+
padding: number;
|
|
140
|
+
width: string;
|
|
141
|
+
borderBottom: string;
|
|
142
|
+
'& input': {
|
|
143
|
+
borderRadius: number;
|
|
144
|
+
backgroundColor: string;
|
|
145
|
+
padding: number;
|
|
146
|
+
transition: any;
|
|
147
|
+
border: string;
|
|
148
|
+
fontSize: number;
|
|
149
|
+
'&:focus': {
|
|
150
|
+
boxShadow: string;
|
|
151
|
+
borderColor: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
export default Component;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { grey } from '@mui/material/colors';
|
|
2
|
+
const Component = {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: ({ theme }) => ({
|
|
5
|
+
[`& .SCPaywallsConfigurator-new-product`]: {
|
|
6
|
+
background: '#eeeeee',
|
|
7
|
+
padding: theme.spacing(2),
|
|
8
|
+
marginTop: theme.spacing(),
|
|
9
|
+
borderRadius: theme.spacing(1)
|
|
10
|
+
},
|
|
11
|
+
[`& .SCPaywallsConfigurator-no-product`]: {
|
|
12
|
+
textDecoration: 'italic',
|
|
13
|
+
paddingLeft: 0,
|
|
14
|
+
color: grey[400]
|
|
15
|
+
},
|
|
16
|
+
[`& .SCPaywallsConfigurator-content-access-type`]: {
|
|
17
|
+
'& > p': {
|
|
18
|
+
marginBottom: theme.spacing(2)
|
|
19
|
+
},
|
|
20
|
+
'& .MuiPaper-root': {
|
|
21
|
+
borderColor: '#c6c6c6'
|
|
22
|
+
},
|
|
23
|
+
'& .MuiAccordion-root:first-of-type': {
|
|
24
|
+
borderTopLeftRadius: 5,
|
|
25
|
+
borderTopRightRadius: 5
|
|
26
|
+
},
|
|
27
|
+
'& .MuiAccordion-root:last-of-type': {
|
|
28
|
+
borderBottomLeftRadius: 5,
|
|
29
|
+
borderBottomRightRadius: 5
|
|
30
|
+
},
|
|
31
|
+
[`& .SCPaywallsConfigurator-selected-payment-products-list`]: {
|
|
32
|
+
borderTop: '1px solid',
|
|
33
|
+
marginTop: 10
|
|
34
|
+
},
|
|
35
|
+
[`& .SCPaywallsConfigurator-add-payment-product`]: {
|
|
36
|
+
position: 'relative',
|
|
37
|
+
left: -23,
|
|
38
|
+
'& .MuiButton-startIcon': {
|
|
39
|
+
fontSize: '15px'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
paymentProductsAutocompletePopperRoot: ({ theme }) => ({
|
|
45
|
+
[`& .MuiAutocomplete-paper`]: {
|
|
46
|
+
boxShadow: 'none',
|
|
47
|
+
margin: 0,
|
|
48
|
+
color: 'inherit',
|
|
49
|
+
fontSize: 13
|
|
50
|
+
},
|
|
51
|
+
[`& .MuiAutocomplete-listbox`]: {
|
|
52
|
+
backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#1c2128',
|
|
53
|
+
padding: 0,
|
|
54
|
+
[`& .MuiAutocomplete-option`]: {
|
|
55
|
+
minHeight: 'auto',
|
|
56
|
+
alignItems: 'flex-start',
|
|
57
|
+
padding: 8,
|
|
58
|
+
borderBottom: `1px solid ${theme.palette.mode === 'light' ? ' #eaecef' : '#30363d'}`,
|
|
59
|
+
'&[aria-selected="true"]': {
|
|
60
|
+
backgroundColor: 'transparent'
|
|
61
|
+
},
|
|
62
|
+
[`&.MuiAutocomplete-focused, &.MuiAutocomplete-focused[aria-selected="true"]`]: {
|
|
63
|
+
backgroundColor: theme.palette.action.hover
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
[`&.MuiAutocomplete-popperDisablePortal`]: {
|
|
68
|
+
position: 'relative'
|
|
69
|
+
},
|
|
70
|
+
[`& .SCPaywallsConfigurator-product-check-icon`]: {
|
|
71
|
+
width: 17,
|
|
72
|
+
height: 17,
|
|
73
|
+
margin: '3px 5px 0px -1px'
|
|
74
|
+
},
|
|
75
|
+
[`& .SCPaywallsConfigurator-product-card-icon`]: {
|
|
76
|
+
width: 14,
|
|
77
|
+
height: 14,
|
|
78
|
+
flexShrink: 0,
|
|
79
|
+
borderRadius: '3px',
|
|
80
|
+
marginRight: theme.spacing(),
|
|
81
|
+
marginTop: '2px',
|
|
82
|
+
padding: '3px',
|
|
83
|
+
backgroundColor: 'red',
|
|
84
|
+
color: 'white'
|
|
85
|
+
},
|
|
86
|
+
[`& .SCPaywallsConfigurator-product-content`]: {
|
|
87
|
+
flexGrow: 1,
|
|
88
|
+
'& span': {
|
|
89
|
+
color: '#8b949e'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
[`& .SCPaywallsConfigurator-product-remove-icon`]: {
|
|
93
|
+
opacity: 0.6,
|
|
94
|
+
width: 18,
|
|
95
|
+
height: 18
|
|
96
|
+
},
|
|
97
|
+
[`& .SCPaywallsConfigurator-autocomplete-footer`]: {
|
|
98
|
+
backgroundColor: grey[400]
|
|
99
|
+
},
|
|
100
|
+
[`& .SCPaywallsConfigurator-autocomplete-products-loading`]: {
|
|
101
|
+
width: '100%',
|
|
102
|
+
minHeight: 300,
|
|
103
|
+
display: 'flex',
|
|
104
|
+
alignItems: 'center',
|
|
105
|
+
justifyContent: 'center'
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
108
|
+
paymentProductsPopperRoot: ({ theme }) => ({
|
|
109
|
+
border: `1px solid ${theme.palette.mode === 'light' ? '#e1e4e8' : '#30363d'}`,
|
|
110
|
+
boxShadow: `0 8px 24px ${theme.palette.mode === 'light' ? 'rgba(149, 157, 165, 0.2)' : 'rgb(1, 4, 9)'}`,
|
|
111
|
+
borderRadius: 6,
|
|
112
|
+
width: 300,
|
|
113
|
+
zIndex: theme.zIndex.modal,
|
|
114
|
+
fontSize: 13,
|
|
115
|
+
color: theme.palette.mode === 'light' ? '#24292e' : '#c9d1d9',
|
|
116
|
+
backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#1c2128',
|
|
117
|
+
'& .MuiPaper-root': {
|
|
118
|
+
borderRadius: 0
|
|
119
|
+
},
|
|
120
|
+
[`& .SCPaywallsConfigurator-payment-products-popper-title`]: {
|
|
121
|
+
borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
|
|
122
|
+
padding: '8px 10px',
|
|
123
|
+
fontWeight: 600
|
|
124
|
+
},
|
|
125
|
+
[`& .SCPaywallsConfigurator-payment-products-popper-footer`]: {
|
|
126
|
+
borderTop: '1px solid #eaecef',
|
|
127
|
+
padding: '8px',
|
|
128
|
+
display: 'flex',
|
|
129
|
+
alignItems: 'flex-end',
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
'& button': {
|
|
132
|
+
padding: '2px 8px',
|
|
133
|
+
'& .MuiIcon-root': {
|
|
134
|
+
fontSize: 12
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}),
|
|
139
|
+
filterInputRoot: ({ theme }) => ({
|
|
140
|
+
padding: 10,
|
|
141
|
+
width: '100%',
|
|
142
|
+
borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
|
|
143
|
+
'& input': {
|
|
144
|
+
borderRadius: 4,
|
|
145
|
+
backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#0d1117',
|
|
146
|
+
padding: 8,
|
|
147
|
+
transition: theme.transitions.create(['border-color', 'box-shadow']),
|
|
148
|
+
border: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
|
|
149
|
+
fontSize: 14,
|
|
150
|
+
'&:focus': {
|
|
151
|
+
boxShadow: `0px 0px 0px 3px ${theme.palette.mode === 'light' ? 'rgba(3, 102, 214, 0.3)' : 'rgb(12, 45, 107)'}`,
|
|
152
|
+
borderColor: theme.palette.mode === 'light' ? '#0366d6' : '#388bfd'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
export default Component;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const Component: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }: any) => {
|
|
4
|
+
display: string;
|
|
5
|
+
flexDirection: string;
|
|
6
|
+
"& .SCPdfPreview-document-pdf-wrapper": {
|
|
7
|
+
filter: string;
|
|
8
|
+
};
|
|
9
|
+
"& .SCPdfPreview-document-pdf-link": {
|
|
10
|
+
padding: number;
|
|
11
|
+
'&:hover': {
|
|
12
|
+
opacity: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
"& .SCPdfPreview-document-pdf-page": {
|
|
16
|
+
display: string;
|
|
17
|
+
flexDirection: string;
|
|
18
|
+
justifyContent: string;
|
|
19
|
+
marginBottom: any;
|
|
20
|
+
pageBreakAfter: string;
|
|
21
|
+
'& .react-pdf__Page__textContent': {
|
|
22
|
+
mixBlendMode: string;
|
|
23
|
+
opacity: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default Component;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const Component = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: ({ theme }) => ({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
flexDirection: 'column',
|
|
6
|
+
[`& .SCPdfPreview-document-pdf-wrapper`]: {
|
|
7
|
+
filter: 'drop-shadow(0 0 5px #00000040)'
|
|
8
|
+
},
|
|
9
|
+
[`& .SCPdfPreview-document-pdf-link`]: {
|
|
10
|
+
padding: 10,
|
|
11
|
+
'&:hover': {
|
|
12
|
+
opacity: 0.5
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
[`& .SCPdfPreview-document-pdf-page`]: {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'column',
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
marginBottom: theme.spacing(3),
|
|
20
|
+
pageBreakAfter: 'always',
|
|
21
|
+
'& .react-pdf__Page__textContent': {
|
|
22
|
+
mixBlendMode: 'multiply',
|
|
23
|
+
opacity: 0.6
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export default Component;
|
|
Binary file
|