@selfcommunity/react-theme-default 0.4.5-payments.166 → 0.4.5-payments.169

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 (94) 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 +176 -130
  20. package/lib/cjs/components/SCEditCourse.js +185 -138
  21. package/lib/cjs/components/SCEmptyStatus.d.ts +1 -0
  22. package/lib/cjs/components/SCEmptyStatus.js +1 -0
  23. package/lib/cjs/components/SCEvent.d.ts +22 -0
  24. package/lib/cjs/components/SCEvent.js +22 -0
  25. package/lib/cjs/components/SCEventForm.d.ts +3 -0
  26. package/lib/cjs/components/SCEventForm.js +3 -0
  27. package/lib/cjs/components/SCEventFormDialog.d.ts +9 -0
  28. package/lib/cjs/components/SCEventFormDialog.js +9 -0
  29. package/lib/cjs/components/SCEvents.d.ts +11 -1
  30. package/lib/cjs/components/SCEvents.js +12 -2
  31. package/lib/cjs/components/SCGroupForm.d.ts +3 -0
  32. package/lib/cjs/components/SCGroupForm.js +3 -0
  33. package/lib/cjs/components/SCLessonCommentObjects.d.ts +3 -1
  34. package/lib/cjs/components/SCLessonCommentObjects.js +4 -2
  35. package/lib/cjs/components/SCLessonDrawer.d.ts +3 -1
  36. package/lib/cjs/components/SCLessonDrawer.js +3 -1
  37. package/lib/cjs/components/SCLessonObject.d.ts +4 -1
  38. package/lib/cjs/components/SCLessonObject.js +5 -2
  39. package/lib/cjs/components/SCLessonTemplate.d.ts +5 -0
  40. package/lib/cjs/components/SCLessonTemplate.js +4 -0
  41. package/lib/cjs/components/SCNotification.d.ts +22 -0
  42. package/lib/cjs/components/SCNotification.js +22 -0
  43. package/lib/cjs/components/SCPaywallsConfigurator.d.ts +150 -0
  44. package/lib/cjs/components/SCPaywallsConfigurator.js +153 -0
  45. package/lib/cjs/index.d.ts +561 -159
  46. package/lib/cjs/index.js +5 -1
  47. package/lib/esm/components/SCAccordionLessons.d.ts +15 -0
  48. package/lib/esm/components/SCAccordionLessons.js +16 -1
  49. package/lib/esm/components/SCAddUsersButton.d.ts +7 -1
  50. package/lib/esm/components/SCAddUsersButton.js +6 -1
  51. package/lib/esm/components/SCCourse.d.ts +4 -1
  52. package/lib/esm/components/SCCourse.js +4 -1
  53. package/lib/esm/components/SCCourseContentMenu.d.ts +3 -1
  54. package/lib/esm/components/SCCourseContentMenu.js +3 -1
  55. package/lib/esm/components/SCCourseDashboard.d.ts +18 -4
  56. package/lib/esm/components/SCCourseDashboard.js +23 -8
  57. package/lib/esm/components/SCCourseForm.d.ts +50 -3
  58. package/lib/esm/components/SCCourseForm.js +49 -4
  59. package/lib/esm/components/SCCourseTypePopover.d.ts +23 -0
  60. package/lib/esm/components/SCCourseTypePopover.js +22 -0
  61. package/lib/esm/components/SCCourseUsersTable.d.ts +16 -0
  62. package/lib/esm/components/SCCourseUsersTable.js +16 -0
  63. package/lib/esm/components/SCCourses.d.ts +10 -5
  64. package/lib/esm/components/SCCourses.js +11 -6
  65. package/lib/esm/components/SCEditCourse.d.ts +176 -130
  66. package/lib/esm/components/SCEditCourse.js +185 -138
  67. package/lib/esm/components/SCEmptyStatus.d.ts +1 -0
  68. package/lib/esm/components/SCEmptyStatus.js +1 -0
  69. package/lib/esm/components/SCEvent.d.ts +22 -0
  70. package/lib/esm/components/SCEvent.js +22 -0
  71. package/lib/esm/components/SCEventForm.d.ts +3 -0
  72. package/lib/esm/components/SCEventForm.js +3 -0
  73. package/lib/esm/components/SCEventFormDialog.d.ts +9 -0
  74. package/lib/esm/components/SCEventFormDialog.js +9 -0
  75. package/lib/esm/components/SCEvents.d.ts +11 -1
  76. package/lib/esm/components/SCEvents.js +12 -2
  77. package/lib/esm/components/SCGroupForm.d.ts +3 -0
  78. package/lib/esm/components/SCGroupForm.js +3 -0
  79. package/lib/esm/components/SCLessonCommentObjects.d.ts +3 -1
  80. package/lib/esm/components/SCLessonCommentObjects.js +4 -2
  81. package/lib/esm/components/SCLessonDrawer.d.ts +3 -1
  82. package/lib/esm/components/SCLessonDrawer.js +3 -1
  83. package/lib/esm/components/SCLessonObject.d.ts +4 -1
  84. package/lib/esm/components/SCLessonObject.js +5 -2
  85. package/lib/esm/components/SCLessonTemplate.d.ts +5 -0
  86. package/lib/esm/components/SCLessonTemplate.js +4 -0
  87. package/lib/esm/components/SCNotification.d.ts +22 -0
  88. package/lib/esm/components/SCNotification.js +22 -0
  89. package/lib/esm/components/SCPaywallsConfigurator.d.ts +150 -0
  90. package/lib/esm/components/SCPaywallsConfigurator.js +151 -0
  91. package/lib/esm/index.d.ts +561 -159
  92. package/lib/esm/index.js +5 -1
  93. package/lib/umd/react-theme-default.js +1 -1
  94. package/package.json +2 -2
@@ -19,7 +19,9 @@ declare const Component: {
19
19
  backgroundColor: any;
20
20
  };
21
21
  '& .SCLessonDrawer-header': {
22
- minHeight: string;
22
+ [x: number]: {
23
+ minHeight: string;
24
+ };
23
25
  display: string;
24
26
  padding: any;
25
27
  };
@@ -19,7 +19,9 @@ const Component = {
19
19
  backgroundColor: theme.palette.grey[200]
20
20
  },
21
21
  '& .SCLessonDrawer-header': {
22
- minHeight: '60px',
22
+ [theme.breakpoints.up('sm')]: {
23
+ minHeight: '60px'
24
+ },
23
25
  display: 'block',
24
26
  padding: theme.spacing(1.5)
25
27
  },
@@ -30,9 +30,12 @@ declare const Component: {
30
30
  };
31
31
  };
32
32
  '& .SCLessonObject-medias-section': {
33
- display: string;
33
+ '& .SCLessonObject-files': {
34
+ display: string;
35
+ };
34
36
  '& .SCLessonFilePreview-root': {
35
37
  marginBottom: any;
38
+ maxWidth: string;
36
39
  };
37
40
  '& .SCMediaLink-display-root': {
38
41
  marginBottom: any;
@@ -30,9 +30,12 @@ const Component = {
30
30
  }
31
31
  },
32
32
  '& .SCLessonObject-medias-section': {
33
- display: 'flex',
33
+ '& .SCLessonObject-files': {
34
+ display: 'flex'
35
+ },
34
36
  '& .SCLessonFilePreview-root': {
35
- marginBottom: theme.spacing(1)
37
+ marginBottom: theme.spacing(1),
38
+ maxWidth: '140px'
36
39
  },
37
40
  '& .SCMediaLink-display-root': {
38
41
  marginBottom: theme.spacing(1),
@@ -8,6 +8,11 @@ declare const Component: {
8
8
  justifyContent: string;
9
9
  marginBottom: any;
10
10
  };
11
+ '& .SCLessonTemplate-preview-info': {
12
+ justifyContent: string;
13
+ borderRadius: number;
14
+ marginBottom: any;
15
+ };
11
16
  '& .SCLessonTemplate-button': {
12
17
  alignSelf: string;
13
18
  marginTop: string;
@@ -14,6 +14,10 @@ const Component = {
14
14
  alignItems: 'center',
15
15
  justifyContent: 'space-between',
16
16
  marginBottom: theme.spacing(1)
17
+ }, '& .SCLessonTemplate-preview-info': {
18
+ justifyContent: 'center',
19
+ borderRadius: 5,
20
+ marginBottom: theme.spacing(1)
17
21
  }, '& .SCLessonTemplate-button': {
18
22
  alignSelf: 'center',
19
23
  marginTop: 'auto'
@@ -278,6 +278,28 @@ declare const Component: {
278
278
  maxWidth: string;
279
279
  };
280
280
  };
281
+ courseRoot: ({ theme }: any) => {
282
+ '& .SCNotification-username, & a': {
283
+ fontWeight: any;
284
+ };
285
+ '& .SCNotificationItem-primary': {
286
+ '& .SCCourse-root': {
287
+ width: string;
288
+ '& .SCCourse-snippet-root': {
289
+ paddingLeft: string;
290
+ };
291
+ };
292
+ };
293
+ '& .SCNotificationItem-secondary': {
294
+ textTransform: string;
295
+ };
296
+ '& .SCNotification-snippet-time': {
297
+ paddingLeft: any;
298
+ };
299
+ '& .SCCourse-snippet-root': {
300
+ backgroundColor: string;
301
+ };
302
+ };
281
303
  eventRoot: ({ theme }: any) => {
282
304
  '& .SCNotification-username, & a': {
283
305
  fontWeight: any;
@@ -280,6 +280,28 @@ const Component = {
280
280
  maxWidth: '40%'
281
281
  }
282
282
  }),
283
+ courseRoot: ({ theme }) => ({
284
+ '& .SCNotification-username, & a': {
285
+ fontWeight: theme.typography.fontWeightBold
286
+ },
287
+ '& .SCNotificationItem-primary': {
288
+ '& .SCCourse-root': {
289
+ width: '100%',
290
+ '& .SCCourse-snippet-root': {
291
+ paddingLeft: '0 !important'
292
+ }
293
+ }
294
+ },
295
+ '& .SCNotificationItem-secondary': {
296
+ textTransform: 'capitalize'
297
+ },
298
+ '& .SCNotification-snippet-time': {
299
+ paddingLeft: theme.spacing(5)
300
+ },
301
+ '& .SCCourse-snippet-root': {
302
+ backgroundColor: 'transparent !important'
303
+ }
304
+ }),
283
305
  eventRoot: ({ theme }) => ({
284
306
  '& .SCNotification-username, & a': {
285
307
  fontWeight: theme.typography.fontWeightBold
@@ -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,151 @@
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;