@modul/mbui 0.0.56-beta-pv-54250-2a662154 → 0.0.56-beta-pv-54293-3339d4f8

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,3 +1,3 @@
1
1
  import { DateRange } from 'react-day-picker';
2
2
  export declare const getFirstMonthOfCurrentYear: (selected?: Date | DateRange, fallback?: Date) => Date;
3
- export declare const generateYearsArray: (disableFutureDates: boolean, disablePastDates: boolean) => number[];
3
+ export declare const generateYearsArray: (startYear?: number) => number[];
@@ -3,7 +3,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputH
3
3
  value?: string;
4
4
  onChange?: (newValue: string) => unknown;
5
5
  maxLength: number;
6
- textAlign?: "center" | "right" | "left";
6
+ textAlign?: "left" | "right" | "center";
7
7
  onComplete?: (...args: any[]) => unknown;
8
8
  pushPasswordManagerStrategy?: "none" | "increase-width";
9
9
  containerClassName?: string;
@@ -15,7 +15,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<((Omit<Omit<React.InputH
15
15
  value?: string;
16
16
  onChange?: (newValue: string) => unknown;
17
17
  maxLength: number;
18
- textAlign?: "center" | "right" | "left";
18
+ textAlign?: "left" | "right" | "center";
19
19
  onComplete?: (...args: any[]) => unknown;
20
20
  pushPasswordManagerStrategy?: "none" | "increase-width";
21
21
  containerClassName?: string;
@@ -2,13 +2,14 @@ import React, { FC } from 'react';
2
2
  import { ISelectOption } from './Option';
3
3
  import { ISelectValue } from './Value';
4
4
  interface ISelectDrawerProps {
5
- options: ISelectOption[];
5
+ options?: ISelectOption[];
6
6
  onChange?: (value: ISelectOption | ISelectOption[] | null) => void;
7
7
  placeholder?: string;
8
8
  multiple?: boolean;
9
9
  isClearable?: boolean;
10
10
  isSearchable?: boolean;
11
11
  searchPlaceholder?: string;
12
+ onSearch?: (value: string) => void;
12
13
  autoFocus?: boolean;
13
14
  disabled?: boolean;
14
15
  components?: {
@@ -28,6 +29,7 @@ interface ISelectDrawerProps {
28
29
  modal?: boolean;
29
30
  selectAll?: boolean;
30
31
  selectAllText?: string;
32
+ loadOptions?: (searchValue?: string) => Promise<ISelectOption[]>;
31
33
  }
32
34
  declare const SelectDrawer: React.ForwardRefExoticComponent<ISelectDrawerProps & React.RefAttributes<HTMLButtonElement>>;
33
35
  export { SelectDrawer, type ISelectValue, type ISelectOption, type ISelectDrawerProps };