oboda-fiesta 0.0.2 → 0.0.4
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.mts +356 -0
- package/dist/index.d.ts +356 -0
- package/dist/index.js +68 -0
- package/dist/index.mjs +44 -0
- package/package.json +6 -6
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { Command as Command$1 } from 'cmdk';
|
|
9
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
13
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
14
|
+
import { ColumnDef, SortingState, Header, HeaderGroup, Row, Cell, Table as Table$1 } from '@tanstack/react-table';
|
|
15
|
+
export { Cell, Column, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnResizeDirection, ColumnResizeMode, ColumnSizingState, Header, HeaderGroup, PaginationState, Row, SortingState } from '@tanstack/react-table';
|
|
16
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
17
|
+
import { ClassValue } from 'clsx';
|
|
18
|
+
|
|
19
|
+
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
type AuditLogItem = {
|
|
25
|
+
field: string;
|
|
26
|
+
oldValue: string;
|
|
27
|
+
newValue: string;
|
|
28
|
+
};
|
|
29
|
+
type AuditLogEntry = {
|
|
30
|
+
date: string;
|
|
31
|
+
description: string;
|
|
32
|
+
user: string;
|
|
33
|
+
completed: boolean;
|
|
34
|
+
auditLogItems: AuditLogItem[];
|
|
35
|
+
};
|
|
36
|
+
type AuditLogProps = {
|
|
37
|
+
entries: AuditLogEntry[];
|
|
38
|
+
maxHeight?: string;
|
|
39
|
+
};
|
|
40
|
+
declare const AuditLogs: ({ entries, maxHeight }: AuditLogProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
type AutocompleteOption = {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
type AutocompleteProps = {
|
|
47
|
+
options: AutocompleteOption[];
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
fieldLabel: string;
|
|
50
|
+
value: AutocompleteOption[];
|
|
51
|
+
onValueChange: (value: AutocompleteOption[]) => void;
|
|
52
|
+
className?: string;
|
|
53
|
+
};
|
|
54
|
+
declare const Autocomplete: {
|
|
55
|
+
({ options, placeholder, fieldLabel, value, onValueChange, className }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
60
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare const badgeVariants: (props?: ({
|
|
64
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
65
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
+
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
67
|
+
asChild?: boolean;
|
|
68
|
+
}): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const buttonVariants: (props?: ({
|
|
71
|
+
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
72
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
73
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
74
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
75
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
loading?: boolean;
|
|
78
|
+
selected?: boolean;
|
|
79
|
+
iconOnly?: boolean;
|
|
80
|
+
}
|
|
81
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
82
|
+
interface CompoundButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
83
|
+
title: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
icon?: React$1.ReactNode;
|
|
86
|
+
loading?: boolean;
|
|
87
|
+
selected?: boolean;
|
|
88
|
+
}
|
|
89
|
+
declare const CompoundButton: React$1.ForwardRefExoticComponent<CompoundButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
90
|
+
interface SplitButtonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof buttonVariants> {
|
|
91
|
+
mainLabel: string;
|
|
92
|
+
onMainClick?: () => void;
|
|
93
|
+
onDropdownClick?: () => void;
|
|
94
|
+
loading?: boolean;
|
|
95
|
+
selected?: boolean;
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
icon?: React$1.ReactNode;
|
|
98
|
+
iconOnly?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare const SplitButton: React$1.ForwardRefExoticComponent<SplitButtonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
interface MenuButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
102
|
+
label?: string;
|
|
103
|
+
loading?: boolean;
|
|
104
|
+
selected?: boolean;
|
|
105
|
+
iconOnly?: boolean;
|
|
106
|
+
menuIcon?: React$1.ReactNode;
|
|
107
|
+
}
|
|
108
|
+
declare const MenuButton: React$1.ForwardRefExoticComponent<MenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
109
|
+
|
|
110
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
112
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
114
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
115
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
117
|
+
|
|
118
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
119
|
+
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
120
|
+
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
121
|
+
declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
122
|
+
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
124
|
+
showCloseButton?: boolean;
|
|
125
|
+
}): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
127
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
128
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
129
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog> & {
|
|
133
|
+
title?: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
className?: string;
|
|
136
|
+
showCloseButton?: boolean;
|
|
137
|
+
}): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
140
|
+
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
141
|
+
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
149
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
152
|
+
inset?: boolean;
|
|
153
|
+
variant?: 'default' | 'destructive';
|
|
154
|
+
}): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
156
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
159
|
+
inset?: boolean;
|
|
160
|
+
}): react_jsx_runtime.JSX.Element;
|
|
161
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
162
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
164
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
165
|
+
inset?: boolean;
|
|
166
|
+
}): react_jsx_runtime.JSX.Element;
|
|
167
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
type FileInputProps = {
|
|
170
|
+
maxFiles?: number;
|
|
171
|
+
maxSize?: number;
|
|
172
|
+
acceptedTypes?: AcceptedFilesType[];
|
|
173
|
+
files: File[];
|
|
174
|
+
onChange: (files: File[]) => void;
|
|
175
|
+
onError?: (error: string) => void;
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
};
|
|
178
|
+
declare const FileInput: ({ maxFiles, maxSize, acceptedTypes, files, onChange, onError, disabled }: FileInputProps) => react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare const FilePreview: ({ file }: {
|
|
180
|
+
file: File;
|
|
181
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
182
|
+
type FilePreviewListProps = {
|
|
183
|
+
files: File[];
|
|
184
|
+
onRemove: (index: number) => void;
|
|
185
|
+
};
|
|
186
|
+
declare const FilePreviewList: ({ files, onRemove }: FilePreviewListProps) => react_jsx_runtime.JSX.Element | null;
|
|
187
|
+
declare enum AcceptedFilesEnum {
|
|
188
|
+
IMAGE = "IMAGE",
|
|
189
|
+
PDF = "PDF",
|
|
190
|
+
CSV = "CSV",
|
|
191
|
+
XLSX = "XLSX",
|
|
192
|
+
XLS = "XLS",
|
|
193
|
+
TXT = "TXT",
|
|
194
|
+
DOCX = "DOCX"
|
|
195
|
+
}
|
|
196
|
+
type AcceptedFilesType = keyof typeof AcceptedFilesEnum;
|
|
197
|
+
|
|
198
|
+
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
199
|
+
|
|
200
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
declare function ScrollArea({ className, children, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
206
|
+
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
207
|
+
|
|
208
|
+
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
209
|
+
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
210
|
+
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
211
|
+
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
212
|
+
size?: 'sm' | 'default';
|
|
213
|
+
}): react_jsx_runtime.JSX.Element;
|
|
214
|
+
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
215
|
+
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
216
|
+
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
219
|
+
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
220
|
+
|
|
221
|
+
declare const Table: ({ className, ...props }: React.ComponentProps<"table">) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
type TableContextValue = {
|
|
224
|
+
data: unknown[];
|
|
225
|
+
columns: ColumnDef<unknown, unknown>[];
|
|
226
|
+
table: Table$1<unknown> | null;
|
|
227
|
+
enableColumnOrdering: boolean;
|
|
228
|
+
enableColumnResizing: boolean;
|
|
229
|
+
enableSorting: boolean;
|
|
230
|
+
isLoading: boolean;
|
|
231
|
+
};
|
|
232
|
+
type TableProviderProps<TData, TValue> = {
|
|
233
|
+
columns: ColumnDef<TData, TValue>[];
|
|
234
|
+
data: TData[];
|
|
235
|
+
children: ReactNode;
|
|
236
|
+
className?: string;
|
|
237
|
+
enableColumnResizing?: boolean;
|
|
238
|
+
enableColumnOrdering?: boolean;
|
|
239
|
+
isLoading?: boolean;
|
|
240
|
+
enableSorting?: boolean;
|
|
241
|
+
sorting?: SortingState;
|
|
242
|
+
onSortingChange?: (newSorting: SortingState) => void;
|
|
243
|
+
};
|
|
244
|
+
type TableHeadProps = {
|
|
245
|
+
header: Header<unknown, unknown>;
|
|
246
|
+
className?: string;
|
|
247
|
+
};
|
|
248
|
+
type TableHeaderGroupProps = {
|
|
249
|
+
headerGroup: HeaderGroup<unknown>;
|
|
250
|
+
children: (props: {
|
|
251
|
+
header: Header<unknown, unknown>;
|
|
252
|
+
}) => ReactNode;
|
|
253
|
+
className?: string;
|
|
254
|
+
};
|
|
255
|
+
type TableHeaderProps = {
|
|
256
|
+
className?: string;
|
|
257
|
+
children: (props: {
|
|
258
|
+
headerGroup: HeaderGroup<unknown>;
|
|
259
|
+
}) => ReactNode;
|
|
260
|
+
};
|
|
261
|
+
type TableCellProps = {
|
|
262
|
+
cell: Cell<unknown, unknown>;
|
|
263
|
+
className?: string;
|
|
264
|
+
};
|
|
265
|
+
type TableRowProps = {
|
|
266
|
+
row: Row<unknown>;
|
|
267
|
+
children: (props: {
|
|
268
|
+
cell: Cell<unknown, unknown>;
|
|
269
|
+
}) => ReactNode;
|
|
270
|
+
className?: string;
|
|
271
|
+
};
|
|
272
|
+
type TableBodyProps = {
|
|
273
|
+
children: (props: {
|
|
274
|
+
row: Row<unknown>;
|
|
275
|
+
}) => ReactNode;
|
|
276
|
+
className?: string;
|
|
277
|
+
};
|
|
278
|
+
type TablePaginationProps = {
|
|
279
|
+
pageIndex: number;
|
|
280
|
+
pageSize: number;
|
|
281
|
+
pageCount: number;
|
|
282
|
+
totalRows: number;
|
|
283
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
284
|
+
onPreviousPage: () => void;
|
|
285
|
+
onNextPage: () => void;
|
|
286
|
+
pageSizeOptions?: number[];
|
|
287
|
+
showPageSizeSelector?: boolean;
|
|
288
|
+
className?: string;
|
|
289
|
+
isLoading?: boolean;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
declare const TableProvider: <TData, TValue>({ columns, data, children, className, enableColumnResizing, enableColumnOrdering, enableSorting, sorting, onSortingChange, isLoading }: TableProviderProps<TData, TValue>) => react_jsx_runtime.JSX.Element;
|
|
293
|
+
|
|
294
|
+
declare const TableHeadRaw: ({ className, ...props }: React.ComponentProps<"th">) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
declare const TableHead: ({ header, className }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
297
|
+
declare const TableHeader: ({ className, children }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
declare const TableHeaderGroup: ({ headerGroup, children, className }: TableHeaderGroupProps) => react_jsx_runtime.JSX.Element;
|
|
300
|
+
|
|
301
|
+
declare const TableBody: ({ children, className, ...props }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
302
|
+
|
|
303
|
+
declare const TableRowRaw: ({ className, ...props }: React.ComponentProps<"tr">) => react_jsx_runtime.JSX.Element;
|
|
304
|
+
declare const TableRow: ({ row, children, className }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
declare const TableCellRaw: ({ className, ...props }: React.ComponentProps<"td">) => react_jsx_runtime.JSX.Element;
|
|
307
|
+
declare const TableCell: ({ cell, className, ...props }: TableCellProps) => react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
declare function TablePagination({ pageIndex, pageSize, pageCount, totalRows, onPageSizeChange, onPreviousPage, onNextPage, pageSizeOptions, showPageSizeSelector, isLoading, className }: TablePaginationProps): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
311
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
312
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
313
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
314
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
315
|
+
|
|
316
|
+
declare const headingVariants: (props?: ({
|
|
317
|
+
variant?: "h1" | "h2" | null | undefined;
|
|
318
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
319
|
+
declare const textVariants: (props?: ({
|
|
320
|
+
variant?: "large-regular" | "large-bold" | "body-regular" | "body-medium" | "body-semibold" | "body-bold" | "small-regular" | "small-medium" | "small-semibold" | "small-bold" | "overline-regular" | "overline-semibold" | "overline-bold" | "small-overline-regular" | "small-overline-semibold" | "small-overline-bold" | "tag-regular" | "tag-semibold" | "tag-bold" | null | undefined;
|
|
321
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
322
|
+
interface HeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
323
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
324
|
+
}
|
|
325
|
+
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
326
|
+
interface TextProps extends React__default.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants> {
|
|
327
|
+
as?: React__default.ElementType;
|
|
328
|
+
}
|
|
329
|
+
declare const Text: React__default.ForwardRefExoticComponent<TextProps & React__default.RefAttributes<HTMLElement>>;
|
|
330
|
+
declare const H1: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
331
|
+
declare const H2: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
332
|
+
declare const LargeText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
333
|
+
bold?: boolean;
|
|
334
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
335
|
+
declare const BodyText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
336
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
337
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
338
|
+
declare const SmallText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
339
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
340
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
341
|
+
declare const OverlineText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
342
|
+
weight?: "regular" | "semibold" | "bold";
|
|
343
|
+
size?: "base" | "small";
|
|
344
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
345
|
+
declare const TagText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
346
|
+
weight?: "regular" | "semibold" | "bold";
|
|
347
|
+
} & React__default.RefAttributes<HTMLSpanElement>>;
|
|
348
|
+
|
|
349
|
+
declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
350
|
+
|
|
351
|
+
declare const useIsMobile: () => boolean;
|
|
352
|
+
|
|
353
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
354
|
+
declare const debounce: (fn: (...args: any[]) => void, delay: number) => (...args: any[]) => void;
|
|
355
|
+
|
|
356
|
+
export { AcceptedFilesEnum, type AcceptedFilesType, Accordion, AccordionContent, AccordionItem, AccordionTrigger, type AuditLogEntry, type AuditLogItem, type AuditLogProps, AuditLogs, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarFallback, AvatarImage, Badge, BodyText, Button, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompoundButton, type CompoundButtonProps, 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, FileInput, FilePreview, FilePreviewList, H1, H2, Heading, Input, LargeText, MenuButton, type MenuButtonProps, OverlineText, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SmallText, SplitButton, type SplitButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellRaw, type TableContextValue, TableHead, type TableHeadProps, TableHeadRaw, TableHeader, TableHeaderGroup, type TableHeaderGroupProps, type TableHeaderProps, TablePagination, type TablePaginationProps, TableProvider, type TableProviderProps, TableRow, type TableRowProps, TableRowRaw, Tabs, TabsContent, TabsList, TabsTrigger, TagText, Text, badgeVariants, buttonVariants, cn, debounce, useDebounce, useIsMobile };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { Command as Command$1 } from 'cmdk';
|
|
9
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
13
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
14
|
+
import { ColumnDef, SortingState, Header, HeaderGroup, Row, Cell, Table as Table$1 } from '@tanstack/react-table';
|
|
15
|
+
export { Cell, Column, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnResizeDirection, ColumnResizeMode, ColumnSizingState, Header, HeaderGroup, PaginationState, Row, SortingState } from '@tanstack/react-table';
|
|
16
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
17
|
+
import { ClassValue } from 'clsx';
|
|
18
|
+
|
|
19
|
+
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
type AuditLogItem = {
|
|
25
|
+
field: string;
|
|
26
|
+
oldValue: string;
|
|
27
|
+
newValue: string;
|
|
28
|
+
};
|
|
29
|
+
type AuditLogEntry = {
|
|
30
|
+
date: string;
|
|
31
|
+
description: string;
|
|
32
|
+
user: string;
|
|
33
|
+
completed: boolean;
|
|
34
|
+
auditLogItems: AuditLogItem[];
|
|
35
|
+
};
|
|
36
|
+
type AuditLogProps = {
|
|
37
|
+
entries: AuditLogEntry[];
|
|
38
|
+
maxHeight?: string;
|
|
39
|
+
};
|
|
40
|
+
declare const AuditLogs: ({ entries, maxHeight }: AuditLogProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
type AutocompleteOption = {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
type AutocompleteProps = {
|
|
47
|
+
options: AutocompleteOption[];
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
fieldLabel: string;
|
|
50
|
+
value: AutocompleteOption[];
|
|
51
|
+
onValueChange: (value: AutocompleteOption[]) => void;
|
|
52
|
+
className?: string;
|
|
53
|
+
};
|
|
54
|
+
declare const Autocomplete: {
|
|
55
|
+
({ options, placeholder, fieldLabel, value, onValueChange, className }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
60
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare const badgeVariants: (props?: ({
|
|
64
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
65
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
+
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
67
|
+
asChild?: boolean;
|
|
68
|
+
}): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const buttonVariants: (props?: ({
|
|
71
|
+
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
72
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
73
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
74
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
75
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
loading?: boolean;
|
|
78
|
+
selected?: boolean;
|
|
79
|
+
iconOnly?: boolean;
|
|
80
|
+
}
|
|
81
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
82
|
+
interface CompoundButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
83
|
+
title: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
icon?: React$1.ReactNode;
|
|
86
|
+
loading?: boolean;
|
|
87
|
+
selected?: boolean;
|
|
88
|
+
}
|
|
89
|
+
declare const CompoundButton: React$1.ForwardRefExoticComponent<CompoundButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
90
|
+
interface SplitButtonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof buttonVariants> {
|
|
91
|
+
mainLabel: string;
|
|
92
|
+
onMainClick?: () => void;
|
|
93
|
+
onDropdownClick?: () => void;
|
|
94
|
+
loading?: boolean;
|
|
95
|
+
selected?: boolean;
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
icon?: React$1.ReactNode;
|
|
98
|
+
iconOnly?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare const SplitButton: React$1.ForwardRefExoticComponent<SplitButtonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
interface MenuButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
102
|
+
label?: string;
|
|
103
|
+
loading?: boolean;
|
|
104
|
+
selected?: boolean;
|
|
105
|
+
iconOnly?: boolean;
|
|
106
|
+
menuIcon?: React$1.ReactNode;
|
|
107
|
+
}
|
|
108
|
+
declare const MenuButton: React$1.ForwardRefExoticComponent<MenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
109
|
+
|
|
110
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
112
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
114
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
115
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
117
|
+
|
|
118
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
119
|
+
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
120
|
+
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
121
|
+
declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
122
|
+
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
124
|
+
showCloseButton?: boolean;
|
|
125
|
+
}): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
127
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
128
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
129
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog> & {
|
|
133
|
+
title?: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
className?: string;
|
|
136
|
+
showCloseButton?: boolean;
|
|
137
|
+
}): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
140
|
+
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
141
|
+
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
149
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
152
|
+
inset?: boolean;
|
|
153
|
+
variant?: 'default' | 'destructive';
|
|
154
|
+
}): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
156
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
159
|
+
inset?: boolean;
|
|
160
|
+
}): react_jsx_runtime.JSX.Element;
|
|
161
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
162
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
164
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
165
|
+
inset?: boolean;
|
|
166
|
+
}): react_jsx_runtime.JSX.Element;
|
|
167
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
type FileInputProps = {
|
|
170
|
+
maxFiles?: number;
|
|
171
|
+
maxSize?: number;
|
|
172
|
+
acceptedTypes?: AcceptedFilesType[];
|
|
173
|
+
files: File[];
|
|
174
|
+
onChange: (files: File[]) => void;
|
|
175
|
+
onError?: (error: string) => void;
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
};
|
|
178
|
+
declare const FileInput: ({ maxFiles, maxSize, acceptedTypes, files, onChange, onError, disabled }: FileInputProps) => react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare const FilePreview: ({ file }: {
|
|
180
|
+
file: File;
|
|
181
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
182
|
+
type FilePreviewListProps = {
|
|
183
|
+
files: File[];
|
|
184
|
+
onRemove: (index: number) => void;
|
|
185
|
+
};
|
|
186
|
+
declare const FilePreviewList: ({ files, onRemove }: FilePreviewListProps) => react_jsx_runtime.JSX.Element | null;
|
|
187
|
+
declare enum AcceptedFilesEnum {
|
|
188
|
+
IMAGE = "IMAGE",
|
|
189
|
+
PDF = "PDF",
|
|
190
|
+
CSV = "CSV",
|
|
191
|
+
XLSX = "XLSX",
|
|
192
|
+
XLS = "XLS",
|
|
193
|
+
TXT = "TXT",
|
|
194
|
+
DOCX = "DOCX"
|
|
195
|
+
}
|
|
196
|
+
type AcceptedFilesType = keyof typeof AcceptedFilesEnum;
|
|
197
|
+
|
|
198
|
+
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
199
|
+
|
|
200
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
201
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
202
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
declare function ScrollArea({ className, children, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
206
|
+
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
207
|
+
|
|
208
|
+
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
209
|
+
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
210
|
+
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
211
|
+
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
212
|
+
size?: 'sm' | 'default';
|
|
213
|
+
}): react_jsx_runtime.JSX.Element;
|
|
214
|
+
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
215
|
+
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
216
|
+
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
219
|
+
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
220
|
+
|
|
221
|
+
declare const Table: ({ className, ...props }: React.ComponentProps<"table">) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
type TableContextValue = {
|
|
224
|
+
data: unknown[];
|
|
225
|
+
columns: ColumnDef<unknown, unknown>[];
|
|
226
|
+
table: Table$1<unknown> | null;
|
|
227
|
+
enableColumnOrdering: boolean;
|
|
228
|
+
enableColumnResizing: boolean;
|
|
229
|
+
enableSorting: boolean;
|
|
230
|
+
isLoading: boolean;
|
|
231
|
+
};
|
|
232
|
+
type TableProviderProps<TData, TValue> = {
|
|
233
|
+
columns: ColumnDef<TData, TValue>[];
|
|
234
|
+
data: TData[];
|
|
235
|
+
children: ReactNode;
|
|
236
|
+
className?: string;
|
|
237
|
+
enableColumnResizing?: boolean;
|
|
238
|
+
enableColumnOrdering?: boolean;
|
|
239
|
+
isLoading?: boolean;
|
|
240
|
+
enableSorting?: boolean;
|
|
241
|
+
sorting?: SortingState;
|
|
242
|
+
onSortingChange?: (newSorting: SortingState) => void;
|
|
243
|
+
};
|
|
244
|
+
type TableHeadProps = {
|
|
245
|
+
header: Header<unknown, unknown>;
|
|
246
|
+
className?: string;
|
|
247
|
+
};
|
|
248
|
+
type TableHeaderGroupProps = {
|
|
249
|
+
headerGroup: HeaderGroup<unknown>;
|
|
250
|
+
children: (props: {
|
|
251
|
+
header: Header<unknown, unknown>;
|
|
252
|
+
}) => ReactNode;
|
|
253
|
+
className?: string;
|
|
254
|
+
};
|
|
255
|
+
type TableHeaderProps = {
|
|
256
|
+
className?: string;
|
|
257
|
+
children: (props: {
|
|
258
|
+
headerGroup: HeaderGroup<unknown>;
|
|
259
|
+
}) => ReactNode;
|
|
260
|
+
};
|
|
261
|
+
type TableCellProps = {
|
|
262
|
+
cell: Cell<unknown, unknown>;
|
|
263
|
+
className?: string;
|
|
264
|
+
};
|
|
265
|
+
type TableRowProps = {
|
|
266
|
+
row: Row<unknown>;
|
|
267
|
+
children: (props: {
|
|
268
|
+
cell: Cell<unknown, unknown>;
|
|
269
|
+
}) => ReactNode;
|
|
270
|
+
className?: string;
|
|
271
|
+
};
|
|
272
|
+
type TableBodyProps = {
|
|
273
|
+
children: (props: {
|
|
274
|
+
row: Row<unknown>;
|
|
275
|
+
}) => ReactNode;
|
|
276
|
+
className?: string;
|
|
277
|
+
};
|
|
278
|
+
type TablePaginationProps = {
|
|
279
|
+
pageIndex: number;
|
|
280
|
+
pageSize: number;
|
|
281
|
+
pageCount: number;
|
|
282
|
+
totalRows: number;
|
|
283
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
284
|
+
onPreviousPage: () => void;
|
|
285
|
+
onNextPage: () => void;
|
|
286
|
+
pageSizeOptions?: number[];
|
|
287
|
+
showPageSizeSelector?: boolean;
|
|
288
|
+
className?: string;
|
|
289
|
+
isLoading?: boolean;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
declare const TableProvider: <TData, TValue>({ columns, data, children, className, enableColumnResizing, enableColumnOrdering, enableSorting, sorting, onSortingChange, isLoading }: TableProviderProps<TData, TValue>) => react_jsx_runtime.JSX.Element;
|
|
293
|
+
|
|
294
|
+
declare const TableHeadRaw: ({ className, ...props }: React.ComponentProps<"th">) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
declare const TableHead: ({ header, className }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
297
|
+
declare const TableHeader: ({ className, children }: TableHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
declare const TableHeaderGroup: ({ headerGroup, children, className }: TableHeaderGroupProps) => react_jsx_runtime.JSX.Element;
|
|
300
|
+
|
|
301
|
+
declare const TableBody: ({ children, className, ...props }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
302
|
+
|
|
303
|
+
declare const TableRowRaw: ({ className, ...props }: React.ComponentProps<"tr">) => react_jsx_runtime.JSX.Element;
|
|
304
|
+
declare const TableRow: ({ row, children, className }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
declare const TableCellRaw: ({ className, ...props }: React.ComponentProps<"td">) => react_jsx_runtime.JSX.Element;
|
|
307
|
+
declare const TableCell: ({ cell, className, ...props }: TableCellProps) => react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
declare function TablePagination({ pageIndex, pageSize, pageCount, totalRows, onPageSizeChange, onPreviousPage, onNextPage, pageSizeOptions, showPageSizeSelector, isLoading, className }: TablePaginationProps): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
311
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
312
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
313
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
314
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
315
|
+
|
|
316
|
+
declare const headingVariants: (props?: ({
|
|
317
|
+
variant?: "h1" | "h2" | null | undefined;
|
|
318
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
319
|
+
declare const textVariants: (props?: ({
|
|
320
|
+
variant?: "large-regular" | "large-bold" | "body-regular" | "body-medium" | "body-semibold" | "body-bold" | "small-regular" | "small-medium" | "small-semibold" | "small-bold" | "overline-regular" | "overline-semibold" | "overline-bold" | "small-overline-regular" | "small-overline-semibold" | "small-overline-bold" | "tag-regular" | "tag-semibold" | "tag-bold" | null | undefined;
|
|
321
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
322
|
+
interface HeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
323
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
324
|
+
}
|
|
325
|
+
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
326
|
+
interface TextProps extends React__default.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants> {
|
|
327
|
+
as?: React__default.ElementType;
|
|
328
|
+
}
|
|
329
|
+
declare const Text: React__default.ForwardRefExoticComponent<TextProps & React__default.RefAttributes<HTMLElement>>;
|
|
330
|
+
declare const H1: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
331
|
+
declare const H2: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
332
|
+
declare const LargeText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
333
|
+
bold?: boolean;
|
|
334
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
335
|
+
declare const BodyText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
336
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
337
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
338
|
+
declare const SmallText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
339
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
340
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
341
|
+
declare const OverlineText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
342
|
+
weight?: "regular" | "semibold" | "bold";
|
|
343
|
+
size?: "base" | "small";
|
|
344
|
+
} & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
345
|
+
declare const TagText: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
346
|
+
weight?: "regular" | "semibold" | "bold";
|
|
347
|
+
} & React__default.RefAttributes<HTMLSpanElement>>;
|
|
348
|
+
|
|
349
|
+
declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
350
|
+
|
|
351
|
+
declare const useIsMobile: () => boolean;
|
|
352
|
+
|
|
353
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
354
|
+
declare const debounce: (fn: (...args: any[]) => void, delay: number) => (...args: any[]) => void;
|
|
355
|
+
|
|
356
|
+
export { AcceptedFilesEnum, type AcceptedFilesType, Accordion, AccordionContent, AccordionItem, AccordionTrigger, type AuditLogEntry, type AuditLogItem, type AuditLogProps, AuditLogs, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarFallback, AvatarImage, Badge, BodyText, Button, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CompoundButton, type CompoundButtonProps, 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, FileInput, FilePreview, FilePreviewList, H1, H2, Heading, Input, LargeText, MenuButton, type MenuButtonProps, OverlineText, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SmallText, SplitButton, type SplitButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellRaw, type TableContextValue, TableHead, type TableHeadProps, TableHeadRaw, TableHeader, TableHeaderGroup, type TableHeaderGroupProps, type TableHeaderProps, TablePagination, type TablePaginationProps, TableProvider, type TableProviderProps, TableRow, type TableRowProps, TableRowRaw, Tabs, TabsContent, TabsList, TabsTrigger, TagText, Text, badgeVariants, buttonVariants, cn, debounce, useDebounce, useIsMobile };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var clsx = require('clsx');
|
|
5
|
+
var tailwindMerge = require('tailwind-merge');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
|
|
27
|
+
// hooks/use-debouce.ts
|
|
28
|
+
var useDebounce = (value, delay) => {
|
|
29
|
+
const [debouncedValue, setDebouncedValue] = React.useState(value);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
const handler = setTimeout(() => {
|
|
32
|
+
setDebouncedValue(value);
|
|
33
|
+
}, delay);
|
|
34
|
+
return () => {
|
|
35
|
+
clearTimeout(handler);
|
|
36
|
+
};
|
|
37
|
+
}, [value, delay]);
|
|
38
|
+
return debouncedValue;
|
|
39
|
+
};
|
|
40
|
+
var MOBILE_BREAKPOINT = 768;
|
|
41
|
+
var useIsMobile = () => {
|
|
42
|
+
const [isMobile, setIsMobile] = React__namespace.useState(void 0);
|
|
43
|
+
React__namespace.useEffect(() => {
|
|
44
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
45
|
+
const onChange = () => {
|
|
46
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
47
|
+
};
|
|
48
|
+
mql.addEventListener("change", onChange);
|
|
49
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
50
|
+
return () => mql.removeEventListener("change", onChange);
|
|
51
|
+
}, []);
|
|
52
|
+
return !!isMobile;
|
|
53
|
+
};
|
|
54
|
+
function cn(...inputs) {
|
|
55
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
56
|
+
}
|
|
57
|
+
var debounce = (fn, delay) => {
|
|
58
|
+
let timeout;
|
|
59
|
+
return (...args) => {
|
|
60
|
+
clearTimeout(timeout);
|
|
61
|
+
timeout = setTimeout(() => fn(...args), delay);
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.cn = cn;
|
|
66
|
+
exports.debounce = debounce;
|
|
67
|
+
exports.useDebounce = useDebounce;
|
|
68
|
+
exports.useIsMobile = useIsMobile;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
|
|
6
|
+
// hooks/use-debouce.ts
|
|
7
|
+
var useDebounce = (value, delay) => {
|
|
8
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const handler = setTimeout(() => {
|
|
11
|
+
setDebouncedValue(value);
|
|
12
|
+
}, delay);
|
|
13
|
+
return () => {
|
|
14
|
+
clearTimeout(handler);
|
|
15
|
+
};
|
|
16
|
+
}, [value, delay]);
|
|
17
|
+
return debouncedValue;
|
|
18
|
+
};
|
|
19
|
+
var MOBILE_BREAKPOINT = 768;
|
|
20
|
+
var useIsMobile = () => {
|
|
21
|
+
const [isMobile, setIsMobile] = React.useState(void 0);
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
24
|
+
const onChange = () => {
|
|
25
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
26
|
+
};
|
|
27
|
+
mql.addEventListener("change", onChange);
|
|
28
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
29
|
+
return () => mql.removeEventListener("change", onChange);
|
|
30
|
+
}, []);
|
|
31
|
+
return !!isMobile;
|
|
32
|
+
};
|
|
33
|
+
function cn(...inputs) {
|
|
34
|
+
return twMerge(clsx(inputs));
|
|
35
|
+
}
|
|
36
|
+
var debounce = (fn, delay) => {
|
|
37
|
+
let timeout;
|
|
38
|
+
return (...args) => {
|
|
39
|
+
clearTimeout(timeout);
|
|
40
|
+
timeout = setTimeout(() => fn(...args), delay);
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { cn, debounce, useDebounce, useIsMobile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oboda-fiesta",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"prefix": ""
|
|
27
27
|
},
|
|
28
28
|
"aliases": {
|
|
29
|
-
"components": "
|
|
30
|
-
"utils": "
|
|
31
|
-
"hooks": "
|
|
32
|
-
"lib": "
|
|
33
|
-
"ui": "
|
|
29
|
+
"components": "oboda-fiesta/components",
|
|
30
|
+
"utils": "oboda-fiesta/lib/utils",
|
|
31
|
+
"hooks": "oboda-fiesta/hooks",
|
|
32
|
+
"lib": "oboda-fiesta/lib",
|
|
33
|
+
"ui": "oboda-fiesta/components/ui"
|
|
34
34
|
},
|
|
35
35
|
"iconLibrary": "lucide",
|
|
36
36
|
"devDependencies": {
|