@tidbcloud/uikit 2.0.10 → 2.0.11
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(FormTimeRangePickerProps): types ([#463](https://github.com/tidbcloud/tidbcloud-uikit/pull/463))
|
|
8
|
+
- tweak(TimeRangePicker): compatible types ([#462](https://github.com/tidbcloud/tidbcloud-uikit/pull/462))
|
|
9
|
+
|
|
3
10
|
## 2.0.10
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TimeRangePickerProps } from '../TimeRangePicker/index.cjs';
|
|
3
|
-
export
|
|
3
|
+
export type FormTimeRangePickerProps = TimeRangePickerProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
rules?: RegisterOptions;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export declare const FormTimeRangePicker: ({ name, rules, onChange, ...rest }: FormTimeRangePickerProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegisterOptions } from 'react-hook-form';
|
|
2
2
|
import { TimeRangePickerProps } from '../TimeRangePicker/index.mjs';
|
|
3
|
-
export
|
|
3
|
+
export type FormTimeRangePickerProps = TimeRangePickerProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
rules?: RegisterOptions;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export declare const FormTimeRangePicker: ({ name, rules, onChange, ...rest }: FormTimeRangePickerProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { ButtonProps } from '../../primitive/index.cjs';
|
|
2
2
|
import { TimeRange } from './helpers.cjs';
|
|
3
|
-
export
|
|
3
|
+
export type TimeRangePickerProps = TimeRangePickerBaseProps & ({
|
|
4
|
+
clearable: true;
|
|
4
5
|
value?: TimeRange;
|
|
5
6
|
onChange?: (value?: TimeRange) => void;
|
|
7
|
+
} | {
|
|
8
|
+
clearable?: false;
|
|
9
|
+
value: TimeRange;
|
|
10
|
+
onChange?: (value: TimeRange) => void;
|
|
11
|
+
});
|
|
12
|
+
export interface TimeRangePickerBaseProps extends ButtonProps {
|
|
6
13
|
loading?: boolean;
|
|
7
14
|
placeholder?: string;
|
|
8
15
|
clearable?: boolean;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { ButtonProps } from '../../primitive/index.mjs';
|
|
2
2
|
import { TimeRange } from './helpers.mjs';
|
|
3
|
-
export
|
|
3
|
+
export type TimeRangePickerProps = TimeRangePickerBaseProps & ({
|
|
4
|
+
clearable: true;
|
|
4
5
|
value?: TimeRange;
|
|
5
6
|
onChange?: (value?: TimeRange) => void;
|
|
7
|
+
} | {
|
|
8
|
+
clearable?: false;
|
|
9
|
+
value: TimeRange;
|
|
10
|
+
onChange?: (value: TimeRange) => void;
|
|
11
|
+
});
|
|
12
|
+
export interface TimeRangePickerBaseProps extends ButtonProps {
|
|
6
13
|
loading?: boolean;
|
|
7
14
|
placeholder?: string;
|
|
8
15
|
clearable?: boolean;
|