@chekinapp/ui 0.0.117 → 0.0.119

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/dist/index.d.cts CHANGED
@@ -3081,6 +3081,7 @@ type BaseSelectProps<T, V extends SelectValue$1, L extends ReactNode> = {
3081
3081
  onMenuScrollToBottom?: (event: React$1.UIEvent<HTMLDivElement>) => void;
3082
3082
  leftIcon?: React$1.ReactNode;
3083
3083
  formatGroupLabel?: SelectFormatGroupLabel<T, V, L>;
3084
+ onReset?: () => void;
3084
3085
  };
3085
3086
  type SingleSelectProps<T, V extends SelectValue$1, L extends ReactNode> = BaseSelectProps<T, V, L> & {
3086
3087
  isMulti?: false;
@@ -3104,7 +3105,6 @@ type SearchingSelectTriggerRenderer = (isOpen: boolean, toggle: () => void) => R
3104
3105
  type SearchingSelectBaseProps<T, V extends SelectValue$1, L extends ReactNode> = Omit<SingleSelectProps<T, V, L>, 'isMulti' | 'searchPosition' | 'components'> & {
3105
3106
  trigger?: SearchingSelectTriggerRenderer;
3106
3107
  components?: SelectComponents<T, V, L>;
3107
- searchPlaceholder?: string;
3108
3108
  /** Hide the in-menu search input (default: true). */
3109
3109
  searchable?: boolean;
3110
3110
  };
@@ -3835,7 +3835,6 @@ declare function LegacyInfinitySelect({ label, className, placeholder, value, on
3835
3835
 
3836
3836
  type AirbnbDatePickerValue = Date | number | null | undefined | '';
3837
3837
  type AirbnbDatePickerProps = {
3838
- variant?: 'default' | 'airbnb';
3839
3838
  label: string;
3840
3839
  topLabel?: string;
3841
3840
  value?: AirbnbDatePickerValue;
@@ -3862,7 +3861,6 @@ declare const AirbnbDatePicker: React$1.ForwardRefExoticComponent<AirbnbDatePick
3862
3861
 
3863
3862
  type AirbnbFieldTriggerProps = {
3864
3863
  as?: 'button' | 'div';
3865
- variant?: 'airbnb' | 'default';
3866
3864
  id: string;
3867
3865
  label: string;
3868
3866
  topLabel?: string;
@@ -3891,7 +3889,6 @@ type AirbnbFieldTriggerProps = {
3891
3889
  } & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
3892
3890
  declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
3893
3891
  as?: "button" | "div";
3894
- variant?: "airbnb" | "default";
3895
3892
  id: string;
3896
3893
  label: string;
3897
3894
  topLabel?: string;
@@ -3920,7 +3917,6 @@ declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
3920
3917
  } & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
3921
3918
 
3922
3919
  type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
3923
- variant?: 'airbnb' | 'default';
3924
3920
  label?: string;
3925
3921
  topLabel?: string;
3926
3922
  helperText?: string;
@@ -3937,7 +3933,6 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
3937
3933
  renderErrorMessage?: boolean;
3938
3934
  };
3939
3935
  declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
3940
- variant?: "airbnb" | "default";
3941
3936
  label?: string;
3942
3937
  topLabel?: string;
3943
3938
  helperText?: string;
@@ -3964,7 +3959,6 @@ type AirbnbPhoneFieldValue = {
3964
3959
  number: string;
3965
3960
  };
3966
3961
  type AirbnbPhoneFieldProps = {
3967
- variant?: 'default' | 'airbnb';
3968
3962
  label: string;
3969
3963
  topLabel?: string;
3970
3964
  value?: AirbnbPhoneFieldValue | null;
@@ -3992,7 +3986,6 @@ type SelectValue = string | number;
3992
3986
  type SelectRenderTriggerProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
3993
3987
  id: string;
3994
3988
  open: boolean;
3995
- variant: 'default' | 'airbnb';
3996
3989
  label: string;
3997
3990
  topLabel?: string;
3998
3991
  helperText: string;
@@ -4016,7 +4009,6 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
4016
4009
  value?: SelectOption<T, V, L> | null;
4017
4010
  onChange: (option: SelectOption<T, V, L>) => void;
4018
4011
  onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
4019
- variant?: 'default' | 'airbnb';
4020
4012
  label: string;
4021
4013
  topLabel?: string;
4022
4014
  placeholder?: string;
@@ -4036,6 +4028,7 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
4036
4028
  mobileTitle?: string;
4037
4029
  name?: string;
4038
4030
  noOptionsMessage?: () => string | undefined;
4031
+ filterOption?: (option: SelectOption<T, V, L>) => boolean;
4039
4032
  };
4040
4033
 
4041
4034
  declare const AirbnbSelect: <T = undefined, V extends SelectValue = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
@@ -4055,7 +4048,6 @@ type AirbnbSearchableSelectProps<T = undefined, V extends AirbnbSearchableSelect
4055
4048
  loading?: boolean;
4056
4049
  hasNextPage?: boolean;
4057
4050
  onLoadMore?: () => void;
4058
- variant?: 'default' | 'airbnb';
4059
4051
  label: string;
4060
4052
  topLabel?: string;
4061
4053
  placeholder?: string;
package/dist/index.d.ts CHANGED
@@ -3081,6 +3081,7 @@ type BaseSelectProps<T, V extends SelectValue$1, L extends ReactNode> = {
3081
3081
  onMenuScrollToBottom?: (event: React$1.UIEvent<HTMLDivElement>) => void;
3082
3082
  leftIcon?: React$1.ReactNode;
3083
3083
  formatGroupLabel?: SelectFormatGroupLabel<T, V, L>;
3084
+ onReset?: () => void;
3084
3085
  };
3085
3086
  type SingleSelectProps<T, V extends SelectValue$1, L extends ReactNode> = BaseSelectProps<T, V, L> & {
3086
3087
  isMulti?: false;
@@ -3104,7 +3105,6 @@ type SearchingSelectTriggerRenderer = (isOpen: boolean, toggle: () => void) => R
3104
3105
  type SearchingSelectBaseProps<T, V extends SelectValue$1, L extends ReactNode> = Omit<SingleSelectProps<T, V, L>, 'isMulti' | 'searchPosition' | 'components'> & {
3105
3106
  trigger?: SearchingSelectTriggerRenderer;
3106
3107
  components?: SelectComponents<T, V, L>;
3107
- searchPlaceholder?: string;
3108
3108
  /** Hide the in-menu search input (default: true). */
3109
3109
  searchable?: boolean;
3110
3110
  };
@@ -3835,7 +3835,6 @@ declare function LegacyInfinitySelect({ label, className, placeholder, value, on
3835
3835
 
3836
3836
  type AirbnbDatePickerValue = Date | number | null | undefined | '';
3837
3837
  type AirbnbDatePickerProps = {
3838
- variant?: 'default' | 'airbnb';
3839
3838
  label: string;
3840
3839
  topLabel?: string;
3841
3840
  value?: AirbnbDatePickerValue;
@@ -3862,7 +3861,6 @@ declare const AirbnbDatePicker: React$1.ForwardRefExoticComponent<AirbnbDatePick
3862
3861
 
3863
3862
  type AirbnbFieldTriggerProps = {
3864
3863
  as?: 'button' | 'div';
3865
- variant?: 'airbnb' | 'default';
3866
3864
  id: string;
3867
3865
  label: string;
3868
3866
  topLabel?: string;
@@ -3891,7 +3889,6 @@ type AirbnbFieldTriggerProps = {
3891
3889
  } & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
3892
3890
  declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
3893
3891
  as?: "button" | "div";
3894
- variant?: "airbnb" | "default";
3895
3892
  id: string;
3896
3893
  label: string;
3897
3894
  topLabel?: string;
@@ -3920,7 +3917,6 @@ declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
3920
3917
  } & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
3921
3918
 
3922
3919
  type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
3923
- variant?: 'airbnb' | 'default';
3924
3920
  label?: string;
3925
3921
  topLabel?: string;
3926
3922
  helperText?: string;
@@ -3937,7 +3933,6 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
3937
3933
  renderErrorMessage?: boolean;
3938
3934
  };
3939
3935
  declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
3940
- variant?: "airbnb" | "default";
3941
3936
  label?: string;
3942
3937
  topLabel?: string;
3943
3938
  helperText?: string;
@@ -3964,7 +3959,6 @@ type AirbnbPhoneFieldValue = {
3964
3959
  number: string;
3965
3960
  };
3966
3961
  type AirbnbPhoneFieldProps = {
3967
- variant?: 'default' | 'airbnb';
3968
3962
  label: string;
3969
3963
  topLabel?: string;
3970
3964
  value?: AirbnbPhoneFieldValue | null;
@@ -3992,7 +3986,6 @@ type SelectValue = string | number;
3992
3986
  type SelectRenderTriggerProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
3993
3987
  id: string;
3994
3988
  open: boolean;
3995
- variant: 'default' | 'airbnb';
3996
3989
  label: string;
3997
3990
  topLabel?: string;
3998
3991
  helperText: string;
@@ -4016,7 +4009,6 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
4016
4009
  value?: SelectOption<T, V, L> | null;
4017
4010
  onChange: (option: SelectOption<T, V, L>) => void;
4018
4011
  onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
4019
- variant?: 'default' | 'airbnb';
4020
4012
  label: string;
4021
4013
  topLabel?: string;
4022
4014
  placeholder?: string;
@@ -4036,6 +4028,7 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
4036
4028
  mobileTitle?: string;
4037
4029
  name?: string;
4038
4030
  noOptionsMessage?: () => string | undefined;
4031
+ filterOption?: (option: SelectOption<T, V, L>) => boolean;
4039
4032
  };
4040
4033
 
4041
4034
  declare const AirbnbSelect: <T = undefined, V extends SelectValue = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
@@ -4055,7 +4048,6 @@ type AirbnbSearchableSelectProps<T = undefined, V extends AirbnbSearchableSelect
4055
4048
  loading?: boolean;
4056
4049
  hasNextPage?: boolean;
4057
4050
  onLoadMore?: () => void;
4058
- variant?: 'default' | 'airbnb';
4059
4051
  label: string;
4060
4052
  topLabel?: string;
4061
4053
  placeholder?: string;