@theaiplatform/miniapp-sdk 0.0.1 → 0.1.0-dev.5264044

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.d.ts DELETED
@@ -1,826 +0,0 @@
1
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { ClassProp } from 'class-variance-authority/types';
4
- import { ClassValue } from 'clsx';
5
- import { ComponentProps } from 'react';
6
- import * as DialogPrimitive from '@radix-ui/react-dialog';
7
- import { GroupProps } from 'react-resizable-panels';
8
- import { HTMLAttributes } from 'react';
9
- import { JSX } from 'react/jsx-runtime';
10
- import * as LabelPrimitive from '@radix-ui/react-label';
11
- import type { LucideIcon } from 'lucide-react';
12
- import { PanelProps } from 'react-resizable-panels';
13
- import * as ProgressPrimitive from '@radix-ui/react-progress';
14
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
15
- import * as React_2 from 'react';
16
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
17
- import * as SelectPrimitive from '@radix-ui/react-select';
18
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
19
- import { SeparatorProps } from 'react-resizable-panels';
20
- import * as SliderPrimitive from '@radix-ui/react-slider';
21
- import * as TabsPrimitive from '@radix-ui/react-tabs';
22
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
23
- import * as TogglePrimitive from '@radix-ui/react-toggle';
24
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
25
- import { VariantProps } from 'class-variance-authority';
26
-
27
- export declare function Alert({ className, variant, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> & {
28
- ref?: React_2.Ref<HTMLDivElement>;
29
- }): JSX.Element;
30
-
31
- export declare namespace Alert {
32
- var displayName: string;
33
- }
34
-
35
- export declare function AlertDescription({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
36
- ref?: React_2.Ref<HTMLDivElement>;
37
- }): JSX.Element;
38
-
39
- export declare namespace AlertDescription {
40
- var displayName: string;
41
- }
42
-
43
- export declare const AlertDialog: React_2.FC<AlertDialogPrimitive.AlertDialogProps>;
44
-
45
- export declare const AlertDialogAction: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
46
-
47
- export declare const AlertDialogCancel: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
48
-
49
- export declare function AlertDialogContent({ className, onOpenAutoFocus, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & {
50
- ref?: React_2.Ref<React_2.ComponentRef<typeof AlertDialogPrimitive.Content>>;
51
- }): JSX.Element;
52
-
53
- export declare namespace AlertDialogContent {
54
- var displayName: string | undefined;
55
- }
56
-
57
- export declare const AlertDialogDescription: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
58
-
59
- export declare const AlertDialogFooter: {
60
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
61
- displayName: string;
62
- };
63
-
64
- export declare const AlertDialogHeader: {
65
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
66
- displayName: string;
67
- };
68
-
69
- export declare function AlertDialogOverlay({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay> & {
70
- ref?: React_2.Ref<React_2.ComponentRef<typeof AlertDialogPrimitive.Overlay>>;
71
- }): JSX.Element;
72
-
73
- export declare namespace AlertDialogOverlay {
74
- var displayName: string | undefined;
75
- }
76
-
77
- export declare const AlertDialogPortal: React_2.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
78
-
79
- export declare const AlertDialogTitle: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
80
-
81
- export declare const AlertDialogTrigger: React_2.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
82
-
83
- export declare const AlertTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLHeadingElement>>;
84
-
85
- declare const alertVariants: (props?: ({
86
- variant?: "default" | "info" | "destructive" | "warning" | "success" | null | undefined;
87
- } & ClassProp) | undefined) => string;
88
-
89
- export declare function Badge({ className, variant, ...props }: BadgeProps): JSX.Element;
90
-
91
- declare interface BadgeProps extends React_2.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
92
- }
93
-
94
- declare const badgeVariants: (props?: ({
95
- variant?: "default" | "info" | "destructive" | "warning" | "success" | "outline" | "secondary" | "draft" | null | undefined;
96
- } & ClassProp) | undefined) => string;
97
-
98
- export declare function Button({ className, variant, size, shape, asChild, ref, ...props }: ButtonProps): JSX.Element;
99
-
100
- export declare namespace Button {
101
- var displayName: string;
102
- }
103
-
104
- export declare function ButtonGroup({ className, orientation, ...props }: Omit<React_2.ComponentProps<'div'>, 'ref'> & VariantProps<typeof buttonGroupVariants>): JSX.Element;
105
-
106
- export declare function ButtonGroupSeparator({ className, orientation, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
107
-
108
- export declare function ButtonGroupText({ className, asChild, ...props }: Omit<React_2.ComponentProps<'div'>, 'ref'> & {
109
- asChild?: boolean;
110
- }): JSX.Element;
111
-
112
- declare const buttonGroupVariants: (props?: ({
113
- orientation?: "horizontal" | "vertical" | null | undefined;
114
- } & ClassProp) | undefined) => string;
115
-
116
- export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
117
- asChild?: boolean;
118
- isLoading?: boolean;
119
- ref?: React_2.Ref<HTMLButtonElement>;
120
- }
121
-
122
- declare const buttonVariants: (props?: ({
123
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "tertiary" | "ghost" | null | undefined;
124
- size?: "sm" | "default" | "compact" | "lg" | "icon" | "icon-md" | "icon-sm" | "icon-xs" | null | undefined;
125
- shape?: "default" | "pill" | null | undefined;
126
- } & ClassProp) | undefined) => string;
127
-
128
- export declare function Card({ className, variant, ref, ...props }: CardProps & {
129
- ref?: React_2.Ref<HTMLDivElement>;
130
- }): JSX.Element;
131
-
132
- export declare namespace Card {
133
- var displayName: string;
134
- }
135
-
136
- export declare function CardContent({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
137
- ref?: React_2.Ref<HTMLDivElement>;
138
- }): JSX.Element;
139
-
140
- export declare namespace CardContent {
141
- var displayName: string;
142
- }
143
-
144
- export declare function CardDescription({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
145
- ref?: React_2.Ref<HTMLDivElement>;
146
- }): JSX.Element;
147
-
148
- export declare namespace CardDescription {
149
- var displayName: string;
150
- }
151
-
152
- export declare function CardFooter({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
153
- ref?: React_2.Ref<HTMLDivElement>;
154
- }): JSX.Element;
155
-
156
- export declare namespace CardFooter {
157
- var displayName: string;
158
- }
159
-
160
- export declare function CardHeader({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
161
- ref?: React_2.Ref<HTMLDivElement>;
162
- }): JSX.Element;
163
-
164
- export declare namespace CardHeader {
165
- var displayName: string;
166
- }
167
-
168
- declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
169
- }
170
-
171
- export declare function CardTitle({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
172
- ref?: React_2.Ref<HTMLDivElement>;
173
- }): JSX.Element;
174
-
175
- export declare namespace CardTitle {
176
- var displayName: string;
177
- }
178
-
179
- declare const cardVariants: (props?: ({
180
- variant?: "default" | "transparent" | null | undefined;
181
- } & ClassProp) | undefined) => string;
182
-
183
- export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
184
-
185
- /** Merge conditional classes while resolving Tailwind utility conflicts. */
186
- export declare function cn(...inputs: ClassValue[]): string;
187
-
188
- /**
189
- * CodeBlock component for displaying syntax-highlighted code.
190
- *
191
- * Uses prism-react-renderer for React-native syntax highlighting,
192
- * avoiding dangerouslySetInnerHTML for security and React 19 Compiler compatibility.
193
- *
194
- * Supports dark/light theme switching via CSS classes.
195
- *
196
- * @example
197
- * ```tsx
198
- * <CodeBlock code="const x = 1;" language="typescript" showLineNumbers>
199
- * <CodeBlockCopyButton />
200
- * </CodeBlock>
201
- * ```
202
- */
203
- export declare const CodeBlock: React_2.MemoExoticComponent<({ code, language, highlight, showLineNumbers, command, collapsible, defaultExpanded, className, children, ...props }: CodeBlockProps) => JSX.Element>;
204
-
205
- export declare const CodeBlockCopyButton: React_2.MemoExoticComponent<({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => JSX.Element>;
206
-
207
- declare type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
208
- onCopy?: () => void;
209
- onError?: (error: Error) => void;
210
- timeout?: number;
211
- };
212
-
213
- declare type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
214
- code: string;
215
- language: SupportedLanguage;
216
- /** Disable Prism tokenization for unusually large payloads. */
217
- highlight?: boolean;
218
- showLineNumbers?: boolean;
219
- command?: string | string[];
220
- collapsible?: boolean;
221
- defaultExpanded?: boolean;
222
- };
223
-
224
- export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
225
-
226
- export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
227
-
228
- export declare function DialogContent({ className, children, ref, container, hideCloseButton, onOpenAutoFocus, onEscapeKeyDown, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {
229
- ref?: React_2.Ref<React_2.ComponentRef<typeof DialogPrimitive.Content>>;
230
- container?: HTMLElement | null;
231
- hideCloseButton?: boolean;
232
- }): JSX.Element;
233
-
234
- export declare namespace DialogContent {
235
- var displayName: string | undefined;
236
- }
237
-
238
- export declare function DialogDescription({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> & {
239
- ref?: React_2.Ref<React_2.ComponentRef<typeof DialogPrimitive.Description>>;
240
- }): JSX.Element;
241
-
242
- export declare namespace DialogDescription {
243
- var displayName: string | undefined;
244
- }
245
-
246
- export declare const DialogFooter: {
247
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
248
- displayName: string;
249
- };
250
-
251
- export declare const DialogHeader: {
252
- ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
253
- displayName: string;
254
- };
255
-
256
- export declare function DialogOverlay({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay> & {
257
- ref?: React_2.Ref<React_2.ComponentRef<typeof DialogPrimitive.Overlay>>;
258
- }): JSX.Element;
259
-
260
- export declare namespace DialogOverlay {
261
- var displayName: string | undefined;
262
- }
263
-
264
- export declare const DialogPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
265
-
266
- export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
267
-
268
- export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
269
-
270
- export declare function Empty({ className, ref, size, variant, ...props }: React_2.HTMLAttributes<HTMLDivElement> & VariantProps<typeof emptyVariants> & {
271
- ref?: React_2.Ref<HTMLDivElement>;
272
- }): JSX.Element;
273
-
274
- export declare namespace Empty {
275
- var displayName: string;
276
- }
277
-
278
- export declare function EmptyContent({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
279
- ref?: React_2.Ref<HTMLDivElement>;
280
- }): JSX.Element;
281
-
282
- export declare namespace EmptyContent {
283
- var displayName: string;
284
- }
285
-
286
- export declare function EmptyDescription({ className, ref, ...props }: React_2.HTMLAttributes<HTMLParagraphElement> & {
287
- ref?: React_2.Ref<HTMLParagraphElement>;
288
- }): JSX.Element;
289
-
290
- export declare namespace EmptyDescription {
291
- var displayName: string;
292
- }
293
-
294
- export declare function EmptyHeader({ className, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & {
295
- ref?: React_2.Ref<HTMLDivElement>;
296
- }): JSX.Element;
297
-
298
- export declare namespace EmptyHeader {
299
- var displayName: string;
300
- }
301
-
302
- export declare function EmptyMedia({ className, variant, ref, ...props }: React_2.HTMLAttributes<HTMLDivElement> & VariantProps<typeof emptyMediaVariants> & {
303
- ref?: React_2.Ref<HTMLDivElement>;
304
- }): JSX.Element;
305
-
306
- export declare namespace EmptyMedia {
307
- var displayName: string;
308
- }
309
-
310
- declare const emptyMediaVariants: (props?: ({
311
- variant?: "default" | "icon" | null | undefined;
312
- } & ClassProp) | undefined) => string;
313
-
314
- export declare const EmptyTitle: {
315
- (props: React_2.HTMLAttributes<HTMLHeadingElement>): JSX.Element;
316
- displayName: string;
317
- };
318
-
319
- declare const emptyVariants: (props?: ({
320
- size?: "default" | "compact" | null | undefined;
321
- variant?: "default" | "outline" | null | undefined;
322
- } & ClassProp) | undefined) => string;
323
-
324
- export declare function Field({ className, orientation, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): JSX.Element;
325
-
326
- export declare function FieldContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
327
-
328
- export declare function FieldDescription({ className, ...props }: React_2.ComponentProps<'p'>): JSX.Element;
329
-
330
- export declare function FieldError({ className, children, errors, ...props }: React_2.ComponentProps<'div'> & {
331
- errors?: Array<{
332
- message?: string;
333
- } | undefined>;
334
- }): JSX.Element | null;
335
-
336
- export declare function FieldGroup({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
337
-
338
- export declare function FieldLabel({ className, ...props }: React_2.ComponentProps<typeof Label>): JSX.Element;
339
-
340
- export declare function FieldLegend({ className, variant, ...props }: React_2.ComponentProps<'legend'> & {
341
- variant?: 'label' | 'legend';
342
- }): JSX.Element;
343
-
344
- export declare function FieldSeparator({ children, className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
345
-
346
- export declare function FieldSet({ className, ...props }: React_2.ComponentProps<'fieldset'>): JSX.Element;
347
-
348
- export declare function FieldTitle({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
349
-
350
- declare const fieldVariants: (props?: ({
351
- orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
352
- } & ClassProp) | undefined) => string;
353
-
354
- export declare function H1({ asChild, className, ...props }: Omit<HeadingProps, 'level'>): JSX.Element;
355
-
356
- export declare function H2({ asChild, className, ...props }: Omit<HeadingProps, 'level'>): JSX.Element;
357
-
358
- export declare function H3({ asChild, className, ...props }: Omit<HeadingProps, 'level'>): JSX.Element;
359
-
360
- export declare function H4({ asChild, className, ...props }: Omit<HeadingProps, 'level'>): JSX.Element;
361
-
362
- export declare const H5: React_2.ForwardRefExoticComponent<Omit<HeadingProps, "level"> & React_2.RefAttributes<HTMLHeadingElement>>;
363
-
364
- export declare function H6({ asChild, className, ...props }: Omit<HeadingProps, 'level'>): JSX.Element;
365
-
366
- declare interface HeadingProps extends React_2.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
367
- asChild?: boolean;
368
- /** Render compact (14px) while keeping the heading's semantic level. */
369
- size?: HeadingSize;
370
- }
371
-
372
- declare type HeadingSize = keyof typeof headingSizeOverrides;
373
-
374
- /**
375
- * Optional visual size overrides, decoupled from the semantic level so a
376
- * heading can keep its correct outline depth (e.g. h3) while rendering compact.
377
- * Applied after `headingVariants` in `cn`, so tailwind-merge always lets the
378
- * override win over the level's font-size/leading regardless of class order.
379
- */
380
- declare const headingSizeOverrides: {
381
- readonly sm: "text-sm leading-tight font-semibold tracking-normal";
382
- };
383
-
384
- declare const headingVariants: (props?: ({
385
- level?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
386
- } & ClassProp) | undefined) => string;
387
-
388
- /**
389
- * Icon component for rendering Lucide React icons
390
- *
391
- * Uses Lucide's native `size` prop with em units so icons scale with text.
392
- * Default size follows text (1em). Use size="md" for 1.25em, size="lg" for 1.5em.
393
- *
394
- * @example
395
- * ```tsx
396
- * import { MessageSquare } from 'lucide-react';
397
- * import { Icon } from '@/components/ui/icon';
398
- *
399
- * <Icon icon={MessageSquare} /> // 1em (default)
400
- * <Icon icon={MessageSquare} size="md" /> // 1.25em
401
- * <Icon icon={MessageSquare} size="lg" /> // 1.5em
402
- * <Icon icon={MessageSquare} size="lg" color="primary" />
403
- * ```
404
- */
405
- export declare function Icon({ className, color, icon: IconComponent, size, ...props }: IconProps): JSX.Element;
406
-
407
- declare interface IconProps extends Omit<React_2.ComponentPropsWithoutRef<LucideIcon>, 'color' | 'size'>, VariantProps<typeof iconVariants> {
408
- icon: LucideIcon;
409
- }
410
-
411
- /**
412
- * Icon variants for color only - NO size classes.
413
- * Size is handled by Lucide's native `size` prop.
414
- */
415
- declare const iconVariants: (props?: ({
416
- color?: "inherit" | "default" | "destructive" | "warning" | "success" | "secondary" | "muted" | "primary" | null | undefined;
417
- size?: "sm" | "default" | "lg" | "md" | "xs" | "xl" | null | undefined;
418
- } & ClassProp) | undefined) => string;
419
-
420
- export declare function Input({ className, density, type, error, ref, onChange, ...props }: InputProps): JSX.Element;
421
-
422
- export declare namespace Input {
423
- var displayName: string;
424
- }
425
-
426
- export declare function InputGroup({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
427
-
428
- export declare function InputGroupAddon({ className, align, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): JSX.Element;
429
-
430
- declare const inputGroupAddonVariants: (props?: ({
431
- align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
432
- } & ClassProp) | undefined) => string;
433
-
434
- export declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React_2.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): JSX.Element;
435
-
436
- declare const inputGroupButtonVariants: (props?: ({
437
- size?: "sm" | "icon-sm" | "icon-xs" | "xs" | null | undefined;
438
- } & ClassProp) | undefined) => string;
439
-
440
- export declare function InputGroupInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
441
-
442
- export declare function InputGroupText({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element;
443
-
444
- export declare function InputGroupTextarea({ className, ref, ...props }: React_2.ComponentProps<'textarea'> & {
445
- ref?: React_2.Ref<HTMLTextAreaElement>;
446
- }): JSX.Element;
447
-
448
- export declare namespace InputGroupTextarea {
449
- var displayName: string;
450
- }
451
-
452
- declare interface InputProps extends React_2.ComponentProps<'input'> {
453
- density?: 'compact' | 'default';
454
- error?: boolean;
455
- ref?: React_2.Ref<HTMLInputElement>;
456
- }
457
-
458
- export declare function Item({ className, variant, size, asChild, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
459
- asChild?: boolean;
460
- }): JSX.Element;
461
-
462
- export declare function ItemActions({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
463
-
464
- export declare function ItemContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
465
-
466
- export declare function ItemDescription({ className, ...props }: React_2.ComponentProps<'p'>): JSX.Element;
467
-
468
- export declare function ItemFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
469
-
470
- export declare function ItemGroup({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
471
-
472
- export declare function ItemHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
473
-
474
- export declare function ItemMedia({ className, variant, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): JSX.Element;
475
-
476
- declare const itemMediaVariants: (props?: ({
477
- variant?: "default" | "icon" | "image" | null | undefined;
478
- } & ClassProp) | undefined) => string;
479
-
480
- export declare function ItemSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
481
-
482
- export declare function ItemTitle({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
483
-
484
- declare const itemVariants: (props?: ({
485
- variant?: "default" | "outline" | "muted" | null | undefined;
486
- size?: "sm" | "default" | null | undefined;
487
- } & ClassProp) | undefined) => string;
488
-
489
- export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
490
-
491
- export declare function MiniAppIconButton({ icon, label, size, tooltipSide, type, variant, ...props }: MiniAppIconButtonProps): JSX.Element;
492
-
493
- export declare namespace MiniAppIconButton {
494
- var displayName: string;
495
- }
496
-
497
- export declare interface MiniAppIconButtonProps extends Omit<ButtonProps, 'children'> {
498
- icon: LucideIcon;
499
- label: string;
500
- tooltipSide?: React_2.ComponentProps<typeof TooltipContent>['side'];
501
- }
502
-
503
- export declare function MiniAppStatusBar({ children, className, tone, ...props }: MiniAppStatusBarProps): JSX.Element;
504
-
505
- export declare namespace MiniAppStatusBar {
506
- var displayName: string;
507
- }
508
-
509
- export declare interface MiniAppStatusBarProps extends Omit<React_2.ComponentProps<typeof Alert>, 'children' | 'variant'> {
510
- children: React_2.ReactNode;
511
- tone?: 'error' | 'neutral' | 'success';
512
- }
513
-
514
- export declare function MiniAppToolbar({ className, ref, ...props }: React_2.ComponentProps<'header'> & {
515
- ref?: React_2.Ref<HTMLElement>;
516
- }): JSX.Element;
517
-
518
- export declare namespace MiniAppToolbar {
519
- var displayName: string;
520
- }
521
-
522
- export declare function NativeSelect({ className, density, ref, wrapperClassName, ...props }: React_2.ComponentProps<'select'> & {
523
- density?: 'compact' | 'default';
524
- ref?: React_2.Ref<HTMLSelectElement>;
525
- wrapperClassName?: string;
526
- }): JSX.Element;
527
-
528
- export declare namespace NativeSelect {
529
- var displayName: string;
530
- }
531
-
532
- export declare function NativeSelectOptGroup({ className, ref, ...props }: React_2.ComponentProps<'optgroup'> & {
533
- ref?: React_2.Ref<HTMLOptGroupElement>;
534
- }): JSX.Element;
535
-
536
- export declare namespace NativeSelectOptGroup {
537
- var displayName: string;
538
- }
539
-
540
- export declare function NativeSelectOption({ className, ref, ...props }: React_2.ComponentProps<'option'> & {
541
- ref?: React_2.Ref<HTMLOptionElement>;
542
- }): JSX.Element;
543
-
544
- export declare namespace NativeSelectOption {
545
- var displayName: string;
546
- }
547
-
548
- /**
549
- * Host adapter for native surfaces that render above browser content.
550
- * Browser-only miniapps intentionally run without an adapter.
551
- */
552
- export declare interface NativeViewOcclusionAdapter {
553
- acquire(element: HTMLElement, claimId: string): NativeViewOcclusionRelease | Promise<NativeViewOcclusionRelease>;
554
- }
555
-
556
- export declare function NativeViewOcclusionProvider({ adapter, children, }: NativeViewOcclusionProviderProps): JSX.Element;
557
-
558
- export declare interface NativeViewOcclusionProviderProps {
559
- adapter: NativeViewOcclusionAdapter | null;
560
- children: React_2.ReactNode;
561
- }
562
-
563
- export declare type NativeViewOcclusionRelease = () => void;
564
-
565
- export declare function Progress({ className, value, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & {
566
- ref?: React_2.Ref<React_2.ComponentRef<typeof ProgressPrimitive.Root>>;
567
- }): JSX.Element;
568
-
569
- export declare namespace Progress {
570
- var displayName: string | undefined;
571
- }
572
-
573
- export declare function RadioCard({ id, value, children, className, ref, ...props }: RadioCardProps & {
574
- ref?: React_2.Ref<HTMLLabelElement>;
575
- }): JSX.Element;
576
-
577
- export declare namespace RadioCard {
578
- var displayName: string;
579
- }
580
-
581
- declare interface RadioCardProps extends Omit<React_2.ComponentPropsWithoutRef<typeof RadioGroupItem>, 'id'> {
582
- id: string;
583
- children: React_2.ReactNode;
584
- className?: string;
585
- }
586
-
587
- export declare function RadioGroup({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
588
- ref?: React_2.Ref<React_2.ComponentRef<typeof RadioGroupPrimitive.Root>>;
589
- }): JSX.Element;
590
-
591
- export declare namespace RadioGroup {
592
- var displayName: string | undefined;
593
- }
594
-
595
- export declare function RadioGroupItem({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> & {
596
- ref?: React_2.Ref<React_2.ComponentRef<typeof RadioGroupPrimitive.Item>>;
597
- }): JSX.Element;
598
-
599
- export declare namespace RadioGroupItem {
600
- var displayName: string | undefined;
601
- }
602
-
603
- export declare const ResizableHandle: ({ withHandle, className, ...props }: SeparatorProps & {
604
- withHandle?: boolean;
605
- }) => JSX.Element;
606
-
607
- export declare const ResizablePanel: ({ className, panelOverflow, style, ...props }: ResizablePanelProps) => JSX.Element;
608
-
609
- export declare const ResizablePanelGroup: ({ className, direction, ...props }: ResizablePanelGroupProps) => JSX.Element;
610
-
611
- declare interface ResizablePanelGroupProps extends Omit<GroupProps, 'orientation'> {
612
- /** Direction of the panel group (maps to orientation) */
613
- direction?: 'horizontal' | 'vertical';
614
- }
615
-
616
- declare type ResizablePanelOverflow = 'auto' | 'hidden' | 'visible';
617
-
618
- declare interface ResizablePanelProps extends PanelProps {
619
- /**
620
- * Controls panel overflow. Panels default to clipping so nested layouts can
621
- * choose the real scroll owner instead of the resizable shell scrolling.
622
- */
623
- panelOverflow?: ResizablePanelOverflow;
624
- }
625
-
626
- export declare function ScrollArea({ className, viewportClassName, viewportRef, viewportProps, children, ...props }: ScrollAreaProps): JSX.Element;
627
-
628
- export declare interface ScrollAreaProps extends React_2.ComponentProps<typeof ScrollAreaPrimitive.Root> {
629
- viewportClassName?: string;
630
- viewportRef?: React_2.Ref<HTMLDivElement>;
631
- viewportProps?: React_2.ComponentProps<typeof ScrollAreaPrimitive.Viewport>;
632
- }
633
-
634
- export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
635
-
636
- export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
637
-
638
- export declare function SelectContent({ className, children, position, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & {
639
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.Content>>;
640
- }): JSX.Element;
641
-
642
- export declare namespace SelectContent {
643
- var displayName: string | undefined;
644
- }
645
-
646
- export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
647
-
648
- export declare function SelectItem({ className, children, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {
649
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.Item>>;
650
- }): JSX.Element;
651
-
652
- export declare namespace SelectItem {
653
- var displayName: string | undefined;
654
- }
655
-
656
- export declare function SelectLabel({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Label> & {
657
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.Label>>;
658
- }): JSX.Element;
659
-
660
- export declare namespace SelectLabel {
661
- var displayName: string | undefined;
662
- }
663
-
664
- export declare function SelectScrollDownButton({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton> & {
665
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.ScrollDownButton>>;
666
- }): JSX.Element;
667
-
668
- export declare namespace SelectScrollDownButton {
669
- var displayName: string | undefined;
670
- }
671
-
672
- export declare function SelectScrollUpButton({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton> & {
673
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.ScrollUpButton>>;
674
- }): JSX.Element;
675
-
676
- export declare namespace SelectScrollUpButton {
677
- var displayName: string | undefined;
678
- }
679
-
680
- export declare function SelectSeparator({ className, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator> & {
681
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.Separator>>;
682
- }): JSX.Element;
683
-
684
- export declare namespace SelectSeparator {
685
- var displayName: string | undefined;
686
- }
687
-
688
- export declare function SelectTrigger({ className, children, density, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & {
689
- density?: 'compact' | 'default';
690
- ref?: React_2.Ref<React_2.ComponentRef<typeof SelectPrimitive.Trigger>>;
691
- }): JSX.Element;
692
-
693
- export declare namespace SelectTrigger {
694
- var displayName: string | undefined;
695
- }
696
-
697
- export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
698
-
699
- export declare function Separator({ className, orientation, decorative, ref, ...props }: React_2.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {
700
- ref?: React_2.Ref<React_2.ComponentRef<typeof SeparatorPrimitive.Root>>;
701
- }): JSX.Element;
702
-
703
- export declare namespace Separator {
704
- var displayName: string | undefined;
705
- }
706
-
707
- export declare function Sheet(props: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
708
-
709
- export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
710
-
711
- export declare function SheetContent({ className, children, occlusionEnabled, side, overlayClassName, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
712
- /** Disable native-view occlusion while persistently mounted content is hidden. */
713
- occlusionEnabled?: boolean;
714
- side?: 'top' | 'right' | 'bottom' | 'left';
715
- overlayClassName?: string;
716
- }): JSX.Element;
717
-
718
- export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
719
-
720
- export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
721
-
722
- export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
723
-
724
- export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
725
-
726
- export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
727
-
728
- export declare function Skeleton({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
729
-
730
- export declare function Slider({ className, ref, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, ...props }: React_2.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> & {
731
- ref?: React_2.Ref<React_2.ComponentRef<typeof SliderPrimitive.Root>>;
732
- }): JSX.Element;
733
-
734
- export declare namespace Slider {
735
- var displayName: string;
736
- }
737
-
738
- /**
739
- * Supported languages for syntax highlighting.
740
- * Maps common language identifiers to prism-react-renderer compatible names.
741
- */
742
- declare type SupportedLanguage = 'typescript' | 'tsx' | 'javascript' | 'jsx' | 'python' | 'bash' | 'shell' | 'json' | 'css' | 'html' | 'markdown' | 'yaml' | 'sql' | 'rust' | 'go' | 'java' | 'c' | 'cpp' | 'csharp' | 'ruby' | 'php' | 'swift' | 'kotlin' | 'scala' | 'r' | 'perl' | 'lua' | 'haskell' | 'elixir' | 'clojure' | 'diff' | 'graphql' | 'toml' | 'ini' | 'dockerfile' | 'makefile' | 'nginx' | 'xml' | 'regex' | 'plaintext' | (string & {});
743
-
744
- export declare const Table: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & {
745
- density?: "compact" | "default";
746
- } & React_2.RefAttributes<HTMLTableElement>>;
747
-
748
- export declare const TableBody: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
749
-
750
- export declare const TableCaption: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableCaptionElement> & React_2.RefAttributes<HTMLTableCaptionElement>>;
751
-
752
- export declare const TableCell: React_2.ForwardRefExoticComponent<React_2.TdHTMLAttributes<HTMLTableCellElement> & React_2.RefAttributes<HTMLTableCellElement>>;
753
-
754
- export declare const TableFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
755
-
756
- export declare const TableHead: React_2.ForwardRefExoticComponent<React_2.ThHTMLAttributes<HTMLTableCellElement> & React_2.RefAttributes<HTMLTableCellElement>>;
757
-
758
- export declare const TableHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;
759
-
760
- export declare const TableRow: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableRowElement> & React_2.RefAttributes<HTMLTableRowElement>>;
761
-
762
- export declare function Tabs({ className, orientation, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
763
-
764
- export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
765
-
766
- export declare function TabsList({ className, variant, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): JSX.Element;
767
-
768
- declare const tabsListVariants: (props?: ({
769
- variant?: "default" | "line" | null | undefined;
770
- } & ClassProp) | undefined) => string;
771
-
772
- export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
773
-
774
- export declare function Textarea({ className, error, ref, onChange, ...props }: React_2.ComponentProps<'textarea'> & {
775
- error?: boolean;
776
- ref?: React_2.Ref<HTMLTextAreaElement>;
777
- }): JSX.Element;
778
-
779
- export declare namespace Textarea {
780
- var displayName: string;
781
- }
782
-
783
- export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
784
- variant?: "default" | "outline" | null | undefined;
785
- size?: "sm" | "default" | "lg" | null | undefined;
786
- } & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
787
-
788
- export declare const ToggleGroup: React_2.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref">) & React_2.RefAttributes<HTMLDivElement>>;
789
-
790
- export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
791
-
792
- export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
793
-
794
- export declare function TooltipContent({ className, sideOffset, variant, ref, ...props }: TooltipContentProps): JSX.Element;
795
-
796
- export declare namespace TooltipContent {
797
- var displayName: string | undefined;
798
- }
799
-
800
- declare type TooltipContentProps = React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
801
- ref?: React_2.Ref<React_2.ComponentRef<typeof TooltipPrimitive.Content>>;
802
- /** `chrome`: light-on-dark chip for message hover toolbars; `default`: popover surface (sidebar, etc.). */
803
- variant?: 'chrome' | 'default';
804
- };
805
-
806
- export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
807
-
808
- export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
809
-
810
- /**
811
- * Waits for an optional host adapter before revealing overlay content. With no
812
- * adapter, as in a normal browser miniapp, the hook is immediately ready.
813
- */
814
- export declare function useNativeViewOcclusion<T extends HTMLElement = HTMLDivElement>({ enabled, }?: UseNativeViewOcclusionOptions): UseNativeViewOcclusionReturn<T>;
815
-
816
- export declare interface UseNativeViewOcclusionOptions {
817
- /** When false, acquisition is skipped and `ready` is always true. */
818
- enabled?: boolean;
819
- }
820
-
821
- export declare interface UseNativeViewOcclusionReturn<T extends HTMLElement = HTMLDivElement> {
822
- ref: React_2.RefCallback<T>;
823
- ready: boolean;
824
- }
825
-
826
- export { }