@selfcommunity/react-theme-default 0.4.5-payments.210 → 0.4.5-payments.214

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 (61) hide show
  1. package/lib/cjs/components/SCCheckout.d.ts +4 -2
  2. package/lib/cjs/components/SCCheckout.js +7 -4
  3. package/lib/cjs/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
  4. package/lib/cjs/components/SCCheckoutHeaderInfoWidget.js +34 -0
  5. package/lib/cjs/components/SCCourseDashboard.d.ts +22 -0
  6. package/lib/cjs/components/SCCourseDashboard.js +22 -0
  7. package/lib/cjs/components/SCEventHeader.d.ts +12 -0
  8. package/lib/cjs/components/SCEventHeader.js +12 -0
  9. package/lib/cjs/components/SCEventSubscribeButton.d.ts +12 -0
  10. package/lib/cjs/components/SCEventSubscribeButton.js +10 -0
  11. package/lib/cjs/components/SCGroupHeader.d.ts +12 -0
  12. package/lib/cjs/components/SCGroupHeader.js +12 -0
  13. package/lib/cjs/components/SCGroupSubscribeButton.d.ts +18 -0
  14. package/lib/cjs/components/SCGroupSubscribeButton.js +18 -0
  15. package/lib/cjs/components/SCPaymentProduct.d.ts +20 -22
  16. package/lib/cjs/components/SCPaymentProduct.js +24 -26
  17. package/lib/cjs/components/SCPaymentProductPrice.d.ts +19 -2
  18. package/lib/cjs/components/SCPaymentProductPrice.js +19 -2
  19. package/lib/cjs/components/SCPaymentProducts.js +1 -1
  20. package/lib/cjs/fonts/community/icons.eot +0 -0
  21. package/lib/cjs/fonts/community/icons.svg +75 -69
  22. package/lib/cjs/fonts/community/icons.ttf +0 -0
  23. package/lib/cjs/fonts/community/icons.woff +0 -0
  24. package/lib/cjs/fonts/community/icons.woff2 +0 -0
  25. package/lib/cjs/fonts/community-icons.css +133 -126
  26. package/lib/cjs/index.d.ts +154 -26
  27. package/lib/cjs/index.js +5 -1
  28. package/lib/esm/components/SCCheckout.d.ts +4 -2
  29. package/lib/esm/components/SCCheckout.js +7 -4
  30. package/lib/esm/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
  31. package/lib/esm/components/SCCheckoutHeaderInfoWidget.js +32 -0
  32. package/lib/esm/components/SCCourseDashboard.d.ts +22 -0
  33. package/lib/esm/components/SCCourseDashboard.js +22 -0
  34. package/lib/esm/components/SCEventHeader.d.ts +12 -0
  35. package/lib/esm/components/SCEventHeader.js +12 -0
  36. package/lib/esm/components/SCEventSubscribeButton.d.ts +12 -0
  37. package/lib/esm/components/SCEventSubscribeButton.js +10 -0
  38. package/lib/esm/components/SCGroupHeader.d.ts +12 -0
  39. package/lib/esm/components/SCGroupHeader.js +12 -0
  40. package/lib/esm/components/SCGroupSubscribeButton.d.ts +18 -0
  41. package/lib/esm/components/SCGroupSubscribeButton.js +16 -0
  42. package/lib/esm/components/SCPaymentProduct.d.ts +20 -22
  43. package/lib/esm/components/SCPaymentProduct.js +24 -26
  44. package/lib/esm/components/SCPaymentProductPrice.d.ts +19 -2
  45. package/lib/esm/components/SCPaymentProductPrice.js +19 -2
  46. package/lib/esm/components/SCPaymentProducts.js +1 -1
  47. package/lib/esm/fonts/community/icons.eot +0 -0
  48. package/lib/esm/fonts/community/icons.svg +75 -69
  49. package/lib/esm/fonts/community/icons.ttf +0 -0
  50. package/lib/esm/fonts/community/icons.woff +0 -0
  51. package/lib/esm/fonts/community/icons.woff2 +0 -0
  52. package/lib/esm/fonts/community-icons.css +133 -126
  53. package/lib/esm/index.d.ts +154 -26
  54. package/lib/esm/index.js +5 -1
  55. package/lib/umd/community/icons.eot +0 -0
  56. package/lib/umd/community/icons.svg +75 -69
  57. package/lib/umd/community/icons.ttf +0 -0
  58. package/lib/umd/community/icons.woff +0 -0
  59. package/lib/umd/community/icons.woff2 +0 -0
  60. package/lib/umd/react-theme-default.js +1 -1
  61. package/package.json +2 -2
@@ -0,0 +1,18 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ buyButtonRoot: ({ theme }: {
4
+ theme: any;
5
+ }) => {
6
+ border: string;
7
+ '&:hover, &:active': {
8
+ backgroundColor: any;
9
+ color: any;
10
+ border: string;
11
+ '& .MuiIcon-root': {
12
+ color: any;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ };
18
+ export default Component;
@@ -0,0 +1,16 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ buyButtonRoot: ({ theme }) => ({
4
+ border: `1px solid transparent`,
5
+ '&:hover, &:active': {
6
+ backgroundColor: theme.palette.common.white,
7
+ color: theme.palette.primary.main,
8
+ border: `1px solid ${theme.palette.primary.main}`,
9
+ '& .MuiIcon-root': {
10
+ color: theme.palette.primary.main
11
+ }
12
+ }
13
+ })
14
+ }
15
+ };
16
+ export default Component;
@@ -3,47 +3,45 @@ declare const Component: {
3
3
  root: ({ theme }: {
4
4
  theme: any;
5
5
  }) => {
6
+ marginBottom: any;
6
7
  borderRadius: string;
7
- '& .MuiAccordionSummary-root': {
8
- backgroundColor: any;
9
- '& .MuiAccordionSummary-content': {
10
- display: string;
11
- flexDirection: string;
12
- '& .SCBaseItem-root': {
13
- backgroundColor: string;
14
- };
15
- '& .MuiTypography-body1': {
16
- [x: number]: {
17
- fontSize: any;
18
- };
19
- fontWeight: number;
20
- color: any;
21
- };
8
+ boxShadow: string;
9
+ backgroundColor: any;
10
+ '& .MuiCardContent-root': {
11
+ '& .SCBaseItem-root': {
12
+ backgroundColor: string;
22
13
  };
23
- '& .MuiAccordionDetails-root': {
24
- marginTop: any;
14
+ '& .MuiTypography-body1': {
15
+ [x: number]: {
16
+ fontSize: any;
17
+ };
18
+ fontWeight: number;
19
+ color: any;
25
20
  };
26
21
  };
27
22
  '& .SCPaymentProductPrice-root': {
28
- marginBottom: any;
29
23
  width: string;
30
- borderRadius: string;
24
+ paddingLeft: string;
31
25
  };
32
26
  };
33
27
  skeletonRoot: ({ theme }: {
34
28
  theme: any;
35
29
  }) => {
30
+ marginBottom: any;
36
31
  borderRadius: string;
37
- '& .MuiAccordionSummary-root': {
38
- backgroundColor: any;
32
+ boxShadow: string;
33
+ backgroundColor: any;
34
+ '& .MuiCardContent-root': {
39
35
  marginBottom: any;
40
36
  '& .SCBaseItem-root': {
41
37
  backgroundColor: string;
38
+ boxShadow: string;
42
39
  };
43
40
  };
44
41
  '& .SCPaymentProductPrice-skeleton-root': {
45
- marginBottom: any;
42
+ marginTop: any;
46
43
  width: string;
44
+ paddingLeft: string;
47
45
  };
48
46
  };
49
47
  };
@@ -1,45 +1,43 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
- borderRadius: '3px !important',
5
- '& .MuiAccordionSummary-root': {
6
- backgroundColor: theme.palette.grey[50],
7
- '& .MuiAccordionSummary-content': {
8
- display: 'block',
9
- flexDirection: 'row',
10
- '& .SCBaseItem-root': {
11
- backgroundColor: 'transparent'
12
- },
13
- '& .MuiTypography-body1': {
14
- fontWeight: 200,
15
- color: theme.palette.grey[600],
16
- [theme.breakpoints.down('sm')]: {
17
- fontSize: theme.typography.pxToRem(12)
18
- }
19
- }
4
+ marginBottom: theme.spacing(2),
5
+ borderRadius: '10px',
6
+ boxShadow: 'none',
7
+ backgroundColor: theme.palette.grey['A200'],
8
+ '& .MuiCardContent-root': {
9
+ '& .SCBaseItem-root': {
10
+ backgroundColor: 'transparent'
20
11
  },
21
- '& .MuiAccordionDetails-root': {
22
- marginTop: theme.spacing()
12
+ '& .MuiTypography-body1': {
13
+ fontWeight: 200,
14
+ color: theme.palette.grey[600],
15
+ [theme.breakpoints.down('sm')]: {
16
+ fontSize: theme.typography.pxToRem(12)
17
+ }
23
18
  }
24
19
  },
25
20
  '& .SCPaymentProductPrice-root': {
26
- marginBottom: theme.spacing(),
27
21
  width: 'auto',
28
- borderRadius: '3px'
22
+ paddingLeft: `${theme.spacing(0)} !important`
29
23
  }
30
24
  }),
31
25
  skeletonRoot: ({ theme }) => ({
32
- borderRadius: '3px !important',
33
- '& .MuiAccordionSummary-root': {
34
- backgroundColor: theme.palette.grey[50],
26
+ marginBottom: theme.spacing(2),
27
+ borderRadius: '10px',
28
+ boxShadow: 'none',
29
+ backgroundColor: theme.palette.grey['A200'],
30
+ '& .MuiCardContent-root': {
35
31
  marginBottom: theme.spacing(1),
36
32
  '& .SCBaseItem-root': {
37
- backgroundColor: 'transparent'
33
+ backgroundColor: 'transparent',
34
+ boxShadow: 'none'
38
35
  }
39
36
  },
40
37
  '& .SCPaymentProductPrice-skeleton-root': {
41
- marginBottom: theme.spacing(),
42
- width: 'auto'
38
+ marginTop: theme.spacing(1),
39
+ width: 'auto',
40
+ paddingLeft: `${theme.spacing(0)} !important`
43
41
  }
44
42
  })
45
43
  }
@@ -3,7 +3,24 @@ declare const Component: {
3
3
  root: ({ theme }: {
4
4
  theme: any;
5
5
  }) => {
6
- borderRadius: string;
6
+ borderRadius: number;
7
+ boxShadow: string;
8
+ '& .SCPaymentProductPrice-primary': {
9
+ fontSize: string;
10
+ fontWeight: string;
11
+ color: string;
12
+ };
13
+ '& .SCPaymentProductPrice-button': {
14
+ textTransform: string;
15
+ '&:hover, &:active': {
16
+ backgroundColor: any;
17
+ color: any;
18
+ border: string;
19
+ '& .MuiIcon-root': {
20
+ color: any;
21
+ };
22
+ };
23
+ };
7
24
  '& .SCPaymentProductPrice-button-purchased': {
8
25
  backgroundColor: string;
9
26
  color: string;
@@ -15,7 +32,7 @@ declare const Component: {
15
32
  skeletonRoot: ({ theme }: {
16
33
  theme: any;
17
34
  }) => {
18
- borderRadius: string;
35
+ borderRadius: number;
19
36
  };
20
37
  };
21
38
  };
@@ -1,7 +1,24 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
- borderRadius: '3px',
4
+ borderRadius: 0,
5
+ boxShadow: 'none',
6
+ '& .SCPaymentProductPrice-primary': {
7
+ fontSize: '18px',
8
+ fontWeight: '600 !important',
9
+ color: `${theme.palette.primary.main} !important`
10
+ },
11
+ '& .SCPaymentProductPrice-button': {
12
+ textTransform: 'uppercase',
13
+ '&:hover, &:active': {
14
+ backgroundColor: theme.palette.common.white,
15
+ color: theme.palette.primary.main,
16
+ border: `1px solid ${theme.palette.primary.main}`,
17
+ '& .MuiIcon-root': {
18
+ color: theme.palette.primary.main
19
+ }
20
+ }
21
+ },
5
22
  '& .SCPaymentProductPrice-button-purchased': {
6
23
  backgroundColor: `${theme.palette.secondary.main} !important`,
7
24
  color: `${theme.palette.secondary.contrastText} !important`
@@ -11,7 +28,7 @@ const Component = {
11
28
  }
12
29
  }),
13
30
  skeletonRoot: ({ theme }) => ({
14
- borderRadius: '3px'
31
+ borderRadius: 0
15
32
  })
16
33
  }
17
34
  };
@@ -1,7 +1,7 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
3
  root: ({ theme }) => ({
4
- padding: theme.spacing(0.5),
4
+ padding: theme.spacing(0.5)
5
5
  }),
6
6
  skeletonRoot: ({ theme }) => ({
7
7
  padding: theme.spacing(0.5)
Binary file