@socprime/react-ui 0.0.5
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/CHANGELOG.md +56 -0
- package/LICENSE +21 -0
- package/README.md +537 -0
- package/attack-flow.d.ts +16 -0
- package/charts.d.ts +32 -0
- package/decorators/index.js +8 -0
- package/decorators/withRouter.js +10 -0
- package/decorators/withTheme.js +10 -0
- package/decorators.d.ts +10 -0
- package/domain.d.ts +23 -0
- package/editor.d.ts +25 -0
- package/index.d.ts +702 -0
- package/lib/cn.js +8 -0
- package/lib/theme.js +26 -0
- package/lib/useFullscreen.js +52 -0
- package/lib/useListenOnResizeDebounce.js +22 -0
- package/lib/useThemeColors.js +39 -0
- package/package.json +113 -0
- package/preset/createConfig.js +98 -0
- package/preset/createPreview.js +53 -0
- package/preset/index.js +6 -0
- package/preset/restoreNativeFocus.js +33 -0
- package/preset/types.js +0 -0
- package/preset.d.ts +27 -0
- package/theme-9m7j1UoI.d.ts +5 -0
- package/ui/Accordion/Accordion.js +82 -0
- package/ui/Accordion/AccordionSection.js +41 -0
- package/ui/Accordion/FolderTreeExpandTrigger.js +29 -0
- package/ui/Accordion/chevronVariants.js +31 -0
- package/ui/Accordion/index.js +16 -0
- package/ui/AnimatedDots/AnimatedDots.js +10 -0
- package/ui/AnimatedDots/index.js +4 -0
- package/ui/Aside/Aside.js +34 -0
- package/ui/Aside/index.js +4 -0
- package/ui/AttackFlow/AttackFlow.js +9 -0
- package/ui/AttackFlow/AttackFlowLayout.js +63 -0
- package/ui/AttackFlow/Controls.js +42 -0
- package/ui/AttackFlow/Node.js +47 -0
- package/ui/AttackFlow/OtherNode.js +44 -0
- package/ui/AttackFlow/index.js +4 -0
- package/ui/AttackFlow/prependData.js +153 -0
- package/ui/AttackFlow/types.js +0 -0
- package/ui/AttackFlow/useAttackFlow.js +193 -0
- package/ui/Badge/Badge.js +57 -0
- package/ui/Badge/index.js +5 -0
- package/ui/Button/Button.css +1 -0
- package/ui/Button/Button.js +109 -0
- package/ui/Button/index.js +5 -0
- package/ui/Charts/AreaChartWithGradient.js +79 -0
- package/ui/Charts/index.js +4 -0
- package/ui/Checkbox/Checkbox.js +31 -0
- package/ui/Checkbox/index.js +4 -0
- package/ui/ConditionalContent/ConditionalContent.js +10 -0
- package/ui/ConditionalContent/index.js +4 -0
- package/ui/CorrelationTimer/CorrelationTimer.js +62 -0
- package/ui/CorrelationTimer/index.js +4 -0
- package/ui/DeleteButtonConfirm/DeleteButtonConfirm.js +65 -0
- package/ui/DeleteButtonConfirm/index.js +4 -0
- package/ui/Dialog/ConfirmDialog.js +54 -0
- package/ui/Dialog/DefaultDialog.js +82 -0
- package/ui/Dialog/Dialog.js +120 -0
- package/ui/Dialog/index.js +32 -0
- package/ui/Dropdown/Dropdown.js +204 -0
- package/ui/Dropdown/DropdownsCheckbox.js +102 -0
- package/ui/Dropdown/DropdownsSelect.js +97 -0
- package/ui/Dropdown/index.js +38 -0
- package/ui/Editor/Editor.js +97 -0
- package/ui/Editor/index.js +4 -0
- package/ui/Editor/monacoSetup.js +38 -0
- package/ui/Editor/theme.js +50 -0
- package/ui/Editor/types.js +0 -0
- package/ui/EmptyState/EmptyState.js +26 -0
- package/ui/EmptyState/index.js +4 -0
- package/ui/Field/Field.js +204 -0
- package/ui/Field/index.js +24 -0
- package/ui/HelperText/HelperText.js +7 -0
- package/ui/HelperText/index.js +4 -0
- package/ui/Input/Input.js +40 -0
- package/ui/Input/index.js +4 -0
- package/ui/InputNumber/InputNumber.js +90 -0
- package/ui/InputNumber/index.js +4 -0
- package/ui/InputPassword/InputPassword.js +30 -0
- package/ui/InputPassword/index.js +4 -0
- package/ui/Label/Label.js +13 -0
- package/ui/Label/LabelInfo.js +14 -0
- package/ui/Label/index.js +6 -0
- package/ui/MultiSelect/MultiSelect.js +163 -0
- package/ui/MultiSelect/index.js +4 -0
- package/ui/PageHeader/PageHeader.js +51 -0
- package/ui/PageHeader/index.js +4 -0
- package/ui/Pagination/Pagination.js +97 -0
- package/ui/Pagination/PaginationWrap.js +149 -0
- package/ui/Pagination/index.js +20 -0
- package/ui/RadioGroup/RadioGroup.js +45 -0
- package/ui/RadioGroup/index.js +5 -0
- package/ui/ScrollArea/ScrollArea.js +57 -0
- package/ui/ScrollArea/index.js +5 -0
- package/ui/SearchInput/SearchInput.js +38 -0
- package/ui/SearchInput/index.js +4 -0
- package/ui/SearchInputFields/SearchInputFields.js +53 -0
- package/ui/SearchInputFields/index.js +4 -0
- package/ui/Select/Select.js +155 -0
- package/ui/Select/SelectDefault.js +43 -0
- package/ui/Select/index.js +26 -0
- package/ui/Separator/Separator.js +26 -0
- package/ui/Separator/index.js +4 -0
- package/ui/Severity/Severity.js +11 -0
- package/ui/Severity/index.js +4 -0
- package/ui/Severity/utils.js +53 -0
- package/ui/Skeleton/Skeleton.js +25 -0
- package/ui/Skeleton/index.js +5 -0
- package/ui/Slider/Slider.js +50 -0
- package/ui/Slider/index.js +4 -0
- package/ui/Spinner/Spinner.js +21 -0
- package/ui/Spinner/index.js +5 -0
- package/ui/SpinnerSquare/SpinnerSquare.css +1 -0
- package/ui/SpinnerSquare/SpinnerSquare.js +22 -0
- package/ui/SpinnerSquare/index.js +4 -0
- package/ui/StatisticCard/StatisticCard.js +27 -0
- package/ui/StatisticCard/index.js +4 -0
- package/ui/StatisticCard/types.js +0 -0
- package/ui/Suggestions/Suggestions.js +244 -0
- package/ui/Suggestions/index.js +4 -0
- package/ui/Switch/Switch.js +64 -0
- package/ui/Switch/index.js +4 -0
- package/ui/SyncProcessBar/SyncProcessBar.js +14 -0
- package/ui/SyncProcessBar/index.js +4 -0
- package/ui/Table/GroupHeaderRow.js +36 -0
- package/ui/Table/RowGrouped.js +19 -0
- package/ui/Table/ServerGroupedTableBody.js +89 -0
- package/ui/Table/SortableHeader.js +46 -0
- package/ui/Table/Table.js +110 -0
- package/ui/Table/TableWrap.js +124 -0
- package/ui/Table/columnStyle.js +14 -0
- package/ui/Table/index.js +28 -0
- package/ui/Tabs/Tabs.js +76 -0
- package/ui/Tabs/index.js +4 -0
- package/ui/TextTruncate/TextTruncate.js +107 -0
- package/ui/TextTruncate/index.js +4 -0
- package/ui/Textarea/Textarea.js +20 -0
- package/ui/Textarea/index.js +4 -0
- package/ui/ThemeToggle/ThemeToggle.js +23 -0
- package/ui/ThemeToggle/index.js +4 -0
- package/ui/Toast/Toast.js +23 -0
- package/ui/Toast/index.js +4 -0
- package/ui/Tooltip/Tooltip.js +17 -0
- package/ui/Tooltip/TooltipLayout.js +60 -0
- package/ui/Tooltip/index.js +14 -0
- package/ui/TreeGuide/TreeGuide.js +23 -0
- package/ui/TreeGuide/index.js +5 -0
- package/ui/entries/charts.js +2 -0
- package/ui/entries/domain.js +3 -0
- package/ui/index.js +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ComponentProps, FC } from 'react';
|
|
4
|
+
import { LucideIcon, LucideProps } from 'lucide-react';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
import { LinkProps } from 'react-router-dom';
|
|
8
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
|
+
import { Root, Item } from '@radix-ui/react-radio-group';
|
|
14
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
15
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
16
|
+
import { Separator as Separator$1 } from '@radix-ui/react-separator';
|
|
17
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
18
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
19
|
+
import { ToasterProps } from 'sonner';
|
|
20
|
+
export { ToasterProps } from 'sonner';
|
|
21
|
+
export { T as ThemeName, a as applyTheme, u as useDocumentTheme } from './theme-9m7j1UoI.js';
|
|
22
|
+
import { RowData, Table as Table$1, Header, ColumnDef } from '@tanstack/react-table';
|
|
23
|
+
|
|
24
|
+
type AccordionChevronVariant = 'down' | 'section' | 'tree' | 'tree-sm' | 'none';
|
|
25
|
+
|
|
26
|
+
type AccordionProps = React$1.ComponentProps<typeof AccordionPrimitive.Root>;
|
|
27
|
+
type AccordionItemProps = React$1.ComponentProps<typeof AccordionPrimitive.Item>;
|
|
28
|
+
type AccordionTriggerProps = React$1.ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
29
|
+
chevronPosition?: 'left' | 'right';
|
|
30
|
+
chevronVariant?: AccordionChevronVariant;
|
|
31
|
+
};
|
|
32
|
+
type AccordionContentProps = React$1.ComponentProps<typeof AccordionPrimitive.Content>;
|
|
33
|
+
declare const Accordion: React$1.FC<AccordionProps>;
|
|
34
|
+
declare const AccordionItem: React$1.FC<AccordionItemProps>;
|
|
35
|
+
declare const AccordionTrigger: React$1.FC<AccordionTriggerProps>;
|
|
36
|
+
declare const AccordionContent: React$1.FC<AccordionContentProps>;
|
|
37
|
+
|
|
38
|
+
type AccordionSectionProps = {
|
|
39
|
+
value: string;
|
|
40
|
+
title: React$1.ReactNode;
|
|
41
|
+
description?: React$1.ReactNode;
|
|
42
|
+
children: React$1.ReactNode;
|
|
43
|
+
itemClassName?: string;
|
|
44
|
+
triggerClassName?: string;
|
|
45
|
+
contentClassName?: string;
|
|
46
|
+
};
|
|
47
|
+
declare const AccordionSection: React$1.FC<AccordionSectionProps>;
|
|
48
|
+
|
|
49
|
+
type FolderTreeExpandTriggerProps = Omit<React$1.ComponentProps<typeof AccordionTrigger>, 'chevronPosition' | 'chevronVariant'> & {
|
|
50
|
+
label: string;
|
|
51
|
+
chevronVariant?: Extract<AccordionChevronVariant, 'tree' | 'tree-sm'>;
|
|
52
|
+
};
|
|
53
|
+
declare const FolderTreeExpandTrigger: React$1.FC<FolderTreeExpandTriggerProps>;
|
|
54
|
+
|
|
55
|
+
interface AnimatedDotsProps {
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const AnimatedDots: React.FC<AnimatedDotsProps>;
|
|
59
|
+
|
|
60
|
+
interface AsideTab {
|
|
61
|
+
id: string;
|
|
62
|
+
label?: string;
|
|
63
|
+
icon?: LucideIcon | React.FC;
|
|
64
|
+
to?: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
onClick?: () => void;
|
|
67
|
+
}
|
|
68
|
+
interface AsideProps {
|
|
69
|
+
tabs: AsideTab[];
|
|
70
|
+
activeId?: string;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
declare const Aside: React.FC<AsideProps>;
|
|
74
|
+
|
|
75
|
+
declare const badgeVariants: (props?: ({
|
|
76
|
+
variant?: "secondary" | "outline" | "yellow" | "purple" | "default" | "dark" | "defaultOutline" | "warning" | "critical" | "success" | "lightBlue" | "redViolet" | null | undefined;
|
|
77
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
78
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
79
|
+
onRemove?: () => void;
|
|
80
|
+
}
|
|
81
|
+
declare function Badge({ className, variant, onRemove, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
82
|
+
|
|
83
|
+
type ButtonBaseProps = VariantProps<typeof buttonVariants> & {
|
|
84
|
+
asChild?: boolean;
|
|
85
|
+
loading?: boolean;
|
|
86
|
+
};
|
|
87
|
+
type ButtonAsButton = ButtonBaseProps & React__default.ComponentProps<'button'> & {
|
|
88
|
+
to?: never;
|
|
89
|
+
href?: never;
|
|
90
|
+
};
|
|
91
|
+
type ButtonAsLink = ButtonBaseProps & Omit<LinkProps, 'to'> & {
|
|
92
|
+
to: LinkProps['to'];
|
|
93
|
+
href?: never;
|
|
94
|
+
disabled?: never;
|
|
95
|
+
};
|
|
96
|
+
type ButtonAsAnchor = ButtonBaseProps & React__default.ComponentProps<'a'> & {
|
|
97
|
+
href: string;
|
|
98
|
+
to?: never;
|
|
99
|
+
disabled?: never;
|
|
100
|
+
};
|
|
101
|
+
type ButtonProps = ButtonAsButton | ButtonAsLink | ButtonAsAnchor;
|
|
102
|
+
declare const buttonVariants: (props?: ({
|
|
103
|
+
variant?: "primary" | "primaryOutline" | "secondary" | "secondaryOutline" | "criticalOutline" | "ghost" | "outline" | "icon" | "custom" | null | undefined;
|
|
104
|
+
size?: "s" | "custom" | "xxs" | "xs" | "m" | "l" | "xl" | "lg" | null | undefined;
|
|
105
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
106
|
+
declare const Button: ({ className, variant, size, asChild, loading, children, disabled, to, href, ...props }: ButtonProps) => React__default.JSX.Element;
|
|
107
|
+
|
|
108
|
+
declare const Checkbox: ({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) => React$1.JSX.Element;
|
|
109
|
+
|
|
110
|
+
type CheckboxProps = ComponentProps<typeof Checkbox>;
|
|
111
|
+
|
|
112
|
+
interface ConditionalContentProps {
|
|
113
|
+
loading: boolean;
|
|
114
|
+
loadingContent: React.ReactNode;
|
|
115
|
+
loadedContent: React.ReactNode;
|
|
116
|
+
}
|
|
117
|
+
declare const ConditionalContent: React.FC<ConditionalContentProps>;
|
|
118
|
+
|
|
119
|
+
interface DeleteButtonConfirmProps {
|
|
120
|
+
title: string;
|
|
121
|
+
message: React.ReactNode;
|
|
122
|
+
loading: boolean;
|
|
123
|
+
isOpen?: boolean;
|
|
124
|
+
onOpen?: () => void;
|
|
125
|
+
onClose?: () => void;
|
|
126
|
+
onConfirm: () => void;
|
|
127
|
+
}
|
|
128
|
+
declare const DeleteButtonConfirm: React.FC<DeleteButtonConfirmProps>;
|
|
129
|
+
|
|
130
|
+
interface ConfirmDeleteDialogProps {
|
|
131
|
+
isOpen: boolean;
|
|
132
|
+
onClose: () => void;
|
|
133
|
+
onConfirm: () => Promise<void> | void;
|
|
134
|
+
title: string;
|
|
135
|
+
message: React.ReactNode;
|
|
136
|
+
loading?: boolean;
|
|
137
|
+
}
|
|
138
|
+
declare const ConfirmDeleteDialog: React.FC<ConfirmDeleteDialogProps>;
|
|
139
|
+
|
|
140
|
+
interface DefaultDialogProps {
|
|
141
|
+
isOpen: boolean;
|
|
142
|
+
disabled?: boolean;
|
|
143
|
+
title: React.ReactNode;
|
|
144
|
+
titleDescription?: React.ReactNode;
|
|
145
|
+
children: React.ReactNode;
|
|
146
|
+
loading?: boolean;
|
|
147
|
+
confirmText?: React.ReactNode;
|
|
148
|
+
confirmVariant?: ButtonProps['variant'];
|
|
149
|
+
cancelText?: React.ReactNode;
|
|
150
|
+
className?: string;
|
|
151
|
+
classNameHeader?: string;
|
|
152
|
+
classNameTitle?: string;
|
|
153
|
+
classNameCloseButton?: string;
|
|
154
|
+
hideFooter?: boolean;
|
|
155
|
+
scrollable?: boolean;
|
|
156
|
+
scrollAreaClassName?: string;
|
|
157
|
+
onClose?: () => void;
|
|
158
|
+
onConfirm?: () => void;
|
|
159
|
+
}
|
|
160
|
+
declare const DefaultDialog: React.FC<DefaultDialogProps>;
|
|
161
|
+
|
|
162
|
+
interface DialogProps extends React$1.ComponentProps<typeof DialogPrimitive.Root> {
|
|
163
|
+
}
|
|
164
|
+
interface DialogTriggerProps extends React$1.ComponentProps<typeof DialogPrimitive.Trigger> {
|
|
165
|
+
}
|
|
166
|
+
interface DialogPortalProps extends React$1.ComponentProps<typeof DialogPrimitive.Portal> {
|
|
167
|
+
}
|
|
168
|
+
interface DialogCloseProps extends React$1.ComponentProps<typeof DialogPrimitive.Close> {
|
|
169
|
+
}
|
|
170
|
+
interface DialogOverlayProps extends React$1.ComponentProps<typeof DialogPrimitive.Overlay> {
|
|
171
|
+
}
|
|
172
|
+
interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimitive.Content> {
|
|
173
|
+
hideCloseButton?: boolean;
|
|
174
|
+
}
|
|
175
|
+
interface DialogHeaderProps extends React$1.ComponentProps<'div'> {
|
|
176
|
+
}
|
|
177
|
+
interface DialogFooterProps extends React$1.ComponentProps<'div'> {
|
|
178
|
+
}
|
|
179
|
+
interface DialogTitleProps extends React$1.ComponentProps<typeof DialogPrimitive.Title> {
|
|
180
|
+
}
|
|
181
|
+
interface DialogDescriptionProps extends React$1.ComponentProps<typeof DialogPrimitive.Description> {
|
|
182
|
+
}
|
|
183
|
+
declare const Dialog: React$1.FC<DialogProps>;
|
|
184
|
+
declare const DialogTrigger: React$1.FC<DialogTriggerProps>;
|
|
185
|
+
declare const DialogPortal: React$1.FC<DialogPortalProps>;
|
|
186
|
+
declare const DialogClose: React$1.FC<DialogCloseProps>;
|
|
187
|
+
declare const DialogOverlay: React$1.FC<DialogOverlayProps>;
|
|
188
|
+
declare const DialogContent: React$1.FC<DialogContentProps>;
|
|
189
|
+
declare const DialogHeader: React$1.FC<DialogHeaderProps>;
|
|
190
|
+
declare const DialogFooter: React$1.FC<DialogFooterProps>;
|
|
191
|
+
declare const DialogTitle: React$1.FC<DialogTitleProps>;
|
|
192
|
+
declare const DialogDescription: React$1.FC<DialogDescriptionProps>;
|
|
193
|
+
|
|
194
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React$1.JSX.Element;
|
|
195
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React$1.JSX.Element;
|
|
196
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React$1.JSX.Element;
|
|
197
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React$1.JSX.Element;
|
|
198
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React$1.JSX.Element;
|
|
199
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
200
|
+
inset?: boolean;
|
|
201
|
+
variant?: 'default' | 'destructive';
|
|
202
|
+
}): React$1.JSX.Element;
|
|
203
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React$1.JSX.Element;
|
|
204
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React$1.JSX.Element;
|
|
205
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React$1.JSX.Element;
|
|
206
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
207
|
+
inset?: boolean;
|
|
208
|
+
}): React$1.JSX.Element;
|
|
209
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React$1.JSX.Element;
|
|
210
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React$1.JSX.Element;
|
|
211
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React$1.JSX.Element;
|
|
212
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
213
|
+
inset?: boolean;
|
|
214
|
+
}): React$1.JSX.Element;
|
|
215
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React$1.JSX.Element;
|
|
216
|
+
|
|
217
|
+
interface DropdownsCheckboxOption {
|
|
218
|
+
label: string;
|
|
219
|
+
value: string;
|
|
220
|
+
disabled?: boolean;
|
|
221
|
+
}
|
|
222
|
+
interface DropdownsCheckboxProps {
|
|
223
|
+
options: DropdownsCheckboxOption[];
|
|
224
|
+
value: string[];
|
|
225
|
+
onChange: (value: string[]) => void;
|
|
226
|
+
placeholder?: string;
|
|
227
|
+
className?: string;
|
|
228
|
+
disabled?: boolean;
|
|
229
|
+
loading?: boolean;
|
|
230
|
+
label?: string;
|
|
231
|
+
showSelectAll?: boolean;
|
|
232
|
+
selectAllLabel?: string;
|
|
233
|
+
}
|
|
234
|
+
declare const DropdownsCheckbox: React__default.FC<DropdownsCheckboxProps>;
|
|
235
|
+
|
|
236
|
+
interface DropdownsSelectOption {
|
|
237
|
+
label: string;
|
|
238
|
+
value: string;
|
|
239
|
+
disabled?: boolean;
|
|
240
|
+
icon?: React__default.ReactNode;
|
|
241
|
+
className?: string;
|
|
242
|
+
}
|
|
243
|
+
interface DropdownsSelectProps {
|
|
244
|
+
options: DropdownsSelectOption[];
|
|
245
|
+
value: string | null;
|
|
246
|
+
onChange: (value: string) => void;
|
|
247
|
+
placeholder?: string;
|
|
248
|
+
className?: string;
|
|
249
|
+
disabled?: boolean;
|
|
250
|
+
loading?: boolean;
|
|
251
|
+
label?: string;
|
|
252
|
+
triggerIcon?: React__default.ReactNode;
|
|
253
|
+
triggerClassName?: string;
|
|
254
|
+
}
|
|
255
|
+
declare const DropdownsSelect: React__default.FC<DropdownsSelectProps>;
|
|
256
|
+
|
|
257
|
+
type DropdownMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
258
|
+
type DropdownMenuCheckboxItemProps = ComponentProps<typeof DropdownMenuCheckboxItem>;
|
|
259
|
+
type DropdownMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
260
|
+
type DropdownMenuGroupProps = ComponentProps<typeof DropdownMenuGroup>;
|
|
261
|
+
type DropdownMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
262
|
+
type DropdownMenuLabelProps = ComponentProps<typeof DropdownMenuLabel>;
|
|
263
|
+
type DropdownMenuPortalProps = ComponentProps<typeof DropdownMenuPortal>;
|
|
264
|
+
type DropdownMenuRadioGroupProps = ComponentProps<typeof DropdownMenuRadioGroup>;
|
|
265
|
+
type DropdownMenuRadioItemProps = ComponentProps<typeof DropdownMenuRadioItem>;
|
|
266
|
+
type DropdownMenuSeparatorProps = ComponentProps<typeof DropdownMenuSeparator>;
|
|
267
|
+
type DropdownMenuShortcutProps = ComponentProps<typeof DropdownMenuShortcut>;
|
|
268
|
+
type DropdownMenuSubProps = ComponentProps<typeof DropdownMenuSub>;
|
|
269
|
+
type DropdownMenuSubContentProps = ComponentProps<typeof DropdownMenuSubContent>;
|
|
270
|
+
type DropdownMenuSubTriggerProps = ComponentProps<typeof DropdownMenuSubTrigger>;
|
|
271
|
+
type DropdownMenuTriggerProps = ComponentProps<typeof DropdownMenuTrigger>;
|
|
272
|
+
|
|
273
|
+
interface EmptyStateProps {
|
|
274
|
+
Icon?: React.FC<LucideProps>;
|
|
275
|
+
IconNode?: React.ReactNode;
|
|
276
|
+
title?: string;
|
|
277
|
+
description?: string;
|
|
278
|
+
path?: string;
|
|
279
|
+
action?: React.ReactNode;
|
|
280
|
+
actions?: React.ReactNode;
|
|
281
|
+
className?: string;
|
|
282
|
+
classNameContent?: string;
|
|
283
|
+
}
|
|
284
|
+
declare const EmptyState: React.FC<EmptyStateProps>;
|
|
285
|
+
|
|
286
|
+
interface LabelProps extends React.ComponentProps<typeof LabelPrimitive.Root> {
|
|
287
|
+
component?: 'label' | 'span';
|
|
288
|
+
}
|
|
289
|
+
declare const Label: React.FC<LabelProps>;
|
|
290
|
+
|
|
291
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): React$1.JSX.Element;
|
|
292
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
293
|
+
variant?: 'legend' | 'label';
|
|
294
|
+
}): React$1.JSX.Element;
|
|
295
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): React$1.JSX.Element;
|
|
296
|
+
declare const fieldVariants: (props?: ({
|
|
297
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
298
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
299
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): React$1.JSX.Element;
|
|
300
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): React$1.JSX.Element;
|
|
301
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
302
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): React$1.JSX.Element;
|
|
303
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): React$1.JSX.Element;
|
|
304
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
|
|
305
|
+
children?: React.ReactNode;
|
|
306
|
+
}): React$1.JSX.Element;
|
|
307
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
|
|
308
|
+
errors?: Array<{
|
|
309
|
+
message?: string;
|
|
310
|
+
} | undefined>;
|
|
311
|
+
}): React$1.JSX.Element | null;
|
|
312
|
+
|
|
313
|
+
type FieldProps = ComponentProps<typeof Field>;
|
|
314
|
+
type FieldContentProps = ComponentProps<typeof FieldContent>;
|
|
315
|
+
type FieldDescriptionProps = ComponentProps<typeof FieldDescription>;
|
|
316
|
+
type FieldErrorProps = ComponentProps<typeof FieldError>;
|
|
317
|
+
type FieldGroupProps = ComponentProps<typeof FieldGroup>;
|
|
318
|
+
type FieldLabelProps = ComponentProps<typeof FieldLabel>;
|
|
319
|
+
type FieldLegendProps = ComponentProps<typeof FieldLegend>;
|
|
320
|
+
type FieldSeparatorProps = ComponentProps<typeof FieldSeparator>;
|
|
321
|
+
type FieldSetProps = ComponentProps<typeof FieldSet>;
|
|
322
|
+
type FieldTitleProps = ComponentProps<typeof FieldTitle>;
|
|
323
|
+
|
|
324
|
+
interface HelperTextProps {
|
|
325
|
+
children: React.ReactNode;
|
|
326
|
+
className?: string;
|
|
327
|
+
}
|
|
328
|
+
declare const HelperText: ({ children, className }: HelperTextProps) => React$1.JSX.Element;
|
|
329
|
+
|
|
330
|
+
interface InputProps extends React.ComponentProps<'input'> {
|
|
331
|
+
loading?: boolean;
|
|
332
|
+
iconLeft?: React.ReactNode;
|
|
333
|
+
iconRight?: React.ReactNode;
|
|
334
|
+
tooltip?: React.ReactNode;
|
|
335
|
+
parentClassName?: string;
|
|
336
|
+
}
|
|
337
|
+
declare const Input: React.FC<InputProps>;
|
|
338
|
+
|
|
339
|
+
interface InputNumberProps extends Omit<React.ComponentProps<'input'>, 'type'> {
|
|
340
|
+
parentClassName?: string;
|
|
341
|
+
onValueChange?: (value: number) => void;
|
|
342
|
+
}
|
|
343
|
+
declare const InputNumber: React$1.ForwardRefExoticComponent<Omit<InputNumberProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
344
|
+
|
|
345
|
+
interface InputPasswordProps extends InputProps {
|
|
346
|
+
}
|
|
347
|
+
declare const InputPassword: React.FC<InputPasswordProps>;
|
|
348
|
+
|
|
349
|
+
interface TooltipProviderProps extends React$1.ComponentProps<typeof TooltipPrimitive.Provider> {
|
|
350
|
+
delayDuration?: number;
|
|
351
|
+
}
|
|
352
|
+
interface TooltipParentProps extends React$1.ComponentProps<typeof TooltipPrimitive.Root> {
|
|
353
|
+
}
|
|
354
|
+
interface TooltipTriggerProps extends React$1.ComponentProps<typeof TooltipPrimitive.Trigger> {
|
|
355
|
+
}
|
|
356
|
+
interface TooltipContentProps extends React$1.ComponentProps<typeof TooltipPrimitive.Content> {
|
|
357
|
+
classNameArrow?: string;
|
|
358
|
+
}
|
|
359
|
+
declare const TooltipProvider: React$1.FC<TooltipProviderProps>;
|
|
360
|
+
declare const TooltipParent: React$1.FC<TooltipParentProps>;
|
|
361
|
+
declare const TooltipTrigger: React$1.FC<TooltipTriggerProps>;
|
|
362
|
+
declare const TooltipContent: React$1.FC<TooltipContentProps>;
|
|
363
|
+
|
|
364
|
+
interface TooltipProps extends React.ComponentProps<typeof TooltipParent> {
|
|
365
|
+
className?: string;
|
|
366
|
+
classNameArrow?: string;
|
|
367
|
+
children: React.ReactNode;
|
|
368
|
+
content: React.ReactNode;
|
|
369
|
+
}
|
|
370
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
371
|
+
|
|
372
|
+
interface LabelInfoProps extends React.ComponentProps<typeof LabelPrimitive.Root> {
|
|
373
|
+
component?: 'label' | 'span';
|
|
374
|
+
tooltipProps: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
|
|
375
|
+
}
|
|
376
|
+
declare const LabelInfo: React.FC<LabelInfoProps>;
|
|
377
|
+
|
|
378
|
+
interface MultiSelectOption {
|
|
379
|
+
label: string;
|
|
380
|
+
value: string;
|
|
381
|
+
badgeVariant?: VariantProps<typeof badgeVariants>['variant'];
|
|
382
|
+
typeLabel?: string;
|
|
383
|
+
disabled?: boolean;
|
|
384
|
+
}
|
|
385
|
+
interface MultiSelectProps {
|
|
386
|
+
loading?: boolean;
|
|
387
|
+
options: MultiSelectOption[];
|
|
388
|
+
value: string[];
|
|
389
|
+
placeholder?: string;
|
|
390
|
+
className?: string;
|
|
391
|
+
disabled?: boolean;
|
|
392
|
+
maxDisplay?: number;
|
|
393
|
+
maxSelection?: number;
|
|
394
|
+
searchable?: boolean;
|
|
395
|
+
size?: 'sm' | 'default';
|
|
396
|
+
dropdownClassName?: string;
|
|
397
|
+
align?: 'start' | 'center' | 'end';
|
|
398
|
+
variant?: VariantProps<typeof badgeVariants>['variant'];
|
|
399
|
+
badgeClassNames?: string;
|
|
400
|
+
id?: string;
|
|
401
|
+
name?: string;
|
|
402
|
+
onChange: (value: string[]) => void;
|
|
403
|
+
}
|
|
404
|
+
declare function MultiSelect({ loading, options, value, placeholder, className, disabled, maxDisplay, maxSelection, searchable, size, dropdownClassName, align, variant, badgeClassNames, id, name, onChange, }: MultiSelectProps): React$1.JSX.Element;
|
|
405
|
+
|
|
406
|
+
interface PageHeaderProps {
|
|
407
|
+
loading?: boolean;
|
|
408
|
+
title?: string;
|
|
409
|
+
titleIcon?: React__default.ReactNode;
|
|
410
|
+
backLink?: string;
|
|
411
|
+
description?: React__default.ReactNode;
|
|
412
|
+
descriptionSize?: 'sm' | 'md';
|
|
413
|
+
className?: string;
|
|
414
|
+
titleClassName?: string;
|
|
415
|
+
children?: React__default.ReactNode;
|
|
416
|
+
}
|
|
417
|
+
declare const PageHeader: React__default.FC<PageHeaderProps>;
|
|
418
|
+
|
|
419
|
+
type PaginationLinkProps = {
|
|
420
|
+
isActive?: boolean;
|
|
421
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
422
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): React$1.JSX.Element;
|
|
423
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): React$1.JSX.Element;
|
|
424
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): React$1.JSX.Element;
|
|
425
|
+
declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): React$1.JSX.Element;
|
|
426
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React$1.JSX.Element;
|
|
427
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React$1.JSX.Element;
|
|
428
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): React$1.JSX.Element;
|
|
429
|
+
|
|
430
|
+
interface PaginationWrapProps {
|
|
431
|
+
page: number;
|
|
432
|
+
totalPages: number;
|
|
433
|
+
maxVisible?: number;
|
|
434
|
+
limit?: number;
|
|
435
|
+
optionsPerPage?: {
|
|
436
|
+
label: string;
|
|
437
|
+
value: string;
|
|
438
|
+
}[];
|
|
439
|
+
setLimit?: (limit: number) => void;
|
|
440
|
+
onPageChange: (page: number) => void;
|
|
441
|
+
onItemsPerPageChange?: (itemsPerPage: number) => void;
|
|
442
|
+
}
|
|
443
|
+
declare const PaginationWrap: React.FC<PaginationWrapProps>;
|
|
444
|
+
|
|
445
|
+
type PaginationProps = ComponentProps<typeof Pagination>;
|
|
446
|
+
type PaginationContentProps = ComponentProps<typeof PaginationContent>;
|
|
447
|
+
type PaginationEllipsisProps = ComponentProps<typeof PaginationEllipsis>;
|
|
448
|
+
type PaginationItemProps = ComponentProps<typeof PaginationItem>;
|
|
449
|
+
type PaginationNextProps = ComponentProps<typeof PaginationNext>;
|
|
450
|
+
type PaginationPreviousProps = ComponentProps<typeof PaginationPrevious>;
|
|
451
|
+
|
|
452
|
+
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof Root>): React$1.JSX.Element;
|
|
453
|
+
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof Item>): React$1.JSX.Element;
|
|
454
|
+
|
|
455
|
+
type RadioGroupProps = ComponentProps<typeof RadioGroup>;
|
|
456
|
+
type RadioGroupItemProps = ComponentProps<typeof RadioGroupItem>;
|
|
457
|
+
|
|
458
|
+
type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
|
|
459
|
+
interface ScrollAreaProps extends React$1.ComponentProps<typeof ScrollAreaPrimitive.Root> {
|
|
460
|
+
orientation?: ScrollAreaOrientation;
|
|
461
|
+
}
|
|
462
|
+
declare function ScrollArea({ className, children, orientation, ...props }: ScrollAreaProps): React$1.JSX.Element;
|
|
463
|
+
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React$1.JSX.Element;
|
|
464
|
+
|
|
465
|
+
interface SearchInputProps extends InputProps {
|
|
466
|
+
classNamesInput?: string;
|
|
467
|
+
}
|
|
468
|
+
declare const SearchInput: React.FC<SearchInputProps>;
|
|
469
|
+
|
|
470
|
+
interface SearchInputFieldsProps extends InputProps {
|
|
471
|
+
classNamesInput?: string;
|
|
472
|
+
options: DropdownsSelectOption[];
|
|
473
|
+
valueSelect: string;
|
|
474
|
+
onChangeSelect: (value: string) => void;
|
|
475
|
+
}
|
|
476
|
+
declare const SearchInputFields: React.FC<SearchInputFieldsProps>;
|
|
477
|
+
|
|
478
|
+
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): React$1.JSX.Element;
|
|
479
|
+
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): React$1.JSX.Element;
|
|
480
|
+
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): React$1.JSX.Element;
|
|
481
|
+
declare function SelectTrigger({ className, size, children, loading, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
482
|
+
size?: 'sm' | 'default';
|
|
483
|
+
loading?: boolean;
|
|
484
|
+
}): React$1.JSX.Element;
|
|
485
|
+
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): React$1.JSX.Element;
|
|
486
|
+
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): React$1.JSX.Element;
|
|
487
|
+
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): React$1.JSX.Element;
|
|
488
|
+
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): React$1.JSX.Element;
|
|
489
|
+
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React$1.JSX.Element;
|
|
490
|
+
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React$1.JSX.Element;
|
|
491
|
+
|
|
492
|
+
interface SelectDefaultProps {
|
|
493
|
+
id?: string;
|
|
494
|
+
name?: string;
|
|
495
|
+
options: {
|
|
496
|
+
label: string;
|
|
497
|
+
value: string;
|
|
498
|
+
}[];
|
|
499
|
+
placeholder: string;
|
|
500
|
+
className?: string;
|
|
501
|
+
value?: string;
|
|
502
|
+
loading?: boolean;
|
|
503
|
+
disabled?: boolean;
|
|
504
|
+
style?: React.CSSProperties;
|
|
505
|
+
renderItemLabel?: (value: string) => React.ReactNode;
|
|
506
|
+
renderTriggerLabel?: (value: string) => React.ReactNode;
|
|
507
|
+
onChange?: (value: string) => void;
|
|
508
|
+
}
|
|
509
|
+
declare const SelectDefault: React.FC<SelectDefaultProps>;
|
|
510
|
+
|
|
511
|
+
type SelectProps = ComponentProps<typeof Select>;
|
|
512
|
+
type SelectContentProps = ComponentProps<typeof SelectContent>;
|
|
513
|
+
type SelectGroupProps = ComponentProps<typeof SelectGroup>;
|
|
514
|
+
type SelectItemProps = ComponentProps<typeof SelectItem>;
|
|
515
|
+
type SelectLabelProps = ComponentProps<typeof SelectLabel>;
|
|
516
|
+
type SelectScrollDownButtonProps = ComponentProps<typeof SelectScrollDownButton>;
|
|
517
|
+
type SelectScrollUpButtonProps = ComponentProps<typeof SelectScrollUpButton>;
|
|
518
|
+
type SelectSeparatorProps = ComponentProps<typeof SelectSeparator>;
|
|
519
|
+
type SelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
520
|
+
type SelectValueProps = ComponentProps<typeof SelectValue>;
|
|
521
|
+
|
|
522
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
|
|
523
|
+
|
|
524
|
+
type SeparatorProps = ComponentProps<typeof Separator>;
|
|
525
|
+
|
|
526
|
+
interface SkeletonTableProps {
|
|
527
|
+
rows?: number;
|
|
528
|
+
columns?: number;
|
|
529
|
+
className?: string;
|
|
530
|
+
}
|
|
531
|
+
interface SkeletonProps {
|
|
532
|
+
rows?: number;
|
|
533
|
+
className?: string;
|
|
534
|
+
}
|
|
535
|
+
declare const Skeleton: ({ className, rows, ...props }: SkeletonProps) => React$1.JSX.Element | React$1.JSX.Element[];
|
|
536
|
+
declare const SkeletonTable: ({ className, rows, columns }: SkeletonTableProps) => React$1.JSX.Element;
|
|
537
|
+
|
|
538
|
+
interface SliderProps extends React$1.ComponentProps<typeof SliderPrimitive.Root> {
|
|
539
|
+
label?: string;
|
|
540
|
+
min?: number;
|
|
541
|
+
max?: number;
|
|
542
|
+
step?: number;
|
|
543
|
+
value?: number[];
|
|
544
|
+
showValue?: boolean;
|
|
545
|
+
unit?: string;
|
|
546
|
+
onValueChange?: (value: number[]) => void;
|
|
547
|
+
formatValue?: (value: number) => string;
|
|
548
|
+
}
|
|
549
|
+
declare const Slider: React$1.FC<SliderProps>;
|
|
550
|
+
|
|
551
|
+
interface SpinnerProps extends React.ComponentProps<'svg'> {
|
|
552
|
+
size?: number;
|
|
553
|
+
}
|
|
554
|
+
declare const Spinner: React.FC<SpinnerProps>;
|
|
555
|
+
declare const SpinnerCustom: React.FC<SpinnerProps>;
|
|
556
|
+
|
|
557
|
+
type SpinnerSquareProps = {
|
|
558
|
+
variant?: 'fixed' | 'absolute' | 'default';
|
|
559
|
+
};
|
|
560
|
+
declare const SpinnerSquare: FC<SpinnerSquareProps>;
|
|
561
|
+
|
|
562
|
+
interface SuggestionOption {
|
|
563
|
+
label: string;
|
|
564
|
+
value: string;
|
|
565
|
+
disabled?: boolean;
|
|
566
|
+
}
|
|
567
|
+
interface SuggestionsProps {
|
|
568
|
+
options: SuggestionOption[];
|
|
569
|
+
value?: string;
|
|
570
|
+
id?: string;
|
|
571
|
+
name?: string;
|
|
572
|
+
placeholder?: string;
|
|
573
|
+
className?: string;
|
|
574
|
+
disabled?: boolean;
|
|
575
|
+
loading?: boolean;
|
|
576
|
+
dropdownClassName?: string;
|
|
577
|
+
minChars?: number;
|
|
578
|
+
showAllOnFocus?: boolean;
|
|
579
|
+
allowCustomValue?: boolean;
|
|
580
|
+
onChange: (value: string) => void;
|
|
581
|
+
}
|
|
582
|
+
declare const Suggestions: React.FC<SuggestionsProps>;
|
|
583
|
+
|
|
584
|
+
declare const switchVariants: (props?: ({
|
|
585
|
+
size?: "s" | "m" | "l" | "xl" | null | undefined;
|
|
586
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
587
|
+
interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root>, VariantProps<typeof switchVariants> {
|
|
588
|
+
thumbClassName?: string;
|
|
589
|
+
tooltip?: React$1.ReactNode;
|
|
590
|
+
}
|
|
591
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
592
|
+
|
|
593
|
+
interface TableProps extends React.ComponentProps<'table'> {
|
|
594
|
+
classNameTable?: string;
|
|
595
|
+
orientation?: ScrollAreaOrientation;
|
|
596
|
+
classNameScrollArea?: string;
|
|
597
|
+
}
|
|
598
|
+
declare const Table: React.FC<TableProps>;
|
|
599
|
+
declare const TableHeader: React.FC<React.ComponentProps<'thead'>>;
|
|
600
|
+
declare const TableBody: React.FC<React.ComponentProps<'tbody'>>;
|
|
601
|
+
declare const TableFooter: React.FC<React.ComponentProps<'tfoot'>>;
|
|
602
|
+
declare const TableRow: React.FC<React.ComponentProps<'tr'>>;
|
|
603
|
+
declare const TableHead: React.FC<React.ComponentProps<'th'>>;
|
|
604
|
+
declare const TableCell: React.FC<React.ComponentProps<'td'>>;
|
|
605
|
+
declare const TableCaption: React.FC<React.ComponentProps<'caption'>>;
|
|
606
|
+
|
|
607
|
+
interface GroupHeaderRowProps {
|
|
608
|
+
colSpan: number;
|
|
609
|
+
label: string;
|
|
610
|
+
count: number;
|
|
611
|
+
isExpanded: boolean;
|
|
612
|
+
onToggle: () => void;
|
|
613
|
+
}
|
|
614
|
+
declare const GroupHeaderRow: ({ colSpan, label, count, isExpanded, onToggle, }: GroupHeaderRowProps) => React$1.JSX.Element;
|
|
615
|
+
|
|
616
|
+
interface ServerGroupedTableBodyProps<TData extends RowData> {
|
|
617
|
+
groups: [string, TData[]][];
|
|
618
|
+
expandedGroups: Record<string, boolean>;
|
|
619
|
+
onToggleGroup: (groupKey: string) => void;
|
|
620
|
+
table: Table$1<TData>;
|
|
621
|
+
columnsCount: number;
|
|
622
|
+
classNameCell?: string;
|
|
623
|
+
}
|
|
624
|
+
declare const ServerGroupedTableBody: <TData extends RowData>({ groups, expandedGroups, onToggleGroup, table, columnsCount, classNameCell, }: ServerGroupedTableBodyProps<TData>) => React$1.JSX.Element;
|
|
625
|
+
|
|
626
|
+
interface SortableHeaderProps {
|
|
627
|
+
header: Header<any, unknown>;
|
|
628
|
+
isSortingEnabled: boolean;
|
|
629
|
+
}
|
|
630
|
+
declare const SortableHeader: React__default.FC<SortableHeaderProps>;
|
|
631
|
+
|
|
632
|
+
interface TableWrapProps<T> extends Omit<ScrollAreaProps, 'children'> {
|
|
633
|
+
classNameScrollArea?: string;
|
|
634
|
+
table: Table$1<T>;
|
|
635
|
+
columns: ColumnDef<T>[];
|
|
636
|
+
data?: T[];
|
|
637
|
+
orientation?: ScrollAreaOrientation;
|
|
638
|
+
loading?: boolean;
|
|
639
|
+
rowSelection?: Record<string, boolean>;
|
|
640
|
+
loadedContent?: React.ReactNode;
|
|
641
|
+
emptyContent?: React.ReactNode;
|
|
642
|
+
classNameHeader?: string;
|
|
643
|
+
classNameCell?: string;
|
|
644
|
+
classNameTable?: string;
|
|
645
|
+
}
|
|
646
|
+
declare function TableWrapInner<T>({ className, classNameTable, classNameScrollArea, classNameHeader, classNameCell, table, columns, data: _data, orientation, loading, rowSelection: _rowSelection, loadedContent, emptyContent, }: TableWrapProps<T>): React$1.JSX.Element;
|
|
647
|
+
declare const TableWrap: typeof TableWrapInner;
|
|
648
|
+
|
|
649
|
+
type TableBodyProps = ComponentProps<typeof TableBody>;
|
|
650
|
+
type TableCaptionProps = ComponentProps<typeof TableCaption>;
|
|
651
|
+
type TableCellProps = ComponentProps<typeof TableCell>;
|
|
652
|
+
type TableFooterProps = ComponentProps<typeof TableFooter>;
|
|
653
|
+
type TableHeadProps = ComponentProps<typeof TableHead>;
|
|
654
|
+
type TableHeaderProps = ComponentProps<typeof TableHeader>;
|
|
655
|
+
type TableRowProps = ComponentProps<typeof TableRow>;
|
|
656
|
+
|
|
657
|
+
interface TabItem {
|
|
658
|
+
value: string;
|
|
659
|
+
label: React.ReactNode;
|
|
660
|
+
content?: React.ReactNode;
|
|
661
|
+
Content?: React.ComponentType;
|
|
662
|
+
disabled?: boolean;
|
|
663
|
+
}
|
|
664
|
+
interface TabsProps {
|
|
665
|
+
tabs: TabItem[];
|
|
666
|
+
defaultValue?: string;
|
|
667
|
+
value?: string;
|
|
668
|
+
onValueChange?: (value: string) => void;
|
|
669
|
+
className?: string;
|
|
670
|
+
tabsListClassName?: string;
|
|
671
|
+
tabsContentClassName?: string;
|
|
672
|
+
tabClassName?: string;
|
|
673
|
+
}
|
|
674
|
+
declare function Tabs({ tabs, defaultValue, value, className, tabClassName, tabsListClassName, tabsContentClassName, onValueChange, }: TabsProps): React$1.JSX.Element;
|
|
675
|
+
|
|
676
|
+
interface TextTruncateProps {
|
|
677
|
+
children: React__default.ReactNode;
|
|
678
|
+
lines?: number;
|
|
679
|
+
className?: string;
|
|
680
|
+
textClassName?: string;
|
|
681
|
+
showToggle?: boolean;
|
|
682
|
+
showCopy?: boolean;
|
|
683
|
+
}
|
|
684
|
+
declare const TextTruncate: React__default.FC<TextTruncateProps>;
|
|
685
|
+
|
|
686
|
+
declare function Textarea({ className, ...props }: React$1.ComponentProps<'textarea'>): React$1.JSX.Element;
|
|
687
|
+
|
|
688
|
+
type TextareaProps = ComponentProps<typeof Textarea>;
|
|
689
|
+
|
|
690
|
+
declare function ThemeToggle(): React$1.JSX.Element;
|
|
691
|
+
|
|
692
|
+
type ThemeToggleProps = ComponentProps<typeof ThemeToggle>;
|
|
693
|
+
|
|
694
|
+
declare const Toaster: React.FC<ToasterProps>;
|
|
695
|
+
|
|
696
|
+
declare function TreeGuide({ className, children, ...props }: ComponentProps<'div'>): React$1.JSX.Element;
|
|
697
|
+
declare function TreeRow({ className, children, ...props }: ComponentProps<'div'>): React$1.JSX.Element;
|
|
698
|
+
|
|
699
|
+
type TreeGuideProps = ComponentProps<typeof TreeGuide>;
|
|
700
|
+
type TreeRowProps = ComponentProps<typeof TreeRow>;
|
|
701
|
+
|
|
702
|
+
export { Accordion, type AccordionChevronVariant, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionSection, type AccordionSectionProps, AccordionTrigger, type AccordionTriggerProps, AnimatedDots, type AnimatedDotsProps, Aside, type AsideProps, type AsideTab, Badge, type BadgeProps, Button, type ButtonProps, Checkbox, type CheckboxProps, ConditionalContent, type ConditionalContentProps, ConfirmDeleteDialog, type ConfirmDeleteDialogProps, ConfirmDeleteDialog as ConfirmDialog, DefaultDialog, type DefaultDialogProps, DeleteButtonConfirm, type DeleteButtonConfirmProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, DropdownsCheckbox, type DropdownsCheckboxOption, type DropdownsCheckboxProps, DropdownsSelect, type DropdownsSelectOption, type DropdownsSelectProps, EmptyState, type EmptyStateProps, Field, FieldContent, type FieldContentProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, FieldTitle, type FieldTitleProps, FolderTreeExpandTrigger, type FolderTreeExpandTriggerProps, GroupHeaderRow, type GroupHeaderRowProps, HelperText, type HelperTextProps, Input, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, type InputProps, Label, LabelInfo, type LabelInfoProps, type LabelProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageHeader, type PageHeaderProps, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PaginationWrap, type PaginationWrapProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollBar, SearchInput, SearchInputFields, type SearchInputFieldsProps, type SearchInputProps, Select, SelectContent, type SelectContentProps, SelectDefault, type SelectDefaultProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, ServerGroupedTableBody, type ServerGroupedTableBodyProps, Skeleton, type SkeletonProps, SkeletonTable, type SkeletonTableProps, Slider, type SliderProps, SortableHeader, type SortableHeaderProps, Spinner, SpinnerCustom, type SpinnerProps, SpinnerSquare, type SpinnerSquareProps, type SuggestionOption, Suggestions, type SuggestionsProps, Switch, type SwitchProps, type TabItem, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, TextTruncate, type TextTruncateProps, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, Toaster, Tooltip, TooltipContent, type TooltipContentProps, TooltipParent, type TooltipParentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TreeGuide, type TreeGuideProps, TreeRow, type TreeRowProps, badgeVariants, buttonVariants };
|