@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.
- package/lib/cjs/components/SCCheckout.d.ts +4 -2
- package/lib/cjs/components/SCCheckout.js +7 -4
- package/lib/cjs/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
- package/lib/cjs/components/SCCheckoutHeaderInfoWidget.js +34 -0
- package/lib/cjs/components/SCCourseDashboard.d.ts +22 -0
- package/lib/cjs/components/SCCourseDashboard.js +22 -0
- package/lib/cjs/components/SCEventHeader.d.ts +12 -0
- package/lib/cjs/components/SCEventHeader.js +12 -0
- package/lib/cjs/components/SCEventSubscribeButton.d.ts +12 -0
- package/lib/cjs/components/SCEventSubscribeButton.js +10 -0
- package/lib/cjs/components/SCGroupHeader.d.ts +12 -0
- package/lib/cjs/components/SCGroupHeader.js +12 -0
- package/lib/cjs/components/SCGroupSubscribeButton.d.ts +18 -0
- package/lib/cjs/components/SCGroupSubscribeButton.js +18 -0
- package/lib/cjs/components/SCPaymentProduct.d.ts +20 -22
- package/lib/cjs/components/SCPaymentProduct.js +24 -26
- package/lib/cjs/components/SCPaymentProductPrice.d.ts +19 -2
- package/lib/cjs/components/SCPaymentProductPrice.js +19 -2
- package/lib/cjs/components/SCPaymentProducts.js +1 -1
- package/lib/cjs/fonts/community/icons.eot +0 -0
- package/lib/cjs/fonts/community/icons.svg +75 -69
- package/lib/cjs/fonts/community/icons.ttf +0 -0
- package/lib/cjs/fonts/community/icons.woff +0 -0
- package/lib/cjs/fonts/community/icons.woff2 +0 -0
- package/lib/cjs/fonts/community-icons.css +133 -126
- package/lib/cjs/index.d.ts +154 -26
- package/lib/cjs/index.js +5 -1
- package/lib/esm/components/SCCheckout.d.ts +4 -2
- package/lib/esm/components/SCCheckout.js +7 -4
- package/lib/esm/components/SCCheckoutHeaderInfoWidget.d.ts +34 -0
- package/lib/esm/components/SCCheckoutHeaderInfoWidget.js +32 -0
- package/lib/esm/components/SCCourseDashboard.d.ts +22 -0
- package/lib/esm/components/SCCourseDashboard.js +22 -0
- package/lib/esm/components/SCEventHeader.d.ts +12 -0
- package/lib/esm/components/SCEventHeader.js +12 -0
- package/lib/esm/components/SCEventSubscribeButton.d.ts +12 -0
- package/lib/esm/components/SCEventSubscribeButton.js +10 -0
- package/lib/esm/components/SCGroupHeader.d.ts +12 -0
- package/lib/esm/components/SCGroupHeader.js +12 -0
- package/lib/esm/components/SCGroupSubscribeButton.d.ts +18 -0
- package/lib/esm/components/SCGroupSubscribeButton.js +16 -0
- package/lib/esm/components/SCPaymentProduct.d.ts +20 -22
- package/lib/esm/components/SCPaymentProduct.js +24 -26
- package/lib/esm/components/SCPaymentProductPrice.d.ts +19 -2
- package/lib/esm/components/SCPaymentProductPrice.js +19 -2
- package/lib/esm/components/SCPaymentProducts.js +1 -1
- package/lib/esm/fonts/community/icons.eot +0 -0
- package/lib/esm/fonts/community/icons.svg +75 -69
- package/lib/esm/fonts/community/icons.ttf +0 -0
- package/lib/esm/fonts/community/icons.woff +0 -0
- package/lib/esm/fonts/community/icons.woff2 +0 -0
- package/lib/esm/fonts/community-icons.css +133 -126
- package/lib/esm/index.d.ts +154 -26
- package/lib/esm/index.js +5 -1
- package/lib/umd/community/icons.eot +0 -0
- package/lib/umd/community/icons.svg +75 -69
- package/lib/umd/community/icons.ttf +0 -0
- package/lib/umd/community/icons.woff +0 -0
- package/lib/umd/community/icons.woff2 +0 -0
- package/lib/umd/react-theme-default.js +1 -1
- 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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
'& .
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
'& .
|
|
22
|
-
|
|
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
|
-
|
|
22
|
+
paddingLeft: `${theme.spacing(0)} !important`
|
|
29
23
|
}
|
|
30
24
|
}),
|
|
31
25
|
skeletonRoot: ({ theme }) => ({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
31
|
+
borderRadius: 0
|
|
15
32
|
})
|
|
16
33
|
}
|
|
17
34
|
};
|
|
Binary file
|