@selfcommunity/react-theme-default 0.4.5-payments.168 → 0.4.5-payments.175

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 (78) hide show
  1. package/lib/cjs/components/SCAccordionLessons.d.ts +15 -0
  2. package/lib/cjs/components/SCAccordionLessons.js +16 -1
  3. package/lib/cjs/components/SCAddUsersButton.d.ts +7 -1
  4. package/lib/cjs/components/SCAddUsersButton.js +6 -1
  5. package/lib/cjs/components/SCCourse.d.ts +4 -1
  6. package/lib/cjs/components/SCCourse.js +4 -1
  7. package/lib/cjs/components/SCCourseContentMenu.d.ts +3 -1
  8. package/lib/cjs/components/SCCourseContentMenu.js +3 -1
  9. package/lib/cjs/components/SCCourseDashboard.d.ts +18 -4
  10. package/lib/cjs/components/SCCourseDashboard.js +23 -8
  11. package/lib/cjs/components/SCCourseForm.d.ts +50 -3
  12. package/lib/cjs/components/SCCourseForm.js +52 -7
  13. package/lib/cjs/components/SCCourseTypePopover.d.ts +23 -0
  14. package/lib/cjs/components/SCCourseTypePopover.js +24 -0
  15. package/lib/cjs/components/SCCourseUsersTable.d.ts +16 -0
  16. package/lib/cjs/components/SCCourseUsersTable.js +16 -0
  17. package/lib/cjs/components/SCCourses.d.ts +10 -5
  18. package/lib/cjs/components/SCCourses.js +11 -6
  19. package/lib/cjs/components/SCEditCourse.d.ts +181 -128
  20. package/lib/cjs/components/SCEditCourse.js +191 -137
  21. package/lib/cjs/components/SCEmptyStatus.d.ts +1 -0
  22. package/lib/cjs/components/SCEmptyStatus.js +1 -0
  23. package/lib/cjs/components/SCGroupForm.d.ts +3 -0
  24. package/lib/cjs/components/SCGroupForm.js +3 -0
  25. package/lib/cjs/components/SCLessonCommentObjects.d.ts +3 -1
  26. package/lib/cjs/components/SCLessonCommentObjects.js +4 -2
  27. package/lib/cjs/components/SCLessonDrawer.d.ts +3 -1
  28. package/lib/cjs/components/SCLessonDrawer.js +3 -1
  29. package/lib/cjs/components/SCLessonObject.d.ts +4 -1
  30. package/lib/cjs/components/SCLessonObject.js +5 -2
  31. package/lib/cjs/components/SCLessonTemplate.d.ts +5 -0
  32. package/lib/cjs/components/SCLessonTemplate.js +4 -0
  33. package/lib/cjs/components/SCNotification.d.ts +22 -0
  34. package/lib/cjs/components/SCNotification.js +22 -0
  35. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +150 -0
  36. package/lib/cjs/components/SCPaywallsConfigurator.js +153 -0
  37. package/lib/cjs/index.d.ts +517 -152
  38. package/lib/cjs/index.js +5 -1
  39. package/lib/esm/components/SCAccordionLessons.d.ts +15 -0
  40. package/lib/esm/components/SCAccordionLessons.js +16 -1
  41. package/lib/esm/components/SCAddUsersButton.d.ts +7 -1
  42. package/lib/esm/components/SCAddUsersButton.js +6 -1
  43. package/lib/esm/components/SCCourse.d.ts +4 -1
  44. package/lib/esm/components/SCCourse.js +4 -1
  45. package/lib/esm/components/SCCourseContentMenu.d.ts +3 -1
  46. package/lib/esm/components/SCCourseContentMenu.js +3 -1
  47. package/lib/esm/components/SCCourseDashboard.d.ts +18 -4
  48. package/lib/esm/components/SCCourseDashboard.js +23 -8
  49. package/lib/esm/components/SCCourseForm.d.ts +50 -3
  50. package/lib/esm/components/SCCourseForm.js +49 -4
  51. package/lib/esm/components/SCCourseTypePopover.d.ts +23 -0
  52. package/lib/esm/components/SCCourseTypePopover.js +22 -0
  53. package/lib/esm/components/SCCourseUsersTable.d.ts +16 -0
  54. package/lib/esm/components/SCCourseUsersTable.js +16 -0
  55. package/lib/esm/components/SCCourses.d.ts +10 -5
  56. package/lib/esm/components/SCCourses.js +11 -6
  57. package/lib/esm/components/SCEditCourse.d.ts +181 -128
  58. package/lib/esm/components/SCEditCourse.js +191 -137
  59. package/lib/esm/components/SCEmptyStatus.d.ts +1 -0
  60. package/lib/esm/components/SCEmptyStatus.js +1 -0
  61. package/lib/esm/components/SCGroupForm.d.ts +3 -0
  62. package/lib/esm/components/SCGroupForm.js +3 -0
  63. package/lib/esm/components/SCLessonCommentObjects.d.ts +3 -1
  64. package/lib/esm/components/SCLessonCommentObjects.js +4 -2
  65. package/lib/esm/components/SCLessonDrawer.d.ts +3 -1
  66. package/lib/esm/components/SCLessonDrawer.js +3 -1
  67. package/lib/esm/components/SCLessonObject.d.ts +4 -1
  68. package/lib/esm/components/SCLessonObject.js +5 -2
  69. package/lib/esm/components/SCLessonTemplate.d.ts +5 -0
  70. package/lib/esm/components/SCLessonTemplate.js +4 -0
  71. package/lib/esm/components/SCNotification.d.ts +22 -0
  72. package/lib/esm/components/SCNotification.js +22 -0
  73. package/lib/esm/components/SCPaywallsConfigurator.d.ts +150 -0
  74. package/lib/esm/components/SCPaywallsConfigurator.js +151 -0
  75. package/lib/esm/index.d.ts +517 -152
  76. package/lib/esm/index.js +5 -1
  77. package/lib/umd/react-theme-default.js +1 -1
  78. package/package.json +2 -2
@@ -0,0 +1,150 @@
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;
@@ -0,0 +1,153 @@
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: 14,
79
+ height: 14,
80
+ flexShrink: 0,
81
+ borderRadius: '3px',
82
+ marginRight: theme.spacing(),
83
+ marginTop: '2px',
84
+ padding: '3px',
85
+ backgroundColor: 'red',
86
+ color: 'white'
87
+ },
88
+ [`& .SCPaywallsConfigurator-product-content`]: {
89
+ flexGrow: 1,
90
+ '& span': {
91
+ color: '#8b949e'
92
+ }
93
+ },
94
+ [`& .SCPaywallsConfigurator-product-remove-icon`]: {
95
+ opacity: 0.6,
96
+ width: 18,
97
+ height: 18
98
+ },
99
+ [`& .SCPaywallsConfigurator-autocomplete-footer`]: {
100
+ backgroundColor: colors_1.grey[400]
101
+ }
102
+ }),
103
+ paymentProductsPopperRoot: ({ theme }) => ({
104
+ border: `1px solid ${theme.palette.mode === 'light' ? '#e1e4e8' : '#30363d'}`,
105
+ boxShadow: `0 8px 24px ${theme.palette.mode === 'light' ? 'rgba(149, 157, 165, 0.2)' : 'rgb(1, 4, 9)'}`,
106
+ borderRadius: 6,
107
+ width: 300,
108
+ zIndex: theme.zIndex.modal,
109
+ fontSize: 13,
110
+ color: theme.palette.mode === 'light' ? '#24292e' : '#c9d1d9',
111
+ backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#1c2128',
112
+ '& .MuiPaper-root': {
113
+ borderRadius: 0
114
+ },
115
+ [`& .SCPaywallsConfigurator-payment-products-popper-title`]: {
116
+ borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
117
+ padding: '8px 10px',
118
+ fontWeight: 600
119
+ },
120
+ [`& .SCPaywallsConfigurator-payment-products-popper-footer`]: {
121
+ borderTop: '1px solid #eaecef',
122
+ padding: '8px',
123
+ display: 'flex',
124
+ alignItems: 'flex-end',
125
+ justifyContent: 'center',
126
+ '& button': {
127
+ padding: '2px 8px',
128
+ '& .MuiIcon-root': {
129
+ fontSize: 12
130
+ }
131
+ }
132
+ }
133
+ }),
134
+ filterInputRoot: ({ theme }) => ({
135
+ padding: 10,
136
+ width: '100%',
137
+ borderBottom: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
138
+ '& input': {
139
+ borderRadius: 4,
140
+ backgroundColor: theme.palette.mode === 'light' ? '#fff' : '#0d1117',
141
+ padding: 8,
142
+ transition: theme.transitions.create(['border-color', 'box-shadow']),
143
+ border: `1px solid ${theme.palette.mode === 'light' ? '#eaecef' : '#30363d'}`,
144
+ fontSize: 14,
145
+ '&:focus': {
146
+ boxShadow: `0px 0px 0px 3px ${theme.palette.mode === 'light' ? 'rgba(3, 102, 214, 0.3)' : 'rgb(12, 45, 107)'}`,
147
+ borderColor: theme.palette.mode === 'light' ? '#0366d6' : '#388bfd'
148
+ }
149
+ }
150
+ })
151
+ }
152
+ };
153
+ exports.default = Component;