@algenium/blocks 1.0.0-rc.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 +676 -0
- package/dist/index.cjs +5434 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +397 -0
- package/dist/index.d.ts +397 -0
- package/dist/index.js +5346 -0
- package/dist/index.js.map +1 -0
- package/package.json +105 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
8
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
9
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
11
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
13
|
+
import { ClassValue } from 'clsx';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Blocks Context Interfaces
|
|
17
|
+
*
|
|
18
|
+
* These interfaces define the contract that consuming apps must implement
|
|
19
|
+
* to provide context to blocks components. Components will automatically
|
|
20
|
+
* consume these contexts when available, falling back to props otherwise.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Notification type for blocks components.
|
|
24
|
+
* This is the format that blocks components expect.
|
|
25
|
+
*/
|
|
26
|
+
interface BlocksNotification {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
message?: string;
|
|
30
|
+
type?: "info" | "success" | "warning" | "error";
|
|
31
|
+
timestamp: Date;
|
|
32
|
+
read?: boolean;
|
|
33
|
+
href?: string;
|
|
34
|
+
channelId?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Notifications context value interface.
|
|
38
|
+
* Consuming apps implement this interface to provide notifications data
|
|
39
|
+
* and actions to blocks components.
|
|
40
|
+
*/
|
|
41
|
+
interface NotificationsContextValue {
|
|
42
|
+
/** List of notifications to display */
|
|
43
|
+
notifications: BlocksNotification[];
|
|
44
|
+
/** Count of unread notifications */
|
|
45
|
+
unreadCount: number;
|
|
46
|
+
/** Mark a single notification as read by ID */
|
|
47
|
+
markAsRead: (id: string) => void | Promise<void>;
|
|
48
|
+
/** Mark all notifications as read */
|
|
49
|
+
markAllAsRead: () => void | Promise<void>;
|
|
50
|
+
/** Dismiss/remove a notification (optional) */
|
|
51
|
+
dismiss?: (id: string) => void;
|
|
52
|
+
/** Clear all notifications (optional) */
|
|
53
|
+
clearAll?: () => void;
|
|
54
|
+
/** Handle notification click (optional) */
|
|
55
|
+
onNotificationClick?: (notification: BlocksNotification) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* React context for notifications.
|
|
59
|
+
* Blocks components will consume this context when available.
|
|
60
|
+
*/
|
|
61
|
+
declare const NotificationsContext: React.Context<NotificationsContextValue | null>;
|
|
62
|
+
/**
|
|
63
|
+
* Hook to consume the notifications context.
|
|
64
|
+
* Returns null if no provider is present (components should fall back to props).
|
|
65
|
+
*/
|
|
66
|
+
declare function useNotificationsContext(): NotificationsContextValue | null;
|
|
67
|
+
/**
|
|
68
|
+
* Language definition for the language switcher.
|
|
69
|
+
*/
|
|
70
|
+
interface BlocksLanguage {
|
|
71
|
+
code: string;
|
|
72
|
+
name: string;
|
|
73
|
+
flag?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Language context value interface.
|
|
77
|
+
* Consuming apps implement this interface to provide language state
|
|
78
|
+
* and actions to blocks components.
|
|
79
|
+
*/
|
|
80
|
+
interface LanguageContextValue {
|
|
81
|
+
/** Current language code (e.g., "en", "es") */
|
|
82
|
+
language: string;
|
|
83
|
+
/** Function to change the language */
|
|
84
|
+
setLanguage: (lang: string) => void;
|
|
85
|
+
/** Available languages (optional, components have defaults) */
|
|
86
|
+
languages?: BlocksLanguage[];
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* React context for language.
|
|
90
|
+
* Blocks components will consume this context when available.
|
|
91
|
+
*/
|
|
92
|
+
declare const LanguageContext: React.Context<LanguageContextValue | null>;
|
|
93
|
+
/**
|
|
94
|
+
* Hook to consume the language context.
|
|
95
|
+
* Returns null if no provider is present (components should fall back to props).
|
|
96
|
+
*/
|
|
97
|
+
declare function useLanguageContext(): LanguageContextValue | null;
|
|
98
|
+
|
|
99
|
+
type ThemeSwitcherLabels = {
|
|
100
|
+
/** Tooltip label for the theme switcher */
|
|
101
|
+
theme?: string;
|
|
102
|
+
/** Label for "System" option */
|
|
103
|
+
system?: string;
|
|
104
|
+
/** Label for "Light" option */
|
|
105
|
+
light?: string;
|
|
106
|
+
/** Label for "Dark" option */
|
|
107
|
+
dark?: string;
|
|
108
|
+
};
|
|
109
|
+
type ThemeSwitcherProps = {
|
|
110
|
+
className?: string;
|
|
111
|
+
/** Size of the switcher */
|
|
112
|
+
size?: "sm" | "md" | "lg";
|
|
113
|
+
/** Shape of the button */
|
|
114
|
+
shape?: "rounded" | "pill";
|
|
115
|
+
/** Mini variant shows only current theme icon as dropdown */
|
|
116
|
+
variant?: "default" | "mini";
|
|
117
|
+
/** Dropdown alignment (for mini variant) */
|
|
118
|
+
align?: "start" | "center" | "end";
|
|
119
|
+
/** Dropdown side (for mini variant) */
|
|
120
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
121
|
+
/** Translation labels - consumers can pass their own t() values */
|
|
122
|
+
labels?: ThemeSwitcherLabels;
|
|
123
|
+
};
|
|
124
|
+
declare function ThemeSwitcher({ className, size, shape, variant, align, side, labels: userLabels, }: ThemeSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
125
|
+
|
|
126
|
+
type Language = {
|
|
127
|
+
/** Language key/code (e.g., "en", "es") */
|
|
128
|
+
key: string;
|
|
129
|
+
/** Short label for segmented control (e.g., "EN", "ES") */
|
|
130
|
+
label: string;
|
|
131
|
+
/** Full native name for dropdown (e.g., "English", "Español") */
|
|
132
|
+
nativeName: string;
|
|
133
|
+
};
|
|
134
|
+
type LanguageSwitcherLabels = {
|
|
135
|
+
/** Tooltip label for the language switcher */
|
|
136
|
+
language?: string;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Default languages when none are provided via props or context.
|
|
140
|
+
*/
|
|
141
|
+
declare const defaultLanguages: Language[];
|
|
142
|
+
type LanguageSwitcherProps = {
|
|
143
|
+
/**
|
|
144
|
+
* Available languages. Optional if using LanguageContext.
|
|
145
|
+
* When context is available, context.languages is used; props override context.
|
|
146
|
+
* Falls back to defaultLanguages if neither provided.
|
|
147
|
+
*/
|
|
148
|
+
languages?: Language[];
|
|
149
|
+
/**
|
|
150
|
+
* Current selected language key. Optional if using LanguageContext.
|
|
151
|
+
* When context is available, context.language is used; props override context.
|
|
152
|
+
*/
|
|
153
|
+
currentLanguage?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Callback when language changes. Optional if using LanguageContext.
|
|
156
|
+
* When context is available, context.setLanguage is used; props override context.
|
|
157
|
+
*/
|
|
158
|
+
onLanguageChange?: (languageKey: string) => void;
|
|
159
|
+
/** Labels for accessibility/tooltips */
|
|
160
|
+
labels?: LanguageSwitcherLabels;
|
|
161
|
+
className?: string;
|
|
162
|
+
/** Size of the switcher */
|
|
163
|
+
size?: "sm" | "md" | "lg";
|
|
164
|
+
/** Shape of the button */
|
|
165
|
+
shape?: "rounded" | "squared" | "pill";
|
|
166
|
+
/** Mini variant shows only an icon */
|
|
167
|
+
variant?: "default" | "mini";
|
|
168
|
+
/** Show language icon in default variant */
|
|
169
|
+
showIcon?: boolean;
|
|
170
|
+
/** Dropdown alignment */
|
|
171
|
+
align?: "start" | "center" | "end";
|
|
172
|
+
/** Dropdown side */
|
|
173
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
174
|
+
};
|
|
175
|
+
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, variant, showIcon, align, side, }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
176
|
+
|
|
177
|
+
interface AvatarEditorProps {
|
|
178
|
+
/** Current cropped image as data URL (controlled) */
|
|
179
|
+
value?: string | null;
|
|
180
|
+
/** Callback when the cropped image changes */
|
|
181
|
+
onChange?: (dataUrl: string | null) => void;
|
|
182
|
+
/** Size of the editor container in pixels */
|
|
183
|
+
size?: number;
|
|
184
|
+
/** Whether to show grid overlay by default */
|
|
185
|
+
showGrid?: boolean;
|
|
186
|
+
/** Output image size in pixels */
|
|
187
|
+
outputSize?: number;
|
|
188
|
+
/** Output format */
|
|
189
|
+
outputFormat?: "png" | "jpeg" | "webp";
|
|
190
|
+
/** Output quality for jpeg/webp (0-1) */
|
|
191
|
+
outputQuality?: number;
|
|
192
|
+
/** Additional class names */
|
|
193
|
+
className?: string;
|
|
194
|
+
/** Control size variant - 'default' for desktop, 'large' for mobile/touch devices */
|
|
195
|
+
controlSize?: "default" | "large";
|
|
196
|
+
}
|
|
197
|
+
declare function AvatarEditor({ value: _value, onChange, size, showGrid: initialShowGrid, outputSize, outputFormat, outputQuality, className, controlSize, }: AvatarEditorProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
interface AvatarEditorDialogProps {
|
|
200
|
+
/** Current avatar URL or data URL */
|
|
201
|
+
value?: string | null;
|
|
202
|
+
/** Callback when avatar changes (after accepting) */
|
|
203
|
+
onChange?: (dataUrl: string | null) => void;
|
|
204
|
+
/** Async callback for saving/uploading - return true for success, false for failure */
|
|
205
|
+
onSave?: (dataUrl: string) => Promise<boolean> | boolean;
|
|
206
|
+
/** Size of the displayed avatar in pixels */
|
|
207
|
+
displaySize?: number;
|
|
208
|
+
/** Size of the editor in the dialog */
|
|
209
|
+
editorSize?: number;
|
|
210
|
+
/** Output image size */
|
|
211
|
+
outputSize?: number;
|
|
212
|
+
/** Placeholder text when no avatar */
|
|
213
|
+
placeholder?: string;
|
|
214
|
+
/** Edit button label for accessibility */
|
|
215
|
+
editLabel?: string;
|
|
216
|
+
/** Dialog title */
|
|
217
|
+
dialogTitle?: string;
|
|
218
|
+
/** Accept button text */
|
|
219
|
+
acceptText?: string;
|
|
220
|
+
/** Cancel button text */
|
|
221
|
+
cancelText?: string;
|
|
222
|
+
/** Success message */
|
|
223
|
+
successMessage?: string;
|
|
224
|
+
/** Error message */
|
|
225
|
+
errorMessage?: string;
|
|
226
|
+
/** Additional class names */
|
|
227
|
+
className?: string;
|
|
228
|
+
}
|
|
229
|
+
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, successMessage, errorMessage, className, }: AvatarEditorDialogProps): react_jsx_runtime.JSX.Element;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* NotificationsWidget - A compact notification bell for navigation bars
|
|
233
|
+
*
|
|
234
|
+
* @description
|
|
235
|
+
* Displays a bell icon with unread count badge, plays sound on new notifications,
|
|
236
|
+
* and shows a popover with recent notifications that can be marked as read or dismissed.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```tsx
|
|
240
|
+
* <NotificationsWidget
|
|
241
|
+
* notifications={notifications}
|
|
242
|
+
* onMarkAsRead={(id) => markAsRead(id)}
|
|
243
|
+
* onMarkAllAsRead={() => markAllAsRead()}
|
|
244
|
+
* onDismiss={(id) => dismiss(id)}
|
|
245
|
+
* onClearAll={() => clearAll()}
|
|
246
|
+
* playSound={true}
|
|
247
|
+
* />
|
|
248
|
+
* ```
|
|
249
|
+
*/
|
|
250
|
+
type NotificationType = "info" | "success" | "warning" | "error";
|
|
251
|
+
interface Notification {
|
|
252
|
+
id: string;
|
|
253
|
+
title: string;
|
|
254
|
+
message?: string;
|
|
255
|
+
type?: NotificationType;
|
|
256
|
+
timestamp: Date;
|
|
257
|
+
read?: boolean;
|
|
258
|
+
href?: string;
|
|
259
|
+
channelId?: string;
|
|
260
|
+
}
|
|
261
|
+
type WidgetSize = "sm" | "md" | "lg";
|
|
262
|
+
type DotColor = "red" | "blue" | "green" | "amber" | "purple" | "primary";
|
|
263
|
+
type SoundType = "chime" | "bell" | "pop" | "ding" | "none";
|
|
264
|
+
type PulseStyle = "ring" | "glow" | "bounce" | "none";
|
|
265
|
+
interface NotificationsWidgetProps {
|
|
266
|
+
/**
|
|
267
|
+
* Notifications to display. Optional if using NotificationsContext.
|
|
268
|
+
* When context is available, context.notifications is used; props override context.
|
|
269
|
+
*/
|
|
270
|
+
notifications?: Notification[];
|
|
271
|
+
/**
|
|
272
|
+
* Called when a notification becomes visible (scroll into view).
|
|
273
|
+
* Should return a Promise - if rejected, the notification will be reverted to unread.
|
|
274
|
+
* Uses optimistic update: marks as read immediately, reverts on failure.
|
|
275
|
+
* Optional if using NotificationsContext.
|
|
276
|
+
*/
|
|
277
|
+
onMarkAsRead?: (id: string) => void | Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* Called when "Mark all as read" button is clicked.
|
|
280
|
+
* Should return a Promise - if rejected, notifications will be reverted to unread.
|
|
281
|
+
* Uses optimistic update: marks all as read immediately, reverts on failure.
|
|
282
|
+
* Optional if using NotificationsContext.
|
|
283
|
+
*/
|
|
284
|
+
onMarkAllAsRead?: () => void | Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Called when a notification is dismissed.
|
|
287
|
+
* Optional if using NotificationsContext.
|
|
288
|
+
*/
|
|
289
|
+
onDismiss?: (id: string) => void;
|
|
290
|
+
/**
|
|
291
|
+
* Called when all notifications are cleared.
|
|
292
|
+
* Optional if using NotificationsContext.
|
|
293
|
+
*/
|
|
294
|
+
onClearAll?: () => void;
|
|
295
|
+
/**
|
|
296
|
+
* Called when a notification is clicked.
|
|
297
|
+
* Optional if using NotificationsContext.
|
|
298
|
+
*/
|
|
299
|
+
onNotificationClick?: (notification: Notification) => void;
|
|
300
|
+
size?: WidgetSize;
|
|
301
|
+
/**
|
|
302
|
+
* Maximum number of notifications to show in the list.
|
|
303
|
+
* Default: 5 on desktop. Scroll to see more.
|
|
304
|
+
*/
|
|
305
|
+
maxVisible?: number;
|
|
306
|
+
playSound?: boolean;
|
|
307
|
+
soundUrl?: string;
|
|
308
|
+
className?: string;
|
|
309
|
+
emptyMessage?: string;
|
|
310
|
+
title?: string;
|
|
311
|
+
dotColor?: DotColor;
|
|
312
|
+
showPulse?: boolean;
|
|
313
|
+
soundType?: SoundType;
|
|
314
|
+
pulseStyle?: PulseStyle;
|
|
315
|
+
soundCooldown?: number;
|
|
316
|
+
}
|
|
317
|
+
declare function NotificationsWidget({ notifications: propNotifications, onMarkAsRead: propOnMarkAsRead, onMarkAllAsRead: propOnMarkAllAsRead, onDismiss: propOnDismiss, onClearAll: propOnClearAll, onNotificationClick: propOnNotificationClick, size, maxVisible, playSound, soundUrl, className, emptyMessage, title, dotColor, showPulse, soundType, pulseStyle, soundCooldown, }: NotificationsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare const buttonVariants: (props?: ({
|
|
320
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
321
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
322
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
323
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
324
|
+
asChild?: boolean;
|
|
325
|
+
}): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
328
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
329
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
330
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
331
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
332
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
333
|
+
inset?: boolean;
|
|
334
|
+
variant?: "default" | "destructive";
|
|
335
|
+
}): react_jsx_runtime.JSX.Element;
|
|
336
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
338
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
339
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
340
|
+
inset?: boolean;
|
|
341
|
+
}): react_jsx_runtime.JSX.Element;
|
|
342
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
344
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
345
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
346
|
+
inset?: boolean;
|
|
347
|
+
}): react_jsx_runtime.JSX.Element;
|
|
348
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
349
|
+
|
|
350
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
351
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
352
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
353
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
354
|
+
|
|
355
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
356
|
+
|
|
357
|
+
declare const toggleVariants: (props?: ({
|
|
358
|
+
variant?: "default" | "outline" | null | undefined;
|
|
359
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
360
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
361
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
362
|
+
|
|
363
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
364
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
365
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
366
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
368
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
369
|
+
showCloseButton?: boolean;
|
|
370
|
+
}): react_jsx_runtime.JSX.Element;
|
|
371
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
372
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
373
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
374
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
375
|
+
|
|
376
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
377
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
378
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
379
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
380
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
381
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
382
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
383
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
384
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
385
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
386
|
+
|
|
387
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
388
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
389
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
390
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
391
|
+
|
|
392
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
393
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
394
|
+
|
|
395
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
396
|
+
|
|
397
|
+
export { AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, type BlocksNotification, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cn, defaultLanguages, toggleVariants, useLanguageContext, useNotificationsContext };
|