@blocklet/payment-react 1.18.34 → 1.18.36

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 (42) hide show
  1. package/es/components/country-select.d.ts +1 -0
  2. package/es/components/country-select.js +359 -276
  3. package/es/contexts/payment.js +21 -1
  4. package/es/libs/cached-request.d.ts +1 -1
  5. package/es/libs/util.d.ts +1 -0
  6. package/es/libs/util.js +13 -0
  7. package/es/libs/validator.d.ts +1 -0
  8. package/es/libs/validator.js +14 -0
  9. package/es/locales/en.js +2 -1
  10. package/es/locales/zh.js +2 -1
  11. package/es/payment/form/address.d.ts +5 -1
  12. package/es/payment/form/address.js +27 -14
  13. package/es/payment/form/index.js +43 -10
  14. package/es/payment/form/phone.js +2 -1
  15. package/es/payment/form/stripe/form.js +1 -0
  16. package/lib/components/country-select.d.ts +1 -0
  17. package/lib/components/country-select.js +188 -80
  18. package/lib/contexts/payment.js +21 -0
  19. package/lib/libs/cached-request.d.ts +1 -1
  20. package/lib/libs/util.d.ts +1 -0
  21. package/lib/libs/util.js +16 -1
  22. package/lib/libs/validator.d.ts +1 -0
  23. package/lib/libs/validator.js +14 -0
  24. package/lib/locales/en.js +2 -1
  25. package/lib/locales/zh.js +2 -1
  26. package/lib/payment/form/address.d.ts +5 -1
  27. package/lib/payment/form/address.js +23 -13
  28. package/lib/payment/form/index.js +39 -10
  29. package/lib/payment/form/phone.js +2 -1
  30. package/lib/payment/form/stripe/form.js +1 -0
  31. package/package.json +6 -6
  32. package/src/components/country-select.tsx +381 -290
  33. package/src/contexts/payment.tsx +29 -1
  34. package/src/libs/cached-request.ts +1 -1
  35. package/src/libs/util.ts +15 -0
  36. package/src/libs/validator.ts +14 -0
  37. package/src/locales/en.tsx +1 -0
  38. package/src/locales/zh.tsx +1 -0
  39. package/src/payment/form/address.tsx +26 -11
  40. package/src/payment/form/index.tsx +39 -7
  41. package/src/payment/form/phone.tsx +1 -0
  42. package/src/payment/form/stripe/form.tsx +1 -0
@@ -24,6 +24,7 @@ const {
24
24
  LinkAuthenticationElement
25
25
  } = globalThis.__STRIPE_COMPONENTS__;
26
26
  const PaymentElementContainer = (0, _system.styled)("div")`
27
+ width: 100%;
27
28
  opacity: 0;
28
29
  transition: opacity 300ms ease;
29
30
  &.visible {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.18.34",
3
+ "version": "1.18.36",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -54,10 +54,10 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@arcblock/did-connect": "^2.13.12",
58
- "@arcblock/ux": "^2.13.12",
57
+ "@arcblock/did-connect": "^2.13.13",
58
+ "@arcblock/ux": "^2.13.13",
59
59
  "@arcblock/ws": "^1.20.2",
60
- "@blocklet/ui-react": "^2.13.12",
60
+ "@blocklet/ui-react": "^2.13.13",
61
61
  "@mui/icons-material": "^5.16.6",
62
62
  "@mui/lab": "^5.0.0-alpha.173",
63
63
  "@mui/material": "^5.16.6",
@@ -93,7 +93,7 @@
93
93
  "@babel/core": "^7.25.2",
94
94
  "@babel/preset-env": "^7.25.2",
95
95
  "@babel/preset-react": "^7.24.7",
96
- "@blocklet/payment-types": "1.18.34",
96
+ "@blocklet/payment-types": "1.18.36",
97
97
  "@storybook/addon-essentials": "^7.6.20",
98
98
  "@storybook/addon-interactions": "^7.6.20",
99
99
  "@storybook/addon-links": "^7.6.20",
@@ -124,5 +124,5 @@
124
124
  "vite-plugin-babel": "^1.2.0",
125
125
  "vite-plugin-node-polyfills": "^0.21.0"
126
126
  },
127
- "gitHead": "0ddb7c08956891409919c8027b56b77eba1726d4"
127
+ "gitHead": "98872e06bac0c437b53a6648ce4487e9f6d2336b"
128
128
  }