pay-sdk-react 1.1.0

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 (367) hide show
  1. package/README.md +1059 -0
  2. package/README.zh-CN.md +1061 -0
  3. package/dist/css/index.css +1 -0
  4. package/dist/es/Airwallex/airwallex-button.d.ts +4 -0
  5. package/dist/es/Airwallex/airwallex-button.js +86 -0
  6. package/dist/es/Airwallex/airwallex-modal.d.ts +6 -0
  7. package/dist/es/Airwallex/airwallex-modal.js +63 -0
  8. package/dist/es/Airwallex/airwallex-popup.d.ts +6 -0
  9. package/dist/es/Airwallex/airwallex-popup.js +74 -0
  10. package/dist/es/Airwallex/airwallex.d.ts +6 -0
  11. package/dist/es/Airwallex/airwallex.js +77 -0
  12. package/dist/es/Airwallex/index.d.ts +12 -0
  13. package/dist/es/Airwallex/index.js +10 -0
  14. package/dist/es/Airwallex/interface.d.ts +75 -0
  15. package/dist/es/Airwallex/interface.js +1 -0
  16. package/dist/es/Airwallex/style/index.css +1 -0
  17. package/dist/es/Airwallex/style/index.d.ts +1 -0
  18. package/dist/es/Airwallex/style/index.js +1 -0
  19. package/dist/es/Alipay/alipay-button.d.ts +6 -0
  20. package/dist/es/Alipay/alipay-button.js +52 -0
  21. package/dist/es/Alipay/alipay-modal.d.ts +6 -0
  22. package/dist/es/Alipay/alipay-modal.js +45 -0
  23. package/dist/es/Alipay/alipay.d.ts +4 -0
  24. package/dist/es/Alipay/alipay.js +44 -0
  25. package/dist/es/Alipay/index.d.ts +10 -0
  26. package/dist/es/Alipay/index.js +8 -0
  27. package/dist/es/Alipay/interface.d.ts +53 -0
  28. package/dist/es/Alipay/interface.js +1 -0
  29. package/dist/es/Alipay/style/index.css +1 -0
  30. package/dist/es/Alipay/style/index.d.ts +3 -0
  31. package/dist/es/Alipay/style/index.js +3 -0
  32. package/dist/es/Button/button.d.ts +21 -0
  33. package/dist/es/Button/button.js +74 -0
  34. package/dist/es/Button/index.d.ts +3 -0
  35. package/dist/es/Button/index.js +3 -0
  36. package/dist/es/Button/interface.d.ts +21 -0
  37. package/dist/es/Button/interface.js +1 -0
  38. package/dist/es/Button/style/index.css +1 -0
  39. package/dist/es/Button/style/index.d.ts +1 -0
  40. package/dist/es/Button/style/index.js +1 -0
  41. package/dist/es/FullScreenLoading/index.d.ts +4 -0
  42. package/dist/es/FullScreenLoading/index.js +116 -0
  43. package/dist/es/FullScreenLoading/interface.d.ts +43 -0
  44. package/dist/es/FullScreenLoading/interface.js +1 -0
  45. package/dist/es/FullScreenLoading/style/index.css +1 -0
  46. package/dist/es/FullScreenLoading/style/index.d.ts +1 -0
  47. package/dist/es/FullScreenLoading/style/index.js +1 -0
  48. package/dist/es/MAlipay/index.d.ts +8 -0
  49. package/dist/es/MAlipay/index.js +6 -0
  50. package/dist/es/MAlipay/interface.d.ts +44 -0
  51. package/dist/es/MAlipay/interface.js +1 -0
  52. package/dist/es/MAlipay/m-alipay-auto-submit.d.ts +6 -0
  53. package/dist/es/MAlipay/m-alipay-auto-submit.js +37 -0
  54. package/dist/es/MAlipay/m-alipay-button.d.ts +6 -0
  55. package/dist/es/MAlipay/m-alipay-button.js +127 -0
  56. package/dist/es/MAlipay/style/index.css +1 -0
  57. package/dist/es/MAlipay/style/index.d.ts +1 -0
  58. package/dist/es/MAlipay/style/index.js +1 -0
  59. package/dist/es/MWeChat/index.d.ts +2 -0
  60. package/dist/es/MWeChat/index.js +2 -0
  61. package/dist/es/MWeChat/interface.d.ts +50 -0
  62. package/dist/es/MWeChat/interface.js +1 -0
  63. package/dist/es/MWeChat/m-wechat-button.d.ts +6 -0
  64. package/dist/es/MWeChat/m-wechat-button.js +117 -0
  65. package/dist/es/MWeChat/style/index.css +1 -0
  66. package/dist/es/MWeChat/style/index.d.ts +1 -0
  67. package/dist/es/MWeChat/style/index.js +1 -0
  68. package/dist/es/Mask/index.d.ts +3 -0
  69. package/dist/es/Mask/index.js +3 -0
  70. package/dist/es/Mask/interface.d.ts +81 -0
  71. package/dist/es/Mask/interface.js +1 -0
  72. package/dist/es/Mask/mask.d.ts +5 -0
  73. package/dist/es/Mask/mask.js +97 -0
  74. package/dist/es/Mask/style/index.css +1 -0
  75. package/dist/es/Mask/style/index.d.ts +1 -0
  76. package/dist/es/Mask/style/index.js +1 -0
  77. package/dist/es/PayButton/index.d.ts +5 -0
  78. package/dist/es/PayButton/index.js +57 -0
  79. package/dist/es/PayButton/interface.d.ts +130 -0
  80. package/dist/es/PayButton/interface.js +93 -0
  81. package/dist/es/PayMask/index.d.ts +3 -0
  82. package/dist/es/PayMask/index.js +3 -0
  83. package/dist/es/PayMask/interface.d.ts +56 -0
  84. package/dist/es/PayMask/interface.js +1 -0
  85. package/dist/es/PayMask/pay-mask.d.ts +5 -0
  86. package/dist/es/PayMask/pay-mask.js +92 -0
  87. package/dist/es/PayMask/style/index.css +1 -0
  88. package/dist/es/PayMask/style/index.d.ts +1 -0
  89. package/dist/es/PayMask/style/index.js +1 -0
  90. package/dist/es/Paypal/index.d.ts +2 -0
  91. package/dist/es/Paypal/index.js +2 -0
  92. package/dist/es/Paypal/interface.d.ts +42 -0
  93. package/dist/es/Paypal/interface.js +1 -0
  94. package/dist/es/Paypal/paypal-button.d.ts +6 -0
  95. package/dist/es/Paypal/paypal-button.js +75 -0
  96. package/dist/es/Paypal/style/index.css +1 -0
  97. package/dist/es/Paypal/style/index.d.ts +1 -0
  98. package/dist/es/Paypal/style/index.js +1 -0
  99. package/dist/es/Payssion/index.d.ts +2 -0
  100. package/dist/es/Payssion/index.js +2 -0
  101. package/dist/es/Payssion/interface.d.ts +38 -0
  102. package/dist/es/Payssion/interface.js +1 -0
  103. package/dist/es/Payssion/payssion-button.d.ts +6 -0
  104. package/dist/es/Payssion/payssion-button.js +75 -0
  105. package/dist/es/Payssion/style/index.css +1 -0
  106. package/dist/es/Payssion/style/index.d.ts +1 -0
  107. package/dist/es/Payssion/style/index.js +1 -0
  108. package/dist/es/Stripe/index.d.ts +12 -0
  109. package/dist/es/Stripe/index.js +10 -0
  110. package/dist/es/Stripe/interface.d.ts +91 -0
  111. package/dist/es/Stripe/interface.js +1 -0
  112. package/dist/es/Stripe/stripe-button.d.ts +6 -0
  113. package/dist/es/Stripe/stripe-button.js +65 -0
  114. package/dist/es/Stripe/stripe-modal.d.ts +6 -0
  115. package/dist/es/Stripe/stripe-modal.js +50 -0
  116. package/dist/es/Stripe/stripe-popup.d.ts +6 -0
  117. package/dist/es/Stripe/stripe-popup.js +61 -0
  118. package/dist/es/Stripe/stripe.d.ts +5 -0
  119. package/dist/es/Stripe/stripe.js +38 -0
  120. package/dist/es/Stripe/style/index.css +1 -0
  121. package/dist/es/Stripe/style/index.d.ts +1 -0
  122. package/dist/es/Stripe/style/index.js +1 -0
  123. package/dist/es/Wechat/index.d.ts +10 -0
  124. package/dist/es/Wechat/index.js +8 -0
  125. package/dist/es/Wechat/interface.d.ts +69 -0
  126. package/dist/es/Wechat/interface.js +1 -0
  127. package/dist/es/Wechat/style/index.css +1 -0
  128. package/dist/es/Wechat/style/index.d.ts +1 -0
  129. package/dist/es/Wechat/style/index.js +1 -0
  130. package/dist/es/Wechat/wechat-button.d.ts +6 -0
  131. package/dist/es/Wechat/wechat-button.js +50 -0
  132. package/dist/es/Wechat/wechat-modal.d.ts +6 -0
  133. package/dist/es/Wechat/wechat-modal.js +45 -0
  134. package/dist/es/Wechat/wechat.d.ts +4 -0
  135. package/dist/es/Wechat/wechat.js +40 -0
  136. package/dist/es/confirm-modal/index.d.ts +5 -0
  137. package/dist/es/confirm-modal/index.js +52 -0
  138. package/dist/es/confirm-modal/interface.d.ts +21 -0
  139. package/dist/es/confirm-modal/interface.js +1 -0
  140. package/dist/es/confirm-modal/style/index.css +1 -0
  141. package/dist/es/confirm-modal/style/index.d.ts +1 -0
  142. package/dist/es/confirm-modal/style/index.js +1 -0
  143. package/dist/es/dot-loading/dot-loading.d.ts +4 -0
  144. package/dist/es/dot-loading/dot-loading.js +60 -0
  145. package/dist/es/dot-loading/index.d.ts +3 -0
  146. package/dist/es/dot-loading/index.js +3 -0
  147. package/dist/es/dot-loading/interface.d.ts +4 -0
  148. package/dist/es/dot-loading/interface.js +1 -0
  149. package/dist/es/dot-loading/style/index.css +1 -0
  150. package/dist/es/dot-loading/style/index.d.ts +1 -0
  151. package/dist/es/dot-loading/style/index.js +1 -0
  152. package/dist/es/hooks/use-initialized.d.ts +1 -0
  153. package/dist/es/hooks/use-initialized.js +8 -0
  154. package/dist/es/hooks/use-inner-visible.d.ts +1 -0
  155. package/dist/es/hooks/use-inner-visible.js +9 -0
  156. package/dist/es/hooks/use-lock-scroll.d.ts +2 -0
  157. package/dist/es/hooks/use-lock-scroll.js +82 -0
  158. package/dist/es/hooks/use-touch.d.ts +17 -0
  159. package/dist/es/hooks/use-touch.js +60 -0
  160. package/dist/es/hooks/usePayWindowOpen.d.ts +21 -0
  161. package/dist/es/hooks/usePayWindowOpen.js +87 -0
  162. package/dist/es/icons/IconAlipay/index.d.ts +4 -0
  163. package/dist/es/icons/IconAlipay/index.js +21 -0
  164. package/dist/es/icons/IconClose/index.d.ts +4 -0
  165. package/dist/es/icons/IconClose/index.js +27 -0
  166. package/dist/es/icons/IconPaypalText/index.d.ts +4 -0
  167. package/dist/es/icons/IconPaypalText/index.js +27 -0
  168. package/dist/es/icons/IconPaypalWhite/index.d.ts +4 -0
  169. package/dist/es/icons/IconPaypalWhite/index.js +22 -0
  170. package/dist/es/icons/IconPayssionPay/index.d.ts +4 -0
  171. package/dist/es/icons/IconPayssionPay/index.js +50 -0
  172. package/dist/es/icons/IconStripe/index.d.ts +4 -0
  173. package/dist/es/icons/IconStripe/index.js +22 -0
  174. package/dist/es/icons/IconStripeText/index.d.ts +4 -0
  175. package/dist/es/icons/IconStripeText/index.js +22 -0
  176. package/dist/es/icons/IconWechatPay/index.d.ts +4 -0
  177. package/dist/es/icons/IconWechatPay/index.js +21 -0
  178. package/dist/es/icons/index.d.ts +9 -0
  179. package/dist/es/icons/index.js +9 -0
  180. package/dist/es/icons/interface.d.ts +5 -0
  181. package/dist/es/icons/interface.js +1 -0
  182. package/dist/es/icons/style/index.css +1 -0
  183. package/dist/es/icons/style/index.d.ts +1 -0
  184. package/dist/es/icons/style/index.js +1 -0
  185. package/dist/es/index.d.ts +19 -0
  186. package/dist/es/index.js +10 -0
  187. package/dist/es/pay-modal/index.d.ts +3 -0
  188. package/dist/es/pay-modal/index.js +3 -0
  189. package/dist/es/pay-modal/interface.d.ts +94 -0
  190. package/dist/es/pay-modal/interface.js +1 -0
  191. package/dist/es/pay-modal/pay-modal.d.ts +5 -0
  192. package/dist/es/pay-modal/pay-modal.js +93 -0
  193. package/dist/es/pay-modal/style/index.css +1 -0
  194. package/dist/es/pay-modal/style/index.d.ts +1 -0
  195. package/dist/es/pay-modal/style/index.js +1 -0
  196. package/dist/es/pay-popup/index.d.ts +5 -0
  197. package/dist/es/pay-popup/index.js +156 -0
  198. package/dist/es/pay-popup/interface.d.ts +148 -0
  199. package/dist/es/pay-popup/interface.js +1 -0
  200. package/dist/es/pay-popup/style/index.css +1 -0
  201. package/dist/es/pay-popup/style/index.d.ts +1 -0
  202. package/dist/es/pay-popup/style/index.js +1 -0
  203. package/dist/es/shared/enums/index.d.ts +57 -0
  204. package/dist/es/shared/enums/index.js +58 -0
  205. package/dist/es/shared/index.d.ts +1 -0
  206. package/dist/es/shared/index.js +1 -0
  207. package/dist/es/utils/can-use-dom.d.ts +1 -0
  208. package/dist/es/utils/can-use-dom.js +1 -0
  209. package/dist/es/utils/classNames.d.ts +5 -0
  210. package/dist/es/utils/classNames.js +27 -0
  211. package/dist/es/utils/dom.d.ts +8 -0
  212. package/dist/es/utils/dom.js +80 -0
  213. package/dist/es/utils/get-container.d.ts +2 -0
  214. package/dist/es/utils/get-container.js +5 -0
  215. package/dist/es/utils/get-scroll-parent.d.ts +3 -0
  216. package/dist/es/utils/get-scroll-parent.js +24 -0
  217. package/dist/es/utils/getPrefixCls.d.ts +1 -0
  218. package/dist/es/utils/getPrefixCls.js +3 -0
  219. package/dist/es/utils/is.d.ts +35 -0
  220. package/dist/es/utils/is.js +122 -0
  221. package/dist/es/utils/native-props.d.ts +8 -0
  222. package/dist/es/utils/native-props.js +26 -0
  223. package/dist/es/utils/omit.d.ts +1 -0
  224. package/dist/es/utils/omit.js +15 -0
  225. package/dist/es/utils/qrcode.d.ts +7 -0
  226. package/dist/es/utils/qrcode.js +17 -0
  227. package/dist/es/utils/render-to-container.d.ts +3 -0
  228. package/dist/es/utils/render-to-container.js +10 -0
  229. package/dist/es/utils/should-render.d.ts +10 -0
  230. package/dist/es/utils/should-render.js +12 -0
  231. package/dist/es/utils/supports-passive.d.ts +1 -0
  232. package/dist/es/utils/supports-passive.js +14 -0
  233. package/dist/es/utils/warning.d.ts +1 -0
  234. package/dist/es/utils/warning.js +13 -0
  235. package/dist/es/utils/with-default-props.d.ts +9 -0
  236. package/dist/es/utils/with-default-props.js +33 -0
  237. package/dist/es/utils/with-stop-propagation.d.ts +4 -0
  238. package/dist/es/utils/with-stop-propagation.js +22 -0
  239. package/dist/lib/Airwallex/airwallex-button.js +94 -0
  240. package/dist/lib/Airwallex/airwallex-modal.js +70 -0
  241. package/dist/lib/Airwallex/airwallex-popup.js +81 -0
  242. package/dist/lib/Airwallex/airwallex.js +83 -0
  243. package/dist/lib/Airwallex/index.js +29 -0
  244. package/dist/lib/Airwallex/interface.js +5 -0
  245. package/dist/lib/Airwallex/style/index.css +1 -0
  246. package/dist/lib/Airwallex/style/index.js +3 -0
  247. package/dist/lib/Alipay/alipay-button.js +60 -0
  248. package/dist/lib/Alipay/alipay-modal.js +53 -0
  249. package/dist/lib/Alipay/alipay.js +52 -0
  250. package/dist/lib/Alipay/index.js +27 -0
  251. package/dist/lib/Alipay/interface.js +5 -0
  252. package/dist/lib/Alipay/style/index.css +1 -0
  253. package/dist/lib/Alipay/style/index.js +5 -0
  254. package/dist/lib/Button/button.js +82 -0
  255. package/dist/lib/Button/index.js +22 -0
  256. package/dist/lib/Button/interface.js +5 -0
  257. package/dist/lib/Button/style/index.css +1 -0
  258. package/dist/lib/Button/style/index.js +3 -0
  259. package/dist/lib/FullScreenLoading/index.js +124 -0
  260. package/dist/lib/FullScreenLoading/interface.js +5 -0
  261. package/dist/lib/FullScreenLoading/style/index.css +1 -0
  262. package/dist/lib/FullScreenLoading/style/index.js +3 -0
  263. package/dist/lib/MAlipay/index.js +25 -0
  264. package/dist/lib/MAlipay/interface.js +5 -0
  265. package/dist/lib/MAlipay/m-alipay-auto-submit.js +43 -0
  266. package/dist/lib/MAlipay/m-alipay-button.js +135 -0
  267. package/dist/lib/MAlipay/style/index.css +1 -0
  268. package/dist/lib/MAlipay/style/index.js +3 -0
  269. package/dist/lib/MWeChat/index.js +28 -0
  270. package/dist/lib/MWeChat/interface.js +5 -0
  271. package/dist/lib/MWeChat/m-wechat-button.js +125 -0
  272. package/dist/lib/MWeChat/style/index.css +1 -0
  273. package/dist/lib/MWeChat/style/index.js +3 -0
  274. package/dist/lib/Mask/index.js +22 -0
  275. package/dist/lib/Mask/interface.js +5 -0
  276. package/dist/lib/Mask/mask.js +117 -0
  277. package/dist/lib/Mask/style/index.css +1 -0
  278. package/dist/lib/Mask/style/index.js +3 -0
  279. package/dist/lib/PayButton/index.js +76 -0
  280. package/dist/lib/PayButton/interface.js +3 -0
  281. package/dist/lib/PayMask/index.js +22 -0
  282. package/dist/lib/PayMask/interface.js +5 -0
  283. package/dist/lib/PayMask/pay-mask.js +112 -0
  284. package/dist/lib/PayMask/style/index.css +1 -0
  285. package/dist/lib/PayMask/style/index.js +3 -0
  286. package/dist/lib/Paypal/index.js +28 -0
  287. package/dist/lib/Paypal/interface.js +5 -0
  288. package/dist/lib/Paypal/paypal-button.js +83 -0
  289. package/dist/lib/Paypal/style/index.css +1 -0
  290. package/dist/lib/Paypal/style/index.js +3 -0
  291. package/dist/lib/Payssion/index.js +28 -0
  292. package/dist/lib/Payssion/interface.js +5 -0
  293. package/dist/lib/Payssion/payssion-button.js +83 -0
  294. package/dist/lib/Payssion/style/index.css +1 -0
  295. package/dist/lib/Payssion/style/index.js +3 -0
  296. package/dist/lib/Stripe/index.js +29 -0
  297. package/dist/lib/Stripe/interface.js +5 -0
  298. package/dist/lib/Stripe/stripe-button.js +73 -0
  299. package/dist/lib/Stripe/stripe-modal.js +57 -0
  300. package/dist/lib/Stripe/stripe-popup.js +68 -0
  301. package/dist/lib/Stripe/stripe.js +46 -0
  302. package/dist/lib/Stripe/style/index.css +1 -0
  303. package/dist/lib/Stripe/style/index.js +3 -0
  304. package/dist/lib/Wechat/index.js +27 -0
  305. package/dist/lib/Wechat/interface.js +5 -0
  306. package/dist/lib/Wechat/style/index.css +1 -0
  307. package/dist/lib/Wechat/style/index.js +3 -0
  308. package/dist/lib/Wechat/wechat-button.js +58 -0
  309. package/dist/lib/Wechat/wechat-modal.js +52 -0
  310. package/dist/lib/Wechat/wechat.js +48 -0
  311. package/dist/lib/confirm-modal/index.js +72 -0
  312. package/dist/lib/confirm-modal/interface.js +5 -0
  313. package/dist/lib/confirm-modal/style/index.css +1 -0
  314. package/dist/lib/confirm-modal/style/index.js +3 -0
  315. package/dist/lib/dot-loading/dot-loading.js +67 -0
  316. package/dist/lib/dot-loading/index.js +22 -0
  317. package/dist/lib/dot-loading/interface.js +5 -0
  318. package/dist/lib/dot-loading/style/index.css +1 -0
  319. package/dist/lib/dot-loading/style/index.js +3 -0
  320. package/dist/lib/hooks/use-initialized.js +14 -0
  321. package/dist/lib/hooks/use-inner-visible.js +15 -0
  322. package/dist/lib/hooks/use-lock-scroll.js +88 -0
  323. package/dist/lib/hooks/use-touch.js +66 -0
  324. package/dist/lib/hooks/usePayWindowOpen.js +92 -0
  325. package/dist/lib/icons/IconAlipay/index.js +28 -0
  326. package/dist/lib/icons/IconClose/index.js +34 -0
  327. package/dist/lib/icons/IconPaypalText/index.js +34 -0
  328. package/dist/lib/icons/IconPaypalWhite/index.js +29 -0
  329. package/dist/lib/icons/IconPayssionPay/index.js +57 -0
  330. package/dist/lib/icons/IconStripe/index.js +29 -0
  331. package/dist/lib/icons/IconStripeText/index.js +29 -0
  332. package/dist/lib/icons/IconWechatPay/index.js +28 -0
  333. package/dist/lib/icons/index.js +84 -0
  334. package/dist/lib/icons/interface.js +5 -0
  335. package/dist/lib/icons/style/index.css +1 -0
  336. package/dist/lib/icons/style/index.js +3 -0
  337. package/dist/lib/index.js +92 -0
  338. package/dist/lib/pay-modal/index.js +22 -0
  339. package/dist/lib/pay-modal/interface.js +5 -0
  340. package/dist/lib/pay-modal/pay-modal.js +113 -0
  341. package/dist/lib/pay-modal/style/index.css +1 -0
  342. package/dist/lib/pay-modal/style/index.js +3 -0
  343. package/dist/lib/pay-popup/index.js +176 -0
  344. package/dist/lib/pay-popup/interface.js +5 -0
  345. package/dist/lib/pay-popup/style/index.css +1 -0
  346. package/dist/lib/pay-popup/style/index.js +3 -0
  347. package/dist/lib/shared/enums/index.js +64 -0
  348. package/dist/lib/shared/index.js +16 -0
  349. package/dist/lib/utils/can-use-dom.js +7 -0
  350. package/dist/lib/utils/classNames.js +34 -0
  351. package/dist/lib/utils/dom.js +86 -0
  352. package/dist/lib/utils/get-container.js +11 -0
  353. package/dist/lib/utils/get-scroll-parent.js +30 -0
  354. package/dist/lib/utils/getPrefixCls.js +9 -0
  355. package/dist/lib/utils/is.js +160 -0
  356. package/dist/lib/utils/native-props.js +33 -0
  357. package/dist/lib/utils/omit.js +21 -0
  358. package/dist/lib/utils/qrcode.js +23 -0
  359. package/dist/lib/utils/render-to-container.js +16 -0
  360. package/dist/lib/utils/should-render.js +20 -0
  361. package/dist/lib/utils/supports-passive.js +20 -0
  362. package/dist/lib/utils/warning.js +19 -0
  363. package/dist/lib/utils/with-default-props.js +40 -0
  364. package/dist/lib/utils/with-stop-propagation.js +29 -0
  365. package/dist/umd/pay-sdk-react.umd.js +16360 -0
  366. package/dist/umd/pay-sdk-react.umd.js.map +1 -0
  367. package/package.json +181 -0
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconPaypalText: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconPaypalText;
@@ -0,0 +1,27 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconPaypalText = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1749543295731",
9
+ viewBox: "0 0 3711 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "4652",
13
+ id: "mx_n_1749543295732",
14
+ stroke: "currentColor",
15
+ strokeWidth: "4",
16
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-paypal-text")
17
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
18
+ d: "M470.648858 1.406067c118.876545 0 230.083635 66.59643 215.256023 235.196604-18.534515 199.661465-122.455624 309.334665-285.815005 313.297217H258.971914c-22.241418 0-29.655224 15.722382-37.06903 54.964424l-26.076146 180.23218c-3.706903 27.354388-18.534515 39.114218-37.06903 39.114218H25.053551c-22.241418 0-29.655224-15.722382-22.241418-47.039321L110.440145 52.407939C114.274872 17.000624 129.102484 1.406067 151.343902 1.406067h319.304956zM251.558108 393.187367h107.628011c66.852078-3.834727 111.462739-50.874048 115.041818-137.155411 3.834727-54.8366-33.234303-93.950818-88.965673-93.950818h-100.342029l-33.362127 231.106229z m794.555486 376.186744c11.120709-11.75983 25.948321-15.722382 22.241418-3.962552l-3.706903 35.279491c-3.706903 19.557109 3.834727 27.354388 18.534515 27.354388h118.876545c18.534515 0 29.655224-7.669455 33.362127-39.114218l74.265884-474.100113c3.834727-23.51966-3.706903-35.279491-18.534515-35.27949H1161.155411c-11.120709 0-18.534515 7.925103-18.534515 23.51966l-3.706903 27.482212c-3.706903 15.594557-7.413806 19.557109-14.827612 3.834727-22.241418-54.8366-77.972787-78.35626-155.945575-78.35626-181.893896 3.962551-304.477344 148.915242-315.598052 329.147422-11.120709 140.990139 89.093496 254.625889 215.383847 254.62589 89.093496 3.962551 129.86943-23.51966 178.186993-70.431157zM945.899388 698.815129c-77.972787 0-133.704157-66.59643-122.583447-144.95269 11.120709-78.35626 85.386593-144.95269 163.35938-144.95269s133.704157 66.468606 122.583448 144.95269C1098.010236 632.218699 1023.872176 698.815129 945.899388 698.815129z m593.999251-419.263512h-118.876544c-25.948321 0-33.234303 19.684933-25.948321 43.076769l148.531768 450.580452-144.824865 215.511671c-11.120709 19.557109-3.706903 35.279491 14.955436 35.279491h133.576332c18.662339 0 29.783048-3.834727 40.903758-19.557109l449.302209-681.814505c14.827612-19.557109 7.413806-43.076769-14.955436-43.076769h-126.162527c-22.369242 0-29.783048 7.925103-44.61066 27.482211l-189.307702 285.942829-85.386593-285.942829c-3.834727-19.557109-14.827612-27.482212-37.06903-27.482211z",
19
+ fill: "#113984",
20
+ "p-id": "4653"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M2524.912246 1.406067c121.177381 0 234.685308 60.844339 219.602047 215.000374-18.917988 182.660841-124.884284 282.875047-291.439271 286.58195h-143.930096c-22.624891 0-30.166521 14.316315-37.835976 50.107103l-26.459618 164.765447c-3.834727 25.053551-18.917988 35.790788-37.835975 35.790788H2070.752715c-22.752715 0-30.294345-14.316315-22.752715-42.948945l113.635751-666.347772c3.834727-28.63263 15.083261-42.948945 41.542878-42.948945h321.733617z m-219.474223 358.163525h109.801023c68.130321-3.579079 113.507927-46.528024 117.342654-125.267757 3.834727-50.234927-34.129073-86.025715-90.883036-86.025715h-102.259393l-34.001248 211.293472z m806.187492 343.84721c11.376358-10.609412 26.459618-14.188491 22.752715-3.451255l-3.834727 32.211709c-3.834727 17.895394 3.834727 25.053551 18.917987 25.053552h121.177382c18.917988 0 30.294345-7.158158 34.001248-35.790788l75.799775-433.452004c3.834727-21.474473-3.834727-32.211709-18.917988-32.211708H3228.840345c-11.376358 0-18.917988 7.158158-18.917988 21.474472l-3.834727 25.053552c-3.834727 14.316315-7.54163 17.895394-15.083261 3.579078-22.752715-50.107103-79.506678-71.581575-159.013357-71.581575-185.34515 3.579079-310.357259 136.132817-321.733616 300.898265-11.376358 128.97466 90.883036 232.767944 219.602047 232.767944 90.755212 3.579079 136.260642-21.474473 181.638248-64.423418z m-98.424666-64.423418c-79.506678 0-136.260642-60.844339-124.884284-132.425914 11.376358-71.7094 87.048309-132.553739 166.554987-132.553739 79.506678 0 136.260642 60.844339 124.884284 132.553739-15.083261 71.581575-86.920484 132.425914-166.554987 132.425914z m552.712021 118.237424H3425.689677c-11.376358 0-18.917988-7.158158-18.917988-17.895394L3527.94907 22.880539c0-10.737236 11.248533-17.895394 22.624891-17.895394h140.095369c11.376358 0 18.917988 7.158158 15.08326 17.895394l-121.049557 716.454875c3.834727 10.737236-7.669455 17.895394-18.917987 17.895394z",
23
+ fill: "#009DE2",
24
+ "p-id": "4654"
25
+ })));
26
+ IconPaypalText.displayName = 'IconPaypalText';
27
+ export default IconPaypalText;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconPaypalWhite: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconPaypalWhite;
@@ -0,0 +1,22 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconPaypalWhite = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1749564648720",
9
+ viewBox: "0 0 1024 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "10907",
13
+ stroke: "currentColor",
14
+ strokeWidth: "4",
15
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-paypal-white")
16
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
17
+ d: "M856.192 361.728c20.992 37.547 23.723 85.93 12.8 141.952-31.573 162.39-139.776 218.453-277.93 218.453h-21.334a34.347 34.347 0 0 0-33.877 29.014l-1.707 9.386-26.88 170.368-1.365 7.254a34.304 34.304 0 0 1-33.878 28.97H329.387a20.608 20.608 0 0 1-20.352-23.808L316.5 896h64.768l40.534-256.853h59.093c199.595 0 330.667-93.995 375.296-277.419zM729.899 144.555c32.512 37.034 41.941 77.226 32.085 140.16-0.81 5.248-1.707 10.24-2.645 15.36-31.36 160.981-131.798 232.362-296.79 232.362h-80.384c-26.88 0-50.09 17.664-57.77 42.752l-0.598-0.085-39.68 251.477H133.163a2.176 2.176 0 0 1-2.134-2.56l110.848-704.426A40.533 40.533 0 0 1 281.9 85.333h254.976c93.141 0 158.549 20.011 192.981 59.222z",
18
+ fill: "#ffffff",
19
+ "p-id": "10908"
20
+ })));
21
+ IconPaypalWhite.displayName = 'IconPaypalWhite';
22
+ export default IconPaypalWhite;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconPayssionPay: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconPayssionPay;
@@ -0,0 +1,50 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconPayssionPay = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1750766211404",
9
+ viewBox: "0 0 2257 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "11906",
13
+ stroke: "currentColor",
14
+ strokeWidth: "4",
15
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-payssion-pay")
16
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
17
+ d: "M472.722384 655.612215c25.925985 14.677522 51.565019 29.90025 77.835345 43.932134 74.707583 39.900478 152.973354 70.532452 236.375539 86.659075 91.178547 17.618766 181.410156 16.054885 269.590069-16.456616 70.948531-26.141198 130.648599-68.868139 181.582327-124.249601 12.769301-13.874061 24.390799-28.809838 36.758369-43.042587 1.922569-2.209519 5.279891-4.447734 7.991574-4.476429 36.801412-0.301298 73.617171-0.215213 110.475973-0.200865a36.184468 36.184468 0 0 1 3.88818 0.559554c-2.008654 2.639945-3.414712 4.691642-5.007288 6.55682-53.258027 62.454794-117.075836 111.4803-189.889545 149.013436a578.53541 578.53541 0 0 1-152.959007 53.35846 588.248687 588.248687 0 0 1-150.419493 9.885448c-101.867456-6.083352-197.135048-36.05534-288.385332-80.460943-45.180369-21.980414-88.237303-47.562058-130.246868-75.023229-2.769073-1.807789-5.409018-3.802095-8.120701-5.739011z",
18
+ fill: "#0D3676",
19
+ "p-id": "11907"
20
+ }), /*#__PURE__*/React.createElement("path", {
21
+ d: "M392.476655 219.131689c10.459349-11.865406 19.770895-23.257344 29.943293-33.831473 71.407652-74.219767 155.469824-128.410384 253.951262-159.659302 61.149168-19.412207 123.876565-27.260305 187.952629-25.366431 88.538601 2.66864 172.643816 24.491232 253.951263 58.595308a1026.422222 1026.422222 0 0 1 140.921429 73.229788 10.660214 10.660214 0 0 1 4.490777 4.591209c-8.852425-4.921202-17.661808-9.899795-26.557276-14.74926-66.299931-36.170121-135.426326-65.295604-208.928717-83.459576-44.922113-11.09064-90.475518-17.661808-136.731951-17.733546-121.624003-0.186518-226.576177 42.109997-314.067409 126.387383-22.12389 21.306081-41.320883 45.653837-61.966977 68.466408-1.865179 2.051697-4.949897 4.304259-7.48941 4.304259-37.04532 0.286951-74.104987 0.200865-111.164655 0.186518a30.861535 30.861535 0 0 1-4.304258-0.961285z",
22
+ fill: "#B01D3A",
23
+ "p-id": "11908"
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ d: "M1397.506711 287.770268c28.967661 0.516511 55.481894 7.475063 77.792302 26.700751 20.531314 17.690503 30.488499 40.70394 31.865861 67.433386 3.959918 76.630152-51.651104 148.023456-134.235481 160.319289-28.350717 4.218174-56.285356 2.309952-82.383511-11.3202-38.293555-19.986108-55.381462-54.69278-52.110225-95.841494 5.853792-73.373263 55.654065-128.8982 127.836483-143.676155 10.229788-2.166477 20.818265-2.482123 31.234571-3.615577z m65.998633 89.571623c-0.846504-6.355955-1.434753-15.667502-3.400365-24.706445-6.054657-28.695058-22.539968-45.840355-50.216351-49.771578-36.098383-5.150763-67.433386 6.528126-89.729446 34.950581-31.851514 40.632202-42.540423 88.222956-35.022318 138.955818 5.394671 36.327943 34.77841 56.945342 71.106353 53.444545 29.025051-2.869506 51.952402-16.585743 70.302892-38.480073 27.102482-32.22455 34.649282-70.962878 36.973582-114.407195z",
26
+ fill: "#B21B3A",
27
+ "p-id": "11909"
28
+ }), /*#__PURE__*/React.createElement("path", {
29
+ d: "M1523.994526 293.308414c14.534047 0 29.068094-0.11478 43.60214 0 8.522432 0.100433 18.393532-1.893874 25.151219 1.721703s9.957185 12.912776 14.648827 19.885676q51.507629 75.912776 102.972215 151.839899c0.774767 1.147802 1.678661 2.209519 3.672967 4.820769 2.051697-9.899795 3.902528-18.307447 5.538147-26.772489q11.277158-58.337053 22.453882-116.688453c2.869506-15.122296-3.213846-24.103849-18.264404-26.585971-4.691642-0.774767-9.426327-1.262583-16.686176-2.223867 2.61125-2.697335 4.218174-5.739012 5.853792-5.810749 30.301981-0.286951 60.61831-0.215213 90.762468-0.215213 1.434753 4.87816 0.258256 6.456388-4.304259 7.001594a136.617171 136.617171 0 0 0-23.056479 4.519472c-8.967206 2.682988-14.146664 9.455022-15.925757 18.651787q-9.69893 49.857663-19.297426 99.744022c-7.747666 40.029606-15.538374 80.044864-23.22865 119.744476-5.423366 2.539513-7.403325-1.004327-9.584149-4.189478q-31.033705-45.194716-62.096106-90.389433-34.921885-50.790253-69.901161-101.537462c-1.16215-1.693008-2.582555-3.213846-4.964245-6.126395-2.869506 13.974493-5.437713 26.413801-7.819403 38.910499q-11.764974 61.522204-23.372125 123.073103c-3.199499 16.915737 2.582555 25.179913 19.613072 28.121157 3.271237 0.559554 6.700296 0.329993 9.957186 0.932589 1.27693 0.22956 3.400364 2.094739 3.242541 2.625598a9.440674 9.440674 0 0 1-3.027328 3.988613c-0.573901 0.487816-1.850831 0.215213-2.869506 0.215213h-85.339103a34.204509 34.204509 0 0 1-3.629924-0.387383c-1.750399-4.964245 0.301298-6.284218 4.835117-6.772034a128.295604 128.295604 0 0 0 21.047825-3.558187c9.741972-2.740378 15.638807-9.569802 17.575723-19.699157q17.36051-90.676383 34.764063-181.352766c1.822136-9.555454-8.76634-22.956046-19.62742-25.151219-3.041676-0.602596-6.298565-0.516511-9.153724-1.578228-1.936916-0.717376-3.328627-2.869506-4.964245-4.390344z",
30
+ fill: "#B21B3A",
31
+ "p-id": "11910"
32
+ }), /*#__PURE__*/React.createElement("path", {
33
+ d: "M48.867684 299.750454c-1.147802-4.720337 0.186518-6.585516 4.835117-6.513778 41.607834 0.573901 83.215668 0.22956 124.723069 1.936917 13.486677 0.559554 27.260305 4.921202 39.986563 10.04327 29.254612 11.894102 37.777044 32.999317 28.135505 63.129127-9.741972 30.388066-32.39672 45.998178-61.005694 55.39581-27.389433 8.981553-55.496242 8.335914-83.717831 6.485083-1.176497-0.071738-2.338647-0.200865-4.404691-0.387383-2.510818 12.654521-5.035983 25.208608-7.503758 37.762696-2.338647 11.937144-4.576862 23.902983-6.944204 35.868822-3.242542 16.413573 4.304259 26.499886 20.96174 27.877249 1.434753 0.11478 3.041676-0.329993 4.304258 0.215213a23.501252 23.501252 0 0 1 4.390344 3.256889c-1.563881 1.291278-3.099066 2.625598-4.720337 3.859485-0.301298 0.22956-0.932589 0-1.434753 0H3.902528a31.99499 31.99499 0 0 1-3.60123-0.416078c-1.133455-4.99294 1.119107-6.499431 5.538146-6.786381a76.658847 76.658847 0 0 0 14.132316-1.979959c11.3202-2.869506 18.651788-9.727625 20.890002-21.793897 11.478023-60.460487 23.372125-120.863584 34.979276-181.309723 2.726031-14.189706-3.816443-22.956046-18.135277-25.136871-2.826463-0.444773-5.624231-1.004327-8.838077-1.506491z m50.661124 118.324072c17.331815-1.090412 33.157139-0.688681 48.465953-3.328627 29.326349-5.064678 49.283762-21.521293 56.199271-51.737189 6.083352-26.585971-3.88818-45.094284-30.388066-51.464587-13.70189-3.299932-28.27898-3.156456-42.483033-4.046003-6.054657-0.373036-10.430654 2.711683-11.764974 9.211114-2.49647 12.123662-5.265543 24.175586-7.647233 36.313596-4.074698 20.775222-7.934184 41.593486-12.381918 65.066043z",
34
+ fill: "#0E3578",
35
+ "p-id": "11911"
36
+ }), /*#__PURE__*/React.createElement("path", {
37
+ d: "M910.623315 290.108915l-5.810749 74.707583c-8.608517 3.084719-9.75632 2.367342-11.234115-5.739011-4.691642-25.696424-16.671829-45.768617-43.300842-53.602368-16.284445-4.792075-32.28194-3.228194-47.0312 5.466408-22.46823 13.242769-25.653382 40.273514-6.485083 58.035755 8.178092 7.575495 17.604418 13.888408 26.915964 20.08654 12.31018 8.235482 25.007743 15.882715 37.619221 23.673423 44.47734 27.46117 39.297882 72.010248 10.258483 100.432703-30.875882 30.258939-68.466408 36.614894-109.572079 25.667729-7.60419-2.023002-15.165338-4.304259-22.841266-6.069005-9.211114-2.123434-14.031883 0.286951-19.584377 7.848099-1.520838 2.066044-4.906855 2.740378-8.077659 4.390343 0-13.773628-0.17217-25.639034 0-37.490093 0.22956-12.181052 0.832157-24.390799 1.305626-36.543156 0.272603-7.274197 0.746072-7.60419 7.991573-6.341608 3.988613 10.115008 7.030289 20.244363 11.793669 29.484172 18.881348 36.586199 68.681621 47.590754 98.538829 22.166933 16.054885-13.673195 23.214302-36.858802 15.050558-53.372808a48.953769 48.953769 0 0 0-15.079253-17.618766c-16.169665-11.478023-33.27192-21.521293-49.900706-32.296287-4.806422-3.113414-9.254156-6.757686-13.888408-10.143703-26.930312-19.727852-25.710772-48.523343-14.232749-70.302892 14.003188-26.557276 37.518788-39.972216 66.744705-43.587793 16.614439-2.066044 32.870189 0.502164 48.580733 6.370303 3.802095 1.434753 7.690276 2.596903 11.592804 3.701662 9.282851 2.625598 13.328854 1.004327 19.555681-6.054657 2.195172-2.49647 5.896834-3.65862 8.909816-5.423366zM921.62787 545.351455l2.869506-80.245729c6.556821-2.424732 8.924163-0.444773 10.301526 5.308585 6.757686 28.106809 21.822592 49.240719 51.062855 57.203598 33.515828 9.125028 64.693008-7.087679 73.071965-37.604873 4.892507-17.790936 0.616944-32.081075-14.347529-43.042587-11.721931-8.608517-24.304714-16.02619-36.471418-24.003416-8.981553-5.882487-18.077886-11.621498-26.88727-17.776588-30.287634-21.176953-28.996356-50.991118-15.882714-74.506718 14.347529-25.653382 37.690959-38.55181 66.414711-41.780004a97.936233 97.936233 0 0 1 45.797313 5.825096c4.462082 1.678661 9.168071 2.697335 13.6445 4.304259 8.120701 2.869506 14.347529 0.703029 19.397859-6.183785 3.500797-4.806422 3.672967-4.691642 10.947165-3.142109-0.674334 10.502391-1.291278 21.148258-2.051697 31.794124-0.860852 12.152357-1.865179 24.290367-2.769073 36.442724-0.645639 8.70895-0.961284 8.981553-9.512412 7.876793-3.199499-9.914143-5.409018-20.014803-9.598497-29.211569-15.194033-33.32931-60.460487-44.64951-87.936005-22.453882-17.102255 13.81667-19.110909 35.137098-4.820769 51.765884 11.779321 13.716238 27.905944 21.521293 42.698246 31.076748 11.478023 7.403325 23.199954 14.347529 33.946253 22.6404 30.388066 23.415167 29.082441 56.758825 10.373264 82.57003-23.702118 32.698018-57.648371 44.47734-96.845821 40.632202-14.347529-1.434753-28.379412-6.0977-42.497381-9.555455-9.225461-2.252562-16.915737-1.535186-22.109542 7.876794-0.903894 1.936916-4.591209 2.338647-8.795035 4.189478z",
38
+ fill: "#B21B3A",
39
+ "p-id": "11912"
40
+ }), /*#__PURE__*/React.createElement("path", {
41
+ d: "M457.800954 533.772999c-1.606923 1.635618-3.199499 4.677294-4.835117 4.691642-32.698018 0.272603-65.410385 0.215213-98.122751 0.215213-1.649966-5.179458 0-7.173764 4.749032-7.288544a79.284445 79.284445 0 0 0 12.783649-1.434753c10.358916-2.051697 14.491004-7.173764 13.257116-17.633113a187.507856 187.507856 0 0 0-4.734684-22.353451c-2.166477-8.795035-4.76338-17.489638-6.915509-26.29902-0.946937-3.845138-2.740378-5.495104-6.886814-5.480756-32.023685 0.129128-64.061717 0-96.128444 0.200865a8.608517 8.608517 0 0 0-6.26987 3.299932c-8.522432 13.257117-16.700524 26.743794-24.950353 40.173081-0.989979 1.621271-1.678661 3.429059-2.625598 5.079025-7.776361 13.70189-0.602596 23.113869 14.347529 24.247324 4.634252 0.344341 7.66158 0.932589 5.265543 6.972899h-78.696196c-0.903894-4.218174-0.473468-6.413345 4.691642-7.173764a35.754042 35.754042 0 0 0 24.67775-14.591437c20.344796-28.881576 40.675245-57.791847 60.259621-87.218629 29.971988-45.180369 59.212252-90.834206 88.95468-136.143702a10.416306 10.416306 0 0 1 7.747665-4.175131c1.779094 0.071738 4.304259 3.7734 4.964245 6.26987q28.264632 98.99795 56.242314 198.16807c1.893874 6.642906 4.390344 13.113641 6.685948 19.62742 3.959918 11.3202 10.717604 19.196994 24.3908 18.508312z m-115.411523-192.429058l-65.424732 101.867456h92.928945zM598.650646 452.809893c-2.309952 17.948759-6.657253 35.624914-10.043271 53.430198-2.066044 10.889774 2.783421 19.641767 13.457983 22.626053 7.030289 1.965611 14.447962 2.510818 24.075153 4.074699-2.869506 2.510818-4.562514 5.480756-6.341608 5.480756-38.967889 0.22956-77.935777 0.143475-116.918013 0.071737-0.416078 0-0.817809-0.401731-1.305625-0.659986-1.018675-4.662947 1.076065-5.939877 5.609884-6.542473a153.69073 153.69073 0 0 0 25.725119-5.122068c8.350262-2.61125 12.912776-9.426327 14.519699-18.077887 4.720337-24.84992 9.569802-49.671145 14.146664-74.60715a12.152357 12.152357 0 0 0-1.291278-7.417673c-17.920064-32.999317-35.868822-65.883853-54.118879-98.624914-10.703257-19.168299-15.194033-22.310408-37.131405-30.12981 1.908221-1.434753 3.802095-3.94557 5.739012-3.959918 35.381006-0.200865 70.762013-0.11478 106.171714 0a6.32726 6.32726 0 0 1 1.578228 0.487816c0.602596 4.777727-1.33432 6.786381-6.312913 6.470735a46.815987 46.815987 0 0 0-7.819403 0.875199c-17.53268 1.893874-21.105215 8.221134-13.75928 25.366432 6.556821 15.323161 15.208381 29.742428 22.956046 44.477339 6.685948 12.654521 13.501025 25.237303 20.646094 38.594853 1.865179-1.779094 3.429059-3.084719 4.76338-4.576861 22.037804-24.448189 44.132999-48.968116 65.78342-73.846732 4.76338-5.466409 8.235482-12.1954 11.607151-18.651788 2.410385-4.677294 0.459121-8.608517-4.863812-9.713277-6.241175-1.434753-12.582783-2.26691-19.268732-3.429059l0.559554-5.739012h88.02209l1.291278 1.549533c-2.037349 1.979959-3.83079 5.322933-6.140743 5.739012-16.413573 2.740378-29.441129 11.664541-40.445684 23.070826-26.715099 27.647688-52.181963 56.514917-79.241402 83.818265",
42
+ fill: "#0D3676",
43
+ "p-id": "11913"
44
+ }), /*#__PURE__*/React.createElement("path", {
45
+ d: "M1146.79799 298.000056c1.563881-1.549533 3.127761-4.462082 4.705989-4.476429 38.451378-0.258256 76.917103-0.200865 115.454566-0.200865 1.736051 5.16511-0.071738 6.427693-4.720337 7.073331a138.927123 138.927123 0 0 0-24.3908 5.093373c-8.53678 2.797768-13.257117 9.512412-15.007515 18.52266-11.678889 60.431792-23.544295 120.820541-35.208836 181.252333-2.869506 14.677522 5.739012 24.204281 22.956046 25.983375a70.518105 70.518105 0 0 1 7.848099 0.530859c1.205192 0.258256 3.084719 2.152129 2.869505 2.869506a7.919836 7.919836 0 0 1-3.027328 3.744705c-0.602596 0.487816-1.850831 0.186518-2.869506 0.186518h-109.04122a38.738328 38.738328 0 0 1-4.304259-0.459121c-1.807789-5.294238 0.946937-6.083352 5.150763-6.714644 8.192439-1.233887 16.542701-2.338647 24.390799-4.949897 8.120701-2.726031 12.826691-9.067638 14.548395-17.977454 11.822364-60.446139 23.773855-120.806194 35.567524-181.237986 2.697335-13.874061-3.959918-23.142564-18.135277-25.610339-4.921202-0.860852-9.92849-1.233887-14.892735-1.822136z",
46
+ fill: "#B21B3A",
47
+ "p-id": "11914"
48
+ })));
49
+ IconPayssionPay.displayName = 'IconPayssionPay';
50
+ export default IconPayssionPay;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconStripe: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconStripe;
@@ -0,0 +1,22 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconStripe = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1749699330712",
9
+ viewBox: "0 0 1024 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "12279",
13
+ stroke: "currentColor",
14
+ strokeWidth: "4",
15
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-stripe")
16
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
17
+ d: "M128 0a128 128 0 0 0-128 128v768a128 128 0 0 0 128 128h768a128 128 0 0 0 128-128V128a128 128 0 0 0-128-128z m398.464 344.64c-37.376 0-59.968 10.496-59.968 37.952 0 29.952 38.848 43.136 87.04 59.52 78.592 26.56 182.016 61.632 182.464 191.552C736 759.552 635.136 832 488.32 832a490.784 490.784 0 0 1-195.744-41.312l3.168 1.248v-167.424c59.264 32.384 134.08 56.32 192.64 56.32 39.488 0 67.712-10.56 67.712-42.944 0-33.152-42.112-48.32-92.992-66.624C385.664 543.36 288 508.16 288 391.04 288 266.56 383.232 192 526.464 192l4.192-0.032c61.472 0 120.192 11.872 173.952 33.44l-3.136-1.12v165.312c-53.632-28.8-121.344-44.992-174.976-44.992z",
18
+ "p-id": "12280",
19
+ fill: "#5f59d7"
20
+ })));
21
+ IconStripe.displayName = 'IconStripe';
22
+ export default IconStripe;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconStripeText: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconStripeText;
@@ -0,0 +1,22 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconStripeText = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1749718686078",
9
+ viewBox: "0 0 2469 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "7307",
13
+ stroke: "currentColor",
14
+ strokeWidth: "4",
15
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-stripe-text")
16
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
17
+ d: "M2165.028571 477.696c5.12-80.896 26.624-118.784 68.096-118.784s61.952 38.912 65.024 118.784H2165.028571z m303.616 48.128a340.918857 340.918857 0 0 0-58.514285-212.114286 207.945143 207.945143 0 0 0-173.056-76.8c-153.6 0-249.344 113.664-249.344 295.424a305.078857 305.078857 0 0 0 75.776 227.328 269.677714 269.677714 0 0 0 194.048 65.828572 365.714286 365.714286 0 0 0 194.048-48.128l-19.602286-124.050286a319.780571 319.780571 0 0 1-154.624 37.376 109.714286 109.714286 0 0 1-76.288-22.528 110.445714 110.445714 0 0 1-33.28-79.36h299.52c-0.512-9.216 1.024-50.176 1.024-62.976z m-723.236571 122.368a71.241143 71.241143 0 0 1-63.122286 41.984 107.812571 107.812571 0 0 1-48.64-10.752V409.6a96.694857 96.694857 0 0 1 68.096-35.328c46.08 0 68.096 49.664 68.096 146.285714a255.561143 255.561143 0 0 1-24.064 127.488z m150.016-349.696a158.72 158.72 0 0 0-133.12-61.952 189.366857 189.366857 0 0 0-141.312 67.584l-9.216-56.832h-159.232V1024l180.736-30.208V811.885714a278.601143 278.601143 0 0 0 81.408 13.312 213.138286 213.138286 0 0 0 161.792-67.072 354.377143 354.377143 0 0 0 73.728-244.224 350.500571 350.500571 0 0 0-54.784-215.552z m-695.296-51.2h181.248v566.784h-181.248z m91.136-55.808a95.085714 95.085714 0 0 0 95.085714-95.744 95.085714 95.085714 0 1 0-190.171428 0 95.085714 95.085714 0 0 0 95.085714 95.744z m-169.472 48.64a107.373714 107.373714 0 0 0-107.52 74.752l-10.752-67.072h-157.696v566.272h180.736V446.171429a117.028571 117.028571 0 0 1 98.304-37.888 190.610286 190.610286 0 0 1 32.256 2.048V244.224a152.868571 152.868571 0 0 0-35.328-4.096zM775.314286 381.44l21.942857-133.632H681.984V84.48l-155.355429 25.6-22.308571 137.216-54.784 8.704-19.968 124.928H504.685714V643.657143a175.542857 175.542857 0 0 0 53.248 144.896 206.701714 206.701714 0 0 0 133.12 35.328 335.213714 335.213714 0 0 0 95.085715-13.312v-141.897143a266.532571 266.532571 0 0 1-52.224 8.192c-35.328 0-50.688-17.92-50.688-59.392V381.44zM258.048 461.312C204.8 441.344 175.542857 425.984 175.542857 402.285714c0-19.968 16.896-32.256 46.592-32.256a373.028571 373.028571 0 0 1 149.065143 39.570286l21.942857-135.168a414.72 414.72 0 0 0-179.638857-38.912 227.766857 227.766857 0 0 0-148.48 46.08A163.254857 163.254857 0 0 0 7.314286 413.184C7.314286 512 67.584 554.496 166.4 590.336c63.488 22.528 84.48 38.912 84.48 63.488s-19.968 37.888-57.344 37.888A397.604571 397.604571 0 0 1 22.528 640L0 776.704a442.953143 442.953143 0 0 0 202.752 48.64 249.490286 249.490286 0 0 0 155.136-43.885714 168.667429 168.667429 0 0 0 61.952-140.434286c0-102.4-61.952-144.384-161.792-179.712z",
18
+ fill: "#6772E5",
19
+ "p-id": "7308"
20
+ })));
21
+ IconStripeText.displayName = 'IconStripeText';
22
+ export default IconStripeText;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../interface';
3
+ declare const IconWechatPay: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
4
+ export default IconWechatPay;
@@ -0,0 +1,21 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import omit from '../../utils/omit';
4
+ import { getPrefixCls } from '../../utils/getPrefixCls';
5
+ const classPrefix = getPrefixCls('icon');
6
+ const IconWechatPay = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
7
+ ref: ref,
8
+ d: "1750765734858",
9
+ viewBox: "0 0 1024 1024",
10
+ version: "1.1",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ "p-id": "6038",
13
+ stroke: "currentColor",
14
+ className: "".concat(classPrefix, " ").concat(classPrefix, "-wechat-pay")
15
+ }, omit(props, ['className'])), /*#__PURE__*/React.createElement("path", {
16
+ d: "M964.16 294.4c-3.328-5.568-5.888-5.76-11.168-2.528-17.44 10.56-35.168 20.64-52.864 30.752-45.024 25.76-90.144 51.424-135.2 77.184-53.344 30.464-106.688 60.896-159.936 91.488-75.328 43.264-150.56 86.656-225.856 129.984-21.056 12.096-41.184 5.6-51.232-16.48-8.448-18.432-16.992-36.832-25.44-55.264-21.92-48.032-43.84-96.064-65.696-144.128-4.032-8.864-2.528-15.264 4.16-20.8 6.304-5.28 13.824-5.248 21.568 0.256 35.136 24.864 70.08 49.92 105.376 74.56 15.84 11.072 33.12 12.64 51.008 4.8 45.824-20.16 91.648-40.224 137.376-60.48 64.928-28.8 129.728-57.76 194.624-86.528a30516.544 30516.544 0 0 1 165.056-72.8c7.136-3.104 7.616-5.44 2.56-11.104-40.96-45.664-89.376-81.248-144.32-108.864a568.64 568.64 0 0 0-159.488-52.064c-33.728-5.856-67.84-9.536-99.712-7.68-45.92-1.28-88.576 3.968-130.976 13.088a560.096 560.096 0 0 0-98.976 30.784c-85.76 35.904-157.696 89.216-211.008 165.76C30.816 336.32 8.352 405.12 7.776 480.48a340.96 340.96 0 0 0 15.264 102.656c20.16 66.24 56.832 122.016 106.176 170.24 16.832 16.416 35.136 31.072 53.792 45.28 11.584 8.8 15.552 20.704 12.224 34.048-6.752 27.136-14.72 54.016-22.144 80.992l-3.648 13.696a15.776 15.776 0 0 0 6.304 17.792c6.496 4.544 13.76 3.424 20.576-0.48 36.352-20.8 72.704-41.6 109.12-62.272 10.624-6.048 21.888-10.528 34.432-8.032 9.312 1.824 18.496 4.416 27.68 6.912 39.36 10.656 79.616 15.808 120.288 17.216 41.248 1.408 82.304-0.64 123.2-7.424 34.112-5.632 67.584-13.504 99.872-25.216 58.976-21.344 113.568-50.72 161.6-91.424 66.944-56.64 113.856-125.6 134.88-211.104a349.12 349.12 0 0 0 5.184-139.2c-7.36-46.304-24.224-89.44-48.416-129.792",
17
+ fill: "#0DC803",
18
+ "p-id": "6039"
19
+ })));
20
+ IconWechatPay.displayName = 'IconWechatPay';
21
+ export default IconWechatPay;
@@ -0,0 +1,9 @@
1
+ export * from './interface';
2
+ export { default as IconClose } from './IconClose';
3
+ export { default as IconPaypalText } from './IconPaypalText';
4
+ export { default as IconPaypalWhite } from './IconPaypalWhite';
5
+ export { default as IconStripe } from './IconStripe';
6
+ export { default as IconStripeText } from './IconStripeText';
7
+ export { default as IconAlipay } from './IconAlipay';
8
+ export { default as IconWechatPay } from './IconWechatPay';
9
+ export { default as IconPayssionPay } from './IconPayssionPay';
@@ -0,0 +1,9 @@
1
+ export * from './interface';
2
+ export { default as IconClose } from './IconClose';
3
+ export { default as IconPaypalText } from './IconPaypalText';
4
+ export { default as IconPaypalWhite } from './IconPaypalWhite';
5
+ export { default as IconStripe } from './IconStripe';
6
+ export { default as IconStripeText } from './IconStripeText';
7
+ export { default as IconAlipay } from './IconAlipay';
8
+ export { default as IconWechatPay } from './IconWechatPay';
9
+ export { default as IconPayssionPay } from './IconPayssionPay';
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export interface IconProps extends React.SVGAttributes<SVGElement> {
3
+ style?: React.CSSProperties;
4
+ spin?: boolean;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ .pay-icon{display:inline-block;color:inherit;width:16px;vertical-align:-2px;stroke:currentColor}.pay-icon[fill=currentColor]{fill:currentColor;stroke:none}.pay-icon[stroke=currentColor]{stroke:currentColor;fill:none}.pay-icon[fill=currentColor][stroke=currentColor]{fill:currentColor;stroke:currentColor}.pay-icon-paypal-text{width:64px;height:26px;max-width:72px;max-height:32px}.pay-icon-close{width:18px;height:18px}.pay-icon-stripe-text{width:24px;height:24px}.pay-icon-alipay{width:20px;height:20px}.pay-icon-wechat-pay{width:20px;height:20px}.pay-icon-payssion-pay{width:36px;height:20px}
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1,19 @@
1
+ export type { PaypalButtonProps, PaypalButtonRef, CreateOrderPaypalFn, PaypalSecretMap, } from './Paypal/interface';
2
+ export { PaypalButton } from './Paypal';
3
+ export type { BasesStripeProps, StripeProps, StripePopupProps, StripePopupRef, StripeButtonProps, StripeButtonRef, CreateOrderStripeFn, StripeModalRef, } from './Stripe/interface';
4
+ export { default as Stripe } from './Stripe';
5
+ export type { AirwallexProps, AirwallexPopupProps, AirwallexPopupRef, AirwallexButtonProps, AirwallexButtonRef, CreateOrderAirwallexFn, AirwallexModalProps, AirwallexModalRef, } from './Airwallex/interface';
6
+ export { default as Airwallex } from './Airwallex';
7
+ export type { PayssionButtonProps, PayssionButtonRef, CreateOrderPayssionFn, PayssionSecretMap, } from './Payssion/interface';
8
+ export { PayssionButton } from './Payssion';
9
+ export type { MWeChatButtonProps, MWeChatButtonRef, CreateOrderMWeChatFn, MWeChatFormData, } from './MWeChat/interface';
10
+ export { MWechatButton } from './MWeChat';
11
+ export type { MAlipayButtonProps, MAlipayButtonRef, CreateOrderMAlipayFn, MAlipayFormData, } from './MAlipay/interface';
12
+ export { default as MAlipay } from './MAlipay';
13
+ export type { AlipayProps, AlipayModalProps, AlipayButtonProps, AlipayButtonRef, AlipayFormData, AlipayModalRef, } from './Alipay/interface';
14
+ export { default as Alipay } from './Alipay';
15
+ export type { WechatProps, WechatModalProps, WechatButtonProps, WechatButtonRef, WechatModalRef, } from './Wechat/interface';
16
+ export { default as Wechat } from './Wechat';
17
+ export type { PayButtonProps, PayButtonRef } from './PayButton/interface';
18
+ export { default as PayButton } from './PayButton';
19
+ export * from './shared';
@@ -0,0 +1,10 @@
1
+ export { PaypalButton } from './Paypal';
2
+ export { default as Stripe } from './Stripe';
3
+ export { default as Airwallex } from './Airwallex';
4
+ export { PayssionButton } from './Payssion';
5
+ export { MWechatButton } from './MWeChat';
6
+ export { default as MAlipay } from './MAlipay';
7
+ export { default as Alipay } from './Alipay';
8
+ export { default as Wechat } from './Wechat';
9
+ export { default as PayButton } from './PayButton';
10
+ export * from './shared';
@@ -0,0 +1,3 @@
1
+ import PayModal from "./pay-modal";
2
+ export * from "./interface";
3
+ export default PayModal;
@@ -0,0 +1,3 @@
1
+ import PayModal from "./pay-modal";
2
+ export * from "./interface";
3
+ export default PayModal;
@@ -0,0 +1,94 @@
1
+ import React, { ReactNode } from "react";
2
+ export interface PayModalProps {
3
+ /**
4
+ * @zh 是否显示弹窗
5
+ * @en Whether to show the modal
6
+ */
7
+ visible?: boolean;
8
+ /**
9
+ * @zh 图标
10
+ * @en Icon
11
+ */
12
+ icon?: React.ReactNode;
13
+ /**
14
+ * @zh 标题
15
+ * @en Title
16
+ */
17
+ title?: string;
18
+ /**
19
+ * @zh 描述
20
+ * @en Description
21
+ */
22
+ desc?: React.ReactNode;
23
+ /**
24
+ * @zh 内容
25
+ * @en Content
26
+ */
27
+ children?: React.ReactNode;
28
+ /**
29
+ * @zh 重试按钮文本
30
+ * @en Retry button text
31
+ */
32
+ retryText?: string;
33
+ /**
34
+ * @zh 完成按钮文本
35
+ * @en Finish button text
36
+ */
37
+ finishText?: string;
38
+ /**
39
+ * @zh 是否显示右上角关闭按钮,默认 true
40
+ * @en Whether to show the close button in the top right corner, default is true
41
+ */
42
+ showClose?: boolean;
43
+ /**
44
+ * @zh 点击蒙层是否关闭弹窗,默认 false
45
+ * @en Whether to close the modal when clicking the mask, default is false
46
+ */
47
+ maskClosable?: boolean;
48
+ /**
49
+ * @zh 重试按钮回调
50
+ * @en Retry button callback
51
+ */
52
+ onRetry?: () => void;
53
+ /**
54
+ * @zh 完成按钮回调
55
+ * @en Finish button callback
56
+ */
57
+ onFinish?: () => void;
58
+ /**
59
+ * @zh 关闭弹窗回调
60
+ * @en Close modal callback
61
+ */
62
+ onClose?: () => void;
63
+ /**
64
+ * @zh 自定义页脚,传入 null 则不显示
65
+ * @en Custom footer, pass null to hide
66
+ */
67
+ footer?: ReactNode | ((retryButtonNode: ReactNode, finishButtonNode: ReactNode) => ReactNode) | null;
68
+ /**
69
+ * @zh 自定义样式
70
+ * @en Custom style
71
+ */
72
+ className?: string;
73
+ /**
74
+ * @zh 自定义样式
75
+ * @en Custom style
76
+ */
77
+ style?: React.CSSProperties;
78
+ /**
79
+ * @zh 自定义样式
80
+ * @en Custom style
81
+ */
82
+ contentClassName?: string;
83
+ /**
84
+ * @zh 自定义样式
85
+ * @en Custom style
86
+ */
87
+ contentStyle?: React.CSSProperties;
88
+ /**
89
+ * @zh 弹窗挂载的容器
90
+ * @en The container to mount the modal
91
+ * @default document.body
92
+ */
93
+ container?: HTMLElement;
94
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { PayModalProps } from './interface';
3
+ declare const PayModal: React.FC<PayModalProps>;
4
+ export * from './interface';
5
+ export default PayModal;
@@ -0,0 +1,93 @@
1
+ import React, { useCallback, useEffect, useRef } from 'react';
2
+ import ReactDOM from 'react-dom';
3
+ import { isFunction } from '../utils/is';
4
+ import cs from '../utils/classNames';
5
+ import { useLockScroll } from '../hooks/use-lock-scroll';
6
+ import { clientDocument } from '../utils/dom';
7
+ import { getPrefixCls } from '../utils/getPrefixCls';
8
+ const classPrefix = getPrefixCls('modal');
9
+ const PayModal = props => {
10
+ const {
11
+ visible,
12
+ title,
13
+ desc,
14
+ retryText = '重新支付',
15
+ finishText = '支付完成',
16
+ icon,
17
+ showClose = true,
18
+ maskClosable = false,
19
+ onRetry,
20
+ onFinish,
21
+ onClose,
22
+ children,
23
+ footer,
24
+ className,
25
+ style,
26
+ contentClassName,
27
+ contentStyle,
28
+ container
29
+ } = props;
30
+ const el = useRef(clientDocument === null || clientDocument === void 0 ? void 0 : clientDocument.createElement('div'));
31
+ const ref = useRef(null);
32
+ useLockScroll(ref, !!visible);
33
+ useEffect(() => {
34
+ if (visible) {
35
+ const mountNode = container || document.body;
36
+ const currentEl = el.current;
37
+ if (currentEl) {
38
+ mountNode.appendChild(currentEl);
39
+ }
40
+ return () => {
41
+ if (currentEl && mountNode.contains(currentEl)) {
42
+ mountNode.removeChild(currentEl);
43
+ }
44
+ };
45
+ }
46
+ }, [visible, container]);
47
+ const classNames = cs(classPrefix, className);
48
+ const contentClassNames = cs("".concat(classPrefix, "__content"), contentClassName);
49
+ const handleMaskClose = useCallback(() => {
50
+ if (maskClosable) onClose === null || onClose === void 0 || onClose();
51
+ }, [maskClosable, onClose]);
52
+ const renderFooter = () => {
53
+ if (footer === null) return;
54
+ const retryButtonNode = /*#__PURE__*/React.createElement("button", {
55
+ className: "".concat(classPrefix, "__btn ").concat(classPrefix, "__btn--retry"),
56
+ onClick: onRetry
57
+ }, retryText);
58
+ const finishButtonNode = /*#__PURE__*/React.createElement("button", {
59
+ className: "".concat(classPrefix, "__btn ").concat(classPrefix, "__btn--finish"),
60
+ onClick: onFinish
61
+ }, finishText);
62
+ const footerContent = isFunction(footer) ? footer(retryButtonNode, finishButtonNode) : footer || /*#__PURE__*/React.createElement(React.Fragment, null, retryButtonNode, finishButtonNode);
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ className: "".concat(classPrefix, "__actions")
65
+ }, footerContent);
66
+ };
67
+ if (!visible || !el.current) return null;
68
+ const modalContent = /*#__PURE__*/React.createElement("div", {
69
+ className: classNames,
70
+ style: style
71
+ }, /*#__PURE__*/React.createElement("div", {
72
+ className: "".concat(classPrefix, "__mask"),
73
+ onClick: handleMaskClose
74
+ }), /*#__PURE__*/React.createElement("div", {
75
+ className: contentClassNames,
76
+ style: contentStyle
77
+ }, showClose && /*#__PURE__*/React.createElement("button", {
78
+ className: "".concat(classPrefix, "__close"),
79
+ onClick: onClose,
80
+ "aria-label": "\u5173\u95ED"
81
+ }, "\xD7"), icon && /*#__PURE__*/React.createElement("div", {
82
+ className: "".concat(classPrefix, "__icon")
83
+ }, icon), title && /*#__PURE__*/React.createElement("div", {
84
+ className: "".concat(classPrefix, "__title")
85
+ }, title), desc && /*#__PURE__*/React.createElement("div", {
86
+ className: "".concat(classPrefix, "__desc")
87
+ }, desc), children && /*#__PURE__*/React.createElement("div", {
88
+ className: "".concat(classPrefix, "__content-wrapper")
89
+ }, children), renderFooter()));
90
+ return /*#__PURE__*/ReactDOM.createPortal(modalContent, el.current);
91
+ };
92
+ export * from './interface';
93
+ export default PayModal;
@@ -0,0 +1 @@
1
+ .pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:60vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;cursor:pointer;text-align:left}.pay-modal__icon{margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:1;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { PayPopupProps } from './interface';
3
+ declare const PayPopup: React.FC<PayPopupProps>;
4
+ export * from './interface';
5
+ export default PayPopup;