@blocklet/payment-react 1.14.32 → 1.14.33
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.
|
@@ -14,7 +14,7 @@ export default function TxLink(props) {
|
|
|
14
14
|
return /* @__PURE__ */ jsx(Typography, { component: "small", color: "text.secondary", children: t("common.none") });
|
|
15
15
|
}
|
|
16
16
|
const { text, link } = getTxLink(props.method, props.details);
|
|
17
|
-
if (link) {
|
|
17
|
+
if (link && text) {
|
|
18
18
|
return /* @__PURE__ */ jsx(Link, { href: link, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsxs(
|
|
19
19
|
Root,
|
|
20
20
|
{
|
|
@@ -93,7 +93,7 @@ export default function AddressForm({ mode, stripe, sx = {} }) {
|
|
|
93
93
|
placeholder: t("payment.checkout.billing.postal_code"),
|
|
94
94
|
wrapperStyle: { height: "40px" },
|
|
95
95
|
InputProps: {
|
|
96
|
-
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx(
|
|
96
|
+
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", style: { marginRight: "2px", marginLeft: "-8px" }, children: /* @__PURE__ */ jsx(
|
|
97
97
|
Controller,
|
|
98
98
|
{
|
|
99
99
|
name: "billing_address.country",
|
|
@@ -141,6 +141,10 @@ function AddressForm({
|
|
|
141
141
|
InputProps: {
|
|
142
142
|
startAdornment: /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.InputAdornment, {
|
|
143
143
|
position: "start",
|
|
144
|
+
style: {
|
|
145
|
+
marginRight: "2px",
|
|
146
|
+
marginLeft: "-8px"
|
|
147
|
+
},
|
|
144
148
|
children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactHookForm.Controller, {
|
|
145
149
|
name: "billing_address.country",
|
|
146
150
|
control,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.33",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -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.14.
|
|
96
|
+
"@blocklet/payment-types": "1.14.33",
|
|
97
97
|
"@storybook/addon-essentials": "^7.6.20",
|
|
98
98
|
"@storybook/addon-interactions": "^7.6.20",
|
|
99
99
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"vite-plugin-babel": "^1.2.0",
|
|
124
124
|
"vite-plugin-node-polyfills": "^0.21.0"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "e5ae487796f7c104b577dbab2a937013c3fbac12"
|
|
127
127
|
}
|
|
@@ -99,7 +99,7 @@ export default function AddressForm({ mode, stripe, sx = {} }: Props) {
|
|
|
99
99
|
wrapperStyle={{ height: '40px' }}
|
|
100
100
|
InputProps={{
|
|
101
101
|
startAdornment: (
|
|
102
|
-
<InputAdornment position="start">
|
|
102
|
+
<InputAdornment position="start" style={{ marginRight: '2px', marginLeft: '-8px' }}>
|
|
103
103
|
<Controller
|
|
104
104
|
name="billing_address.country"
|
|
105
105
|
control={control}
|