@moonwitness/ui 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,588 @@
1
+ import * as React from 'react';
2
+ import type { SkinId } from './skins.js';
3
+ import type { Mode } from './theme.js';
4
+
5
+ type RefComponent<T, P> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
6
+ export type Variant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success';
7
+
8
+ export interface AsChildProps {
9
+ asChild?: boolean;
10
+ }
11
+
12
+ export const Slot: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement>>;
13
+
14
+ export const Button: RefComponent<
15
+ HTMLButtonElement,
16
+ React.ButtonHTMLAttributes<HTMLButtonElement> & AsChildProps & {
17
+ variant?: Variant;
18
+ size?: 'sm' | 'md' | 'lg' | 'icon';
19
+ loading?: boolean;
20
+ }
21
+ >;
22
+ export const Card: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
23
+ export const CardHeader: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & AsChildProps>;
24
+ export const CardTitle: RefComponent<HTMLHeadingElement, React.HTMLAttributes<HTMLHeadingElement> & AsChildProps>;
25
+ export const CardDescription: RefComponent<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement> & AsChildProps>;
26
+ export const CardContent: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & AsChildProps>;
27
+ export const CardFooter: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & AsChildProps>;
28
+ export const Input: RefComponent<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>;
29
+ export const Textarea: RefComponent<HTMLTextAreaElement, React.TextareaHTMLAttributes<HTMLTextAreaElement>>;
30
+ export const Label: RefComponent<HTMLLabelElement, React.LabelHTMLAttributes<HTMLLabelElement>>;
31
+ export const Select: RefComponent<HTMLSelectElement, React.SelectHTMLAttributes<HTMLSelectElement>>;
32
+ export const Badge: RefComponent<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement> & AsChildProps & { variant?: Variant }>;
33
+
34
+ export const Table: RefComponent<HTMLTableElement, React.TableHTMLAttributes<HTMLTableElement>>;
35
+ export const TableHeader: RefComponent<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>;
36
+ export const TableBody: RefComponent<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>;
37
+ export const TableFooter: RefComponent<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>;
38
+ export const TableRow: RefComponent<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>;
39
+ export const TableHead: RefComponent<HTMLTableCellElement, React.ThHTMLAttributes<HTMLTableCellElement>>;
40
+ export const TableCell: RefComponent<HTMLTableCellElement, React.TdHTMLAttributes<HTMLTableCellElement>>;
41
+ export const TableCaption: RefComponent<HTMLTableCaptionElement, React.HTMLAttributes<HTMLTableCaptionElement>>;
42
+
43
+ export interface CheckableProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
44
+ label?: React.ReactNode;
45
+ onCheckedChange?: (checked: boolean) => void;
46
+ }
47
+ export const Checkbox: RefComponent<HTMLInputElement, CheckableProps>;
48
+ export const Switch: RefComponent<HTMLInputElement, CheckableProps>;
49
+ export const Progress: RefComponent<HTMLDivElement, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & { value?: number; max?: number; label?: string }>;
50
+ export const Avatar: RefComponent<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement> & { src?: string; alt?: string; fallback?: React.ReactNode }>;
51
+ export const Separator: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & { orientation?: 'horizontal' | 'vertical'; decorative?: boolean }>;
52
+ export const Alert: RefComponent<HTMLDivElement, Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & { title?: React.ReactNode; variant?: Variant }>;
53
+ export const Skeleton: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>;
54
+
55
+ export interface TabItem {
56
+ value: string;
57
+ label: React.ReactNode;
58
+ content: React.ReactNode;
59
+ disabled?: boolean;
60
+ }
61
+ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
62
+ items: TabItem[];
63
+ value?: string;
64
+ defaultValue?: string;
65
+ onValueChange?: (value: string) => void;
66
+ orientation?: 'horizontal' | 'vertical';
67
+ label?: string;
68
+ }
69
+ export const Tabs: RefComponent<HTMLDivElement, TabsProps>;
70
+
71
+ export interface DialogProps extends Omit<React.DialogHTMLAttributes<HTMLDialogElement>, 'title'> {
72
+ open?: boolean;
73
+ defaultOpen?: boolean;
74
+ onOpenChange?: (open: boolean) => void;
75
+ title: React.ReactNode;
76
+ description?: React.ReactNode;
77
+ trigger?: React.ReactElement;
78
+ closeLabel?: string;
79
+ }
80
+ export const Dialog: RefComponent<HTMLDialogElement, DialogProps>;
81
+
82
+ export interface AccordionItem {
83
+ value: string;
84
+ title: React.ReactNode;
85
+ content: React.ReactNode;
86
+ disabled?: boolean;
87
+ }
88
+ export interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
89
+ items: AccordionItem[];
90
+ multiple?: boolean;
91
+ defaultValue?: string[];
92
+ }
93
+ export const Accordion: RefComponent<HTMLDivElement, AccordionProps>;
94
+
95
+ /* Layout, Shell & Theme Controls */
96
+ export const AppShell: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & AsChildProps>;
97
+ export const Sidebar: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
98
+ export const Main: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
99
+ export const Header: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
100
+ export const Nav: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
101
+ export const Hero: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
102
+ export const Grid: RefComponent<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & { columns?: number }>;
103
+
104
+ export interface NavItemProps extends React.HTMLAttributes<HTMLElement>, AsChildProps {
105
+ active?: boolean;
106
+ href?: string;
107
+ disabled?: boolean;
108
+ }
109
+ export const NavItem: RefComponent<HTMLElement, NavItemProps>;
110
+
111
+ export interface StatCardProps extends React.HTMLAttributes<HTMLElement> {
112
+ label?: React.ReactNode;
113
+ value?: React.ReactNode;
114
+ detail?: React.ReactNode;
115
+ icon?: React.ReactNode;
116
+ }
117
+ export const StatCard: RefComponent<HTMLElement, StatCardProps>;
118
+
119
+ export interface SkinSelectorProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'value' | 'onChange'> {
120
+ value?: SkinId;
121
+ onValueChange?: (skin: SkinId) => void;
122
+ onChange?: React.ChangeEventHandler<HTMLSelectElement>;
123
+ variant?: 'select' | 'list';
124
+ label?: string;
125
+ }
126
+ export const SkinSelector: RefComponent<HTMLElement, SkinSelectorProps>;
127
+
128
+ export interface ModeSelectorProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'value' | 'onChange'> {
129
+ value?: Mode;
130
+ onValueChange?: (mode: Mode) => void;
131
+ onChange?: React.ChangeEventHandler<HTMLSelectElement>;
132
+ variant?: 'select' | 'segmented';
133
+ label?: string;
134
+ }
135
+ export const ModeSelector: RefComponent<HTMLElement, ModeSelectorProps>;
136
+
137
+ /* Form Field & RadioGroup */
138
+ export const FieldDescription: RefComponent<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>;
139
+ export const FieldError: RefComponent<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>;
140
+ export interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
141
+ label?: React.ReactNode;
142
+ description?: React.ReactNode;
143
+ error?: React.ReactNode;
144
+ required?: boolean;
145
+ htmlFor?: string;
146
+ }
147
+ export const Field: RefComponent<HTMLDivElement, FieldProps>;
148
+
149
+ export interface RadioOption {
150
+ value: string;
151
+ label: React.ReactNode;
152
+ description?: React.ReactNode;
153
+ disabled?: boolean;
154
+ }
155
+ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
156
+ items: RadioOption[];
157
+ name?: string;
158
+ value?: string;
159
+ defaultValue?: string;
160
+ onValueChange?: (value: string) => void;
161
+ label?: string;
162
+ orientation?: 'horizontal' | 'vertical';
163
+ }
164
+ export const RadioGroup: RefComponent<HTMLDivElement, RadioGroupProps>;
165
+
166
+ /* Navigation, Overlays, Feedback & Data Display */
167
+ export const Breadcrumb: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & { label?: string }>;
168
+ export const BreadcrumbItem: RefComponent<HTMLLIElement, React.LiHTMLAttributes<HTMLLIElement> & AsChildProps>;
169
+ export interface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, AsChildProps {
170
+ current?: boolean;
171
+ }
172
+ export const BreadcrumbLink: RefComponent<HTMLElement, BreadcrumbLinkProps>;
173
+
174
+ export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
175
+ page?: number;
176
+ totalPages?: number;
177
+ onPageChange?: (page: number) => void;
178
+ label?: string;
179
+ }
180
+ export const Pagination: RefComponent<HTMLElement, PaginationProps>;
181
+
182
+ export interface DrawerProps extends DialogProps {
183
+ side?: 'left' | 'right';
184
+ }
185
+ export const Drawer: RefComponent<HTMLDialogElement, DrawerProps>;
186
+
187
+ export interface PopoverProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
188
+ trigger: React.ReactElement;
189
+ title?: React.ReactNode;
190
+ open?: boolean;
191
+ defaultOpen?: boolean;
192
+ onOpenChange?: (open: boolean) => void;
193
+ align?: 'start' | 'end';
194
+ }
195
+ export const Popover: RefComponent<HTMLDivElement, PopoverProps>;
196
+
197
+ export interface DropdownMenuItem {
198
+ value?: string;
199
+ label: React.ReactNode;
200
+ disabled?: boolean;
201
+ variant?: Variant;
202
+ onSelect?: (value?: string) => void;
203
+ }
204
+ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLDivElement> {
205
+ trigger: React.ReactElement;
206
+ items: DropdownMenuItem[];
207
+ label?: string;
208
+ align?: 'start' | 'end';
209
+ }
210
+ export const DropdownMenu: RefComponent<HTMLDivElement, DropdownMenuProps>;
211
+
212
+ export interface TooltipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'content'> {
213
+ content: React.ReactNode;
214
+ children: React.ReactElement;
215
+ }
216
+ export const Tooltip: RefComponent<HTMLSpanElement, TooltipProps>;
217
+
218
+ export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
219
+ icon?: React.ReactNode;
220
+ title?: React.ReactNode;
221
+ description?: React.ReactNode;
222
+ action?: React.ReactNode;
223
+ }
224
+ export const EmptyState: RefComponent<HTMLDivElement, EmptyStateProps>;
225
+
226
+ export const Kbd: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement>>;
227
+ export interface CodeBlockProps extends React.HTMLAttributes<HTMLPreElement> {
228
+ code?: string;
229
+ language?: string;
230
+ }
231
+ export const CodeBlock: RefComponent<HTMLPreElement, CodeBlockProps>;
232
+
233
+ export interface ToastInput {
234
+ title?: React.ReactNode;
235
+ description?: React.ReactNode;
236
+ variant?: Variant;
237
+ duration?: number;
238
+ }
239
+ export interface ToastItem extends ToastInput {
240
+ id: string;
241
+ }
242
+ export interface ToastContextValue {
243
+ toasts: ToastItem[];
244
+ toast(input: ToastInput): string;
245
+ dismiss(id: string): void;
246
+ }
247
+ export function ToastProvider(props: { children?: React.ReactNode }): React.ReactNode;
248
+ export function useToast(): ToastContextValue;
249
+
250
+ export interface DataTableColumn<T = Record<string, unknown>> {
251
+ key: string;
252
+ header: React.ReactNode;
253
+ sortable?: boolean;
254
+ accessor?: (row: T) => unknown;
255
+ render?: (row: T, index: number) => React.ReactNode;
256
+ }
257
+ export interface DataTableProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLDivElement> {
258
+ columns: DataTableColumn<T>[];
259
+ data: T[];
260
+ rowKey?: keyof T | ((row: T, index: number) => React.Key);
261
+ caption?: React.ReactNode;
262
+ searchable?: boolean;
263
+ searchPlaceholder?: string;
264
+ emptyTitle?: React.ReactNode;
265
+ emptyDescription?: React.ReactNode;
266
+ pageSize?: number;
267
+ }
268
+ export const DataTable: RefComponent<HTMLDivElement, DataTableProps<any>>;
269
+
270
+ /* Extended Inputs, Charts, Navigation & Level C Reusable Composite Blocks */
271
+
272
+ export interface OTPInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
273
+ length?: number;
274
+ value?: string;
275
+ defaultValue?: string;
276
+ onValueChange?: (value: string) => void;
277
+ onComplete?: (value: string) => void;
278
+ disabled?: boolean;
279
+ label?: string;
280
+ }
281
+ export const OTPInput: RefComponent<HTMLDivElement, OTPInputProps>;
282
+
283
+ export interface PasswordFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
284
+ defaultVisible?: boolean;
285
+ showStrength?: boolean;
286
+ toggleLabel?: string;
287
+ }
288
+ export const PasswordField: RefComponent<HTMLInputElement, PasswordFieldProps>;
289
+
290
+ export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
291
+ value?: string;
292
+ defaultValue?: string;
293
+ onValueChange?: (value: string) => void;
294
+ onClear?: () => void;
295
+ shortcut?: React.ReactNode;
296
+ }
297
+ export const SearchInput: RefComponent<HTMLInputElement, SearchInputProps>;
298
+
299
+ export interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'defaultValue'> {
300
+ min?: number;
301
+ max?: number;
302
+ step?: number;
303
+ value?: number;
304
+ defaultValue?: number;
305
+ onValueChange?: (value: number) => void;
306
+ label?: React.ReactNode;
307
+ showValue?: boolean;
308
+ formatValue?: (value: number) => string;
309
+ }
310
+ export const Slider: RefComponent<HTMLInputElement, SliderProps>;
311
+
312
+ export interface TagInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
313
+ value?: string[];
314
+ defaultValue?: string[];
315
+ onValueChange?: (tags: string[]) => void;
316
+ placeholder?: string;
317
+ disabled?: boolean;
318
+ label?: string;
319
+ }
320
+ export const TagInput: RefComponent<HTMLDivElement, TagInputProps>;
321
+
322
+ export interface SegmentedOption {
323
+ value: string;
324
+ label: React.ReactNode;
325
+ disabled?: boolean;
326
+ }
327
+ export interface SegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
328
+ items: SegmentedOption[];
329
+ value?: string;
330
+ defaultValue?: string;
331
+ onValueChange?: (value: string) => void;
332
+ label?: string;
333
+ size?: 'sm' | 'md' | 'lg';
334
+ }
335
+ export const SegmentedControl: RefComponent<HTMLDivElement, SegmentedControlProps>;
336
+
337
+ export interface FileDropzoneProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
338
+ accept?: string;
339
+ multiple?: boolean;
340
+ disabled?: boolean;
341
+ title?: React.ReactNode;
342
+ description?: React.ReactNode;
343
+ onFilesSelected?: (files: File[]) => void;
344
+ }
345
+ export const FileDropzone: RefComponent<HTMLDivElement, FileDropzoneProps>;
346
+
347
+ export interface BarChartDatum {
348
+ label: string;
349
+ value: number;
350
+ tone?: Variant;
351
+ }
352
+ export interface BarChartProps extends React.HTMLAttributes<HTMLDivElement> {
353
+ data: BarChartDatum[];
354
+ height?: number;
355
+ label?: string;
356
+ formatValue?: (value: number) => string;
357
+ }
358
+ export const BarChart: RefComponent<HTMLDivElement, BarChartProps>;
359
+
360
+ export interface SparklineProps extends React.SVGAttributes<SVGSVGElement> {
361
+ data: number[];
362
+ width?: number;
363
+ height?: number;
364
+ label?: string;
365
+ variant?: Variant;
366
+ }
367
+ export const Sparkline: RefComponent<SVGSVGElement, SparklineProps>;
368
+
369
+ export interface StepItem {
370
+ id?: string;
371
+ title: React.ReactNode;
372
+ description?: React.ReactNode;
373
+ status?: 'complete' | 'current' | 'upcoming';
374
+ }
375
+ export interface StepperProps extends React.OlHTMLAttributes<HTMLOListElement> {
376
+ steps: StepItem[];
377
+ currentStep?: number;
378
+ orientation?: 'horizontal' | 'vertical';
379
+ label?: string;
380
+ }
381
+ export const Stepper: RefComponent<HTMLOListElement, StepperProps>;
382
+
383
+ export interface TimelineItem {
384
+ id?: string;
385
+ title: React.ReactNode;
386
+ description?: React.ReactNode;
387
+ time?: React.ReactNode;
388
+ badge?: React.ReactNode;
389
+ icon?: React.ReactNode;
390
+ tone?: Variant;
391
+ }
392
+ export interface TimelineProps extends React.OlHTMLAttributes<HTMLOListElement> {
393
+ items: TimelineItem[];
394
+ }
395
+ export const Timeline: RefComponent<HTMLOListElement, TimelineProps>;
396
+
397
+ export interface AvatarGroupItem {
398
+ id?: string;
399
+ src?: string;
400
+ alt?: string;
401
+ fallback?: React.ReactNode;
402
+ }
403
+ export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
404
+ items: AvatarGroupItem[];
405
+ max?: number;
406
+ label?: string;
407
+ }
408
+ export const AvatarGroup: RefComponent<HTMLDivElement, AvatarGroupProps>;
409
+
410
+ export interface DescriptionListItem {
411
+ term: React.ReactNode;
412
+ details: React.ReactNode;
413
+ }
414
+ export interface DescriptionListProps extends React.HTMLAttributes<HTMLDListElement> {
415
+ items?: DescriptionListItem[];
416
+ columns?: 1 | 2 | 3;
417
+ }
418
+ export const DescriptionList: RefComponent<HTMLDListElement, DescriptionListProps>;
419
+ export const DescriptionTerm: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
420
+ export const DescriptionDetails: RefComponent<HTMLElement, React.HTMLAttributes<HTMLElement> & AsChildProps>;
421
+
422
+ export interface CalloutProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
423
+ title?: React.ReactNode;
424
+ variant?: Variant;
425
+ icon?: React.ReactNode;
426
+ action?: React.ReactNode;
427
+ dismissible?: boolean;
428
+ onDismiss?: () => void;
429
+ }
430
+ export const Callout: RefComponent<HTMLElement, CalloutProps>;
431
+ export const Banner: RefComponent<HTMLElement, CalloutProps>;
432
+
433
+ export interface CommandPaletteItem {
434
+ id: string;
435
+ label: string;
436
+ group?: string;
437
+ shortcut?: string;
438
+ keywords?: string[];
439
+ disabled?: boolean;
440
+ onSelect?: (item: CommandPaletteItem) => void;
441
+ }
442
+ export interface CommandPaletteProps extends Omit<DialogProps, 'title'> {
443
+ items: CommandPaletteItem[];
444
+ placeholder?: string;
445
+ emptyText?: React.ReactNode;
446
+ title?: React.ReactNode;
447
+ enableHotkey?: boolean;
448
+ }
449
+ export const CommandPalette: RefComponent<HTMLDialogElement, CommandPaletteProps>;
450
+
451
+ /* Level C Reusable Composite Blocks */
452
+
453
+ export interface BreadcrumbEntry {
454
+ label: React.ReactNode;
455
+ href?: string;
456
+ current?: boolean;
457
+ }
458
+ export interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
459
+ breadcrumbs?: BreadcrumbEntry[] | React.ReactNode;
460
+ eyebrow?: React.ReactNode;
461
+ title: React.ReactNode;
462
+ description?: React.ReactNode;
463
+ badge?: React.ReactNode;
464
+ actions?: React.ReactNode;
465
+ }
466
+ export const PageHeader: RefComponent<HTMLElement, PageHeaderProps>;
467
+
468
+ export interface MetricItem {
469
+ id?: string;
470
+ label: React.ReactNode;
471
+ value: React.ReactNode;
472
+ delta?: React.ReactNode;
473
+ deltaTone?: Variant;
474
+ detail?: React.ReactNode;
475
+ trend?: number[];
476
+ icon?: React.ReactNode;
477
+ }
478
+ export interface MetricGridProps extends React.HTMLAttributes<HTMLDivElement> {
479
+ items: MetricItem[];
480
+ columns?: number;
481
+ }
482
+ export const MetricGrid: RefComponent<HTMLDivElement, MetricGridProps>;
483
+
484
+ export interface AuthCardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
485
+ eyebrow?: React.ReactNode;
486
+ title: React.ReactNode;
487
+ description?: React.ReactNode;
488
+ logo?: React.ReactNode;
489
+ error?: React.ReactNode;
490
+ status?: React.ReactNode;
491
+ socialActions?: React.ReactNode;
492
+ footer?: React.ReactNode;
493
+ }
494
+ export const AuthCard: RefComponent<HTMLElement, AuthCardProps>;
495
+
496
+ export interface PricingCardProps extends React.HTMLAttributes<HTMLElement> {
497
+ name: React.ReactNode;
498
+ price: React.ReactNode;
499
+ period?: React.ReactNode;
500
+ description?: React.ReactNode;
501
+ badge?: React.ReactNode;
502
+ featured?: boolean;
503
+ features: React.ReactNode[];
504
+ ctaLabel?: React.ReactNode;
505
+ onSelect?: () => void;
506
+ footer?: React.ReactNode;
507
+ }
508
+ export const PricingCard: RefComponent<HTMLElement, PricingCardProps>;
509
+
510
+ export interface SettingsSectionProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
511
+ title: React.ReactNode;
512
+ description?: React.ReactNode;
513
+ badge?: React.ReactNode;
514
+ footer?: React.ReactNode;
515
+ action?: React.ReactNode;
516
+ }
517
+ export const SettingsSection: RefComponent<HTMLElement, SettingsSectionProps>;
518
+
519
+ export interface ActivityFeedProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
520
+ title?: React.ReactNode;
521
+ description?: React.ReactNode;
522
+ items: TimelineItem[];
523
+ action?: React.ReactNode;
524
+ emptyTitle?: React.ReactNode;
525
+ emptyDescription?: React.ReactNode;
526
+ }
527
+ export const ActivityFeed: RefComponent<HTMLElement, ActivityFeedProps>;
528
+
529
+ /* M10 Original 15-Skin Vector Marks & Opt-In SFX */
530
+
531
+ export interface SkinBrandMarkProps extends React.SVGAttributes<SVGSVGElement> {
532
+ skin?: SkinId;
533
+ size?: number | string;
534
+ decorative?: boolean;
535
+ label?: string;
536
+ }
537
+ export const SkinBrandMark: RefComponent<SVGSVGElement, SkinBrandMarkProps>;
538
+
539
+ export interface SkinArtworkProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
540
+ skin?: SkinId;
541
+ title?: React.ReactNode;
542
+ caption?: React.ReactNode;
543
+ }
544
+ export const SkinArtwork: RefComponent<HTMLElement, SkinArtworkProps>;
545
+
546
+ export type SFXEventId =
547
+ | 'success'
548
+ | 'warning'
549
+ | 'error'
550
+ | 'notification'
551
+ | 'confirmation'
552
+ | 'quest-reward'
553
+ | 'confirm.success'
554
+ | 'confirm.warning'
555
+ | 'confirm.error'
556
+ | 'notification.incoming'
557
+ | 'operation.progress-complete'
558
+ | 'game.reward';
559
+
560
+ export interface SFXPlayResult {
561
+ played: boolean;
562
+ eventId?: string;
563
+ reason?: string;
564
+ }
565
+
566
+ export interface SFXContextValue {
567
+ enabled: boolean;
568
+ muted: boolean;
569
+ volume: number;
570
+ consentGranted: boolean;
571
+ lastEvent: { id: string; timestamp: number } | null;
572
+ grantConsent: () => void;
573
+ revokeConsent: () => void;
574
+ setMuted: (muted: boolean) => void;
575
+ setVolume: (volume: number) => void;
576
+ play: (eventId: SFXEventId) => SFXPlayResult;
577
+ }
578
+
579
+ export interface SFXProviderProps {
580
+ defaultEnabled?: boolean;
581
+ defaultMuted?: boolean;
582
+ defaultVolume?: number;
583
+ children?: React.ReactNode;
584
+ }
585
+ export function SFXProvider(props: SFXProviderProps): React.ReactElement;
586
+ export function useSFX(): SFXContextValue;
587
+
588
+