react-frontend-common-components 0.0.99 → 0.1.1
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/dist/components/app-input/app-input.d.ts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +9 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
- package/src/components/app-input/app-input.tsx +17 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputProps } from "antd";
|
|
2
2
|
import { ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from "react";
|
|
3
3
|
import "./app-input.css";
|
|
4
|
-
interface AppInputProps extends InputProps {
|
|
4
|
+
interface AppInputProps extends Omit<InputProps, "maxLength"> {
|
|
5
5
|
className?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
name?: string;
|
|
@@ -21,6 +21,7 @@ interface AppInputProps extends InputProps {
|
|
|
21
21
|
suffixIcon?: React.ReactNode;
|
|
22
22
|
prefixIcon?: React.ReactNode;
|
|
23
23
|
required?: boolean;
|
|
24
|
+
maxLength?: number;
|
|
24
25
|
}
|
|
25
|
-
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, required, ...props }: AppInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, required, maxLength, ...props }: AppInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
export default AppInput;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { CardProps } from 'antd/lib/card';
|
|
|
9
9
|
import { ColumnsType } from 'antd/lib/table';
|
|
10
10
|
import { PopoverProps } from 'antd/lib/popover';
|
|
11
11
|
|
|
12
|
-
interface AppInputProps extends InputProps {
|
|
12
|
+
interface AppInputProps extends Omit<InputProps, "maxLength"> {
|
|
13
13
|
className?: string;
|
|
14
14
|
label?: string;
|
|
15
15
|
name?: string;
|
|
@@ -29,8 +29,9 @@ interface AppInputProps extends InputProps {
|
|
|
29
29
|
suffixIcon?: React.ReactNode;
|
|
30
30
|
prefixIcon?: React.ReactNode;
|
|
31
31
|
required?: boolean;
|
|
32
|
+
maxLength?: number;
|
|
32
33
|
}
|
|
33
|
-
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, required, ...props }: AppInputProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, required, maxLength, ...props }: AppInputProps) => react_jsx_runtime.JSX.Element;
|
|
34
35
|
|
|
35
36
|
interface AppButtonProps {
|
|
36
37
|
size?: "small" | "middle" | "large" | "default" | undefined;
|