@blocklet/payment-react 1.18.43 → 1.18.44

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.
@@ -99,9 +99,9 @@ export default function AddressForm({ mode, stripe, sx = {}, fieldValidation, er
99
99
  ] }) }) });
100
100
  }
101
101
  if (stripe) {
102
- return /* @__PURE__ */ jsx(Fade, { in: true, children: /* @__PURE__ */ jsxs(Stack, { className: "cko-payment-address cko-payment-form", sx, children: [
102
+ return /* @__PURE__ */ jsx(Fade, { in: true, children: /* @__PURE__ */ jsx(Stack, { className: "cko-payment-address cko-payment-form", sx, children: /* @__PURE__ */ jsxs(Stack, { direction: "column", className: "cko-payment-form", spacing: 0, children: [
103
103
  /* @__PURE__ */ jsx(FormLabel, { className: "base-label", children: t("payment.checkout.billing.postal_code") }),
104
- /* @__PURE__ */ jsx(Stack, { direction: "column", className: "cko-payment-form", spacing: 0, children: /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 0, children: /* @__PURE__ */ jsx(
104
+ /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 0, children: /* @__PURE__ */ jsx(
105
105
  FormInput,
106
106
  {
107
107
  name: "billing_address.postal_code",
@@ -116,7 +116,6 @@ export default function AddressForm({ mode, stripe, sx = {}, fieldValidation, er
116
116
  errorPosition,
117
117
  variant: "outlined",
118
118
  placeholder: t("payment.checkout.billing.postal_code"),
119
- wrapperStyle: { height: "40px" },
120
119
  InputProps: {
121
120
  startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", style: { marginRight: "2px", marginLeft: "-8px" }, children: /* @__PURE__ */ jsx(
122
121
  Controller,
@@ -138,8 +137,8 @@ export default function AddressForm({ mode, stripe, sx = {}, fieldValidation, er
138
137
  ) })
139
138
  }
140
139
  }
141
- ) }) })
142
- ] }) });
140
+ ) })
141
+ ] }) }) });
143
142
  }
144
143
  return null;
145
144
  }
@@ -128,17 +128,17 @@ function AddressForm({
128
128
  if (stripe) {
129
129
  return /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Fade, {
130
130
  in: true,
131
- children: /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Stack, {
131
+ children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Stack, {
132
132
  className: "cko-payment-address cko-payment-form",
133
133
  sx,
134
- children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_material.FormLabel, {
135
- className: "base-label",
136
- children: t("payment.checkout.billing.postal_code")
137
- }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Stack, {
134
+ children: /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Stack, {
138
135
  direction: "column",
139
136
  className: "cko-payment-form",
140
137
  spacing: 0,
141
- children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Stack, {
138
+ children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_material.FormLabel, {
139
+ className: "base-label",
140
+ children: t("payment.checkout.billing.postal_code")
141
+ }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Stack, {
142
142
  direction: "row",
143
143
  spacing: 0,
144
144
  children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_input.default, {
@@ -154,9 +154,6 @@ function AddressForm({
154
154
  errorPosition,
155
155
  variant: "outlined",
156
156
  placeholder: t("payment.checkout.billing.postal_code"),
157
- wrapperStyle: {
158
- height: "40px"
159
- },
160
157
  InputProps: {
161
158
  startAdornment: /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.InputAdornment, {
162
159
  position: "start",
@@ -181,8 +178,8 @@ function AddressForm({
181
178
  })
182
179
  }
183
180
  })
184
- })
185
- })]
181
+ })]
182
+ })
186
183
  })
187
184
  });
188
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.18.43",
3
+ "version": "1.18.44",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -54,16 +54,16 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@arcblock/did-connect": "^2.13.32",
58
- "@arcblock/ux": "^2.13.32",
59
- "@arcblock/ws": "^1.20.10",
60
- "@blocklet/theme": "^2.13.32",
61
- "@blocklet/ui-react": "^2.13.32",
57
+ "@arcblock/did-connect": "^2.13.36",
58
+ "@arcblock/ux": "^2.13.36",
59
+ "@arcblock/ws": "^1.20.11",
60
+ "@blocklet/theme": "^2.13.36",
61
+ "@blocklet/ui-react": "^2.13.36",
62
62
  "@mui/icons-material": "^5.16.6",
63
63
  "@mui/lab": "^5.0.0-alpha.173",
64
64
  "@mui/material": "^5.16.6",
65
65
  "@mui/system": "^5.16.6",
66
- "@ocap/util": "^1.20.10",
66
+ "@ocap/util": "^1.20.11",
67
67
  "@stripe/react-stripe-js": "^2.7.3",
68
68
  "@stripe/stripe-js": "^2.4.0",
69
69
  "@vitejs/plugin-legacy": "^5.4.1",
@@ -94,7 +94,7 @@
94
94
  "@babel/core": "^7.25.2",
95
95
  "@babel/preset-env": "^7.25.2",
96
96
  "@babel/preset-react": "^7.24.7",
97
- "@blocklet/payment-types": "1.18.43",
97
+ "@blocklet/payment-types": "1.18.44",
98
98
  "@storybook/addon-essentials": "^7.6.20",
99
99
  "@storybook/addon-interactions": "^7.6.20",
100
100
  "@storybook/addon-links": "^7.6.20",
@@ -125,5 +125,5 @@
125
125
  "vite-plugin-babel": "^1.2.0",
126
126
  "vite-plugin-node-polyfills": "^0.21.0"
127
127
  },
128
- "gitHead": "278c503efd49cab6413b324a4b38bf37a3456468"
128
+ "gitHead": "88004667b15d54fd198448255fda732cedfda970"
129
129
  }
@@ -107,8 +107,8 @@ export default function AddressForm({ mode, stripe, sx = {}, fieldValidation, er
107
107
  return (
108
108
  <Fade in>
109
109
  <Stack className="cko-payment-address cko-payment-form" sx={sx}>
110
- <FormLabel className="base-label">{t('payment.checkout.billing.postal_code')}</FormLabel>
111
110
  <Stack direction="column" className="cko-payment-form" spacing={0}>
111
+ <FormLabel className="base-label">{t('payment.checkout.billing.postal_code')}</FormLabel>
112
112
  <Stack direction="row" spacing={0}>
113
113
  <FormInput
114
114
  name="billing_address.postal_code"
@@ -123,7 +123,6 @@ export default function AddressForm({ mode, stripe, sx = {}, fieldValidation, er
123
123
  errorPosition={errorPosition}
124
124
  variant="outlined"
125
125
  placeholder={t('payment.checkout.billing.postal_code')}
126
- wrapperStyle={{ height: '40px' }}
127
126
  InputProps={{
128
127
  startAdornment: (
129
128
  <InputAdornment position="start" style={{ marginRight: '2px', marginLeft: '-8px' }}>