@fvc/picker 1.0.1 → 1.0.3
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RangePickerProps as BaseRangePickerProps } from 'antd/es/date-picker';
|
|
2
2
|
import { type Dayjs } from 'dayjs';
|
|
3
3
|
import { type DatePickerProps } from './DatePicker.types';
|
|
4
|
-
export type Dates = [start: Dayjs | null, end: Dayjs | null]
|
|
4
|
+
export type Dates = [start: Dayjs | null, end: Dayjs | null];
|
|
5
5
|
export type DatesString = [string, string];
|
|
6
6
|
export type FormatDateFunction = (dates: Dates, dateString: DatesString) => [dates: Dates, dateString: DatesString];
|
|
7
|
-
export type BeforeChangeFunction = (dates: Dates, dateString: DatesString) => DatesString | null;
|
|
7
|
+
export type BeforeChangeFunction = (dates: Dates | null, dateString: DatesString) => DatesString | null;
|
|
8
8
|
export type RangeDatePickerProps = Omit<DatePickerProps, 'defaultValue' | 'value' | 'onChange'> & BaseRangePickerProps & {
|
|
9
9
|
testId?: string;
|
|
10
10
|
outputFormat?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fvc/picker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "./dist/lib/index.js",
|
|
5
5
|
"types": "./dist/lib/picker/src/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"build": "rm -rf dist && rm -rf .rollup.cache && eslint --config ../../eslint.config.js . && bunx tsc --noEmit && rollup -c ./rollup.config.mjs"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@fvc/icons": "*",
|
|
24
25
|
"react": "^18.0.0",
|
|
25
26
|
"antd": "^5.0.0"
|
|
26
27
|
}
|