@selfcommunity/react-theme-default 0.4.5-payments.169 → 0.5.0-alpha.0

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 (62) hide show
  1. package/lib/cjs/components/SCCategoryHeader.d.ts +0 -4
  2. package/lib/cjs/components/SCCategoryHeader.js +1 -5
  3. package/lib/cjs/components/SCComposer.d.ts +3 -0
  4. package/lib/cjs/components/SCComposer.js +4 -1
  5. package/lib/cjs/components/SCEventForm.d.ts +0 -3
  6. package/lib/cjs/components/SCEventForm.js +0 -3
  7. package/lib/cjs/components/SCGroups.d.ts +8 -0
  8. package/lib/cjs/components/SCGroups.js +8 -0
  9. package/lib/cjs/index.d.ts +11 -402
  10. package/lib/cjs/index.js +1 -35
  11. package/lib/esm/components/SCCategoryHeader.d.ts +0 -4
  12. package/lib/esm/components/SCCategoryHeader.js +1 -5
  13. package/lib/esm/components/SCComposer.d.ts +3 -0
  14. package/lib/esm/components/SCComposer.js +4 -1
  15. package/lib/esm/components/SCEventForm.d.ts +0 -3
  16. package/lib/esm/components/SCEventForm.js +0 -3
  17. package/lib/esm/components/SCGroups.d.ts +8 -0
  18. package/lib/esm/components/SCGroups.js +8 -0
  19. package/lib/esm/index.d.ts +11 -402
  20. package/lib/esm/index.js +1 -35
  21. package/lib/umd/react-theme-default.js +1 -1
  22. package/package.json +2 -2
  23. package/lib/cjs/components/SCBuyButton.d.ts +0 -15
  24. package/lib/cjs/components/SCBuyButton.js +0 -13
  25. package/lib/cjs/components/SCCategoryFollowButton.d.ts +0 -8
  26. package/lib/cjs/components/SCCategoryFollowButton.js +0 -10
  27. package/lib/cjs/components/SCCheckout.d.ts +0 -83
  28. package/lib/cjs/components/SCCheckout.js +0 -83
  29. package/lib/cjs/components/SCCheckoutReturnDialog.d.ts +0 -27
  30. package/lib/cjs/components/SCCheckoutReturnDialog.js +0 -27
  31. package/lib/cjs/components/SCHiddenPurchasableContent.d.ts +0 -8
  32. package/lib/cjs/components/SCHiddenPurchasableContent.js +0 -10
  33. package/lib/cjs/components/SCPaymentProduct.d.ts +0 -51
  34. package/lib/cjs/components/SCPaymentProduct.js +0 -49
  35. package/lib/cjs/components/SCPaymentProductPrice.d.ts +0 -22
  36. package/lib/cjs/components/SCPaymentProductPrice.js +0 -20
  37. package/lib/cjs/components/SCPaymentProducts.d.ts +0 -15
  38. package/lib/cjs/components/SCPaymentProducts.js +0 -13
  39. package/lib/cjs/components/SCPaywalls.d.ts +0 -12
  40. package/lib/cjs/components/SCPaywalls.js +0 -12
  41. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +0 -150
  42. package/lib/cjs/components/SCPaywallsConfigurator.js +0 -153
  43. package/lib/esm/components/SCBuyButton.d.ts +0 -15
  44. package/lib/esm/components/SCBuyButton.js +0 -11
  45. package/lib/esm/components/SCCategoryFollowButton.d.ts +0 -8
  46. package/lib/esm/components/SCCategoryFollowButton.js +0 -8
  47. package/lib/esm/components/SCCheckout.d.ts +0 -83
  48. package/lib/esm/components/SCCheckout.js +0 -81
  49. package/lib/esm/components/SCCheckoutReturnDialog.d.ts +0 -27
  50. package/lib/esm/components/SCCheckoutReturnDialog.js +0 -25
  51. package/lib/esm/components/SCHiddenPurchasableContent.d.ts +0 -8
  52. package/lib/esm/components/SCHiddenPurchasableContent.js +0 -8
  53. package/lib/esm/components/SCPaymentProduct.d.ts +0 -51
  54. package/lib/esm/components/SCPaymentProduct.js +0 -47
  55. package/lib/esm/components/SCPaymentProductPrice.d.ts +0 -22
  56. package/lib/esm/components/SCPaymentProductPrice.js +0 -18
  57. package/lib/esm/components/SCPaymentProducts.d.ts +0 -15
  58. package/lib/esm/components/SCPaymentProducts.js +0 -11
  59. package/lib/esm/components/SCPaywalls.d.ts +0 -12
  60. package/lib/esm/components/SCPaywalls.js +0 -10
  61. package/lib/esm/components/SCPaywallsConfigurator.d.ts +0 -150
  62. package/lib/esm/components/SCPaywallsConfigurator.js +0 -151
@@ -1,150 +0,0 @@
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
- };
100
- paymentProductsPopperRoot: ({ theme }: any) => {
101
- border: string;
102
- boxShadow: string;
103
- borderRadius: number;
104
- width: number;
105
- zIndex: any;
106
- fontSize: number;
107
- color: string;
108
- backgroundColor: string;
109
- '& .MuiPaper-root': {
110
- borderRadius: number;
111
- };
112
- "& .SCPaywallsConfigurator-payment-products-popper-title": {
113
- borderBottom: string;
114
- padding: string;
115
- fontWeight: number;
116
- };
117
- "& .SCPaywallsConfigurator-payment-products-popper-footer": {
118
- borderTop: string;
119
- padding: string;
120
- display: string;
121
- alignItems: string;
122
- justifyContent: string;
123
- '& button': {
124
- padding: string;
125
- '& .MuiIcon-root': {
126
- fontSize: number;
127
- };
128
- };
129
- };
130
- };
131
- filterInputRoot: ({ theme }: any) => {
132
- padding: number;
133
- width: string;
134
- borderBottom: string;
135
- '& input': {
136
- borderRadius: number;
137
- backgroundColor: string;
138
- padding: number;
139
- transition: any;
140
- border: string;
141
- fontSize: number;
142
- '&:focus': {
143
- boxShadow: string;
144
- borderColor: string;
145
- };
146
- };
147
- };
148
- };
149
- };
150
- export default Component;
@@ -1,151 +0,0 @@
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
- }),
101
- paymentProductsPopperRoot: ({ theme }) => ({
102
- border: `1px solid ${theme.palette.mode === 'light' ? '#e1e4e8' : '#30363d'}`,
103
- boxShadow: `0 8px 24px ${theme.palette.mode === 'light' ? 'rgba(149, 157, 165, 0.2)' : 'rgb(1, 4, 9)'}`,
104
- borderRadius: 6,
105
- width: 300,
106
- zIndex: theme.zIndex.modal,
107
- fontSize: 13,
108
- color: theme.palette.mode === 'light' ? '#24292e' : '#c9d1d9',
109
- backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#1c2128',
110
- '& .MuiPaper-root': {
111
- borderRadius: 0
112
- },
113
- [`& .SCPaywallsConfigurator-payment-products-popper-title`]: {
114
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
115
- padding: '8px 10px',
116
- fontWeight: 600
117
- },
118
- [`& .SCPaywallsConfigurator-payment-products-popper-footer`]: {
119
- borderTop: '1px solid #eaecef',
120
- padding: '8px',
121
- display: 'flex',
122
- alignItems: 'flex-end',
123
- justifyContent: 'center',
124
- '& button': {
125
- padding: '2px 8px',
126
- '& .MuiIcon-root': {
127
- fontSize: 12
128
- }
129
- }
130
- }
131
- }),
132
- filterInputRoot: ({ theme }) => ({
133
- padding: 10,
134
- width: '100%',
135
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
136
- '& input': {
137
- borderRadius: 4,
138
- backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#0d1117',
139
- padding: 8,
140
- transition: theme.transitions.create(['border-color', 'box-shadow']),
141
- border: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
142
- fontSize: 14,
143
- '&:focus': {
144
- boxShadow: `0px 0px 0px 3px ${theme.palette.mode === 'light' ? 'rgba(3, 102, 214, 0.3)' : 'rgb(12, 45, 107)'}`,
145
- borderColor: theme.palette.mode === 'light' ? '#0366d6' : '#388bfd'
146
- }
147
- }
148
- })
149
- }
150
- };
151
- export default Component;