dt-shared-front 1.1.181 → 1.1.183
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/input/input.d.ts +4 -4
- package/dist/components/link/link.d.ts +7 -1
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +28 -27
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, { InputHTMLAttributes, ChangeEvent } from 'react';
|
1
|
+
import React, { InputHTMLAttributes, ChangeEvent, ReactNode } from 'react';
|
2
2
|
export declare enum EInputVariant {
|
3
3
|
filled = "filled",
|
4
4
|
outlined = "outlined",
|
@@ -32,7 +32,7 @@ export declare type IInputProps = {
|
|
32
32
|
className?: string;
|
33
33
|
beginSearch?: number;
|
34
34
|
debounceTime?: number;
|
35
|
-
labelPlaceholder?: string;
|
35
|
+
labelPlaceholder?: string | ReactNode;
|
36
36
|
mask?: string;
|
37
37
|
onClear?: (val?: string) => void;
|
38
38
|
onBeforeMask?: (val?: string) => void;
|
@@ -55,11 +55,11 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
55
55
|
className?: string;
|
56
56
|
beginSearch?: number;
|
57
57
|
debounceTime?: number;
|
58
|
-
labelPlaceholder?: string;
|
58
|
+
labelPlaceholder?: string | ReactNode;
|
59
59
|
mask?: string;
|
60
60
|
onClear?: (val?: string) => void;
|
61
61
|
onBeforeMask?: (val?: string) => void;
|
62
62
|
onPointerUp?: (e: any) => void;
|
63
63
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
64
64
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
65
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
65
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -21,6 +21,11 @@ export declare enum ELinkWeight {
|
|
21
21
|
semibold = "semibold",
|
22
22
|
normal = "normal"
|
23
23
|
}
|
24
|
+
export declare enum ELinkDecoration {
|
25
|
+
none = "none",
|
26
|
+
underline = "underline",
|
27
|
+
dashed = "dashed"
|
28
|
+
}
|
24
29
|
interface ILinkProps {
|
25
30
|
size?: keyof typeof ELinkSize;
|
26
31
|
icon?: any;
|
@@ -30,6 +35,7 @@ interface ILinkProps {
|
|
30
35
|
bold?: boolean;
|
31
36
|
weight?: keyof typeof ELinkWeight;
|
32
37
|
type?: keyof typeof ELinkType;
|
38
|
+
decoration?: keyof typeof ELinkDecoration;
|
33
39
|
dashed?: boolean;
|
34
40
|
className?: string;
|
35
41
|
target?: '_blank';
|
@@ -38,5 +44,5 @@ interface ILinkProps {
|
|
38
44
|
style?: any;
|
39
45
|
tag?: string;
|
40
46
|
}
|
41
|
-
export declare const Link: ({ children, target, icon: Icon, variant, size, weight, href, bold, className, type, dashed, onClick, rel, style, tag, }: ILinkProps) => JSX.Element;
|
47
|
+
export declare const Link: ({ children, target, icon: Icon, variant, size, weight, decoration, href, bold, className, type, dashed, onClick, rel, style, tag, }: ILinkProps) => JSX.Element;
|
42
48
|
export {};
|
@@ -11,6 +11,7 @@ declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'va
|
|
11
11
|
onChange?: (value: T, e?: MouseEvent) => void;
|
12
12
|
position?: 'vertical' | 'horizontal';
|
13
13
|
className?: string;
|
14
|
+
error?: boolean;
|
14
15
|
};
|
15
|
-
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, ...props }: IRadioProps<T>): JSX.Element;
|
16
|
+
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, ...props }: IRadioProps<T>): JSX.Element;
|
16
17
|
export {};
|
@@ -26,4 +26,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
26
26
|
onClear?: () => void;
|
27
27
|
onSearch?: (e: any) => void;
|
28
28
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
29
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
29
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;
|