@arvia-ui/react 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,881 @@
1
+
2
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes, CSSProperties, ElementType, HTMLAttributes, InputHTMLAttributes, MouseEvent, ReactElement, ReactNode } from "react";
3
+
4
+ //#region ../core-styles/.arvia/types/components/box.arv.d.ts
5
+ // Generated by @arviahq/compiler - do not edit.
6
+ type BoxProps$1 = {
7
+ padding?: "none" | "1" | "2" | "3" | "4" | "5" | "6";
8
+ radius?: "none" | "sm" | "md" | "lg" | "xl" | "full";
9
+ background?: "transparent" | "surface" | "raised" | "muted";
10
+ };
11
+ //#endregion
12
+ //#region src/Box.d.ts
13
+ type BoxProps = BoxProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
14
+ as?: ElementType;
15
+ children?: ReactNode;
16
+ className?: string;
17
+ };
18
+ declare const Box: import("react").ForwardRefExoticComponent<BoxProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
19
+ as?: ElementType;
20
+ children?: ReactNode;
21
+ className?: string;
22
+ } & import("react").RefAttributes<HTMLElement>>;
23
+ //#endregion
24
+ //#region ../core-styles/.arvia/types/components/stack.arv.d.ts
25
+ // Generated by @arviahq/compiler - do not edit.
26
+ type StackProps$1 = {
27
+ direction?: "row" | "column";
28
+ gap?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8";
29
+ align?: "start" | "center" | "end" | "stretch" | "baseline";
30
+ justify?: "start" | "center" | "end" | "between" | "around";
31
+ wrap?: "yes" | "no";
32
+ };
33
+ //#endregion
34
+ //#region src/Stack.d.ts
35
+ type StackProps = StackProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
36
+ as?: ElementType;
37
+ children?: ReactNode;
38
+ className?: string;
39
+ };
40
+ declare const Stack: import("react").ForwardRefExoticComponent<StackProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
41
+ as?: ElementType;
42
+ children?: ReactNode;
43
+ className?: string;
44
+ } & import("react").RefAttributes<HTMLElement>>;
45
+ //#endregion
46
+ //#region ../core-styles/.arvia/types/components/text.arv.d.ts
47
+ // Generated by @arviahq/compiler - do not edit.
48
+ type TextProps$1 = {
49
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
50
+ weight?: "regular" | "medium" | "semibold" | "bold";
51
+ tone?: "default" | "muted" | "subtle" | "primary" | "danger" | "success";
52
+ };
53
+ //#endregion
54
+ //#region src/Text.d.ts
55
+ type TextProps = TextProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
56
+ as?: ElementType;
57
+ children?: ReactNode;
58
+ className?: string;
59
+ };
60
+ declare const Text: import("react").ForwardRefExoticComponent<TextProps$1 & Omit<HTMLAttributes<HTMLElement>, "children" | "className"> & {
61
+ as?: ElementType;
62
+ children?: ReactNode;
63
+ className?: string;
64
+ } & import("react").RefAttributes<HTMLElement>>;
65
+ //#endregion
66
+ //#region ../core-styles/.arvia/types/components/heading.arv.d.ts
67
+ // Generated by @arviahq/compiler - do not edit.
68
+ type HeadingProps$1 = {
69
+ level?: "1" | "2" | "3" | "4" | "5" | "6";
70
+ tone?: "default" | "muted" | "primary";
71
+ };
72
+ //#endregion
73
+ //#region src/Heading.d.ts
74
+ type HeadingProps = HeadingProps$1 & {
75
+ children?: ReactNode;
76
+ className?: string;
77
+ };
78
+ declare const Heading: import("react").ForwardRefExoticComponent<HeadingProps$1 & {
79
+ children?: ReactNode;
80
+ className?: string;
81
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
82
+ //#endregion
83
+ //#region ../core-styles/.arvia/types/components/button.arv.d.ts
84
+ // Generated by @arviahq/compiler - do not edit.
85
+ type ButtonProps$1 = {
86
+ size?: "sm" | "md" | "lg";
87
+ tone?: "primary" | "secondary" | "ghost" | "danger";
88
+ };
89
+ //#endregion
90
+ //#region src/Button.d.ts
91
+ type ButtonProps = ButtonProps$1 & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
92
+ children?: ReactNode;
93
+ icon?: ReactNode;
94
+ className?: string;
95
+ };
96
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps$1 & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
97
+ children?: ReactNode;
98
+ icon?: ReactNode;
99
+ className?: string;
100
+ } & import("react").RefAttributes<HTMLButtonElement>>;
101
+ //#endregion
102
+ //#region ../core-styles/.arvia/types/components/badge.arv.d.ts
103
+ // Generated by @arviahq/compiler - do not edit.
104
+ type BadgeProps$1 = {
105
+ tone?: "neutral" | "primary" | "success" | "warning" | "danger";
106
+ size?: "sm" | "md";
107
+ };
108
+ //#endregion
109
+ //#region src/Badge.d.ts
110
+ type BadgeProps = BadgeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
111
+ children?: ReactNode;
112
+ className?: string;
113
+ };
114
+ declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
115
+ children?: ReactNode;
116
+ className?: string;
117
+ } & import("react").RefAttributes<HTMLSpanElement>>;
118
+ //#endregion
119
+ //#region ../core-styles/.arvia/types/components/link.arv.d.ts
120
+ // Generated by @arviahq/compiler - do not edit.
121
+ type LinkProps$1 = {
122
+ tone?: "primary" | "muted" | "danger";
123
+ size?: "sm" | "md" | "lg";
124
+ };
125
+ //#endregion
126
+ //#region src/Link.d.ts
127
+ type LinkProps = LinkProps$1 & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> & {
128
+ children?: ReactNode;
129
+ className?: string;
130
+ };
131
+ declare const Link: import("react").ForwardRefExoticComponent<LinkProps$1 & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> & {
132
+ children?: ReactNode;
133
+ className?: string;
134
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
135
+ //#endregion
136
+ //#region ../core-styles/.arvia/types/components/card.arv.d.ts
137
+ // Generated by @arviahq/compiler - do not edit.
138
+ type CardProps$1 = {
139
+ padding?: "none" | "sm" | "md" | "lg";
140
+ shadow?: "none" | "sm" | "md" | "lg";
141
+ };
142
+ //#endregion
143
+ //#region src/Card.d.ts
144
+ type CardProps = CardProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children" | "className"> & {
145
+ children?: ReactNode;
146
+ className?: string;
147
+ };
148
+ declare const Card: import("react").ForwardRefExoticComponent<CardProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children" | "className"> & {
149
+ children?: ReactNode;
150
+ className?: string;
151
+ } & import("react").RefAttributes<HTMLDivElement>>;
152
+ //#endregion
153
+ //#region ../core-styles/.arvia/types/components/input.arv.d.ts
154
+ // Generated by @arviahq/compiler - do not edit.
155
+ type InputProps$1 = {
156
+ size?: "sm" | "md" | "lg";
157
+ };
158
+ //#endregion
159
+ //#region src/Input.d.ts
160
+ type InputProps = InputProps$1 & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
161
+ className?: string;
162
+ };
163
+ declare const Input: import("react").ForwardRefExoticComponent<InputProps$1 & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
164
+ className?: string;
165
+ } & import("react").RefAttributes<HTMLInputElement>>;
166
+ //#endregion
167
+ //#region ../core-styles/.arvia/types/components/divider.arv.d.ts
168
+ // Generated by @arviahq/compiler - do not edit.
169
+ type DividerProps$1 = {
170
+ spacing?: "none" | "sm" | "md" | "lg";
171
+ };
172
+ //#endregion
173
+ //#region src/Divider.d.ts
174
+ type DividerProps = DividerProps$1 & Omit<HTMLAttributes<HTMLHRElement>, "children"> & {
175
+ className?: string;
176
+ };
177
+ declare const Divider: import("react").ForwardRefExoticComponent<DividerProps$1 & Omit<HTMLAttributes<HTMLHRElement>, "children"> & {
178
+ className?: string;
179
+ } & import("react").RefAttributes<HTMLHRElement>>;
180
+ //#endregion
181
+ //#region ../core-styles/.arvia/types/components/spinner.arv.d.ts
182
+ // Generated by @arviahq/compiler - do not edit.
183
+ type SpinnerProps$1 = {
184
+ size?: "sm" | "md" | "lg";
185
+ };
186
+ //#endregion
187
+ //#region src/Spinner.d.ts
188
+ type SpinnerProps = SpinnerProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
189
+ className?: string;
190
+ label?: string;
191
+ };
192
+ declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
193
+ className?: string;
194
+ label?: string;
195
+ } & import("react").RefAttributes<HTMLSpanElement>>;
196
+ //#endregion
197
+ //#region src/Tabs.d.ts
198
+ type TabsProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
199
+ /** Active tab value (controlled). */value?: string; /** Initial active tab value (uncontrolled). */
200
+ defaultValue?: string; /** Called when the active tab changes. */
201
+ onChange?: (value: string) => void;
202
+ children?: ReactNode;
203
+ className?: string;
204
+ };
205
+ type TabsListProps = HTMLAttributes<HTMLDivElement> & {
206
+ "aria-label"?: string;
207
+ children?: ReactNode;
208
+ className?: string;
209
+ };
210
+ type TabProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
211
+ /** Value linking this tab to its panel. */value: string;
212
+ children?: ReactNode;
213
+ className?: string;
214
+ };
215
+ type TabPanelProps = Omit<HTMLAttributes<HTMLDivElement>, "value"> & {
216
+ /** Value linking this panel to its tab. */value: string;
217
+ children?: ReactNode;
218
+ className?: string;
219
+ };
220
+ /**
221
+ * Compound tabs. Compose with the attached parts:
222
+ *
223
+ * <Tabs defaultValue="a">
224
+ * <Tabs.List>
225
+ * <Tabs.Tab value="a">One</Tabs.Tab>
226
+ * <Tabs.Tab value="b">Two</Tabs.Tab>
227
+ * </Tabs.List>
228
+ * <Tabs.Panel value="a">…</Tabs.Panel>
229
+ * <Tabs.Panel value="b">…</Tabs.Panel>
230
+ * </Tabs>
231
+ */
232
+ declare const Tabs: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
233
+ /** Active tab value (controlled). */value?: string; /** Initial active tab value (uncontrolled). */
234
+ defaultValue?: string; /** Called when the active tab changes. */
235
+ onChange?: (value: string) => void;
236
+ children?: ReactNode;
237
+ className?: string;
238
+ } & import("react").RefAttributes<HTMLDivElement>> & {
239
+ List: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
240
+ "aria-label"?: string;
241
+ children?: ReactNode;
242
+ className?: string;
243
+ } & import("react").RefAttributes<HTMLDivElement>>;
244
+ Tab: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
245
+ /** Value linking this tab to its panel. */value: string;
246
+ children?: ReactNode;
247
+ className?: string;
248
+ } & import("react").RefAttributes<HTMLButtonElement>>;
249
+ Panel: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "value"> & {
250
+ /** Value linking this panel to its tab. */value: string;
251
+ children?: ReactNode;
252
+ className?: string;
253
+ } & import("react").RefAttributes<HTMLDivElement>>;
254
+ };
255
+ //#endregion
256
+ //#region src/Accordion.d.ts
257
+ type AccordionProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
258
+ /** "single" allows one open item, "multiple" allows many. */type?: "single" | "multiple"; /** Open item value(s) — controlled. */
259
+ value?: string | string[]; /** Initially open item value(s) — uncontrolled. */
260
+ defaultValue?: string | string[]; /** Called when the open item(s) change. */
261
+ onChange?: (value: string | string[]) => void; /** When type="single", allow closing the open item. */
262
+ collapsible?: boolean;
263
+ children?: ReactNode;
264
+ className?: string;
265
+ };
266
+ type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
267
+ /** Identifies this item for open-state tracking. */value: string;
268
+ children?: ReactNode;
269
+ className?: string;
270
+ };
271
+ type AccordionTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
272
+ children?: ReactNode;
273
+ className?: string;
274
+ };
275
+ type AccordionContentProps = HTMLAttributes<HTMLDivElement> & {
276
+ children?: ReactNode;
277
+ className?: string;
278
+ };
279
+ /**
280
+ * Compound accordion. Compose with the attached parts:
281
+ *
282
+ * <Accordion type="single" defaultValue="a">
283
+ * <Accordion.Item value="a">
284
+ * <Accordion.Trigger>Section A</Accordion.Trigger>
285
+ * <Accordion.Content>…</Accordion.Content>
286
+ * </Accordion.Item>
287
+ * </Accordion>
288
+ */
289
+ declare const Accordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
290
+ /** "single" allows one open item, "multiple" allows many. */type?: "single" | "multiple"; /** Open item value(s) — controlled. */
291
+ value?: string | string[]; /** Initially open item value(s) — uncontrolled. */
292
+ defaultValue?: string | string[]; /** Called when the open item(s) change. */
293
+ onChange?: (value: string | string[]) => void; /** When type="single", allow closing the open item. */
294
+ collapsible?: boolean;
295
+ children?: ReactNode;
296
+ className?: string;
297
+ } & import("react").RefAttributes<HTMLDivElement>> & {
298
+ Item: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
299
+ /** Identifies this item for open-state tracking. */value: string;
300
+ children?: ReactNode;
301
+ className?: string;
302
+ } & import("react").RefAttributes<HTMLDivElement>>;
303
+ Trigger: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
304
+ children?: ReactNode;
305
+ className?: string;
306
+ } & import("react").RefAttributes<HTMLButtonElement>>;
307
+ Content: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
308
+ children?: ReactNode;
309
+ className?: string;
310
+ } & import("react").RefAttributes<HTMLDivElement>>;
311
+ };
312
+ //#endregion
313
+ //#region src/Dialog.d.ts
314
+ type ClickableProps = {
315
+ onClick?: (event: MouseEvent) => void;
316
+ };
317
+ type DialogProps = {
318
+ /** Whether the dialog is open (controlled). */open?: boolean; /** Initial open state (uncontrolled). */
319
+ defaultOpen?: boolean; /** Called when the open state changes. */
320
+ onChange?: (open: boolean) => void;
321
+ children?: ReactNode;
322
+ };
323
+ declare function DialogRoot({
324
+ open,
325
+ defaultOpen,
326
+ onChange,
327
+ children
328
+ }: DialogProps): import("react").JSX.Element;
329
+ type DialogTriggerProps = {
330
+ children: ReactNode;
331
+ };
332
+ declare function DialogTrigger({
333
+ children
334
+ }: DialogTriggerProps): ReactElement<ClickableProps, string | import("react").JSXElementConstructor<any>>;
335
+ type DialogContentProps = HTMLAttributes<HTMLDivElement> & {
336
+ children?: ReactNode;
337
+ className?: string;
338
+ };
339
+ declare function DialogHeader({
340
+ children,
341
+ className,
342
+ ...props
343
+ }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
344
+ declare function DialogTitle({
345
+ children,
346
+ className,
347
+ ...props
348
+ }: HTMLAttributes<HTMLHeadingElement>): import("react").JSX.Element;
349
+ declare function DialogDescription({
350
+ children,
351
+ className,
352
+ ...props
353
+ }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
354
+ declare function DialogBody({
355
+ children,
356
+ className,
357
+ ...props
358
+ }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
359
+ declare function DialogFooter({
360
+ children,
361
+ className,
362
+ ...props
363
+ }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
364
+ type DialogCloseProps = {
365
+ /** Render the close behavior on the provided child element instead of the default × button. */asChild?: boolean;
366
+ children?: ReactNode;
367
+ className?: string;
368
+ "aria-label"?: string;
369
+ };
370
+ declare function DialogClose({
371
+ asChild,
372
+ children,
373
+ className,
374
+ ...props
375
+ }: DialogCloseProps): import("react").JSX.Element;
376
+ /**
377
+ * Compound modal dialog. Open via `open`/`onChange` or `Dialog.Trigger`:
378
+ *
379
+ * <Dialog>
380
+ * <Dialog.Trigger><Button>Open</Button></Dialog.Trigger>
381
+ * <Dialog.Content>
382
+ * <Dialog.Close />
383
+ * <Dialog.Header>
384
+ * <Dialog.Title>Title</Dialog.Title>
385
+ * <Dialog.Description>…</Dialog.Description>
386
+ * </Dialog.Header>
387
+ * <Dialog.Body>…</Dialog.Body>
388
+ * <Dialog.Footer>
389
+ * <Dialog.Close asChild><Button tone="secondary">Cancel</Button></Dialog.Close>
390
+ * </Dialog.Footer>
391
+ * </Dialog.Content>
392
+ * </Dialog>
393
+ */
394
+ declare const Dialog: typeof DialogRoot & {
395
+ Trigger: typeof DialogTrigger;
396
+ Content: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
397
+ children?: ReactNode;
398
+ className?: string;
399
+ } & import("react").RefAttributes<HTMLDivElement>>;
400
+ Header: typeof DialogHeader;
401
+ Title: typeof DialogTitle;
402
+ Description: typeof DialogDescription;
403
+ Body: typeof DialogBody;
404
+ Footer: typeof DialogFooter;
405
+ Close: typeof DialogClose;
406
+ };
407
+ //#endregion
408
+ //#region ../core-styles/.arvia/types/components/avatar.arv.d.ts
409
+ // Generated by @arviahq/compiler - do not edit.
410
+ type AvatarProps$1 = {
411
+ size?: "sm" | "md" | "lg";
412
+ };
413
+ //#endregion
414
+ //#region src/Avatar.d.ts
415
+ type AvatarProps = AvatarProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
416
+ /** Image URL; falls back to initials/children if missing or it fails to load. */src?: string;
417
+ alt?: string; /** Name used to derive fallback initials. */
418
+ name?: string;
419
+ children?: ReactNode;
420
+ className?: string;
421
+ };
422
+ declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps$1 & Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
423
+ /** Image URL; falls back to initials/children if missing or it fails to load. */src?: string;
424
+ alt?: string; /** Name used to derive fallback initials. */
425
+ name?: string;
426
+ children?: ReactNode;
427
+ className?: string;
428
+ } & import("react").RefAttributes<HTMLSpanElement>>;
429
+ //#endregion
430
+ //#region src/Switch.d.ts
431
+ type SwitchProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "checked" | "defaultChecked" | "value"> & {
432
+ checked?: boolean;
433
+ defaultChecked?: boolean;
434
+ onChange?: (checked: boolean) => void;
435
+ size?: "sm" | "md" | "lg";
436
+ className?: string;
437
+ };
438
+ declare const Switch: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultChecked" | "onChange" | "value" | "checked"> & {
439
+ checked?: boolean;
440
+ defaultChecked?: boolean;
441
+ onChange?: (checked: boolean) => void;
442
+ size?: "sm" | "md" | "lg";
443
+ className?: string;
444
+ } & import("react").RefAttributes<HTMLButtonElement>>;
445
+ //#endregion
446
+ //#region src/Checkbox.d.ts
447
+ type Size$1 = "sm" | "md" | "lg";
448
+ type CheckboxGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
449
+ value?: string[];
450
+ defaultValue?: string[];
451
+ onChange?: (value: string[]) => void;
452
+ size?: Size$1;
453
+ children?: ReactNode;
454
+ className?: string;
455
+ };
456
+ type CheckboxProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "checked" | "defaultChecked" | "value"> & {
457
+ /** Value toggled within a CheckboxGroup. */value?: string; /** Checked state when used standalone (controlled). */
458
+ checked?: boolean;
459
+ defaultChecked?: boolean; /** Fires when toggled. */
460
+ onChange?: (checked: boolean) => void;
461
+ size?: Size$1;
462
+ children?: ReactNode;
463
+ className?: string;
464
+ };
465
+ declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultChecked" | "onChange" | "value" | "checked"> & {
466
+ /** Value toggled within a CheckboxGroup. */value?: string; /** Checked state when used standalone (controlled). */
467
+ checked?: boolean;
468
+ defaultChecked?: boolean; /** Fires when toggled. */
469
+ onChange?: (checked: boolean) => void;
470
+ size?: Size$1;
471
+ children?: ReactNode;
472
+ className?: string;
473
+ } & import("react").RefAttributes<HTMLButtonElement>>;
474
+ /**
475
+ * Multi-select group. Compose with `Checkbox` (also exported standalone):
476
+ *
477
+ * <CheckboxGroup defaultValue={["a"]} onChange={setValues}>
478
+ * <Checkbox value="a">Option A</Checkbox>
479
+ * <Checkbox value="b">Option B</Checkbox>
480
+ * </CheckboxGroup>
481
+ */
482
+ declare const CheckboxGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
483
+ value?: string[];
484
+ defaultValue?: string[];
485
+ onChange?: (value: string[]) => void;
486
+ size?: Size$1;
487
+ children?: ReactNode;
488
+ className?: string;
489
+ } & import("react").RefAttributes<HTMLDivElement>> & {
490
+ Item: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultChecked" | "onChange" | "value" | "checked"> & {
491
+ /** Value toggled within a CheckboxGroup. */value?: string; /** Checked state when used standalone (controlled). */
492
+ checked?: boolean;
493
+ defaultChecked?: boolean; /** Fires when toggled. */
494
+ onChange?: (checked: boolean) => void;
495
+ size?: Size$1;
496
+ children?: ReactNode;
497
+ className?: string;
498
+ } & import("react").RefAttributes<HTMLButtonElement>>;
499
+ };
500
+ //#endregion
501
+ //#region src/Tooltip.d.ts
502
+ type TooltipProps = {
503
+ /** Tooltip text/content shown on hover or focus. */label: ReactNode; /** The trigger element. */
504
+ children: ReactNode;
505
+ className?: string;
506
+ };
507
+ declare function Tooltip({
508
+ label,
509
+ children,
510
+ className
511
+ }: TooltipProps): import("react").JSX.Element;
512
+ //#endregion
513
+ //#region ../core-styles/.arvia/types/components/alert.arv.d.ts
514
+ // Generated by @arviahq/compiler - do not edit.
515
+ type AlertProps$1 = {
516
+ tone?: "info" | "success" | "warning" | "danger";
517
+ };
518
+ //#endregion
519
+ //#region src/Alert.d.ts
520
+ type AlertProps = AlertProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
521
+ /** Heading line. */title?: ReactNode; /** Override the default tone icon. */
522
+ icon?: ReactNode; /** Body content. */
523
+ children?: ReactNode;
524
+ className?: string;
525
+ };
526
+ declare const Alert: import("react").ForwardRefExoticComponent<AlertProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
527
+ /** Heading line. */title?: ReactNode; /** Override the default tone icon. */
528
+ icon?: ReactNode; /** Body content. */
529
+ children?: ReactNode;
530
+ className?: string;
531
+ } & import("react").RefAttributes<HTMLDivElement>>;
532
+ //#endregion
533
+ //#region src/RadioGroup.d.ts
534
+ type Size = "sm" | "md" | "lg";
535
+ type RadioGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
536
+ value?: string;
537
+ defaultValue?: string;
538
+ onChange?: (value: string) => void;
539
+ size?: Size;
540
+ children?: ReactNode;
541
+ className?: string;
542
+ };
543
+ type RadioProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value"> & {
544
+ /** Value selected within a RadioGroup. */value?: string; /** Checked state when used standalone (controlled). */
545
+ checked?: boolean;
546
+ defaultChecked?: boolean; /** Fires when toggled standalone. Within a RadioGroup, use the group's onChange. */
547
+ onChange?: (checked: boolean) => void;
548
+ size?: Size;
549
+ children?: ReactNode;
550
+ className?: string;
551
+ };
552
+ declare const Radio: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value"> & {
553
+ /** Value selected within a RadioGroup. */value?: string; /** Checked state when used standalone (controlled). */
554
+ checked?: boolean;
555
+ defaultChecked?: boolean; /** Fires when toggled standalone. Within a RadioGroup, use the group's onChange. */
556
+ onChange?: (checked: boolean) => void;
557
+ size?: Size;
558
+ children?: ReactNode;
559
+ className?: string;
560
+ } & import("react").RefAttributes<HTMLButtonElement>>;
561
+ /**
562
+ * Single-select group. Compose with `Radio` (also exported standalone):
563
+ *
564
+ * <RadioGroup defaultValue="a" onChange={setV}>
565
+ * <Radio value="a">Option A</Radio>
566
+ * <Radio value="b">Option B</Radio>
567
+ * </RadioGroup>
568
+ */
569
+ declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
570
+ value?: string;
571
+ defaultValue?: string;
572
+ onChange?: (value: string) => void;
573
+ size?: Size;
574
+ children?: ReactNode;
575
+ className?: string;
576
+ } & import("react").RefAttributes<HTMLDivElement>> & {
577
+ Item: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "value"> & {
578
+ /** Value selected within a RadioGroup. */value?: string; /** Checked state when used standalone (controlled). */
579
+ checked?: boolean;
580
+ defaultChecked?: boolean; /** Fires when toggled standalone. Within a RadioGroup, use the group's onChange. */
581
+ onChange?: (checked: boolean) => void;
582
+ size?: Size;
583
+ children?: ReactNode;
584
+ className?: string;
585
+ } & import("react").RefAttributes<HTMLButtonElement>>;
586
+ };
587
+ //#endregion
588
+ //#region src/Slider.d.ts
589
+ type SliderProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
590
+ value?: number;
591
+ defaultValue?: number;
592
+ onChange?: (value: number) => void;
593
+ min?: number;
594
+ max?: number;
595
+ step?: number;
596
+ disabled?: boolean;
597
+ className?: string;
598
+ };
599
+ declare const Slider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
600
+ value?: number;
601
+ defaultValue?: number;
602
+ onChange?: (value: number) => void;
603
+ min?: number;
604
+ max?: number;
605
+ step?: number;
606
+ disabled?: boolean;
607
+ className?: string;
608
+ } & import("react").RefAttributes<HTMLDivElement>>;
609
+ //#endregion
610
+ //#region src/Breadcrumb.d.ts
611
+ type BreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
612
+ /** Separator rendered between items. */separator?: ReactNode;
613
+ children?: ReactNode;
614
+ className?: string;
615
+ };
616
+ type BreadcrumbItemProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
617
+ /** Marks the current page (renders text with aria-current instead of a link). */current?: boolean;
618
+ children?: ReactNode;
619
+ className?: string;
620
+ };
621
+ /**
622
+ * Breadcrumb trail:
623
+ *
624
+ * <Breadcrumb>
625
+ * <Breadcrumb.Item href="/">Home</Breadcrumb.Item>
626
+ * <Breadcrumb.Item href="/docs">Docs</Breadcrumb.Item>
627
+ * <Breadcrumb.Item current>Breadcrumb</Breadcrumb.Item>
628
+ * </Breadcrumb>
629
+ */
630
+ declare const Breadcrumb: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children"> & {
631
+ /** Separator rendered between items. */separator?: ReactNode;
632
+ children?: ReactNode;
633
+ className?: string;
634
+ } & import("react").RefAttributes<HTMLElement>> & {
635
+ Item: import("react").ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
636
+ /** Marks the current page (renders text with aria-current instead of a link). */current?: boolean;
637
+ children?: ReactNode;
638
+ className?: string;
639
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
640
+ };
641
+ //#endregion
642
+ //#region src/Skeleton.d.ts
643
+ type SkeletonProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
644
+ /** Pulse animation (default true). */animated?: boolean;
645
+ width?: number | string;
646
+ height?: number | string;
647
+ radius?: CSSProperties["borderRadius"];
648
+ className?: string;
649
+ };
650
+ declare const Skeleton: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
651
+ /** Pulse animation (default true). */animated?: boolean;
652
+ width?: number | string;
653
+ height?: number | string;
654
+ radius?: CSSProperties["borderRadius"];
655
+ className?: string;
656
+ } & import("react").RefAttributes<HTMLDivElement>>;
657
+ //#endregion
658
+ //#region ../core-styles/.arvia/types/components/progress.arv.d.ts
659
+ // Generated by @arviahq/compiler - do not edit.
660
+ type ProgressProps$1 = {
661
+ tone?: "primary" | "success" | "warning" | "danger";
662
+ size?: "sm" | "md" | "lg";
663
+ };
664
+ //#endregion
665
+ //#region src/Progress.d.ts
666
+ type ProgressProps = ProgressProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
667
+ /** Current value. */value: number; /** Maximum value (default 100). */
668
+ max?: number;
669
+ className?: string;
670
+ };
671
+ declare const Progress: import("react").ForwardRefExoticComponent<ProgressProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
672
+ /** Current value. */value: number; /** Maximum value (default 100). */
673
+ max?: number;
674
+ className?: string;
675
+ } & import("react").RefAttributes<HTMLDivElement>>;
676
+ //#endregion
677
+ //#region ../core-styles/.arvia/types/components/progress-circle.arv.d.ts
678
+ // Generated by @arviahq/compiler - do not edit.
679
+ type ProgressCircleProps$1 = {
680
+ tone?: "primary" | "success" | "warning" | "danger";
681
+ };
682
+ //#endregion
683
+ //#region src/ProgressCircle.d.ts
684
+ type ProgressCircleProps = ProgressCircleProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
685
+ value: number;
686
+ max?: number;
687
+ size?: "sm" | "md" | "lg"; /** Override the ring thickness derived from `size`. */
688
+ strokeWidth?: number;
689
+ className?: string;
690
+ };
691
+ declare const ProgressCircle: import("react").ForwardRefExoticComponent<ProgressCircleProps$1 & Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
692
+ value: number;
693
+ max?: number;
694
+ size?: "sm" | "md" | "lg"; /** Override the ring thickness derived from `size`. */
695
+ strokeWidth?: number;
696
+ className?: string;
697
+ } & import("react").RefAttributes<HTMLDivElement>>;
698
+ //#endregion
699
+ //#region src/Popover.d.ts
700
+ type PopoverProps = {
701
+ open?: boolean;
702
+ defaultOpen?: boolean;
703
+ onChange?: (open: boolean) => void;
704
+ children?: ReactNode;
705
+ };
706
+ declare function PopoverRoot({
707
+ open,
708
+ defaultOpen,
709
+ onChange,
710
+ children
711
+ }: PopoverProps): import("react").JSX.Element;
712
+ type PopoverTriggerProps = {
713
+ children: ReactElement;
714
+ };
715
+ declare function PopoverTrigger({
716
+ children
717
+ }: PopoverTriggerProps): ReactElement<{
718
+ onClick?: (e: MouseEvent) => void;
719
+ ref?: unknown;
720
+ }, string | import("react").JSXElementConstructor<any>>;
721
+ type PopoverContentProps = HTMLAttributes<HTMLDivElement> & {
722
+ children?: ReactNode;
723
+ className?: string;
724
+ };
725
+ /**
726
+ * Anchored popover:
727
+ *
728
+ * <Popover>
729
+ * <Popover.Trigger><Button>Open</Button></Popover.Trigger>
730
+ * <Popover.Content>…</Popover.Content>
731
+ * </Popover>
732
+ */
733
+ declare const Popover: typeof PopoverRoot & {
734
+ Trigger: typeof PopoverTrigger;
735
+ Content: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
736
+ children?: ReactNode;
737
+ className?: string;
738
+ } & import("react").RefAttributes<HTMLDivElement>>;
739
+ };
740
+ //#endregion
741
+ //#region src/Menu.d.ts
742
+ type MenuProps = {
743
+ open?: boolean;
744
+ defaultOpen?: boolean;
745
+ onChange?: (open: boolean) => void;
746
+ children?: ReactNode;
747
+ };
748
+ declare function MenuRoot({
749
+ open,
750
+ defaultOpen,
751
+ onChange,
752
+ children
753
+ }: MenuProps): import("react").JSX.Element;
754
+ type MenuTriggerProps = {
755
+ children: ReactElement;
756
+ };
757
+ declare function MenuTrigger({
758
+ children
759
+ }: MenuTriggerProps): ReactElement<{
760
+ onClick?: (e: MouseEvent) => void;
761
+ ref?: unknown;
762
+ }, string | import("react").JSXElementConstructor<any>>;
763
+ type MenuContentProps = HTMLAttributes<HTMLDivElement> & {
764
+ children?: ReactNode;
765
+ className?: string;
766
+ };
767
+ type MenuItemProps = ButtonHTMLAttributes<HTMLButtonElement> & {
768
+ /** Called when the item is chosen; the menu then closes. */onSelect?: () => void;
769
+ danger?: boolean;
770
+ children?: ReactNode;
771
+ className?: string;
772
+ };
773
+ declare function MenuSeparator({
774
+ className,
775
+ ...props
776
+ }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
777
+ declare function MenuLabel({
778
+ children,
779
+ className,
780
+ ...props
781
+ }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
782
+ /**
783
+ * Dropdown menu:
784
+ *
785
+ * <Menu>
786
+ * <Menu.Trigger><Button>Actions</Button></Menu.Trigger>
787
+ * <Menu.Content>
788
+ * <Menu.Item onSelect={…}>Edit</Menu.Item>
789
+ * <Menu.Separator />
790
+ * <Menu.Item danger onSelect={…}>Delete</Menu.Item>
791
+ * </Menu.Content>
792
+ * </Menu>
793
+ */
794
+ declare const Menu: typeof MenuRoot & {
795
+ Trigger: typeof MenuTrigger;
796
+ Content: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
797
+ children?: ReactNode;
798
+ className?: string;
799
+ } & import("react").RefAttributes<HTMLDivElement>>;
800
+ Item: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
801
+ /** Called when the item is chosen; the menu then closes. */onSelect?: () => void;
802
+ danger?: boolean;
803
+ children?: ReactNode;
804
+ className?: string;
805
+ } & import("react").RefAttributes<HTMLButtonElement>>;
806
+ Separator: typeof MenuSeparator;
807
+ Label: typeof MenuLabel;
808
+ };
809
+ //#endregion
810
+ //#region src/Select.d.ts
811
+ type SelectOptionProps = {
812
+ value: string;
813
+ children?: ReactNode;
814
+ disabled?: boolean;
815
+ };
816
+ /** Config-only — Select reads its props; it renders nothing itself. */
817
+ declare function SelectOption(_props: SelectOptionProps): null;
818
+ type SelectProps = {
819
+ value?: string;
820
+ defaultValue?: string;
821
+ onChange?: (value: string) => void; /** Render a styled native <select> instead of the custom listbox. */
822
+ native?: boolean;
823
+ placeholder?: string;
824
+ disabled?: boolean;
825
+ name?: string;
826
+ children?: ReactNode;
827
+ className?: string;
828
+ "aria-label"?: string;
829
+ id?: string;
830
+ };
831
+ declare function SelectRoot({
832
+ value,
833
+ defaultValue,
834
+ onChange,
835
+ native,
836
+ placeholder,
837
+ disabled,
838
+ name,
839
+ children,
840
+ className,
841
+ "aria-label": ariaLabel,
842
+ id
843
+ }: SelectProps): import("react").JSX.Element;
844
+ /**
845
+ * Select with a custom listbox, or a styled native control via `native`:
846
+ *
847
+ * <Select defaultValue="a" placeholder="Pick one">
848
+ * <Select.Option value="a">Apple</Select.Option>
849
+ * <Select.Option value="b">Banana</Select.Option>
850
+ * </Select>
851
+ */
852
+ declare const Select: typeof SelectRoot & {
853
+ Option: typeof SelectOption;
854
+ };
855
+ //#endregion
856
+ //#region src/Toast.d.ts
857
+ type ToastTone = "neutral" | "info" | "success" | "warning" | "danger";
858
+ type ToastOptions = {
859
+ title?: ReactNode;
860
+ description?: ReactNode;
861
+ tone?: ToastTone; /** Auto-dismiss delay in ms; 0 keeps it until dismissed. Defaults to the provider's duration. */
862
+ duration?: number;
863
+ };
864
+ type ToastContextValue = {
865
+ toast: (options: ToastOptions) => string;
866
+ dismiss: (id: string) => void;
867
+ };
868
+ declare function useToast(): ToastContextValue;
869
+ declare function ToastProvider({
870
+ children,
871
+ duration
872
+ }: {
873
+ children: ReactNode; /** Default auto-dismiss delay in ms. */
874
+ duration?: number;
875
+ }): import("react").JSX.Element;
876
+ //#endregion
877
+ //#region src/arvia-theme.d.ts
878
+ /** Sets the active Arvia theme mode on `<html>`, overriding the OS color scheme. */
879
+ declare function setTheme(mode: string): void;
880
+ //#endregion
881
+ export { Accordion, type AccordionContentProps, type AccordionItemProps, type AccordionProps, type AccordionTriggerProps, Alert, type AlertProps, Avatar, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, Button, type ButtonProps, Card, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Dialog, type DialogCloseProps, type DialogContentProps, type DialogProps, type DialogTriggerProps, Divider, type DividerProps, Heading, type HeadingProps, Input, type InputProps, Link, type LinkProps, Menu, type MenuContentProps, type MenuItemProps, type MenuProps, type MenuTriggerProps, Popover, type PopoverContentProps, type PopoverProps, type PopoverTriggerProps, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOptionProps, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, type TabPanelProps, type TabProps, Tabs, type TabsListProps, type TabsProps, Text, type TextProps, type ToastOptions, ToastProvider, type ToastTone, Tooltip, type TooltipProps, setTheme, useToast };