@pos-360/horizon 0.28.0 → 0.29.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/{chunk-SJJ6KXCU.mjs → chunk-PXBJSQUY.mjs} +491 -18
- package/dist/chunk-PXBJSQUY.mjs.map +1 -0
- package/dist/{chunk-BKMHL4FM.js → chunk-TINY76JI.js} +491 -16
- package/dist/chunk-TINY76JI.js.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +112 -104
- package/dist/index.mjs +1 -1
- package/dist/primitives.d.mts +171 -119
- package/dist/primitives.d.ts +171 -119
- package/dist/primitives.js +112 -104
- package/dist/primitives.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BKMHL4FM.js.map +0 -1
- package/dist/chunk-SJJ6KXCU.mjs.map +0 -1
package/dist/primitives.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -17,80 +18,80 @@ export { T as Tooltip, a as TooltipProps, b as TooltipVariant } from './tooltip-
|
|
|
17
18
|
declare const badgeVariants: (props?: ({
|
|
18
19
|
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "purple" | "purpleOutline" | null | undefined;
|
|
19
20
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
21
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
21
22
|
}
|
|
22
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
23
24
|
|
|
24
25
|
declare const buttonVariants: (props?: ({
|
|
25
26
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
26
27
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
27
28
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
28
|
-
interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
29
|
+
interface BaseButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
29
30
|
asChild?: boolean;
|
|
30
31
|
}
|
|
31
32
|
type ButtonProps = BaseButtonProps & ({
|
|
32
|
-
leadingDecorator?: React.ReactNode;
|
|
33
|
+
leadingDecorator?: React$1.ReactNode;
|
|
33
34
|
trailingDecorator?: never;
|
|
34
35
|
} | {
|
|
35
36
|
leadingDecorator?: never;
|
|
36
|
-
trailingDecorator?: React.ReactNode;
|
|
37
|
+
trailingDecorator?: React$1.ReactNode;
|
|
37
38
|
} | {
|
|
38
39
|
leadingDecorator?: never;
|
|
39
40
|
trailingDecorator?: never;
|
|
40
41
|
});
|
|
41
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
42
43
|
|
|
43
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
50
|
|
|
50
|
-
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
51
|
-
indicatorIcon?: React.ReactNode;
|
|
51
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
52
|
+
indicatorIcon?: React$1.ReactNode;
|
|
52
53
|
}
|
|
53
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
55
|
|
|
55
|
-
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
56
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
|
-
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
58
|
-
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
57
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
59
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
61
62
|
declare const DialogHeader: {
|
|
62
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
63
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
63
64
|
displayName: string;
|
|
64
65
|
};
|
|
65
66
|
declare const DialogFooter: {
|
|
66
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
67
68
|
displayName: string;
|
|
68
69
|
};
|
|
69
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
70
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
70
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
71
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
71
72
|
|
|
72
|
-
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
73
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
-
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
76
|
-
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
77
|
-
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
-
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
73
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
74
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
75
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
77
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
78
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
79
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
79
80
|
inset?: boolean;
|
|
80
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
-
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
81
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
84
85
|
inset?: boolean;
|
|
85
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
86
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
89
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
89
90
|
inset?: boolean;
|
|
90
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
92
93
|
declare const DropdownMenuShortcut: {
|
|
93
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
94
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
94
95
|
displayName: string;
|
|
95
96
|
};
|
|
96
97
|
|
|
@@ -100,9 +101,9 @@ declare const labelVariants: (props?: ({
|
|
|
100
101
|
weight?: "bold" | "medium" | "semibold" | null | undefined;
|
|
101
102
|
required?: boolean | null | undefined;
|
|
102
103
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
-
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
104
|
+
interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
104
105
|
}
|
|
105
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
106
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
106
107
|
|
|
107
108
|
interface FormContextValue {
|
|
108
109
|
errors: Record<string, string | undefined>;
|
|
@@ -119,65 +120,65 @@ interface FormFieldContextValue {
|
|
|
119
120
|
id: string;
|
|
120
121
|
}
|
|
121
122
|
declare function useFormFieldContext(): FormFieldContextValue;
|
|
122
|
-
interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
|
|
123
|
-
onFormSubmit?: (e: React.FormEvent<HTMLFormElement>, helpers: {
|
|
123
|
+
interface FormProps extends Omit<React$1.FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
|
|
124
|
+
onFormSubmit?: (e: React$1.FormEvent<HTMLFormElement>, helpers: {
|
|
124
125
|
setError: (name: string, message: string) => void;
|
|
125
126
|
clearErrors: () => void;
|
|
126
127
|
setSubmitting: (value: boolean) => void;
|
|
127
128
|
}) => void | Promise<void>;
|
|
128
129
|
}
|
|
129
|
-
declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
|
|
130
|
-
interface FormFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
130
|
+
declare const Form: React$1.ForwardRefExoticComponent<FormProps & React$1.RefAttributes<HTMLFormElement>>;
|
|
131
|
+
interface FormFieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
131
132
|
name: string;
|
|
132
133
|
}
|
|
133
|
-
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
134
|
-
interface FormLabelProps extends React.ComponentPropsWithoutRef<typeof Label> {
|
|
134
|
+
declare const FormField: React$1.ForwardRefExoticComponent<FormFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof Label> {
|
|
135
136
|
}
|
|
136
|
-
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
137
|
-
interface FormControlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
138
|
-
children: React.ReactElement;
|
|
137
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
138
|
+
interface FormControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
139
|
+
children: React$1.ReactElement;
|
|
139
140
|
}
|
|
140
|
-
declare const FormControl: React.ForwardRefExoticComponent<FormControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
141
|
-
interface FormDescriptionProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
141
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<FormControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
142
|
+
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
142
143
|
}
|
|
143
|
-
declare const FormDescription: React.ForwardRefExoticComponent<FormDescriptionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
144
|
-
interface FormMessageProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
144
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
145
|
+
interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
145
146
|
error?: string;
|
|
146
147
|
}
|
|
147
|
-
declare const FormMessage: React.ForwardRefExoticComponent<FormMessageProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
148
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
148
149
|
|
|
149
|
-
declare const Popover: React.FC<React.ComponentProps<typeof PopoverPrimitive.Root>>;
|
|
150
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
151
|
-
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
150
|
+
declare const Popover: React$1.FC<React$1.ComponentProps<typeof PopoverPrimitive.Root>>;
|
|
151
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
152
|
+
declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
154
|
|
|
154
|
-
declare const Select: React.FC<React.ComponentProps<typeof SelectPrimitive.Root>>;
|
|
155
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
156
|
-
interface SelectValueProps extends Omit<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>, "children"> {
|
|
155
|
+
declare const Select: React$1.FC<React$1.ComponentProps<typeof SelectPrimitive.Root>>;
|
|
156
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
157
|
+
interface SelectValueProps extends Omit<React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Value>, "children"> {
|
|
157
158
|
/**
|
|
158
159
|
* The label to display for the current value.
|
|
159
160
|
* Pass `options.find(o => o.value === value)?.label` here.
|
|
160
161
|
* When undefined (no value selected), `placeholder` is shown instead.
|
|
161
162
|
*/
|
|
162
|
-
children?: React.ReactNode;
|
|
163
|
+
children?: React$1.ReactNode;
|
|
163
164
|
}
|
|
164
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
165
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
166
|
-
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
167
|
-
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
168
|
-
interface SelectContentProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
|
|
165
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
166
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
167
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
169
|
+
interface SelectContentProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
|
|
169
170
|
searchable?: boolean;
|
|
170
171
|
searchPlaceholder?: string;
|
|
171
172
|
}
|
|
172
|
-
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
173
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
174
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
175
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
173
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
174
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
175
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
177
|
|
|
177
178
|
declare const separatorVariants: (props?: ({
|
|
178
179
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
179
180
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
180
|
-
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof separatorVariants> {
|
|
181
|
+
interface SeparatorProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof separatorVariants> {
|
|
181
182
|
decorative?: boolean;
|
|
182
183
|
}
|
|
183
184
|
declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
@@ -238,7 +239,7 @@ interface TableContextValue {
|
|
|
238
239
|
interface ColumnDef<T = any> {
|
|
239
240
|
key: string;
|
|
240
241
|
label: string;
|
|
241
|
-
cell: (row: T) => React.ReactNode;
|
|
242
|
+
cell: (row: T) => React$1.ReactNode;
|
|
242
243
|
stickyXHeader?: boolean;
|
|
243
244
|
/** Used by `useColumnVisibility` to set initial visible columns on desktop */
|
|
244
245
|
defaultVisible?: boolean;
|
|
@@ -252,7 +253,7 @@ interface ColumnDef<T = any> {
|
|
|
252
253
|
placeholder?: string;
|
|
253
254
|
leadingDecorator?: string;
|
|
254
255
|
label?: string;
|
|
255
|
-
renderPreview?: (value: string) => React.ReactNode;
|
|
256
|
+
renderPreview?: (value: string) => React$1.ReactNode;
|
|
256
257
|
} | {
|
|
257
258
|
kind: "select";
|
|
258
259
|
options: {
|
|
@@ -270,7 +271,7 @@ interface ColumnDef<T = any> {
|
|
|
270
271
|
label?: string;
|
|
271
272
|
};
|
|
272
273
|
}
|
|
273
|
-
interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
274
|
+
interface TableProps<T = any> extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
274
275
|
actionColumns?: ActionColumn[];
|
|
275
276
|
onRowDelete?: (row: T) => void;
|
|
276
277
|
selectionMode?: SelectionMode;
|
|
@@ -291,18 +292,18 @@ interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
291
292
|
rounded?: boolean;
|
|
292
293
|
}
|
|
293
294
|
declare const Table: <T = any>(props: TableProps<T> & {
|
|
294
|
-
ref?: React.Ref<HTMLTableElement>;
|
|
295
|
-
}) => React.ReactElement | null;
|
|
296
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
297
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
298
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
299
|
-
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
295
|
+
ref?: React$1.Ref<HTMLTableElement>;
|
|
296
|
+
}) => React$1.ReactElement | null;
|
|
297
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
298
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
299
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
300
|
+
interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
|
|
300
301
|
rowId?: string;
|
|
301
302
|
rowData?: any;
|
|
302
303
|
}
|
|
303
|
-
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
304
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
305
|
-
interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
304
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
305
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
306
|
+
interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
|
|
306
307
|
/**
|
|
307
308
|
* "default" — standard p-4 padding for text content.
|
|
308
309
|
* "embed" — compact p-1.5 padding for cells that contain interactive
|
|
@@ -310,18 +311,18 @@ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
|
310
311
|
*/
|
|
311
312
|
variant?: "default" | "embed";
|
|
312
313
|
}
|
|
313
|
-
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
314
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
314
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
315
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
315
316
|
interface TableSelectAllProps {
|
|
316
317
|
className?: string;
|
|
317
318
|
}
|
|
318
|
-
declare const TableSelectAll: React.ForwardRefExoticComponent<TableSelectAllProps & React.RefAttributes<HTMLDivElement>>;
|
|
319
|
+
declare const TableSelectAll: React$1.ForwardRefExoticComponent<TableSelectAllProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
319
320
|
interface TableRowCheckboxProps {
|
|
320
321
|
rowId?: string;
|
|
321
322
|
rowData?: any;
|
|
322
323
|
className?: string;
|
|
323
324
|
}
|
|
324
|
-
declare const TableRowCheckbox: React.ForwardRefExoticComponent<TableRowCheckboxProps & React.RefAttributes<HTMLDivElement>>;
|
|
325
|
+
declare const TableRowCheckbox: React$1.ForwardRefExoticComponent<TableRowCheckboxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
325
326
|
declare const useTableSelection: () => TableContextValue;
|
|
326
327
|
|
|
327
328
|
interface UseColumnVisibilityOptions {
|
|
@@ -337,30 +338,30 @@ interface ColumnSelectionProps<T = any> {
|
|
|
337
338
|
visibleColumns: string[];
|
|
338
339
|
onVisibleColumnsChange: (cols: string[]) => void;
|
|
339
340
|
triggerLabel?: string;
|
|
340
|
-
trigger?: React.ReactNode;
|
|
341
|
+
trigger?: React$1.ReactNode;
|
|
341
342
|
}
|
|
342
343
|
declare function ColumnSelection<T = any>({ columns, visibleColumns, onVisibleColumnsChange, triggerLabel, trigger, }: ColumnSelectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
343
344
|
|
|
344
|
-
interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
345
|
+
interface TabsProps extends React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
345
346
|
defaultValue?: string;
|
|
346
347
|
value?: string;
|
|
347
348
|
onValueChange?: (value: string) => void;
|
|
348
349
|
}
|
|
349
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
350
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
350
351
|
type TabsVariant = "pill" | "underline";
|
|
351
|
-
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
352
|
+
interface TabsListProps extends React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
352
353
|
variant?: TabsVariant;
|
|
353
354
|
}
|
|
354
|
-
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
355
|
-
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
|
|
356
|
-
icon?: React.ReactNode;
|
|
355
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<TabsListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
356
|
+
interface TabsTriggerProps extends React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
|
|
357
|
+
icon?: React$1.ReactNode;
|
|
357
358
|
}
|
|
358
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
359
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
359
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
360
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
360
361
|
|
|
361
|
-
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
362
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
362
363
|
}
|
|
363
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
364
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
364
365
|
|
|
365
366
|
declare const toggleGroupVariants: (props?: ({
|
|
366
367
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
@@ -373,11 +374,11 @@ type ToggleRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
|
373
374
|
interface ToggleOption {
|
|
374
375
|
value: string;
|
|
375
376
|
label?: string;
|
|
376
|
-
icon?: React.ReactNode;
|
|
377
|
+
icon?: React$1.ReactNode;
|
|
377
378
|
disabled?: boolean;
|
|
378
379
|
ariaLabel?: string;
|
|
379
380
|
}
|
|
380
|
-
interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, "onChange" | "onValueChange" | "type" | "value" | "defaultValue">, VariantProps<typeof toggleGroupVariants> {
|
|
381
|
+
interface ToggleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, "onChange" | "onValueChange" | "type" | "value" | "defaultValue">, VariantProps<typeof toggleGroupVariants> {
|
|
381
382
|
options: ToggleOption[];
|
|
382
383
|
value?: string[];
|
|
383
384
|
onChange?: (value: string[]) => void;
|
|
@@ -398,7 +399,7 @@ interface SegmentedControlOption {
|
|
|
398
399
|
value: string;
|
|
399
400
|
disabled?: boolean;
|
|
400
401
|
}
|
|
401
|
-
interface SegmentedControlProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "onChange" | "onValueChange" | "value">, VariantProps<typeof segmentedControlVariants> {
|
|
402
|
+
interface SegmentedControlProps extends Omit<React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "onChange" | "onValueChange" | "value">, VariantProps<typeof segmentedControlVariants> {
|
|
402
403
|
options: SegmentedControlOption[];
|
|
403
404
|
value?: string;
|
|
404
405
|
onChange?: (value: string) => void;
|
|
@@ -415,11 +416,11 @@ declare const switchThumbVariants: (props?: ({
|
|
|
415
416
|
declare const switchLabelVariants: (props?: ({
|
|
416
417
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
417
418
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
418
|
-
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
|
|
419
|
+
interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
|
|
419
420
|
label?: string;
|
|
420
421
|
labelPosition?: "left" | "right";
|
|
421
422
|
}
|
|
422
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
423
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
423
424
|
|
|
424
425
|
declare const headingVariants: (props?: ({
|
|
425
426
|
level?: 1 | 3 | 4 | 2 | 5 | 6 | null | undefined;
|
|
@@ -427,11 +428,11 @@ declare const headingVariants: (props?: ({
|
|
|
427
428
|
align?: "left" | "right" | "center" | null | undefined;
|
|
428
429
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
429
430
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
430
|
-
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, Omit<VariantProps<typeof headingVariants>, "level"> {
|
|
431
|
+
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, Omit<VariantProps<typeof headingVariants>, "level"> {
|
|
431
432
|
level?: HeadingLevel;
|
|
432
433
|
as?: `h${HeadingLevel}`;
|
|
433
434
|
}
|
|
434
|
-
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
435
|
+
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
435
436
|
|
|
436
437
|
declare const textVariants: (props?: ({
|
|
437
438
|
size?: "sm" | "lg" | "base" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
@@ -439,28 +440,28 @@ declare const textVariants: (props?: ({
|
|
|
439
440
|
align?: "left" | "right" | "center" | "justify" | null | undefined;
|
|
440
441
|
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
441
442
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
442
|
-
interface TextProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof textVariants> {
|
|
443
|
+
interface TextProps extends Omit<React$1.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof textVariants> {
|
|
443
444
|
asChild?: boolean;
|
|
444
445
|
as?: "p" | "span" | "div";
|
|
445
446
|
}
|
|
446
|
-
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
447
|
+
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
447
448
|
|
|
448
449
|
declare const captionVariants: (props?: ({
|
|
449
450
|
weight?: "medium" | "regular" | null | undefined;
|
|
450
451
|
align?: "left" | "right" | "center" | null | undefined;
|
|
451
452
|
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
452
453
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
453
|
-
interface CaptionProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof captionVariants> {
|
|
454
|
+
interface CaptionProps extends Omit<React$1.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof captionVariants> {
|
|
454
455
|
}
|
|
455
|
-
declare const Caption: React.ForwardRefExoticComponent<CaptionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
456
|
+
declare const Caption: React$1.ForwardRefExoticComponent<CaptionProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
456
457
|
|
|
457
458
|
declare const codeVariants: (props?: ({
|
|
458
459
|
variant?: "inline" | "block" | null | undefined;
|
|
459
460
|
color?: "accent" | "default" | "success" | "warning" | "error" | null | undefined;
|
|
460
461
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
461
|
-
interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof codeVariants> {
|
|
462
|
+
interface CodeProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof codeVariants> {
|
|
462
463
|
}
|
|
463
|
-
declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
|
|
464
|
+
declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAttributes<HTMLElement>>;
|
|
464
465
|
|
|
465
466
|
interface TimeValue {
|
|
466
467
|
hour: number | null;
|
|
@@ -504,6 +505,57 @@ interface DateRangePickerProps {
|
|
|
504
505
|
declare const DEFAULT_PRESETS: PresetOption[];
|
|
505
506
|
declare function DateRangePicker({ value, onChange, presets, presetSections, placeholder, disabled, align, className, showTimePicker, timeValue, onTimeChange, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
506
507
|
|
|
508
|
+
interface DateRangePickerMobileProps {
|
|
509
|
+
label?: string;
|
|
510
|
+
value?: DateRange;
|
|
511
|
+
onChange?: (range: DateRange | undefined) => void;
|
|
512
|
+
presets?: PresetOption[];
|
|
513
|
+
presetSections?: PresetSection[];
|
|
514
|
+
placeholder?: string;
|
|
515
|
+
disabled?: boolean;
|
|
516
|
+
className?: string;
|
|
517
|
+
showTimePicker?: boolean;
|
|
518
|
+
timeValue?: TimeRange;
|
|
519
|
+
onTimeChange?: (time: TimeRange) => void;
|
|
520
|
+
}
|
|
521
|
+
declare function DateRangePickerMobile({ label, value, onChange, presets, presetSections, placeholder, disabled, className, showTimePicker, timeValue, onTimeChange, }: DateRangePickerMobileProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
|
|
523
|
+
interface SelectBarProps {
|
|
524
|
+
isSelected: boolean;
|
|
525
|
+
onToggle: (e: React.MouseEvent) => void;
|
|
526
|
+
badge?: ReactNode;
|
|
527
|
+
}
|
|
528
|
+
interface StatItem {
|
|
529
|
+
label: string;
|
|
530
|
+
value: ReactNode;
|
|
531
|
+
className?: string;
|
|
532
|
+
}
|
|
533
|
+
interface DetailRow {
|
|
534
|
+
label: string;
|
|
535
|
+
value: ReactNode;
|
|
536
|
+
pill?: boolean;
|
|
537
|
+
}
|
|
538
|
+
interface ContentRow {
|
|
539
|
+
label: string;
|
|
540
|
+
value: ReactNode;
|
|
541
|
+
}
|
|
542
|
+
interface MobileDataCardProps {
|
|
543
|
+
title: string;
|
|
544
|
+
subtitle?: string;
|
|
545
|
+
image?: ReactNode;
|
|
546
|
+
contentRows?: ContentRow[];
|
|
547
|
+
onPress?: () => void;
|
|
548
|
+
showChevron?: boolean;
|
|
549
|
+
selectBar?: SelectBarProps;
|
|
550
|
+
stats?: StatItem[];
|
|
551
|
+
statColumns?: 2 | 3 | 4 | 5;
|
|
552
|
+
statsRenderer?: ReactNode;
|
|
553
|
+
details?: DetailRow[];
|
|
554
|
+
extraContent?: ReactNode;
|
|
555
|
+
className?: string;
|
|
556
|
+
}
|
|
557
|
+
declare function MobileDataCard({ title, subtitle, image, contentRows, onPress, showChevron, selectBar, stats, statColumns, statsRenderer, details, extraContent, className, }: MobileDataCardProps): react_jsx_runtime.JSX.Element;
|
|
558
|
+
|
|
507
559
|
interface ComparisonPeriod {
|
|
508
560
|
/** Unique key for this option */
|
|
509
561
|
key: string;
|
|
@@ -529,4 +581,4 @@ interface PeriodComparisonSelectorProps {
|
|
|
529
581
|
declare const DEFAULT_COMPARISON_PERIODS: ComparisonPeriod[];
|
|
530
582
|
declare function PeriodComparisonSelector({ value, onChange, options, mode, size, placeholder, disabled, className, }: PeriodComparisonSelectorProps): react_jsx_runtime.JSX.Element;
|
|
531
583
|
|
|
532
|
-
export { type ActionColumn, Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef, ColumnSelection, type ColumnSelectionProps, type ComparisonPeriod, DEFAULT_COMPARISON_PERIODS, DEFAULT_PRESETS, DEFAULT_TIME_RANGE, type DateRange, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Heading, type HeadingProps, Label, type LabelProps, PeriodComparisonSelector, type PeriodComparisonSelectorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresetOption, type PresetSection, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlRadius, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, TableHeader, type TableProps, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, type TimeRange, type TimeValue, Toggle, type ToggleOption, type ToggleProps, type ToggleRadius, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, textVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection };
|
|
584
|
+
export { type ActionColumn, Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef, ColumnSelection, type ColumnSelectionProps, type ComparisonPeriod, type ContentRow, DEFAULT_COMPARISON_PERIODS, DEFAULT_PRESETS, DEFAULT_TIME_RANGE, type DateRange, DateRangePicker, DateRangePickerMobile, type DateRangePickerMobileProps, type DateRangePickerProps, type DetailRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Heading, type HeadingProps, Label, type LabelProps, MobileDataCard, type MobileDataCardProps, PeriodComparisonSelector, type PeriodComparisonSelectorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PresetOption, type PresetSection, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlRadius, Select, type SelectBarProps, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, type StatItem, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, TableHeader, type TableProps, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, type TimeRange, type TimeValue, Toggle, type ToggleOption, type ToggleProps, type ToggleRadius, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, textVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection };
|