@bookers/ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +66 -1
- package/dist/index.js +4632 -4105
- package/dist/index.umd.cjs +48 -38
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -550,6 +550,19 @@ export declare interface FieldMessageProps extends React_2.HTMLAttributes<HTMLPa
|
|
|
550
550
|
|
|
551
551
|
export declare type FieldProps = React_2.HTMLAttributes<HTMLDivElement>;
|
|
552
552
|
|
|
553
|
+
export declare const FileUpload: React_2.ForwardRefExoticComponent<FileUploadProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
554
|
+
|
|
555
|
+
export declare interface FileUploadProps {
|
|
556
|
+
accept?: string;
|
|
557
|
+
multiple?: boolean;
|
|
558
|
+
onFilesChange?: (files: File[]) => void;
|
|
559
|
+
isError?: boolean;
|
|
560
|
+
disabled?: boolean;
|
|
561
|
+
className?: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export declare function formatBytes(bytes: number): string;
|
|
565
|
+
|
|
553
566
|
export { GroupingState }
|
|
554
567
|
|
|
555
568
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -580,6 +593,32 @@ export declare interface LabelProps extends React_2.LabelHTMLAttributes<HTMLLabe
|
|
|
580
593
|
required?: boolean;
|
|
581
594
|
}
|
|
582
595
|
|
|
596
|
+
export declare const MultiSelect: React_2.ForwardRefExoticComponent<MultiSelectProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
597
|
+
|
|
598
|
+
export declare interface MultiSelectOption {
|
|
599
|
+
value: string;
|
|
600
|
+
label: string;
|
|
601
|
+
disabled?: boolean;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export declare interface MultiSelectProps extends VariantProps<typeof multiSelectTriggerVariants> {
|
|
605
|
+
options: MultiSelectOption[];
|
|
606
|
+
value?: string[];
|
|
607
|
+
defaultValue?: string[];
|
|
608
|
+
onValueChange?: (value: string[]) => void;
|
|
609
|
+
placeholder?: string;
|
|
610
|
+
searchPlaceholder?: string;
|
|
611
|
+
emptyMessage?: string;
|
|
612
|
+
isError?: boolean;
|
|
613
|
+
disabled?: boolean;
|
|
614
|
+
className?: string;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export declare const multiSelectTriggerVariants: (props?: ({
|
|
618
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
619
|
+
isError?: boolean | null | undefined;
|
|
620
|
+
} & ClassProp) | undefined) => string;
|
|
621
|
+
|
|
583
622
|
export declare const NativeSelect: React_2.ForwardRefExoticComponent<NativeSelectProps & React_2.RefAttributes<HTMLSelectElement>>;
|
|
584
623
|
|
|
585
624
|
export declare interface NativeSelectProps extends Omit<React_2.SelectHTMLAttributes<HTMLSelectElement>, "size">, VariantProps<typeof nativeSelectVariants> {
|
|
@@ -590,6 +629,32 @@ export declare const nativeSelectVariants: (props?: ({
|
|
|
590
629
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
591
630
|
} & ClassProp) | undefined) => string;
|
|
592
631
|
|
|
632
|
+
export declare const NumberInput: React_2.ForwardRefExoticComponent<NumberInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
633
|
+
|
|
634
|
+
export declare interface NumberInputProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof numberInputVariants> {
|
|
635
|
+
isError?: boolean;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export declare const numberInputVariants: (props?: ({
|
|
639
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
640
|
+
} & ClassProp) | undefined) => string;
|
|
641
|
+
|
|
642
|
+
export declare const OTPInput: React_2.ForwardRefExoticComponent<OTPInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
643
|
+
|
|
644
|
+
export declare interface OTPInputProps extends VariantProps<typeof otpSlotVariants> {
|
|
645
|
+
length?: 4 | 6;
|
|
646
|
+
value?: string;
|
|
647
|
+
defaultValue?: string;
|
|
648
|
+
onChange?: (value: string) => void;
|
|
649
|
+
isError?: boolean;
|
|
650
|
+
disabled?: boolean;
|
|
651
|
+
className?: string;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export declare const otpSlotVariants: (props?: ({
|
|
655
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
656
|
+
} & ClassProp) | undefined) => string;
|
|
657
|
+
|
|
593
658
|
export declare const Pagination: {
|
|
594
659
|
({ page, totalPages, onPageChange, siblingCount, className, ...props }: PaginationProps): JSX.Element | null;
|
|
595
660
|
displayName: string;
|
|
@@ -810,7 +875,7 @@ export declare const textareaVariants: (props?: ({
|
|
|
810
875
|
export { toast }
|
|
811
876
|
|
|
812
877
|
export declare const Toaster: {
|
|
813
|
-
({ ...props }: ToasterProps): JSX.Element;
|
|
878
|
+
({ toastOptions, ...props }: ToasterProps): JSX.Element;
|
|
814
879
|
displayName: string;
|
|
815
880
|
};
|
|
816
881
|
|