@chekinapp/ui 0.0.88 → 0.0.90
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 +7180 -7406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +398 -408
- package/dist/index.d.ts +398 -408
- package/dist/index.js +7080 -7304
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ElementType, HTMLAttributes, InputHTMLAttributes, ComponentProps, PropsWithChildren, MouseEvent, SVGProps, ComponentType, ImgHTMLAttributes, AnchorHTMLAttributes,
|
|
2
|
+
import React__default, { ReactNode, ElementType, HTMLAttributes, InputHTMLAttributes, ComponentProps, PropsWithChildren, MouseEvent, SVGProps, ComponentType, ImgHTMLAttributes, AnchorHTMLAttributes, FC, ButtonHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, MouseEventHandler, ComponentPropsWithoutRef, ReactElement, ForwardedRef, Ref, RefCallback, RefObject, ChangeEvent, TextareaHTMLAttributes, FocusEventHandler } from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -19,7 +19,6 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
19
19
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
20
20
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
21
21
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
22
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
23
22
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
23
|
import ReactSignatureCanvas from 'react-signature-pad-wrapper';
|
|
25
24
|
export { default as SignatureCanvasType } from 'react-signature-pad-wrapper';
|
|
@@ -31,6 +30,7 @@ export { Toaster, toast } from 'sonner';
|
|
|
31
30
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
32
31
|
import ReactWebcam from 'react-webcam';
|
|
33
32
|
import { ClassValue } from 'clsx';
|
|
33
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
34
34
|
|
|
35
35
|
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
36
36
|
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -442,7 +442,7 @@ interface BaseCheckboxDropdownGroupProps {
|
|
|
442
442
|
keepOpenOnSelect?: boolean;
|
|
443
443
|
className?: string;
|
|
444
444
|
}
|
|
445
|
-
interface MultiSelectProps
|
|
445
|
+
interface MultiSelectProps extends BaseCheckboxDropdownGroupProps {
|
|
446
446
|
multiple: true;
|
|
447
447
|
value?: CheckboxOption[] | null;
|
|
448
448
|
onChange: (selectedValues: CheckboxOption[] | null) => void;
|
|
@@ -457,7 +457,7 @@ interface AutoDetectProps extends BaseCheckboxDropdownGroupProps {
|
|
|
457
457
|
value?: CheckboxOption | null;
|
|
458
458
|
onChange: (selectedValues: CheckboxOption | null) => void;
|
|
459
459
|
}
|
|
460
|
-
type CheckboxDropdownGroupProps = MultiSelectProps
|
|
460
|
+
type CheckboxDropdownGroupProps = MultiSelectProps | SingleSelectProps | AutoDetectProps;
|
|
461
461
|
|
|
462
462
|
declare const CheckboxDropdownGroup: React$1.ForwardRefExoticComponent<CheckboxDropdownGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
463
463
|
|
|
@@ -667,9 +667,6 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
667
667
|
}
|
|
668
668
|
declare function Image({ src, alt, className, fallbackSrc, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
669
669
|
|
|
670
|
-
type InputProps = React$1.ComponentProps<'input'>;
|
|
671
|
-
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
672
|
-
|
|
673
670
|
type InputOTPProps = {
|
|
674
671
|
maxLength: number;
|
|
675
672
|
value?: string;
|
|
@@ -1976,74 +1973,6 @@ declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.
|
|
|
1976
1973
|
declare const SubSection: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1977
1974
|
declare const DividingSubsection: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1978
1975
|
|
|
1979
|
-
declare const SelectRoot: React$1.FC<SelectPrimitive.SelectProps>;
|
|
1980
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1981
|
-
declare const SelectValue$2: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1982
|
-
declare const SelectPortal: React$1.FC<SelectPrimitive.SelectPortalProps>;
|
|
1983
|
-
type SelectSize = 'sm' | 'md';
|
|
1984
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1985
|
-
size?: SelectSize;
|
|
1986
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1987
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1988
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1989
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1990
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1991
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1992
|
-
size?: SelectSize;
|
|
1993
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1994
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1995
|
-
|
|
1996
|
-
type SelectProps<D = unknown, V extends string | number = string, L extends ReactNode = string> = {
|
|
1997
|
-
placeholder?: string;
|
|
1998
|
-
label?: string | ReactNode;
|
|
1999
|
-
className?: string;
|
|
2000
|
-
size?: SelectSize;
|
|
2001
|
-
options?: SelectOption<D, V, L>[];
|
|
2002
|
-
children?: ReactNode;
|
|
2003
|
-
value?: string;
|
|
2004
|
-
onChange?: (value: V) => void;
|
|
2005
|
-
onValueChange?: (value: string) => void;
|
|
2006
|
-
disabled?: boolean;
|
|
2007
|
-
supportingText?: string;
|
|
2008
|
-
errorText?: string;
|
|
2009
|
-
containerClassName?: string;
|
|
2010
|
-
triggerClassName?: string;
|
|
2011
|
-
};
|
|
2012
|
-
declare const SelectInner: <V extends string | number = string, D = unknown, L extends ReactNode = string>({ placeholder, label, className, size, options, supportingText, errorText, containerClassName, triggerClassName, children, value, onChange, onValueChange, disabled, }: SelectProps<D, V, L>, ref: Ref<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
2013
|
-
declare const Select: <V extends string | number = string, D = unknown, L extends ReactNode = string>(props: SelectProps<D, V, L> & {
|
|
2014
|
-
ref?: Ref<HTMLButtonElement>;
|
|
2015
|
-
}) => ReturnType<typeof SelectInner>;
|
|
2016
|
-
|
|
2017
|
-
type MultiSelectProps<D, V extends string | number = string, L extends string | number | ReactNode = string> = {
|
|
2018
|
-
label?: string | ReactNode;
|
|
2019
|
-
className?: string;
|
|
2020
|
-
options?: SelectOption<D, V, L>[];
|
|
2021
|
-
children?: ReactNode;
|
|
2022
|
-
value?: (string | number)[];
|
|
2023
|
-
onChange?: (value: (string | number)[]) => void;
|
|
2024
|
-
placeholder?: string;
|
|
2025
|
-
disabled?: boolean;
|
|
2026
|
-
};
|
|
2027
|
-
declare const MultiSelectInner: <V extends string | number = string, D = unknown, L extends string | number | ReactNode = string>({ label, value, onChange, className, options, placeholder, disabled, }: MultiSelectProps<D, V, L>, ref: Ref<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
2028
|
-
declare const MultiSelect: <V extends string | number = string, D = unknown, L extends string | number | ReactNode = string>(props: MultiSelectProps<D, V, L> & {
|
|
2029
|
-
ref?: Ref<HTMLDivElement>;
|
|
2030
|
-
}) => ReturnType<typeof MultiSelectInner>;
|
|
2031
|
-
|
|
2032
|
-
type InfinitySelectProps = {
|
|
2033
|
-
label: string | ReactNode;
|
|
2034
|
-
className?: string;
|
|
2035
|
-
placeholder?: string;
|
|
2036
|
-
value?: string;
|
|
2037
|
-
onValueChange?: (value: string) => void;
|
|
2038
|
-
options: SelectOption[];
|
|
2039
|
-
hasNextPage: boolean;
|
|
2040
|
-
isFetchingNextPage: boolean;
|
|
2041
|
-
fetchNextPage: () => void;
|
|
2042
|
-
itemHeight?: number;
|
|
2043
|
-
maxHeight?: number;
|
|
2044
|
-
};
|
|
2045
|
-
declare function InfinitySelect({ label, className, placeholder, value, onValueChange, options, hasNextPage, isFetchingNextPage, fetchNextPage, itemHeight, maxHeight, }: InfinitySelectProps): react_jsx_runtime.JSX.Element;
|
|
2046
|
-
|
|
2047
1976
|
type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root>;
|
|
2048
1977
|
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
2049
1978
|
|
|
@@ -2571,38 +2500,6 @@ type ErrorMessageProps = {
|
|
|
2571
2500
|
};
|
|
2572
2501
|
declare function ErrorMessage({ className, children, disabled }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
2573
2502
|
|
|
2574
|
-
declare const inputVariants: (props?: ({
|
|
2575
|
-
variant?: "floating" | "standard" | null | undefined;
|
|
2576
|
-
error?: boolean | null | undefined;
|
|
2577
|
-
readOnly?: boolean | null | undefined;
|
|
2578
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2579
|
-
type TextFieldVariantProps = VariantProps<typeof inputVariants>;
|
|
2580
|
-
interface TextFieldProps extends Omit<React$1.ComponentProps<'input'>, 'readOnly'>, Pick<TextFieldVariantProps, 'variant'> {
|
|
2581
|
-
label?: string;
|
|
2582
|
-
error?: string;
|
|
2583
|
-
optional?: boolean;
|
|
2584
|
-
optionalLabel?: string;
|
|
2585
|
-
supportingText?: string;
|
|
2586
|
-
tooltip?: React$1.ReactNode;
|
|
2587
|
-
endIcon?: React$1.ReactNode;
|
|
2588
|
-
readOnly?: boolean;
|
|
2589
|
-
wrapperClassName?: string;
|
|
2590
|
-
}
|
|
2591
|
-
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
2592
|
-
|
|
2593
|
-
type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
2594
|
-
label?: string;
|
|
2595
|
-
invalid?: boolean;
|
|
2596
|
-
maxLength?: number;
|
|
2597
|
-
textareaClassName?: string;
|
|
2598
|
-
};
|
|
2599
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
2600
|
-
label?: string;
|
|
2601
|
-
invalid?: boolean;
|
|
2602
|
-
maxLength?: number;
|
|
2603
|
-
textareaClassName?: string;
|
|
2604
|
-
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2605
|
-
|
|
2606
2503
|
type ThreeDotsLoaderProps = {
|
|
2607
2504
|
height?: number;
|
|
2608
2505
|
width?: number;
|
|
@@ -2671,33 +2568,6 @@ declare const Webcam: React$1.ForwardRefExoticComponent<WebcamProps & React$1.Re
|
|
|
2671
2568
|
type WideButtonProps = Omit<ButtonProps, 'size'>;
|
|
2672
2569
|
declare const WideButton: React$1.ForwardRefExoticComponent<WideButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2673
2570
|
|
|
2674
|
-
type DatePickerValue = Date | number | null | undefined | '';
|
|
2675
|
-
type DatePickerProps = {
|
|
2676
|
-
variant?: 'default' | 'airbnb';
|
|
2677
|
-
label: string;
|
|
2678
|
-
topLabel?: string;
|
|
2679
|
-
value?: DatePickerValue;
|
|
2680
|
-
defaultValue?: DatePickerValue;
|
|
2681
|
-
onChange: (value: Date | null) => void;
|
|
2682
|
-
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
2683
|
-
placeholder?: string;
|
|
2684
|
-
disabled?: boolean;
|
|
2685
|
-
error?: string;
|
|
2686
|
-
invalid?: boolean;
|
|
2687
|
-
loading?: boolean;
|
|
2688
|
-
optional?: boolean | string;
|
|
2689
|
-
tooltip?: React$1.ReactNode;
|
|
2690
|
-
className?: string;
|
|
2691
|
-
name?: string;
|
|
2692
|
-
minDate?: Date;
|
|
2693
|
-
maxDate?: Date;
|
|
2694
|
-
locale?: string;
|
|
2695
|
-
mobileTitle?: string;
|
|
2696
|
-
doneLabel?: string;
|
|
2697
|
-
formatValue?: (date: Date) => string;
|
|
2698
|
-
};
|
|
2699
|
-
declare const DatePicker: React$1.ForwardRefExoticComponent<DatePickerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2700
|
-
|
|
2701
2571
|
declare function Drawer({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
2702
2572
|
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
2703
2573
|
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -2709,6 +2579,7 @@ declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimit
|
|
|
2709
2579
|
showHandle?: boolean;
|
|
2710
2580
|
closeOnOverlayClick?: boolean;
|
|
2711
2581
|
lockScroll?: boolean;
|
|
2582
|
+
disableDrag?: boolean;
|
|
2712
2583
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2713
2584
|
declare const DrawerHeader: {
|
|
2714
2585
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -2744,8 +2615,9 @@ type ResponsiveSheetProps = {
|
|
|
2744
2615
|
showDrawerHandle?: boolean;
|
|
2745
2616
|
closeOnOverlayClick?: boolean;
|
|
2746
2617
|
closeOnEscape?: boolean;
|
|
2618
|
+
disableDrag?: boolean;
|
|
2747
2619
|
};
|
|
2748
|
-
declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
|
|
2620
|
+
declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, disableDrag, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
|
|
2749
2621
|
|
|
2750
2622
|
type DropdownSide = 'top' | 'right' | 'bottom' | 'left';
|
|
2751
2623
|
type DropdownAlign = 'start' | 'center' | 'end';
|
|
@@ -2770,75 +2642,24 @@ type ResponsiveDropdownProps = {
|
|
|
2770
2642
|
};
|
|
2771
2643
|
declare function ResponsiveDropdown({ trigger, options, children, side, align, disabled, title, className, dropdownClassName, drawerClassName, }: Readonly<ResponsiveDropdownProps>): react_jsx_runtime.JSX.Element;
|
|
2772
2644
|
|
|
2773
|
-
type
|
|
2774
|
-
|
|
2775
|
-
variant?: 'airbnb' | 'default';
|
|
2776
|
-
id: string;
|
|
2777
|
-
label: string;
|
|
2645
|
+
type DashboardInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2646
|
+
label?: string | React$1.ReactNode;
|
|
2778
2647
|
topLabel?: string;
|
|
2779
|
-
labelId: string;
|
|
2780
|
-
valueId?: string;
|
|
2781
|
-
helperTextId?: string;
|
|
2782
|
-
errorId?: string;
|
|
2783
|
-
labelText?: React$1.ReactNode;
|
|
2784
|
-
valueText?: string;
|
|
2785
|
-
placeholder?: string;
|
|
2786
|
-
disabled?: boolean;
|
|
2787
|
-
error?: boolean | string;
|
|
2788
|
-
loading?: boolean;
|
|
2789
|
-
optional?: boolean | string;
|
|
2790
2648
|
tooltip?: React$1.ReactNode;
|
|
2791
|
-
describedBy?: string;
|
|
2792
|
-
className?: string;
|
|
2793
|
-
contentClassName?: string;
|
|
2794
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2795
|
-
forceFloatingLabel?: boolean;
|
|
2796
|
-
forceLabelText?: boolean;
|
|
2797
|
-
hideErrorMessage?: boolean;
|
|
2798
|
-
children?: React$1.ReactNode;
|
|
2799
|
-
onClick?: () => void;
|
|
2800
|
-
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
2801
|
-
} & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
|
|
2802
|
-
declare const FieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
2803
|
-
as?: "button" | "div";
|
|
2804
|
-
variant?: "airbnb" | "default";
|
|
2805
|
-
id: string;
|
|
2806
|
-
label: string;
|
|
2807
|
-
topLabel?: string;
|
|
2808
|
-
labelId: string;
|
|
2809
|
-
valueId?: string;
|
|
2810
|
-
helperTextId?: string;
|
|
2811
|
-
errorId?: string;
|
|
2812
|
-
labelText?: React$1.ReactNode;
|
|
2813
|
-
valueText?: string;
|
|
2814
|
-
placeholder?: string;
|
|
2815
|
-
disabled?: boolean;
|
|
2816
|
-
error?: boolean | string;
|
|
2817
|
-
loading?: boolean;
|
|
2818
2649
|
optional?: boolean | string;
|
|
2819
|
-
|
|
2820
|
-
describedBy?: string;
|
|
2821
|
-
className?: string;
|
|
2822
|
-
contentClassName?: string;
|
|
2823
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2824
|
-
forceFloatingLabel?: boolean;
|
|
2825
|
-
forceLabelText?: boolean;
|
|
2826
|
-
hideErrorMessage?: boolean;
|
|
2827
|
-
children?: React$1.ReactNode;
|
|
2828
|
-
onClick?: () => void;
|
|
2829
|
-
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
2830
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
2831
|
-
|
|
2832
|
-
type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2833
|
-
variant?: 'airbnb' | 'default';
|
|
2834
|
-
label?: string;
|
|
2835
|
-
topLabel?: string;
|
|
2836
|
-
helperText?: string;
|
|
2837
|
-
error?: string;
|
|
2650
|
+
error?: unknown;
|
|
2838
2651
|
invalid?: boolean;
|
|
2839
2652
|
loading?: boolean;
|
|
2840
|
-
|
|
2841
|
-
|
|
2653
|
+
empty?: boolean;
|
|
2654
|
+
helperText?: string;
|
|
2655
|
+
footer?: string | React$1.ReactNode;
|
|
2656
|
+
width?: number | string;
|
|
2657
|
+
leftIcon?: React$1.ReactNode;
|
|
2658
|
+
sign?: string | React$1.ReactNode;
|
|
2659
|
+
onReset?: () => void;
|
|
2660
|
+
showNumberButtons?: boolean;
|
|
2661
|
+
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2662
|
+
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2842
2663
|
wrapperClassName?: string;
|
|
2843
2664
|
fieldClassName?: string;
|
|
2844
2665
|
contentClassName?: string;
|
|
@@ -2846,16 +2667,24 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
2846
2667
|
trailingAdornment?: React$1.ReactNode;
|
|
2847
2668
|
renderErrorMessage?: boolean;
|
|
2848
2669
|
};
|
|
2849
|
-
declare const
|
|
2850
|
-
|
|
2851
|
-
label?: string;
|
|
2670
|
+
declare const DashboardInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2671
|
+
label?: string | React$1.ReactNode;
|
|
2852
2672
|
topLabel?: string;
|
|
2853
|
-
|
|
2854
|
-
|
|
2673
|
+
tooltip?: React$1.ReactNode;
|
|
2674
|
+
optional?: boolean | string;
|
|
2675
|
+
error?: unknown;
|
|
2855
2676
|
invalid?: boolean;
|
|
2856
2677
|
loading?: boolean;
|
|
2857
|
-
|
|
2858
|
-
|
|
2678
|
+
empty?: boolean;
|
|
2679
|
+
helperText?: string;
|
|
2680
|
+
footer?: string | React$1.ReactNode;
|
|
2681
|
+
width?: number | string;
|
|
2682
|
+
leftIcon?: React$1.ReactNode;
|
|
2683
|
+
sign?: string | React$1.ReactNode;
|
|
2684
|
+
onReset?: () => void;
|
|
2685
|
+
showNumberButtons?: boolean;
|
|
2686
|
+
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2687
|
+
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2859
2688
|
wrapperClassName?: string;
|
|
2860
2689
|
fieldClassName?: string;
|
|
2861
2690
|
contentClassName?: string;
|
|
@@ -2864,74 +2693,18 @@ declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAt
|
|
|
2864
2693
|
renderErrorMessage?: boolean;
|
|
2865
2694
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
2866
2695
|
|
|
2867
|
-
type PhoneFieldOption = {
|
|
2868
|
-
value: string;
|
|
2869
|
-
label: string;
|
|
2870
|
-
disabled?: boolean;
|
|
2871
|
-
};
|
|
2872
|
-
type PhoneFieldValue = {
|
|
2873
|
-
code: string;
|
|
2874
|
-
number: string;
|
|
2875
|
-
};
|
|
2876
|
-
type PhoneFieldProps = {
|
|
2877
|
-
variant?: 'default' | 'airbnb';
|
|
2878
|
-
label: string;
|
|
2879
|
-
topLabel?: string;
|
|
2880
|
-
value?: PhoneFieldValue | null;
|
|
2881
|
-
onChange: (value: PhoneFieldValue) => void;
|
|
2882
|
-
onBlur?: React$1.FocusEventHandler<HTMLInputElement>;
|
|
2883
|
-
options: PhoneFieldOption[];
|
|
2884
|
-
placeholder?: string;
|
|
2885
|
-
disabled?: boolean;
|
|
2886
|
-
codeReadOnly?: boolean;
|
|
2887
|
-
error?: string;
|
|
2888
|
-
invalid?: boolean;
|
|
2889
|
-
loading?: boolean;
|
|
2890
|
-
optional?: boolean | string;
|
|
2891
|
-
tooltip?: React$1.ReactNode;
|
|
2892
|
-
className?: string;
|
|
2893
|
-
name?: string;
|
|
2894
|
-
codeName?: string;
|
|
2895
|
-
numberName?: string;
|
|
2896
|
-
mobileTitle?: string;
|
|
2897
|
-
codePlaceholder?: string;
|
|
2898
|
-
};
|
|
2899
|
-
declare const PhoneField: React$1.ForwardRefExoticComponent<PhoneFieldProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2900
|
-
|
|
2901
2696
|
type SelectValue$1 = string | number;
|
|
2902
|
-
type
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
variant: 'default' | 'airbnb';
|
|
2906
|
-
label: string;
|
|
2907
|
-
topLabel?: string;
|
|
2908
|
-
helperText: string;
|
|
2909
|
-
value?: SelectOption<T, V, L> | null;
|
|
2910
|
-
valueLabel?: string;
|
|
2911
|
-
disabled?: boolean;
|
|
2912
|
-
loading?: boolean;
|
|
2913
|
-
optional?: boolean | string;
|
|
2914
|
-
tooltip?: React$1.ReactNode;
|
|
2915
|
-
error?: string;
|
|
2916
|
-
invalid?: boolean;
|
|
2917
|
-
listboxId: string;
|
|
2918
|
-
describedBy?: string;
|
|
2919
|
-
triggerRef: React$1.Ref<HTMLButtonElement>;
|
|
2920
|
-
onClick: () => void;
|
|
2921
|
-
onKeyDown: React$1.KeyboardEventHandler<HTMLButtonElement>;
|
|
2922
|
-
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
2923
|
-
};
|
|
2924
|
-
type AirbnbSelectProps<T = undefined, V extends SelectValue$1 = string, L extends string | number | React$1.ReactNode = string> = {
|
|
2697
|
+
type DashboardSelectFilterOption<T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string> = (option: SelectOption<T, V, L>, input: string) => boolean;
|
|
2698
|
+
|
|
2699
|
+
type DashboardSelectProps<T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string> = {
|
|
2925
2700
|
options?: SelectOption<T, V, L>[];
|
|
2926
2701
|
value?: SelectOption<T, V, L> | null;
|
|
2927
2702
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
2928
2703
|
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
2929
|
-
variant?: 'default' | 'airbnb';
|
|
2930
2704
|
label: string;
|
|
2931
2705
|
topLabel?: string;
|
|
2932
2706
|
placeholder?: string;
|
|
2933
2707
|
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
2934
|
-
renderTrigger?: (props: SelectRenderTriggerProps<T, V, L>) => React$1.ReactNode;
|
|
2935
2708
|
disabled?: boolean;
|
|
2936
2709
|
loading?: boolean;
|
|
2937
2710
|
optional?: boolean | string;
|
|
@@ -2942,111 +2715,22 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue$1 = string, L extend
|
|
|
2942
2715
|
className?: string;
|
|
2943
2716
|
menuClassName?: string;
|
|
2944
2717
|
dropdownClassName?: string;
|
|
2945
|
-
|
|
2946
|
-
mobileTitle?: string;
|
|
2718
|
+
drawerClassName?: string;
|
|
2947
2719
|
name?: string;
|
|
2720
|
+
width?: number | string;
|
|
2948
2721
|
noOptionsMessage?: () => string | undefined;
|
|
2722
|
+
searchable?: boolean;
|
|
2723
|
+
searchPlaceholder?: string;
|
|
2724
|
+
filterOption?: DashboardSelectFilterOption<T, V, L>;
|
|
2725
|
+
helperText?: string;
|
|
2949
2726
|
};
|
|
2950
|
-
|
|
2951
|
-
declare const AirbnbSelect: <T = undefined, V extends SelectValue$1 = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
|
|
2727
|
+
type DashboardSelectComponent = <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: DashboardSelectProps<T, V, L> & {
|
|
2952
2728
|
ref?: React$1.Ref<HTMLButtonElement>;
|
|
2953
2729
|
}) => React$1.ReactElement;
|
|
2730
|
+
declare const DashboardSelect: DashboardSelectComponent;
|
|
2954
2731
|
|
|
2955
|
-
type
|
|
2956
|
-
|
|
2957
|
-
wrapperClassName?: string;
|
|
2958
|
-
};
|
|
2959
|
-
declare const AirbnbSearchInput: React$1.ForwardRefExoticComponent<Omit<AirbnbSearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
2960
|
-
|
|
2961
|
-
type DashboardInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2962
|
-
label?: string | React$1.ReactNode;
|
|
2963
|
-
topLabel?: string;
|
|
2964
|
-
tooltip?: React$1.ReactNode;
|
|
2965
|
-
optional?: boolean | string;
|
|
2966
|
-
error?: unknown;
|
|
2967
|
-
invalid?: boolean;
|
|
2968
|
-
loading?: boolean;
|
|
2969
|
-
empty?: boolean;
|
|
2970
|
-
helperText?: string;
|
|
2971
|
-
footer?: string | React$1.ReactNode;
|
|
2972
|
-
width?: number | string;
|
|
2973
|
-
leftIcon?: React$1.ReactNode;
|
|
2974
|
-
sign?: string | React$1.ReactNode;
|
|
2975
|
-
onReset?: () => void;
|
|
2976
|
-
showNumberButtons?: boolean;
|
|
2977
|
-
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2978
|
-
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2979
|
-
wrapperClassName?: string;
|
|
2980
|
-
fieldClassName?: string;
|
|
2981
|
-
contentClassName?: string;
|
|
2982
|
-
inputClassName?: string;
|
|
2983
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2984
|
-
renderErrorMessage?: boolean;
|
|
2985
|
-
};
|
|
2986
|
-
declare const DashboardInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2987
|
-
label?: string | React$1.ReactNode;
|
|
2988
|
-
topLabel?: string;
|
|
2989
|
-
tooltip?: React$1.ReactNode;
|
|
2990
|
-
optional?: boolean | string;
|
|
2991
|
-
error?: unknown;
|
|
2992
|
-
invalid?: boolean;
|
|
2993
|
-
loading?: boolean;
|
|
2994
|
-
empty?: boolean;
|
|
2995
|
-
helperText?: string;
|
|
2996
|
-
footer?: string | React$1.ReactNode;
|
|
2997
|
-
width?: number | string;
|
|
2998
|
-
leftIcon?: React$1.ReactNode;
|
|
2999
|
-
sign?: string | React$1.ReactNode;
|
|
3000
|
-
onReset?: () => void;
|
|
3001
|
-
showNumberButtons?: boolean;
|
|
3002
|
-
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
3003
|
-
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
3004
|
-
wrapperClassName?: string;
|
|
3005
|
-
fieldClassName?: string;
|
|
3006
|
-
contentClassName?: string;
|
|
3007
|
-
inputClassName?: string;
|
|
3008
|
-
trailingAdornment?: React$1.ReactNode;
|
|
3009
|
-
renderErrorMessage?: boolean;
|
|
3010
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3011
|
-
|
|
3012
|
-
type SelectValue = string | number;
|
|
3013
|
-
type DashboardSelectFilterOption<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = (option: SelectOption<T, V, L>, input: string) => boolean;
|
|
3014
|
-
|
|
3015
|
-
type DashboardSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = {
|
|
3016
|
-
options?: SelectOption<T, V, L>[];
|
|
3017
|
-
value?: SelectOption<T, V, L> | null;
|
|
3018
|
-
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3019
|
-
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
3020
|
-
label: string;
|
|
3021
|
-
topLabel?: string;
|
|
3022
|
-
placeholder?: string;
|
|
3023
|
-
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3024
|
-
disabled?: boolean;
|
|
3025
|
-
loading?: boolean;
|
|
3026
|
-
optional?: boolean | string;
|
|
3027
|
-
tooltip?: React$1.ReactNode;
|
|
3028
|
-
error?: string;
|
|
3029
|
-
invalid?: boolean;
|
|
3030
|
-
hideErrorMessage?: boolean;
|
|
3031
|
-
className?: string;
|
|
3032
|
-
menuClassName?: string;
|
|
3033
|
-
dropdownClassName?: string;
|
|
3034
|
-
drawerClassName?: string;
|
|
3035
|
-
name?: string;
|
|
3036
|
-
width?: number | string;
|
|
3037
|
-
noOptionsMessage?: () => string | undefined;
|
|
3038
|
-
searchable?: boolean;
|
|
3039
|
-
searchPlaceholder?: string;
|
|
3040
|
-
filterOption?: DashboardSelectFilterOption<T, V, L>;
|
|
3041
|
-
helperText?: string;
|
|
3042
|
-
};
|
|
3043
|
-
type DashboardSelectComponent = <T = undefined, V extends SelectValue = string, L extends ReactNode = string>(props: DashboardSelectProps<T, V, L> & {
|
|
3044
|
-
ref?: React$1.Ref<HTMLButtonElement>;
|
|
3045
|
-
}) => React$1.ReactElement;
|
|
3046
|
-
declare const DashboardSelect: DashboardSelectComponent;
|
|
3047
|
-
|
|
3048
|
-
type DashboardMultiSelectChipRenderer<T, V extends SelectValue, L extends ReactNode> = (option: SelectOption<T, V, L>, onRemove: () => void) => React$1.ReactNode;
|
|
3049
|
-
type DashboardMultiSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = {
|
|
2732
|
+
type DashboardMultiSelectChipRenderer<T, V extends SelectValue$1, L extends ReactNode> = (option: SelectOption<T, V, L>, onRemove: () => void) => React$1.ReactNode;
|
|
2733
|
+
type DashboardMultiSelectProps<T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string> = {
|
|
3050
2734
|
options?: SelectOption<T, V, L>[];
|
|
3051
2735
|
value?: SelectOption<T, V, L>[] | null;
|
|
3052
2736
|
onChange: (value: SelectOption<T, V, L>[]) => void;
|
|
@@ -3078,17 +2762,17 @@ type DashboardMultiSelectProps<T = undefined, V extends SelectValue = string, L
|
|
|
3078
2762
|
formatCreateLabel?: (input: string) => React$1.ReactNode;
|
|
3079
2763
|
isValidNewOption?: (input: string, selected: SelectOption<T, V, L>[], options: SelectOption<T, V, L>[]) => boolean;
|
|
3080
2764
|
};
|
|
3081
|
-
type DashboardMultiSelectComponent = <T = undefined, V extends SelectValue = string, L extends ReactNode = string>(props: DashboardMultiSelectProps<T, V, L> & {
|
|
2765
|
+
type DashboardMultiSelectComponent = <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: DashboardMultiSelectProps<T, V, L> & {
|
|
3082
2766
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
3083
2767
|
}) => React$1.ReactElement;
|
|
3084
2768
|
declare const DashboardMultiSelect: DashboardMultiSelectComponent;
|
|
3085
2769
|
|
|
3086
|
-
type DashboardCreatableMultiSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = Omit<DashboardMultiSelectProps<T, V, L>, 'isCreatable'>;
|
|
3087
|
-
declare const DashboardCreatableMultiSelect: <T = undefined, V extends SelectValue = string, L extends ReactNode = string>(props: DashboardCreatableMultiSelectProps<T, V, L> & {
|
|
2770
|
+
type DashboardCreatableMultiSelectProps<T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string> = Omit<DashboardMultiSelectProps<T, V, L>, 'isCreatable'>;
|
|
2771
|
+
declare const DashboardCreatableMultiSelect: <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: DashboardCreatableMultiSelectProps<T, V, L> & {
|
|
3088
2772
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
3089
2773
|
}) => React$1.ReactElement;
|
|
3090
2774
|
|
|
3091
|
-
type DashboardInfiniteScrollSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = {
|
|
2775
|
+
type DashboardInfiniteScrollSelectProps<T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string> = {
|
|
3092
2776
|
options?: SelectOption<T, V, L>[];
|
|
3093
2777
|
value?: SelectOption<T, V, L> | null;
|
|
3094
2778
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
@@ -3125,7 +2809,7 @@ type DashboardInfiniteScrollSelectProps<T = undefined, V extends SelectValue = s
|
|
|
3125
2809
|
overscan?: number;
|
|
3126
2810
|
loadMoreThreshold?: number;
|
|
3127
2811
|
};
|
|
3128
|
-
type DashboardInfiniteScrollSelectComponent = <T = undefined, V extends SelectValue = string, L extends ReactNode = string>(props: DashboardInfiniteScrollSelectProps<T, V, L> & {
|
|
2812
|
+
type DashboardInfiniteScrollSelectComponent = <T = undefined, V extends SelectValue$1 = string, L extends ReactNode = string>(props: DashboardInfiniteScrollSelectProps<T, V, L> & {
|
|
3129
2813
|
ref?: React$1.Ref<HTMLButtonElement>;
|
|
3130
2814
|
}) => React$1.ReactElement;
|
|
3131
2815
|
declare const DashboardInfiniteScrollSelect: DashboardInfiniteScrollSelectComponent;
|
|
@@ -3368,43 +3052,6 @@ type DashboardSelectIconsBoxProps = {
|
|
|
3368
3052
|
};
|
|
3369
3053
|
declare function DashboardSelectIconsBox({ children, icons, renderIcon, onSelect, columns, iconsColor, isOpen: controlledOpen, defaultOpen, onOpenChange, position, className, boxClassName, }: DashboardSelectIconsBoxProps): react_jsx_runtime.JSX.Element;
|
|
3370
3054
|
|
|
3371
|
-
type SearchableSelectValue = string | number;
|
|
3372
|
-
type SearchableSelectProps<T = undefined, V extends SearchableSelectValue = string, L extends ReactNode = string> = {
|
|
3373
|
-
options: SelectOption<T, V, L>[];
|
|
3374
|
-
value?: SelectOption<T, V, L> | null;
|
|
3375
|
-
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3376
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
3377
|
-
onOpenChange?: (open: boolean) => void;
|
|
3378
|
-
searchValue?: string;
|
|
3379
|
-
onSearchChange?: (value: string) => void;
|
|
3380
|
-
filterOption?: ((option: SelectOption<T, V, L>, searchValue: string) => boolean) | null;
|
|
3381
|
-
loading?: boolean;
|
|
3382
|
-
hasNextPage?: boolean;
|
|
3383
|
-
onLoadMore?: () => void;
|
|
3384
|
-
variant?: 'default' | 'airbnb';
|
|
3385
|
-
label: string;
|
|
3386
|
-
topLabel?: string;
|
|
3387
|
-
placeholder?: string;
|
|
3388
|
-
searchPlaceholder?: string;
|
|
3389
|
-
mobileTitle?: string;
|
|
3390
|
-
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3391
|
-
disabled?: boolean;
|
|
3392
|
-
error?: string;
|
|
3393
|
-
invalid?: boolean;
|
|
3394
|
-
optional?: boolean | string;
|
|
3395
|
-
tooltip?: ReactNode;
|
|
3396
|
-
hideErrorMessage?: boolean;
|
|
3397
|
-
name?: string;
|
|
3398
|
-
className?: string;
|
|
3399
|
-
dropdownClassName?: string;
|
|
3400
|
-
menuClassName?: string;
|
|
3401
|
-
noOptionsMessage?: () => string | undefined;
|
|
3402
|
-
loadingMessage?: () => string | undefined;
|
|
3403
|
-
};
|
|
3404
|
-
|
|
3405
|
-
type SearchableSelectComponent = <T = undefined, V extends SearchableSelectValue = string, L extends ReactNode = string>(props: SearchableSelectProps<T, V, L> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
|
|
3406
|
-
declare const SearchableSelect: SearchableSelectComponent;
|
|
3407
|
-
|
|
3408
3055
|
declare function copyToClipboard(value: string | number): void;
|
|
3409
3056
|
|
|
3410
3057
|
declare function scrollToTop(value?: number, behavior?: 'auto' | 'smooth'): void;
|
|
@@ -3624,7 +3271,11 @@ type KeyDownOptions = {
|
|
|
3624
3271
|
shiftKey?: boolean;
|
|
3625
3272
|
altKey?: boolean;
|
|
3626
3273
|
};
|
|
3627
|
-
declare function useKeyDown(key
|
|
3274
|
+
declare function useKeyDown({ key, cb, options, }: {
|
|
3275
|
+
key: string | string[];
|
|
3276
|
+
cb: (event: KeyboardEvent) => void;
|
|
3277
|
+
options?: KeyDownOptions;
|
|
3278
|
+
}): void;
|
|
3628
3279
|
|
|
3629
3280
|
declare function useIframeFocusTrapFallback(contentRef: React$1.RefObject<HTMLDivElement | null>, onKeyDown?: React$1.KeyboardEventHandler<HTMLDivElement>): (event: React$1.KeyboardEvent<HTMLDivElement>) => void;
|
|
3630
3281
|
|
|
@@ -3687,4 +3338,343 @@ declare function toastResponseError(error: unknown, options?: CustomToastOptions
|
|
|
3687
3338
|
|
|
3688
3339
|
declare function getErrorMessage(error?: any): any;
|
|
3689
3340
|
|
|
3690
|
-
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbSearchInput, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FieldTrigger, type FieldTriggerProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfinitySelect, type InfinitySelectProps, InfoBox, type InfoBoxProps, Input, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, MultiSelect, type MultiSelectProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, PhoneField, type PhoneFieldOption, type PhoneFieldProps, type PhoneFieldValue, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, SearchableSelect, type SearchableSelectProps, type SearchableSelectValue, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectPortal, type SelectProps, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, type SelectSize, SelectTrigger, SelectValue$2 as SelectValue, type SelectorOption, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignatureCanvas, Skeleton, type SkeletonProps, Slider, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getScrollableAreaState, getSidebarState, inputVariants, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useTimer, useUpdateToast, useValidateDates };
|
|
3341
|
+
type LegacyTextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3342
|
+
label?: string;
|
|
3343
|
+
invalid?: boolean;
|
|
3344
|
+
maxLength?: number;
|
|
3345
|
+
textareaClassName?: string;
|
|
3346
|
+
};
|
|
3347
|
+
/**
|
|
3348
|
+
* @deprecated
|
|
3349
|
+
*/
|
|
3350
|
+
declare const LegacyTextarea: React$1.ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3351
|
+
label?: string;
|
|
3352
|
+
invalid?: boolean;
|
|
3353
|
+
maxLength?: number;
|
|
3354
|
+
textareaClassName?: string;
|
|
3355
|
+
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3356
|
+
|
|
3357
|
+
type LegacyInputProps = React$1.ComponentProps<'input'>;
|
|
3358
|
+
declare const LegacyInput: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3359
|
+
|
|
3360
|
+
declare const LegacySelectRoot: React$1.FC<SelectPrimitive.SelectProps>;
|
|
3361
|
+
declare const LegacySelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3362
|
+
declare const LegacySelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3363
|
+
declare const LegacySelectPortal: React$1.FC<SelectPrimitive.SelectPortalProps>;
|
|
3364
|
+
type LegacySelectSize = 'sm' | 'md';
|
|
3365
|
+
declare const LegacySelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3366
|
+
size?: LegacySelectSize;
|
|
3367
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3368
|
+
declare const LegacySelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3369
|
+
declare const LegacySelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3370
|
+
declare const LegacySelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3371
|
+
declare const LegacySelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3372
|
+
declare const LegacySelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3373
|
+
size?: LegacySelectSize;
|
|
3374
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3375
|
+
declare const LegacySelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3376
|
+
|
|
3377
|
+
type LegacySelectProps<D = unknown, V extends string | number = string, L extends ReactNode = string> = {
|
|
3378
|
+
placeholder?: string;
|
|
3379
|
+
label?: string | ReactNode;
|
|
3380
|
+
className?: string;
|
|
3381
|
+
size?: LegacySelectSize;
|
|
3382
|
+
options?: SelectOption<D, V, L>[];
|
|
3383
|
+
children?: ReactNode;
|
|
3384
|
+
value?: string;
|
|
3385
|
+
onChange?: (value: V) => void;
|
|
3386
|
+
onValueChange?: (value: string) => void;
|
|
3387
|
+
disabled?: boolean;
|
|
3388
|
+
supportingText?: string;
|
|
3389
|
+
errorText?: string;
|
|
3390
|
+
containerClassName?: string;
|
|
3391
|
+
triggerClassName?: string;
|
|
3392
|
+
};
|
|
3393
|
+
declare const LegacySelectInner: <V extends string | number = string, D = unknown, L extends ReactNode = string>({ placeholder, label, className, size, options, supportingText, errorText, containerClassName, triggerClassName, children, value, onChange, onValueChange, disabled, }: LegacySelectProps<D, V, L>, ref: Ref<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
3394
|
+
declare const LegacySelect: <V extends string | number = string, D = unknown, L extends ReactNode = string>(props: LegacySelectProps<D, V, L> & {
|
|
3395
|
+
ref?: Ref<HTMLButtonElement>;
|
|
3396
|
+
}) => ReturnType<typeof LegacySelectInner>;
|
|
3397
|
+
|
|
3398
|
+
type LegacyMultiSelectProps<D, V extends string | number = string, L extends string | number | ReactNode = string> = {
|
|
3399
|
+
label?: string | ReactNode;
|
|
3400
|
+
className?: string;
|
|
3401
|
+
options?: SelectOption<D, V, L>[];
|
|
3402
|
+
children?: ReactNode;
|
|
3403
|
+
value?: (string | number)[];
|
|
3404
|
+
onChange?: (value: (string | number)[]) => void;
|
|
3405
|
+
placeholder?: string;
|
|
3406
|
+
disabled?: boolean;
|
|
3407
|
+
};
|
|
3408
|
+
declare const LegacyMultiSelectInner: <V extends string | number = string, D = unknown, L extends string | number | ReactNode = string>({ label, value, onChange, className, options, placeholder, disabled, }: LegacyMultiSelectProps<D, V, L>, ref: Ref<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
3409
|
+
declare const LegacyMultiSelect: <V extends string | number = string, D = unknown, L extends string | number | ReactNode = string>(props: LegacyMultiSelectProps<D, V, L> & {
|
|
3410
|
+
ref?: Ref<HTMLDivElement>;
|
|
3411
|
+
}) => ReturnType<typeof LegacyMultiSelectInner>;
|
|
3412
|
+
|
|
3413
|
+
type LegacyInfinitySelectProps = {
|
|
3414
|
+
label: string | ReactNode;
|
|
3415
|
+
className?: string;
|
|
3416
|
+
placeholder?: string;
|
|
3417
|
+
value?: string;
|
|
3418
|
+
onValueChange?: (value: string) => void;
|
|
3419
|
+
options: SelectOption[];
|
|
3420
|
+
hasNextPage: boolean;
|
|
3421
|
+
isFetchingNextPage: boolean;
|
|
3422
|
+
fetchNextPage: () => void;
|
|
3423
|
+
itemHeight?: number;
|
|
3424
|
+
maxHeight?: number;
|
|
3425
|
+
};
|
|
3426
|
+
declare function LegacyInfinitySelect({ label, className, placeholder, value, onValueChange, options, hasNextPage, isFetchingNextPage, fetchNextPage, itemHeight, maxHeight, }: LegacyInfinitySelectProps): react_jsx_runtime.JSX.Element;
|
|
3427
|
+
|
|
3428
|
+
type AirbnbDatePickerValue = Date | number | null | undefined | '';
|
|
3429
|
+
type AirbnbDatePickerProps = {
|
|
3430
|
+
variant?: 'default' | 'airbnb';
|
|
3431
|
+
label: string;
|
|
3432
|
+
topLabel?: string;
|
|
3433
|
+
value?: AirbnbDatePickerValue;
|
|
3434
|
+
defaultValue?: AirbnbDatePickerValue;
|
|
3435
|
+
onChange: (value: Date | null) => void;
|
|
3436
|
+
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
3437
|
+
placeholder?: string;
|
|
3438
|
+
disabled?: boolean;
|
|
3439
|
+
error?: string;
|
|
3440
|
+
invalid?: boolean;
|
|
3441
|
+
loading?: boolean;
|
|
3442
|
+
optional?: boolean | string;
|
|
3443
|
+
tooltip?: React$1.ReactNode;
|
|
3444
|
+
className?: string;
|
|
3445
|
+
name?: string;
|
|
3446
|
+
minDate?: Date;
|
|
3447
|
+
maxDate?: Date;
|
|
3448
|
+
locale?: string;
|
|
3449
|
+
mobileTitle?: string;
|
|
3450
|
+
doneLabel?: string;
|
|
3451
|
+
formatValue?: (date: Date) => string;
|
|
3452
|
+
};
|
|
3453
|
+
declare const AirbnbDatePicker: React$1.ForwardRefExoticComponent<AirbnbDatePickerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3454
|
+
|
|
3455
|
+
type AirbnbFieldTriggerProps = {
|
|
3456
|
+
as?: 'button' | 'div';
|
|
3457
|
+
variant?: 'airbnb' | 'default';
|
|
3458
|
+
id: string;
|
|
3459
|
+
label: string;
|
|
3460
|
+
topLabel?: string;
|
|
3461
|
+
labelId: string;
|
|
3462
|
+
valueId?: string;
|
|
3463
|
+
helperTextId?: string;
|
|
3464
|
+
errorId?: string;
|
|
3465
|
+
labelText?: React$1.ReactNode;
|
|
3466
|
+
valueText?: string;
|
|
3467
|
+
placeholder?: string;
|
|
3468
|
+
disabled?: boolean;
|
|
3469
|
+
error?: boolean | string;
|
|
3470
|
+
loading?: boolean;
|
|
3471
|
+
optional?: boolean | string;
|
|
3472
|
+
tooltip?: React$1.ReactNode;
|
|
3473
|
+
describedBy?: string;
|
|
3474
|
+
className?: string;
|
|
3475
|
+
contentClassName?: string;
|
|
3476
|
+
trailingAdornment?: React$1.ReactNode;
|
|
3477
|
+
forceFloatingLabel?: boolean;
|
|
3478
|
+
forceLabelText?: boolean;
|
|
3479
|
+
hideErrorMessage?: boolean;
|
|
3480
|
+
children?: React$1.ReactNode;
|
|
3481
|
+
onClick?: () => void;
|
|
3482
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
3483
|
+
} & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
|
|
3484
|
+
declare const AirbnbFieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
3485
|
+
as?: "button" | "div";
|
|
3486
|
+
variant?: "airbnb" | "default";
|
|
3487
|
+
id: string;
|
|
3488
|
+
label: string;
|
|
3489
|
+
topLabel?: string;
|
|
3490
|
+
labelId: string;
|
|
3491
|
+
valueId?: string;
|
|
3492
|
+
helperTextId?: string;
|
|
3493
|
+
errorId?: string;
|
|
3494
|
+
labelText?: React$1.ReactNode;
|
|
3495
|
+
valueText?: string;
|
|
3496
|
+
placeholder?: string;
|
|
3497
|
+
disabled?: boolean;
|
|
3498
|
+
error?: boolean | string;
|
|
3499
|
+
loading?: boolean;
|
|
3500
|
+
optional?: boolean | string;
|
|
3501
|
+
tooltip?: React$1.ReactNode;
|
|
3502
|
+
describedBy?: string;
|
|
3503
|
+
className?: string;
|
|
3504
|
+
contentClassName?: string;
|
|
3505
|
+
trailingAdornment?: React$1.ReactNode;
|
|
3506
|
+
forceFloatingLabel?: boolean;
|
|
3507
|
+
forceLabelText?: boolean;
|
|
3508
|
+
hideErrorMessage?: boolean;
|
|
3509
|
+
children?: React$1.ReactNode;
|
|
3510
|
+
onClick?: () => void;
|
|
3511
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
3512
|
+
} & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
3513
|
+
|
|
3514
|
+
type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3515
|
+
variant?: 'airbnb' | 'default';
|
|
3516
|
+
label?: string;
|
|
3517
|
+
topLabel?: string;
|
|
3518
|
+
helperText?: string;
|
|
3519
|
+
error?: string;
|
|
3520
|
+
invalid?: boolean;
|
|
3521
|
+
loading?: boolean;
|
|
3522
|
+
optional?: boolean | string;
|
|
3523
|
+
tooltip?: React$1.ReactNode;
|
|
3524
|
+
wrapperClassName?: string;
|
|
3525
|
+
fieldClassName?: string;
|
|
3526
|
+
contentClassName?: string;
|
|
3527
|
+
inputClassName?: string;
|
|
3528
|
+
trailingAdornment?: React$1.ReactNode;
|
|
3529
|
+
renderErrorMessage?: boolean;
|
|
3530
|
+
};
|
|
3531
|
+
declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
3532
|
+
variant?: "airbnb" | "default";
|
|
3533
|
+
label?: string;
|
|
3534
|
+
topLabel?: string;
|
|
3535
|
+
helperText?: string;
|
|
3536
|
+
error?: string;
|
|
3537
|
+
invalid?: boolean;
|
|
3538
|
+
loading?: boolean;
|
|
3539
|
+
optional?: boolean | string;
|
|
3540
|
+
tooltip?: React$1.ReactNode;
|
|
3541
|
+
wrapperClassName?: string;
|
|
3542
|
+
fieldClassName?: string;
|
|
3543
|
+
contentClassName?: string;
|
|
3544
|
+
inputClassName?: string;
|
|
3545
|
+
trailingAdornment?: React$1.ReactNode;
|
|
3546
|
+
renderErrorMessage?: boolean;
|
|
3547
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3548
|
+
|
|
3549
|
+
type AirbnbPhoneFieldOption = {
|
|
3550
|
+
value: string;
|
|
3551
|
+
label: string;
|
|
3552
|
+
disabled?: boolean;
|
|
3553
|
+
};
|
|
3554
|
+
type AirbnbPhoneFieldValue = {
|
|
3555
|
+
code: string;
|
|
3556
|
+
number: string;
|
|
3557
|
+
};
|
|
3558
|
+
type AirbnbPhoneFieldProps = {
|
|
3559
|
+
variant?: 'default' | 'airbnb';
|
|
3560
|
+
label: string;
|
|
3561
|
+
topLabel?: string;
|
|
3562
|
+
value?: AirbnbPhoneFieldValue | null;
|
|
3563
|
+
onChange: (value: AirbnbPhoneFieldValue) => void;
|
|
3564
|
+
onBlur?: React$1.FocusEventHandler<HTMLInputElement>;
|
|
3565
|
+
options: AirbnbPhoneFieldOption[];
|
|
3566
|
+
placeholder?: string;
|
|
3567
|
+
disabled?: boolean;
|
|
3568
|
+
codeReadOnly?: boolean;
|
|
3569
|
+
error?: string;
|
|
3570
|
+
invalid?: boolean;
|
|
3571
|
+
loading?: boolean;
|
|
3572
|
+
optional?: boolean | string;
|
|
3573
|
+
tooltip?: React$1.ReactNode;
|
|
3574
|
+
className?: string;
|
|
3575
|
+
name?: string;
|
|
3576
|
+
codeName?: string;
|
|
3577
|
+
numberName?: string;
|
|
3578
|
+
mobileTitle?: string;
|
|
3579
|
+
codePlaceholder?: string;
|
|
3580
|
+
};
|
|
3581
|
+
declare const AirbnbPhoneField: React$1.ForwardRefExoticComponent<AirbnbPhoneFieldProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3582
|
+
|
|
3583
|
+
type SelectValue = string | number;
|
|
3584
|
+
type SelectRenderTriggerProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
|
|
3585
|
+
id: string;
|
|
3586
|
+
open: boolean;
|
|
3587
|
+
variant: 'default' | 'airbnb';
|
|
3588
|
+
label: string;
|
|
3589
|
+
topLabel?: string;
|
|
3590
|
+
helperText: string;
|
|
3591
|
+
value?: SelectOption<T, V, L> | null;
|
|
3592
|
+
valueLabel?: string;
|
|
3593
|
+
disabled?: boolean;
|
|
3594
|
+
loading?: boolean;
|
|
3595
|
+
optional?: boolean | string;
|
|
3596
|
+
tooltip?: React$1.ReactNode;
|
|
3597
|
+
error?: string;
|
|
3598
|
+
invalid?: boolean;
|
|
3599
|
+
listboxId: string;
|
|
3600
|
+
describedBy?: string;
|
|
3601
|
+
triggerRef: React$1.Ref<HTMLButtonElement>;
|
|
3602
|
+
onClick: () => void;
|
|
3603
|
+
onKeyDown: React$1.KeyboardEventHandler<HTMLButtonElement>;
|
|
3604
|
+
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
3605
|
+
};
|
|
3606
|
+
type AirbnbSelectProps<T = undefined, V extends SelectValue = string, L extends string | number | React$1.ReactNode = string> = {
|
|
3607
|
+
options?: SelectOption<T, V, L>[];
|
|
3608
|
+
value?: SelectOption<T, V, L> | null;
|
|
3609
|
+
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3610
|
+
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
3611
|
+
variant?: 'default' | 'airbnb';
|
|
3612
|
+
label: string;
|
|
3613
|
+
topLabel?: string;
|
|
3614
|
+
placeholder?: string;
|
|
3615
|
+
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3616
|
+
renderTrigger?: (props: SelectRenderTriggerProps<T, V, L>) => React$1.ReactNode;
|
|
3617
|
+
disabled?: boolean;
|
|
3618
|
+
loading?: boolean;
|
|
3619
|
+
optional?: boolean | string;
|
|
3620
|
+
tooltip?: React$1.ReactNode;
|
|
3621
|
+
error?: string;
|
|
3622
|
+
invalid?: boolean;
|
|
3623
|
+
hideErrorMessage?: boolean;
|
|
3624
|
+
className?: string;
|
|
3625
|
+
menuClassName?: string;
|
|
3626
|
+
dropdownClassName?: string;
|
|
3627
|
+
doneLabel?: string;
|
|
3628
|
+
mobileTitle?: string;
|
|
3629
|
+
name?: string;
|
|
3630
|
+
noOptionsMessage?: () => string | undefined;
|
|
3631
|
+
};
|
|
3632
|
+
|
|
3633
|
+
declare const AirbnbSelect: <T = undefined, V extends SelectValue = string, L extends string | number | ReactNode = string>(props: AirbnbSelectProps<T, V, L> & {
|
|
3634
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
3635
|
+
}) => React$1.ReactElement;
|
|
3636
|
+
|
|
3637
|
+
type AirbnbSearchableSelectValue = string | number;
|
|
3638
|
+
type AirbnbSearchableSelectProps<T = undefined, V extends AirbnbSearchableSelectValue = string, L extends ReactNode = string> = {
|
|
3639
|
+
options: SelectOption<T, V, L>[];
|
|
3640
|
+
value?: SelectOption<T, V, L> | null;
|
|
3641
|
+
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3642
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
3643
|
+
onOpenChange?: (open: boolean) => void;
|
|
3644
|
+
searchValue?: string;
|
|
3645
|
+
onSearchChange?: (value: string) => void;
|
|
3646
|
+
filterOption?: ((option: SelectOption<T, V, L>, searchValue: string) => boolean) | null;
|
|
3647
|
+
loading?: boolean;
|
|
3648
|
+
hasNextPage?: boolean;
|
|
3649
|
+
onLoadMore?: () => void;
|
|
3650
|
+
variant?: 'default' | 'airbnb';
|
|
3651
|
+
label: string;
|
|
3652
|
+
topLabel?: string;
|
|
3653
|
+
placeholder?: string;
|
|
3654
|
+
searchPlaceholder?: string;
|
|
3655
|
+
mobileTitle?: string;
|
|
3656
|
+
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3657
|
+
disabled?: boolean;
|
|
3658
|
+
error?: string;
|
|
3659
|
+
invalid?: boolean;
|
|
3660
|
+
optional?: boolean | string;
|
|
3661
|
+
tooltip?: ReactNode;
|
|
3662
|
+
hideErrorMessage?: boolean;
|
|
3663
|
+
name?: string;
|
|
3664
|
+
className?: string;
|
|
3665
|
+
dropdownClassName?: string;
|
|
3666
|
+
menuClassName?: string;
|
|
3667
|
+
noOptionsMessage?: () => string | undefined;
|
|
3668
|
+
loadingMessage?: () => string | undefined;
|
|
3669
|
+
};
|
|
3670
|
+
|
|
3671
|
+
type AirbnbSearchableSelectComponent = <T = undefined, V extends AirbnbSearchableSelectValue = string, L extends ReactNode = string>(props: AirbnbSearchableSelectProps<T, V, L> & React$1.RefAttributes<HTMLButtonElement>) => React$1.ReactElement | null;
|
|
3672
|
+
declare const AirbnbSearchableSelect: AirbnbSearchableSelectComponent;
|
|
3673
|
+
|
|
3674
|
+
type AirbnbSearchInputProps = ComponentProps<'input'> & {
|
|
3675
|
+
onReset?: () => void;
|
|
3676
|
+
wrapperClassName?: string;
|
|
3677
|
+
};
|
|
3678
|
+
declare const AirbnbSearchInput: React$1.ForwardRefExoticComponent<Omit<AirbnbSearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3679
|
+
|
|
3680
|
+
export { ALERT_BOX_VARIANTS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, AirbnbDatePicker, type AirbnbDatePickerProps, type AirbnbDatePickerValue, AirbnbFieldTrigger, type AirbnbFieldTriggerProps, AirbnbInput, type AirbnbInputProps, AirbnbPhoneField, type AirbnbPhoneFieldOption, type AirbnbPhoneFieldProps, type AirbnbPhoneFieldValue, AirbnbSearchInput, AirbnbSearchableSelect, type AirbnbSearchableSelectProps, type AirbnbSearchableSelectValue, AirbnbSelect, type AirbnbSelectProps, Alert, AlertBox, type AlertBoxProps, type AlertBoxVariant, AlertDescription, AlertSize, AlertSizes, AlertTitle, AlertType, AlertTypes, AudioPlayer, type AudioPlayerProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseCheckbox, type BaseCheckboxProps, BetaBadge, type BetaBadgeProps, BookmarkTabsList, type BookmarkTabsListProps, BookmarkTabsTrigger, type BookmarkTabsTriggerProps, BoxOptionSelector, type BoxOptionSelectorProps, type BoxOptionSelectorSwitchProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbType, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, type ButtonStatuses, ButtonsGroupLabel, type ButtonsGroupLabelProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselNext, CarouselPrevious, type CarouselProps, CarouselRoot, type CarouselRootProps, CarouselSlide, CarouselTrack, CarouselViewport, CheckList, type CheckListProps, Checkbox, CheckboxDropdownGroup, type CheckboxDropdownGroupConfig, type CheckboxDropdownGroupProps, CheckboxDropdownMultiGroup, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxSize, CircularLoader, Collapsible, CollapsibleContent, CollapsibleTrigger, CommingSoonBadge, type CommingSoonBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CopyIcon, type CopyIconProps, CopyLinkButton, type CopyLinkButtonProps, CopyString, type CopyStringProps, CustomCheckboxDropdownGroup, type CustomIconEntry, DEFAULT_DISPLAY_FORMAT, DEVICE_BREAKPOINTS, DashboardCreatableMultiSelect, type DashboardCreatableMultiSelectProps, DashboardDateRangePicker, type DashboardDateRangePickerImperativeProps, type OpenDirection as DashboardDateRangePickerOpenDirection, type DashboardDateRangePickerProps, DashboardDatepicker, type DashboardDatepickerProps, type DashboardDatepickerValue, DashboardFileInput, type DashboardFileInputProps, type DashboardFileInputValue, DashboardInfiniteScrollSelect, type DashboardInfiniteScrollSelectProps, DashboardInput, type DashboardInputProps, DashboardMultiSelect, type DashboardMultiSelectChipRenderer, type DashboardMultiSelectProps, DashboardSelect, DashboardSelectIconsBox, type DashboardSelectIconsBoxProps, type DashboardSelectProps, DashboardTextarea, type DashboardTextareaProps, DashboardTimePicker, type DashboardTimePickerFormat, type DashboardTimePickerProps, type DashboardTimeSettings, DataTable, type DataTableProps, DateTableFilter, DebouncedSearchInput, type DebouncedSearchInputProps, DefaultSelectTrigger, type DefaultSelectTriggerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogVisuallyHidden, DividingSubsection, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentSide, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptySectionPlaceholder, type EmptySectionPlaceholderProps, EmptyTitle, ErrorMessage, type ErrorMessageProps, ExternalLink, type ExternalLinkProps, FieldErrorMessage, type FieldErrorMessageProps, FileInputButton, type FileInputButtonProps, FormBox, Content as FormBoxContent, type FormBoxContentProps, Header as FormBoxHeader, type FormBoxHeaderProps, Root$1 as FormBoxRoot, type FormBoxRootProps, SubHeader as FormBoxSubHeader, type FormBoxSubHeaderProps, FramedIcon, type FramedIconProps, FreeTextField, type FreeTextFieldProps, HALO_ICON_STATUS, HaloIcon, type HaloIconProps, HelpTooltip, type HelpTooltipProps, IconButton, type IconButtonProps, type IconEntry, IconsDropdown, type IconsDropdownProps, Image, ImageFullScreenView, type ImageFullScreenViewProps, type ImageProps, InfoBox, type InfoBoxProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, Label, type LabelProps, LargeModal, type LargeModalProps, LearnMoreButton, type LearnMoreButtonProps, LegacyInfinitySelect, type LegacyInfinitySelectProps, LegacyInput, type LegacyInputProps, LegacyMultiSelect, type LegacyMultiSelectProps, LegacySelect, LegacySelectContent, LegacySelectGroup, LegacySelectItem, LegacySelectLabel, LegacySelectPortal, type LegacySelectProps, LegacySelectRoot, LegacySelectScrollDownButton, LegacySelectScrollUpButton, LegacySelectSeparator, type LegacySelectSize, LegacySelectTrigger, LegacySelectValue, LegacyTextarea, type LegacyTextareaProps, Link, type LinkProps, LoadingBar, type LoadingBarProps, type LucideIconEntry, Modal, ModalButton, ModalLoader, type ModalLoaderProps, type ModalProps, NumberedList, type NumberedListProps, type OptionsCardsProps, OverlayLoader, type OverlayLoaderProps, Pagination, type PaginationProps, type PaginationVariant, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, PopoverWithTooltip, type PopoverWithTooltipProps, Radio, type RadioCardOption, MemoizedRadioCardsGroup as RadioCardsGroup, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioOption, type RadioProps, type RadioSize, RadioWithBorder, RatingProgress, type RatingProgressProps, RatingRadioGroup, type RatingRadioGroupProps, RatingStars, type RatingStarsProps, type RegisterUiKitI18nOptions, ResponsiveDropdown, type ResponsiveDropdownOption, type ResponsiveDropdownProps, ResponsiveSheet, type ResponsiveSheetProps, RotateArrow, type RotateArrowProps, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, type ScrollableAreaState, SearchButton, type SearchButtonProps, SearchInput, type SearchInputProps, Section, SectionGroup, type SectionGroupItemProps, type SectionGroupLabelProps, type SectionGroupProps, type SectionProps, SectionTag, SectionTagColors, type SectionTagProps, type SelectOption, type SelectorOption, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIcon, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignatureCanvas, Skeleton, type SkeletonProps, Slider, SmallGridSingleItem, type SmallGridSingleItemProps, SortingAction, type SortingActionProps, type SortingActionValue, type SortingByVariant, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, StatusBox, type StatusBoxProps, StatusButton, type StatusButtonProps, Stepper, type StepperProps, SubSection, SubSectionSize, SvgIcon, type SvgIconProps, type SvgIconSize, Switch, SwitchBlocks, type SwitchBlocksOption, type SwitchBlocksProps, SwitchGroup, type SwitchGroupProps, type SwitchOption, type SwitchProps, TabbedSection, type TabbedSectionProps, Table, TableBody, TableCaption, TableCell, TableFilter, type TableFilterProps, TableFooter, TableHead, TableHeader, TableLoader, type TableLoaderProps, type TableLoaderRootProps, TablePlaceholder, type TablePlaceholderProps, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, ThreeDotsLoader, type ThreeDotsLoaderProps, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, type TimelineContextProps, TimelineDescription, type TimelineDescriptionProps, TimelineDot, type TimelineDotProps, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimelineTitle, type TimelineTitleProps, ToggleGroup, ToggleGroupItem, Toggles, type TogglesForwardType, type TogglesProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, TooltipRoot, type TooltipRootProps, TooltipRootWrapper, TooltipTrigger, UI_KIT_I18N_NAMESPACE, type UiKitLocale, UploadedFilesList, type UploadedFilesListProps, type UseScrollableAreaOptions, type UseScrollableAreaResult, VerticalTabs, type VerticalTabsProps, type VerticalTabsStep, VideoModal, type VideoModalProps, VideoPlayer, type VideoPlayerProps, Webcam, type WebcamProps, type WebcamRefTypes, WideButton, type WideButtonProps, addSupportEmailToMessage, badgeVariants, bookmarkTabsListVariants, bookmarkTabsTriggerVariants, buttonGroupVariants, buttonVariants, calendarClassNames, cn, copyToClipboard, createDisabledMatchers, emptyMediaVariants, formatDate, getErrorMessage, getScrollableAreaState, getSidebarState, isDayBlocked, isNumeric, labelVariants, parseDate, registerUiKitI18n, scrollToTop, sectionTagVariants, switchThumbVariants, switchVariants, tabsListVariants, tabsTriggerVariants, toCssSize, toastResponseError, toggleVariants, uiKitI18nResources, uiKitTranslations, useAbortController, useAccordionState, useCarouselContext, useClickEscape, useCombinedRef, useCopyToClipboard, useDebounce, useDebouncedFunction, useEvent, useHover, useIframeFocusTrapFallback, useIsFormTouched, useIsMobile, useIsMounted, useKeyDown, useLoadMore, useLockBodyScroll, useModalControls, useModalWithHistoryControls, useOutsideClick, usePagination, usePrevious, usePromisedModalControls, useRadioOptions, useResetAfterRequestStatus, useScreenResize, useScrollFrameIntoView, useScrollToTop, useScrollableArea, useSearchInput, useSidebar, useSidebarMenuButton, useSidebarSafe, useStickyStuck, useSwitchSectionActive, useTimeline, useTimeout, useTimeoutRef, useTimer, useUpdateToast, useValidateDates };
|