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