@blocklet/payment-react 1.15.0 → 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.
@@ -1 +1 @@
1
- export default function create(settings?: any): any;
1
+ export default function create(settings?: any): import("@mui/material").Theme;
@@ -1 +1 @@
1
- export default function create(settings?: any): 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.0",
3
+ "version": "1.15.2",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -53,14 +53,13 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@arcblock/did-connect": "^2.10.25",
57
- "@arcblock/ux": "2.10.24",
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.25",
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",
63
- "@mui/styles": "^5.16.6",
64
63
  "@mui/system": "^5.16.6",
65
64
  "@ocap/util": "^1.18.135",
66
65
  "@stripe/react-stripe-js": "^2.7.3",
@@ -93,7 +92,7 @@
93
92
  "@babel/core": "^7.25.2",
94
93
  "@babel/preset-env": "^7.25.2",
95
94
  "@babel/preset-react": "^7.24.7",
96
- "@blocklet/payment-types": "1.15.0",
95
+ "@blocklet/payment-types": "1.15.2",
97
96
  "@storybook/addon-essentials": "^7.6.20",
98
97
  "@storybook/addon-interactions": "^7.6.20",
99
98
  "@storybook/addon-links": "^7.6.20",
@@ -123,5 +122,5 @@
123
122
  "vite-plugin-babel": "^1.2.0",
124
123
  "vite-plugin-node-polyfills": "^0.21.0"
125
124
  },
126
- "gitHead": "a53bb8a9b781e36974899d3fc8a4aad544621a9c"
125
+ "gitHead": "3ff6c4a337595d574264a926bced5dc8cdc602af"
127
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}>
@@ -1,4 +1,4 @@
1
- import { type ThemeOptions, ThemeProvider, useTheme } from '@mui/material/styles';
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<ThemeOptions> = {
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({