@selfcommunity/react-theme-default 0.5.0-alpha.1 → 0.5.0-alpha.10

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