dt-shared-front 2.2.56 → 2.2.57
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/date-picker/date-picker.d.ts +1 -1
- package/dist/components/input/input.d.ts +3 -1
- package/dist/components/input/input.stories.d.ts +2 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/stacked-input/stacked-input.d.ts +2 -3
- 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 +34 -34
- package/package.json +1 -1
@@ -54,5 +54,5 @@ declare type IDatePickerProps = {
|
|
54
54
|
mask?: string;
|
55
55
|
labelPlaceholder?: string;
|
56
56
|
} & ComponentProps<typeof AntDatePicker>;
|
57
|
-
export declare const DatePicker:
|
57
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<unknown>>;
|
58
58
|
export {};
|
@@ -39,6 +39,7 @@ export declare type IInputProps = {
|
|
39
39
|
onPointerUp?: (e: any) => void;
|
40
40
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
41
41
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
42
|
+
valueTransformer?: (value: string) => string;
|
42
43
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'variant' | 'onChange'>;
|
43
44
|
export declare const Input: React.ForwardRefExoticComponent<{
|
44
45
|
error?: boolean;
|
@@ -62,4 +63,5 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
62
63
|
onPointerUp?: (e: any) => void;
|
63
64
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
64
65
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
65
|
-
|
66
|
+
valueTransformer?: (value: string) => string;
|
67
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -6,4 +6,6 @@ declare type Story = StoryObj<typeof Input>;
|
|
6
6
|
export declare const Default: Story;
|
7
7
|
export declare const DefaultWithIcon: Story;
|
8
8
|
export declare const DefaultWithLoading: Story;
|
9
|
+
export declare const DefaultWithUpperCaseValueTransformer: Story;
|
10
|
+
export declare const DefaultWithNumberValueTransformer: Story;
|
9
11
|
export declare const AllDefault: Story;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { ReactElement, Ref } from 'react';
|
2
2
|
import { SelectProps } from 'antd/lib/select';
|
3
3
|
export interface ISelectOption<T> {
|
4
4
|
label: string;
|
@@ -30,5 +30,5 @@ declare type ISelectProps<T> = Omit<SelectProps, 'options' | 'onChange'> & {
|
|
30
30
|
isMobileModal?: boolean;
|
31
31
|
modalTitle?: string;
|
32
32
|
};
|
33
|
-
export declare
|
33
|
+
export declare const Select: <T = any>(props: ISelectProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
|
34
34
|
export {};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { ComponentProps, InputHTMLAttributes, ReactNode, Ref, ReactElement } from 'react';
|
2
2
|
import { Input, IInputProps } from '@shared/input';
|
3
|
-
import { ComponentProps, InputHTMLAttributes, ReactNode } from 'react';
|
4
3
|
export interface IStackedInputValue<T> {
|
5
4
|
value: string;
|
6
5
|
key: T;
|
@@ -20,5 +19,5 @@ declare type IStackedInputProps<T> = {
|
|
20
19
|
value?: string;
|
21
20
|
onRenderOption?: (item: T) => ReactNode;
|
22
21
|
} & ComponentProps<typeof Input> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'variant' | 'onChange'>;
|
23
|
-
export declare
|
22
|
+
export declare const StackedInput: <T>(props: IStackedInputProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
|
24
23
|
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>>;
|