@chekinapp/ui 0.0.89 → 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 +7172 -7405
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +395 -407
- package/dist/index.d.ts +395 -407
- package/dist/index.js +7074 -7305
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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;
|
|
@@ -2772,75 +2642,24 @@ type ResponsiveDropdownProps = {
|
|
|
2772
2642
|
};
|
|
2773
2643
|
declare function ResponsiveDropdown({ trigger, options, children, side, align, disabled, title, className, dropdownClassName, drawerClassName, }: Readonly<ResponsiveDropdownProps>): react_jsx_runtime.JSX.Element;
|
|
2774
2644
|
|
|
2775
|
-
type
|
|
2776
|
-
|
|
2777
|
-
variant?: 'airbnb' | 'default';
|
|
2778
|
-
id: string;
|
|
2779
|
-
label: string;
|
|
2645
|
+
type DashboardInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2646
|
+
label?: string | React$1.ReactNode;
|
|
2780
2647
|
topLabel?: string;
|
|
2781
|
-
labelId: string;
|
|
2782
|
-
valueId?: string;
|
|
2783
|
-
helperTextId?: string;
|
|
2784
|
-
errorId?: string;
|
|
2785
|
-
labelText?: React$1.ReactNode;
|
|
2786
|
-
valueText?: string;
|
|
2787
|
-
placeholder?: string;
|
|
2788
|
-
disabled?: boolean;
|
|
2789
|
-
error?: boolean | string;
|
|
2790
|
-
loading?: boolean;
|
|
2791
|
-
optional?: boolean | string;
|
|
2792
2648
|
tooltip?: React$1.ReactNode;
|
|
2793
|
-
describedBy?: string;
|
|
2794
|
-
className?: string;
|
|
2795
|
-
contentClassName?: string;
|
|
2796
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2797
|
-
forceFloatingLabel?: boolean;
|
|
2798
|
-
forceLabelText?: boolean;
|
|
2799
|
-
hideErrorMessage?: boolean;
|
|
2800
|
-
children?: React$1.ReactNode;
|
|
2801
|
-
onClick?: () => void;
|
|
2802
|
-
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
2803
|
-
} & Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, 'children' | 'className' | 'disabled' | 'id' | 'onClick' | 'onKeyDown'>;
|
|
2804
|
-
declare const FieldTrigger: React$1.ForwardRefExoticComponent<{
|
|
2805
|
-
as?: "button" | "div";
|
|
2806
|
-
variant?: "airbnb" | "default";
|
|
2807
|
-
id: string;
|
|
2808
|
-
label: string;
|
|
2809
|
-
topLabel?: string;
|
|
2810
|
-
labelId: string;
|
|
2811
|
-
valueId?: string;
|
|
2812
|
-
helperTextId?: string;
|
|
2813
|
-
errorId?: string;
|
|
2814
|
-
labelText?: React$1.ReactNode;
|
|
2815
|
-
valueText?: string;
|
|
2816
|
-
placeholder?: string;
|
|
2817
|
-
disabled?: boolean;
|
|
2818
|
-
error?: boolean | string;
|
|
2819
|
-
loading?: boolean;
|
|
2820
2649
|
optional?: boolean | string;
|
|
2821
|
-
|
|
2822
|
-
describedBy?: string;
|
|
2823
|
-
className?: string;
|
|
2824
|
-
contentClassName?: string;
|
|
2825
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2826
|
-
forceFloatingLabel?: boolean;
|
|
2827
|
-
forceLabelText?: boolean;
|
|
2828
|
-
hideErrorMessage?: boolean;
|
|
2829
|
-
children?: React$1.ReactNode;
|
|
2830
|
-
onClick?: () => void;
|
|
2831
|
-
onKeyDown?: React$1.KeyboardEventHandler<HTMLButtonElement | HTMLDivElement>;
|
|
2832
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "className" | "id" | "children" | "onKeyDown" | "onClick" | "disabled"> & React$1.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
2833
|
-
|
|
2834
|
-
type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2835
|
-
variant?: 'airbnb' | 'default';
|
|
2836
|
-
label?: string;
|
|
2837
|
-
topLabel?: string;
|
|
2838
|
-
helperText?: string;
|
|
2839
|
-
error?: string;
|
|
2650
|
+
error?: unknown;
|
|
2840
2651
|
invalid?: boolean;
|
|
2841
2652
|
loading?: boolean;
|
|
2842
|
-
|
|
2843
|
-
|
|
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;
|
|
2844
2663
|
wrapperClassName?: string;
|
|
2845
2664
|
fieldClassName?: string;
|
|
2846
2665
|
contentClassName?: string;
|
|
@@ -2848,16 +2667,24 @@ type AirbnbInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
2848
2667
|
trailingAdornment?: React$1.ReactNode;
|
|
2849
2668
|
renderErrorMessage?: boolean;
|
|
2850
2669
|
};
|
|
2851
|
-
declare const
|
|
2852
|
-
|
|
2853
|
-
label?: string;
|
|
2670
|
+
declare const DashboardInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2671
|
+
label?: string | React$1.ReactNode;
|
|
2854
2672
|
topLabel?: string;
|
|
2855
|
-
|
|
2856
|
-
|
|
2673
|
+
tooltip?: React$1.ReactNode;
|
|
2674
|
+
optional?: boolean | string;
|
|
2675
|
+
error?: unknown;
|
|
2857
2676
|
invalid?: boolean;
|
|
2858
2677
|
loading?: boolean;
|
|
2859
|
-
|
|
2860
|
-
|
|
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;
|
|
2861
2688
|
wrapperClassName?: string;
|
|
2862
2689
|
fieldClassName?: string;
|
|
2863
2690
|
contentClassName?: string;
|
|
@@ -2866,74 +2693,18 @@ declare const AirbnbInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAt
|
|
|
2866
2693
|
renderErrorMessage?: boolean;
|
|
2867
2694
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
2868
2695
|
|
|
2869
|
-
type PhoneFieldOption = {
|
|
2870
|
-
value: string;
|
|
2871
|
-
label: string;
|
|
2872
|
-
disabled?: boolean;
|
|
2873
|
-
};
|
|
2874
|
-
type PhoneFieldValue = {
|
|
2875
|
-
code: string;
|
|
2876
|
-
number: string;
|
|
2877
|
-
};
|
|
2878
|
-
type PhoneFieldProps = {
|
|
2879
|
-
variant?: 'default' | 'airbnb';
|
|
2880
|
-
label: string;
|
|
2881
|
-
topLabel?: string;
|
|
2882
|
-
value?: PhoneFieldValue | null;
|
|
2883
|
-
onChange: (value: PhoneFieldValue) => void;
|
|
2884
|
-
onBlur?: React$1.FocusEventHandler<HTMLInputElement>;
|
|
2885
|
-
options: PhoneFieldOption[];
|
|
2886
|
-
placeholder?: string;
|
|
2887
|
-
disabled?: boolean;
|
|
2888
|
-
codeReadOnly?: boolean;
|
|
2889
|
-
error?: string;
|
|
2890
|
-
invalid?: boolean;
|
|
2891
|
-
loading?: boolean;
|
|
2892
|
-
optional?: boolean | string;
|
|
2893
|
-
tooltip?: React$1.ReactNode;
|
|
2894
|
-
className?: string;
|
|
2895
|
-
name?: string;
|
|
2896
|
-
codeName?: string;
|
|
2897
|
-
numberName?: string;
|
|
2898
|
-
mobileTitle?: string;
|
|
2899
|
-
codePlaceholder?: string;
|
|
2900
|
-
};
|
|
2901
|
-
declare const PhoneField: React$1.ForwardRefExoticComponent<PhoneFieldProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2902
|
-
|
|
2903
2696
|
type SelectValue$1 = string | number;
|
|
2904
|
-
type
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
variant: 'default' | 'airbnb';
|
|
2908
|
-
label: string;
|
|
2909
|
-
topLabel?: string;
|
|
2910
|
-
helperText: string;
|
|
2911
|
-
value?: SelectOption<T, V, L> | null;
|
|
2912
|
-
valueLabel?: string;
|
|
2913
|
-
disabled?: boolean;
|
|
2914
|
-
loading?: boolean;
|
|
2915
|
-
optional?: boolean | string;
|
|
2916
|
-
tooltip?: React$1.ReactNode;
|
|
2917
|
-
error?: string;
|
|
2918
|
-
invalid?: boolean;
|
|
2919
|
-
listboxId: string;
|
|
2920
|
-
describedBy?: string;
|
|
2921
|
-
triggerRef: React$1.Ref<HTMLButtonElement>;
|
|
2922
|
-
onClick: () => void;
|
|
2923
|
-
onKeyDown: React$1.KeyboardEventHandler<HTMLButtonElement>;
|
|
2924
|
-
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
2925
|
-
};
|
|
2926
|
-
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> = {
|
|
2927
2700
|
options?: SelectOption<T, V, L>[];
|
|
2928
2701
|
value?: SelectOption<T, V, L> | null;
|
|
2929
2702
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
2930
2703
|
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
2931
|
-
variant?: 'default' | 'airbnb';
|
|
2932
2704
|
label: string;
|
|
2933
2705
|
topLabel?: string;
|
|
2934
2706
|
placeholder?: string;
|
|
2935
2707
|
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
2936
|
-
renderTrigger?: (props: SelectRenderTriggerProps<T, V, L>) => React$1.ReactNode;
|
|
2937
2708
|
disabled?: boolean;
|
|
2938
2709
|
loading?: boolean;
|
|
2939
2710
|
optional?: boolean | string;
|
|
@@ -2944,111 +2715,22 @@ type AirbnbSelectProps<T = undefined, V extends SelectValue$1 = string, L extend
|
|
|
2944
2715
|
className?: string;
|
|
2945
2716
|
menuClassName?: string;
|
|
2946
2717
|
dropdownClassName?: string;
|
|
2947
|
-
|
|
2948
|
-
mobileTitle?: string;
|
|
2718
|
+
drawerClassName?: string;
|
|
2949
2719
|
name?: string;
|
|
2720
|
+
width?: number | string;
|
|
2950
2721
|
noOptionsMessage?: () => string | undefined;
|
|
2722
|
+
searchable?: boolean;
|
|
2723
|
+
searchPlaceholder?: string;
|
|
2724
|
+
filterOption?: DashboardSelectFilterOption<T, V, L>;
|
|
2725
|
+
helperText?: string;
|
|
2951
2726
|
};
|
|
2952
|
-
|
|
2953
|
-
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> & {
|
|
2954
2728
|
ref?: React$1.Ref<HTMLButtonElement>;
|
|
2955
2729
|
}) => React$1.ReactElement;
|
|
2730
|
+
declare const DashboardSelect: DashboardSelectComponent;
|
|
2956
2731
|
|
|
2957
|
-
type
|
|
2958
|
-
|
|
2959
|
-
wrapperClassName?: string;
|
|
2960
|
-
};
|
|
2961
|
-
declare const AirbnbSearchInput: React$1.ForwardRefExoticComponent<Omit<AirbnbSearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
2962
|
-
|
|
2963
|
-
type DashboardInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2964
|
-
label?: string | React$1.ReactNode;
|
|
2965
|
-
topLabel?: string;
|
|
2966
|
-
tooltip?: React$1.ReactNode;
|
|
2967
|
-
optional?: boolean | string;
|
|
2968
|
-
error?: unknown;
|
|
2969
|
-
invalid?: boolean;
|
|
2970
|
-
loading?: boolean;
|
|
2971
|
-
empty?: boolean;
|
|
2972
|
-
helperText?: string;
|
|
2973
|
-
footer?: string | React$1.ReactNode;
|
|
2974
|
-
width?: number | string;
|
|
2975
|
-
leftIcon?: React$1.ReactNode;
|
|
2976
|
-
sign?: string | React$1.ReactNode;
|
|
2977
|
-
onReset?: () => void;
|
|
2978
|
-
showNumberButtons?: boolean;
|
|
2979
|
-
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2980
|
-
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
2981
|
-
wrapperClassName?: string;
|
|
2982
|
-
fieldClassName?: string;
|
|
2983
|
-
contentClassName?: string;
|
|
2984
|
-
inputClassName?: string;
|
|
2985
|
-
trailingAdornment?: React$1.ReactNode;
|
|
2986
|
-
renderErrorMessage?: boolean;
|
|
2987
|
-
};
|
|
2988
|
-
declare const DashboardInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
2989
|
-
label?: string | React$1.ReactNode;
|
|
2990
|
-
topLabel?: string;
|
|
2991
|
-
tooltip?: React$1.ReactNode;
|
|
2992
|
-
optional?: boolean | string;
|
|
2993
|
-
error?: unknown;
|
|
2994
|
-
invalid?: boolean;
|
|
2995
|
-
loading?: boolean;
|
|
2996
|
-
empty?: boolean;
|
|
2997
|
-
helperText?: string;
|
|
2998
|
-
footer?: string | React$1.ReactNode;
|
|
2999
|
-
width?: number | string;
|
|
3000
|
-
leftIcon?: React$1.ReactNode;
|
|
3001
|
-
sign?: string | React$1.ReactNode;
|
|
3002
|
-
onReset?: () => void;
|
|
3003
|
-
showNumberButtons?: boolean;
|
|
3004
|
-
onIncrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
3005
|
-
onDecrement?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
3006
|
-
wrapperClassName?: string;
|
|
3007
|
-
fieldClassName?: string;
|
|
3008
|
-
contentClassName?: string;
|
|
3009
|
-
inputClassName?: string;
|
|
3010
|
-
trailingAdornment?: React$1.ReactNode;
|
|
3011
|
-
renderErrorMessage?: boolean;
|
|
3012
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3013
|
-
|
|
3014
|
-
type SelectValue = string | number;
|
|
3015
|
-
type DashboardSelectFilterOption<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = (option: SelectOption<T, V, L>, input: string) => boolean;
|
|
3016
|
-
|
|
3017
|
-
type DashboardSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = {
|
|
3018
|
-
options?: SelectOption<T, V, L>[];
|
|
3019
|
-
value?: SelectOption<T, V, L> | null;
|
|
3020
|
-
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3021
|
-
onBlur?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
3022
|
-
label: string;
|
|
3023
|
-
topLabel?: string;
|
|
3024
|
-
placeholder?: string;
|
|
3025
|
-
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3026
|
-
disabled?: boolean;
|
|
3027
|
-
loading?: boolean;
|
|
3028
|
-
optional?: boolean | string;
|
|
3029
|
-
tooltip?: React$1.ReactNode;
|
|
3030
|
-
error?: string;
|
|
3031
|
-
invalid?: boolean;
|
|
3032
|
-
hideErrorMessage?: boolean;
|
|
3033
|
-
className?: string;
|
|
3034
|
-
menuClassName?: string;
|
|
3035
|
-
dropdownClassName?: string;
|
|
3036
|
-
drawerClassName?: string;
|
|
3037
|
-
name?: string;
|
|
3038
|
-
width?: number | string;
|
|
3039
|
-
noOptionsMessage?: () => string | undefined;
|
|
3040
|
-
searchable?: boolean;
|
|
3041
|
-
searchPlaceholder?: string;
|
|
3042
|
-
filterOption?: DashboardSelectFilterOption<T, V, L>;
|
|
3043
|
-
helperText?: string;
|
|
3044
|
-
};
|
|
3045
|
-
type DashboardSelectComponent = <T = undefined, V extends SelectValue = string, L extends ReactNode = string>(props: DashboardSelectProps<T, V, L> & {
|
|
3046
|
-
ref?: React$1.Ref<HTMLButtonElement>;
|
|
3047
|
-
}) => React$1.ReactElement;
|
|
3048
|
-
declare const DashboardSelect: DashboardSelectComponent;
|
|
3049
|
-
|
|
3050
|
-
type DashboardMultiSelectChipRenderer<T, V extends SelectValue, L extends ReactNode> = (option: SelectOption<T, V, L>, onRemove: () => void) => React$1.ReactNode;
|
|
3051
|
-
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> = {
|
|
3052
2734
|
options?: SelectOption<T, V, L>[];
|
|
3053
2735
|
value?: SelectOption<T, V, L>[] | null;
|
|
3054
2736
|
onChange: (value: SelectOption<T, V, L>[]) => void;
|
|
@@ -3080,17 +2762,17 @@ type DashboardMultiSelectProps<T = undefined, V extends SelectValue = string, L
|
|
|
3080
2762
|
formatCreateLabel?: (input: string) => React$1.ReactNode;
|
|
3081
2763
|
isValidNewOption?: (input: string, selected: SelectOption<T, V, L>[], options: SelectOption<T, V, L>[]) => boolean;
|
|
3082
2764
|
};
|
|
3083
|
-
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> & {
|
|
3084
2766
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
3085
2767
|
}) => React$1.ReactElement;
|
|
3086
2768
|
declare const DashboardMultiSelect: DashboardMultiSelectComponent;
|
|
3087
2769
|
|
|
3088
|
-
type DashboardCreatableMultiSelectProps<T = undefined, V extends SelectValue = string, L extends ReactNode = string> = Omit<DashboardMultiSelectProps<T, V, L>, 'isCreatable'>;
|
|
3089
|
-
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> & {
|
|
3090
2772
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
3091
2773
|
}) => React$1.ReactElement;
|
|
3092
2774
|
|
|
3093
|
-
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> = {
|
|
3094
2776
|
options?: SelectOption<T, V, L>[];
|
|
3095
2777
|
value?: SelectOption<T, V, L> | null;
|
|
3096
2778
|
onChange: (option: SelectOption<T, V, L>) => void;
|
|
@@ -3127,7 +2809,7 @@ type DashboardInfiniteScrollSelectProps<T = undefined, V extends SelectValue = s
|
|
|
3127
2809
|
overscan?: number;
|
|
3128
2810
|
loadMoreThreshold?: number;
|
|
3129
2811
|
};
|
|
3130
|
-
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> & {
|
|
3131
2813
|
ref?: React$1.Ref<HTMLButtonElement>;
|
|
3132
2814
|
}) => React$1.ReactElement;
|
|
3133
2815
|
declare const DashboardInfiniteScrollSelect: DashboardInfiniteScrollSelectComponent;
|
|
@@ -3370,43 +3052,6 @@ type DashboardSelectIconsBoxProps = {
|
|
|
3370
3052
|
};
|
|
3371
3053
|
declare function DashboardSelectIconsBox({ children, icons, renderIcon, onSelect, columns, iconsColor, isOpen: controlledOpen, defaultOpen, onOpenChange, position, className, boxClassName, }: DashboardSelectIconsBoxProps): react_jsx_runtime.JSX.Element;
|
|
3372
3054
|
|
|
3373
|
-
type SearchableSelectValue = string | number;
|
|
3374
|
-
type SearchableSelectProps<T = undefined, V extends SearchableSelectValue = string, L extends ReactNode = string> = {
|
|
3375
|
-
options: SelectOption<T, V, L>[];
|
|
3376
|
-
value?: SelectOption<T, V, L> | null;
|
|
3377
|
-
onChange: (option: SelectOption<T, V, L>) => void;
|
|
3378
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
3379
|
-
onOpenChange?: (open: boolean) => void;
|
|
3380
|
-
searchValue?: string;
|
|
3381
|
-
onSearchChange?: (value: string) => void;
|
|
3382
|
-
filterOption?: ((option: SelectOption<T, V, L>, searchValue: string) => boolean) | null;
|
|
3383
|
-
loading?: boolean;
|
|
3384
|
-
hasNextPage?: boolean;
|
|
3385
|
-
onLoadMore?: () => void;
|
|
3386
|
-
variant?: 'default' | 'airbnb';
|
|
3387
|
-
label: string;
|
|
3388
|
-
topLabel?: string;
|
|
3389
|
-
placeholder?: string;
|
|
3390
|
-
searchPlaceholder?: string;
|
|
3391
|
-
mobileTitle?: string;
|
|
3392
|
-
getValueLabel?: (option: SelectOption<T, V, L>) => string;
|
|
3393
|
-
disabled?: boolean;
|
|
3394
|
-
error?: string;
|
|
3395
|
-
invalid?: boolean;
|
|
3396
|
-
optional?: boolean | string;
|
|
3397
|
-
tooltip?: ReactNode;
|
|
3398
|
-
hideErrorMessage?: boolean;
|
|
3399
|
-
name?: string;
|
|
3400
|
-
className?: string;
|
|
3401
|
-
dropdownClassName?: string;
|
|
3402
|
-
menuClassName?: string;
|
|
3403
|
-
noOptionsMessage?: () => string | undefined;
|
|
3404
|
-
loadingMessage?: () => string | undefined;
|
|
3405
|
-
};
|
|
3406
|
-
|
|
3407
|
-
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;
|
|
3408
|
-
declare const SearchableSelect: SearchableSelectComponent;
|
|
3409
|
-
|
|
3410
3055
|
declare function copyToClipboard(value: string | number): void;
|
|
3411
3056
|
|
|
3412
3057
|
declare function scrollToTop(value?: number, behavior?: 'auto' | 'smooth'): void;
|
|
@@ -3626,7 +3271,11 @@ type KeyDownOptions = {
|
|
|
3626
3271
|
shiftKey?: boolean;
|
|
3627
3272
|
altKey?: boolean;
|
|
3628
3273
|
};
|
|
3629
|
-
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;
|
|
3630
3279
|
|
|
3631
3280
|
declare function useIframeFocusTrapFallback(contentRef: React$1.RefObject<HTMLDivElement | null>, onKeyDown?: React$1.KeyboardEventHandler<HTMLDivElement>): (event: React$1.KeyboardEvent<HTMLDivElement>) => void;
|
|
3632
3281
|
|
|
@@ -3689,4 +3338,343 @@ declare function toastResponseError(error: unknown, options?: CustomToastOptions
|
|
|
3689
3338
|
|
|
3690
3339
|
declare function getErrorMessage(error?: any): any;
|
|
3691
3340
|
|
|
3692
|
-
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 };
|