@liberfi.io/ui 0.1.7 → 0.1.9
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 +141 -4
- package/dist/index.d.ts +141 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind/tailwind.css +10 -1
- package/package.json +11 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import * as _heroui_react from '@heroui/react';
|
|
2
|
-
import { BadgeProps, ButtonProps, InputProps, NumberInputProps, ModalProps, PopoverProps, TableProps, TabsProps, TooltipProps } from '@heroui/react';
|
|
2
|
+
import { BadgeProps, ButtonProps, InputProps, NumberInputProps, TextAreaProps, ModalProps, PopoverProps, TableProps, TabsProps, TooltipProps } from '@heroui/react';
|
|
3
3
|
export { Accordion, AccordionItem, AccordionItemIndicatorProps, AccordionItemProps, AccordionProps, Alert, AlertProps, Autocomplete, AutocompleteItem, AutocompleteItemProps, AutocompleteProps, AutocompleteSection, AutocompleteSectionProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, Badge, BadgeProps, BreadcrumbItem, BreadcrumbItemProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, CardBody, CardFooter, CardFooterProps, CardHeader, CardProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, Chip, ChipProps, CircularProgress, CircularProgressProps, Code, CodeProps, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Divider, DividerProps, Drawer, DrawerBody, DrawerBodyProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, Dropdown, DropdownItem, DropdownItemProps, DropdownMenu, DropdownMenuProps, DropdownProps, DropdownSection, DropdownSectionProps, DropdownTrigger, DropdownTriggerProps, Image, ImageProps, Input, InputOtp, InputOtpProps, InputProps, Kbd, KbdProps, Link, LinkProps, Listbox, ListboxItem, ListboxItemProps, ListboxProps, ListboxSection, ListboxSectionProps, Modal, ModalBody, ModalBodyProps, ModalContent, ModalContentProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, Navbar, NavbarBrand, NavbarBrandProps, NavbarContent, NavbarContentProps, NavbarItem, NavbarItemProps, NavbarMenu, NavbarMenuItem, NavbarMenuItemProps, NavbarMenuProps, NavbarMenuToggle, NavbarMenuToggleProps, NavbarProps, NumberInput, NumberInputProps, Pagination, PaginationCursor, PaginationCursorProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Progress, ProgressProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RangeCalendar, RangeCalendarProps, ScrollShadow, ScrollShadowProps, Select, SelectItem, SelectItemProps, SelectProps, SelectSection, SelectSectionProps, Skeleton, SkeletonProps, Slider, SliderProps, Snippet, SnippetProps, Spacer, SpacerProps, Spinner, SpinnerProps, Switch, SwitchProps, Tab, TabItemProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableColumn, TableColumnProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAreaProps, Textarea, TimeInput, TimeInputProps, Tooltip, TooltipProps, UseDisclosureProps, useDisclosure } from '@heroui/react';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import { ComponentType, PropsWithChildren, SVGProps } from 'react';
|
|
5
|
+
import { ComponentType, PropsWithChildren, ReactNode, SVGProps } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ToasterProps } from 'react-hot-toast';
|
|
8
8
|
export { ToastOptions, Toaster, ToasterProps, toast } from 'react-hot-toast';
|
|
9
|
+
import { FieldValues, UseFormReturn } from 'react-hook-form';
|
|
10
|
+
export * from 'react-hook-form';
|
|
11
|
+
import * as react_dropzone from 'react-dropzone';
|
|
12
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
13
|
+
export * from 'react-dropzone';
|
|
14
|
+
import { PinataSDK } from 'pinata';
|
|
15
|
+
export * from 'pinata';
|
|
9
16
|
export { clsx } from 'clsx';
|
|
10
17
|
export * from 'jotai';
|
|
11
18
|
export * from 'jotai/utils';
|
|
19
|
+
export * from 'react-window';
|
|
20
|
+
export * from 'react-window-infinite-loader';
|
|
21
|
+
export * from 'react-virtualized-auto-sizer';
|
|
22
|
+
export { z } from 'zod';
|
|
23
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
12
24
|
|
|
13
25
|
declare const StyledBadge: ComponentType<BadgeProps>;
|
|
14
26
|
|
|
@@ -309,6 +321,7 @@ declare const StyledDivider: react.ForwardRefExoticComponent<Omit<{
|
|
|
309
321
|
|
|
310
322
|
declare const StyledInput: ComponentType<InputProps>;
|
|
311
323
|
declare const StyledNumberInput: ComponentType<NumberInputProps>;
|
|
324
|
+
declare const StyledTextArea: ComponentType<TextAreaProps>;
|
|
312
325
|
|
|
313
326
|
declare const StyledModal: ComponentType<ModalProps & {
|
|
314
327
|
variant?: "default";
|
|
@@ -336,6 +349,79 @@ declare const StyledTooltip: ComponentType<TooltipProps & {
|
|
|
336
349
|
layout?: "xs" | "sm" | "md" | "lg";
|
|
337
350
|
}>;
|
|
338
351
|
|
|
352
|
+
type RHFormProps<T extends FieldValues = any> = PropsWithChildren<{
|
|
353
|
+
methods: UseFormReturn<T>;
|
|
354
|
+
onSubmit?: (data: T) => Promise<void>;
|
|
355
|
+
className?: string;
|
|
356
|
+
}>;
|
|
357
|
+
declare function RHForm<T extends FieldValues = any>({ methods, onSubmit, className, children, }: RHFormProps<T>): react_jsx_runtime.JSX.Element;
|
|
358
|
+
|
|
359
|
+
type RHInputProps = InputProps & {
|
|
360
|
+
name: string;
|
|
361
|
+
};
|
|
362
|
+
declare function RHInput({ name, label, ...props }: RHInputProps): react_jsx_runtime.JSX.Element;
|
|
363
|
+
|
|
364
|
+
type RHNumberInputProps = NumberInputProps & {
|
|
365
|
+
name: string;
|
|
366
|
+
};
|
|
367
|
+
declare function RHNumberInput({ name, label, ...props }: RHNumberInputProps): react_jsx_runtime.JSX.Element;
|
|
368
|
+
|
|
369
|
+
type RHTextAreaProps = TextAreaProps & {
|
|
370
|
+
name: string;
|
|
371
|
+
};
|
|
372
|
+
declare function RHTextArea({ name, label, ...props }: RHTextAreaProps): react_jsx_runtime.JSX.Element;
|
|
373
|
+
|
|
374
|
+
type RHUploadProps = {
|
|
375
|
+
name: string;
|
|
376
|
+
label?: string;
|
|
377
|
+
placeholder?: string;
|
|
378
|
+
hint?: string;
|
|
379
|
+
icon?: ReactNode;
|
|
380
|
+
upload?: (file: File) => Promise<string>;
|
|
381
|
+
accept?: DropzoneOptions["accept"];
|
|
382
|
+
maxSize?: number;
|
|
383
|
+
maxFiles?: number;
|
|
384
|
+
radius?: "sm" | "md" | "lg" | "none" | "full";
|
|
385
|
+
className?: string;
|
|
386
|
+
classNames?: {
|
|
387
|
+
wrapper?: string;
|
|
388
|
+
label?: string;
|
|
389
|
+
upload?: string;
|
|
390
|
+
icon?: string;
|
|
391
|
+
image?: string;
|
|
392
|
+
placeholder?: string;
|
|
393
|
+
uploadButton?: string;
|
|
394
|
+
hint?: string;
|
|
395
|
+
error?: string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
declare function RHUpload({ name, label, placeholder, hint, icon, upload, accept, maxSize, // 10MB
|
|
399
|
+
maxFiles, radius, className, classNames, }: RHUploadProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
|
|
401
|
+
declare const PinataContext: react.Context<PinataSDK>;
|
|
402
|
+
declare function PinataProvider({ client, children, }: PropsWithChildren<{
|
|
403
|
+
client: PinataSDK;
|
|
404
|
+
}>): react_jsx_runtime.JSX.Element;
|
|
405
|
+
declare function usePinata(): PinataSDK;
|
|
406
|
+
|
|
407
|
+
type HorizontalScrollContainerProps = PropsWithChildren<{
|
|
408
|
+
/** the amount of pixels to scroll when the user clicks the arrow buttons. */
|
|
409
|
+
scrollAmount?: number;
|
|
410
|
+
/** custom styles */
|
|
411
|
+
className?: string;
|
|
412
|
+
classNames?: {
|
|
413
|
+
root?: string;
|
|
414
|
+
content?: string;
|
|
415
|
+
leftArrow?: string;
|
|
416
|
+
leftArrowButton?: string;
|
|
417
|
+
leftArrowIcon?: string;
|
|
418
|
+
rightArrow?: string;
|
|
419
|
+
rightArrowButton?: string;
|
|
420
|
+
rightArrowIcon?: string;
|
|
421
|
+
};
|
|
422
|
+
}>;
|
|
423
|
+
declare function HorizontalScrollContainer({ scrollAmount, className, classNames, children, }: HorizontalScrollContainerProps): react_jsx_runtime.JSX.Element;
|
|
424
|
+
|
|
339
425
|
type SortableProps = PropsWithChildren<{
|
|
340
426
|
/** current sort direction */
|
|
341
427
|
sort?: "asc" | "desc";
|
|
@@ -344,6 +430,35 @@ type SortableProps = PropsWithChildren<{
|
|
|
344
430
|
}>;
|
|
345
431
|
declare function Sortable({ sort, onSortChange, children }: SortableProps): react_jsx_runtime.JSX.Element;
|
|
346
432
|
|
|
433
|
+
type UploadProps = PropsWithChildren<DropzoneOptions>;
|
|
434
|
+
type UploadRef = {
|
|
435
|
+
open: () => void;
|
|
436
|
+
};
|
|
437
|
+
declare const Upload: react.ForwardRefExoticComponent<Pick<react.HTMLProps<HTMLElement>, "onDragEnter" | "onDragLeave" | "onDragOver" | "multiple"> & {
|
|
438
|
+
accept?: react_dropzone.Accept;
|
|
439
|
+
minSize?: number;
|
|
440
|
+
maxSize?: number;
|
|
441
|
+
maxFiles?: number;
|
|
442
|
+
preventDropOnDocument?: boolean;
|
|
443
|
+
noClick?: boolean;
|
|
444
|
+
noKeyboard?: boolean;
|
|
445
|
+
noDrag?: boolean;
|
|
446
|
+
noDragEventsBubbling?: boolean;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: react_dropzone.FileRejection[], event: react_dropzone.DropEvent) => void;
|
|
449
|
+
onDropAccepted?: <T extends File>(files: T[], event: react_dropzone.DropEvent) => void;
|
|
450
|
+
onDropRejected?: (fileRejections: react_dropzone.FileRejection[], event: react_dropzone.DropEvent) => void;
|
|
451
|
+
getFilesFromEvent?: (event: react_dropzone.DropEvent) => Promise<Array<File | DataTransferItem>>;
|
|
452
|
+
onFileDialogCancel?: () => void;
|
|
453
|
+
onFileDialogOpen?: () => void;
|
|
454
|
+
onError?: (err: Error) => void;
|
|
455
|
+
validator?: <T extends File>(file: T) => react_dropzone.FileError | readonly react_dropzone.FileError[] | null;
|
|
456
|
+
useFsAccessApi?: boolean;
|
|
457
|
+
autoFocus?: boolean;
|
|
458
|
+
} & {
|
|
459
|
+
children?: react.ReactNode | undefined;
|
|
460
|
+
} & react.RefAttributes<UploadRef>>;
|
|
461
|
+
|
|
347
462
|
declare function useCopyToClipboard(): (text: string, toastMessage?: string) => void;
|
|
348
463
|
|
|
349
464
|
declare function useScreen(): {
|
|
@@ -394,6 +509,8 @@ declare function GiftIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
394
509
|
|
|
395
510
|
declare function HomeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
396
511
|
|
|
512
|
+
declare function ImageGalleryIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
513
|
+
|
|
397
514
|
declare function InfoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
398
515
|
|
|
399
516
|
declare function KlineAreaIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -416,16 +533,22 @@ declare function KlineLineIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtim
|
|
|
416
533
|
|
|
417
534
|
declare function LightningIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
418
535
|
|
|
536
|
+
declare function LogoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
537
|
+
|
|
419
538
|
declare function MaximizeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
420
539
|
|
|
421
540
|
declare function MenuIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
422
541
|
|
|
542
|
+
declare function MiniLogoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
543
|
+
|
|
423
544
|
declare function MinimizeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
424
545
|
|
|
425
546
|
declare function PauseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
426
547
|
|
|
427
548
|
declare function PeopleIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
428
549
|
|
|
550
|
+
declare function PlusIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
551
|
+
|
|
429
552
|
declare function PrivacyPolicyIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
430
553
|
|
|
431
554
|
declare function PulseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -436,6 +559,8 @@ declare function RefreshIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.
|
|
|
436
559
|
|
|
437
560
|
declare function RestoreWindowIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
438
561
|
|
|
562
|
+
declare function RobotIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
563
|
+
|
|
439
564
|
declare function RocketIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
440
565
|
|
|
441
566
|
declare function SearchIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -462,10 +587,14 @@ declare function TelegramIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime
|
|
|
462
587
|
|
|
463
588
|
declare function TermsOfServiceIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
464
589
|
|
|
590
|
+
declare function TimerIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
591
|
+
|
|
465
592
|
declare function TradeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
466
593
|
|
|
467
594
|
declare function TranslateIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
468
595
|
|
|
596
|
+
declare function TrashIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
597
|
+
|
|
469
598
|
declare function TriangleDownIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
470
599
|
|
|
471
600
|
declare function TriangleUpIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -490,6 +619,14 @@ declare function XCloseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.J
|
|
|
490
619
|
|
|
491
620
|
declare function ZapFastIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
492
621
|
|
|
622
|
+
declare function LightTgIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
623
|
+
|
|
624
|
+
declare function LightDiscordIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
625
|
+
|
|
626
|
+
declare function SmallLightTgIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
627
|
+
|
|
628
|
+
declare function SmallLightDiscordIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
629
|
+
|
|
493
630
|
declare global {
|
|
494
631
|
interface SvgIconProps extends SVGProps<SVGSVGElement> {
|
|
495
632
|
}
|
|
@@ -503,6 +640,6 @@ declare global {
|
|
|
503
640
|
};
|
|
504
641
|
}
|
|
505
642
|
}
|
|
506
|
-
declare const _default: "0.1.
|
|
643
|
+
declare const _default: "0.1.8";
|
|
507
644
|
|
|
508
|
-
export { BundlesIcon, CameraIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CoinsIcon, CookIcon, CopyIcon, CrownIcon, DiscordIcon, DraggableIcon, EditIcon, EmptyIcon, ExclamationIcon, type ExtendedButtonProps, type ExtendedColor, FAQIcon, FilterIcon, GiftIcon, HomeIcon, InfoIcon, KlineAreaIcon, KlineBarsIcon, KlineBaseLineIcon, KlineCandlesIcon, KlineColumnsIcon, KlineHelkinAshiIcon, KlineHighLowIcon, KlineHollowCandlesIcon, KlineLineIcon, LightningIcon, MaximizeIcon, MenuIcon, MinimizeIcon, PauseIcon, PeopleIcon, PrivacyPolicyIcon, PulseIcon, RatIcon, RefreshIcon, RestoreWindowIcon, RocketIcon, SearchIcon, SettingsIcon, ShieldIcon, ShieldOffIcon, ShieldPlusIcon, SignInIcon, SignOutIcon, SlippageIcon, SniperIcon, Sortable, type SortableProps, StyledBadge, StyledButton, StyledDivider, StyledInput, StyledModal, StyledNumberInput, StyledPopover, StyledTable, StyledTabs, StyledToaster, StyledTooltip, SupportIcon, TelegramIcon, TermsOfServiceIcon, TradeIcon, TranslateIcon, TriangleDownIcon, TriangleUpIcon, TwitterIcon, UnMaximizeIcon, UserGuideIcon, UserIcon, UserWithStarBadgeIcon, VerifiedIcon, WalletIcon, WebsiteIcon, XCloseIcon, ZapFastIcon, useCopyToClipboard, useMediaQuery, useScreen, _default as version };
|
|
645
|
+
export { BundlesIcon, CameraIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CoinsIcon, CookIcon, CopyIcon, CrownIcon, DiscordIcon, DraggableIcon, EditIcon, EmptyIcon, ExclamationIcon, type ExtendedButtonProps, type ExtendedColor, FAQIcon, FilterIcon, GiftIcon, HomeIcon, HorizontalScrollContainer, type HorizontalScrollContainerProps, ImageGalleryIcon, InfoIcon, KlineAreaIcon, KlineBarsIcon, KlineBaseLineIcon, KlineCandlesIcon, KlineColumnsIcon, KlineHelkinAshiIcon, KlineHighLowIcon, KlineHollowCandlesIcon, KlineLineIcon, LightDiscordIcon, LightTgIcon, LightningIcon, LogoIcon, MaximizeIcon, MenuIcon, MiniLogoIcon, MinimizeIcon, PauseIcon, PeopleIcon, PinataContext, PinataProvider, PlusIcon, PrivacyPolicyIcon, PulseIcon, RHForm, type RHFormProps, RHInput, type RHInputProps, RHNumberInput, type RHNumberInputProps, RHTextArea, type RHTextAreaProps, RHUpload, type RHUploadProps, RatIcon, RefreshIcon, RestoreWindowIcon, RobotIcon, RocketIcon, SearchIcon, SettingsIcon, ShieldIcon, ShieldOffIcon, ShieldPlusIcon, SignInIcon, SignOutIcon, SlippageIcon, SmallLightDiscordIcon, SmallLightTgIcon, SniperIcon, Sortable, type SortableProps, StyledBadge, StyledButton, StyledDivider, StyledInput, StyledModal, StyledNumberInput, StyledPopover, StyledTable, StyledTabs, StyledTextArea, StyledToaster, StyledTooltip, SupportIcon, TelegramIcon, TermsOfServiceIcon, TimerIcon, TradeIcon, TranslateIcon, TrashIcon, TriangleDownIcon, TriangleUpIcon, TwitterIcon, UnMaximizeIcon, Upload, type UploadProps, type UploadRef, UserGuideIcon, UserIcon, UserWithStarBadgeIcon, VerifiedIcon, WalletIcon, WebsiteIcon, XCloseIcon, ZapFastIcon, useCopyToClipboard, useMediaQuery, usePinata, useScreen, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import * as _heroui_react from '@heroui/react';
|
|
2
|
-
import { BadgeProps, ButtonProps, InputProps, NumberInputProps, ModalProps, PopoverProps, TableProps, TabsProps, TooltipProps } from '@heroui/react';
|
|
2
|
+
import { BadgeProps, ButtonProps, InputProps, NumberInputProps, TextAreaProps, ModalProps, PopoverProps, TableProps, TabsProps, TooltipProps } from '@heroui/react';
|
|
3
3
|
export { Accordion, AccordionItem, AccordionItemIndicatorProps, AccordionItemProps, AccordionProps, Alert, AlertProps, Autocomplete, AutocompleteItem, AutocompleteItemProps, AutocompleteProps, AutocompleteSection, AutocompleteSectionProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, Badge, BadgeProps, BreadcrumbItem, BreadcrumbItemProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, CardBody, CardFooter, CardFooterProps, CardHeader, CardProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, Chip, ChipProps, CircularProgress, CircularProgressProps, Code, CodeProps, DateInput, DateInputProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Divider, DividerProps, Drawer, DrawerBody, DrawerBodyProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, Dropdown, DropdownItem, DropdownItemProps, DropdownMenu, DropdownMenuProps, DropdownProps, DropdownSection, DropdownSectionProps, DropdownTrigger, DropdownTriggerProps, Image, ImageProps, Input, InputOtp, InputOtpProps, InputProps, Kbd, KbdProps, Link, LinkProps, Listbox, ListboxItem, ListboxItemProps, ListboxProps, ListboxSection, ListboxSectionProps, Modal, ModalBody, ModalBodyProps, ModalContent, ModalContentProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, Navbar, NavbarBrand, NavbarBrandProps, NavbarContent, NavbarContentProps, NavbarItem, NavbarItemProps, NavbarMenu, NavbarMenuItem, NavbarMenuItemProps, NavbarMenuProps, NavbarMenuToggle, NavbarMenuToggleProps, NavbarProps, NumberInput, NumberInputProps, Pagination, PaginationCursor, PaginationCursorProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Progress, ProgressProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RangeCalendar, RangeCalendarProps, ScrollShadow, ScrollShadowProps, Select, SelectItem, SelectItemProps, SelectProps, SelectSection, SelectSectionProps, Skeleton, SkeletonProps, Slider, SliderProps, Snippet, SnippetProps, Spacer, SpacerProps, Spinner, SpinnerProps, Switch, SwitchProps, Tab, TabItemProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableColumn, TableColumnProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAreaProps, Textarea, TimeInput, TimeInputProps, Tooltip, TooltipProps, UseDisclosureProps, useDisclosure } from '@heroui/react';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import { ComponentType, PropsWithChildren, SVGProps } from 'react';
|
|
5
|
+
import { ComponentType, PropsWithChildren, ReactNode, SVGProps } from 'react';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ToasterProps } from 'react-hot-toast';
|
|
8
8
|
export { ToastOptions, Toaster, ToasterProps, toast } from 'react-hot-toast';
|
|
9
|
+
import { FieldValues, UseFormReturn } from 'react-hook-form';
|
|
10
|
+
export * from 'react-hook-form';
|
|
11
|
+
import * as react_dropzone from 'react-dropzone';
|
|
12
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
13
|
+
export * from 'react-dropzone';
|
|
14
|
+
import { PinataSDK } from 'pinata';
|
|
15
|
+
export * from 'pinata';
|
|
9
16
|
export { clsx } from 'clsx';
|
|
10
17
|
export * from 'jotai';
|
|
11
18
|
export * from 'jotai/utils';
|
|
19
|
+
export * from 'react-window';
|
|
20
|
+
export * from 'react-window-infinite-loader';
|
|
21
|
+
export * from 'react-virtualized-auto-sizer';
|
|
22
|
+
export { z } from 'zod';
|
|
23
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
12
24
|
|
|
13
25
|
declare const StyledBadge: ComponentType<BadgeProps>;
|
|
14
26
|
|
|
@@ -309,6 +321,7 @@ declare const StyledDivider: react.ForwardRefExoticComponent<Omit<{
|
|
|
309
321
|
|
|
310
322
|
declare const StyledInput: ComponentType<InputProps>;
|
|
311
323
|
declare const StyledNumberInput: ComponentType<NumberInputProps>;
|
|
324
|
+
declare const StyledTextArea: ComponentType<TextAreaProps>;
|
|
312
325
|
|
|
313
326
|
declare const StyledModal: ComponentType<ModalProps & {
|
|
314
327
|
variant?: "default";
|
|
@@ -336,6 +349,79 @@ declare const StyledTooltip: ComponentType<TooltipProps & {
|
|
|
336
349
|
layout?: "xs" | "sm" | "md" | "lg";
|
|
337
350
|
}>;
|
|
338
351
|
|
|
352
|
+
type RHFormProps<T extends FieldValues = any> = PropsWithChildren<{
|
|
353
|
+
methods: UseFormReturn<T>;
|
|
354
|
+
onSubmit?: (data: T) => Promise<void>;
|
|
355
|
+
className?: string;
|
|
356
|
+
}>;
|
|
357
|
+
declare function RHForm<T extends FieldValues = any>({ methods, onSubmit, className, children, }: RHFormProps<T>): react_jsx_runtime.JSX.Element;
|
|
358
|
+
|
|
359
|
+
type RHInputProps = InputProps & {
|
|
360
|
+
name: string;
|
|
361
|
+
};
|
|
362
|
+
declare function RHInput({ name, label, ...props }: RHInputProps): react_jsx_runtime.JSX.Element;
|
|
363
|
+
|
|
364
|
+
type RHNumberInputProps = NumberInputProps & {
|
|
365
|
+
name: string;
|
|
366
|
+
};
|
|
367
|
+
declare function RHNumberInput({ name, label, ...props }: RHNumberInputProps): react_jsx_runtime.JSX.Element;
|
|
368
|
+
|
|
369
|
+
type RHTextAreaProps = TextAreaProps & {
|
|
370
|
+
name: string;
|
|
371
|
+
};
|
|
372
|
+
declare function RHTextArea({ name, label, ...props }: RHTextAreaProps): react_jsx_runtime.JSX.Element;
|
|
373
|
+
|
|
374
|
+
type RHUploadProps = {
|
|
375
|
+
name: string;
|
|
376
|
+
label?: string;
|
|
377
|
+
placeholder?: string;
|
|
378
|
+
hint?: string;
|
|
379
|
+
icon?: ReactNode;
|
|
380
|
+
upload?: (file: File) => Promise<string>;
|
|
381
|
+
accept?: DropzoneOptions["accept"];
|
|
382
|
+
maxSize?: number;
|
|
383
|
+
maxFiles?: number;
|
|
384
|
+
radius?: "sm" | "md" | "lg" | "none" | "full";
|
|
385
|
+
className?: string;
|
|
386
|
+
classNames?: {
|
|
387
|
+
wrapper?: string;
|
|
388
|
+
label?: string;
|
|
389
|
+
upload?: string;
|
|
390
|
+
icon?: string;
|
|
391
|
+
image?: string;
|
|
392
|
+
placeholder?: string;
|
|
393
|
+
uploadButton?: string;
|
|
394
|
+
hint?: string;
|
|
395
|
+
error?: string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
declare function RHUpload({ name, label, placeholder, hint, icon, upload, accept, maxSize, // 10MB
|
|
399
|
+
maxFiles, radius, className, classNames, }: RHUploadProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
|
|
401
|
+
declare const PinataContext: react.Context<PinataSDK>;
|
|
402
|
+
declare function PinataProvider({ client, children, }: PropsWithChildren<{
|
|
403
|
+
client: PinataSDK;
|
|
404
|
+
}>): react_jsx_runtime.JSX.Element;
|
|
405
|
+
declare function usePinata(): PinataSDK;
|
|
406
|
+
|
|
407
|
+
type HorizontalScrollContainerProps = PropsWithChildren<{
|
|
408
|
+
/** the amount of pixels to scroll when the user clicks the arrow buttons. */
|
|
409
|
+
scrollAmount?: number;
|
|
410
|
+
/** custom styles */
|
|
411
|
+
className?: string;
|
|
412
|
+
classNames?: {
|
|
413
|
+
root?: string;
|
|
414
|
+
content?: string;
|
|
415
|
+
leftArrow?: string;
|
|
416
|
+
leftArrowButton?: string;
|
|
417
|
+
leftArrowIcon?: string;
|
|
418
|
+
rightArrow?: string;
|
|
419
|
+
rightArrowButton?: string;
|
|
420
|
+
rightArrowIcon?: string;
|
|
421
|
+
};
|
|
422
|
+
}>;
|
|
423
|
+
declare function HorizontalScrollContainer({ scrollAmount, className, classNames, children, }: HorizontalScrollContainerProps): react_jsx_runtime.JSX.Element;
|
|
424
|
+
|
|
339
425
|
type SortableProps = PropsWithChildren<{
|
|
340
426
|
/** current sort direction */
|
|
341
427
|
sort?: "asc" | "desc";
|
|
@@ -344,6 +430,35 @@ type SortableProps = PropsWithChildren<{
|
|
|
344
430
|
}>;
|
|
345
431
|
declare function Sortable({ sort, onSortChange, children }: SortableProps): react_jsx_runtime.JSX.Element;
|
|
346
432
|
|
|
433
|
+
type UploadProps = PropsWithChildren<DropzoneOptions>;
|
|
434
|
+
type UploadRef = {
|
|
435
|
+
open: () => void;
|
|
436
|
+
};
|
|
437
|
+
declare const Upload: react.ForwardRefExoticComponent<Pick<react.HTMLProps<HTMLElement>, "onDragEnter" | "onDragLeave" | "onDragOver" | "multiple"> & {
|
|
438
|
+
accept?: react_dropzone.Accept;
|
|
439
|
+
minSize?: number;
|
|
440
|
+
maxSize?: number;
|
|
441
|
+
maxFiles?: number;
|
|
442
|
+
preventDropOnDocument?: boolean;
|
|
443
|
+
noClick?: boolean;
|
|
444
|
+
noKeyboard?: boolean;
|
|
445
|
+
noDrag?: boolean;
|
|
446
|
+
noDragEventsBubbling?: boolean;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: react_dropzone.FileRejection[], event: react_dropzone.DropEvent) => void;
|
|
449
|
+
onDropAccepted?: <T extends File>(files: T[], event: react_dropzone.DropEvent) => void;
|
|
450
|
+
onDropRejected?: (fileRejections: react_dropzone.FileRejection[], event: react_dropzone.DropEvent) => void;
|
|
451
|
+
getFilesFromEvent?: (event: react_dropzone.DropEvent) => Promise<Array<File | DataTransferItem>>;
|
|
452
|
+
onFileDialogCancel?: () => void;
|
|
453
|
+
onFileDialogOpen?: () => void;
|
|
454
|
+
onError?: (err: Error) => void;
|
|
455
|
+
validator?: <T extends File>(file: T) => react_dropzone.FileError | readonly react_dropzone.FileError[] | null;
|
|
456
|
+
useFsAccessApi?: boolean;
|
|
457
|
+
autoFocus?: boolean;
|
|
458
|
+
} & {
|
|
459
|
+
children?: react.ReactNode | undefined;
|
|
460
|
+
} & react.RefAttributes<UploadRef>>;
|
|
461
|
+
|
|
347
462
|
declare function useCopyToClipboard(): (text: string, toastMessage?: string) => void;
|
|
348
463
|
|
|
349
464
|
declare function useScreen(): {
|
|
@@ -394,6 +509,8 @@ declare function GiftIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX
|
|
|
394
509
|
|
|
395
510
|
declare function HomeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
396
511
|
|
|
512
|
+
declare function ImageGalleryIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
513
|
+
|
|
397
514
|
declare function InfoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
398
515
|
|
|
399
516
|
declare function KlineAreaIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -416,16 +533,22 @@ declare function KlineLineIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtim
|
|
|
416
533
|
|
|
417
534
|
declare function LightningIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
418
535
|
|
|
536
|
+
declare function LogoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
537
|
+
|
|
419
538
|
declare function MaximizeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
420
539
|
|
|
421
540
|
declare function MenuIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
422
541
|
|
|
542
|
+
declare function MiniLogoIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
543
|
+
|
|
423
544
|
declare function MinimizeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
424
545
|
|
|
425
546
|
declare function PauseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
426
547
|
|
|
427
548
|
declare function PeopleIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
428
549
|
|
|
550
|
+
declare function PlusIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
551
|
+
|
|
429
552
|
declare function PrivacyPolicyIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
430
553
|
|
|
431
554
|
declare function PulseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -436,6 +559,8 @@ declare function RefreshIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.
|
|
|
436
559
|
|
|
437
560
|
declare function RestoreWindowIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
438
561
|
|
|
562
|
+
declare function RobotIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
563
|
+
|
|
439
564
|
declare function RocketIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
440
565
|
|
|
441
566
|
declare function SearchIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -462,10 +587,14 @@ declare function TelegramIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime
|
|
|
462
587
|
|
|
463
588
|
declare function TermsOfServiceIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
464
589
|
|
|
590
|
+
declare function TimerIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
591
|
+
|
|
465
592
|
declare function TradeIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
466
593
|
|
|
467
594
|
declare function TranslateIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
468
595
|
|
|
596
|
+
declare function TrashIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
597
|
+
|
|
469
598
|
declare function TriangleDownIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
470
599
|
|
|
471
600
|
declare function TriangleUpIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -490,6 +619,14 @@ declare function XCloseIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.J
|
|
|
490
619
|
|
|
491
620
|
declare function ZapFastIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
492
621
|
|
|
622
|
+
declare function LightTgIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
623
|
+
|
|
624
|
+
declare function LightDiscordIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
625
|
+
|
|
626
|
+
declare function SmallLightTgIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
627
|
+
|
|
628
|
+
declare function SmallLightDiscordIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
629
|
+
|
|
493
630
|
declare global {
|
|
494
631
|
interface SvgIconProps extends SVGProps<SVGSVGElement> {
|
|
495
632
|
}
|
|
@@ -503,6 +640,6 @@ declare global {
|
|
|
503
640
|
};
|
|
504
641
|
}
|
|
505
642
|
}
|
|
506
|
-
declare const _default: "0.1.
|
|
643
|
+
declare const _default: "0.1.8";
|
|
507
644
|
|
|
508
|
-
export { BundlesIcon, CameraIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CoinsIcon, CookIcon, CopyIcon, CrownIcon, DiscordIcon, DraggableIcon, EditIcon, EmptyIcon, ExclamationIcon, type ExtendedButtonProps, type ExtendedColor, FAQIcon, FilterIcon, GiftIcon, HomeIcon, InfoIcon, KlineAreaIcon, KlineBarsIcon, KlineBaseLineIcon, KlineCandlesIcon, KlineColumnsIcon, KlineHelkinAshiIcon, KlineHighLowIcon, KlineHollowCandlesIcon, KlineLineIcon, LightningIcon, MaximizeIcon, MenuIcon, MinimizeIcon, PauseIcon, PeopleIcon, PrivacyPolicyIcon, PulseIcon, RatIcon, RefreshIcon, RestoreWindowIcon, RocketIcon, SearchIcon, SettingsIcon, ShieldIcon, ShieldOffIcon, ShieldPlusIcon, SignInIcon, SignOutIcon, SlippageIcon, SniperIcon, Sortable, type SortableProps, StyledBadge, StyledButton, StyledDivider, StyledInput, StyledModal, StyledNumberInput, StyledPopover, StyledTable, StyledTabs, StyledToaster, StyledTooltip, SupportIcon, TelegramIcon, TermsOfServiceIcon, TradeIcon, TranslateIcon, TriangleDownIcon, TriangleUpIcon, TwitterIcon, UnMaximizeIcon, UserGuideIcon, UserIcon, UserWithStarBadgeIcon, VerifiedIcon, WalletIcon, WebsiteIcon, XCloseIcon, ZapFastIcon, useCopyToClipboard, useMediaQuery, useScreen, _default as version };
|
|
645
|
+
export { BundlesIcon, CameraIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CoinsIcon, CookIcon, CopyIcon, CrownIcon, DiscordIcon, DraggableIcon, EditIcon, EmptyIcon, ExclamationIcon, type ExtendedButtonProps, type ExtendedColor, FAQIcon, FilterIcon, GiftIcon, HomeIcon, HorizontalScrollContainer, type HorizontalScrollContainerProps, ImageGalleryIcon, InfoIcon, KlineAreaIcon, KlineBarsIcon, KlineBaseLineIcon, KlineCandlesIcon, KlineColumnsIcon, KlineHelkinAshiIcon, KlineHighLowIcon, KlineHollowCandlesIcon, KlineLineIcon, LightDiscordIcon, LightTgIcon, LightningIcon, LogoIcon, MaximizeIcon, MenuIcon, MiniLogoIcon, MinimizeIcon, PauseIcon, PeopleIcon, PinataContext, PinataProvider, PlusIcon, PrivacyPolicyIcon, PulseIcon, RHForm, type RHFormProps, RHInput, type RHInputProps, RHNumberInput, type RHNumberInputProps, RHTextArea, type RHTextAreaProps, RHUpload, type RHUploadProps, RatIcon, RefreshIcon, RestoreWindowIcon, RobotIcon, RocketIcon, SearchIcon, SettingsIcon, ShieldIcon, ShieldOffIcon, ShieldPlusIcon, SignInIcon, SignOutIcon, SlippageIcon, SmallLightDiscordIcon, SmallLightTgIcon, SniperIcon, Sortable, type SortableProps, StyledBadge, StyledButton, StyledDivider, StyledInput, StyledModal, StyledNumberInput, StyledPopover, StyledTable, StyledTabs, StyledTextArea, StyledToaster, StyledTooltip, SupportIcon, TelegramIcon, TermsOfServiceIcon, TimerIcon, TradeIcon, TranslateIcon, TrashIcon, TriangleDownIcon, TriangleUpIcon, TwitterIcon, UnMaximizeIcon, Upload, type UploadProps, type UploadRef, UserGuideIcon, UserIcon, UserWithStarBadgeIcon, VerifiedIcon, WalletIcon, WebsiteIcon, XCloseIcon, ZapFastIcon, useCopyToClipboard, useMediaQuery, usePinata, useScreen, _default as version };
|