@capitaltg/vero 1.2.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/README.md +54 -0
- package/dist/index.cjs +134 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +14460 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/no-preflight.css +1 -0
- package/dist/styles/preflight.css +1 -0
- package/dist/types/index.d.ts +580 -0
- package/dist/types/no-preflight.d.ts +1 -0
- package/dist/types/preflight.d.ts +1 -0
- package/dist/types/styles/no-preflight.d.ts +1 -0
- package/dist/types/styles/preflight.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +114 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
5
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
6
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
7
|
+
import { ClassValue } from 'clsx';
|
|
8
|
+
import { Command as Command_2 } from 'cmdk';
|
|
9
|
+
import { ComponentProps } from 'react';
|
|
10
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
11
|
+
import { DayPicker } from 'react-day-picker';
|
|
12
|
+
import { default as default_2 } from 'react';
|
|
13
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
14
|
+
import { DialogProps as DialogProps_2 } from '@radix-ui/react-dialog';
|
|
15
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
16
|
+
import { FC } from 'react';
|
|
17
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
18
|
+
import { HTMLAttributes } from 'react';
|
|
19
|
+
import { InputHTMLAttributes } from 'react';
|
|
20
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
21
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
22
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
23
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
24
|
+
import * as React_2 from 'react';
|
|
25
|
+
import { ReactNode } from 'react';
|
|
26
|
+
import { RefAttributes } from 'react';
|
|
27
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
28
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
29
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
30
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
31
|
+
import { VariantProps } from 'class-variance-authority';
|
|
32
|
+
|
|
33
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
|
|
35
|
+
export declare interface AccordionItem {
|
|
36
|
+
id: string;
|
|
37
|
+
title: React.ReactNode;
|
|
38
|
+
content: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare type AccordionProps = (SharedProps & OmittedPrimitiveProps & SingleOrAccordionProps) | (SharedProps & OmittedPrimitiveProps & MultipleProps);
|
|
42
|
+
|
|
43
|
+
export declare const Alert: React_2.ForwardRefExoticComponent<AlertProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
|
|
45
|
+
export declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
46
|
+
variant: AlertVariant;
|
|
47
|
+
size?: AlertSize;
|
|
48
|
+
heading?: string;
|
|
49
|
+
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
50
|
+
hasIcon?: boolean;
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare type AlertSize = 'sm' | 'default';
|
|
55
|
+
|
|
56
|
+
declare type AlertVariant = 'success' | 'warning' | 'danger' | 'info';
|
|
57
|
+
|
|
58
|
+
export declare const Autocomplete: default_2.ForwardRefExoticComponent<AutocompleteProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
59
|
+
|
|
60
|
+
export declare interface AutocompleteOption {
|
|
61
|
+
value: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare interface AutocompleteProps {
|
|
66
|
+
loadOptions?: (inputValue: string) => Promise<AutocompleteOption[]>;
|
|
67
|
+
options?: AutocompleteOption[];
|
|
68
|
+
value: string;
|
|
69
|
+
onChange: (value: string) => void;
|
|
70
|
+
placeholder?: string;
|
|
71
|
+
emptyMessage?: string;
|
|
72
|
+
className?: string;
|
|
73
|
+
maxSuggestions?: number;
|
|
74
|
+
debounceMs?: number;
|
|
75
|
+
minSearch?: number;
|
|
76
|
+
loadingMessage?: string;
|
|
77
|
+
errorMessage?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
|
|
82
|
+
export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare const badgeVariants: (props?: ({
|
|
86
|
+
variant?: "default" | "primary" | "success" | "danger" | "warning" | "outline" | null | undefined;
|
|
87
|
+
} & ClassProp) | undefined) => string;
|
|
88
|
+
|
|
89
|
+
declare interface BreadcrumbItem {
|
|
90
|
+
label: ReactNode;
|
|
91
|
+
href?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare const Breadcrumbs: React_2.ForwardRefExoticComponent<BreadcrumbsProps & React_2.RefAttributes<HTMLElement>>;
|
|
95
|
+
|
|
96
|
+
export declare interface BreadcrumbsProps {
|
|
97
|
+
items: BreadcrumbItem[];
|
|
98
|
+
separator?: ReactNode;
|
|
99
|
+
className?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
103
|
+
|
|
104
|
+
export declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
105
|
+
asChild?: boolean;
|
|
106
|
+
isDisabled?: boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare const buttonVariants: (props?: ({
|
|
110
|
+
variant?: "default" | "primary" | "danger" | "input" | "link" | "ghost" | null | undefined;
|
|
111
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
112
|
+
} & ClassProp) | undefined) => string;
|
|
113
|
+
|
|
114
|
+
export declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): JSX_2.Element;
|
|
115
|
+
|
|
116
|
+
export declare namespace Calendar {
|
|
117
|
+
var displayName: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare type CalendarProps = ComponentProps<typeof DayPicker>;
|
|
121
|
+
|
|
122
|
+
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
123
|
+
|
|
124
|
+
export declare const CheckboxGroup: React_2.ForwardRefExoticComponent<CheckboxGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
125
|
+
|
|
126
|
+
export declare interface CheckboxGroupProps {
|
|
127
|
+
options: CheckboxOption[];
|
|
128
|
+
value: string[];
|
|
129
|
+
onChange: (value: string[]) => void;
|
|
130
|
+
className?: string;
|
|
131
|
+
columns?: 1 | 2 | 3 | 4;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare interface CheckboxOption {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, 'checked' | 'disabled'> {
|
|
140
|
+
label?: ReactNode;
|
|
141
|
+
isChecked?: boolean;
|
|
142
|
+
isDisabled?: boolean;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
146
|
+
|
|
147
|
+
export declare const Combobox: default_2.ForwardRefExoticComponent<ComboboxProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
148
|
+
|
|
149
|
+
export declare interface ComboboxOption {
|
|
150
|
+
value: string;
|
|
151
|
+
label: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export declare interface ComboboxProps {
|
|
155
|
+
options: ComboboxOption[];
|
|
156
|
+
value: string;
|
|
157
|
+
onChange: (value: string) => void;
|
|
158
|
+
placeholder?: string;
|
|
159
|
+
searchPlaceholder?: string;
|
|
160
|
+
emptyMessage?: string;
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
165
|
+
children?: React_2.ReactNode;
|
|
166
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & {
|
|
167
|
+
label?: string | undefined;
|
|
168
|
+
shouldFilter?: boolean | undefined;
|
|
169
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
170
|
+
defaultValue?: string | undefined;
|
|
171
|
+
value?: string | undefined;
|
|
172
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
173
|
+
loop?: boolean | undefined;
|
|
174
|
+
vimBindings?: boolean | undefined;
|
|
175
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
|
|
177
|
+
export declare const CommandDialog: {
|
|
178
|
+
({ children, ...props }: CommandDialogProps): JSX_2.Element;
|
|
179
|
+
displayName: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export declare type CommandDialogProps = DialogProps_2;
|
|
183
|
+
|
|
184
|
+
export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
185
|
+
children?: React_2.ReactNode;
|
|
186
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
187
|
+
|
|
188
|
+
export declare type CommandEmptyProps = ComponentPropsWithoutRef<typeof Command_2.Empty>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Same as above but without special show/hide logic based on filtered count
|
|
192
|
+
* ref: https://github.com/pacocoursey/cmdk/blob/main/cmdk/src/index.tsx#L896-L904
|
|
193
|
+
*/
|
|
194
|
+
export declare const CommandForceEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
195
|
+
children?: React_2.ReactNode;
|
|
196
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
|
|
198
|
+
export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
199
|
+
children?: React_2.ReactNode;
|
|
200
|
+
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
201
|
+
heading?: React_2.ReactNode;
|
|
202
|
+
value?: string | undefined;
|
|
203
|
+
forceMount?: boolean | undefined;
|
|
204
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
205
|
+
|
|
206
|
+
export declare type CommandGroupProps = ComponentPropsWithoutRef<typeof Command_2.Group>;
|
|
207
|
+
|
|
208
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & {
|
|
209
|
+
value?: string | undefined;
|
|
210
|
+
onValueChange?: ((search: string) => void) | undefined;
|
|
211
|
+
} & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
212
|
+
|
|
213
|
+
export declare type CommandInputProps = ComponentPropsWithoutRef<typeof Command_2.Input>;
|
|
214
|
+
|
|
215
|
+
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
216
|
+
children?: React_2.ReactNode;
|
|
217
|
+
} & Omit<React_2.HTMLAttributes<HTMLDivElement>, "onSelect" | "value" | "disabled"> & {
|
|
218
|
+
disabled?: boolean | undefined;
|
|
219
|
+
onSelect?: ((value: string) => void) | undefined;
|
|
220
|
+
value?: string | undefined;
|
|
221
|
+
forceMount?: boolean | undefined;
|
|
222
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
223
|
+
|
|
224
|
+
export declare type CommandItemProps = ComponentPropsWithoutRef<typeof Command_2.Item>;
|
|
225
|
+
|
|
226
|
+
export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
|
|
227
|
+
children?: React_2.ReactNode;
|
|
228
|
+
} & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
229
|
+
|
|
230
|
+
export declare type CommandListProps = ComponentPropsWithoutRef<typeof Command_2.List>;
|
|
231
|
+
|
|
232
|
+
export declare const CommandLoading: {
|
|
233
|
+
({ children, ...props }: CommandLoadingProps): JSX_2.Element;
|
|
234
|
+
displayName: string;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export declare type CommandLoadingProps = HTMLAttributes<HTMLDivElement>;
|
|
238
|
+
|
|
239
|
+
export declare type CommandProps = ComponentPropsWithoutRef<typeof Command_2>;
|
|
240
|
+
|
|
241
|
+
export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement> & {
|
|
242
|
+
alwaysRender?: boolean | undefined;
|
|
243
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
244
|
+
|
|
245
|
+
export declare type CommandSeparatorProps = ComponentPropsWithoutRef<typeof Command_2.Separator>;
|
|
246
|
+
|
|
247
|
+
export declare const CommandShortcut: {
|
|
248
|
+
({ className, ...props }: CommandShortcutProps): JSX_2.Element;
|
|
249
|
+
displayName: string;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export declare type CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;
|
|
253
|
+
|
|
254
|
+
export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
255
|
+
|
|
256
|
+
export declare interface DatePickerProps {
|
|
257
|
+
value?: Date;
|
|
258
|
+
onChange: (date?: Date) => void;
|
|
259
|
+
placeholder?: string;
|
|
260
|
+
className?: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export declare interface DateRange {
|
|
264
|
+
from?: Date;
|
|
265
|
+
to?: Date;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRangePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
269
|
+
|
|
270
|
+
export declare interface DateRangePickerProps {
|
|
271
|
+
value: DateRange;
|
|
272
|
+
onChange: (range: DateRange) => void;
|
|
273
|
+
placeholder?: {
|
|
274
|
+
from?: string;
|
|
275
|
+
to?: string;
|
|
276
|
+
};
|
|
277
|
+
className?: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export declare const Dialog: FC<DialogPrimitive.DialogProps>;
|
|
281
|
+
|
|
282
|
+
export declare const DialogClose: ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
283
|
+
|
|
284
|
+
export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
285
|
+
|
|
286
|
+
export declare type DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
|
|
287
|
+
|
|
288
|
+
export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
289
|
+
|
|
290
|
+
export declare type DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
|
|
291
|
+
|
|
292
|
+
export declare const DialogFooter: {
|
|
293
|
+
({ className, ...props }: DialogFooterProps): JSX_2.Element;
|
|
294
|
+
displayName: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export declare type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
298
|
+
|
|
299
|
+
export declare const DialogHeader: {
|
|
300
|
+
({ className, ...props }: DialogHeaderProps): JSX_2.Element;
|
|
301
|
+
displayName: string;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export declare type DialogHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
305
|
+
|
|
306
|
+
export declare const DialogOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
307
|
+
|
|
308
|
+
export declare type DialogOverlayProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
|
|
309
|
+
|
|
310
|
+
export declare const DialogPortal: FC<DialogPrimitive.DialogPortalProps>;
|
|
311
|
+
|
|
312
|
+
export declare type DialogProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
|
|
313
|
+
|
|
314
|
+
export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
315
|
+
|
|
316
|
+
export declare type DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
|
|
317
|
+
|
|
318
|
+
export declare const DialogTrigger: ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
319
|
+
|
|
320
|
+
export declare type DialogTriggerProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
|
|
321
|
+
|
|
322
|
+
export declare const DropdownButton: React_2.ForwardRefExoticComponent<DropdownButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
323
|
+
|
|
324
|
+
export declare interface DropdownButtonProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
325
|
+
items: DropdownItemType[];
|
|
326
|
+
children: ReactNode;
|
|
327
|
+
className?: string;
|
|
328
|
+
isDisabled?: boolean;
|
|
329
|
+
align?: 'start' | 'center' | 'end';
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export declare interface DropdownItem {
|
|
333
|
+
label: string;
|
|
334
|
+
icon?: ReactNode;
|
|
335
|
+
isDisabled?: boolean;
|
|
336
|
+
onClick?: () => void;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare type DropdownItemType = DropdownItem | 'separator';
|
|
340
|
+
|
|
341
|
+
export declare const FormItem: React_2.ForwardRefExoticComponent<FormItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
|
|
343
|
+
export declare interface FormItemProps {
|
|
344
|
+
label?: ReactNode;
|
|
345
|
+
hintText?: ReactNode;
|
|
346
|
+
errorText?: ReactNode;
|
|
347
|
+
className?: string;
|
|
348
|
+
children: ReactNode;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
declare const Image_2: React_2.ForwardRefExoticComponent<ImageProps & React_2.RefAttributes<HTMLImageElement>>;
|
|
352
|
+
export { Image_2 as Image }
|
|
353
|
+
|
|
354
|
+
export declare interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'loading'> {
|
|
355
|
+
src: string;
|
|
356
|
+
alt: string;
|
|
357
|
+
fallback?: string;
|
|
358
|
+
isLazy?: boolean;
|
|
359
|
+
shape?: 'square' | 'rounded' | 'circle';
|
|
360
|
+
className?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
364
|
+
|
|
365
|
+
export declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'disabled'> {
|
|
366
|
+
transform?: TextTransform | TextTransform[];
|
|
367
|
+
isDisabled?: boolean;
|
|
368
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
372
|
+
|
|
373
|
+
export declare type LabelProps = ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;
|
|
374
|
+
|
|
375
|
+
declare type MultipleProps = {
|
|
376
|
+
mode: 'multiple';
|
|
377
|
+
value?: string[];
|
|
378
|
+
defaultValue?: string[];
|
|
379
|
+
onValueChange?: (value: string[]) => void;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export declare const MultiSelect: default_2.ForwardRefExoticComponent<MultiSelectProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
383
|
+
|
|
384
|
+
export declare interface MultiSelectOption {
|
|
385
|
+
value: string;
|
|
386
|
+
label: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export declare interface MultiSelectProps {
|
|
390
|
+
options: MultiSelectOption[];
|
|
391
|
+
value: string[];
|
|
392
|
+
onChange: (value: string[]) => void;
|
|
393
|
+
placeholder?: string;
|
|
394
|
+
searchPlaceholder?: string;
|
|
395
|
+
emptyMessage?: string;
|
|
396
|
+
className?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare type OmittedPrimitiveProps = Omit<ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, 'type' | 'value' | 'defaultValue' | 'collapsible' | 'onValueChange'>;
|
|
400
|
+
|
|
401
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
402
|
+
|
|
403
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
404
|
+
|
|
405
|
+
export declare interface PopoverContentProps extends ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
406
|
+
hasArrow?: boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export declare type PopoverProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
410
|
+
|
|
411
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
412
|
+
|
|
413
|
+
export declare type PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;
|
|
414
|
+
|
|
415
|
+
export declare const Radio: React_2.ForwardRefExoticComponent<RadioProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
416
|
+
|
|
417
|
+
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
418
|
+
|
|
419
|
+
export declare interface RadioGroupProps {
|
|
420
|
+
options: RadioOption[];
|
|
421
|
+
value: string;
|
|
422
|
+
onChange: (value: string) => void;
|
|
423
|
+
className?: string;
|
|
424
|
+
orientation?: 'horizontal' | 'vertical';
|
|
425
|
+
variant?: 'default' | 'tile';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export declare interface RadioOption {
|
|
429
|
+
value: string;
|
|
430
|
+
label: string;
|
|
431
|
+
description?: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export declare interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, 'checked' | 'disabled'> {
|
|
435
|
+
label?: ReactNode;
|
|
436
|
+
isChecked?: boolean;
|
|
437
|
+
isDisabled?: boolean;
|
|
438
|
+
variant?: 'default' | 'tile';
|
|
439
|
+
description?: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export declare const Select: FC<SelectPrimitive.SelectProps>;
|
|
443
|
+
|
|
444
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
445
|
+
|
|
446
|
+
export declare type SelectContentProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
447
|
+
|
|
448
|
+
export declare const SelectGroup: ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & RefAttributes<HTMLDivElement>>;
|
|
449
|
+
|
|
450
|
+
export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
451
|
+
|
|
452
|
+
export declare type SelectItemProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;
|
|
453
|
+
|
|
454
|
+
export declare const SelectLabel: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
455
|
+
|
|
456
|
+
export declare type SelectLabelProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;
|
|
457
|
+
|
|
458
|
+
export declare interface SelectOption {
|
|
459
|
+
value: string;
|
|
460
|
+
label: string;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export declare const SelectSeparator: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
464
|
+
|
|
465
|
+
export declare type SelectSeparatorProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;
|
|
466
|
+
|
|
467
|
+
export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
468
|
+
|
|
469
|
+
export declare type SelectTriggerProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>;
|
|
470
|
+
|
|
471
|
+
export declare const SelectValue: ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>>;
|
|
472
|
+
|
|
473
|
+
declare type SharedProps = {
|
|
474
|
+
items: AccordionItem[];
|
|
475
|
+
variant?: 'default' | 'primary' | 'success' | 'danger' | 'warning';
|
|
476
|
+
caretPosition?: 'left' | 'right';
|
|
477
|
+
className?: string;
|
|
478
|
+
triggerClassName?: string;
|
|
479
|
+
contentClassName?: string;
|
|
480
|
+
isBordered?: boolean;
|
|
481
|
+
isCollapsible?: boolean;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
declare type SingleOrAccordionProps = {
|
|
485
|
+
mode: 'single';
|
|
486
|
+
value?: string;
|
|
487
|
+
defaultValue?: string;
|
|
488
|
+
onValueChange?: (value: string) => void;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export declare const SingleSelect: React_2.ForwardRefExoticComponent<SingleSelectProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
492
|
+
|
|
493
|
+
export declare interface SingleSelectProps {
|
|
494
|
+
options: SelectOption[];
|
|
495
|
+
value: string;
|
|
496
|
+
onChange: (value: string) => void;
|
|
497
|
+
placeholder?: string;
|
|
498
|
+
className?: string;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export declare interface Step {
|
|
502
|
+
id: string;
|
|
503
|
+
label: string;
|
|
504
|
+
description?: string;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export declare const StepIndicator: React_2.ForwardRefExoticComponent<StepIndicatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
508
|
+
|
|
509
|
+
export declare interface StepIndicatorProps {
|
|
510
|
+
steps: Step[];
|
|
511
|
+
currentStep: number;
|
|
512
|
+
className?: string;
|
|
513
|
+
orientation?: 'horizontal' | 'vertical';
|
|
514
|
+
size?: 'default' | 'sm' | 'lg';
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
518
|
+
|
|
519
|
+
export declare const SwitchGroup: default_2.ForwardRefExoticComponent<SwitchGroupProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
520
|
+
|
|
521
|
+
export declare interface SwitchGroupProps {
|
|
522
|
+
options: SwitchOption[];
|
|
523
|
+
value: string[];
|
|
524
|
+
className?: string;
|
|
525
|
+
columns?: 1 | 2 | 3 | 4;
|
|
526
|
+
onChange: (value: string[]) => void;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export declare interface SwitchOption {
|
|
530
|
+
id: string;
|
|
531
|
+
label: string;
|
|
532
|
+
isDisabled?: boolean;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export declare interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, 'checked' | 'disabled'> {
|
|
536
|
+
label?: ReactNode;
|
|
537
|
+
isChecked?: boolean;
|
|
538
|
+
isDisabled?: boolean;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export declare interface Tag {
|
|
542
|
+
id: string;
|
|
543
|
+
text: string;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export declare const TagInput: default_2.ForwardRefExoticComponent<TagInputProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
547
|
+
|
|
548
|
+
export declare interface TagInputProps {
|
|
549
|
+
value: Tag[];
|
|
550
|
+
className?: string;
|
|
551
|
+
placeholder?: string;
|
|
552
|
+
maxTags?: number;
|
|
553
|
+
delimiterChars?: string | string[];
|
|
554
|
+
isDisabled?: boolean;
|
|
555
|
+
onChange: (tags: Tag[]) => void;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
559
|
+
|
|
560
|
+
export declare interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'disabled'> {
|
|
561
|
+
isDisabled?: boolean;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
declare type TextTransform = 'uppercase' | 'lowercase' | 'trim' | 'none';
|
|
565
|
+
|
|
566
|
+
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<never>>;
|
|
567
|
+
|
|
568
|
+
export declare interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>, 'children'> {
|
|
569
|
+
children: ReactNode;
|
|
570
|
+
content: ReactNode;
|
|
571
|
+
side?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>['side'];
|
|
572
|
+
align?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>['align'];
|
|
573
|
+
offset?: number;
|
|
574
|
+
hasArrow?: boolean;
|
|
575
|
+
className?: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
579
|
+
|
|
580
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|