@blocklet/payment-react 1.17.7 → 1.17.8
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.
package/es/components/input.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { RegisterOptions } from 'react-hook-form';
|
|
2
3
|
declare const FormInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").OutlinedTextFieldProps & {
|
|
3
4
|
name: string;
|
|
4
|
-
label?:
|
|
5
|
+
label?: ReactNode;
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
errorPosition?: "right" | "bottom";
|
|
7
8
|
rules?: RegisterOptions;
|
|
8
9
|
wrapperStyle?: any;
|
|
9
10
|
}, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
|
|
10
11
|
name: string;
|
|
11
|
-
label?:
|
|
12
|
+
label?: ReactNode;
|
|
12
13
|
placeholder?: string;
|
|
13
14
|
errorPosition?: "right" | "bottom";
|
|
14
15
|
rules?: RegisterOptions;
|
|
15
16
|
wrapperStyle?: any;
|
|
16
17
|
}, "ref"> | Omit<import("@mui/material").StandardTextFieldProps & {
|
|
17
18
|
name: string;
|
|
18
|
-
label?:
|
|
19
|
+
label?: ReactNode;
|
|
19
20
|
placeholder?: string;
|
|
20
21
|
errorPosition?: "right" | "bottom";
|
|
21
22
|
rules?: RegisterOptions;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { RegisterOptions } from 'react-hook-form';
|
|
2
3
|
declare const FormInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").OutlinedTextFieldProps & {
|
|
3
4
|
name: string;
|
|
4
|
-
label?:
|
|
5
|
+
label?: ReactNode;
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
errorPosition?: "right" | "bottom";
|
|
7
8
|
rules?: RegisterOptions;
|
|
8
9
|
wrapperStyle?: any;
|
|
9
10
|
}, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
|
|
10
11
|
name: string;
|
|
11
|
-
label?:
|
|
12
|
+
label?: ReactNode;
|
|
12
13
|
placeholder?: string;
|
|
13
14
|
errorPosition?: "right" | "bottom";
|
|
14
15
|
rules?: RegisterOptions;
|
|
15
16
|
wrapperStyle?: any;
|
|
16
17
|
}, "ref"> | Omit<import("@mui/material").StandardTextFieldProps & {
|
|
17
18
|
name: string;
|
|
18
|
-
label?:
|
|
19
|
+
label?: ReactNode;
|
|
19
20
|
placeholder?: string;
|
|
20
21
|
errorPosition?: "right" | "bottom";
|
|
21
22
|
rules?: RegisterOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.8",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@babel/core": "^7.25.2",
|
|
93
93
|
"@babel/preset-env": "^7.25.2",
|
|
94
94
|
"@babel/preset-react": "^7.24.7",
|
|
95
|
-
"@blocklet/payment-types": "1.17.
|
|
95
|
+
"@blocklet/payment-types": "1.17.8",
|
|
96
96
|
"@storybook/addon-essentials": "^7.6.20",
|
|
97
97
|
"@storybook/addon-interactions": "^7.6.20",
|
|
98
98
|
"@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": "3a896417b3beb364f8c986ea0b5b968810da9ef7"
|
|
127
127
|
}
|
package/src/components/input.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
1
|
+
import React, { forwardRef, type ReactNode, useImperativeHandle, useRef } from 'react';
|
|
2
2
|
import { Box, FormLabel, InputAdornment, TextField, Typography } from '@mui/material';
|
|
3
3
|
import get from 'lodash/get';
|
|
4
4
|
import { Controller, useFormContext } from 'react-hook-form';
|
|
@@ -7,7 +7,7 @@ import type { RegisterOptions } from 'react-hook-form';
|
|
|
7
7
|
|
|
8
8
|
type InputProps = TextFieldProps & {
|
|
9
9
|
name: string;
|
|
10
|
-
label?:
|
|
10
|
+
label?: ReactNode;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
errorPosition?: 'right' | 'bottom';
|
|
13
13
|
rules?: RegisterOptions;
|