@bookers/ui 0.7.0 → 0.9.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 +67 -3
- package/dist/index.js +3253 -3055
- package/dist/index.umd.cjs +39 -39
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -156,8 +156,12 @@ export declare type CalendarProps = DayPickerProps;
|
|
|
156
156
|
|
|
157
157
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
158
158
|
|
|
159
|
-
export declare interface CheckboxProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof checkboxVariants> {
|
|
159
|
+
export declare interface CheckboxProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "className">, VariantProps<typeof checkboxVariants> {
|
|
160
160
|
isError?: boolean;
|
|
161
|
+
/** Layout and positioning on the root wrapper (e.g. `mt-1`, `self-start`). */
|
|
162
|
+
className?: string;
|
|
163
|
+
/** Visual overrides on the native checkbox input. */
|
|
164
|
+
inputClassName?: string;
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
export declare const checkboxVariants: (props?: ({
|
|
@@ -476,6 +480,58 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
476
480
|
|
|
477
481
|
export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
478
482
|
|
|
483
|
+
export declare const Drawer: {
|
|
484
|
+
({ trigger, title, description, children, footer, side, size, contentClassName, dismissible, ...props }: DrawerProps): JSX.Element;
|
|
485
|
+
displayName: string;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
export declare const DrawerClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
489
|
+
|
|
490
|
+
export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
491
|
+
|
|
492
|
+
export declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof drawerVariants> {
|
|
493
|
+
dismissible?: boolean;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
497
|
+
|
|
498
|
+
export declare const DrawerFooter: {
|
|
499
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
500
|
+
displayName: string;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export declare const DrawerHeader: {
|
|
504
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
505
|
+
displayName: string;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export declare const DrawerOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
509
|
+
|
|
510
|
+
export declare const DrawerPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
|
|
511
|
+
|
|
512
|
+
export declare interface DrawerProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> {
|
|
513
|
+
trigger?: React_2.ReactElement;
|
|
514
|
+
title: string;
|
|
515
|
+
description?: React_2.ReactNode;
|
|
516
|
+
children?: React_2.ReactNode;
|
|
517
|
+
footer?: React_2.ReactNode;
|
|
518
|
+
side?: DrawerContentProps["side"];
|
|
519
|
+
size?: DrawerContentProps["size"];
|
|
520
|
+
contentClassName?: string;
|
|
521
|
+
dismissible?: boolean;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export declare const DrawerRoot: React_2.FC<DialogPrimitive.DialogProps>;
|
|
525
|
+
|
|
526
|
+
export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
527
|
+
|
|
528
|
+
export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
529
|
+
|
|
530
|
+
export declare const drawerVariants: (props?: ({
|
|
531
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
532
|
+
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
533
|
+
} & ClassProp) | undefined) => string;
|
|
534
|
+
|
|
479
535
|
export declare const DropdownMenu: {
|
|
480
536
|
({ trigger, items, side, align, sideOffset, contentClassName, ...props }: DropdownMenuProps): JSX.Element;
|
|
481
537
|
displayName: string;
|
|
@@ -737,8 +793,12 @@ export declare const radioGroupVariants: (props?: ({
|
|
|
737
793
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
738
794
|
} & ClassProp) | undefined) => string;
|
|
739
795
|
|
|
740
|
-
export declare interface RadioProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof radioVariants> {
|
|
796
|
+
export declare interface RadioProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "className">, VariantProps<typeof radioVariants> {
|
|
741
797
|
isError?: boolean;
|
|
798
|
+
/** Layout and positioning on the root wrapper (e.g. `mt-1`, `self-start`). */
|
|
799
|
+
className?: string;
|
|
800
|
+
/** Visual overrides on the native radio input. */
|
|
801
|
+
inputClassName?: string;
|
|
742
802
|
}
|
|
743
803
|
|
|
744
804
|
export declare const radioVariants: (props?: ({
|
|
@@ -814,8 +874,12 @@ export declare interface StringColumnFilterState {
|
|
|
814
874
|
|
|
815
875
|
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
816
876
|
|
|
817
|
-
export declare interface SwitchProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof switchTrackVariants> {
|
|
877
|
+
export declare interface SwitchProps extends Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "className">, VariantProps<typeof switchTrackVariants> {
|
|
818
878
|
isError?: boolean;
|
|
879
|
+
/** Layout and positioning on the root wrapper (e.g. `mt-1`, `self-start`). */
|
|
880
|
+
className?: string;
|
|
881
|
+
/** Classes on the native switch input overlay (hit area). */
|
|
882
|
+
inputClassName?: string;
|
|
819
883
|
}
|
|
820
884
|
|
|
821
885
|
export declare const switchTrackVariants: (props?: ({
|