@l3mpire/ui 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +211 -0
- package/USAGE.md +1025 -0
- package/dist/index.d.mts +584 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.js +4339 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4256 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +80 -0
- package/src/styles/globals.css +524 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { IconDefinition } from '@l3mpire/icons';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
|
+
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
9
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
10
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
11
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
13
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
14
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
|
+
import { ColumnDef, SortingState, OnChangeFn, ColumnFiltersState, PaginationState, RowSelectionState, VisibilityState, ColumnOrderState, ColumnPinningState, Table as Table$1 } from '@tanstack/react-table';
|
|
17
|
+
export { ColumnDef, ColumnFiltersState, RowSelectionState, SortingState, flexRender } from '@tanstack/react-table';
|
|
18
|
+
|
|
19
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
20
|
+
|
|
21
|
+
interface BrowserTabItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
icon?: IconDefinition;
|
|
23
|
+
label: string;
|
|
24
|
+
badge?: string;
|
|
25
|
+
isActive?: boolean;
|
|
26
|
+
onClose?: (e: React.MouseEvent) => void;
|
|
27
|
+
/** Called with the new label after double-click rename. Omit to disable rename. */
|
|
28
|
+
onRename?: (newLabel: string) => void;
|
|
29
|
+
}
|
|
30
|
+
declare const BrowserTabItem: React.ForwardRefExoticComponent<BrowserTabItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
interface BrowserTabProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
onAddTab?: () => void;
|
|
33
|
+
/** Enable drag-to-reorder on tab items. */
|
|
34
|
+
draggable?: boolean;
|
|
35
|
+
/** Called when a tab is dragged to a new position. */
|
|
36
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
37
|
+
/** Called when a hidden tab is selected from the overflow menu. Swaps it with the last visible tab. */
|
|
38
|
+
onOverflowSelect?: (hiddenIndex: number, lastVisibleIndex: number) => void;
|
|
39
|
+
}
|
|
40
|
+
declare const BrowserTab: React.ForwardRefExoticComponent<BrowserTabProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
|
|
42
|
+
declare const buttonVariants: (props?: ({
|
|
43
|
+
appearance?: "solid" | "outlined" | "ghost" | null | undefined;
|
|
44
|
+
intent?: "alert" | "brand" | null | undefined;
|
|
45
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
46
|
+
iconOnly?: boolean | null | undefined;
|
|
47
|
+
fullWidth?: boolean | null | undefined;
|
|
48
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
leftIcon?: IconDefinition;
|
|
53
|
+
rightIcon?: IconDefinition;
|
|
54
|
+
iconOnly?: boolean;
|
|
55
|
+
}
|
|
56
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
|
+
|
|
58
|
+
declare const tooltipContentVariants: (props?: ({
|
|
59
|
+
type?: "invert" | "default" | null | undefined;
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
|
+
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
62
|
+
hasArrow?: boolean;
|
|
63
|
+
}
|
|
64
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
65
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
66
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
67
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
|
|
69
|
+
declare const linkVariants: (props?: ({
|
|
70
|
+
intent?: "success" | "warning" | "neutral" | "alert" | "brand" | null | undefined;
|
|
71
|
+
size?: "sm" | "md" | null | undefined;
|
|
72
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
73
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
74
|
+
asChild?: boolean;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
leftIcon?: IconDefinition;
|
|
77
|
+
rightIcon?: IconDefinition;
|
|
78
|
+
}
|
|
79
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
80
|
+
|
|
81
|
+
interface InputLabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
82
|
+
type?: "default" | "optional" | "mandatory" | "info";
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
infoIcon?: IconDefinition;
|
|
85
|
+
}
|
|
86
|
+
declare const InputLabel: React.ForwardRefExoticComponent<InputLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
87
|
+
|
|
88
|
+
declare const infoMessageVariants: (props?: ({
|
|
89
|
+
type?: "success" | "warning" | "alert" | "info" | "empty" | null | undefined;
|
|
90
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
91
|
+
interface InfoMessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof infoMessageVariants> {
|
|
92
|
+
title: React.ReactNode;
|
|
93
|
+
description?: React.ReactNode;
|
|
94
|
+
onClose?: () => void;
|
|
95
|
+
action?: React.ReactNode;
|
|
96
|
+
/** Render a semantically-colored link below the description. */
|
|
97
|
+
linkLabel?: string;
|
|
98
|
+
linkHref?: string;
|
|
99
|
+
onLinkClick?: () => void;
|
|
100
|
+
}
|
|
101
|
+
declare const InfoMessage: React.ForwardRefExoticComponent<InfoMessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
|
|
103
|
+
declare const toastVariants: (props?: ({
|
|
104
|
+
type?: "success" | "warning" | "alert" | "info" | null | undefined;
|
|
105
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
106
|
+
interface ToastProps extends Omit<React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>, "title" | "type">, VariantProps<typeof toastVariants> {
|
|
107
|
+
title: React.ReactNode;
|
|
108
|
+
subtitle?: React.ReactNode;
|
|
109
|
+
onClose?: () => void;
|
|
110
|
+
actions?: React.ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
|
|
113
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
114
|
+
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
115
|
+
|
|
116
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
|
|
117
|
+
label?: string;
|
|
118
|
+
}
|
|
119
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
120
|
+
|
|
121
|
+
declare const searchBarVariants: (props?: ({
|
|
122
|
+
variant?: "white" | "grey" | null | undefined;
|
|
123
|
+
size?: "sm" | "md" | null | undefined;
|
|
124
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
125
|
+
interface SearchBarProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof searchBarVariants> {
|
|
126
|
+
onClear?: () => void;
|
|
127
|
+
hasShortcut?: boolean;
|
|
128
|
+
}
|
|
129
|
+
declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<HTMLInputElement>>;
|
|
130
|
+
|
|
131
|
+
declare const avatarVariants: (props?: ({
|
|
132
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
133
|
+
shape?: "rounded" | "squared" | null | undefined;
|
|
134
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
135
|
+
interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
136
|
+
src?: string;
|
|
137
|
+
alt?: string;
|
|
138
|
+
initials?: string;
|
|
139
|
+
badge?: React.ReactNode;
|
|
140
|
+
shape?: "rounded" | "squared";
|
|
141
|
+
}
|
|
142
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
143
|
+
|
|
144
|
+
declare const badgeVariants: (props?: ({
|
|
145
|
+
variant?: "solid" | "light" | "outlined" | null | undefined;
|
|
146
|
+
type?: "primary" | "success" | "critical" | "warning" | "neutral" | null | undefined;
|
|
147
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
148
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
149
|
+
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "type">, VariantProps<typeof badgeVariants> {
|
|
150
|
+
icon?: IconDefinition;
|
|
151
|
+
}
|
|
152
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
153
|
+
|
|
154
|
+
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
155
|
+
label?: string;
|
|
156
|
+
}
|
|
157
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
158
|
+
|
|
159
|
+
interface DropdownMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
160
|
+
}
|
|
161
|
+
declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
162
|
+
declare const DropdownMenuRoot: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
163
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
164
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
165
|
+
interface DropdownMenuListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
166
|
+
}
|
|
167
|
+
declare const DropdownMenuList: React.ForwardRefExoticComponent<DropdownMenuListProps & React.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
169
|
+
icon?: IconDefinition;
|
|
170
|
+
avatar?: React.ReactNode;
|
|
171
|
+
flag?: React.ReactNode;
|
|
172
|
+
label: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
badge?: React.ReactNode;
|
|
175
|
+
action?: React.ReactNode;
|
|
176
|
+
isActive?: boolean;
|
|
177
|
+
}
|
|
178
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
179
|
+
interface DropdownMenuRadixItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
|
|
180
|
+
icon?: IconDefinition;
|
|
181
|
+
avatar?: React.ReactNode;
|
|
182
|
+
flag?: React.ReactNode;
|
|
183
|
+
label: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
badge?: React.ReactNode;
|
|
186
|
+
action?: React.ReactNode;
|
|
187
|
+
}
|
|
188
|
+
declare const DropdownMenuRadixItem: React.ForwardRefExoticComponent<DropdownMenuRadixItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
189
|
+
interface DropdownMenuHeadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
190
|
+
action?: React.ReactNode;
|
|
191
|
+
}
|
|
192
|
+
declare const DropdownMenuHeading: React.ForwardRefExoticComponent<DropdownMenuHeadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
193
|
+
interface DropdownMenuClearProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
194
|
+
}
|
|
195
|
+
declare const DropdownMenuClear: React.ForwardRefExoticComponent<DropdownMenuClearProps & React.RefAttributes<HTMLButtonElement>>;
|
|
196
|
+
|
|
197
|
+
interface SidebarContextValue {
|
|
198
|
+
isCollapsed: boolean;
|
|
199
|
+
isHovered: boolean;
|
|
200
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
201
|
+
}
|
|
202
|
+
declare function useSidebarContext(): SidebarContextValue;
|
|
203
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
204
|
+
isCollapsed?: boolean;
|
|
205
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
206
|
+
}
|
|
207
|
+
interface SidebarSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
208
|
+
}
|
|
209
|
+
interface SidebarFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
210
|
+
}
|
|
211
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>>;
|
|
213
|
+
declare const SidebarSection: React.ForwardRefExoticComponent<SidebarSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<SidebarFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
215
|
+
|
|
216
|
+
interface SidebarHeadingItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
217
|
+
label: string;
|
|
218
|
+
}
|
|
219
|
+
declare const SidebarHeadingItem: React.ForwardRefExoticComponent<SidebarHeadingItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
|
|
221
|
+
declare const sidebarItemVariants: (props?: ({
|
|
222
|
+
state?: "default" | "hover" | "active" | null | undefined;
|
|
223
|
+
type?: "default" | "collapsed" | null | undefined;
|
|
224
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
225
|
+
interface SidebarItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "type">, VariantProps<typeof sidebarItemVariants> {
|
|
226
|
+
icon?: IconDefinition;
|
|
227
|
+
solidIcon?: IconDefinition;
|
|
228
|
+
avatar?: React.ReactNode;
|
|
229
|
+
label?: string;
|
|
230
|
+
hasBadge?: boolean;
|
|
231
|
+
badgeCount?: string;
|
|
232
|
+
hasSubItems?: boolean;
|
|
233
|
+
isNew?: boolean;
|
|
234
|
+
}
|
|
235
|
+
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
236
|
+
|
|
237
|
+
declare const selectVariants: (props?: ({
|
|
238
|
+
size?: "sm" | "md" | null | undefined;
|
|
239
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
240
|
+
interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type">, VariantProps<typeof selectVariants> {
|
|
241
|
+
error?: boolean;
|
|
242
|
+
errorMessage?: string;
|
|
243
|
+
placeholder?: string;
|
|
244
|
+
value?: string;
|
|
245
|
+
multiCount?: number;
|
|
246
|
+
icon?: IconDefinition;
|
|
247
|
+
avatar?: React.ReactNode;
|
|
248
|
+
flag?: React.ReactNode;
|
|
249
|
+
label?: string;
|
|
250
|
+
labelType?: InputLabelProps["type"];
|
|
251
|
+
isOpen?: boolean;
|
|
252
|
+
onOpenChange?: (open: boolean) => void;
|
|
253
|
+
}
|
|
254
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
255
|
+
|
|
256
|
+
interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
257
|
+
}
|
|
258
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
259
|
+
interface TabListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
260
|
+
/** Add horizontal padding (px-lg) when used inline within a page section. */
|
|
261
|
+
hasOffset?: boolean;
|
|
262
|
+
}
|
|
263
|
+
declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
|
|
264
|
+
interface TabTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
|
|
265
|
+
badge?: string;
|
|
266
|
+
}
|
|
267
|
+
declare const TabTrigger: React.ForwardRefExoticComponent<TabTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
268
|
+
interface TabContentProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {
|
|
269
|
+
}
|
|
270
|
+
declare const TabContent: React.ForwardRefExoticComponent<TabContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
271
|
+
|
|
272
|
+
declare const tagVariants: (props?: ({
|
|
273
|
+
variant?: "neutral" | "brand" | null | undefined;
|
|
274
|
+
size?: "sm" | "md" | null | undefined;
|
|
275
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
276
|
+
interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "type">, VariantProps<typeof tagVariants> {
|
|
277
|
+
icon?: IconDefinition;
|
|
278
|
+
onClose?: () => void;
|
|
279
|
+
}
|
|
280
|
+
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
281
|
+
|
|
282
|
+
interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "type"> {
|
|
283
|
+
label?: string;
|
|
284
|
+
labelType?: InputLabelProps["type"];
|
|
285
|
+
error?: boolean;
|
|
286
|
+
errorMessage?: string;
|
|
287
|
+
success?: boolean;
|
|
288
|
+
characterLimit?: string;
|
|
289
|
+
}
|
|
290
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
291
|
+
|
|
292
|
+
declare const textInputVariants: (props?: ({
|
|
293
|
+
size?: "sm" | "md" | null | undefined;
|
|
294
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
295
|
+
interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">, VariantProps<typeof textInputVariants> {
|
|
296
|
+
type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search";
|
|
297
|
+
label?: string;
|
|
298
|
+
labelType?: InputLabelProps["type"];
|
|
299
|
+
error?: boolean;
|
|
300
|
+
errorMessage?: string;
|
|
301
|
+
success?: boolean;
|
|
302
|
+
iconLeft?: IconDefinition;
|
|
303
|
+
iconRight?: IconDefinition;
|
|
304
|
+
onClear?: () => void;
|
|
305
|
+
hasButton?: boolean;
|
|
306
|
+
buttonIcon?: IconDefinition;
|
|
307
|
+
onButtonClick?: () => void;
|
|
308
|
+
}
|
|
309
|
+
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
310
|
+
|
|
311
|
+
declare const typographyVariants: (props?: ({
|
|
312
|
+
variant?: "xs" | "sm" | "md" | "lg" | "h2" | "h3" | "h1" | null | undefined;
|
|
313
|
+
weight?: "bold" | "regular" | "medium" | null | undefined;
|
|
314
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
315
|
+
interface TypographyProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
316
|
+
as?: React.ElementType;
|
|
317
|
+
asChild?: boolean;
|
|
318
|
+
}
|
|
319
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLElement>>;
|
|
320
|
+
|
|
321
|
+
interface UserMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
322
|
+
}
|
|
323
|
+
declare const UserMenu: React.ForwardRefExoticComponent<UserMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
324
|
+
interface UserMenuInfoRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
325
|
+
avatar: React.ReactNode;
|
|
326
|
+
name: React.ReactNode;
|
|
327
|
+
subtitle?: React.ReactNode;
|
|
328
|
+
action?: React.ReactNode;
|
|
329
|
+
}
|
|
330
|
+
declare const UserMenuInfoRow: React.ForwardRefExoticComponent<UserMenuInfoRowProps & React.RefAttributes<HTMLDivElement>>;
|
|
331
|
+
interface UserMenuSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
332
|
+
}
|
|
333
|
+
declare const UserMenuSection: React.ForwardRefExoticComponent<UserMenuSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
334
|
+
|
|
335
|
+
declare const productLogoVariants: (props?: ({
|
|
336
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
337
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
338
|
+
type Product = "lemlist" | "lemwarm" | "lemcal";
|
|
339
|
+
interface ProductLogoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof productLogoVariants> {
|
|
340
|
+
product?: Product;
|
|
341
|
+
hasText?: boolean;
|
|
342
|
+
}
|
|
343
|
+
declare const ProductLogo: React.ForwardRefExoticComponent<ProductLogoProps & React.RefAttributes<HTMLDivElement>>;
|
|
344
|
+
|
|
345
|
+
declare const modalVariants: (props?: ({
|
|
346
|
+
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
347
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
348
|
+
declare const Modal: React.FC<DialogPrimitive.DialogProps>;
|
|
349
|
+
declare const ModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
350
|
+
declare const ModalClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
351
|
+
declare const ModalOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
352
|
+
interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof modalVariants> {
|
|
353
|
+
}
|
|
354
|
+
declare const ModalContent: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
355
|
+
interface ModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
356
|
+
/** Whether to show the bottom border. Defaults to true. */
|
|
357
|
+
showBorder?: boolean;
|
|
358
|
+
/** Called when the close button is clicked. If omitted, no close button is shown. */
|
|
359
|
+
onClose?: () => void;
|
|
360
|
+
}
|
|
361
|
+
declare const ModalHeader: React.ForwardRefExoticComponent<ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
362
|
+
declare const ModalTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
363
|
+
declare const ModalDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
364
|
+
declare const ModalBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
365
|
+
interface ModalFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
366
|
+
/** Whether to show the top border. Defaults to true. */
|
|
367
|
+
showBorder?: boolean;
|
|
368
|
+
/** Optional info message to show on the left side of the footer. */
|
|
369
|
+
infoMessage?: string;
|
|
370
|
+
}
|
|
371
|
+
declare const ModalFooter: React.ForwardRefExoticComponent<ModalFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
372
|
+
|
|
373
|
+
interface DialogProps {
|
|
374
|
+
/** Controls whether the dialog is open. */
|
|
375
|
+
open?: boolean;
|
|
376
|
+
/** Called when the open state changes. */
|
|
377
|
+
onOpenChange?: (open: boolean) => void;
|
|
378
|
+
/** The dialog title. */
|
|
379
|
+
title: string;
|
|
380
|
+
/** Optional description below the title. */
|
|
381
|
+
description?: string;
|
|
382
|
+
/** Intent controls the primary action button color. */
|
|
383
|
+
intent?: "brand" | "alert";
|
|
384
|
+
/** Label for the primary action button. */
|
|
385
|
+
primaryLabel?: string;
|
|
386
|
+
/** Callback when the primary action is clicked. */
|
|
387
|
+
onPrimaryAction?: () => void;
|
|
388
|
+
/** Whether the primary action is disabled. */
|
|
389
|
+
primaryDisabled?: boolean;
|
|
390
|
+
/** Label for the cancel button. Defaults to "Cancel". */
|
|
391
|
+
cancelLabel?: string;
|
|
392
|
+
/** Callback when cancel is clicked. Defaults to closing the dialog. */
|
|
393
|
+
onCancel?: () => void;
|
|
394
|
+
/** Optional secondary action (rendered between cancel and primary). */
|
|
395
|
+
secondaryLabel?: string;
|
|
396
|
+
/** Callback for the secondary action. */
|
|
397
|
+
onSecondaryAction?: () => void;
|
|
398
|
+
/** Additional className for the content container. */
|
|
399
|
+
className?: string;
|
|
400
|
+
}
|
|
401
|
+
declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
402
|
+
|
|
403
|
+
declare const emptyStateVariants: (props?: ({
|
|
404
|
+
size?: "sm" | "md" | null | undefined;
|
|
405
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
406
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
407
|
+
/** FontAwesome icon to display */
|
|
408
|
+
icon?: IconDefinition;
|
|
409
|
+
/** Title text */
|
|
410
|
+
title: string;
|
|
411
|
+
/** Optional description text */
|
|
412
|
+
description?: string;
|
|
413
|
+
/** Primary action button props */
|
|
414
|
+
primaryAction?: ButtonProps & {
|
|
415
|
+
label: string;
|
|
416
|
+
};
|
|
417
|
+
/** Secondary action button props */
|
|
418
|
+
secondaryAction?: ButtonProps & {
|
|
419
|
+
label: string;
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
423
|
+
|
|
424
|
+
interface AvatarCellProps {
|
|
425
|
+
name: string;
|
|
426
|
+
subtitle?: string;
|
|
427
|
+
src?: string;
|
|
428
|
+
className?: string;
|
|
429
|
+
}
|
|
430
|
+
declare const AvatarCell: React.FC<AvatarCellProps>;
|
|
431
|
+
interface StatusCellProps {
|
|
432
|
+
label: string;
|
|
433
|
+
variant?: BadgeProps["variant"];
|
|
434
|
+
type?: BadgeProps["type"];
|
|
435
|
+
size?: BadgeProps["size"];
|
|
436
|
+
className?: string;
|
|
437
|
+
}
|
|
438
|
+
declare const StatusCell: React.FC<StatusCellProps>;
|
|
439
|
+
interface NumberCellProps {
|
|
440
|
+
value: number | string;
|
|
441
|
+
/** Optional secondary stat (e.g., "+12%") */
|
|
442
|
+
secondaryStat?: string;
|
|
443
|
+
/** Color intent for the secondary stat */
|
|
444
|
+
secondaryIntent?: "success" | "warning" | "critical" | "neutral";
|
|
445
|
+
/** Number formatting options */
|
|
446
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
447
|
+
locale?: string;
|
|
448
|
+
align?: "left" | "right";
|
|
449
|
+
className?: string;
|
|
450
|
+
}
|
|
451
|
+
declare const NumberCell: React.FC<NumberCellProps>;
|
|
452
|
+
interface DateCellProps {
|
|
453
|
+
date: Date | string;
|
|
454
|
+
format?: Intl.DateTimeFormatOptions;
|
|
455
|
+
locale?: string;
|
|
456
|
+
className?: string;
|
|
457
|
+
}
|
|
458
|
+
declare const DateCell: React.FC<DateCellProps>;
|
|
459
|
+
interface EmailCellProps {
|
|
460
|
+
email: string;
|
|
461
|
+
className?: string;
|
|
462
|
+
}
|
|
463
|
+
declare const EmailCell: React.FC<EmailCellProps>;
|
|
464
|
+
interface LinkCellProps {
|
|
465
|
+
href: string;
|
|
466
|
+
label?: string;
|
|
467
|
+
target?: string;
|
|
468
|
+
className?: string;
|
|
469
|
+
}
|
|
470
|
+
declare const LinkCell: React.FC<LinkCellProps>;
|
|
471
|
+
interface TextCellProps {
|
|
472
|
+
value: string;
|
|
473
|
+
secondary?: boolean;
|
|
474
|
+
className?: string;
|
|
475
|
+
}
|
|
476
|
+
declare const TextCell: React.FC<TextCellProps>;
|
|
477
|
+
interface ButtonCellProps extends ButtonProps {
|
|
478
|
+
className?: string;
|
|
479
|
+
}
|
|
480
|
+
declare const ButtonCell: React.FC<ButtonCellProps>;
|
|
481
|
+
interface EditableCellProps {
|
|
482
|
+
value: string;
|
|
483
|
+
onSave: (value: string) => void;
|
|
484
|
+
className?: string;
|
|
485
|
+
}
|
|
486
|
+
declare const EditableCell: React.FC<EditableCellProps>;
|
|
487
|
+
interface RowActionsProps {
|
|
488
|
+
children: React.ReactNode;
|
|
489
|
+
className?: string;
|
|
490
|
+
}
|
|
491
|
+
declare const RowActions: React.FC<RowActionsProps>;
|
|
492
|
+
|
|
493
|
+
interface DataTableProps<TData, TValue> {
|
|
494
|
+
/** Column definitions — see TanStack Table docs */
|
|
495
|
+
columns: ColumnDef<TData, TValue>[];
|
|
496
|
+
/** Row data array */
|
|
497
|
+
data: TData[];
|
|
498
|
+
/** Enable client-side sorting */
|
|
499
|
+
enableSorting?: boolean;
|
|
500
|
+
/** Enable client-side column filtering */
|
|
501
|
+
enableFiltering?: boolean;
|
|
502
|
+
/** Enable client-side pagination */
|
|
503
|
+
enablePagination?: boolean;
|
|
504
|
+
/** Enable row selection via checkbox */
|
|
505
|
+
enableRowSelection?: boolean;
|
|
506
|
+
/** Enable column visibility toggling */
|
|
507
|
+
enableColumnVisibility?: boolean;
|
|
508
|
+
/** Enable column pinning */
|
|
509
|
+
enableColumnPinning?: boolean;
|
|
510
|
+
/** Enable column resizing */
|
|
511
|
+
enableColumnResizing?: boolean;
|
|
512
|
+
/** Enable column drag reordering */
|
|
513
|
+
enableColumnDrag?: boolean;
|
|
514
|
+
/** Controlled sorting state */
|
|
515
|
+
sorting?: SortingState;
|
|
516
|
+
onSortingChange?: OnChangeFn<SortingState>;
|
|
517
|
+
/** Controlled column filters state */
|
|
518
|
+
columnFilters?: ColumnFiltersState;
|
|
519
|
+
onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>;
|
|
520
|
+
/** Controlled pagination state */
|
|
521
|
+
pagination?: PaginationState;
|
|
522
|
+
onPaginationChange?: OnChangeFn<PaginationState>;
|
|
523
|
+
/** Controlled row selection state */
|
|
524
|
+
rowSelection?: RowSelectionState;
|
|
525
|
+
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
|
|
526
|
+
/** Controlled column visibility state */
|
|
527
|
+
columnVisibility?: VisibilityState;
|
|
528
|
+
onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
|
|
529
|
+
/** Controlled column order state */
|
|
530
|
+
columnOrder?: ColumnOrderState;
|
|
531
|
+
onColumnOrderChange?: OnChangeFn<ColumnOrderState>;
|
|
532
|
+
/** Controlled column pinning state */
|
|
533
|
+
columnPinning?: ColumnPinningState;
|
|
534
|
+
onColumnPinningChange?: OnChangeFn<ColumnPinningState>;
|
|
535
|
+
/** Render prop to access the table instance for external controls */
|
|
536
|
+
children?: (table: Table$1<TData>) => React.ReactNode;
|
|
537
|
+
/** className for the table wrapper */
|
|
538
|
+
className?: string;
|
|
539
|
+
/** Custom empty state (renders inside a full-width cell) */
|
|
540
|
+
emptyState?: React.ReactNode;
|
|
541
|
+
/** Simple empty message string (fallback if emptyState not provided) */
|
|
542
|
+
emptyMessage?: React.ReactNode;
|
|
543
|
+
/** Add border-top to the header (useful in full-width / no container layouts) */
|
|
544
|
+
bordered?: boolean;
|
|
545
|
+
}
|
|
546
|
+
declare module "@tanstack/react-table" {
|
|
547
|
+
interface ColumnMeta<TData extends unknown, TValue> {
|
|
548
|
+
icon?: IconDefinition;
|
|
549
|
+
enableDrag?: boolean;
|
|
550
|
+
filterType?: "string" | "number" | "date" | "select";
|
|
551
|
+
filterOptions?: string[];
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
type FilterOperator = "contains" | "does_not_contain" | "is" | "is_not" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty" | "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "between" | "is_before" | "is_after" | "is_between" | "is_any_of" | "is_none_of";
|
|
555
|
+
declare function DataTableInner<TData, TValue>({ columns, data, enableSorting, enableFiltering, enablePagination, enableRowSelection, enableColumnVisibility, enableColumnPinning, enableColumnResizing, enableColumnDrag, sorting: sortingProp, onSortingChange, columnFilters: columnFiltersProp, onColumnFiltersChange, pagination: paginationProp, onPaginationChange, rowSelection: rowSelectionProp, onRowSelectionChange, columnVisibility: columnVisibilityProp, onColumnVisibilityChange, columnOrder: columnOrderProp, onColumnOrderChange, columnPinning: columnPinningProp, onColumnPinningChange, children, className, emptyState, emptyMessage, bordered, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
556
|
+
interface DataTablePaginationProps<TData> {
|
|
557
|
+
table: Table$1<TData>;
|
|
558
|
+
pageSizeOptions?: number[];
|
|
559
|
+
className?: string;
|
|
560
|
+
}
|
|
561
|
+
declare function DataTablePagination<TData>({ table, pageSizeOptions, className, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare const DataTable: typeof DataTableInner & {
|
|
563
|
+
displayName: string;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
567
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
568
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
569
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
570
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
571
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
572
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
573
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
574
|
+
|
|
575
|
+
declare const SidePanel: React.FC<DialogPrimitive.DialogProps>;
|
|
576
|
+
declare const SidePanelTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
577
|
+
declare const SidePanelClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
578
|
+
interface SidePanelContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
579
|
+
/** Whether to show the overlay behind the panel. Defaults to true. */
|
|
580
|
+
overlay?: boolean;
|
|
581
|
+
}
|
|
582
|
+
declare const SidePanelContent: React.ForwardRefExoticComponent<SidePanelContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
583
|
+
|
|
584
|
+
export { Avatar, AvatarCell, type AvatarCellProps, type AvatarProps, Badge, type BadgeProps, BrowserTab, BrowserTabItem, type BrowserTabItemProps, type BrowserTabProps, Button, ButtonCell, type ButtonCellProps, type ButtonProps, Checkbox, type CheckboxProps, DataTable, DataTablePagination, type DataTablePaginationProps, type DataTableProps, DateCell, type DateCellProps, Dialog, type DialogProps, DropdownMenu, DropdownMenuClear, type DropdownMenuClearProps, DropdownMenuContent, DropdownMenuHeading, type DropdownMenuHeadingProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuList, type DropdownMenuListProps, type DropdownMenuProps, DropdownMenuRadixItem, type DropdownMenuRadixItemProps, DropdownMenuRoot, DropdownMenuTrigger, EditableCell, type EditableCellProps, EmailCell, type EmailCellProps, EmptyState, type EmptyStateProps, type FilterOperator, InfoMessage, type InfoMessageProps, InputLabel, type InputLabelProps, Link, LinkCell, type LinkCellProps, type LinkProps, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalOverlay, ModalTitle, ModalTrigger, NumberCell, type NumberCellProps, type Product, ProductLogo, type ProductLogoProps, RowActions, type RowActionsProps, SearchBar, type SearchBarProps, Select, type SelectProps, SidePanel, SidePanelClose, SidePanelContent, type SidePanelContentProps, SidePanelTrigger, Sidebar, SidebarFooter, type SidebarFooterProps, SidebarHeader, SidebarHeadingItem, type SidebarHeadingItemProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatusCell, type StatusCellProps, Switch, type SwitchProps, TabContent, type TabContentProps, TabList, type TabListProps, TabTrigger, type TabTriggerProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, type TabsProps, Tag, type TagProps, TextArea, type TextAreaProps, TextCell, type TextCellProps, TextInput, type TextInputProps, Toast, type ToastProps, ToastProvider, ToastViewport, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Typography, type TypographyProps, UserMenu, UserMenuInfoRow, type UserMenuInfoRowProps, type UserMenuProps, UserMenuSection, type UserMenuSectionProps, avatarVariants, badgeVariants, buttonVariants, cn, emptyStateVariants, infoMessageVariants, linkVariants, modalVariants, productLogoVariants, searchBarVariants, selectVariants, sidebarItemVariants, tagVariants, textInputVariants, toastVariants, tooltipContentVariants, typographyVariants, useSidebarContext };
|