@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",
@@ -29,7 +29,7 @@ function TxLink(props) {
29
29
  text,
30
30
  link
31
31
  } = (0, _util.getTxLink)(props.method, props.details);
32
- if (link) {
32
+ if (link && text) {
33
33
  return /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Link, {
34
34
  href: link,
35
35
  target: "_blank",
@@ -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.32",
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.32",
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": "347accd83eb9354f423e06670d53003b4fd40114"
126
+ "gitHead": "e5ae487796f7c104b577dbab2a937013c3fbac12"
127
127
  }
@@ -29,7 +29,7 @@ export default function TxLink(props: {
29
29
 
30
30
  const { text, link } = getTxLink(props.method, props.details);
31
31
 
32
- if (link) {
32
+ if (link && text) {
33
33
  return (
34
34
  <Link href={link} target="_blank" rel="noopener noreferrer">
35
35
  <Root
@@ -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}