@aviala-design/spiral 3.1.0 → 4.0.0-next.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.
- package/README.md +80 -0
- package/dist/{chunk-Q6UMVIGM.cjs → chunk-JZOPCN75.cjs} +45 -5
- package/dist/chunk-JZOPCN75.cjs.map +1 -0
- package/dist/{chunk-G7RVHJIV.js → chunk-NUOJ7QVZ.js} +48 -8
- package/dist/chunk-NUOJ7QVZ.js.map +1 -0
- package/dist/component-catalog.json +4 -1
- package/dist/component-changelogs.json +252 -0
- package/dist/form.cjs +11 -9
- package/dist/form.cjs.map +1 -1
- package/dist/form.js +4 -2
- package/dist/form.js.map +1 -1
- package/dist/index.cjs +5799 -2521
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +981 -168
- package/dist/index.d.ts +981 -168
- package/dist/index.js +6678 -3400
- package/dist/index.js.map +1 -1
- package/dist/props.json +2389 -474
- package/dist/styles.css +5884 -1624
- package/package.json +7 -15
- package/dist/chunk-G7RVHJIV.js.map +0 -1
- package/dist/chunk-Q6UMVIGM.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, CSSProperties, ButtonHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, ComponentPropsWithoutRef, HTMLAttributes, ImgHTMLAttributes, MouseEvent, AnchorHTMLAttributes, VideoHTMLAttributes } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties, ButtonHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, KeyboardEvent as KeyboardEvent$1, ComponentPropsWithoutRef, HTMLAttributes, ImgHTMLAttributes, MouseEvent, AnchorHTMLAttributes, VideoHTMLAttributes } from 'react';
|
|
3
3
|
import { ThemeMode, PaletteConfig, BaseNumbersDensity, ThemePreset } from '@aviala-design/tokens';
|
|
4
4
|
export { BaseNumbersDensity, DEFAULT_PALETTE_CONFIG, HueFamily, PALETTE_HUE_FAMILIES, PaletteConfig } from '@aviala-design/tokens';
|
|
5
|
-
import { TokenProject, ProjectCssOptions } from '@aviala-design/tokens/project';
|
|
5
|
+
import { ThemePackage, ProjectRelease, TokenProject, ProjectCssOptions } from '@aviala-design/tokens/project';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import * as class_variance_authority from 'class-variance-authority';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
9
|
+
import * as _ui_sdk_react_primitive from '@ui-sdk/react/primitive';
|
|
10
|
+
import * as _ui_sdk_core_select from '@ui-sdk/core/select';
|
|
11
|
+
import { SelectValue as SelectValue$1 } from '@ui-sdk/react/select';
|
|
12
|
+
import { CheckedState } from '@ui-sdk/react/checkbox';
|
|
14
13
|
export { u as useResolvedControlError } from './form-field-context-XYh-G1KL.cjs';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
14
|
+
import { PopoverOptions, PopoverController } from '@ui-sdk/react/popover';
|
|
15
|
+
import { DialogOptions, DialogCloseProps, DialogInitialFocus, DialogFinalFocus, DialogController } from '@ui-sdk/react/dialog';
|
|
16
|
+
import { TooltipOptions, TooltipController } from '@ui-sdk/react/tooltip';
|
|
19
17
|
import { ClassValue } from 'clsx';
|
|
20
18
|
|
|
19
|
+
interface DefineThemeOptions {
|
|
20
|
+
/** Registry id; defaults to the package meta name. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Display name; defaults to the package displayName, then the meta name. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** A theme package object or its JSON text. */
|
|
25
|
+
package: unknown;
|
|
26
|
+
/** The base release object, including its project snapshot. */
|
|
27
|
+
base: unknown;
|
|
28
|
+
}
|
|
29
|
+
type DefinedTheme = Readonly<{
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
package: ThemePackage;
|
|
33
|
+
base: ProjectRelease;
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Validates a theme package against its declared base release and returns a
|
|
37
|
+
* frozen registry entry. The projectId, version, and contentHash must match.
|
|
38
|
+
*/
|
|
39
|
+
declare function defineTheme(options: DefineThemeOptions): DefinedTheme;
|
|
40
|
+
|
|
21
41
|
type ThemeProviderProps = {
|
|
22
42
|
children: ReactNode;
|
|
23
43
|
defaultMode?: ThemeMode;
|
|
@@ -32,6 +52,12 @@ type ThemeProviderProps = {
|
|
|
32
52
|
projectCssOptions?: ProjectCssOptions;
|
|
33
53
|
/** Explicit container for a local project theme. Defaults to the document root. */
|
|
34
54
|
projectTarget?: HTMLElement;
|
|
55
|
+
/** Single npm-theme entry; mutually exclusive with project and themes. */
|
|
56
|
+
theme?: DefinedTheme;
|
|
57
|
+
/** npm-theme registry; mutually exclusive with project and theme. */
|
|
58
|
+
themes?: DefinedTheme[];
|
|
59
|
+
/** Active registry id at mount; defaults to the first theme. */
|
|
60
|
+
defaultThemeId?: string;
|
|
35
61
|
defaultEffects?: boolean;
|
|
36
62
|
};
|
|
37
63
|
type ThemeContextValue = {
|
|
@@ -53,8 +79,14 @@ type ThemeContextValue = {
|
|
|
53
79
|
effects: boolean;
|
|
54
80
|
setEffects: (enabled: boolean) => void;
|
|
55
81
|
isProjectTheme: boolean;
|
|
56
|
-
|
|
57
|
-
|
|
82
|
+
/** Active npm-theme id, or null outside theme mode. */
|
|
83
|
+
themeId: string | null;
|
|
84
|
+
/** Theme registry exposed to consumers; empty outside theme mode. */
|
|
85
|
+
themes: DefinedTheme[];
|
|
86
|
+
/** Switches the active registry theme; throws on an unknown id. */
|
|
87
|
+
setTheme: (id: string) => void;
|
|
88
|
+
};
|
|
89
|
+
declare function ThemeProvider({ children, defaultMode, defaultPrimary, defaultPresetId, defaultPaletteConfig, defaultDensity, storageKey, onThemeChange, project, projectCssOptions, projectTarget, theme, themes, defaultThemeId, defaultEffects, }: ThemeProviderProps): react.JSX.Element;
|
|
58
90
|
declare function useTheme(): ThemeContextValue;
|
|
59
91
|
/** Layout key for remeasuring size-sensitive UI when theme density/mode changes. */
|
|
60
92
|
declare function useThemeLayoutKey(): string | null;
|
|
@@ -112,6 +144,10 @@ type LocaleUpload = {
|
|
|
112
144
|
label: string;
|
|
113
145
|
title: string;
|
|
114
146
|
description: string;
|
|
147
|
+
/** Optional for compatibility with existing locale packs. */
|
|
148
|
+
retry?: string;
|
|
149
|
+
remove?: string;
|
|
150
|
+
preview?: string;
|
|
115
151
|
};
|
|
116
152
|
type LocaleVideo = {
|
|
117
153
|
play: string;
|
|
@@ -320,14 +356,18 @@ declare const Button: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLB
|
|
|
320
356
|
|
|
321
357
|
/** Figma Components → Information Collect → BaseInput */
|
|
322
358
|
type InputSize = "regular" | "big";
|
|
359
|
+
type InputAppearance = "default" | "outline" | "no-background";
|
|
323
360
|
declare const inputRootVariants: (props?: ({
|
|
324
361
|
fullWidth?: boolean | null | undefined;
|
|
362
|
+
appearance?: "default" | "outline" | "no-background" | null | undefined;
|
|
325
363
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
326
|
-
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps<typeof inputRootVariants> & {
|
|
364
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<VariantProps<typeof inputRootVariants>, "appearance"> & {
|
|
327
365
|
/** Figma `Size` */
|
|
328
366
|
size?: InputSize;
|
|
329
367
|
/** Figma `All-Round` */
|
|
330
368
|
allRound?: boolean;
|
|
369
|
+
/** Figma `Appearance` — filled default, gradient outline, or no background */
|
|
370
|
+
appearance?: InputAppearance;
|
|
331
371
|
leftIcon?: ReactNode;
|
|
332
372
|
rightIcon?: ReactNode;
|
|
333
373
|
/** Figma badge area — left slot inside BaseInput */
|
|
@@ -338,13 +378,16 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & VariantP
|
|
|
338
378
|
fullWidth?: boolean;
|
|
339
379
|
error?: boolean;
|
|
340
380
|
};
|
|
341
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps<(props?: ({
|
|
381
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<VariantProps<(props?: ({
|
|
342
382
|
fullWidth?: boolean | null | undefined;
|
|
343
|
-
|
|
383
|
+
appearance?: "default" | "outline" | "no-background" | null | undefined;
|
|
384
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "appearance"> & {
|
|
344
385
|
/** Figma `Size` */
|
|
345
386
|
size?: InputSize;
|
|
346
387
|
/** Figma `All-Round` */
|
|
347
388
|
allRound?: boolean;
|
|
389
|
+
/** Figma `Appearance` — filled default, gradient outline, or no background */
|
|
390
|
+
appearance?: InputAppearance;
|
|
348
391
|
leftIcon?: ReactNode;
|
|
349
392
|
rightIcon?: ReactNode;
|
|
350
393
|
/** Figma badge area — left slot inside BaseInput */
|
|
@@ -360,14 +403,19 @@ declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HT
|
|
|
360
403
|
type NumberInputStyle = "default" | "monospaced";
|
|
361
404
|
declare const numberInputRootVariants: (props?: ({
|
|
362
405
|
fullWidth?: boolean | null | undefined;
|
|
406
|
+
appearance?: "default" | "outline" | "no-background" | null | undefined;
|
|
363
407
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
364
408
|
type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "value" | "defaultValue" | "onChange"> & {
|
|
365
409
|
/** Figma `Size` */
|
|
366
410
|
size?: InputSize;
|
|
367
411
|
/** Figma `All-Round` */
|
|
368
412
|
allRound?: boolean;
|
|
413
|
+
/** Figma `Appearance` — filled default, gradient outline, or no background */
|
|
414
|
+
appearance?: InputAppearance;
|
|
369
415
|
/** Figma `Style` — Default vs Monospaced (tabular / light numeric) */
|
|
370
416
|
inputStyle?: NumberInputStyle;
|
|
417
|
+
/** Alias for `inputStyle`; wins when both are passed. */
|
|
418
|
+
numberStyle?: NumberInputStyle;
|
|
371
419
|
leftIcon?: ReactNode;
|
|
372
420
|
rightIcon?: ReactNode;
|
|
373
421
|
leftBadge?: ReactNode;
|
|
@@ -386,13 +434,17 @@ type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "ty
|
|
|
386
434
|
/** Fires with the parsed number (or `null` when empty / invalid) */
|
|
387
435
|
onValueChange?: (value: number | null) => void;
|
|
388
436
|
};
|
|
389
|
-
declare const NumberInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
437
|
+
declare const NumberInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "size" | "type" | "value" | "onChange"> & {
|
|
390
438
|
/** Figma `Size` */
|
|
391
439
|
size?: InputSize;
|
|
392
440
|
/** Figma `All-Round` */
|
|
393
441
|
allRound?: boolean;
|
|
442
|
+
/** Figma `Appearance` — filled default, gradient outline, or no background */
|
|
443
|
+
appearance?: InputAppearance;
|
|
394
444
|
/** Figma `Style` — Default vs Monospaced (tabular / light numeric) */
|
|
395
445
|
inputStyle?: NumberInputStyle;
|
|
446
|
+
/** Alias for `inputStyle`; wins when both are passed. */
|
|
447
|
+
numberStyle?: NumberInputStyle;
|
|
396
448
|
leftIcon?: ReactNode;
|
|
397
449
|
rightIcon?: ReactNode;
|
|
398
450
|
leftBadge?: ReactNode;
|
|
@@ -451,11 +503,27 @@ declare function SelectSubMenu(_props: SelectSubMenuMarkerProps): null;
|
|
|
451
503
|
declare namespace SelectSubMenu {
|
|
452
504
|
var displayName: string;
|
|
453
505
|
}
|
|
454
|
-
type SelectProps =
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
506
|
+
type SelectProps = {
|
|
507
|
+
children?: ReactNode;
|
|
508
|
+
value?: string;
|
|
509
|
+
defaultValue?: string;
|
|
510
|
+
onValueChange?: (value: string) => void;
|
|
511
|
+
open?: boolean;
|
|
512
|
+
defaultOpen?: boolean;
|
|
513
|
+
onOpenChange?: (open: boolean) => void;
|
|
514
|
+
disabled?: boolean;
|
|
515
|
+
required?: boolean;
|
|
516
|
+
name?: string;
|
|
517
|
+
form?: string;
|
|
518
|
+
autoComplete?: string;
|
|
519
|
+
modal?: boolean | "pointer";
|
|
520
|
+
/** Kept for API compatibility; direction is provided by Spiral's config. */
|
|
521
|
+
dir?: "ltr" | "rtl";
|
|
522
|
+
};
|
|
523
|
+
declare function Select({ open: openProp, defaultOpen, onOpenChange, disabled, value, defaultValue, onValueChange, required, name, form, autoComplete, modal, dir: _dir, ...props }: SelectProps): react.JSX.Element;
|
|
524
|
+
declare const SelectValue: typeof SelectValue$1;
|
|
525
|
+
declare const SelectGroup: _ui_sdk_react_primitive.PartComponent<_ui_sdk_core_select.SelectPrimitive, "group", "div">;
|
|
526
|
+
type SelectTriggerProps = Omit<ComponentPropsWithoutRef<"button">, "value"> & {
|
|
459
527
|
size?: SelectSize;
|
|
460
528
|
allRound?: boolean;
|
|
461
529
|
leftIcon?: ReactNode;
|
|
@@ -463,9 +531,16 @@ type SelectTriggerProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Trigge
|
|
|
463
531
|
/** Override chevron expand icon (defaults to DirectionArrowDownLight). */
|
|
464
532
|
expandIcon?: ReactNode;
|
|
465
533
|
placeholder?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Text shown in the trigger when a value is selected. Use when the menu
|
|
536
|
+
* content stays unmounted, so the item text is unavailable.
|
|
537
|
+
*/
|
|
538
|
+
valueText?: ReactNode;
|
|
466
539
|
error?: boolean;
|
|
540
|
+
/** Kept for API compatibility with the former Radix trigger. */
|
|
541
|
+
asChild?: boolean;
|
|
467
542
|
};
|
|
468
|
-
declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<
|
|
543
|
+
declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
469
544
|
size?: SelectSize;
|
|
470
545
|
allRound?: boolean;
|
|
471
546
|
leftIcon?: ReactNode;
|
|
@@ -473,23 +548,78 @@ declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
473
548
|
/** Override chevron expand icon (defaults to DirectionArrowDownLight). */
|
|
474
549
|
expandIcon?: ReactNode;
|
|
475
550
|
placeholder?: string;
|
|
551
|
+
/**
|
|
552
|
+
* Text shown in the trigger when a value is selected. Use when the menu
|
|
553
|
+
* content stays unmounted, so the item text is unavailable.
|
|
554
|
+
*/
|
|
555
|
+
valueText?: ReactNode;
|
|
476
556
|
error?: boolean;
|
|
557
|
+
/** Kept for API compatibility with the former Radix trigger. */
|
|
558
|
+
asChild?: boolean;
|
|
477
559
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
478
|
-
type SelectContentProps = ComponentPropsWithoutRef<
|
|
560
|
+
type SelectContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
479
561
|
/** Render without Portal — use inside nested overlays (e.g. ColorPicker popover). */
|
|
480
562
|
portalled?: boolean;
|
|
563
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
564
|
+
align?: "start" | "center" | "end";
|
|
565
|
+
sideOffset?: number;
|
|
566
|
+
alignOffset?: number;
|
|
567
|
+
collisionPadding?: number;
|
|
568
|
+
arrowPadding?: number;
|
|
569
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
570
|
+
position?: "item-aligned" | "popper";
|
|
571
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
572
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
573
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
574
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
575
|
+
onFocusOutside?: (event: Event) => void;
|
|
576
|
+
onInteractOutside?: (event: Event) => void;
|
|
577
|
+
avoidCollisions?: boolean;
|
|
578
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
579
|
+
sticky?: "partial" | "always";
|
|
580
|
+
hideWhenDetached?: boolean;
|
|
581
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
582
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
583
|
+
prioritizePosition?: boolean;
|
|
584
|
+
forceMount?: boolean;
|
|
585
|
+
asChild?: boolean;
|
|
481
586
|
};
|
|
482
|
-
declare const SelectContent: react.ForwardRefExoticComponent<Omit<
|
|
587
|
+
declare const SelectContent: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
483
588
|
/** Render without Portal — use inside nested overlays (e.g. ColorPicker popover). */
|
|
484
589
|
portalled?: boolean;
|
|
590
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
591
|
+
align?: "start" | "center" | "end";
|
|
592
|
+
sideOffset?: number;
|
|
593
|
+
alignOffset?: number;
|
|
594
|
+
collisionPadding?: number;
|
|
595
|
+
arrowPadding?: number;
|
|
596
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
597
|
+
position?: "item-aligned" | "popper";
|
|
598
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
599
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
600
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
601
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
602
|
+
onFocusOutside?: (event: Event) => void;
|
|
603
|
+
onInteractOutside?: (event: Event) => void;
|
|
604
|
+
avoidCollisions?: boolean;
|
|
605
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
606
|
+
sticky?: "partial" | "always";
|
|
607
|
+
hideWhenDetached?: boolean;
|
|
608
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
609
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
610
|
+
prioritizePosition?: boolean;
|
|
611
|
+
forceMount?: boolean;
|
|
612
|
+
asChild?: boolean;
|
|
485
613
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
486
614
|
/** Search field composition; callers own filtering and empty-result content. */
|
|
487
615
|
type SelectSearchProps = InputProps;
|
|
488
|
-
declare const SelectSearch: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size"> & class_variance_authority.VariantProps<(props?: ({
|
|
616
|
+
declare const SelectSearch: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
489
617
|
fullWidth?: boolean | null | undefined;
|
|
490
|
-
|
|
618
|
+
appearance?: "default" | "outline" | "no-background" | null | undefined;
|
|
619
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "appearance"> & {
|
|
491
620
|
size?: InputSize;
|
|
492
621
|
allRound?: boolean;
|
|
622
|
+
appearance?: InputAppearance;
|
|
493
623
|
leftIcon?: ReactNode;
|
|
494
624
|
rightIcon?: ReactNode;
|
|
495
625
|
leftBadge?: ReactNode;
|
|
@@ -497,10 +627,16 @@ declare const SelectSearch: react.ForwardRefExoticComponent<Omit<react.InputHTML
|
|
|
497
627
|
fullWidth?: boolean;
|
|
498
628
|
error?: boolean;
|
|
499
629
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
500
|
-
type SelectLabelProps = ComponentPropsWithoutRef<
|
|
501
|
-
declare const SelectLabel: react.ForwardRefExoticComponent<Omit<
|
|
502
|
-
type SelectItemProps = ComponentPropsWithoutRef<
|
|
503
|
-
|
|
630
|
+
type SelectLabelProps = ComponentPropsWithoutRef<"div">;
|
|
631
|
+
declare const SelectLabel: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
632
|
+
type SelectItemProps = Omit<ComponentPropsWithoutRef<"div">, "value"> & {
|
|
633
|
+
value: string;
|
|
634
|
+
disabled?: boolean;
|
|
635
|
+
/** Text the trigger shows and typeahead finds for non-text content. */
|
|
636
|
+
label?: string;
|
|
637
|
+
/** Former Radix name for `label`. */
|
|
638
|
+
textValue?: string;
|
|
639
|
+
/** Figma Function variant (default Radio — single-select indicator) */
|
|
504
640
|
itemFunction?: SelectItemFunction;
|
|
505
641
|
/** Figma Type variant */
|
|
506
642
|
layout?: SelectItemLayout;
|
|
@@ -522,8 +658,14 @@ type SelectItemProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {
|
|
|
522
658
|
/** People layout — secondary caption line */
|
|
523
659
|
subtitle?: ReactNode;
|
|
524
660
|
};
|
|
525
|
-
declare const SelectItem: react.ForwardRefExoticComponent<Omit<
|
|
526
|
-
|
|
661
|
+
declare const SelectItem: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "value"> & {
|
|
662
|
+
value: string;
|
|
663
|
+
disabled?: boolean;
|
|
664
|
+
/** Text the trigger shows and typeahead finds for non-text content. */
|
|
665
|
+
label?: string;
|
|
666
|
+
/** Former Radix name for `label`. */
|
|
667
|
+
textValue?: string;
|
|
668
|
+
/** Figma Function variant (default Radio — single-select indicator) */
|
|
527
669
|
itemFunction?: SelectItemFunction;
|
|
528
670
|
/** Figma Type variant */
|
|
529
671
|
layout?: SelectItemLayout;
|
|
@@ -583,8 +725,8 @@ declare const SelectSubItemPeople: react.ForwardRefExoticComponent<SelectSubItem
|
|
|
583
725
|
/** People layout convenience alias — same as `<SelectItem layout="people" … />`. */
|
|
584
726
|
type SelectItemPeopleProps = Omit<SelectItemProps, "layout">;
|
|
585
727
|
declare const SelectItemPeople: react.ForwardRefExoticComponent<SelectItemPeopleProps & react.RefAttributes<HTMLDivElement>>;
|
|
586
|
-
type SelectSeparatorProps = ComponentPropsWithoutRef<
|
|
587
|
-
declare const SelectSeparator: react.ForwardRefExoticComponent<Omit<
|
|
728
|
+
type SelectSeparatorProps = ComponentPropsWithoutRef<"div">;
|
|
729
|
+
declare const SelectSeparator: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
588
730
|
/** Convenience wrapper matching Figma Select Menu Item Group */
|
|
589
731
|
type SelectItemGroupProps = {
|
|
590
732
|
label?: ReactNode;
|
|
@@ -594,24 +736,28 @@ type SelectItemGroupProps = {
|
|
|
594
736
|
};
|
|
595
737
|
declare function SelectItemGroup({ label, showDivider, children, className, }: SelectItemGroupProps): react.JSX.Element;
|
|
596
738
|
|
|
597
|
-
declare const Label: react.ForwardRefExoticComponent<Omit<
|
|
739
|
+
declare const Label: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & react.RefAttributes<HTMLLabelElement>>;
|
|
598
740
|
|
|
599
741
|
/** Figma Components → Information Display → Badge (166:137) */
|
|
600
|
-
type BadgeStyle = "theme" | "info" | "fail" | "warning" | "success" | "normal";
|
|
742
|
+
type BadgeStyle = "theme" | "info" | "fail" | "warning" | "success" | "normal" | "light";
|
|
601
743
|
type BadgeLevel = "caption" | "text";
|
|
744
|
+
type BadgeSize = "default" | "large";
|
|
602
745
|
type BadgeLineHeightFix = "text" | "subtitle" | "off";
|
|
603
746
|
declare const badgeVariants: (props?: ({
|
|
604
|
-
style?: "theme" | "normal" | "info" | "fail" | "warning" | "success" | null | undefined;
|
|
747
|
+
style?: "light" | "theme" | "normal" | "info" | "fail" | "warning" | "success" | null | undefined;
|
|
605
748
|
level?: "text" | "caption" | null | undefined;
|
|
749
|
+
size?: "default" | "large" | null | undefined;
|
|
606
750
|
primary?: boolean | null | undefined;
|
|
607
|
-
lineHeightFix?: "
|
|
751
|
+
lineHeightFix?: "text" | "off" | "subtitle" | null | undefined;
|
|
608
752
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
609
|
-
type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "style"> & Omit<VariantProps<typeof badgeVariants>, "lineHeightFix" | "primary"> & {
|
|
753
|
+
type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "style"> & Omit<VariantProps<typeof badgeVariants>, "lineHeightFix" | "primary" | "size"> & {
|
|
610
754
|
leftIcon?: ReactNode;
|
|
611
755
|
rightIcon?: ReactNode;
|
|
612
756
|
children: ReactNode;
|
|
613
757
|
/** Figma `Primary` — filled primary surface vs secondary surface */
|
|
614
758
|
primary?: boolean;
|
|
759
|
+
/** Figma `Size` — large uses the level's large padding tokens */
|
|
760
|
+
size?: BadgeSize;
|
|
615
761
|
/**
|
|
616
762
|
* Figma `LineHeightFix`.
|
|
617
763
|
* - `true` / omitted: Caption → AlignToTextLevel, Text → AlignToSubtitleLevel
|
|
@@ -620,16 +766,19 @@ type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "style"> & Omit<VariantP
|
|
|
620
766
|
lineHeightFix?: boolean | BadgeLineHeightFix;
|
|
621
767
|
};
|
|
622
768
|
declare const Badge: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLSpanElement>, "style"> & Omit<VariantProps<(props?: ({
|
|
623
|
-
style?: "theme" | "normal" | "info" | "fail" | "warning" | "success" | null | undefined;
|
|
769
|
+
style?: "light" | "theme" | "normal" | "info" | "fail" | "warning" | "success" | null | undefined;
|
|
624
770
|
level?: "text" | "caption" | null | undefined;
|
|
771
|
+
size?: "default" | "large" | null | undefined;
|
|
625
772
|
primary?: boolean | null | undefined;
|
|
626
|
-
lineHeightFix?: "
|
|
627
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>, "primary" | "lineHeightFix"> & {
|
|
773
|
+
lineHeightFix?: "text" | "off" | "subtitle" | null | undefined;
|
|
774
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "size" | "primary" | "lineHeightFix"> & {
|
|
628
775
|
leftIcon?: ReactNode;
|
|
629
776
|
rightIcon?: ReactNode;
|
|
630
777
|
children: ReactNode;
|
|
631
778
|
/** Figma `Primary` — filled primary surface vs secondary surface */
|
|
632
779
|
primary?: boolean;
|
|
780
|
+
/** Figma `Size` — large uses the level's large padding tokens */
|
|
781
|
+
size?: BadgeSize;
|
|
633
782
|
/**
|
|
634
783
|
* Figma `LineHeightFix`.
|
|
635
784
|
* - `true` / omitted: Caption → AlignToTextLevel, Text → AlignToSubtitleLevel
|
|
@@ -642,7 +791,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLSpa
|
|
|
642
791
|
type AvatarLevel = "display" | "headline1" | "headline2" | "title" | "subtitle" | "text";
|
|
643
792
|
type AvatarContent = "text" | "picture" | "icon";
|
|
644
793
|
declare const avatarVariants: (props?: ({
|
|
645
|
-
level?: "title" | "display" | "headline1" | "headline2" | "subtitle" |
|
|
794
|
+
level?: "text" | "title" | "display" | "headline1" | "headline2" | "subtitle" | null | undefined;
|
|
646
795
|
content?: "text" | "picture" | "icon" | null | undefined;
|
|
647
796
|
lineHeightFix?: boolean | null | undefined;
|
|
648
797
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -657,7 +806,7 @@ type AvatarProps = HTMLAttributes<HTMLSpanElement> & VariantProps<typeof avatarV
|
|
|
657
806
|
imgProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt">;
|
|
658
807
|
};
|
|
659
808
|
declare const Avatar: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
660
|
-
level?: "title" | "display" | "headline1" | "headline2" | "subtitle" |
|
|
809
|
+
level?: "text" | "title" | "display" | "headline1" | "headline2" | "subtitle" | null | undefined;
|
|
661
810
|
content?: "text" | "picture" | "icon" | null | undefined;
|
|
662
811
|
lineHeightFix?: boolean | null | undefined;
|
|
663
812
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
@@ -678,7 +827,7 @@ type TagLineHeightFix = "text" | "subtitle" | "off";
|
|
|
678
827
|
declare const tagVariants: (props?: ({
|
|
679
828
|
level?: "text" | "caption" | null | undefined;
|
|
680
829
|
content?: "text" | "people" | null | undefined;
|
|
681
|
-
lineHeightFix?: "
|
|
830
|
+
lineHeightFix?: "text" | "off" | "subtitle" | null | undefined;
|
|
682
831
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
683
832
|
type TagProps = HTMLAttributes<HTMLSpanElement> & Omit<VariantProps<typeof tagVariants>, "lineHeightFix"> & {
|
|
684
833
|
leftIcon?: ReactNode;
|
|
@@ -699,7 +848,7 @@ declare const TagClose: react.ForwardRefExoticComponent<TagCloseProps & react.Re
|
|
|
699
848
|
declare const Tag: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & Omit<VariantProps<(props?: ({
|
|
700
849
|
level?: "text" | "caption" | null | undefined;
|
|
701
850
|
content?: "text" | "people" | null | undefined;
|
|
702
|
-
lineHeightFix?: "
|
|
851
|
+
lineHeightFix?: "text" | "off" | "subtitle" | null | undefined;
|
|
703
852
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "lineHeightFix"> & {
|
|
704
853
|
leftIcon?: ReactNode;
|
|
705
854
|
rightIcon?: ReactNode;
|
|
@@ -756,6 +905,10 @@ type ScrollProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof scrollVa
|
|
|
756
905
|
/**
|
|
757
906
|
* Scrollable region with Aviala-styled scrollbar (track + thumb).
|
|
758
907
|
* Figma documents the thumb/track chrome; this wraps content with that chrome.
|
|
908
|
+
*
|
|
909
|
+
* The SDK scroll area owns the native scroller, edge state and keyboard
|
|
910
|
+
* affordances. Spiral keeps the `.aviala-scroll` class and its data attributes
|
|
911
|
+
* on the viewport, which is the element that actually scrolls.
|
|
759
912
|
*/
|
|
760
913
|
declare const Scroll: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
761
914
|
size?: "small" | "default" | null | undefined;
|
|
@@ -769,7 +922,7 @@ type LoadingLevel = "display" | "headline1" | "headline2" | "title" | "subtitle"
|
|
|
769
922
|
type LoadingMode = "theme" | "themeText" | "black" | "white" | "inherit";
|
|
770
923
|
type LoadingAlignment = "heightOnly" | "both" | "off";
|
|
771
924
|
declare const loadingVariants: (props?: ({
|
|
772
|
-
level?: "
|
|
925
|
+
level?: "text" | "title" | "caption" | "display" | "headline1" | "headline2" | "subtitle" | null | undefined;
|
|
773
926
|
lineHeightFix?: boolean | null | undefined;
|
|
774
927
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
775
928
|
declare const BUTTON_SIZE_TO_LOADING_LEVEL: {
|
|
@@ -789,7 +942,7 @@ type LoadingProps = HTMLAttributes<HTMLSpanElement> & Omit<VariantProps<typeof l
|
|
|
789
942
|
label?: string;
|
|
790
943
|
};
|
|
791
944
|
declare const Loading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & Omit<VariantProps<(props?: ({
|
|
792
|
-
level?: "
|
|
945
|
+
level?: "text" | "title" | "caption" | "display" | "headline1" | "headline2" | "subtitle" | null | undefined;
|
|
793
946
|
lineHeightFix?: boolean | null | undefined;
|
|
794
947
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "lineHeightFix"> & {
|
|
795
948
|
/** true = heightOnly; false = off. `both` aligns width and height. */
|
|
@@ -804,13 +957,29 @@ declare const Loading: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanEl
|
|
|
804
957
|
type CheckboxGroupDirection = "vertical" | "horizontal";
|
|
805
958
|
/** Figma Checkbox `Size` — Default → `default`, Huge → `huge` */
|
|
806
959
|
type CheckboxSize = "default" | "huge";
|
|
807
|
-
type CheckboxProps = ComponentPropsWithoutRef<
|
|
960
|
+
type CheckboxProps = Omit<ComponentPropsWithoutRef<"button">, "checked" | "defaultChecked" | "value"> & {
|
|
961
|
+
/** Checked, unchecked, or mixed. */
|
|
962
|
+
checked?: CheckedState;
|
|
963
|
+
/** The checked state at first, when uncontrolled. */
|
|
964
|
+
defaultChecked?: CheckedState;
|
|
965
|
+
/** Runs when the user changes the checked state. */
|
|
966
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
967
|
+
/** The value submitted while checked. */
|
|
968
|
+
value?: string;
|
|
808
969
|
/** Figma Checkbox `Round` */
|
|
809
970
|
round?: boolean;
|
|
810
971
|
/** Figma Checkbox `Size` */
|
|
811
972
|
size?: CheckboxSize;
|
|
812
973
|
};
|
|
813
|
-
declare const Checkbox: react.ForwardRefExoticComponent<Omit<
|
|
974
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "checked" | "defaultChecked" | "value"> & {
|
|
975
|
+
/** Checked, unchecked, or mixed. */
|
|
976
|
+
checked?: CheckedState;
|
|
977
|
+
/** The checked state at first, when uncontrolled. */
|
|
978
|
+
defaultChecked?: CheckedState;
|
|
979
|
+
/** Runs when the user changes the checked state. */
|
|
980
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
981
|
+
/** The value submitted while checked. */
|
|
982
|
+
value?: string;
|
|
814
983
|
/** Figma Checkbox `Round` */
|
|
815
984
|
round?: boolean;
|
|
816
985
|
/** Figma Checkbox `Size` */
|
|
@@ -842,16 +1011,52 @@ declare const CheckboxInput: react.ForwardRefExoticComponent<Omit<CheckboxProps,
|
|
|
842
1011
|
/** Figma Components → Information Collect → Radio */
|
|
843
1012
|
type RadioGroupDirection = "vertical" | "horizontal";
|
|
844
1013
|
type RadioInputVariant = "normal" | "card";
|
|
845
|
-
type RadioGroupProps = ComponentPropsWithoutRef<
|
|
1014
|
+
type RadioGroupProps = Omit<ComponentPropsWithoutRef<"div">, "value" | "defaultValue" | "onChange"> & {
|
|
846
1015
|
/** Figma Radio Input Group `Direction` */
|
|
847
1016
|
direction?: RadioGroupDirection;
|
|
1017
|
+
/** The checked radio's value. Pass it to control the group. */
|
|
1018
|
+
value?: string | null;
|
|
1019
|
+
/** The radio checked at first, when uncontrolled. */
|
|
1020
|
+
defaultValue?: string | null;
|
|
1021
|
+
/** Runs when the user picks a different radio. */
|
|
1022
|
+
onValueChange?: (value: string) => void;
|
|
1023
|
+
disabled?: boolean;
|
|
1024
|
+
readOnly?: boolean;
|
|
1025
|
+
required?: boolean;
|
|
1026
|
+
name?: string;
|
|
1027
|
+
form?: string;
|
|
1028
|
+
/** Whether arrow keys wrap from the last radio to the first. */
|
|
1029
|
+
loop?: boolean;
|
|
1030
|
+
orientation?: "horizontal" | "vertical";
|
|
848
1031
|
};
|
|
849
|
-
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<
|
|
1032
|
+
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "defaultValue" | "value" | "onChange"> & {
|
|
850
1033
|
/** Figma Radio Input Group `Direction` */
|
|
851
1034
|
direction?: RadioGroupDirection;
|
|
1035
|
+
/** The checked radio's value. Pass it to control the group. */
|
|
1036
|
+
value?: string | null;
|
|
1037
|
+
/** The radio checked at first, when uncontrolled. */
|
|
1038
|
+
defaultValue?: string | null;
|
|
1039
|
+
/** Runs when the user picks a different radio. */
|
|
1040
|
+
onValueChange?: (value: string) => void;
|
|
1041
|
+
disabled?: boolean;
|
|
1042
|
+
readOnly?: boolean;
|
|
1043
|
+
required?: boolean;
|
|
1044
|
+
name?: string;
|
|
1045
|
+
form?: string;
|
|
1046
|
+
/** Whether arrow keys wrap from the last radio to the first. */
|
|
1047
|
+
loop?: boolean;
|
|
1048
|
+
orientation?: "horizontal" | "vertical";
|
|
852
1049
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
853
|
-
type RadioGroupItemProps = ComponentPropsWithoutRef<
|
|
854
|
-
|
|
1050
|
+
type RadioGroupItemProps = Omit<ComponentPropsWithoutRef<"button">, "value" | "type"> & {
|
|
1051
|
+
/** What the group's value becomes when this radio is checked. */
|
|
1052
|
+
value: string;
|
|
1053
|
+
disabled?: boolean;
|
|
1054
|
+
};
|
|
1055
|
+
declare const RadioGroupItem: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type" | "value"> & {
|
|
1056
|
+
/** What the group's value becomes when this radio is checked. */
|
|
1057
|
+
value: string;
|
|
1058
|
+
disabled?: boolean;
|
|
1059
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
855
1060
|
type RadioInputProps = Omit<RadioGroupItemProps, "children"> & {
|
|
856
1061
|
/** Figma Typeface primary line */
|
|
857
1062
|
title: ReactNode;
|
|
@@ -861,7 +1066,7 @@ type RadioInputProps = Omit<RadioGroupItemProps, "children"> & {
|
|
|
861
1066
|
/** Figma Radio Input `Style` */
|
|
862
1067
|
variant?: RadioInputVariant;
|
|
863
1068
|
};
|
|
864
|
-
declare const RadioInput: react.ForwardRefExoticComponent<Omit<
|
|
1069
|
+
declare const RadioInput: react.ForwardRefExoticComponent<Omit<RadioGroupItemProps, "children"> & {
|
|
865
1070
|
/** Figma Typeface primary line */
|
|
866
1071
|
title: ReactNode;
|
|
867
1072
|
/** Figma Typeface caption line */
|
|
@@ -873,10 +1078,26 @@ declare const RadioInput: react.ForwardRefExoticComponent<Omit<Omit<RadioGroupPr
|
|
|
873
1078
|
|
|
874
1079
|
/** Figma Components → Basic Input → Switch */
|
|
875
1080
|
type SwitchSize = "regular" | "small";
|
|
876
|
-
type SwitchProps = ComponentPropsWithoutRef<
|
|
1081
|
+
type SwitchProps = Omit<ComponentPropsWithoutRef<"button">, "checked" | "defaultChecked" | "value"> & {
|
|
1082
|
+
/** Whether the switch is on. Pass it to control the switch. */
|
|
1083
|
+
checked?: boolean;
|
|
1084
|
+
/** Whether the switch starts on, when uncontrolled. */
|
|
1085
|
+
defaultChecked?: boolean;
|
|
1086
|
+
/** Runs when the user turns the switch on or off. */
|
|
1087
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1088
|
+
/** The value submitted while the switch is on. */
|
|
1089
|
+
value?: string;
|
|
877
1090
|
size?: SwitchSize;
|
|
878
1091
|
};
|
|
879
|
-
declare const Switch: react.ForwardRefExoticComponent<Omit<
|
|
1092
|
+
declare const Switch: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "checked" | "defaultChecked" | "value"> & {
|
|
1093
|
+
/** Whether the switch is on. Pass it to control the switch. */
|
|
1094
|
+
checked?: boolean;
|
|
1095
|
+
/** Whether the switch starts on, when uncontrolled. */
|
|
1096
|
+
defaultChecked?: boolean;
|
|
1097
|
+
/** Runs when the user turns the switch on or off. */
|
|
1098
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1099
|
+
/** The value submitted while the switch is on. */
|
|
1100
|
+
value?: string;
|
|
880
1101
|
size?: SwitchSize;
|
|
881
1102
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
882
1103
|
|
|
@@ -930,25 +1151,31 @@ declare const AnchorItem: react.ForwardRefExoticComponent<Omit<AnchorHTMLAttribu
|
|
|
930
1151
|
/** Figma Components → Basic Input → Segmentator */
|
|
931
1152
|
type SegmentatorMode = "nested" | "tiled";
|
|
932
1153
|
type SegmentatorDirection = "horizontal" | "vertical";
|
|
933
|
-
|
|
1154
|
+
/** Figma `Style` — themed highlight vs neutral normal style */
|
|
1155
|
+
type SegmentatorAppearance = "themed" | "normal";
|
|
1156
|
+
type SegmentatorGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
|
|
934
1157
|
value?: string;
|
|
935
1158
|
defaultValue?: string;
|
|
936
1159
|
onValueChange?: (value: string) => void;
|
|
937
1160
|
mode?: SegmentatorMode;
|
|
938
1161
|
/** Figma `direction` — horizontal (default) or vertical stack. */
|
|
939
1162
|
direction?: SegmentatorDirection;
|
|
1163
|
+
/** Figma `Style` — themed highlight (default) or neutral normal style. */
|
|
1164
|
+
appearance?: SegmentatorAppearance;
|
|
940
1165
|
allRound?: boolean;
|
|
941
1166
|
/** When true, the group fills its container and items split the main axis equally. */
|
|
942
1167
|
equalWidth?: boolean;
|
|
943
1168
|
disabled?: boolean;
|
|
944
1169
|
};
|
|
945
|
-
declare const SegmentatorGroup: react.ForwardRefExoticComponent<Omit<
|
|
1170
|
+
declare const SegmentatorGroup: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
|
|
946
1171
|
value?: string;
|
|
947
1172
|
defaultValue?: string;
|
|
948
1173
|
onValueChange?: (value: string) => void;
|
|
949
1174
|
mode?: SegmentatorMode;
|
|
950
1175
|
/** Figma `direction` — horizontal (default) or vertical stack. */
|
|
951
1176
|
direction?: SegmentatorDirection;
|
|
1177
|
+
/** Figma `Style` — themed highlight (default) or neutral normal style. */
|
|
1178
|
+
appearance?: SegmentatorAppearance;
|
|
952
1179
|
allRound?: boolean;
|
|
953
1180
|
/** When true, the group fills its container and items split the main axis equally. */
|
|
954
1181
|
equalWidth?: boolean;
|
|
@@ -968,11 +1195,11 @@ declare const SegmentatorItem: react.ForwardRefExoticComponent<Omit<ButtonHTMLAt
|
|
|
968
1195
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
969
1196
|
|
|
970
1197
|
/** Figma Components → System Composition → Typography (128:85) */
|
|
971
|
-
type TypographyLevel = "display" | "headline1" | "headline2" | "title" | "subtitle" | "text" | "caption";
|
|
1198
|
+
type TypographyLevel = "display" | "headline1" | "headline2" | "title" | "subtitle" | "text" | "caption" | "footnote";
|
|
972
1199
|
type TypographyContent = "text" | "number";
|
|
973
1200
|
type TypographyTone = "default" | "white";
|
|
974
1201
|
declare const typographyVariants: (props?: ({
|
|
975
|
-
level?: "
|
|
1202
|
+
level?: "title" | "caption" | "text" | "display" | "headline1" | "headline2" | "subtitle" | "footnote" | null | undefined;
|
|
976
1203
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
977
1204
|
type TypographyProps = HTMLAttributes<HTMLElement> & VariantProps<typeof typographyVariants> & {
|
|
978
1205
|
/** Figma `Content` — text vs numeric styling */
|
|
@@ -983,7 +1210,7 @@ type TypographyProps = HTMLAttributes<HTMLElement> & VariantProps<typeof typogra
|
|
|
983
1210
|
as?: "p" | "span" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label";
|
|
984
1211
|
};
|
|
985
1212
|
declare const Typography: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
986
|
-
level?: "
|
|
1213
|
+
level?: "title" | "caption" | "text" | "display" | "headline1" | "headline2" | "subtitle" | "footnote" | null | undefined;
|
|
987
1214
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
988
1215
|
/** Figma `Content` — text vs numeric styling */
|
|
989
1216
|
content?: TypographyContent;
|
|
@@ -1128,7 +1355,7 @@ type ColorPickerProps = UseColorPickerStateOptions & {
|
|
|
1128
1355
|
onOpenChange?: (open: boolean) => void;
|
|
1129
1356
|
};
|
|
1130
1357
|
declare function ColorPicker({ children, className, disabled, presets, onPresetsChange, maxPresets, value, defaultValue, onChange, format, defaultFormat, onFormatChange, open: controlledOpen, defaultOpen, onOpenChange, }: ColorPickerProps): react.JSX.Element;
|
|
1131
|
-
type ColorPickerTriggerProps = ComponentPropsWithoutRef<
|
|
1358
|
+
type ColorPickerTriggerProps = Omit<ComponentPropsWithoutRef<"button">, "value"> & {
|
|
1132
1359
|
size?: "regular" | "big";
|
|
1133
1360
|
allRound?: boolean;
|
|
1134
1361
|
placeholder?: string;
|
|
@@ -1136,7 +1363,7 @@ type ColorPickerTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.
|
|
|
1136
1363
|
trailingIcon?: ReactNode;
|
|
1137
1364
|
className?: string;
|
|
1138
1365
|
};
|
|
1139
|
-
declare const ColorPickerTrigger: react.ForwardRefExoticComponent<Omit<
|
|
1366
|
+
declare const ColorPickerTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
1140
1367
|
size?: "regular" | "big";
|
|
1141
1368
|
allRound?: boolean;
|
|
1142
1369
|
placeholder?: string;
|
|
@@ -1144,13 +1371,57 @@ declare const ColorPickerTrigger: react.ForwardRefExoticComponent<Omit<PopoverPr
|
|
|
1144
1371
|
trailingIcon?: ReactNode;
|
|
1145
1372
|
className?: string;
|
|
1146
1373
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1147
|
-
type ColorPickerContentProps = ComponentPropsWithoutRef<
|
|
1374
|
+
type ColorPickerContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
1148
1375
|
showEyedropper?: boolean;
|
|
1149
1376
|
showPresets?: boolean;
|
|
1150
|
-
|
|
1151
|
-
|
|
1377
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1378
|
+
align?: "start" | "center" | "end";
|
|
1379
|
+
sideOffset?: number;
|
|
1380
|
+
alignOffset?: number;
|
|
1381
|
+
collisionPadding?: number;
|
|
1382
|
+
arrowPadding?: number;
|
|
1383
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1384
|
+
onInteractOutside?: (event: Event) => void;
|
|
1385
|
+
/** Kept for API compatibility; focus-out closes are already suppressed. */
|
|
1386
|
+
onFocusOutside?: (event: Event) => void;
|
|
1387
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1388
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1389
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
1390
|
+
forceMount?: boolean;
|
|
1391
|
+
asChild?: boolean;
|
|
1392
|
+
avoidCollisions?: boolean;
|
|
1393
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1394
|
+
sticky?: "partial" | "always";
|
|
1395
|
+
hideWhenDetached?: boolean;
|
|
1396
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1397
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1398
|
+
prioritizePosition?: boolean;
|
|
1399
|
+
};
|
|
1400
|
+
declare const ColorPickerContent: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1152
1401
|
showEyedropper?: boolean;
|
|
1153
1402
|
showPresets?: boolean;
|
|
1403
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1404
|
+
align?: "start" | "center" | "end";
|
|
1405
|
+
sideOffset?: number;
|
|
1406
|
+
alignOffset?: number;
|
|
1407
|
+
collisionPadding?: number;
|
|
1408
|
+
arrowPadding?: number;
|
|
1409
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1410
|
+
onInteractOutside?: (event: Event) => void;
|
|
1411
|
+
/** Kept for API compatibility; focus-out closes are already suppressed. */
|
|
1412
|
+
onFocusOutside?: (event: Event) => void;
|
|
1413
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1414
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1415
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
1416
|
+
forceMount?: boolean;
|
|
1417
|
+
asChild?: boolean;
|
|
1418
|
+
avoidCollisions?: boolean;
|
|
1419
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1420
|
+
sticky?: "partial" | "always";
|
|
1421
|
+
hideWhenDetached?: boolean;
|
|
1422
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1423
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1424
|
+
prioritizePosition?: boolean;
|
|
1154
1425
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1155
1426
|
|
|
1156
1427
|
type ColorPickerPanelProps = UseColorPickerStateOptions & {
|
|
@@ -1249,7 +1520,7 @@ type CascaderProps = {
|
|
|
1249
1520
|
* and Escape must still dismiss on the first interaction.
|
|
1250
1521
|
*/
|
|
1251
1522
|
declare function Cascader({ children, options, value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, disabled, size, changeOnSelect, className, }: CascaderProps): react.JSX.Element;
|
|
1252
|
-
type CascaderTriggerProps = ComponentPropsWithoutRef<
|
|
1523
|
+
type CascaderTriggerProps = Omit<ComponentPropsWithoutRef<"button">, "value"> & {
|
|
1253
1524
|
size?: CascaderSize;
|
|
1254
1525
|
allRound?: boolean;
|
|
1255
1526
|
leftIcon?: ReactNode;
|
|
@@ -1262,7 +1533,7 @@ type CascaderTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Tri
|
|
|
1262
1533
|
separator?: string;
|
|
1263
1534
|
className?: string;
|
|
1264
1535
|
};
|
|
1265
|
-
declare const CascaderTrigger: react.ForwardRefExoticComponent<Omit<
|
|
1536
|
+
declare const CascaderTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
1266
1537
|
size?: CascaderSize;
|
|
1267
1538
|
allRound?: boolean;
|
|
1268
1539
|
leftIcon?: ReactNode;
|
|
@@ -1275,13 +1546,57 @@ declare const CascaderTrigger: react.ForwardRefExoticComponent<Omit<PopoverPrimi
|
|
|
1275
1546
|
separator?: string;
|
|
1276
1547
|
className?: string;
|
|
1277
1548
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1278
|
-
type CascaderContentProps = ComponentPropsWithoutRef<
|
|
1549
|
+
type CascaderContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
1279
1550
|
portalled?: boolean;
|
|
1280
1551
|
className?: string;
|
|
1281
|
-
|
|
1282
|
-
|
|
1552
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1553
|
+
align?: "start" | "center" | "end";
|
|
1554
|
+
sideOffset?: number;
|
|
1555
|
+
alignOffset?: number;
|
|
1556
|
+
collisionPadding?: number;
|
|
1557
|
+
arrowPadding?: number;
|
|
1558
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1559
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1560
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1561
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
1562
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1563
|
+
onFocusOutside?: (event: Event) => void;
|
|
1564
|
+
onInteractOutside?: (event: Event) => void;
|
|
1565
|
+
forceMount?: boolean;
|
|
1566
|
+
asChild?: boolean;
|
|
1567
|
+
avoidCollisions?: boolean;
|
|
1568
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1569
|
+
sticky?: "partial" | "always";
|
|
1570
|
+
hideWhenDetached?: boolean;
|
|
1571
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1572
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1573
|
+
prioritizePosition?: boolean;
|
|
1574
|
+
};
|
|
1575
|
+
declare const CascaderContent: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1283
1576
|
portalled?: boolean;
|
|
1284
1577
|
className?: string;
|
|
1578
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1579
|
+
align?: "start" | "center" | "end";
|
|
1580
|
+
sideOffset?: number;
|
|
1581
|
+
alignOffset?: number;
|
|
1582
|
+
collisionPadding?: number;
|
|
1583
|
+
arrowPadding?: number;
|
|
1584
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1585
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1586
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1587
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
1588
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1589
|
+
onFocusOutside?: (event: Event) => void;
|
|
1590
|
+
onInteractOutside?: (event: Event) => void;
|
|
1591
|
+
forceMount?: boolean;
|
|
1592
|
+
asChild?: boolean;
|
|
1593
|
+
avoidCollisions?: boolean;
|
|
1594
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1595
|
+
sticky?: "partial" | "always";
|
|
1596
|
+
hideWhenDetached?: boolean;
|
|
1597
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1598
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1599
|
+
prioritizePosition?: boolean;
|
|
1285
1600
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1286
1601
|
type CascaderMenuProps = {
|
|
1287
1602
|
children?: ReactNode;
|
|
@@ -1314,11 +1629,13 @@ type CascaderItemGroupProps = {
|
|
|
1314
1629
|
declare function CascaderItemGroup({ label, showDivider, children, className, }: CascaderItemGroupProps): react.JSX.Element;
|
|
1315
1630
|
type CascaderSearchProps = InputProps;
|
|
1316
1631
|
/** Search presentation; the caller owns filtering and empty results. */
|
|
1317
|
-
declare const CascaderSearch: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size"> & class_variance_authority.VariantProps<(props?: ({
|
|
1632
|
+
declare const CascaderSearch: react.ForwardRefExoticComponent<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
1318
1633
|
fullWidth?: boolean | null | undefined;
|
|
1319
|
-
|
|
1634
|
+
appearance?: "default" | "outline" | "no-background" | null | undefined;
|
|
1635
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "appearance"> & {
|
|
1320
1636
|
size?: InputSize;
|
|
1321
1637
|
allRound?: boolean;
|
|
1638
|
+
appearance?: InputAppearance;
|
|
1322
1639
|
leftIcon?: ReactNode;
|
|
1323
1640
|
rightIcon?: ReactNode;
|
|
1324
1641
|
leftBadge?: ReactNode;
|
|
@@ -1438,7 +1755,7 @@ type DatePickerTriggerProps = Omit<InputHTMLAttributes<HTMLInputElement>, "value
|
|
|
1438
1755
|
/** When false, shows a read-only value instead of an editable input. Default true. */
|
|
1439
1756
|
editable?: boolean;
|
|
1440
1757
|
};
|
|
1441
|
-
declare const DatePickerTrigger: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
1758
|
+
declare const DatePickerTrigger: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "onChange"> & {
|
|
1442
1759
|
size?: DatePickerSize;
|
|
1443
1760
|
allRound?: boolean;
|
|
1444
1761
|
leftIcon?: ReactNode;
|
|
@@ -1452,11 +1769,55 @@ declare const DatePickerTrigger: react.ForwardRefExoticComponent<Omit<InputHTMLA
|
|
|
1452
1769
|
/** When false, shows a read-only value instead of an editable input. Default true. */
|
|
1453
1770
|
editable?: boolean;
|
|
1454
1771
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1455
|
-
type DatePickerContentProps = ComponentPropsWithoutRef<
|
|
1772
|
+
type DatePickerContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
1456
1773
|
portalled?: boolean;
|
|
1457
|
-
|
|
1458
|
-
|
|
1774
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1775
|
+
align?: "start" | "center" | "end";
|
|
1776
|
+
sideOffset?: number;
|
|
1777
|
+
alignOffset?: number;
|
|
1778
|
+
collisionPadding?: number;
|
|
1779
|
+
arrowPadding?: number;
|
|
1780
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1781
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1782
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1783
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
1784
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1785
|
+
onFocusOutside?: (event: Event) => void;
|
|
1786
|
+
onInteractOutside?: (event: Event) => void;
|
|
1787
|
+
forceMount?: boolean;
|
|
1788
|
+
asChild?: boolean;
|
|
1789
|
+
avoidCollisions?: boolean;
|
|
1790
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1791
|
+
sticky?: "partial" | "always";
|
|
1792
|
+
hideWhenDetached?: boolean;
|
|
1793
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1794
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1795
|
+
prioritizePosition?: boolean;
|
|
1796
|
+
};
|
|
1797
|
+
declare const DatePickerContent: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1459
1798
|
portalled?: boolean;
|
|
1799
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1800
|
+
align?: "start" | "center" | "end";
|
|
1801
|
+
sideOffset?: number;
|
|
1802
|
+
alignOffset?: number;
|
|
1803
|
+
collisionPadding?: number;
|
|
1804
|
+
arrowPadding?: number;
|
|
1805
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1806
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1807
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1808
|
+
onEscapeKeyDown?: (event: KeyboardEvent$1) => void;
|
|
1809
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1810
|
+
onFocusOutside?: (event: Event) => void;
|
|
1811
|
+
onInteractOutside?: (event: Event) => void;
|
|
1812
|
+
forceMount?: boolean;
|
|
1813
|
+
asChild?: boolean;
|
|
1814
|
+
avoidCollisions?: boolean;
|
|
1815
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1816
|
+
sticky?: "partial" | "always";
|
|
1817
|
+
hideWhenDetached?: boolean;
|
|
1818
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1819
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1820
|
+
prioritizePosition?: boolean;
|
|
1460
1821
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1461
1822
|
type DatePickerCalendarProps = {
|
|
1462
1823
|
className?: string;
|
|
@@ -1526,11 +1887,55 @@ declare const TimePickerTrigger: react.ForwardRefExoticComponent<Omit<ButtonHTML
|
|
|
1526
1887
|
error?: boolean;
|
|
1527
1888
|
displayValue?: string | null;
|
|
1528
1889
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1529
|
-
type TimePickerContentProps = ComponentPropsWithoutRef<
|
|
1890
|
+
type TimePickerContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
1530
1891
|
portalled?: boolean;
|
|
1531
|
-
|
|
1532
|
-
|
|
1892
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1893
|
+
align?: "start" | "center" | "end";
|
|
1894
|
+
sideOffset?: number;
|
|
1895
|
+
alignOffset?: number;
|
|
1896
|
+
collisionPadding?: number;
|
|
1897
|
+
arrowPadding?: number;
|
|
1898
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1899
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1900
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1901
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
1902
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1903
|
+
onFocusOutside?: (event: Event) => void;
|
|
1904
|
+
onInteractOutside?: (event: Event) => void;
|
|
1905
|
+
forceMount?: boolean;
|
|
1906
|
+
asChild?: boolean;
|
|
1907
|
+
avoidCollisions?: boolean;
|
|
1908
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1909
|
+
sticky?: "partial" | "always";
|
|
1910
|
+
hideWhenDetached?: boolean;
|
|
1911
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1912
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1913
|
+
prioritizePosition?: boolean;
|
|
1914
|
+
};
|
|
1915
|
+
declare const TimePickerContent: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1533
1916
|
portalled?: boolean;
|
|
1917
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1918
|
+
align?: "start" | "center" | "end";
|
|
1919
|
+
sideOffset?: number;
|
|
1920
|
+
alignOffset?: number;
|
|
1921
|
+
collisionPadding?: number;
|
|
1922
|
+
arrowPadding?: number;
|
|
1923
|
+
/** Kept for API compatibility with the former Radix content. */
|
|
1924
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
1925
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
1926
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
1927
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
1928
|
+
onFocusOutside?: (event: Event) => void;
|
|
1929
|
+
onInteractOutside?: (event: Event) => void;
|
|
1930
|
+
forceMount?: boolean;
|
|
1931
|
+
asChild?: boolean;
|
|
1932
|
+
avoidCollisions?: boolean;
|
|
1933
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1934
|
+
sticky?: "partial" | "always";
|
|
1935
|
+
hideWhenDetached?: boolean;
|
|
1936
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1937
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
1938
|
+
prioritizePosition?: boolean;
|
|
1534
1939
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1535
1940
|
type TimePickerPanelProps = {
|
|
1536
1941
|
className?: string;
|
|
@@ -1562,23 +1967,41 @@ type TimePickerWheelsProps = {
|
|
|
1562
1967
|
};
|
|
1563
1968
|
declare function TimePickerWheels({ value, onChange, className, showSeconds, }: TimePickerWheelsProps): react.JSX.Element;
|
|
1564
1969
|
|
|
1565
|
-
type
|
|
1970
|
+
type PopoverChangeDetails = Parameters<NonNullable<PopoverOptions["onOpenChange"]>>[1];
|
|
1971
|
+
type PopoverProps = Omit<PopoverOptions, "onOpenChange"> & {
|
|
1972
|
+
children?: ReactNode;
|
|
1973
|
+
/**
|
|
1974
|
+
* Radix-compatible callback. `@ui-sdk/react` also passes change details;
|
|
1975
|
+
* call `details.cancel()` to refuse the change (for example a suppressed
|
|
1976
|
+
* blur-initiated close).
|
|
1977
|
+
*/
|
|
1978
|
+
onOpenChange?: (open: boolean, details: PopoverChangeDetails) => void;
|
|
1979
|
+
};
|
|
1566
1980
|
/**
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
* from dismissing (`onFocusOutside` is default-prevented by Radix), so a window
|
|
1570
|
-
* blur never closes it — no extra bookkeeping needed, and it keeps Escape a
|
|
1571
|
-
* single, predictable dismiss.
|
|
1981
|
+
* Controlled/uncontrolled wrapper around `@ui-sdk/react` Popover, plus the
|
|
1982
|
+
* Spiral `PopoverAnchor` registration that the SDK expresses as `anchor`.
|
|
1572
1983
|
*/
|
|
1573
|
-
declare function Popover({
|
|
1574
|
-
declare const PopoverTrigger: react.ForwardRefExoticComponent<
|
|
1575
|
-
|
|
1984
|
+
declare function Popover({ modal, open, onOpenChange, children, ...props }: PopoverProps): react.JSX.Element;
|
|
1985
|
+
declare const PopoverTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
1986
|
+
asChild?: boolean;
|
|
1987
|
+
controller?: PopoverController<any>;
|
|
1988
|
+
disabled?: boolean;
|
|
1989
|
+
focusableWhenDisabled?: boolean;
|
|
1990
|
+
payload?: unknown;
|
|
1991
|
+
shortcut?: string;
|
|
1992
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1993
|
+
declare const PopoverAnchor: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1994
|
+
asChild?: boolean;
|
|
1995
|
+
children?: ReactNode;
|
|
1996
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
1576
1997
|
type PopoverAppearance = "default" | "tooltip" | "primary";
|
|
1577
1998
|
type PopoverContentLevel = "caption" | "text";
|
|
1999
|
+
type PopoverSide = "top" | "right" | "bottom" | "left";
|
|
2000
|
+
type PopoverAlign = "start" | "center" | "end";
|
|
1578
2001
|
type PopoverIconProps = ComponentPropsWithoutRef<"span">;
|
|
1579
2002
|
/** Decorative icon placed in the Popover content slot. */
|
|
1580
2003
|
declare const PopoverIcon: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
1581
|
-
type PopoverContentProps = ComponentPropsWithoutRef<
|
|
2004
|
+
type PopoverContentProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & {
|
|
1582
2005
|
/** Render without Portal — use inside nested overlays. */
|
|
1583
2006
|
portalled?: boolean;
|
|
1584
2007
|
/** Show a caret arrow pointing at the trigger (Figma with-arrow variant). */
|
|
@@ -1597,8 +2020,37 @@ type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Cont
|
|
|
1597
2020
|
* Defaults to `text`, matching the shared Tooltip surface.
|
|
1598
2021
|
*/
|
|
1599
2022
|
level?: PopoverContentLevel;
|
|
1600
|
-
|
|
1601
|
-
|
|
2023
|
+
side?: PopoverSide;
|
|
2024
|
+
align?: PopoverAlign;
|
|
2025
|
+
sideOffset?: number;
|
|
2026
|
+
alignOffset?: number;
|
|
2027
|
+
collisionPadding?: number;
|
|
2028
|
+
arrowPadding?: number;
|
|
2029
|
+
anchor?: HTMLElement | string | null;
|
|
2030
|
+
container?: Element | DocumentFragment | null;
|
|
2031
|
+
initialFocus?: "auto" | "content" | "none" | (string & {}) | HTMLElement | (() => HTMLElement | null | undefined);
|
|
2032
|
+
finalFocus?: "trigger" | "none" | (string & {}) | HTMLElement | (() => HTMLElement | null | undefined);
|
|
2033
|
+
keepMounted?: boolean;
|
|
2034
|
+
inline?: boolean;
|
|
2035
|
+
children?: ReactNode;
|
|
2036
|
+
asChild?: boolean;
|
|
2037
|
+
forceMount?: boolean;
|
|
2038
|
+
avoidCollisions?: boolean;
|
|
2039
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
2040
|
+
sticky?: "partial" | "always";
|
|
2041
|
+
hideWhenDetached?: boolean;
|
|
2042
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
2043
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
2044
|
+
prioritizePosition?: boolean;
|
|
2045
|
+
reference?: unknown;
|
|
2046
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2047
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2048
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2049
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2050
|
+
onFocusOutside?: (event: Event) => void;
|
|
2051
|
+
onInteractOutside?: (event: Event) => void;
|
|
2052
|
+
};
|
|
2053
|
+
declare const PopoverContent: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
1602
2054
|
/** Render without Portal — use inside nested overlays. */
|
|
1603
2055
|
portalled?: boolean;
|
|
1604
2056
|
/** Show a caret arrow pointing at the trigger (Figma with-arrow variant). */
|
|
@@ -1617,6 +2069,35 @@ declare const PopoverContent: react.ForwardRefExoticComponent<Omit<PopoverPrimit
|
|
|
1617
2069
|
* Defaults to `text`, matching the shared Tooltip surface.
|
|
1618
2070
|
*/
|
|
1619
2071
|
level?: PopoverContentLevel;
|
|
2072
|
+
side?: PopoverSide;
|
|
2073
|
+
align?: PopoverAlign;
|
|
2074
|
+
sideOffset?: number;
|
|
2075
|
+
alignOffset?: number;
|
|
2076
|
+
collisionPadding?: number;
|
|
2077
|
+
arrowPadding?: number;
|
|
2078
|
+
anchor?: HTMLElement | string | null;
|
|
2079
|
+
container?: Element | DocumentFragment | null;
|
|
2080
|
+
initialFocus?: "auto" | "content" | "none" | (string & {}) | HTMLElement | (() => HTMLElement | null | undefined);
|
|
2081
|
+
finalFocus?: "trigger" | "none" | (string & {}) | HTMLElement | (() => HTMLElement | null | undefined);
|
|
2082
|
+
keepMounted?: boolean;
|
|
2083
|
+
inline?: boolean;
|
|
2084
|
+
children?: ReactNode;
|
|
2085
|
+
asChild?: boolean;
|
|
2086
|
+
forceMount?: boolean;
|
|
2087
|
+
avoidCollisions?: boolean;
|
|
2088
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
2089
|
+
sticky?: "partial" | "always";
|
|
2090
|
+
hideWhenDetached?: boolean;
|
|
2091
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
2092
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
2093
|
+
prioritizePosition?: boolean;
|
|
2094
|
+
reference?: unknown;
|
|
2095
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2096
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2097
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2098
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2099
|
+
onFocusOutside?: (event: Event) => void;
|
|
2100
|
+
onInteractOutside?: (event: Event) => void;
|
|
1620
2101
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1621
2102
|
|
|
1622
2103
|
interface HoverPopoverProps {
|
|
@@ -1648,20 +2129,12 @@ interface HoverPopoverProps {
|
|
|
1648
2129
|
contentClassName?: string;
|
|
1649
2130
|
}
|
|
1650
2131
|
/**
|
|
1651
|
-
* Popover that opens on hover (desktop) /
|
|
2132
|
+
* Popover that opens on hover (desktop) / press (touch).
|
|
1652
2133
|
*
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
1656
|
-
*
|
|
1657
|
-
* the popover, and Escape closes it on the *first* press with focus returned
|
|
1658
|
-
* to the trigger. Hover/click opens keep focus on the trigger; keyboard opens
|
|
1659
|
-
* move focus into the content. Closes on `mouseleave`/`blur` after
|
|
1660
|
-
* `closeDelay`. The delay keeps the surface open while the cursor travels the
|
|
1661
|
-
* gap into the content, and cancels the close when the cursor/focus
|
|
1662
|
-
* re-enters the content.
|
|
1663
|
-
* - Touch (`pointer: coarse`): degrades to a normal Popover — `PopoverTrigger`
|
|
1664
|
-
* tap to toggle, outside tap / Escape to dismiss. No hover exists on touch.
|
|
2134
|
+
* `@ui-sdk/react` Popover handles hover opening itself (`openOnHover`, `delay`,
|
|
2135
|
+
* `closeDelay`), including crossing the gap into the content, keyboard focus
|
|
2136
|
+
* semantics, and first-press Escape. Touch keeps the normal press-to-toggle
|
|
2137
|
+
* behavior because hover does not exist there.
|
|
1665
2138
|
*
|
|
1666
2139
|
* Use this for rich / interactive previews. For a non-essential text hint,
|
|
1667
2140
|
* prefer `Tooltip` / `ResponsiveTooltip`.
|
|
@@ -1671,33 +2144,97 @@ interface HoverPopoverProps {
|
|
|
1671
2144
|
* <Button>See price</Button>
|
|
1672
2145
|
* </HoverPopover>
|
|
1673
2146
|
*/
|
|
1674
|
-
declare function HoverPopover({ content, children, side, align, sideOffset, collisionPadding, showArrow, openDelay, closeDelay, open
|
|
2147
|
+
declare function HoverPopover({ content, children, side, align, sideOffset, collisionPadding, showArrow, openDelay, closeDelay, open, defaultOpen, onOpenChange, contentClassName, }: HoverPopoverProps): react.JSX.Element;
|
|
1675
2148
|
|
|
1676
2149
|
/** Figma Components → Information Display → Modal (553:58593) */
|
|
1677
2150
|
type ModalSize = "default" | "large";
|
|
1678
2151
|
declare const modalContentVariants: (props?: ({
|
|
1679
2152
|
size?: "default" | "large" | null | undefined;
|
|
1680
2153
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1681
|
-
type ModalProps =
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
declare const
|
|
1688
|
-
|
|
2154
|
+
type ModalProps = Omit<DialogOptions, "onOpenChange"> & {
|
|
2155
|
+
children?: ReactNode;
|
|
2156
|
+
/** Radix-compatible callback: `@ui-sdk/react` also passes change details. */
|
|
2157
|
+
onOpenChange?: (open: boolean) => void;
|
|
2158
|
+
};
|
|
2159
|
+
declare function Modal({ open, onOpenChange, children, ...props }: ModalProps): react.JSX.Element;
|
|
2160
|
+
declare const ModalTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
2161
|
+
asChild?: boolean;
|
|
2162
|
+
controller?: DialogController<any, any>;
|
|
2163
|
+
disabled?: boolean;
|
|
2164
|
+
focusableWhenDisabled?: boolean;
|
|
2165
|
+
payload?: unknown;
|
|
2166
|
+
shortcut?: string;
|
|
2167
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2168
|
+
type ModalPortalProps = {
|
|
2169
|
+
children?: ReactNode;
|
|
2170
|
+
container?: Element | DocumentFragment | null;
|
|
2171
|
+
forceMount?: boolean;
|
|
2172
|
+
};
|
|
2173
|
+
/**
|
|
2174
|
+
* Kept for API compatibility. `@ui-sdk/react` places dialog content in the top
|
|
2175
|
+
* layer itself, so a separate portal part is no longer needed.
|
|
2176
|
+
*/
|
|
2177
|
+
declare function ModalPortal({ children }: ModalPortalProps): react.JSX.Element;
|
|
2178
|
+
declare const ModalClose: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value" | "action"> & {
|
|
2179
|
+
asChild?: boolean;
|
|
2180
|
+
value?: string;
|
|
2181
|
+
action?: DialogCloseProps["action"];
|
|
2182
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2183
|
+
type ModalOverlayProps = ComponentPropsWithoutRef<"div"> & {
|
|
2184
|
+
asChild?: boolean;
|
|
2185
|
+
forceMount?: boolean;
|
|
2186
|
+
};
|
|
2187
|
+
declare const ModalOverlay: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2188
|
+
asChild?: boolean;
|
|
2189
|
+
forceMount?: boolean;
|
|
2190
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2191
|
+
type ModalContentProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & VariantProps<typeof modalContentVariants> & {
|
|
1689
2192
|
/** Render without Portal — use inside nested overlays. */
|
|
1690
2193
|
portalled?: boolean;
|
|
1691
2194
|
/** Show the default overlay scrim. */
|
|
1692
2195
|
showOverlay?: boolean;
|
|
2196
|
+
/** Kept for API compatibility. */
|
|
2197
|
+
asChild?: boolean;
|
|
2198
|
+
/** Kept for API compatibility; maps to `keepMounted`. */
|
|
2199
|
+
forceMount?: boolean;
|
|
2200
|
+
initialFocus?: DialogInitialFocus;
|
|
2201
|
+
finalFocus?: DialogFinalFocus;
|
|
2202
|
+
keepMounted?: boolean;
|
|
2203
|
+
inline?: boolean;
|
|
2204
|
+
container?: Element | DocumentFragment | null;
|
|
2205
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2206
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2207
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2208
|
+
onEscapeKeyDown?: (event: Event) => void;
|
|
2209
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2210
|
+
onFocusOutside?: (event: Event) => void;
|
|
2211
|
+
onInteractOutside?: (event: Event) => void;
|
|
2212
|
+
children?: ReactNode;
|
|
1693
2213
|
};
|
|
1694
|
-
declare const ModalContent: react.ForwardRefExoticComponent<Omit<
|
|
2214
|
+
declare const ModalContent: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & VariantProps<(props?: ({
|
|
1695
2215
|
size?: "default" | "large" | null | undefined;
|
|
1696
2216
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
1697
2217
|
/** Render without Portal — use inside nested overlays. */
|
|
1698
2218
|
portalled?: boolean;
|
|
1699
2219
|
/** Show the default overlay scrim. */
|
|
1700
2220
|
showOverlay?: boolean;
|
|
2221
|
+
/** Kept for API compatibility. */
|
|
2222
|
+
asChild?: boolean;
|
|
2223
|
+
/** Kept for API compatibility; maps to `keepMounted`. */
|
|
2224
|
+
forceMount?: boolean;
|
|
2225
|
+
initialFocus?: DialogInitialFocus;
|
|
2226
|
+
finalFocus?: DialogFinalFocus;
|
|
2227
|
+
keepMounted?: boolean;
|
|
2228
|
+
inline?: boolean;
|
|
2229
|
+
container?: Element | DocumentFragment | null;
|
|
2230
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2231
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2232
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2233
|
+
onEscapeKeyDown?: (event: Event) => void;
|
|
2234
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2235
|
+
onFocusOutside?: (event: Event) => void;
|
|
2236
|
+
onInteractOutside?: (event: Event) => void;
|
|
2237
|
+
children?: ReactNode;
|
|
1701
2238
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1702
2239
|
type ModalHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
1703
2240
|
/** Optional leading status icon */
|
|
@@ -1717,10 +2254,18 @@ declare const ModalHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDi
|
|
|
1717
2254
|
showClose?: boolean;
|
|
1718
2255
|
closeLabel?: string;
|
|
1719
2256
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1720
|
-
type ModalTitleProps = ComponentPropsWithoutRef<
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
declare const
|
|
2257
|
+
type ModalTitleProps = ComponentPropsWithoutRef<"h2"> & {
|
|
2258
|
+
asChild?: boolean;
|
|
2259
|
+
};
|
|
2260
|
+
declare const ModalTitle: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
2261
|
+
asChild?: boolean;
|
|
2262
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
2263
|
+
type ModalDescriptionProps = ComponentPropsWithoutRef<"p"> & {
|
|
2264
|
+
asChild?: boolean;
|
|
2265
|
+
};
|
|
2266
|
+
declare const ModalDescription: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
2267
|
+
asChild?: boolean;
|
|
2268
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
1724
2269
|
/** Convenience wrapper — Figma header Typeface (text + caption). */
|
|
1725
2270
|
type ModalHeaderTextProps = Omit<ModalHeaderProps, "children"> & {
|
|
1726
2271
|
title: ReactNode;
|
|
@@ -1747,26 +2292,90 @@ type DrawerPosition = "left" | "right" | "top" | "bottom";
|
|
|
1747
2292
|
declare const drawerContentVariants: (props?: ({
|
|
1748
2293
|
position?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
1749
2294
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1750
|
-
type DrawerProps =
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
declare const
|
|
1757
|
-
|
|
2295
|
+
type DrawerProps = Omit<DialogOptions, "onOpenChange"> & {
|
|
2296
|
+
children?: ReactNode;
|
|
2297
|
+
/** Radix-compatible callback: `@ui-sdk/react` also passes change details. */
|
|
2298
|
+
onOpenChange?: (open: boolean) => void;
|
|
2299
|
+
};
|
|
2300
|
+
declare function Drawer({ open, onOpenChange, children, ...props }: DrawerProps): react.JSX.Element;
|
|
2301
|
+
declare const DrawerTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
2302
|
+
asChild?: boolean;
|
|
2303
|
+
controller?: DialogController<any, any>;
|
|
2304
|
+
disabled?: boolean;
|
|
2305
|
+
focusableWhenDisabled?: boolean;
|
|
2306
|
+
payload?: unknown;
|
|
2307
|
+
shortcut?: string;
|
|
2308
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2309
|
+
type DrawerPortalProps = {
|
|
2310
|
+
children?: ReactNode;
|
|
2311
|
+
container?: Element | DocumentFragment | null;
|
|
2312
|
+
forceMount?: boolean;
|
|
2313
|
+
};
|
|
2314
|
+
/**
|
|
2315
|
+
* Kept for API compatibility. `@ui-sdk/react` places dialog content in the top
|
|
2316
|
+
* layer itself, so a separate portal part is no longer needed.
|
|
2317
|
+
*/
|
|
2318
|
+
declare function DrawerPortal({ children }: DrawerPortalProps): react.JSX.Element;
|
|
2319
|
+
declare const DrawerClose: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value" | "action"> & {
|
|
2320
|
+
asChild?: boolean;
|
|
2321
|
+
value?: string;
|
|
2322
|
+
action?: DialogCloseProps["action"];
|
|
2323
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2324
|
+
type DrawerOverlayProps = ComponentPropsWithoutRef<"div"> & {
|
|
2325
|
+
asChild?: boolean;
|
|
2326
|
+
forceMount?: boolean;
|
|
2327
|
+
};
|
|
2328
|
+
declare const DrawerOverlay: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2329
|
+
asChild?: boolean;
|
|
2330
|
+
forceMount?: boolean;
|
|
2331
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2332
|
+
type DrawerContentProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & VariantProps<typeof drawerContentVariants> & {
|
|
1758
2333
|
/** Render without Portal — use inside nested overlays. */
|
|
1759
2334
|
portalled?: boolean;
|
|
1760
2335
|
/** Show the default overlay scrim. */
|
|
1761
2336
|
showOverlay?: boolean;
|
|
2337
|
+
/** Kept for API compatibility. */
|
|
2338
|
+
asChild?: boolean;
|
|
2339
|
+
/** Kept for API compatibility; maps to `keepMounted`. */
|
|
2340
|
+
forceMount?: boolean;
|
|
2341
|
+
initialFocus?: DialogInitialFocus;
|
|
2342
|
+
finalFocus?: DialogFinalFocus;
|
|
2343
|
+
keepMounted?: boolean;
|
|
2344
|
+
inline?: boolean;
|
|
2345
|
+
container?: Element | DocumentFragment | null;
|
|
2346
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2347
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2348
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2349
|
+
onEscapeKeyDown?: (event: Event) => void;
|
|
2350
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2351
|
+
onFocusOutside?: (event: Event) => void;
|
|
2352
|
+
onInteractOutside?: (event: Event) => void;
|
|
2353
|
+
children?: ReactNode;
|
|
1762
2354
|
};
|
|
1763
|
-
declare const DrawerContent: react.ForwardRefExoticComponent<Omit<
|
|
2355
|
+
declare const DrawerContent: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & VariantProps<(props?: ({
|
|
1764
2356
|
position?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
1765
2357
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
1766
2358
|
/** Render without Portal — use inside nested overlays. */
|
|
1767
2359
|
portalled?: boolean;
|
|
1768
2360
|
/** Show the default overlay scrim. */
|
|
1769
2361
|
showOverlay?: boolean;
|
|
2362
|
+
/** Kept for API compatibility. */
|
|
2363
|
+
asChild?: boolean;
|
|
2364
|
+
/** Kept for API compatibility; maps to `keepMounted`. */
|
|
2365
|
+
forceMount?: boolean;
|
|
2366
|
+
initialFocus?: DialogInitialFocus;
|
|
2367
|
+
finalFocus?: DialogFinalFocus;
|
|
2368
|
+
keepMounted?: boolean;
|
|
2369
|
+
inline?: boolean;
|
|
2370
|
+
container?: Element | DocumentFragment | null;
|
|
2371
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2372
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2373
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2374
|
+
onEscapeKeyDown?: (event: Event) => void;
|
|
2375
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2376
|
+
onFocusOutside?: (event: Event) => void;
|
|
2377
|
+
onInteractOutside?: (event: Event) => void;
|
|
2378
|
+
children?: ReactNode;
|
|
1770
2379
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1771
2380
|
type DrawerHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
1772
2381
|
/** Optional leading status icon */
|
|
@@ -1786,10 +2395,18 @@ declare const DrawerHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLD
|
|
|
1786
2395
|
showClose?: boolean;
|
|
1787
2396
|
closeLabel?: string;
|
|
1788
2397
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1789
|
-
type DrawerTitleProps = ComponentPropsWithoutRef<
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
declare const
|
|
2398
|
+
type DrawerTitleProps = ComponentPropsWithoutRef<"h2"> & {
|
|
2399
|
+
asChild?: boolean;
|
|
2400
|
+
};
|
|
2401
|
+
declare const DrawerTitle: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
2402
|
+
asChild?: boolean;
|
|
2403
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
2404
|
+
type DrawerDescriptionProps = ComponentPropsWithoutRef<"p"> & {
|
|
2405
|
+
asChild?: boolean;
|
|
2406
|
+
};
|
|
2407
|
+
declare const DrawerDescription: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
2408
|
+
asChild?: boolean;
|
|
2409
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
1793
2410
|
/** Convenience wrapper — Figma header Typeface (text + caption). */
|
|
1794
2411
|
type DrawerHeaderTextProps = Omit<DrawerHeaderProps, "children"> & {
|
|
1795
2412
|
title: ReactNode;
|
|
@@ -1821,41 +2438,128 @@ interface TooltipProviderProps {
|
|
|
1821
2438
|
*/
|
|
1822
2439
|
delayDuration?: number;
|
|
1823
2440
|
/**
|
|
1824
|
-
*
|
|
2441
|
+
* Kept for API compatibility. `@ui-sdk/react` skips the delay when moving
|
|
2442
|
+
* between tooltips without a provider.
|
|
1825
2443
|
*/
|
|
1826
2444
|
skipDelayDuration?: number;
|
|
1827
|
-
/**
|
|
2445
|
+
/**
|
|
2446
|
+
* Kept for API compatibility. `@ui-sdk/react` tooltip content is always
|
|
2447
|
+
* hoverable.
|
|
2448
|
+
*/
|
|
1828
2449
|
disableHoverableContent?: boolean;
|
|
1829
2450
|
}
|
|
1830
2451
|
/**
|
|
1831
|
-
* Provides shared hover
|
|
2452
|
+
* Provides a shared hover delay for nested Tooltips.
|
|
1832
2453
|
* Pass `delayDuration={0}` for instant open on hover.
|
|
1833
2454
|
*/
|
|
1834
|
-
declare function TooltipProvider({ children, delayDuration,
|
|
1835
|
-
|
|
1836
|
-
|
|
2455
|
+
declare function TooltipProvider({ children, delayDuration, }: TooltipProviderProps): react.JSX.Element;
|
|
2456
|
+
type AnchorRect = {
|
|
2457
|
+
x: number;
|
|
2458
|
+
y: number;
|
|
2459
|
+
width: number;
|
|
2460
|
+
height: number;
|
|
2461
|
+
};
|
|
2462
|
+
type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
2463
|
+
type TooltipAlign = "start" | "center" | "end";
|
|
2464
|
+
type TooltipProps = Omit<TooltipOptions, "delay"> & {
|
|
2465
|
+
children?: ReactNode;
|
|
2466
|
+
/** Radix-compatible open delay, mapped to `@ui-sdk/react` `delay`. */
|
|
2467
|
+
delayDuration?: number;
|
|
2468
|
+
/** Kept for API compatibility. */
|
|
2469
|
+
skipDelayDuration?: number;
|
|
2470
|
+
/** Kept for API compatibility. */
|
|
2471
|
+
disableHoverableContent?: boolean;
|
|
2472
|
+
/** Open delay in ms (`@ui-sdk/react` name). */
|
|
2473
|
+
delay?: number;
|
|
2474
|
+
};
|
|
2475
|
+
declare function Tooltip({ delayDuration, skipDelayDuration: _skipDelayDuration, disableHoverableContent: _disableHoverableContent, delay, open, defaultOpen, onOpenChange, children, ...props }: TooltipProps): react.JSX.Element;
|
|
2476
|
+
declare const TooltipTrigger: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "value"> & {
|
|
2477
|
+
asChild?: boolean;
|
|
2478
|
+
controller?: TooltipController<any>;
|
|
2479
|
+
payload?: unknown;
|
|
2480
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1837
2481
|
type TooltipContentLevel = "caption" | "text";
|
|
1838
|
-
type TooltipContentProps = ComponentPropsWithoutRef<
|
|
2482
|
+
type TooltipContentProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & {
|
|
2483
|
+
side?: TooltipSide;
|
|
2484
|
+
align?: TooltipAlign;
|
|
2485
|
+
sideOffset?: number;
|
|
2486
|
+
alignOffset?: number;
|
|
2487
|
+
collisionPadding?: number;
|
|
2488
|
+
arrowPadding?: number;
|
|
2489
|
+
anchor?: HTMLElement | {
|
|
2490
|
+
getBoundingClientRect: () => AnchorRect;
|
|
2491
|
+
} | {
|
|
2492
|
+
x: number;
|
|
2493
|
+
y: number;
|
|
2494
|
+
} | string | null;
|
|
2495
|
+
container?: Element | DocumentFragment | null;
|
|
2496
|
+
/** Kept for API compatibility. */
|
|
2497
|
+
asChild?: boolean;
|
|
2498
|
+
/** Kept for API compatibility. Tooltip content is always mounted. */
|
|
2499
|
+
forceMount?: boolean;
|
|
2500
|
+
avoidCollisions?: boolean;
|
|
2501
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
2502
|
+
sticky?: "partial" | "always";
|
|
2503
|
+
hideWhenDetached?: boolean;
|
|
2504
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
2505
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
2506
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2507
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2508
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2509
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2510
|
+
onFocusOutside?: (event: Event) => void;
|
|
2511
|
+
onInteractOutside?: (event: Event) => void;
|
|
1839
2512
|
/** Show a caret arrow pointing at the trigger (default true). */
|
|
1840
2513
|
showArrow?: boolean;
|
|
1841
2514
|
/**
|
|
1842
2515
|
* Typography level for the surface copy.
|
|
1843
|
-
*
|
|
2516
|
+
* Defaults to `caption`; pass `text` for larger body-sized copy.
|
|
1844
2517
|
*/
|
|
1845
2518
|
level?: TooltipContentLevel;
|
|
1846
2519
|
leadingIcon?: ReactNode;
|
|
1847
2520
|
trailingIcon?: ReactNode;
|
|
2521
|
+
children?: ReactNode;
|
|
1848
2522
|
};
|
|
1849
|
-
declare const TooltipContent: react.ForwardRefExoticComponent<Omit<
|
|
2523
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
2524
|
+
side?: TooltipSide;
|
|
2525
|
+
align?: TooltipAlign;
|
|
2526
|
+
sideOffset?: number;
|
|
2527
|
+
alignOffset?: number;
|
|
2528
|
+
collisionPadding?: number;
|
|
2529
|
+
arrowPadding?: number;
|
|
2530
|
+
anchor?: HTMLElement | {
|
|
2531
|
+
getBoundingClientRect: () => AnchorRect;
|
|
2532
|
+
} | {
|
|
2533
|
+
x: number;
|
|
2534
|
+
y: number;
|
|
2535
|
+
} | string | null;
|
|
2536
|
+
container?: Element | DocumentFragment | null;
|
|
2537
|
+
/** Kept for API compatibility. */
|
|
2538
|
+
asChild?: boolean;
|
|
2539
|
+
/** Kept for API compatibility. Tooltip content is always mounted. */
|
|
2540
|
+
forceMount?: boolean;
|
|
2541
|
+
avoidCollisions?: boolean;
|
|
2542
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
2543
|
+
sticky?: "partial" | "always";
|
|
2544
|
+
hideWhenDetached?: boolean;
|
|
2545
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
2546
|
+
onPlaced?: (element: HTMLElement) => void;
|
|
2547
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2548
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2549
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2550
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2551
|
+
onFocusOutside?: (event: Event) => void;
|
|
2552
|
+
onInteractOutside?: (event: Event) => void;
|
|
1850
2553
|
/** Show a caret arrow pointing at the trigger (default true). */
|
|
1851
2554
|
showArrow?: boolean;
|
|
1852
2555
|
/**
|
|
1853
2556
|
* Typography level for the surface copy.
|
|
1854
|
-
*
|
|
2557
|
+
* Defaults to `caption`; pass `text` for larger body-sized copy.
|
|
1855
2558
|
*/
|
|
1856
2559
|
level?: TooltipContentLevel;
|
|
1857
2560
|
leadingIcon?: ReactNode;
|
|
1858
2561
|
trailingIcon?: ReactNode;
|
|
2562
|
+
children?: ReactNode;
|
|
1859
2563
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1860
2564
|
|
|
1861
2565
|
/** Default hold duration before a touch tooltip opens. */
|
|
@@ -1878,7 +2582,7 @@ interface ResponsiveTooltipProps {
|
|
|
1878
2582
|
collisionPadding?: number;
|
|
1879
2583
|
/** Show the caret arrow pointing at the trigger. */
|
|
1880
2584
|
showArrow?: boolean;
|
|
1881
|
-
/** Typography level for the content surface (default `
|
|
2585
|
+
/** Typography level for the content surface (default `caption`). */
|
|
1882
2586
|
level?: TooltipContentLevel;
|
|
1883
2587
|
/**
|
|
1884
2588
|
* Hover open delay on desktop, in ms (ignored on touch).
|
|
@@ -1903,11 +2607,11 @@ interface ResponsiveTooltipProps {
|
|
|
1903
2607
|
/**
|
|
1904
2608
|
* Tooltip with a mobile-friendly trigger.
|
|
1905
2609
|
*
|
|
1906
|
-
*
|
|
1907
|
-
* no trigger on phones. `ResponsiveTooltip` renders the SAME
|
|
1908
|
-
* right primitive for the device:
|
|
1909
|
-
* - Desktop (`pointer: fine`):
|
|
1910
|
-
* - Touch (`pointer: coarse`):
|
|
2610
|
+
* The `@ui-sdk/react` Tooltip is hover/focus only and deliberately ignores
|
|
2611
|
+
* touch, so it has no trigger on phones. `ResponsiveTooltip` renders the SAME
|
|
2612
|
+
* content through the right primitive for the device:
|
|
2613
|
+
* - Desktop (`pointer: fine`): Tooltip — opens on hover and keyboard focus.
|
|
2614
|
+
* - Touch (`pointer: coarse`): Popover with `appearance="tooltip"` — opens on
|
|
1911
2615
|
* **long-press** (short tap still reaches the trigger’s own `onClick`), dismisses
|
|
1912
2616
|
* on outside tap / Escape, and keeps the tooltip visual skin (dark surface,
|
|
1913
2617
|
* Text typography, solid caret) so it looks identical to desktop.
|
|
@@ -1918,7 +2622,7 @@ interface ResponsiveTooltipProps {
|
|
|
1918
2622
|
* both branches.
|
|
1919
2623
|
*
|
|
1920
2624
|
* @example
|
|
1921
|
-
* <TooltipProvider> //
|
|
2625
|
+
* <TooltipProvider> // shared desktop hover-delay; Popover needs none
|
|
1922
2626
|
* <ResponsiveTooltip content="Save changes">
|
|
1923
2627
|
* <Button>Save</Button>
|
|
1924
2628
|
* </ResponsiveTooltip>
|
|
@@ -1936,7 +2640,7 @@ declare const feedbackVariants: (props?: ({
|
|
|
1936
2640
|
mode?: "default" | "primary" | null | undefined;
|
|
1937
2641
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1938
2642
|
type FeedbackProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & VariantProps<typeof feedbackVariants> & {
|
|
1939
|
-
/** Primary line —
|
|
2643
|
+
/** Primary line — medium on default size */
|
|
1940
2644
|
title: ReactNode;
|
|
1941
2645
|
/** Secondary caption line — default size only */
|
|
1942
2646
|
description?: ReactNode;
|
|
@@ -1955,7 +2659,7 @@ declare const Feedback: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTML
|
|
|
1955
2659
|
size?: "small" | "default" | null | undefined;
|
|
1956
2660
|
mode?: "default" | "primary" | null | undefined;
|
|
1957
2661
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
1958
|
-
/** Primary line —
|
|
2662
|
+
/** Primary line — medium on default size */
|
|
1959
2663
|
title: ReactNode;
|
|
1960
2664
|
/** Secondary caption line — default size only */
|
|
1961
2665
|
description?: ReactNode;
|
|
@@ -1981,7 +2685,7 @@ declare const alertVariants: (props?: ({
|
|
|
1981
2685
|
appearance?: "light" | "default" | null | undefined;
|
|
1982
2686
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1983
2687
|
type AlertProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & VariantProps<typeof alertVariants> & {
|
|
1984
|
-
/** Primary line —
|
|
2688
|
+
/** Primary line — medium on default size */
|
|
1985
2689
|
title: ReactNode;
|
|
1986
2690
|
/** Secondary caption line — default size only */
|
|
1987
2691
|
description?: ReactNode;
|
|
@@ -2010,7 +2714,7 @@ declare const Alert: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDiv
|
|
|
2010
2714
|
size?: "small" | "default" | null | undefined;
|
|
2011
2715
|
appearance?: "light" | "default" | null | undefined;
|
|
2012
2716
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
2013
|
-
/** Primary line —
|
|
2717
|
+
/** Primary line — medium on default size */
|
|
2014
2718
|
title: ReactNode;
|
|
2015
2719
|
/** Secondary caption line — default size only */
|
|
2016
2720
|
description?: ReactNode;
|
|
@@ -2236,9 +2940,25 @@ declare const NavigationItemMenuTrigger: react.ForwardRefExoticComponent<Omit<Om
|
|
|
2236
2940
|
rightIcon?: ReactNode;
|
|
2237
2941
|
children: ReactNode;
|
|
2238
2942
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
2239
|
-
type NavigationItemMenuContentProps = ComponentPropsWithoutRef<
|
|
2943
|
+
type NavigationItemMenuContentProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & {
|
|
2944
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
2945
|
+
align?: "start" | "center" | "end";
|
|
2946
|
+
sideOffset?: number;
|
|
2947
|
+
collisionPadding?: number;
|
|
2948
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2949
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2950
|
+
children?: ReactNode;
|
|
2951
|
+
};
|
|
2240
2952
|
/** Flyout surface — forward of the item in vertical (LTR right / RTL left), below it in horizontal. */
|
|
2241
|
-
declare const NavigationItemMenuContent: react.ForwardRefExoticComponent<Omit<
|
|
2953
|
+
declare const NavigationItemMenuContent: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
2954
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
2955
|
+
align?: "start" | "center" | "end";
|
|
2956
|
+
sideOffset?: number;
|
|
2957
|
+
collisionPadding?: number;
|
|
2958
|
+
/** Radix-compatible focus hook. Providing it cancels the automatic focus. */
|
|
2959
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2960
|
+
children?: ReactNode;
|
|
2961
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2242
2962
|
type NavigationItemMenuItemProps = Omit<ComponentPropsWithoutRef<"button">, "children" | "value"> & {
|
|
2243
2963
|
value: string;
|
|
2244
2964
|
/** Defaults to highlighted when it matches the menu value. */
|
|
@@ -2305,16 +3025,39 @@ declare const TabItem: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes
|
|
|
2305
3025
|
/** Figma Components → Information Collect → Slider (384:21585) */
|
|
2306
3026
|
type SliderSize = "default" | "big";
|
|
2307
3027
|
type SliderType = "default" | "range";
|
|
2308
|
-
type SliderRootProps = ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;
|
|
2309
3028
|
declare const sliderVariants: (props?: ({
|
|
2310
3029
|
size?: "big" | "default" | null | undefined;
|
|
2311
3030
|
type?: "default" | "range" | null | undefined;
|
|
2312
3031
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2313
|
-
type SliderProps =
|
|
3032
|
+
type SliderProps = Omit<ComponentPropsWithoutRef<"span">, "value" | "defaultValue" | "onChange"> & VariantProps<typeof sliderVariants> & {
|
|
2314
3033
|
/** Figma `Type` — single thumb vs range (two thumbs) */
|
|
2315
3034
|
type?: SliderType;
|
|
2316
3035
|
/** Figma volume popover and other vertical tracks — `horizontal` (default) or `vertical`. */
|
|
2317
3036
|
orientation?: "horizontal" | "vertical";
|
|
3037
|
+
/** The value: one number for a single thumb, two for a range. */
|
|
3038
|
+
value?: number[];
|
|
3039
|
+
/** The value at first, when uncontrolled. */
|
|
3040
|
+
defaultValue?: number[];
|
|
3041
|
+
/** Runs while the value changes. */
|
|
3042
|
+
onValueChange?: (value: number[]) => void;
|
|
3043
|
+
/** Runs once an interaction that changed the value ends. */
|
|
3044
|
+
onValueCommit?: (value: number[]) => void;
|
|
3045
|
+
min?: number;
|
|
3046
|
+
max?: number;
|
|
3047
|
+
step?: number;
|
|
3048
|
+
/** How far Page Up, Page Down and Shift with an arrow key move. */
|
|
3049
|
+
largeStep?: number;
|
|
3050
|
+
/** How many steps apart neighbouring thumbs stay. */
|
|
3051
|
+
minStepsBetweenThumbs?: number;
|
|
3052
|
+
disabled?: boolean;
|
|
3053
|
+
readOnly?: boolean;
|
|
3054
|
+
required?: boolean;
|
|
3055
|
+
/** The name every thumb value submits under. */
|
|
3056
|
+
name?: string;
|
|
3057
|
+
/** The id of a form to belong to, when it isn't inside that form. */
|
|
3058
|
+
form?: string;
|
|
3059
|
+
/** Visually reverses the axis. */
|
|
3060
|
+
inverted?: boolean;
|
|
2318
3061
|
/**
|
|
2319
3062
|
* When true, hovering a thumb (and while dragging it) shows a value
|
|
2320
3063
|
* tooltip bound to that thumb.
|
|
@@ -2323,7 +3066,7 @@ type SliderProps = SliderRootProps & VariantProps<typeof sliderVariants> & {
|
|
|
2323
3066
|
/** Format the value tooltip label. Defaults to `String(value)`. */
|
|
2324
3067
|
formatValueTooltip?: (value: number, index: number) => ReactNode;
|
|
2325
3068
|
};
|
|
2326
|
-
declare const Slider: react.ForwardRefExoticComponent<Omit<
|
|
3069
|
+
declare const Slider: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "defaultValue" | "value" | "onChange"> & VariantProps<(props?: ({
|
|
2327
3070
|
size?: "big" | "default" | null | undefined;
|
|
2328
3071
|
type?: "default" | "range" | null | undefined;
|
|
2329
3072
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
@@ -2331,6 +3074,30 @@ declare const Slider: react.ForwardRefExoticComponent<Omit<SliderPrimitive.Slide
|
|
|
2331
3074
|
type?: SliderType;
|
|
2332
3075
|
/** Figma volume popover and other vertical tracks — `horizontal` (default) or `vertical`. */
|
|
2333
3076
|
orientation?: "horizontal" | "vertical";
|
|
3077
|
+
/** The value: one number for a single thumb, two for a range. */
|
|
3078
|
+
value?: number[];
|
|
3079
|
+
/** The value at first, when uncontrolled. */
|
|
3080
|
+
defaultValue?: number[];
|
|
3081
|
+
/** Runs while the value changes. */
|
|
3082
|
+
onValueChange?: (value: number[]) => void;
|
|
3083
|
+
/** Runs once an interaction that changed the value ends. */
|
|
3084
|
+
onValueCommit?: (value: number[]) => void;
|
|
3085
|
+
min?: number;
|
|
3086
|
+
max?: number;
|
|
3087
|
+
step?: number;
|
|
3088
|
+
/** How far Page Up, Page Down and Shift with an arrow key move. */
|
|
3089
|
+
largeStep?: number;
|
|
3090
|
+
/** How many steps apart neighbouring thumbs stay. */
|
|
3091
|
+
minStepsBetweenThumbs?: number;
|
|
3092
|
+
disabled?: boolean;
|
|
3093
|
+
readOnly?: boolean;
|
|
3094
|
+
required?: boolean;
|
|
3095
|
+
/** The name every thumb value submits under. */
|
|
3096
|
+
name?: string;
|
|
3097
|
+
/** The id of a form to belong to, when it isn't inside that form. */
|
|
3098
|
+
form?: string;
|
|
3099
|
+
/** Visually reverses the axis. */
|
|
3100
|
+
inverted?: boolean;
|
|
2334
3101
|
/**
|
|
2335
3102
|
* When true, hovering a thumb (and while dragging it) shows a value
|
|
2336
3103
|
* tooltip bound to that thumb.
|
|
@@ -2377,6 +3144,55 @@ declare const Upload: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDi
|
|
|
2377
3144
|
onChange?: (files: FileList | null) => void;
|
|
2378
3145
|
inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "accept" | "multiple" | "disabled" | "onChange">;
|
|
2379
3146
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
3147
|
+
/** Figma Components → Information Collect → UploadList */
|
|
3148
|
+
type UploadListVariant = "default" | "grouped";
|
|
3149
|
+
type UploadListItemStatus = "uploading" | "success" | "error";
|
|
3150
|
+
type UploadListProps = HTMLAttributes<HTMLDivElement> & {
|
|
3151
|
+
/** Figma `Type` — plain list vs grouped card surface */
|
|
3152
|
+
variant?: UploadListVariant;
|
|
3153
|
+
};
|
|
3154
|
+
declare const UploadList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3155
|
+
/** Figma `Type` — plain list vs grouped card surface */
|
|
3156
|
+
variant?: UploadListVariant;
|
|
3157
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
3158
|
+
type UploadListItemProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
3159
|
+
/** Figma `State` — uploading shows the progress bar */
|
|
3160
|
+
status?: UploadListItemStatus;
|
|
3161
|
+
/** Primary line — file name */
|
|
3162
|
+
fileName: ReactNode;
|
|
3163
|
+
/** Secondary line — size / meta text */
|
|
3164
|
+
description?: ReactNode;
|
|
3165
|
+
/** Alias for `description`; `description` wins when both are passed. */
|
|
3166
|
+
meta?: ReactNode;
|
|
3167
|
+
/** 0–100, rendered while `status="uploading"` */
|
|
3168
|
+
progress?: number;
|
|
3169
|
+
/** Custom trailing action group — replaces the callback-driven buttons */
|
|
3170
|
+
actions?: ReactNode;
|
|
3171
|
+
onRetry?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3172
|
+
onRemove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3173
|
+
onPreview?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3174
|
+
/** Leading file icon override — defaults to the catalog file icon */
|
|
3175
|
+
icon?: ReactNode;
|
|
3176
|
+
};
|
|
3177
|
+
declare const UploadListItem: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
3178
|
+
/** Figma `State` — uploading shows the progress bar */
|
|
3179
|
+
status?: UploadListItemStatus;
|
|
3180
|
+
/** Primary line — file name */
|
|
3181
|
+
fileName: ReactNode;
|
|
3182
|
+
/** Secondary line — size / meta text */
|
|
3183
|
+
description?: ReactNode;
|
|
3184
|
+
/** Alias for `description`; `description` wins when both are passed. */
|
|
3185
|
+
meta?: ReactNode;
|
|
3186
|
+
/** 0–100, rendered while `status="uploading"` */
|
|
3187
|
+
progress?: number;
|
|
3188
|
+
/** Custom trailing action group — replaces the callback-driven buttons */
|
|
3189
|
+
actions?: ReactNode;
|
|
3190
|
+
onRetry?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3191
|
+
onRemove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3192
|
+
onPreview?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
3193
|
+
/** Leading file icon override — defaults to the catalog file icon */
|
|
3194
|
+
icon?: ReactNode;
|
|
3195
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2380
3196
|
|
|
2381
3197
|
/** Figma 画面比例 → CSS object-fit */
|
|
2382
3198
|
type VideoObjectFit = "original" | "stretch" | "fill";
|
|
@@ -2438,7 +3254,7 @@ type VideoHandle = {
|
|
|
2438
3254
|
play: () => Promise<void> | undefined;
|
|
2439
3255
|
pause: () => void;
|
|
2440
3256
|
};
|
|
2441
|
-
declare const Video: react.ForwardRefExoticComponent<Omit<VideoHTMLAttributes<HTMLVideoElement>, "onVolumeChange" | "
|
|
3257
|
+
declare const Video: react.ForwardRefExoticComponent<Omit<VideoHTMLAttributes<HTMLVideoElement>, "onVolumeChange" | "controls" | "muted"> & {
|
|
2442
3258
|
/** Figma `Style` — Default stacks the bar; Light floats a pill bar over the stage. */
|
|
2443
3259
|
appearance?: VideoAppearance;
|
|
2444
3260
|
/** Seconds to skip when Previous / Next have no playlist handlers. */
|
|
@@ -2551,7 +3367,7 @@ declare const BreadcrumbEllipsisItem: react.ForwardRefExoticComponent<Omit<Omit<
|
|
|
2551
3367
|
onClick?: () => void;
|
|
2552
3368
|
/** Figma Select Menu Item trailing chevron — default true */
|
|
2553
3369
|
showChevron?: boolean;
|
|
2554
|
-
} & react.RefAttributes<
|
|
3370
|
+
} & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
2555
3371
|
type BreadcrumbEllipsisProps = Omit<ComponentPropsWithoutRef<"button">, "type"> & {
|
|
2556
3372
|
className?: string;
|
|
2557
3373
|
/**
|
|
@@ -2847,11 +3663,8 @@ interface RateProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"
|
|
|
2847
3663
|
declare const Rate: react.ForwardRefExoticComponent<RateProps & react.RefAttributes<HTMLDivElement>>;
|
|
2848
3664
|
|
|
2849
3665
|
/**
|
|
2850
|
-
* Gate `.aviala-focus-ring` to true keyboard modality
|
|
2851
|
-
*
|
|
2852
|
-
* `:focus-visible` alone is not enough for menus: mouse-opening Select/Cascader
|
|
2853
|
-
* programmatically focuses an item, and browsers treat that as focus-visible.
|
|
2854
|
-
* We clear the gate on pointer/touch and set it on non-modifier keydown.
|
|
3666
|
+
* Gate `.aviala-focus-ring` to true keyboard modality and drive the singleton
|
|
3667
|
+
* Spatial Focus Ring Overlay (with pure CSS `outline` fallback when not mounted).
|
|
2855
3668
|
*/
|
|
2856
3669
|
declare function initKeyboardFocus(): void;
|
|
2857
3670
|
|
|
@@ -2882,4 +3695,4 @@ interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
2882
3695
|
/** Figma Button Group (530:57323): horizontal actions and optional caption. */
|
|
2883
3696
|
declare const ButtonGroup: react.ForwardRefExoticComponent<ButtonGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
2884
3697
|
|
|
2885
|
-
export { Alert, type AlertAppearance, type AlertProps, type AlertSize, type AlertType, Anchor, type AnchorIndentLevel, AnchorItem, type AnchorItemProps, type AnchorProps, Avatar, type AvatarContent, type AvatarLevel, type AvatarProps, Badge, type BadgeLevel, type BadgeLineHeightFix, type BadgeProps, type BadgeStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisItem, type BreadcrumbEllipsisItemProps, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, type BreadcrumbSize, Button, ButtonGroup, type ButtonGroupProps, type ButtonMode, type ButtonProps, type ButtonSize, Card, CardBody, type CardBodyProps, CardBottom, type CardBottomProps, CardHead, type CardHeadProps, type CardProps, type CardSlotType, Cascader, CascaderColumn, type CascaderColumnProps, CascaderContent, type CascaderContentProps, CascaderField, type CascaderFieldProps, CascaderItem, type CascaderItemFunction, CascaderItemGroup, type CascaderItemGroupProps, type CascaderItemLayout, type CascaderItemProps, CascaderMenu, type CascaderMenuProps, type CascaderOption, CascaderOptionsMenu, type CascaderOptionsMenuProps, type CascaderProps, CascaderSearch, type CascaderSearchProps, type CascaderSize, CascaderTrigger, type CascaderTriggerProps, Checkbox, CheckboxGroup, type CheckboxGroupDirection, type CheckboxGroupProps, CheckboxInput, type CheckboxInputProps, type CheckboxProps, type CheckboxSize, type ColorFormat, ColorPickButton, type ColorPickButtonProps, ColorPicker, ColorPickerArea, type ColorPickerAreaProps, ColorPickerContent, type ColorPickerContentProps, ColorPickerInputs, type ColorPickerInputsProps, ColorPickerPanel, type ColorPickerPanelProps, ColorPickerPresets, type ColorPickerPresetsProps, type ColorPickerProps, ColorPickerSlider, type ColorPickerSliderProps, ColorPickerTrigger, type ColorPickerTriggerProps, ConfigProvider, type ConfigProviderProps, DEFAULT_COLOR, DEFAULT_PLAYBACK_RATES, DatePicker, DatePickerCalendar, type DatePickerCalendarProps, DatePickerContent, type DatePickerContentProps, DatePickerField, type DatePickerFieldProps, type DatePickerMode, type DatePickerPanel, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DatePickerTimeValue, DatePickerTrigger, type DatePickerTriggerProps, type DateRange, type Direction, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerHeaderText, type DrawerHeaderTextProps, DrawerOverlay, type DrawerOverlayProps, DrawerPortal, type DrawerPosition, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, Feedback, type FeedbackMode, type FeedbackProps, type FeedbackSize, type FeedbackType, Fieldset, type FieldsetProps, type HSVA, HoverPopover, type HoverPopoverProps, Input, InputGroup, InputGroupAddon, InputGroupItem, type InputGroupProps, type InputProps, type InputSize, Label, Link, type LinkLevel, type LinkMode, type LinkProps, List, type ListAppearance, ListDivider, type ListDividerProps, ListGroup, type ListGroupProps, ListItem, ListItemGroup, type ListItemGroupProps, type ListItemLeading, type ListItemProps, type ListItemType, type ListProps, ListSeparator, type ListSeparatorProps, ListTitle, type ListTitleProps, Loading, type LoadingAlignment, type LoadingButtonSize, type LoadingLevel, type LoadingMode, type LoadingProps, type Locale, type LocaleComponentName, LocaleProvider, type LocaleProviderProps, Modal, ModalBody, type ModalBodyProps, ModalClose, ModalContent, type ModalContentProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHeaderText, type ModalHeaderTextProps, ModalOverlay, type ModalOverlayProps, ModalPortal, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, ModalTrigger, MultiSelect, type MultiSelectOption, type MultiSelectProps, Navigation, NavigationActions, type NavigationActionsProps, NavigationActionsSlot, type NavigationActionsSlotProps, type NavigationBackground, NavigationBrand, type NavigationBrandProps, NavigationBrandTitle, type NavigationBrandTitleProps, type NavigationDirection, NavigationGroup, type NavigationGroupProps, NavigationItem, NavigationItemGroup, type NavigationItemGroupProps, NavigationItemMenu, NavigationItemMenuContent, type NavigationItemMenuContentProps, NavigationItemMenuItem, type NavigationItemMenuItemProps, type NavigationItemMenuProps, NavigationItemMenuTrigger, type NavigationItemMenuTriggerProps, type NavigationItemProps, type NavigationItemType, type NavigationProps, NavigationSection, type NavigationSectionProps, NumberInput, type NumberInputProps, type NumberInputStyle, OverlayContainerProvider, type OverlayContainerProviderProps, Pagehead, type PageheadProps, Pagination, type PaginationProps, type PhysicalSide, Popover, PopoverAnchor, type PopoverAppearance, PopoverContent, type PopoverContentLevel, type PopoverContentProps, PopoverIcon, type PopoverIconProps, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, type ProgressShape, type ProgressSize, type ProgressType, RESPONSIVE_TOOLTIP_LONG_PRESS_MS, RadioGroup, type RadioGroupDirection, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RadioInput, type RadioInputProps, type RadioInputVariant, Rate, RateIcon, type RateIconProps, type RateIconStatus, type RateProps, type RateSize, type RateType, ResponsiveTooltip, type ResponsiveTooltipProps, Scroll, type ScrollOrientation, ScrollPicker, ScrollPickerColumn, type ScrollPickerColumnProps, ScrollPickerItem, type ScrollPickerItemProps, type ScrollPickerProps, type ScrollProps, type ScrollSize, type SegmentatorDirection, SegmentatorGroup, type SegmentatorGroupProps, SegmentatorItem, type SegmentatorItemProps, type SegmentatorMode, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemFunction, SelectItemGroup, type SelectItemGroupProps, type SelectItemLayout, SelectItemPeople, type SelectItemPeopleProps, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSearch, type SelectSearchProps, SelectSeparator, type SelectSeparatorProps, type SelectSize, SelectSubItem, SelectSubItemPeople, type SelectSubItemPeopleProps, type SelectSubItemProps, SelectSubMenu, type SelectSubMenuProps, SelectTrigger, type SelectTriggerProps, SelectValue, Slider, type SliderProps, type SliderSize, type SliderType, Stack, type StackProps, Steps, type StepsDirection, StepsIcon, type StepsIconProps, StepsItem, type StepsItemProps, type StepsProps, type StepsState, Switch, type SwitchProps, type SwitchSize, TOOLTIP_DELAY_DURATION, Tab, type TabBackground, TabItem, type TabItemProps, type TabProps, type TabStyle, Table, TableCell, type TableCellContent, type TableCellProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tag, TagClose, type TagCloseProps, type TagContent, type TagLevel, type TagLineHeightFix, type TagProps, Textarea, type TextareaProps, type TextareaSize, ThemeProvider, type ThemeProviderProps, ThemeScript, TimePicker, TimePickerContent, type TimePickerContentProps, TimePickerField, type TimePickerFieldProps, TimePickerPanel, type TimePickerPanelProps, type TimePickerProps, type TimePickerSize, TimePickerTrigger, type TimePickerTriggerProps, type TimePickerValue, TimePickerWheels, type TimePickerWheelsValue, Tooltip, TooltipContent, type TooltipContentLevel, type TooltipContentProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, Typeface, type TypefaceContent, TypefacePair, type TypefacePairProps, type TypefaceProps, Typography, type TypographyContent, type TypographyLevel, type TypographyProps, type TypographyTone, Upload, type UploadProps, type UploadStyle, type UseColorPickerStateOptions, Video, type VideoAppearance, type VideoHandle, type VideoObjectFit, type VideoProps, alertVariants, backChevronSide, buttonVariants, cn, drawerContentVariants, enUS, formatDisplayDate, formatMonthYear, formatTimeValue, formatVideoTime, forwardChevronSide, initKeyboardFocus, inputRootVariants, interpolate, loadingLevelForButtonSize, mirrorSide, mirrorSideForDirection, modalContentVariants, numberInputRootVariants, parseDateInput, parseDateRangeInput, parseVideoTime, typographyVariants, useColorPickerState, useDirection, useLocale, useLocaleMessages, useOverlayPortalContainer, useRtl, useTheme, useThemeLayoutKey, videoObjectFitToCss, zhCN };
|
|
3698
|
+
export { Alert, type AlertAppearance, type AlertProps, type AlertSize, type AlertType, Anchor, type AnchorIndentLevel, AnchorItem, type AnchorItemProps, type AnchorProps, Avatar, type AvatarContent, type AvatarLevel, type AvatarProps, Badge, type BadgeLevel, type BadgeLineHeightFix, type BadgeProps, type BadgeSize, type BadgeStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisItem, type BreadcrumbEllipsisItemProps, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, type BreadcrumbSize, Button, ButtonGroup, type ButtonGroupProps, type ButtonMode, type ButtonProps, type ButtonSize, Card, CardBody, type CardBodyProps, CardBottom, type CardBottomProps, CardHead, type CardHeadProps, type CardProps, type CardSlotType, Cascader, CascaderColumn, type CascaderColumnProps, CascaderContent, type CascaderContentProps, CascaderField, type CascaderFieldProps, CascaderItem, type CascaderItemFunction, CascaderItemGroup, type CascaderItemGroupProps, type CascaderItemLayout, type CascaderItemProps, CascaderMenu, type CascaderMenuProps, type CascaderOption, CascaderOptionsMenu, type CascaderOptionsMenuProps, type CascaderProps, CascaderSearch, type CascaderSearchProps, type CascaderSize, CascaderTrigger, type CascaderTriggerProps, Checkbox, CheckboxGroup, type CheckboxGroupDirection, type CheckboxGroupProps, CheckboxInput, type CheckboxInputProps, type CheckboxProps, type CheckboxSize, type ColorFormat, ColorPickButton, type ColorPickButtonProps, ColorPicker, ColorPickerArea, type ColorPickerAreaProps, ColorPickerContent, type ColorPickerContentProps, ColorPickerInputs, type ColorPickerInputsProps, ColorPickerPanel, type ColorPickerPanelProps, ColorPickerPresets, type ColorPickerPresetsProps, type ColorPickerProps, ColorPickerSlider, type ColorPickerSliderProps, ColorPickerTrigger, type ColorPickerTriggerProps, ConfigProvider, type ConfigProviderProps, DEFAULT_COLOR, DEFAULT_PLAYBACK_RATES, DatePicker, DatePickerCalendar, type DatePickerCalendarProps, DatePickerContent, type DatePickerContentProps, DatePickerField, type DatePickerFieldProps, type DatePickerMode, type DatePickerPanel, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DatePickerTimeValue, DatePickerTrigger, type DatePickerTriggerProps, type DateRange, type DefineThemeOptions, type DefinedTheme, type Direction, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerHeaderText, type DrawerHeaderTextProps, DrawerOverlay, type DrawerOverlayProps, DrawerPortal, type DrawerPosition, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, Feedback, type FeedbackMode, type FeedbackProps, type FeedbackSize, type FeedbackType, Fieldset, type FieldsetProps, type HSVA, HoverPopover, type HoverPopoverProps, Input, type InputAppearance, InputGroup, InputGroupAddon, InputGroupItem, type InputGroupProps, type InputProps, type InputSize, Label, Link, type LinkLevel, type LinkMode, type LinkProps, List, type ListAppearance, ListDivider, type ListDividerProps, ListGroup, type ListGroupProps, ListItem, ListItemGroup, type ListItemGroupProps, type ListItemLeading, type ListItemProps, type ListItemType, type ListProps, ListSeparator, type ListSeparatorProps, ListTitle, type ListTitleProps, Loading, type LoadingAlignment, type LoadingButtonSize, type LoadingLevel, type LoadingMode, type LoadingProps, type Locale, type LocaleComponentName, LocaleProvider, type LocaleProviderProps, Modal, ModalBody, type ModalBodyProps, ModalClose, ModalContent, type ModalContentProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHeaderText, type ModalHeaderTextProps, ModalOverlay, type ModalOverlayProps, ModalPortal, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, ModalTrigger, MultiSelect, type MultiSelectOption, type MultiSelectProps, Navigation, NavigationActions, type NavigationActionsProps, NavigationActionsSlot, type NavigationActionsSlotProps, type NavigationBackground, NavigationBrand, type NavigationBrandProps, NavigationBrandTitle, type NavigationBrandTitleProps, type NavigationDirection, NavigationGroup, type NavigationGroupProps, NavigationItem, NavigationItemGroup, type NavigationItemGroupProps, NavigationItemMenu, NavigationItemMenuContent, type NavigationItemMenuContentProps, NavigationItemMenuItem, type NavigationItemMenuItemProps, type NavigationItemMenuProps, NavigationItemMenuTrigger, type NavigationItemMenuTriggerProps, type NavigationItemProps, type NavigationItemType, type NavigationProps, NavigationSection, type NavigationSectionProps, NumberInput, type NumberInputProps, type NumberInputStyle, OverlayContainerProvider, type OverlayContainerProviderProps, Pagehead, type PageheadProps, Pagination, type PaginationProps, type PhysicalSide, Popover, PopoverAnchor, type PopoverAppearance, PopoverContent, type PopoverContentLevel, type PopoverContentProps, PopoverIcon, type PopoverIconProps, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, type ProgressShape, type ProgressSize, type ProgressType, RESPONSIVE_TOOLTIP_LONG_PRESS_MS, RadioGroup, type RadioGroupDirection, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RadioInput, type RadioInputProps, type RadioInputVariant, Rate, RateIcon, type RateIconProps, type RateIconStatus, type RateProps, type RateSize, type RateType, ResponsiveTooltip, type ResponsiveTooltipProps, Scroll, type ScrollOrientation, ScrollPicker, ScrollPickerColumn, type ScrollPickerColumnProps, ScrollPickerItem, type ScrollPickerItemProps, type ScrollPickerProps, type ScrollProps, type ScrollSize, type SegmentatorAppearance, type SegmentatorDirection, SegmentatorGroup, type SegmentatorGroupProps, SegmentatorItem, type SegmentatorItemProps, type SegmentatorMode, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemFunction, SelectItemGroup, type SelectItemGroupProps, type SelectItemLayout, SelectItemPeople, type SelectItemPeopleProps, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSearch, type SelectSearchProps, SelectSeparator, type SelectSeparatorProps, type SelectSize, SelectSubItem, SelectSubItemPeople, type SelectSubItemPeopleProps, type SelectSubItemProps, SelectSubMenu, type SelectSubMenuProps, SelectTrigger, type SelectTriggerProps, SelectValue, Slider, type SliderProps, type SliderSize, type SliderType, Stack, type StackProps, Steps, type StepsDirection, StepsIcon, type StepsIconProps, StepsItem, type StepsItemProps, type StepsProps, type StepsState, Switch, type SwitchProps, type SwitchSize, TOOLTIP_DELAY_DURATION, Tab, type TabBackground, TabItem, type TabItemProps, type TabProps, type TabStyle, Table, TableCell, type TableCellContent, type TableCellProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tag, TagClose, type TagCloseProps, type TagContent, type TagLevel, type TagLineHeightFix, type TagProps, Textarea, type TextareaProps, type TextareaSize, ThemeProvider, type ThemeProviderProps, ThemeScript, TimePicker, TimePickerContent, type TimePickerContentProps, TimePickerField, type TimePickerFieldProps, TimePickerPanel, type TimePickerPanelProps, type TimePickerProps, type TimePickerSize, TimePickerTrigger, type TimePickerTriggerProps, type TimePickerValue, TimePickerWheels, type TimePickerWheelsValue, Tooltip, TooltipContent, type TooltipContentLevel, type TooltipContentProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, Typeface, type TypefaceContent, TypefacePair, type TypefacePairProps, type TypefaceProps, Typography, type TypographyContent, type TypographyLevel, type TypographyProps, type TypographyTone, Upload, UploadList, UploadListItem, type UploadListItemProps, type UploadListItemStatus, type UploadListProps, type UploadListVariant, type UploadProps, type UploadStyle, type UseColorPickerStateOptions, Video, type VideoAppearance, type VideoHandle, type VideoObjectFit, type VideoProps, alertVariants, backChevronSide, buttonVariants, cn, defineTheme, drawerContentVariants, enUS, formatDisplayDate, formatMonthYear, formatTimeValue, formatVideoTime, forwardChevronSide, initKeyboardFocus, inputRootVariants, interpolate, loadingLevelForButtonSize, mirrorSide, mirrorSideForDirection, modalContentVariants, numberInputRootVariants, parseDateInput, parseDateRangeInput, parseVideoTime, typographyVariants, useColorPickerState, useDirection, useLocale, useLocaleMessages, useOverlayPortalContainer, useRtl, useTheme, useThemeLayoutKey, videoObjectFitToCss, zhCN };
|