@blocklet/payment-react 1.15.1 → 1.15.2
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/es/libs/theme.d.ts +1 -1
- package/lib/libs/theme.d.ts +1 -1
- package/package.json +6 -6
- package/src/components/confirm.tsx +1 -1
- package/src/theme/index.tsx +3 -2
package/es/libs/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function create(settings?: any):
|
|
1
|
+
export default function create(settings?: any): import("@mui/material").Theme;
|
package/lib/libs/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function create(settings?: any):
|
|
1
|
+
export default function create(settings?: any): import("@mui/material").Theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@arcblock/did-connect": "^2.10.
|
|
57
|
-
"@arcblock/ux": "2.10.
|
|
56
|
+
"@arcblock/did-connect": "^2.10.28",
|
|
57
|
+
"@arcblock/ux": "^2.10.28",
|
|
58
58
|
"@arcblock/ws": "^1.18.135",
|
|
59
|
-
"@blocklet/ui-react": "^2.10.
|
|
59
|
+
"@blocklet/ui-react": "^2.10.27",
|
|
60
60
|
"@mui/icons-material": "^5.16.6",
|
|
61
61
|
"@mui/lab": "^5.0.0-alpha.173",
|
|
62
62
|
"@mui/material": "^5.16.6",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@babel/core": "^7.25.2",
|
|
93
93
|
"@babel/preset-env": "^7.25.2",
|
|
94
94
|
"@babel/preset-react": "^7.24.7",
|
|
95
|
-
"@blocklet/payment-types": "1.15.
|
|
95
|
+
"@blocklet/payment-types": "1.15.2",
|
|
96
96
|
"@storybook/addon-essentials": "^7.6.20",
|
|
97
97
|
"@storybook/addon-interactions": "^7.6.20",
|
|
98
98
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"vite-plugin-babel": "^1.2.0",
|
|
123
123
|
"vite-plugin-node-polyfills": "^0.21.0"
|
|
124
124
|
},
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "3ff6c4a337595d574264a926bced5dc8cdc602af"
|
|
126
126
|
}
|
|
@@ -32,7 +32,7 @@ export default function ConfirmDialog({
|
|
|
32
32
|
onCancel={onCancel}
|
|
33
33
|
confirmButton={{
|
|
34
34
|
text: confirm || t('common.confirm'),
|
|
35
|
-
props: { color, size: 'small', variant: 'contained', disabled: !!loading },
|
|
35
|
+
props: { color: color as any, size: 'small', variant: 'contained', disabled: !!loading },
|
|
36
36
|
}}
|
|
37
37
|
cancelButton={{ text: cancel || t('common.cancel'), props: { color: 'inherit', size: 'small' } }}
|
|
38
38
|
showCancelButton={typeof cancel !== 'boolean' || !!cancel}>
|
package/src/theme/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Theme, ThemeProvider, useTheme } from '@mui/material/styles';
|
|
2
2
|
import { create } from '@arcblock/ux/lib/Theme';
|
|
3
3
|
import { cloneDeep, merge } from 'lodash';
|
|
4
4
|
import { Box, CssBaseline } from '@mui/material';
|
|
@@ -26,7 +26,7 @@ export function PaymentThemeProvider({
|
|
|
26
26
|
const parentTheme = useTheme();
|
|
27
27
|
const rootStyle = getComputedStyle(document.documentElement);
|
|
28
28
|
|
|
29
|
-
const themeOverrides: Partial<
|
|
29
|
+
const themeOverrides: Partial<Theme> = {
|
|
30
30
|
shape: {
|
|
31
31
|
borderRadius: 8,
|
|
32
32
|
},
|
|
@@ -242,6 +242,7 @@ export function PaymentThemeProvider({
|
|
|
242
242
|
},
|
|
243
243
|
},
|
|
244
244
|
};
|
|
245
|
+
|
|
245
246
|
const mergeTheme = create(
|
|
246
247
|
merge(
|
|
247
248
|
cloneDeep({
|