@chekinapp/ui 0.0.116 → 0.0.118
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.cjs +170 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -15
- package/dist/index.d.ts +5 -15
- package/dist/index.js +171 -155
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3193,14 +3193,10 @@ type SelectCheckboxesProps<T = undefined, V extends SelectValue$1 = string, L ex
|
|
|
3193
3193
|
options?: SelectGroupedOption<T, V, L>[];
|
|
3194
3194
|
trigger?: SelectCheckboxesTriggerRenderer;
|
|
3195
3195
|
components?: SelectComponents<T, V, L>;
|
|
3196
|
-
/** Custom display for the count text in the trigger. Receives (count, total). */
|
|
3197
3196
|
valueText?: string | ((selectedCount: number, total: number) => string);
|
|
3198
|
-
/** Show "Select All" row at top of menu (default false). */
|
|
3199
3197
|
allowSelectAll?: boolean;
|
|
3200
3198
|
selectAllLabel?: string;
|
|
3201
|
-
/** Render the in-menu search input (default true). */
|
|
3202
3199
|
searchable?: boolean;
|
|
3203
|
-
searchPlaceholder?: string;
|
|
3204
3200
|
} & SelectCheckboxesPaginationProps<T, V, L>;
|
|
3205
3201
|
type SelectCheckboxesComponent = <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: SelectCheckboxesProps<T, V, L> & {
|
|
3206
3202
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
@@ -3212,11 +3208,10 @@ declare function SelectCheckboxOption<T, V extends SelectValue$1, L extends Reac
|
|
|
3212
3208
|
type SelectAllRowProps = {
|
|
3213
3209
|
label: string;
|
|
3214
3210
|
checked: boolean;
|
|
3215
|
-
indeterminate?: boolean;
|
|
3216
3211
|
disabled?: boolean;
|
|
3217
3212
|
onToggle: () => void;
|
|
3218
3213
|
};
|
|
3219
|
-
declare function SelectAllRow({ label, checked,
|
|
3214
|
+
declare function SelectAllRow({ label, checked, disabled, onToggle }: SelectAllRowProps): react_jsx_runtime.JSX.Element;
|
|
3220
3215
|
|
|
3221
3216
|
type TextareaProps = Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'name'> & {
|
|
3222
3217
|
label?: React$1.ReactNode;
|
|
@@ -3840,7 +3835,6 @@ declare function LegacyInfinitySelect({ label, className, placeholder, value, on
|
|
|
3840
3835
|
|
|
3841
3836
|
type AirbnbDatePickerValue = Date | number | null | undefined | '';
|
|
3842
3837
|
type AirbnbDatePickerProps = {
|
|
3843
|
-
variant?: 'default' | 'airbnb';
|
|
3844
3838
|
label: string;
|
|
3845
3839
|
topLabel?: string;
|
|
3846
3840
|
value?: AirbnbDatePickerValue;
|
|
@@ -3867,7 +3861,6 @@ declare const AirbnbDatePicker: React$1.ForwardRefExoticComponent<AirbnbDatePick
|
|
|
3867
3861
|
|
|
3868
3862
|
type AirbnbFieldTriggerProps = {
|
|
3869
3863
|
as?: 'button' | 'div';
|
|
3870
|
-
variant?: 'airbnb' | 'default';
|
|
3871
3864
|
id: string;
|
|
3872
3865
|
label: string;
|
|
3873
3866
|
topLabel?: string;
|
|
@@ -3896,7 +3889,6 @@ type AirbnbFieldTriggerProps = {
|
|
|
3896
3889
|
} & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
|
|
3897
3890
|
declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
3898
3891
|
as?: "button" | "div";
|
|
3899
|
-
variant?: "airbnb" | "default";
|
|
3900
3892
|
id: string;
|
|
3901
3893
|
label: string;
|
|
3902
3894
|
topLabel?: string;
|
|
@@ -3925,7 +3917,6 @@ declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
|
3925
3917
|
} & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
3926
3918
|
|
|
3927
3919
|
type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3928
|
-
variant?: 'airbnb' | 'default';
|
|
3929
3920
|
label?: string;
|
|
3930
3921
|
topLabel?: string;
|
|
3931
3922
|
helperText?: string;
|
|
@@ -3942,7 +3933,6 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
3942
3933
|
renderErrorMessage?: boolean;
|
|
3943
3934
|
};
|
|
3944
3935
|
declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3945
|
-
variant?: "airbnb" | "default";
|
|
3946
3936
|
label?: string;
|
|
3947
3937
|
topLabel?: string;
|
|
3948
3938
|
helperText?: string;
|
|
@@ -3969,7 +3959,6 @@ type AirbnbPhoneFieldValue = {
|
|
|
3969
3959
|
number: string;
|
|
3970
3960
|
};
|
|
3971
3961
|
type AirbnbPhoneFieldProps = {
|
|
3972
|
-
variant?: 'default' | 'airbnb';
|
|
3973
3962
|
label: string;
|
|
3974
3963
|
topLabel?: string;
|
|
3975
3964
|
value?: AirbnbPhoneFieldValue | null;
|
|
@@ -3997,7 +3986,6 @@ type SelectValue = string | number;
|
|
|
3997
3986
|
type SelectRenderTriggerProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
|
|
3998
3987
|
id: string;
|
|
3999
3988
|
open: boolean;
|
|
4000
|
-
variant: 'default' | 'airbnb';
|
|
4001
3989
|
label: string;
|
|
4002
3990
|
topLabel?: string;
|
|
4003
3991
|
helperText: string;
|
|
@@ -4021,7 +4009,6 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
|
|
|
4021
4009
|
value?: SelectOption<T, V, L> | null;
|
|
4022
4010
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
4023
4011
|
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
4024
|
-
variant?: 'default' | 'airbnb';
|
|
4025
4012
|
label: string;
|
|
4026
4013
|
topLabel?: string;
|
|
4027
4014
|
placeholder?: string;
|
|
@@ -4041,6 +4028,7 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
|
|
|
4041
4028
|
mobileTitle?: string;
|
|
4042
4029
|
name?: string;
|
|
4043
4030
|
noOptionsMessage?: () => string | undefined;
|
|
4031
|
+
filterOption?: (option: SelectOption<T, V, L>) => boolean;
|
|
4044
4032
|
};
|
|
4045
4033
|
|
|
4046
4034
|
declare const AirbnbSelect: <T = undefined, V extends SelectValue = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
|
|
@@ -4060,7 +4048,6 @@ type AirbnbSearchableSelectProps<T = undefined, V extends AirbnbSearchableSelect
|
|
|
4060
4048
|
loading?: boolean;
|
|
4061
4049
|
hasNextPage?: boolean;
|
|
4062
4050
|
onLoadMore?: () => void;
|
|
4063
|
-
variant?: 'default' | 'airbnb';
|
|
4064
4051
|
label: string;
|
|
4065
4052
|
topLabel?: string;
|
|
4066
4053
|
placeholder?: string;
|
|
@@ -4095,6 +4082,9 @@ interface AirbnbSwitchProps extends Omit<React$1.ComponentPropsWithoutRef<typeof
|
|
|
4095
4082
|
onChange?: React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>['onCheckedChange'];
|
|
4096
4083
|
loading?: boolean;
|
|
4097
4084
|
readOnly?: boolean;
|
|
4085
|
+
label?: React$1.ReactNode;
|
|
4086
|
+
error?: string;
|
|
4087
|
+
wrapperClassName?: string;
|
|
4098
4088
|
}
|
|
4099
4089
|
declare const AirbnbSwitch: React$1.ForwardRefExoticComponent<AirbnbSwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
4100
4090
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3193,14 +3193,10 @@ type SelectCheckboxesProps<T = undefined, V extends SelectValue$1 = string, L ex
|
|
|
3193
3193
|
options?: SelectGroupedOption<T, V, L>[];
|
|
3194
3194
|
trigger?: SelectCheckboxesTriggerRenderer;
|
|
3195
3195
|
components?: SelectComponents<T, V, L>;
|
|
3196
|
-
/** Custom display for the count text in the trigger. Receives (count, total). */
|
|
3197
3196
|
valueText?: string | ((selectedCount: number, total: number) => string);
|
|
3198
|
-
/** Show "Select All" row at top of menu (default false). */
|
|
3199
3197
|
allowSelectAll?: boolean;
|
|
3200
3198
|
selectAllLabel?: string;
|
|
3201
|
-
/** Render the in-menu search input (default true). */
|
|
3202
3199
|
searchable?: boolean;
|
|
3203
|
-
searchPlaceholder?: string;
|
|
3204
3200
|
} & SelectCheckboxesPaginationProps<T, V, L>;
|
|
3205
3201
|
type SelectCheckboxesComponent = <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: SelectCheckboxesProps<T, V, L> & {
|
|
3206
3202
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
@@ -3212,11 +3208,10 @@ declare function SelectCheckboxOption<T, V extends SelectValue$1, L extends Reac
|
|
|
3212
3208
|
type SelectAllRowProps = {
|
|
3213
3209
|
label: string;
|
|
3214
3210
|
checked: boolean;
|
|
3215
|
-
indeterminate?: boolean;
|
|
3216
3211
|
disabled?: boolean;
|
|
3217
3212
|
onToggle: () => void;
|
|
3218
3213
|
};
|
|
3219
|
-
declare function SelectAllRow({ label, checked,
|
|
3214
|
+
declare function SelectAllRow({ label, checked, disabled, onToggle }: SelectAllRowProps): react_jsx_runtime.JSX.Element;
|
|
3220
3215
|
|
|
3221
3216
|
type TextareaProps = Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'name'> & {
|
|
3222
3217
|
label?: React$1.ReactNode;
|
|
@@ -3840,7 +3835,6 @@ declare function LegacyInfinitySelect({ label, className, placeholder, value, on
|
|
|
3840
3835
|
|
|
3841
3836
|
type AirbnbDatePickerValue = Date | number | null | undefined | '';
|
|
3842
3837
|
type AirbnbDatePickerProps = {
|
|
3843
|
-
variant?: 'default' | 'airbnb';
|
|
3844
3838
|
label: string;
|
|
3845
3839
|
topLabel?: string;
|
|
3846
3840
|
value?: AirbnbDatePickerValue;
|
|
@@ -3867,7 +3861,6 @@ declare const AirbnbDatePicker: React$1.ForwardRefExoticComponent<AirbnbDatePick
|
|
|
3867
3861
|
|
|
3868
3862
|
type AirbnbFieldTriggerProps = {
|
|
3869
3863
|
as?: 'button' | 'div';
|
|
3870
|
-
variant?: 'airbnb' | 'default';
|
|
3871
3864
|
id: string;
|
|
3872
3865
|
label: string;
|
|
3873
3866
|
topLabel?: string;
|
|
@@ -3896,7 +3889,6 @@ type AirbnbFieldTriggerProps = {
|
|
|
3896
3889
|
} & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
|
|
3897
3890
|
declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
3898
3891
|
as?: "button" | "div";
|
|
3899
|
-
variant?: "airbnb" | "default";
|
|
3900
3892
|
id: string;
|
|
3901
3893
|
label: string;
|
|
3902
3894
|
topLabel?: string;
|
|
@@ -3925,7 +3917,6 @@ declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
|
3925
3917
|
} & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
3926
3918
|
|
|
3927
3919
|
type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3928
|
-
variant?: 'airbnb' | 'default';
|
|
3929
3920
|
label?: string;
|
|
3930
3921
|
topLabel?: string;
|
|
3931
3922
|
helperText?: string;
|
|
@@ -3942,7 +3933,6 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
3942
3933
|
renderErrorMessage?: boolean;
|
|
3943
3934
|
};
|
|
3944
3935
|
declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3945
|
-
variant?: "airbnb" | "default";
|
|
3946
3936
|
label?: string;
|
|
3947
3937
|
topLabel?: string;
|
|
3948
3938
|
helperText?: string;
|
|
@@ -3969,7 +3959,6 @@ type AirbnbPhoneFieldValue = {
|
|
|
3969
3959
|
number: string;
|
|
3970
3960
|
};
|
|
3971
3961
|
type AirbnbPhoneFieldProps = {
|
|
3972
|
-
variant?: 'default' | 'airbnb';
|
|
3973
3962
|
label: string;
|
|
3974
3963
|
topLabel?: string;
|
|
3975
3964
|
value?: AirbnbPhoneFieldValue | null;
|
|
@@ -3997,7 +3986,6 @@ type SelectValue = string | number;
|
|
|
3997
3986
|
type SelectRenderTriggerProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
|
|
3998
3987
|
id: string;
|
|
3999
3988
|
open: boolean;
|
|
4000
|
-
variant: 'default' | 'airbnb';
|
|
4001
3989
|
label: string;
|
|
4002
3990
|
topLabel?: string;
|
|
4003
3991
|
helperText: string;
|
|
@@ -4021,7 +4009,6 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
|
|
|
4021
4009
|
value?: SelectOption<T, V, L> | null;
|
|
4022
4010
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
4023
4011
|
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
4024
|
-
variant?: 'default' | 'airbnb';
|
|
4025
4012
|
label: string;
|
|
4026
4013
|
topLabel?: string;
|
|
4027
4014
|
placeholder?: string;
|
|
@@ -4041,6 +4028,7 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends
|
|
|
4041
4028
|
mobileTitle?: string;
|
|
4042
4029
|
name?: string;
|
|
4043
4030
|
noOptionsMessage?: () => string | undefined;
|
|
4031
|
+
filterOption?: (option: SelectOption<T, V, L>) => boolean;
|
|
4044
4032
|
};
|
|
4045
4033
|
|
|
4046
4034
|
declare const AirbnbSelect: <T = undefined, V extends SelectValue = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
|
|
@@ -4060,7 +4048,6 @@ type AirbnbSearchableSelectProps<T = undefined, V extends AirbnbSearchableSelect
|
|
|
4060
4048
|
loading?: boolean;
|
|
4061
4049
|
hasNextPage?: boolean;
|
|
4062
4050
|
onLoadMore?: () => void;
|
|
4063
|
-
variant?: 'default' | 'airbnb';
|
|
4064
4051
|
label: string;
|
|
4065
4052
|
topLabel?: string;
|
|
4066
4053
|
placeholder?: string;
|
|
@@ -4095,6 +4082,9 @@ interface AirbnbSwitchProps extends Omit<React$1.ComponentPropsWithoutRef<typeof
|
|
|
4095
4082
|
onChange?: React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>['onCheckedChange'];
|
|
4096
4083
|
loading?: boolean;
|
|
4097
4084
|
readOnly?: boolean;
|
|
4085
|
+
label?: React$1.ReactNode;
|
|
4086
|
+
error?: string;
|
|
4087
|
+
wrapperClassName?: string;
|
|
4098
4088
|
}
|
|
4099
4089
|
declare const AirbnbSwitch: React$1.ForwardRefExoticComponent<AirbnbSwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
4100
4090
|
|