fis-component 0.1.3 → 0.1.5
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/cjs/index.js +3045 -2110
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Input/DateRange/index.d.ts +3 -1
- package/dist/cjs/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +1 -3
- package/dist/cjs/types/src/components/Input/InputText/index.d.ts +2 -0
- package/dist/esm/index.js +3139 -2204
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Input/DateRange/index.d.ts +3 -1
- package/dist/esm/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +1 -3
- package/dist/esm/types/src/components/Input/InputText/index.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/package.json +4 -2
|
@@ -8,7 +8,7 @@ export type DateRangeProps = {
|
|
|
8
8
|
positive?: boolean;
|
|
9
9
|
placeholder?: [string, string];
|
|
10
10
|
} & React.ComponentProps<typeof RangePicker>;
|
|
11
|
-
declare const RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
|
|
11
|
+
declare const RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "styles" | "classNames" | "locale" | "generateConfig" | "hideHeader"> & {
|
|
12
12
|
locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
|
|
13
13
|
size?: import("antd/es/button").ButtonSize;
|
|
14
14
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
@@ -19,6 +19,8 @@ declare const RangePicker: import("react").ForwardRefExoticComponent<Omit<import
|
|
|
19
19
|
popupClassName?: string;
|
|
20
20
|
rootClassName?: string;
|
|
21
21
|
popupStyle?: React.CSSProperties;
|
|
22
|
+
styles?: import("antd/es/date-picker/generatePicker/interface").PickerStyles;
|
|
23
|
+
classNames?: import("antd/es/date-picker/generatePicker/interface").PickerClassNames;
|
|
22
24
|
} & import("react").RefAttributes<import("rc-picker").PickerRef>>;
|
|
23
25
|
declare const FISDateRange: {
|
|
24
26
|
({ placeholder, label, required, message, negative, positive, disabled, ...rest }: DateRangeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -150,7 +150,7 @@ declare const meta: {
|
|
|
150
150
|
onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
151
151
|
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
152
152
|
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
153
|
-
onBeforeInput?: import("react").
|
|
153
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
154
154
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
155
155
|
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
156
156
|
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -200,8 +200,6 @@ declare const meta: {
|
|
|
200
200
|
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
201
201
|
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
202
202
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
203
|
-
onResize?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
204
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
205
203
|
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
206
204
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
207
205
|
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -12,6 +12,8 @@ export interface InputTextProps extends InputFieldProps, Partial<InputLabelProps
|
|
|
12
12
|
onEnter?: (value: string | null) => void;
|
|
13
13
|
/** Handle onKeyDown action */
|
|
14
14
|
onKeyDown?: (event: unknown) => void;
|
|
15
|
+
/** Trim whitespace from value on blur */
|
|
16
|
+
isTrimValue?: boolean;
|
|
15
17
|
}
|
|
16
18
|
declare const FISInputText: React.ForwardRefExoticComponent<InputTextProps & React.RefAttributes<HTMLInputElement>>;
|
|
17
19
|
export default FISInputText;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
5
5
|
import { TooltipProps as TooltipProps$1, CollapseProps, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
|
|
6
6
|
import * as dayjs from 'dayjs';
|
|
7
7
|
import dayjs__default from 'dayjs';
|
|
8
|
+
import * as antd_es_date_picker_generatePicker_interface from 'antd/es/date-picker/generatePicker/interface';
|
|
8
9
|
import * as antd_es_config_provider from 'antd/es/config-provider';
|
|
9
10
|
import * as antd_es__util_statusUtils from 'antd/es/_util/statusUtils';
|
|
10
11
|
import * as antd_es_button from 'antd/es/button';
|
|
@@ -3761,6 +3762,8 @@ interface InputTextProps extends InputFieldProps, Partial<InputLabelProps> {
|
|
|
3761
3762
|
onEnter?: (value: string | null) => void;
|
|
3762
3763
|
/** Handle onKeyDown action */
|
|
3763
3764
|
onKeyDown?: (event: unknown) => void;
|
|
3765
|
+
/** Trim whitespace from value on blur */
|
|
3766
|
+
isTrimValue?: boolean;
|
|
3764
3767
|
}
|
|
3765
3768
|
declare const FISInputText: React__default.ForwardRefExoticComponent<InputTextProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
3766
3769
|
|
|
@@ -4165,7 +4168,7 @@ type DateRangeProps = {
|
|
|
4165
4168
|
positive?: boolean;
|
|
4166
4169
|
placeholder?: [string, string];
|
|
4167
4170
|
} & React.ComponentProps<typeof RangePicker>;
|
|
4168
|
-
declare const RangePicker: React$1.ForwardRefExoticComponent<Omit<rc_picker.RangePickerProps<dayjs.Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
|
|
4171
|
+
declare const RangePicker: React$1.ForwardRefExoticComponent<Omit<rc_picker.RangePickerProps<dayjs.Dayjs>, "styles" | "classNames" | "locale" | "generateConfig" | "hideHeader"> & {
|
|
4169
4172
|
locale?: antd_es_date_picker_generatePicker.PickerLocale;
|
|
4170
4173
|
size?: antd_es_button.ButtonSize;
|
|
4171
4174
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
@@ -4176,6 +4179,8 @@ declare const RangePicker: React$1.ForwardRefExoticComponent<Omit<rc_picker.Rang
|
|
|
4176
4179
|
popupClassName?: string;
|
|
4177
4180
|
rootClassName?: string;
|
|
4178
4181
|
popupStyle?: React.CSSProperties;
|
|
4182
|
+
styles?: antd_es_date_picker_generatePicker_interface.PickerStyles;
|
|
4183
|
+
classNames?: antd_es_date_picker_generatePicker_interface.PickerClassNames;
|
|
4179
4184
|
} & React$1.RefAttributes<rc_picker.PickerRef>>;
|
|
4180
4185
|
declare const FISDateRange: {
|
|
4181
4186
|
({ placeholder, label, required, message, negative, positive, disabled, ...rest }: DateRangeProps): react_jsx_runtime.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"homepage": "https://vietdiemtran.github.io/fis-component/",
|
|
3
3
|
"name": "fis-component",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@testing-library/jest-dom": "^6.4.2",
|
|
60
60
|
"@testing-library/react": "^14.2.1",
|
|
61
61
|
"@types/jest": "^29.5.12",
|
|
62
|
+
"@types/lodash": "^4.17.20",
|
|
62
63
|
"@types/react": "^18.2.55",
|
|
63
64
|
"@types/react-dom": "^19.0.4",
|
|
64
65
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"dependencies": {
|
|
106
107
|
"@popperjs/core": "^2.11.8",
|
|
107
108
|
"antd": "^5.23.4",
|
|
109
|
+
"lodash": "^4.17.21",
|
|
108
110
|
"react-popper": "^2.3.0"
|
|
109
111
|
}
|
|
110
|
-
}
|
|
112
|
+
}
|