react-luminus-components 1.3.182 → 1.3.184
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,9 +1,17 @@
|
|
|
1
|
-
type
|
|
1
|
+
type BaseProps = {
|
|
2
2
|
year: Date;
|
|
3
3
|
onChangeYear: (year: Date) => void;
|
|
4
4
|
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export type YearPickerProps = BaseProps & (({
|
|
5
7
|
optionMin?: number;
|
|
6
8
|
optionMax?: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
+
} & {
|
|
10
|
+
manualOptions?: false;
|
|
11
|
+
}) | ({
|
|
12
|
+
options: number[];
|
|
13
|
+
} & {
|
|
14
|
+
manualOptions: true;
|
|
15
|
+
}));
|
|
16
|
+
declare const YearPicker: ({ year, onChangeYear, className, ...rest }: YearPickerProps) => import("react").JSX.Element;
|
|
9
17
|
export default YearPicker;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
type
|
|
1
|
+
type BaseProps = {
|
|
2
2
|
defaultYear: Date;
|
|
3
3
|
searchKey?: string;
|
|
4
|
-
optionMin?: number;
|
|
5
|
-
optionMax?: number;
|
|
6
4
|
className?: string;
|
|
7
5
|
};
|
|
8
|
-
|
|
6
|
+
export type YearPickerSpProps = BaseProps & (({
|
|
7
|
+
optionMin?: number;
|
|
8
|
+
optionMax?: number;
|
|
9
|
+
} & {
|
|
10
|
+
manualOptions?: false;
|
|
11
|
+
}) | ({
|
|
12
|
+
options: number[];
|
|
13
|
+
} & {
|
|
14
|
+
manualOptions: true;
|
|
15
|
+
}));
|
|
16
|
+
declare const YearPickerSearchParams: ({ defaultYear, searchKey, ...rest }: YearPickerSpProps) => import("react").JSX.Element;
|
|
9
17
|
export default YearPickerSearchParams;
|