react-luminus-components 1.3.182 → 1.3.183

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 Props = {
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
- declare const YearPicker: ({ year, onChangeYear, optionMin, optionMax, className, }: Props) => import("react").JSX.Element;
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,8 @@
1
+ import { YearPickerProps } from '../YearPicker/YearPicker';
2
+
1
3
  type Props = {
2
4
  defaultYear: Date;
3
5
  searchKey?: string;
4
- optionMin?: number;
5
- optionMax?: number;
6
- className?: string;
7
- };
8
- declare const YearPickerSearchParams: ({ defaultYear, searchKey, optionMin, optionMax, className, }: Props) => import("react").JSX.Element;
6
+ } & YearPickerProps;
7
+ declare const YearPickerSearchParams: ({ defaultYear, searchKey, ...rest }: Props) => import("react").JSX.Element;
9
8
  export default YearPickerSearchParams;