@gradeui/ui 3.0.0 → 3.2.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/components/ui/button.md +11 -7
- package/components/ui/combobox.md +46 -0
- package/components/ui/data-view.md +59 -0
- package/components/ui/dropdown-menu.md +1 -0
- package/components/ui/logo.md +8 -6
- package/components/ui/map.md +9 -0
- package/components/ui/media-surface.md +1 -0
- package/components/ui/property-list.md +43 -0
- package/components/ui/sidebar.md +2 -1
- package/components/ui/swatch.md +88 -0
- package/dist/contracts.js +6 -6
- package/dist/contracts.js.map +1 -1
- package/dist/contracts.mjs +6 -6
- package/dist/contracts.mjs.map +1 -1
- package/dist/index.d.mts +902 -415
- package/dist/index.d.ts +902 -415
- package/dist/index.js +609 -72
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +609 -72
- package/dist/index.mjs.map +1 -1
- package/dist/map/google.d.mts +1 -1
- package/dist/map/google.d.ts +1 -1
- package/dist/map/google.js +1 -1
- package/dist/map/google.js.map +1 -1
- package/dist/map/google.mjs +1 -1
- package/dist/map/google.mjs.map +1 -1
- package/dist/map/leaflet.d.mts +1 -1
- package/dist/map/leaflet.d.ts +1 -1
- package/dist/map/leaflet.js +2 -2
- package/dist/map/leaflet.js.map +1 -1
- package/dist/map/leaflet.mjs +2 -2
- package/dist/map/leaflet.mjs.map +1 -1
- package/dist/map/mapbox.d.mts +1 -1
- package/dist/map/mapbox.d.ts +1 -1
- package/dist/map/mapbox.js +2 -2
- package/dist/map/mapbox.js.map +1 -1
- package/dist/map/mapbox.mjs +2 -2
- package/dist/map/mapbox.mjs.map +1 -1
- package/dist/map/maplibre.d.mts +1 -1
- package/dist/map/maplibre.d.ts +1 -1
- package/dist/map/maplibre.js +1 -1
- package/dist/map/maplibre.js.map +1 -1
- package/dist/map/maplibre.mjs +1 -1
- package/dist/map/maplibre.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-BxywIwvG.d.mts → types-B45Uirkp.d.mts} +23 -0
- package/dist/{types-BxywIwvG.d.ts → types-B45Uirkp.d.ts} +23 -0
- package/package.json +2 -1
- package/styles/globals.css +306 -95
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _gradeui_contracts from '@gradeui/contracts';
|
|
2
2
|
import { ComponentContract } from '@gradeui/contracts';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -18,6 +18,7 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
18
18
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
19
19
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
20
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
21
|
+
import { SortingState, OnChangeFn, VisibilityState } from '@tanstack/react-table';
|
|
21
22
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
22
23
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
23
24
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -33,8 +34,8 @@ import * as RechartsPrimitive from 'recharts';
|
|
|
33
34
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
34
35
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
35
36
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
36
|
-
import { M as MapProps, a as MapHandle, b as MapMarkerProps } from './types-
|
|
37
|
-
export { C as Coords, c as MapAppearance, d as MapError, e as MapErrorCode } from './types-
|
|
37
|
+
import { M as MapProps, a as MapHandle, b as MapMarkerProps } from './types-B45Uirkp.mjs';
|
|
38
|
+
export { C as Coords, c as MapAppearance, d as MapError, e as MapErrorCode } from './types-B45Uirkp.mjs';
|
|
38
39
|
import * as THREE from 'three';
|
|
39
40
|
import { ClassValue } from 'clsx';
|
|
40
41
|
|
|
@@ -113,6 +114,14 @@ declare const MediaSurfaceContract: _gradeui_contracts.ComponentContract<{
|
|
|
113
114
|
label: string;
|
|
114
115
|
description: string;
|
|
115
116
|
};
|
|
117
|
+
instanceId: {
|
|
118
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
119
|
+
design: "content";
|
|
120
|
+
group: string;
|
|
121
|
+
control: "text";
|
|
122
|
+
label: string;
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
116
125
|
source: {
|
|
117
126
|
schema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
118
127
|
kind: z.ZodLiteral<"album">;
|
|
@@ -182,14 +191,14 @@ declare const MediaSurfaceContract: _gradeui_contracts.ComponentContract<{
|
|
|
182
191
|
description: z.ZodOptional<z.ZodString>;
|
|
183
192
|
}, "strip", z.ZodTypeAny, {
|
|
184
193
|
kind: "book";
|
|
185
|
-
description?: string | undefined;
|
|
186
194
|
title?: string | undefined;
|
|
195
|
+
description?: string | undefined;
|
|
187
196
|
author?: string | undefined;
|
|
188
197
|
isbn?: string | undefined;
|
|
189
198
|
}, {
|
|
190
199
|
kind: "book";
|
|
191
|
-
description?: string | undefined;
|
|
192
200
|
title?: string | undefined;
|
|
201
|
+
description?: string | undefined;
|
|
193
202
|
author?: string | undefined;
|
|
194
203
|
isbn?: string | undefined;
|
|
195
204
|
}>, z.ZodObject<{
|
|
@@ -362,10 +371,10 @@ declare const MediaSurfaceContract: _gradeui_contracts.ComponentContract<{
|
|
|
362
371
|
};
|
|
363
372
|
}>;
|
|
364
373
|
|
|
365
|
-
declare const Accordion: React
|
|
366
|
-
declare const AccordionItem: React
|
|
367
|
-
declare const AccordionTrigger: React
|
|
368
|
-
declare const AccordionContent: React
|
|
374
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
376
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
377
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
369
378
|
|
|
370
379
|
/**
|
|
371
380
|
* Callout — inline, ambient, non-blocking status/feedback surface.
|
|
@@ -391,11 +400,11 @@ declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<Accordion
|
|
|
391
400
|
declare const calloutVariants: (props?: ({
|
|
392
401
|
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
393
402
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
394
|
-
declare const Callout: React
|
|
403
|
+
declare const Callout: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
395
404
|
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
396
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React
|
|
397
|
-
declare const CalloutTitle: React
|
|
398
|
-
declare const CalloutDescription: React
|
|
405
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
406
|
+
declare const CalloutTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
407
|
+
declare const CalloutDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
399
408
|
|
|
400
409
|
/**
|
|
401
410
|
* AppShell — top-level page scaffold for an app-like or marketing layout.
|
|
@@ -448,32 +457,32 @@ declare const mainVariants: (props?: ({
|
|
|
448
457
|
maxWidth?: "full" | "container" | null | undefined;
|
|
449
458
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
450
459
|
declare const footerVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
451
|
-
interface AppShellProps extends React
|
|
460
|
+
interface AppShellProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
|
|
452
461
|
/** Render as the single child element via Radix Slot — lets you stamp the
|
|
453
462
|
* shell layout onto an existing root tag without an extra wrapper. */
|
|
454
463
|
asChild?: boolean;
|
|
455
464
|
}
|
|
456
|
-
declare const AppShell: React
|
|
457
|
-
interface AppShellHeaderProps extends React
|
|
465
|
+
declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
interface AppShellHeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
458
467
|
asChild?: boolean;
|
|
459
468
|
}
|
|
460
|
-
declare const AppShellHeader: React
|
|
461
|
-
interface AppShellNavProps extends React
|
|
469
|
+
declare const AppShellHeader: React.ForwardRefExoticComponent<AppShellHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
470
|
+
interface AppShellNavProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof navVariants> {
|
|
462
471
|
asChild?: boolean;
|
|
463
472
|
}
|
|
464
|
-
declare const AppShellNav: React
|
|
465
|
-
interface AppShellAsideProps extends React
|
|
473
|
+
declare const AppShellNav: React.ForwardRefExoticComponent<AppShellNavProps & React.RefAttributes<HTMLElement>>;
|
|
474
|
+
interface AppShellAsideProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof asideVariants> {
|
|
466
475
|
asChild?: boolean;
|
|
467
476
|
}
|
|
468
|
-
declare const AppShellAside: React
|
|
469
|
-
interface AppShellMainProps extends React
|
|
477
|
+
declare const AppShellAside: React.ForwardRefExoticComponent<AppShellAsideProps & React.RefAttributes<HTMLElement>>;
|
|
478
|
+
interface AppShellMainProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof mainVariants> {
|
|
470
479
|
asChild?: boolean;
|
|
471
480
|
}
|
|
472
|
-
declare const AppShellMain: React
|
|
473
|
-
interface AppShellFooterProps extends React
|
|
481
|
+
declare const AppShellMain: React.ForwardRefExoticComponent<AppShellMainProps & React.RefAttributes<HTMLElement>>;
|
|
482
|
+
interface AppShellFooterProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof footerVariants> {
|
|
474
483
|
asChild?: boolean;
|
|
475
484
|
}
|
|
476
|
-
declare const AppShellFooter: React
|
|
485
|
+
declare const AppShellFooter: React.ForwardRefExoticComponent<AppShellFooterProps & React.RefAttributes<HTMLElement>>;
|
|
477
486
|
|
|
478
487
|
/**
|
|
479
488
|
* Avatar — circular user/entity glyph. Wraps Radix's avatar primitive
|
|
@@ -496,25 +505,25 @@ declare const AppShellFooter: React$1.ForwardRefExoticComponent<AppShellFooterPr
|
|
|
496
505
|
declare const avatarSizes: (props?: ({
|
|
497
506
|
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
498
507
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
499
|
-
interface AvatarProps extends React
|
|
508
|
+
interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarSizes> {
|
|
500
509
|
}
|
|
501
|
-
declare const Avatar: React
|
|
502
|
-
declare const AvatarImage: React
|
|
510
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
511
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
503
512
|
declare const avatarFallbackTones: (props?: ({
|
|
504
513
|
tone?: "muted" | "primary" | "violet" | "amber" | "emerald" | "sky" | "rose" | "plum" | "lime" | null | undefined;
|
|
505
514
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
506
515
|
type AvatarTone = NonNullable<VariantProps<typeof avatarFallbackTones>["tone"]>;
|
|
507
|
-
interface AvatarFallbackProps extends React
|
|
516
|
+
interface AvatarFallbackProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, VariantProps<typeof avatarFallbackTones> {
|
|
508
517
|
}
|
|
509
|
-
declare const AvatarFallback: React
|
|
518
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
510
519
|
|
|
511
520
|
declare const badgeVariants: (props?: ({
|
|
512
521
|
variant?: "default" | "secondary" | "destructive" | "outline" | "highlight" | "success" | "warning" | "info" | "success-soft" | "warning-soft" | "destructive-soft" | "info-soft" | "highlight-soft" | "success-outline" | "warning-outline" | "destructive-outline" | "info-outline" | null | undefined;
|
|
513
522
|
rounded?: "default" | "full" | null | undefined;
|
|
514
523
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
515
|
-
interface BadgeProps extends React
|
|
524
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
516
525
|
}
|
|
517
|
-
declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React
|
|
526
|
+
declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React.JSX.Element;
|
|
518
527
|
|
|
519
528
|
/**
|
|
520
529
|
* Surface — what a container is *made of*.
|
|
@@ -576,10 +585,10 @@ type Surface = "solid" | "translucent" | "glass" | "glass-strong";
|
|
|
576
585
|
*/
|
|
577
586
|
declare const bannerVariants: (props?: ({
|
|
578
587
|
variant?: "default" | "destructive" | "success" | "warning" | "info" | "announcement" | null | undefined;
|
|
579
|
-
align?: "
|
|
588
|
+
align?: "center" | "between" | "start" | null | undefined;
|
|
580
589
|
sticky?: boolean | null | undefined;
|
|
581
590
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
582
|
-
interface BannerProps extends Omit<React
|
|
591
|
+
interface BannerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof bannerVariants> {
|
|
583
592
|
/**
|
|
584
593
|
* Material the banner is *made of*. Defaults to `solid` (the
|
|
585
594
|
* variant's tinted bg). `glass` is useful when the banner sits over
|
|
@@ -603,14 +612,14 @@ interface BannerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "titl
|
|
|
603
612
|
* Leading slot — typically a single Lucide icon. The status icon
|
|
604
613
|
* is NOT inferred from variant; pass the one that fits your message.
|
|
605
614
|
*/
|
|
606
|
-
icon?: React
|
|
615
|
+
icon?: React.ReactNode;
|
|
607
616
|
/**
|
|
608
617
|
* Optional trailing action — usually a Button or anchor. Sits to the
|
|
609
618
|
* left of the dismiss button.
|
|
610
619
|
*/
|
|
611
|
-
action?: React
|
|
620
|
+
action?: React.ReactNode;
|
|
612
621
|
}
|
|
613
|
-
declare const Banner: React
|
|
622
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
614
623
|
|
|
615
624
|
/**
|
|
616
625
|
* Button — primary action primitive.
|
|
@@ -632,18 +641,26 @@ declare const Banner: React$1.ForwardRefExoticComponent<BannerProps & React$1.Re
|
|
|
632
641
|
* consistent across primitives.
|
|
633
642
|
*/
|
|
634
643
|
declare const buttonVariants: (props?: ({
|
|
635
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "
|
|
636
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "
|
|
644
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "raised" | null | undefined;
|
|
645
|
+
size?: "default" | "2xs" | "xs" | "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
637
646
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
638
|
-
interface ButtonProps extends React
|
|
647
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
639
648
|
asChild?: boolean;
|
|
649
|
+
/** Presence TRAIT: tactile elevation (bevel + drop + hover glow +
|
|
650
|
+
* pressed sink) layered onto WHATEVER variant the button wears —
|
|
651
|
+
* a raised primary, raised outline, etc. Glow tone reads
|
|
652
|
+
* --btn-glow → --accent-glow → --selected-glow; override
|
|
653
|
+
* per-button via style={{ "--btn-glow": "var(--warning)" }}.
|
|
654
|
+
* variant="raised" remains the neutral-key alias (trait +
|
|
655
|
+
* secondary surface). */
|
|
656
|
+
raised?: boolean;
|
|
640
657
|
}
|
|
641
|
-
declare const Button: React
|
|
658
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
642
659
|
|
|
643
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React
|
|
644
|
-
buttonVariant?: React
|
|
645
|
-
}): React
|
|
646
|
-
declare function CalendarDayButton({ className, day, modifiers, ...props }: React
|
|
660
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
661
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
662
|
+
}): React.JSX.Element;
|
|
663
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
|
|
647
664
|
|
|
648
665
|
/**
|
|
649
666
|
* Carousel — token-driven slideshow primitive built on embla-carousel.
|
|
@@ -688,7 +705,7 @@ declare function CalendarDayButton({ className, day, modifiers, ...props }: Reac
|
|
|
688
705
|
*/
|
|
689
706
|
|
|
690
707
|
type EmblaApi = NonNullable<UseEmblaCarouselType[1]>;
|
|
691
|
-
interface CarouselProps extends React
|
|
708
|
+
interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
692
709
|
/** Loop back to slide 0 after the last one. Default true. */
|
|
693
710
|
loop?: boolean;
|
|
694
711
|
/** Slide alignment within the viewport when not all slides are full-width.
|
|
@@ -722,7 +739,7 @@ interface AutoplayConfig {
|
|
|
722
739
|
* matches the MediaSurface "play when visible" convention. Default true. */
|
|
723
740
|
pauseWhenOffscreen?: boolean;
|
|
724
741
|
}
|
|
725
|
-
interface CarouselRootComponent extends React
|
|
742
|
+
interface CarouselRootComponent extends React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>> {
|
|
726
743
|
Slide: typeof CarouselSlide;
|
|
727
744
|
VideoSlide: typeof CarouselVideoSlide;
|
|
728
745
|
Dots: typeof CarouselDots;
|
|
@@ -730,13 +747,13 @@ interface CarouselRootComponent extends React$1.ForwardRefExoticComponent<Carous
|
|
|
730
747
|
Prev: typeof CarouselPrev;
|
|
731
748
|
Next: typeof CarouselNext;
|
|
732
749
|
}
|
|
733
|
-
interface CarouselSlideProps extends React
|
|
750
|
+
interface CarouselSlideProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
734
751
|
/** Per-slide autoplay duration in ms. Overrides the carousel's default
|
|
735
752
|
* delay for this slide only. e.g. `duration={15000}` keeps a hero
|
|
736
753
|
* still on screen for 15s while the rest cycle at 5s. */
|
|
737
754
|
duration?: number;
|
|
738
755
|
}
|
|
739
|
-
declare const CarouselSlide: React
|
|
756
|
+
declare const CarouselSlide: React.ForwardRefExoticComponent<CarouselSlideProps & React.RefAttributes<HTMLDivElement>>;
|
|
740
757
|
interface CarouselVideoSlideProps extends Omit<CarouselSlideProps, "children"> {
|
|
741
758
|
src: string;
|
|
742
759
|
/** Poster shown until the slide becomes active. Reuses the
|
|
@@ -753,8 +770,8 @@ interface CarouselVideoSlideProps extends Omit<CarouselSlideProps, "children"> {
|
|
|
753
770
|
/** Object-fit for the video. Default `"cover"`. */
|
|
754
771
|
fit?: "cover" | "contain";
|
|
755
772
|
}
|
|
756
|
-
declare const CarouselVideoSlide: React
|
|
757
|
-
interface CarouselDotsProps extends React
|
|
773
|
+
declare const CarouselVideoSlide: React.ForwardRefExoticComponent<CarouselVideoSlideProps & React.RefAttributes<HTMLDivElement>>;
|
|
774
|
+
interface CarouselDotsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
758
775
|
/** Position the dots relative to the viewport. Default `"below"` puts
|
|
759
776
|
* them in flow underneath; `"overlay"` floats them at the bottom of
|
|
760
777
|
* the carousel area on top of the slides. */
|
|
@@ -766,25 +783,25 @@ interface CarouselDotsProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
766
783
|
index: number;
|
|
767
784
|
active: boolean;
|
|
768
785
|
onClick: () => void;
|
|
769
|
-
}) => React
|
|
786
|
+
}) => React.ReactNode;
|
|
770
787
|
}
|
|
771
|
-
declare const CarouselDots: React
|
|
772
|
-
interface CarouselArrowsProps extends React
|
|
788
|
+
declare const CarouselDots: React.ForwardRefExoticComponent<CarouselDotsProps & React.RefAttributes<HTMLDivElement>>;
|
|
789
|
+
interface CarouselArrowsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
773
790
|
/** Position relative to the viewport. `"overlay"` (default) floats the
|
|
774
791
|
* arrows over the slides; `"outside"` places them in flow alongside
|
|
775
792
|
* the carousel (useful when the viewport is full-bleed). */
|
|
776
793
|
position?: "overlay" | "outside";
|
|
777
794
|
}
|
|
778
|
-
declare const CarouselArrows: React
|
|
779
|
-
interface CarouselNavButtonProps extends React
|
|
795
|
+
declare const CarouselArrows: React.ForwardRefExoticComponent<CarouselArrowsProps & React.RefAttributes<HTMLDivElement>>;
|
|
796
|
+
interface CarouselNavButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
780
797
|
}
|
|
781
|
-
declare const CarouselPrev: React
|
|
782
|
-
declare const CarouselNext: React
|
|
798
|
+
declare const CarouselPrev: React.ForwardRefExoticComponent<CarouselNavButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
799
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<CarouselNavButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
783
800
|
declare const Carousel: CarouselRootComponent;
|
|
784
801
|
|
|
785
802
|
declare function useCarouselApi(): EmblaApi | undefined;
|
|
786
803
|
|
|
787
|
-
interface CardProps extends React
|
|
804
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
788
805
|
/**
|
|
789
806
|
* What the card surface is *made of*. Composes with `shadow-elevation-*`
|
|
790
807
|
* (depth) and `gds-aura-*` (state signal) — see PRESENCE.md.
|
|
@@ -799,14 +816,14 @@ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
799
816
|
*/
|
|
800
817
|
surface?: Surface;
|
|
801
818
|
}
|
|
802
|
-
declare const Card: React
|
|
803
|
-
declare const CardHeader: React
|
|
804
|
-
declare const CardTitle: React
|
|
805
|
-
declare const CardDescription: React
|
|
806
|
-
declare const CardContent: React
|
|
807
|
-
declare const CardFooter: React
|
|
819
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
820
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
821
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
822
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
823
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
824
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
808
825
|
|
|
809
|
-
declare const Checkbox: React
|
|
826
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
810
827
|
|
|
811
828
|
/**
|
|
812
829
|
* Field — the inline composition primitive for a control + its caption.
|
|
@@ -839,17 +856,85 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive
|
|
|
839
856
|
* RadioCard / CheckboxCard / SwitchCard instead — see `selection-card.tsx`.
|
|
840
857
|
*/
|
|
841
858
|
type FieldLayout = "option" | "setting";
|
|
842
|
-
declare const FieldLabel: React
|
|
843
|
-
declare const FieldDescription: React
|
|
844
|
-
declare const FieldTrailing: React
|
|
845
|
-
interface FieldProps extends React
|
|
859
|
+
declare const FieldLabel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
860
|
+
declare const FieldDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
861
|
+
declare const FieldTrailing: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
862
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
846
863
|
/** `option` (control leads) or `setting` (text leads, control trailing). */
|
|
847
864
|
layout?: FieldLayout;
|
|
848
865
|
}
|
|
849
|
-
declare const Field: React
|
|
850
|
-
Label: React
|
|
851
|
-
Description: React
|
|
852
|
-
Trailing: React
|
|
866
|
+
declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>> & {
|
|
867
|
+
Label: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
868
|
+
Description: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
869
|
+
Trailing: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* PropertyList — the read-only "one record, stacked" display primitive.
|
|
874
|
+
*
|
|
875
|
+
* A property list is a table row transposed: where a Table runs the schema
|
|
876
|
+
* horizontally (columns) across many records, a PropertyList takes ONE
|
|
877
|
+
* record and stacks its fields vertically as label / value pairs. Reach for
|
|
878
|
+
* it for detail panels, inspectors, "about this item" cards, order summaries
|
|
879
|
+
* — anywhere you're showing the properties of a single thing.
|
|
880
|
+
*
|
|
881
|
+
* <PropertyList>
|
|
882
|
+
* <PropertyList.Row label="Status" icon={<Activity />}>
|
|
883
|
+
* <Badge variant="warning-soft">Low</Badge>
|
|
884
|
+
* </PropertyList.Row>
|
|
885
|
+
* <PropertyList.Row label="Owner">
|
|
886
|
+
* <Avatar className="h-5 w-5"><AvatarFallback>EO</AvatarFallback></Avatar>
|
|
887
|
+
* </PropertyList.Row>
|
|
888
|
+
* </PropertyList>
|
|
889
|
+
*
|
|
890
|
+
* The value side is deliberately polymorphic — it's a slot (`children`, or
|
|
891
|
+
* the `value` prop), not a string. A row can hold plain text, a date, a
|
|
892
|
+
* single Badge, a tag group, an avatar stack, a link, anything. That's the
|
|
893
|
+
* whole point: the same value renderers that fill a Table cell drop straight
|
|
894
|
+
* into a PropertyList row, so the two surfaces never drift.
|
|
895
|
+
*
|
|
896
|
+
* Semantics: renders a real `<dl>` with `<dt>` / `<dd>` pairs (each pair
|
|
897
|
+
* wrapped in a `<div>`, which the HTML spec allows), so it's announced as a
|
|
898
|
+
* description list by assistive tech for free.
|
|
899
|
+
*
|
|
900
|
+
* Layout + density are token-driven (`--gds-property-list-*`) so a narrow
|
|
901
|
+
* inspector and a wide settings page can retune the label column and rhythm
|
|
902
|
+
* without prop-drilling. `layout="stack"` drops the label above the value
|
|
903
|
+
* for tight columns.
|
|
904
|
+
*
|
|
905
|
+
* This is a DISPLAY primitive. For an editable field (label + control), use
|
|
906
|
+
* `Field`; a detail panel that flips between read and edit typically swaps a
|
|
907
|
+
* PropertyList for a stack of Fields.
|
|
908
|
+
*/
|
|
909
|
+
type PropertyListLayout = "row" | "stack";
|
|
910
|
+
type PropertyListDensity = "compact" | "default" | "relaxed";
|
|
911
|
+
type PropertyListAlign = "start" | "center";
|
|
912
|
+
interface PropertyListProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
913
|
+
/** `row` (default): label column beside value. `stack`: label above value (narrow panels). */
|
|
914
|
+
layout?: PropertyListLayout;
|
|
915
|
+
/** Row rhythm. `compact` for dense inspectors, `relaxed` for airy settings pages. */
|
|
916
|
+
density?: PropertyListDensity;
|
|
917
|
+
/** Default vertical alignment of label vs value. `center` for single-line values, `start` when values wrap (tag groups, multi-line). */
|
|
918
|
+
align?: PropertyListAlign;
|
|
919
|
+
/** Hairline rule between rows. */
|
|
920
|
+
divider?: boolean;
|
|
921
|
+
/** Override the label column width (any CSS length). Sets `--gds-property-list-label-width` for all rows. */
|
|
922
|
+
labelWidth?: string;
|
|
923
|
+
}
|
|
924
|
+
interface PropertyListRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
925
|
+
/** The property name (the `<dt>`). */
|
|
926
|
+
label: React.ReactNode;
|
|
927
|
+
/** Optional leading glyph, rendered muted at `--gds-property-list-icon-size`. */
|
|
928
|
+
icon?: React.ReactNode;
|
|
929
|
+
/** The value. Provide via `value` or as `children` — accepts any node (text, Badge, tag group, Avatar stack, link…). */
|
|
930
|
+
value?: React.ReactNode;
|
|
931
|
+
/** Per-row override of the list's vertical alignment. */
|
|
932
|
+
align?: PropertyListAlign;
|
|
933
|
+
children?: React.ReactNode;
|
|
934
|
+
}
|
|
935
|
+
declare const PropertyListRow: React.ForwardRefExoticComponent<PropertyListRowProps & React.RefAttributes<HTMLDivElement>>;
|
|
936
|
+
declare const PropertyList: React.ForwardRefExoticComponent<PropertyListProps & React.RefAttributes<HTMLDListElement>> & {
|
|
937
|
+
Row: React.ForwardRefExoticComponent<PropertyListRowProps & React.RefAttributes<HTMLDivElement>>;
|
|
853
938
|
};
|
|
854
939
|
|
|
855
940
|
/**
|
|
@@ -884,30 +969,30 @@ declare const Field: React$1.ForwardRefExoticComponent<FieldProps & React$1.RefA
|
|
|
884
969
|
type IndicatorPosition = "leading" | "trailing";
|
|
885
970
|
interface SelectionCardOwnProps {
|
|
886
971
|
/** Title line. Omit and pass `children` for fully custom content. */
|
|
887
|
-
label?: React
|
|
972
|
+
label?: React.ReactNode;
|
|
888
973
|
/** Secondary line under the label. */
|
|
889
|
-
description?: React
|
|
974
|
+
description?: React.ReactNode;
|
|
890
975
|
/** Optional slot rendered between the content and the indicator
|
|
891
976
|
* (a Badge, price, kbd hint, …). */
|
|
892
|
-
aside?: React
|
|
977
|
+
aside?: React.ReactNode;
|
|
893
978
|
/** Hide the dot/check/switch glyph — selection is then conveyed purely by
|
|
894
979
|
* the card's selected border + background. Semantics stay intact. */
|
|
895
980
|
hideIndicator?: boolean;
|
|
896
981
|
/** Which side the indicator sits on. Default `trailing`. */
|
|
897
982
|
indicatorPosition?: IndicatorPosition;
|
|
898
983
|
}
|
|
899
|
-
interface RadioCardProps extends Omit<React
|
|
900
|
-
children?: React
|
|
984
|
+
interface RadioCardProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, "children">, SelectionCardOwnProps {
|
|
985
|
+
children?: React.ReactNode;
|
|
901
986
|
}
|
|
902
|
-
declare const RadioCard: React
|
|
903
|
-
interface CheckboxCardProps extends Omit<React
|
|
904
|
-
children?: React
|
|
987
|
+
declare const RadioCard: React.ForwardRefExoticComponent<RadioCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
988
|
+
interface CheckboxCardProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, "children">, SelectionCardOwnProps {
|
|
989
|
+
children?: React.ReactNode;
|
|
905
990
|
}
|
|
906
|
-
declare const CheckboxCard: React
|
|
907
|
-
interface SwitchCardProps extends Omit<React
|
|
908
|
-
children?: React
|
|
991
|
+
declare const CheckboxCard: React.ForwardRefExoticComponent<CheckboxCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
992
|
+
interface SwitchCardProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, "children">, SelectionCardOwnProps {
|
|
993
|
+
children?: React.ReactNode;
|
|
909
994
|
}
|
|
910
|
-
declare const SwitchCard: React
|
|
995
|
+
declare const SwitchCard: React.ForwardRefExoticComponent<SwitchCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
911
996
|
|
|
912
997
|
/**
|
|
913
998
|
* Code — syntax-highlighted code surface with diff, line-emphasis, and
|
|
@@ -969,7 +1054,7 @@ interface CodeDiff {
|
|
|
969
1054
|
/** 1-indexed line numbers marked as removed (red bg + `-` gutter). */
|
|
970
1055
|
removed?: number[];
|
|
971
1056
|
}
|
|
972
|
-
interface CodeProps extends Omit<React
|
|
1057
|
+
interface CodeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
973
1058
|
/**
|
|
974
1059
|
* Source code to render. Optional when `steps` is provided — the
|
|
975
1060
|
* scripted machine builds its own buffer and ignores `source`. When
|
|
@@ -1084,7 +1169,7 @@ interface CodeProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "childr
|
|
|
1084
1169
|
*/
|
|
1085
1170
|
maxLines?: number;
|
|
1086
1171
|
}
|
|
1087
|
-
declare const Code: React
|
|
1172
|
+
declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLDivElement>>;
|
|
1088
1173
|
|
|
1089
1174
|
/**
|
|
1090
1175
|
* Message — the canonical "avatar + author + timestamp + body" row.
|
|
@@ -1122,26 +1207,26 @@ declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAtt
|
|
|
1122
1207
|
* - Don't use Message for non-people activity (system events,
|
|
1123
1208
|
* log lines). Reach for Callout or a plain Row.
|
|
1124
1209
|
*/
|
|
1125
|
-
interface MessageProps extends Omit<React
|
|
1210
|
+
interface MessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
1126
1211
|
/** Display name of the message author. */
|
|
1127
1212
|
author: string;
|
|
1128
1213
|
/**
|
|
1129
1214
|
* Timestamp string ("11:24", "2 hours ago") OR any node for custom
|
|
1130
1215
|
* formatting (tooltip-wrapped time, link to permalink, etc).
|
|
1131
1216
|
*/
|
|
1132
|
-
timestamp?: React
|
|
1217
|
+
timestamp?: React.ReactNode;
|
|
1133
1218
|
/**
|
|
1134
1219
|
* Avatar slot. Pass any `<Avatar>` composition. When omitted, the
|
|
1135
1220
|
* row renders without an avatar column — handy for grouped messages
|
|
1136
1221
|
* from the same author where only the first row shows the avatar.
|
|
1137
1222
|
*/
|
|
1138
|
-
avatar?: React
|
|
1223
|
+
avatar?: React.ReactNode;
|
|
1139
1224
|
/**
|
|
1140
1225
|
* Small chip(s) next to the author name. Use for "OP", "Bot",
|
|
1141
1226
|
* "Admin", or any role/state badge that belongs in the header
|
|
1142
1227
|
* rhythm rather than the body.
|
|
1143
1228
|
*/
|
|
1144
|
-
badge?: React
|
|
1229
|
+
badge?: React.ReactNode;
|
|
1145
1230
|
/**
|
|
1146
1231
|
* Editing state — renders an "(edited)" hint next to the timestamp.
|
|
1147
1232
|
* Pass a string to customise the label (e.g. "(edited 2 minutes ago)").
|
|
@@ -1157,12 +1242,12 @@ interface MessageProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "tit
|
|
|
1157
1242
|
* icon buttons (reply / react / pin / more). Pushed to the right
|
|
1158
1243
|
* with `ml-auto`.
|
|
1159
1244
|
*/
|
|
1160
|
-
actions?: React
|
|
1245
|
+
actions?: React.ReactNode;
|
|
1161
1246
|
/**
|
|
1162
1247
|
* Reactions slot — renders below the body. Typically a Row of
|
|
1163
1248
|
* reaction chips (emoji + count). Hidden when no node is passed.
|
|
1164
1249
|
*/
|
|
1165
|
-
reactions?: React
|
|
1250
|
+
reactions?: React.ReactNode;
|
|
1166
1251
|
/**
|
|
1167
1252
|
* Thread / reply count — renders a "N replies" link affordance
|
|
1168
1253
|
* below the body. Click handler is the consumer's responsibility.
|
|
@@ -1192,9 +1277,9 @@ interface MessageProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "tit
|
|
|
1192
1277
|
* can embed rich content — Markdown-rendered prose, images,
|
|
1193
1278
|
* embedded cards, etc. Plain text is the common case.
|
|
1194
1279
|
*/
|
|
1195
|
-
children: React
|
|
1280
|
+
children: React.ReactNode;
|
|
1196
1281
|
}
|
|
1197
|
-
declare const Message: React
|
|
1282
|
+
declare const Message: React.ForwardRefExoticComponent<MessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
1198
1283
|
|
|
1199
1284
|
/**
|
|
1200
1285
|
* Shared types + presets for scripted component demos.
|
|
@@ -1343,7 +1428,7 @@ interface UseScriptedDemoOptions<TStep> {
|
|
|
1343
1428
|
*/
|
|
1344
1429
|
loopDelay?: number;
|
|
1345
1430
|
/** Container ref for inView detection. Required when `trigger="inView"`. */
|
|
1346
|
-
containerRef?: React
|
|
1431
|
+
containerRef?: React.RefObject<HTMLElement | null>;
|
|
1347
1432
|
/**
|
|
1348
1433
|
* Fires when one loop iteration completes (or the whole run, when
|
|
1349
1434
|
* `loop` is false). Consumers can use this to reset their buffer or
|
|
@@ -1395,7 +1480,7 @@ declare function useScriptedDemo<TStep>(opts: UseScriptedDemoOptions<TStep>): Sc
|
|
|
1395
1480
|
* than motion / framer keeps the cursor available in environments
|
|
1396
1481
|
* that disable JS animation but still render the page.
|
|
1397
1482
|
*/
|
|
1398
|
-
interface BlinkingCursorProps extends Omit<React
|
|
1483
|
+
interface BlinkingCursorProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
1399
1484
|
/**
|
|
1400
1485
|
* Visual variant. `inline` (default) is for caret-in-text demos
|
|
1401
1486
|
* (Code, Composer). `block` is for terminal-style square cursors
|
|
@@ -1403,7 +1488,7 @@ interface BlinkingCursorProps extends Omit<React$1.HTMLAttributes<HTMLSpanElemen
|
|
|
1403
1488
|
*/
|
|
1404
1489
|
variant?: "inline" | "block";
|
|
1405
1490
|
}
|
|
1406
|
-
declare const BlinkingCursor: React
|
|
1491
|
+
declare const BlinkingCursor: React.ForwardRefExoticComponent<BlinkingCursorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1407
1492
|
|
|
1408
1493
|
/**
|
|
1409
1494
|
* DemoStage + Reveal — staged appearance for whole-interface demos.
|
|
@@ -1461,9 +1546,9 @@ interface DemoStageProps {
|
|
|
1461
1546
|
*/
|
|
1462
1547
|
visibleWhenIdle?: boolean;
|
|
1463
1548
|
className?: string;
|
|
1464
|
-
children: React
|
|
1549
|
+
children: React.ReactNode;
|
|
1465
1550
|
}
|
|
1466
|
-
declare function DemoStage({ steps, speed, trigger, play, loop, defaultAnimation, visibleWhenIdle, className, children, }: DemoStageProps): React
|
|
1551
|
+
declare function DemoStage({ steps, speed, trigger, play, loop, defaultAnimation, visibleWhenIdle, className, children, }: DemoStageProps): React.JSX.Element;
|
|
1467
1552
|
interface RevealProps {
|
|
1468
1553
|
/** Stage target id. The matching `{ type: "reveal", target: id }` step shows this. */
|
|
1469
1554
|
id: string;
|
|
@@ -1492,9 +1577,9 @@ interface RevealProps {
|
|
|
1492
1577
|
*/
|
|
1493
1578
|
onHide?: () => void;
|
|
1494
1579
|
className?: string;
|
|
1495
|
-
children: React
|
|
1580
|
+
children: React.ReactNode;
|
|
1496
1581
|
}
|
|
1497
|
-
declare function Reveal({ id, animation, durationMs, hideOutsideStage, onReveal, onHide, className, children, }: RevealProps): React
|
|
1582
|
+
declare function Reveal({ id, animation, durationMs, hideOutsideStage, onReveal, onHide, className, children, }: RevealProps): React.JSX.Element;
|
|
1498
1583
|
|
|
1499
1584
|
/**
|
|
1500
1585
|
* Composer — the generic text composition surface for the design system.
|
|
@@ -1701,13 +1786,13 @@ interface ComposerProps {
|
|
|
1701
1786
|
* Custom content for the left action slot. Replaces the default
|
|
1702
1787
|
* paperclip button when `attachments` is enabled.
|
|
1703
1788
|
*/
|
|
1704
|
-
leftActions?: React
|
|
1789
|
+
leftActions?: React.ReactNode;
|
|
1705
1790
|
/**
|
|
1706
1791
|
* Custom content for the right action slot. Replaces the default
|
|
1707
1792
|
* Send / Stop button. Use the `useComposer()` hook inside to access
|
|
1708
1793
|
* imperative methods.
|
|
1709
1794
|
*/
|
|
1710
|
-
rightActions?: React
|
|
1795
|
+
rightActions?: React.ReactNode;
|
|
1711
1796
|
/** Hide the default Send button without replacing it. */
|
|
1712
1797
|
hideSend?: boolean;
|
|
1713
1798
|
/** Scripted demo steps. */
|
|
@@ -1750,8 +1835,8 @@ interface ComposerProps {
|
|
|
1750
1835
|
readOnly?: boolean;
|
|
1751
1836
|
className?: string;
|
|
1752
1837
|
}
|
|
1753
|
-
declare const Composer: React
|
|
1754
|
-
declare const ComposerReply: React
|
|
1838
|
+
declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<ComposerHandle>>;
|
|
1839
|
+
declare const ComposerReply: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<ComposerHandle>>;
|
|
1755
1840
|
|
|
1756
1841
|
/**
|
|
1757
1842
|
* DatePicker + DateRangePicker
|
|
@@ -1795,9 +1880,9 @@ interface DatePickerBaseProps {
|
|
|
1795
1880
|
*/
|
|
1796
1881
|
format?: string;
|
|
1797
1882
|
/** Forwarded to the underlying `react-day-picker` Calendar. */
|
|
1798
|
-
captionLayout?: React
|
|
1883
|
+
captionLayout?: React.ComponentProps<typeof Calendar>["captionLayout"];
|
|
1799
1884
|
/** Icon shown in the trigger. Defaults to lucide's CalendarIcon. */
|
|
1800
|
-
icon?: React
|
|
1885
|
+
icon?: React.ReactNode;
|
|
1801
1886
|
/** Accessible label for screen readers when no date is selected. */
|
|
1802
1887
|
"aria-label"?: string;
|
|
1803
1888
|
}
|
|
@@ -1815,15 +1900,15 @@ interface DateRangePickerProps extends DatePickerBaseProps {
|
|
|
1815
1900
|
/** Number of months to show side-by-side. Defaults to 2. */
|
|
1816
1901
|
numberOfMonths?: number;
|
|
1817
1902
|
}
|
|
1818
|
-
declare function DatePicker({ value, onChange, placeholder, disabled, className, contentClassName, align, side, format, captionLayout, icon, "aria-label": ariaLabel, }: DatePickerProps): React
|
|
1819
|
-
declare function DateRangePicker({ value, onChange, placeholder, disabled, className, contentClassName, align, side, format, captionLayout, icon, numberOfMonths, "aria-label": ariaLabel, }: DateRangePickerProps): React
|
|
1903
|
+
declare function DatePicker({ value, onChange, placeholder, disabled, className, contentClassName, align, side, format, captionLayout, icon, "aria-label": ariaLabel, }: DatePickerProps): React.JSX.Element;
|
|
1904
|
+
declare function DateRangePicker({ value, onChange, placeholder, disabled, className, contentClassName, align, side, format, captionLayout, icon, numberOfMonths, "aria-label": ariaLabel, }: DateRangePickerProps): React.JSX.Element;
|
|
1820
1905
|
|
|
1821
|
-
declare const Dialog: React
|
|
1822
|
-
declare const DialogTrigger: React
|
|
1823
|
-
declare const DialogPortal: React
|
|
1824
|
-
declare const DialogClose: React
|
|
1825
|
-
declare const DialogOverlay: React
|
|
1826
|
-
interface DialogContentProps extends React
|
|
1906
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
1907
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1908
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
1909
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1910
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1911
|
+
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
1827
1912
|
/**
|
|
1828
1913
|
* What the dialog surface is *made of*. Composes with the overlay
|
|
1829
1914
|
* scrim — see PRESENCE.md and dialog.md for scenarios.
|
|
@@ -1837,20 +1922,20 @@ interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof Dia
|
|
|
1837
1922
|
*/
|
|
1838
1923
|
surface?: Surface;
|
|
1839
1924
|
}
|
|
1840
|
-
declare const DialogContent: React
|
|
1925
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1841
1926
|
declare const DialogHeader: {
|
|
1842
|
-
({ className, ...props }: React
|
|
1927
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
1843
1928
|
displayName: string;
|
|
1844
1929
|
};
|
|
1845
1930
|
declare const DialogFooter: {
|
|
1846
|
-
({ className, ...props }: React
|
|
1931
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
1847
1932
|
displayName: string;
|
|
1848
1933
|
};
|
|
1849
|
-
declare const DialogTitle: React
|
|
1850
|
-
declare const DialogDescription: React
|
|
1934
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1935
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1851
1936
|
|
|
1852
|
-
declare const DropdownMenu: React
|
|
1853
|
-
declare const DropdownMenuTrigger: React
|
|
1937
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
1938
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1854
1939
|
/**
|
|
1855
1940
|
* Menu density. Set `size` on `<DropdownMenuContent>` (or
|
|
1856
1941
|
* `<DropdownMenuSubContent>`) and every item inside — Item, Checkbox,
|
|
@@ -1860,21 +1945,21 @@ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMen
|
|
|
1860
1945
|
* tool-panel density (the Studio inspector).
|
|
1861
1946
|
*/
|
|
1862
1947
|
type DropdownMenuSize = "default" | "sm" | "xs";
|
|
1863
|
-
declare const DropdownMenuGroup: React
|
|
1864
|
-
declare const DropdownMenuPortal: React
|
|
1865
|
-
declare const DropdownMenuSub: React
|
|
1866
|
-
declare const DropdownMenuRadioGroup: React
|
|
1867
|
-
declare const DropdownMenuSubTrigger: React
|
|
1948
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1949
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
1950
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
1951
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1952
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1868
1953
|
inset?: boolean;
|
|
1869
|
-
} & React
|
|
1870
|
-
interface DropdownMenuSubContentProps extends React
|
|
1954
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1955
|
+
interface DropdownMenuSubContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> {
|
|
1871
1956
|
/** What the submenu surface is *made of*. See dropdown-menu.md. */
|
|
1872
1957
|
surface?: Surface;
|
|
1873
1958
|
/** Menu density — cascades to items via context. */
|
|
1874
1959
|
size?: DropdownMenuSize;
|
|
1875
1960
|
}
|
|
1876
|
-
declare const DropdownMenuSubContent: React
|
|
1877
|
-
interface DropdownMenuContentProps extends React
|
|
1961
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1962
|
+
interface DropdownMenuContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> {
|
|
1878
1963
|
/**
|
|
1879
1964
|
* What the menu surface is *made of*. `solid` (default) is `bg-popover`.
|
|
1880
1965
|
* `translucent` matches Apple HIG / iOS menu sheets. `glass` for menus
|
|
@@ -1884,18 +1969,18 @@ interface DropdownMenuContentProps extends React$1.ComponentPropsWithoutRef<type
|
|
|
1884
1969
|
/** Menu density — cascades to items via context. */
|
|
1885
1970
|
size?: DropdownMenuSize;
|
|
1886
1971
|
}
|
|
1887
|
-
declare const DropdownMenuContent: React
|
|
1888
|
-
declare const DropdownMenuItem: React
|
|
1972
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1973
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1889
1974
|
inset?: boolean;
|
|
1890
|
-
} & React
|
|
1891
|
-
declare const DropdownMenuCheckboxItem: React
|
|
1892
|
-
declare const DropdownMenuRadioItem: React
|
|
1893
|
-
declare const DropdownMenuLabel: React
|
|
1975
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1976
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1977
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1978
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1894
1979
|
inset?: boolean;
|
|
1895
|
-
} & React
|
|
1896
|
-
declare const DropdownMenuSeparator: React
|
|
1980
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1981
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1897
1982
|
declare const DropdownMenuShortcut: {
|
|
1898
|
-
({ className, ...props }: React
|
|
1983
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
1899
1984
|
displayName: string;
|
|
1900
1985
|
};
|
|
1901
1986
|
|
|
@@ -1912,31 +1997,34 @@ declare const DropdownMenuShortcut: {
|
|
|
1912
1997
|
* rationale.
|
|
1913
1998
|
*/
|
|
1914
1999
|
declare const inputVariants: (props?: ({
|
|
1915
|
-
size?: "
|
|
2000
|
+
size?: "default" | "2xs" | "xs" | "sm" | null | undefined;
|
|
2001
|
+
variant?: "default" | "ghost" | null | undefined;
|
|
1916
2002
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1917
2003
|
type InputSize = NonNullable<VariantProps<typeof inputVariants>["size"]>;
|
|
1918
|
-
type
|
|
2004
|
+
type InputVariant = NonNullable<VariantProps<typeof inputVariants>["variant"]>;
|
|
2005
|
+
type InputProps = Omit<React.ComponentProps<"input">, "size"> & {
|
|
1919
2006
|
size?: InputSize;
|
|
2007
|
+
variant?: InputVariant;
|
|
1920
2008
|
/** Adornment rendered inside the field on the leading edge — an icon,
|
|
1921
2009
|
* a unit, a prefix. Non-interactive by default (clicks pass through
|
|
1922
2010
|
* to focus the input); pass an element with its own pointer-events
|
|
1923
2011
|
* if you need it clickable. */
|
|
1924
|
-
startSlot?: React
|
|
2012
|
+
startSlot?: React.ReactNode;
|
|
1925
2013
|
/** Adornment rendered inside the field on the trailing edge — a unit
|
|
1926
2014
|
* ("px"), a clear button, a stepper. Same pointer rules as
|
|
1927
2015
|
* `startSlot`. */
|
|
1928
|
-
endSlot?: React
|
|
2016
|
+
endSlot?: React.ReactNode;
|
|
1929
2017
|
};
|
|
1930
|
-
declare const Input: React
|
|
2018
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1931
2019
|
|
|
1932
|
-
declare const Label: React
|
|
1933
|
-
size?: "
|
|
1934
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React
|
|
2020
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ({
|
|
2021
|
+
size?: "default" | "2xs" | "xs" | "sm" | null | undefined;
|
|
2022
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
1935
2023
|
|
|
1936
|
-
declare const Popover: React
|
|
1937
|
-
declare const PopoverTrigger: React
|
|
1938
|
-
declare const PopoverAnchor: React
|
|
1939
|
-
interface PopoverContentProps extends React
|
|
2024
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
2025
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2026
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
2027
|
+
interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
1940
2028
|
/**
|
|
1941
2029
|
* What the popover surface is *made of*. Defaults to `solid`
|
|
1942
2030
|
* (`bg-popover`). `translucent` is the Apple HIG menu-sheet feel.
|
|
@@ -1944,9 +2032,9 @@ interface PopoverContentProps extends React$1.ComponentPropsWithoutRef<typeof Po
|
|
|
1944
2032
|
*/
|
|
1945
2033
|
surface?: Surface;
|
|
1946
2034
|
}
|
|
1947
|
-
declare const PopoverContent: React
|
|
2035
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1948
2036
|
|
|
1949
|
-
declare const Progress: React
|
|
2037
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1950
2038
|
|
|
1951
2039
|
/**
|
|
1952
2040
|
* MultiSelect — multi-pick combobox.
|
|
@@ -1988,7 +2076,7 @@ interface MultiSelectOption {
|
|
|
1988
2076
|
/** Optional lucide-style icon component (or any React component
|
|
1989
2077
|
* accepting a className). Rendered both in the dropdown row and
|
|
1990
2078
|
* on the badge. */
|
|
1991
|
-
icon?: React
|
|
2079
|
+
icon?: React.ComponentType<{
|
|
1992
2080
|
className?: string;
|
|
1993
2081
|
}>;
|
|
1994
2082
|
/** Disables the row in the dropdown — selection is locked in
|
|
@@ -2031,10 +2119,234 @@ interface MultiSelectProps {
|
|
|
2031
2119
|
id?: string;
|
|
2032
2120
|
"aria-label"?: string;
|
|
2033
2121
|
}
|
|
2034
|
-
declare const MultiSelect: React
|
|
2122
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2035
2123
|
|
|
2036
|
-
|
|
2037
|
-
|
|
2124
|
+
/**
|
|
2125
|
+
* Combobox — single-pick searchable picker. The single-select sibling of
|
|
2126
|
+
* MultiSelect, and the "selectable badge" pattern popularised by Linear's
|
|
2127
|
+
* status / priority pickers.
|
|
2128
|
+
*
|
|
2129
|
+
* Composes Popover + Command (cmdk) + Button into:
|
|
2130
|
+
*
|
|
2131
|
+
* - Trigger: a button showing the selected option (its icon + label, or
|
|
2132
|
+
* a fully custom node via `renderValue`). `triggerVariant="inline"`
|
|
2133
|
+
* drops the form-control chrome so the trigger reads as an inline
|
|
2134
|
+
* token — render a Badge through `renderValue` and the value becomes a
|
|
2135
|
+
* clickable badge that opens the menu (the Linear move).
|
|
2136
|
+
* - Open: a Popover with a searchable Command list; each row carries an
|
|
2137
|
+
* optional leading icon and a check on the selected item.
|
|
2138
|
+
* - Optional `clearable` adds a "Clear" row so the value can return to
|
|
2139
|
+
* unset (null).
|
|
2140
|
+
*
|
|
2141
|
+
* Controlled and uncontrolled both supported (value / defaultValue mirror
|
|
2142
|
+
* Radix conventions). Selection is a single `string | null` — the caller
|
|
2143
|
+
* pulls the matching option object from their own `options` array.
|
|
2144
|
+
*
|
|
2145
|
+
* Read-only / permissions: pass `disabled` to lock the control to a
|
|
2146
|
+
* display of its current value (the trigger stops opening). A
|
|
2147
|
+
* permission check ("can this user edit?") drives that prop; the Combobox
|
|
2148
|
+
* itself stays unaware of access rules.
|
|
2149
|
+
*
|
|
2150
|
+
* Data-driven via `options` rather than compound children — picker lists
|
|
2151
|
+
* run dozens of items long and the per-option icon has no natural
|
|
2152
|
+
* children-API equivalent. Theming inherits from Popover / Command /
|
|
2153
|
+
* Button / Badge; no new `--gds-combobox-*` tokens needed yet.
|
|
2154
|
+
*/
|
|
2155
|
+
|
|
2156
|
+
interface ComboboxOption {
|
|
2157
|
+
/** Value stored in selection. Must be unique. */
|
|
2158
|
+
value: string;
|
|
2159
|
+
/** Display label for the dropdown row and the trigger. */
|
|
2160
|
+
label: string;
|
|
2161
|
+
/** Optional lucide-style icon (any component accepting className).
|
|
2162
|
+
* Rendered in the dropdown row and, by default, on the trigger. */
|
|
2163
|
+
icon?: React.ComponentType<{
|
|
2164
|
+
className?: string;
|
|
2165
|
+
}>;
|
|
2166
|
+
/** Extra search terms beyond the label (cmdk matches against these). */
|
|
2167
|
+
keywords?: string[];
|
|
2168
|
+
/** Disable the row — it can't be picked. */
|
|
2169
|
+
disabled?: boolean;
|
|
2170
|
+
}
|
|
2171
|
+
type ComboboxTriggerVariant = "default" | "inline";
|
|
2172
|
+
interface ComboboxProps {
|
|
2173
|
+
/** The full pool of selectable items. */
|
|
2174
|
+
options: ComboboxOption[];
|
|
2175
|
+
/** Controlled value. When provided, wire `onValueChange` or the
|
|
2176
|
+
* control becomes a read-only display of `value`. */
|
|
2177
|
+
value?: string | null;
|
|
2178
|
+
/** Uncontrolled initial value. Ignored if `value` is provided. */
|
|
2179
|
+
defaultValue?: string | null;
|
|
2180
|
+
/** Fired with the next value (or null when cleared). */
|
|
2181
|
+
onValueChange?: (next: string | null) => void;
|
|
2182
|
+
/** Trigger text when nothing is selected. */
|
|
2183
|
+
placeholder?: string;
|
|
2184
|
+
/** Search-input placeholder. Default "Search…". */
|
|
2185
|
+
searchPlaceholder?: string;
|
|
2186
|
+
/** Message rendered when search returns no rows. */
|
|
2187
|
+
emptyMessage?: string;
|
|
2188
|
+
/** Hide the search input (short lists). Default true (shown). */
|
|
2189
|
+
searchable?: boolean;
|
|
2190
|
+
/** Add a "Clear" row so the value can return to unset. */
|
|
2191
|
+
clearable?: boolean;
|
|
2192
|
+
/** `default` (form-control surface, like Select) or `inline` (chrome-free
|
|
2193
|
+
* token trigger — pair with `renderValue` to render a Badge). */
|
|
2194
|
+
triggerVariant?: ComboboxTriggerVariant;
|
|
2195
|
+
/** Render the selected value yourself (e.g. as a Badge). Falls back to
|
|
2196
|
+
* the option's icon + label. Receives the resolved option. */
|
|
2197
|
+
renderValue?: (option: ComboboxOption) => React.ReactNode;
|
|
2198
|
+
/** Hide the trailing chevron (useful for the inline token look). */
|
|
2199
|
+
hideChevron?: boolean;
|
|
2200
|
+
/** Lock the control to a display of its current value. */
|
|
2201
|
+
disabled?: boolean;
|
|
2202
|
+
/** Popover `modal` — outside clicks don't dismiss until explicit close. */
|
|
2203
|
+
modalPopover?: boolean;
|
|
2204
|
+
/** PopoverContent alignment. Default "start". */
|
|
2205
|
+
align?: "start" | "center" | "end";
|
|
2206
|
+
/** Extra classes on the trigger. */
|
|
2207
|
+
className?: string;
|
|
2208
|
+
/** Forwarded to the trigger for tests / Studio selection. */
|
|
2209
|
+
id?: string;
|
|
2210
|
+
"aria-label"?: string;
|
|
2211
|
+
}
|
|
2212
|
+
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* DataView — one dataset, drawn as a table, a list of cards, or a grid.
|
|
2216
|
+
*
|
|
2217
|
+
* Wraps TanStack Table so a page stops re-typing the same boilerplate
|
|
2218
|
+
* (sortable-header buttons, flexRender plumbing, selection wiring, the
|
|
2219
|
+
* view switch). You hand it `data` + a `columns` schema; it owns sorting,
|
|
2220
|
+
* column visibility, selection, and view switching.
|
|
2221
|
+
*
|
|
2222
|
+
* <DataView data={rows} columns={cols} defaultView="table" />
|
|
2223
|
+
*
|
|
2224
|
+
* Schema-driven cells: each column declares a `type` (badge / tags /
|
|
2225
|
+
* number / currency / percent / date / boolean / url / text) and DataView
|
|
2226
|
+
* renders it. `cell` overrides per column for anything bespoke (avatars,
|
|
2227
|
+
* relations). `role: "title"` marks the primary field for card / grid.
|
|
2228
|
+
*
|
|
2229
|
+
* The view toggle can live ANYWHERE. `useDataView()` holds the state
|
|
2230
|
+
* (view / activeId / sorting / columnVisibility) so a `<DataViewToggle>`
|
|
2231
|
+
* or `<DataViewColumns>` placed in a page header drives a `<DataView>`
|
|
2232
|
+
* lower down. Or pass `toolbar` to let DataView render them inline.
|
|
2233
|
+
*
|
|
2234
|
+
* Single-view is first-class: pass `views={["table"]}` (or just
|
|
2235
|
+
* `defaultView` with no toolbar) and it's only ever a table / only cards /
|
|
2236
|
+
* only a grid, no switch.
|
|
2237
|
+
*
|
|
2238
|
+
* Table extras: mark a column `pinned="left"` for a fixed column (sticky,
|
|
2239
|
+
* give it a `width` so multi-pin offsets line up) and `stickyHeader` to
|
|
2240
|
+
* freeze the header row on scroll.
|
|
2241
|
+
*
|
|
2242
|
+
* Tunable via `--gds-data-view-*` (card / grid min column width, gap).
|
|
2243
|
+
*/
|
|
2244
|
+
|
|
2245
|
+
type DataViewMode = "table" | "cards" | "grid";
|
|
2246
|
+
type DataViewCellType = "text" | "badge" | "tags" | "number" | "currency" | "percent" | "date" | "boolean" | "url";
|
|
2247
|
+
interface DataViewBadgeOption {
|
|
2248
|
+
value: string;
|
|
2249
|
+
label?: string;
|
|
2250
|
+
variant?: BadgeProps["variant"];
|
|
2251
|
+
}
|
|
2252
|
+
interface DataViewColumn<T = any> {
|
|
2253
|
+
/** Accessor key into the row + the column id. */
|
|
2254
|
+
key: string;
|
|
2255
|
+
/** Header content. */
|
|
2256
|
+
header: React.ReactNode;
|
|
2257
|
+
/** Built-in renderer to use for the value. Ignored when `cell` is set. */
|
|
2258
|
+
type?: DataViewCellType;
|
|
2259
|
+
/** For `type="badge"`: per-value label + colour. */
|
|
2260
|
+
options?: DataViewBadgeOption[];
|
|
2261
|
+
/** Render the cell yourself (avatars, relations, anything bespoke). */
|
|
2262
|
+
cell?: (row: T) => React.ReactNode;
|
|
2263
|
+
/** Hint for card / grid composition. `title` is the primary field. */
|
|
2264
|
+
role?: "title" | "meta";
|
|
2265
|
+
/** Allow click-to-sort on this column. */
|
|
2266
|
+
sortable?: boolean;
|
|
2267
|
+
/** Pin the column to the left (a fixed column). Give it `width` so
|
|
2268
|
+
* multi-pin offsets line up. */
|
|
2269
|
+
pinned?: "left";
|
|
2270
|
+
/** Fixed width in px (used for pinned offsets + min sizing). */
|
|
2271
|
+
width?: number;
|
|
2272
|
+
/** Right-align the cell (numbers / currency). */
|
|
2273
|
+
align?: "start" | "end";
|
|
2274
|
+
/** Whether the user can hide it from the Columns menu. Default true. */
|
|
2275
|
+
hideable?: boolean;
|
|
2276
|
+
/** Start hidden. */
|
|
2277
|
+
defaultHidden?: boolean;
|
|
2278
|
+
}
|
|
2279
|
+
interface UseDataViewOptions {
|
|
2280
|
+
defaultView?: DataViewMode;
|
|
2281
|
+
views?: DataViewMode[];
|
|
2282
|
+
defaultActiveId?: string | null;
|
|
2283
|
+
defaultSorting?: SortingState;
|
|
2284
|
+
defaultColumnVisibility?: VisibilityState;
|
|
2285
|
+
}
|
|
2286
|
+
interface DataViewState {
|
|
2287
|
+
view: DataViewMode;
|
|
2288
|
+
setView: (v: DataViewMode) => void;
|
|
2289
|
+
views: DataViewMode[];
|
|
2290
|
+
activeId: string | null;
|
|
2291
|
+
setActiveId: (id: string | null) => void;
|
|
2292
|
+
sorting: SortingState;
|
|
2293
|
+
setSorting: OnChangeFn<SortingState>;
|
|
2294
|
+
columnVisibility: VisibilityState;
|
|
2295
|
+
setColumnVisibility: OnChangeFn<VisibilityState>;
|
|
2296
|
+
}
|
|
2297
|
+
declare function useDataView(options?: UseDataViewOptions): DataViewState;
|
|
2298
|
+
interface DataViewToggleProps {
|
|
2299
|
+
value: DataViewMode;
|
|
2300
|
+
onChange: (v: DataViewMode) => void;
|
|
2301
|
+
views?: DataViewMode[];
|
|
2302
|
+
className?: string;
|
|
2303
|
+
}
|
|
2304
|
+
declare function DataViewToggle({ value, onChange, views, className, }: DataViewToggleProps): React.JSX.Element | null;
|
|
2305
|
+
interface DataViewColumnsProps {
|
|
2306
|
+
columns: DataViewColumn[];
|
|
2307
|
+
visibility: VisibilityState;
|
|
2308
|
+
onVisibilityChange: (next: VisibilityState) => void;
|
|
2309
|
+
label?: string;
|
|
2310
|
+
className?: string;
|
|
2311
|
+
}
|
|
2312
|
+
declare function DataViewColumns({ columns, visibility, onVisibilityChange, label, className, }: DataViewColumnsProps): React.JSX.Element;
|
|
2313
|
+
interface DataViewProps<T = any> {
|
|
2314
|
+
data: T[];
|
|
2315
|
+
columns: DataViewColumn<T>[];
|
|
2316
|
+
getRowId?: (row: T, index: number) => string;
|
|
2317
|
+
view?: DataViewMode;
|
|
2318
|
+
defaultView?: DataViewMode;
|
|
2319
|
+
onViewChange?: (v: DataViewMode) => void;
|
|
2320
|
+
views?: DataViewMode[];
|
|
2321
|
+
activeId?: string | null;
|
|
2322
|
+
defaultActiveId?: string | null;
|
|
2323
|
+
onActiveChange?: (id: string | null) => void;
|
|
2324
|
+
sorting?: SortingState;
|
|
2325
|
+
defaultSorting?: SortingState;
|
|
2326
|
+
onSortingChange?: OnChangeFn<SortingState>;
|
|
2327
|
+
columnVisibility?: VisibilityState;
|
|
2328
|
+
defaultColumnVisibility?: VisibilityState;
|
|
2329
|
+
onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
|
|
2330
|
+
/** Freeze the header row on vertical scroll. */
|
|
2331
|
+
stickyHeader?: boolean;
|
|
2332
|
+
/** Render a built-in toolbar (columns menu + view toggle) above the view. */
|
|
2333
|
+
toolbar?: boolean;
|
|
2334
|
+
/** Override card / grid tile rendering. */
|
|
2335
|
+
renderCard?: (row: T, ctx: {
|
|
2336
|
+
active: boolean;
|
|
2337
|
+
}) => React.ReactNode;
|
|
2338
|
+
emptyMessage?: React.ReactNode;
|
|
2339
|
+
className?: string;
|
|
2340
|
+
}
|
|
2341
|
+
declare function DataView<T extends Record<string, any>>(props: DataViewProps<T>): React.JSX.Element;
|
|
2342
|
+
declare namespace DataView {
|
|
2343
|
+
var displayName: string;
|
|
2344
|
+
var Toggle: typeof DataViewToggle;
|
|
2345
|
+
var Columns: typeof DataViewColumns;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2349
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2038
2350
|
|
|
2039
2351
|
/**
|
|
2040
2352
|
* Resizable — drag-to-adjust panel groups.
|
|
@@ -2073,8 +2385,8 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
|
2073
2385
|
* </ResizablePanel>
|
|
2074
2386
|
* </ResizablePanelGroup>
|
|
2075
2387
|
*/
|
|
2076
|
-
declare const ResizablePanelGroup: ({ className, ...props }: React
|
|
2077
|
-
declare const ResizablePanel: React
|
|
2388
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
2389
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadElement | HTMLElement | HTMLLinkElement | HTMLDivElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLButtonElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
2078
2390
|
className?: string | undefined;
|
|
2079
2391
|
collapsedSize?: number | undefined;
|
|
2080
2392
|
collapsible?: boolean | undefined;
|
|
@@ -2089,14 +2401,14 @@ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTM
|
|
|
2089
2401
|
style?: object | undefined;
|
|
2090
2402
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
2091
2403
|
} & {
|
|
2092
|
-
children?: React
|
|
2093
|
-
} & React
|
|
2094
|
-
declare const ResizableHandle: ({ withHandle, className, ...props }: React
|
|
2404
|
+
children?: React.ReactNode;
|
|
2405
|
+
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
2406
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
2095
2407
|
/** When true, render a visible grip handle in the middle of the divider
|
|
2096
2408
|
* for affordance. Without this, the handle is just a 1px hit area —
|
|
2097
2409
|
* fine for power-user tools, harder to discover for everyone else. */
|
|
2098
2410
|
withHandle?: boolean;
|
|
2099
|
-
}) => React
|
|
2411
|
+
}) => React.JSX.Element;
|
|
2100
2412
|
|
|
2101
2413
|
/**
|
|
2102
2414
|
* Row — horizontal layout primitive.
|
|
@@ -2114,17 +2426,17 @@ declare const ResizableHandle: ({ withHandle, className, ...props }: React$1.Com
|
|
|
2114
2426
|
*/
|
|
2115
2427
|
declare const rowVariants: (props?: ({
|
|
2116
2428
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2117
|
-
align?: "
|
|
2118
|
-
justify?: "
|
|
2429
|
+
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
2430
|
+
justify?: "center" | "between" | "start" | "end" | "around" | "evenly" | null | undefined;
|
|
2119
2431
|
wrap?: boolean | null | undefined;
|
|
2120
2432
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2121
|
-
interface RowProps extends React
|
|
2433
|
+
interface RowProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof rowVariants> {
|
|
2122
2434
|
/** When true, render as the single child element via Radix Slot — lets
|
|
2123
2435
|
* you stamp Row's layout classes onto an existing semantic tag without
|
|
2124
2436
|
* nesting an extra `<div>`. */
|
|
2125
2437
|
asChild?: boolean;
|
|
2126
2438
|
}
|
|
2127
|
-
declare const Row: React
|
|
2439
|
+
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
2128
2440
|
|
|
2129
2441
|
/**
|
|
2130
2442
|
* Grid — 2D layout primitive. The partner to Stack and Row.
|
|
@@ -2150,15 +2462,15 @@ declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttri
|
|
|
2150
2462
|
declare const gridVariants: (props?: ({
|
|
2151
2463
|
cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
|
|
2152
2464
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2153
|
-
align?: "
|
|
2465
|
+
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
2154
2466
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2155
|
-
interface GridProps extends React
|
|
2467
|
+
interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
2156
2468
|
/** When true, render as the single child element via Radix Slot — lets
|
|
2157
2469
|
* you stamp Grid's layout classes onto an existing semantic tag
|
|
2158
2470
|
* without nesting an extra `<div>`. */
|
|
2159
2471
|
asChild?: boolean;
|
|
2160
2472
|
}
|
|
2161
|
-
declare const Grid: React
|
|
2473
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
2162
2474
|
|
|
2163
2475
|
/**
|
|
2164
2476
|
* Flex — the unopinionated flexbox primitive.
|
|
@@ -2182,26 +2494,26 @@ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAtt
|
|
|
2182
2494
|
* case. Flex is the escape hatch, not the default.
|
|
2183
2495
|
*/
|
|
2184
2496
|
declare const flexVariants: (props?: ({
|
|
2185
|
-
direction?: "
|
|
2497
|
+
direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined;
|
|
2186
2498
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2187
|
-
align?: "
|
|
2188
|
-
justify?: "
|
|
2499
|
+
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
2500
|
+
justify?: "center" | "between" | "start" | "end" | "around" | "evenly" | null | undefined;
|
|
2189
2501
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
2190
2502
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2191
|
-
interface FlexProps extends React
|
|
2503
|
+
interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
|
|
2192
2504
|
/** When true, render as the single child element via Radix Slot — lets
|
|
2193
2505
|
* you stamp Flex's layout classes onto an existing semantic tag without
|
|
2194
2506
|
* nesting an extra `<div>`. */
|
|
2195
2507
|
asChild?: boolean;
|
|
2196
2508
|
}
|
|
2197
|
-
declare const Flex: React
|
|
2509
|
+
declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
2198
2510
|
|
|
2199
|
-
declare const ScrollArea: React
|
|
2200
|
-
declare const ScrollBar: React
|
|
2511
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2512
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2201
2513
|
|
|
2202
|
-
declare const Select: React
|
|
2203
|
-
declare const SelectGroup: React
|
|
2204
|
-
declare const SelectValue: React
|
|
2514
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
2515
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
2516
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
2205
2517
|
/**
|
|
2206
2518
|
* Menu density. Set `size` on `<SelectContent>` and every `<SelectItem>`
|
|
2207
2519
|
* inside it picks up matching padding / text-size / check-indicator
|
|
@@ -2219,46 +2531,123 @@ type SelectMenuSize = "default" | "sm" | "xs" | "2xs";
|
|
|
2219
2531
|
* existing call site.
|
|
2220
2532
|
*/
|
|
2221
2533
|
declare const selectTriggerVariants: (props?: ({
|
|
2222
|
-
size?: "
|
|
2534
|
+
size?: "default" | "2xs" | "xs" | "sm" | null | undefined;
|
|
2223
2535
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2224
2536
|
type SelectTriggerSize = NonNullable<VariantProps<typeof selectTriggerVariants>["size"]>;
|
|
2225
|
-
declare const SelectTrigger: React
|
|
2537
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
2226
2538
|
size?: SelectTriggerSize;
|
|
2227
2539
|
/** Adornment rendered inside the trigger on the leading edge — a
|
|
2228
2540
|
* property glyph, a unit. Mirrors Input's startSlot. Grouped with
|
|
2229
2541
|
* the value in a div (NOT a bare span: the trigger's
|
|
2230
2542
|
* `[&>span]:line-clamp-1` would stack a span's children
|
|
2231
2543
|
* vertically). */
|
|
2232
|
-
startSlot?: React
|
|
2544
|
+
startSlot?: React.ReactNode;
|
|
2233
2545
|
/** Hide the dropdown chevron — Figma-style token fields keep the
|
|
2234
2546
|
* right edge for their own affordances (detach/attach). */
|
|
2235
2547
|
chevron?: boolean;
|
|
2236
|
-
} & React
|
|
2237
|
-
declare const SelectScrollUpButton: React
|
|
2238
|
-
declare const SelectScrollDownButton: React
|
|
2239
|
-
declare const SelectContent: React
|
|
2548
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
2549
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2550
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2551
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2240
2552
|
size?: SelectMenuSize;
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2553
|
+
/** Portal target. Defaults to document.body; pass a themed wrapper to
|
|
2554
|
+
* keep the menu inside a scoped theme (e.g. the Studio preview, where
|
|
2555
|
+
* the theme is applied to a div, not :root). */
|
|
2556
|
+
container?: HTMLElement | null;
|
|
2557
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
2558
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2559
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2244
2560
|
/** Optional right-aligned secondary text (e.g. a token's resolved
|
|
2245
2561
|
* value). Rendered in the menu row only — NOT inside ItemText, so
|
|
2246
2562
|
* it never mirrors into the trigger via SelectValue. */
|
|
2247
|
-
hint?: React
|
|
2248
|
-
} & React
|
|
2249
|
-
declare const SelectSeparator: React
|
|
2563
|
+
hint?: React.ReactNode;
|
|
2564
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
2565
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2250
2566
|
|
|
2251
|
-
declare const Separator: React
|
|
2567
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2252
2568
|
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2569
|
+
/**
|
|
2570
|
+
* Swatch — a single colour chip.
|
|
2571
|
+
*
|
|
2572
|
+
* THE primitive for showing a colour: brand-pop strips, palette pickers,
|
|
2573
|
+
* theme previews, token galleries, "pick an accent" rows. A swatch reads a
|
|
2574
|
+
* value from one of two places, in priority order:
|
|
2575
|
+
*
|
|
2576
|
+
* - `color` — any raw CSS colour (`#1f6feb`, `oklch(...)`, `rgb(...)`,
|
|
2577
|
+
* even `var(--whatever)`). Use for one-off / external colours.
|
|
2578
|
+
* - `token` — a Grade colour token NAME (no `--` and no `oklch()` wrap),
|
|
2579
|
+
* resolved to `oklch(var(--<token>))`. This is the design-system
|
|
2580
|
+
* path: `token="brand-3"`, `token="primary"`, `token="chart-2"`.
|
|
2581
|
+
* Because it points at the live CSS variable, the swatch
|
|
2582
|
+
* re-voices automatically when the theme changes.
|
|
2583
|
+
*
|
|
2584
|
+
* A transparency checkerboard sits behind the fill (shared with the rest of
|
|
2585
|
+
* the system via `--gds-media-checker-*`), so semi-transparent values read
|
|
2586
|
+
* honestly instead of compositing against an opaque tile.
|
|
2587
|
+
*
|
|
2588
|
+
* Pass `onSelect` to make it pickable — it renders a real <button> with
|
|
2589
|
+
* `aria-pressed`, a focus ring, and a hover lift. `selected` draws the
|
|
2590
|
+
* shared selection ring (`--selected`). Pass `label` to caption it (the
|
|
2591
|
+
* caption also becomes the accessible name / tooltip).
|
|
2592
|
+
*
|
|
2593
|
+
* Sizing is the t-shirt scale (xs → xl); reach for `size` over `h-*`/`w-*`
|
|
2594
|
+
* utilities so the scale stays on tokens. Shape is square / rounded (rides
|
|
2595
|
+
* `--radius`) / circle.
|
|
2596
|
+
*/
|
|
2597
|
+
declare const swatchVariants: (props?: ({
|
|
2598
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
2599
|
+
shape?: "rounded" | "square" | "circle" | null | undefined;
|
|
2600
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2601
|
+
type SwatchSize = NonNullable<VariantProps<typeof swatchVariants>["size"]>;
|
|
2602
|
+
type SwatchShape = NonNullable<VariantProps<typeof swatchVariants>["shape"]>;
|
|
2603
|
+
interface SwatchProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof swatchVariants> {
|
|
2604
|
+
/** Any raw CSS colour. Takes precedence over `token`. */
|
|
2605
|
+
color?: string;
|
|
2606
|
+
/** A Grade colour token name (no `--`), resolved as `oklch(var(--<token>))`. */
|
|
2607
|
+
token?: string;
|
|
2608
|
+
/** Optional caption rendered beneath the chip; also the accessible name. */
|
|
2609
|
+
label?: React.ReactNode;
|
|
2610
|
+
/** Draws the shared selection ring (`--selected`). */
|
|
2611
|
+
selected?: boolean;
|
|
2612
|
+
/** Makes the swatch a pickable <button> and fires on activation. */
|
|
2613
|
+
onSelect?: () => void;
|
|
2614
|
+
/** Makes the swatch an editable colour well: hosts a native
|
|
2615
|
+
* `<input type="color">` (the OS picker) behind the chip and fires with
|
|
2616
|
+
* the new `#rrggbb`. The presentation stays the DS chip; the interaction
|
|
2617
|
+
* stays native. Takes precedence over `onSelect`. */
|
|
2618
|
+
onColorChange?: (value: string) => void;
|
|
2619
|
+
}
|
|
2620
|
+
declare const Swatch: React.ForwardRefExoticComponent<SwatchProps & React.RefAttributes<HTMLElement>>;
|
|
2621
|
+
interface SwatchGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2622
|
+
/** `row` spaces them out; `stack` overlaps into a coin-stack. Default row. */
|
|
2623
|
+
layout?: "row" | "stack";
|
|
2624
|
+
/** Cascades to every child Swatch. */
|
|
2625
|
+
size?: SwatchSize;
|
|
2626
|
+
/** Cascades to every child Swatch. */
|
|
2627
|
+
shape?: SwatchShape;
|
|
2628
|
+
/** Spacing between chips in `row` layout. Default sm. */
|
|
2629
|
+
gap?: "xs" | "sm" | "md" | "lg";
|
|
2630
|
+
}
|
|
2631
|
+
declare const SwatchGroup: React.ForwardRefExoticComponent<SwatchGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
2632
|
+
|
|
2633
|
+
declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
|
|
2634
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2635
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2636
|
+
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
2637
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2258
2638
|
declare const sheetVariants: (props?: ({
|
|
2259
|
-
side?: "
|
|
2639
|
+
side?: "bottom" | "top" | "right" | "left" | null | undefined;
|
|
2260
2640
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2261
|
-
interface SheetContentProps extends React
|
|
2641
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
2642
|
+
/** Extra classes for the backdrop overlay. e.g. `bg-transparent`
|
|
2643
|
+
* keeps click-outside-to-close while removing the dimming — useful
|
|
2644
|
+
* when the whole point is watching the page behind the sheet
|
|
2645
|
+
* change (the embed theme playground). */
|
|
2646
|
+
overlayClassName?: string;
|
|
2647
|
+
/** Extra classes for the built-in close button — reposition it or
|
|
2648
|
+
* restyle it as a full icon button (the default is a bare X at
|
|
2649
|
+
* right-4 top-4 with an opacity hover). */
|
|
2650
|
+
closeClassName?: string;
|
|
2262
2651
|
/**
|
|
2263
2652
|
* What the sheet panel is *made of*. `solid` is the default opaque
|
|
2264
2653
|
* `bg-background`. `glass` lets the page show through with a 14px
|
|
@@ -2267,21 +2656,29 @@ interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof Dial
|
|
|
2267
2656
|
*/
|
|
2268
2657
|
surface?: Surface;
|
|
2269
2658
|
}
|
|
2270
|
-
declare const SheetContent: React
|
|
2659
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
2271
2660
|
declare const SheetHeader: {
|
|
2272
|
-
({ className, ...props }: React
|
|
2661
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
2273
2662
|
displayName: string;
|
|
2274
2663
|
};
|
|
2275
2664
|
declare const SheetFooter: {
|
|
2276
|
-
({ className, ...props }: React
|
|
2665
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
2277
2666
|
displayName: string;
|
|
2278
2667
|
};
|
|
2279
|
-
declare const SheetTitle: React
|
|
2280
|
-
declare const SheetDescription: React
|
|
2668
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
2669
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
2281
2670
|
|
|
2282
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React
|
|
2671
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
2283
2672
|
|
|
2284
|
-
|
|
2673
|
+
/**
|
|
2674
|
+
* `size` controls the visual weight. `default` is the standard control;
|
|
2675
|
+
* `sm` is the dense, subtle track for tool panels / inspectors (thin
|
|
2676
|
+
* muted track, small thumb) so a panel of sliders reads quietly.
|
|
2677
|
+
*/
|
|
2678
|
+
type SliderSize = "default" | "sm";
|
|
2679
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
2680
|
+
size?: SliderSize;
|
|
2681
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
2285
2682
|
|
|
2286
2683
|
/**
|
|
2287
2684
|
* Sortable — compound drag-to-reorder primitive built on dnd-kit.
|
|
@@ -2326,12 +2723,12 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
|
|
|
2326
2723
|
*/
|
|
2327
2724
|
|
|
2328
2725
|
type SortableStrategy = "vertical" | "horizontal" | "grid";
|
|
2329
|
-
interface SortableGroupProps extends React
|
|
2726
|
+
interface SortableGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2330
2727
|
/** Disable drag for every container inside the Group. */
|
|
2331
2728
|
disabled?: boolean;
|
|
2332
2729
|
}
|
|
2333
|
-
declare const SortableGroup: React
|
|
2334
|
-
interface SortableProps<T extends UniqueIdentifier = UniqueIdentifier> extends Omit<React
|
|
2730
|
+
declare const SortableGroup: React.ForwardRefExoticComponent<SortableGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
2731
|
+
interface SortableProps<T extends UniqueIdentifier = UniqueIdentifier> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "id"> {
|
|
2335
2732
|
/** Ordered list of unique ids — strings or numbers. Source of truth
|
|
2336
2733
|
* for the order; reorder fires `onReorder(newValues)` and the
|
|
2337
2734
|
* consumer updates their state. */
|
|
@@ -2354,12 +2751,12 @@ interface SortableProps<T extends UniqueIdentifier = UniqueIdentifier> extends O
|
|
|
2354
2751
|
* Sortable; auto-generated via React.useId when omitted. */
|
|
2355
2752
|
id?: string;
|
|
2356
2753
|
}
|
|
2357
|
-
interface SortableRootComponent extends React
|
|
2754
|
+
interface SortableRootComponent extends React.ForwardRefExoticComponent<SortableProps & React.RefAttributes<HTMLDivElement>> {
|
|
2358
2755
|
Item: typeof SortableItem;
|
|
2359
2756
|
Handle: typeof SortableHandle;
|
|
2360
2757
|
Group: typeof SortableGroup;
|
|
2361
2758
|
}
|
|
2362
|
-
interface SortableItemProps extends React
|
|
2759
|
+
interface SortableItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2363
2760
|
/** Must match one of the parent `<Sortable values>` entries.
|
|
2364
2761
|
* Identity, not React key. */
|
|
2365
2762
|
value: UniqueIdentifier;
|
|
@@ -2370,13 +2767,13 @@ interface SortableItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
2370
2767
|
/** Disable drag for THIS item without disabling the whole Sortable. */
|
|
2371
2768
|
disabled?: boolean;
|
|
2372
2769
|
}
|
|
2373
|
-
declare const SortableItem: React
|
|
2374
|
-
interface SortableHandleProps extends React
|
|
2770
|
+
declare const SortableItem: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
2771
|
+
interface SortableHandleProps extends React.HTMLAttributes<HTMLElement> {
|
|
2375
2772
|
/** Render as the child element via Slot — typical pattern is
|
|
2376
2773
|
* `<Sortable.Handle asChild><Button variant="ghost" size="icon">…</Button></Sortable.Handle>`. */
|
|
2377
2774
|
asChild?: boolean;
|
|
2378
2775
|
}
|
|
2379
|
-
declare const SortableHandle: React
|
|
2776
|
+
declare const SortableHandle: React.ForwardRefExoticComponent<SortableHandleProps & React.RefAttributes<HTMLElement>>;
|
|
2380
2777
|
declare const Sortable: SortableRootComponent;
|
|
2381
2778
|
|
|
2382
2779
|
/**
|
|
@@ -2395,16 +2792,16 @@ declare const Sortable: SortableRootComponent;
|
|
|
2395
2792
|
*/
|
|
2396
2793
|
declare const stackVariants: (props?: ({
|
|
2397
2794
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2398
|
-
align?: "
|
|
2399
|
-
justify?: "
|
|
2795
|
+
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
2796
|
+
justify?: "center" | "between" | "start" | "end" | "around" | "evenly" | null | undefined;
|
|
2400
2797
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2401
|
-
interface StackProps extends React
|
|
2798
|
+
interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
2402
2799
|
/** When true, render as the single child element via Radix Slot — lets
|
|
2403
2800
|
* you stamp Stack's layout classes onto an existing semantic tag
|
|
2404
2801
|
* (`<section>`, `<main>`, `<nav>`) without nesting an extra `<div>`. */
|
|
2405
2802
|
asChild?: boolean;
|
|
2406
2803
|
}
|
|
2407
|
-
declare const Stack: React
|
|
2804
|
+
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
2408
2805
|
|
|
2409
2806
|
/**
|
|
2410
2807
|
* Switch — track + thumb scale together via the shared control size
|
|
@@ -2414,48 +2811,48 @@ declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefA
|
|
|
2414
2811
|
* dense tool-panel sizes (the Studio inspector).
|
|
2415
2812
|
*/
|
|
2416
2813
|
declare const switchTrackVariants: (props?: ({
|
|
2417
|
-
size?: "
|
|
2814
|
+
size?: "default" | "2xs" | "xs" | "sm" | null | undefined;
|
|
2418
2815
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2419
2816
|
type SwitchSize = NonNullable<VariantProps<typeof switchTrackVariants>["size"]>;
|
|
2420
|
-
declare const Switch: React
|
|
2817
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref">, "size"> & {
|
|
2421
2818
|
size?: SwitchSize;
|
|
2422
|
-
} & React
|
|
2819
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
2423
2820
|
|
|
2424
|
-
declare const Table: React
|
|
2425
|
-
declare const TableHeader: React
|
|
2426
|
-
declare const TableBody: React
|
|
2427
|
-
declare const TableFooter: React
|
|
2428
|
-
declare const TableRow: React
|
|
2429
|
-
declare const TableHead: React
|
|
2430
|
-
declare const TableCell: React
|
|
2431
|
-
declare const TableCaption: React
|
|
2821
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
2822
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
2823
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
2824
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
2825
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
2826
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
2827
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
2828
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
2432
2829
|
|
|
2433
|
-
interface BreadcrumbProps extends React
|
|
2830
|
+
interface BreadcrumbProps extends React.ComponentPropsWithoutRef<"nav"> {
|
|
2434
2831
|
/** Default separator node for every <BreadcrumbSeparator/> inside this
|
|
2435
2832
|
* tree. Pass a string ("/", "›", "•"), a lucide icon (<Slash />,
|
|
2436
2833
|
* <ChevronRight />), or any ReactNode. Default: <ChevronRight />.
|
|
2437
2834
|
* Per-instance `<BreadcrumbSeparator>children</BreadcrumbSeparator>`
|
|
2438
2835
|
* still overrides. */
|
|
2439
|
-
separator?: React
|
|
2836
|
+
separator?: React.ReactNode;
|
|
2440
2837
|
}
|
|
2441
|
-
declare const Breadcrumb: React
|
|
2442
|
-
declare const BreadcrumbList: React
|
|
2443
|
-
declare const BreadcrumbItem: React
|
|
2444
|
-
interface BreadcrumbLinkProps extends React
|
|
2838
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
|
|
2839
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
2840
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
2841
|
+
interface BreadcrumbLinkProps extends React.HTMLAttributes<HTMLElement> {
|
|
2445
2842
|
/** Anchor href. When set, renders an <a>; otherwise renders a <button>. */
|
|
2446
2843
|
href?: string;
|
|
2447
2844
|
/** Use a <span> instead of <a>/<button> — useful when wrapping in a
|
|
2448
2845
|
* framework-specific Link component yourself. */
|
|
2449
2846
|
asChild?: boolean;
|
|
2450
2847
|
}
|
|
2451
|
-
declare const BreadcrumbLink: React
|
|
2452
|
-
declare const BreadcrumbPage: React
|
|
2848
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLElement>>;
|
|
2849
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
2453
2850
|
declare const BreadcrumbSeparator: {
|
|
2454
|
-
({ children, className, ...props }: React
|
|
2851
|
+
({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
2455
2852
|
displayName: string;
|
|
2456
2853
|
};
|
|
2457
2854
|
declare const BreadcrumbEllipsis: {
|
|
2458
|
-
({ className, ...props }: React
|
|
2855
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
2459
2856
|
displayName: string;
|
|
2460
2857
|
};
|
|
2461
2858
|
/** One row inside a BreadcrumbMenuTrigger's popover. The dropdown
|
|
@@ -2506,9 +2903,9 @@ interface BreadcrumbMenuTriggerProps {
|
|
|
2506
2903
|
* />
|
|
2507
2904
|
* </BreadcrumbItem>
|
|
2508
2905
|
*/
|
|
2509
|
-
declare const BreadcrumbMenuTrigger: React
|
|
2906
|
+
declare const BreadcrumbMenuTrigger: React.ForwardRefExoticComponent<BreadcrumbMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2510
2907
|
|
|
2511
|
-
declare const Tabs: React
|
|
2908
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
2512
2909
|
declare const tabsListVariants: (props?: ({
|
|
2513
2910
|
variant?: "pill" | "underlined" | null | undefined;
|
|
2514
2911
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -2517,10 +2914,10 @@ declare const tabsTriggerVariants: (props?: ({
|
|
|
2517
2914
|
variant?: "pill" | "underlined" | null | undefined;
|
|
2518
2915
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2519
2916
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2520
|
-
interface TabsListProps extends React
|
|
2917
|
+
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
|
|
2521
2918
|
}
|
|
2522
|
-
declare const TabsList: React
|
|
2523
|
-
interface TabsTriggerProps extends React
|
|
2919
|
+
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
2920
|
+
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
|
|
2524
2921
|
/**
|
|
2525
2922
|
* Tooltip text shown on hover / focus. Designed for icon-only
|
|
2526
2923
|
* triggers: pass `<TabsTrigger value="preview" tooltip="Preview">`
|
|
@@ -2531,10 +2928,10 @@ interface TabsTriggerProps extends React$1.ComponentPropsWithoutRef<typeof TabsP
|
|
|
2531
2928
|
* Requires a `<TooltipProvider>` somewhere above the tabs. The
|
|
2532
2929
|
* design system's root layout mounts one app-wide.
|
|
2533
2930
|
*/
|
|
2534
|
-
tooltip?: React
|
|
2931
|
+
tooltip?: React.ReactNode;
|
|
2535
2932
|
}
|
|
2536
|
-
declare const TabsTrigger: React
|
|
2537
|
-
declare const TabsContent: React
|
|
2933
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2934
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2538
2935
|
|
|
2539
2936
|
declare const THEMES: {
|
|
2540
2937
|
readonly light: "";
|
|
@@ -2542,8 +2939,8 @@ declare const THEMES: {
|
|
|
2542
2939
|
};
|
|
2543
2940
|
type ChartConfig = {
|
|
2544
2941
|
[k in string]: {
|
|
2545
|
-
label?: React
|
|
2546
|
-
icon?: React
|
|
2942
|
+
label?: React.ReactNode;
|
|
2943
|
+
icon?: React.ComponentType;
|
|
2547
2944
|
} & ({
|
|
2548
2945
|
color?: string;
|
|
2549
2946
|
theme?: never;
|
|
@@ -2552,16 +2949,16 @@ type ChartConfig = {
|
|
|
2552
2949
|
theme: Record<keyof typeof THEMES, string>;
|
|
2553
2950
|
});
|
|
2554
2951
|
};
|
|
2555
|
-
declare const ChartContainer: React
|
|
2952
|
+
declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
2556
2953
|
config: ChartConfig;
|
|
2557
|
-
children: React
|
|
2558
|
-
}, "ref"> & React
|
|
2954
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
2955
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2559
2956
|
declare const ChartStyle: ({ id, config }: {
|
|
2560
2957
|
id: string;
|
|
2561
2958
|
config: ChartConfig;
|
|
2562
|
-
}) => React
|
|
2959
|
+
}) => React.JSX.Element | null;
|
|
2563
2960
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
2564
|
-
declare const ChartTooltipContent: React
|
|
2961
|
+
declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> & {
|
|
2565
2962
|
accessibilityLayer?: boolean;
|
|
2566
2963
|
active?: boolean | undefined;
|
|
2567
2964
|
includeHidden?: boolean | undefined;
|
|
@@ -2570,7 +2967,7 @@ declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Rechar
|
|
|
2570
2967
|
animationEasing?: recharts_types_util_types.AnimationTiming;
|
|
2571
2968
|
content?: recharts_types_component_Tooltip.ContentType<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
|
|
2572
2969
|
coordinate?: Partial<recharts_types_util_types.Coordinate>;
|
|
2573
|
-
cursor?: boolean | React
|
|
2970
|
+
cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
|
|
2574
2971
|
filterNull?: boolean;
|
|
2575
2972
|
defaultIndex?: number;
|
|
2576
2973
|
isAnimationActive?: boolean;
|
|
@@ -2582,19 +2979,19 @@ declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Rechar
|
|
|
2582
2979
|
trigger?: "hover" | "click";
|
|
2583
2980
|
useTranslate3d?: boolean;
|
|
2584
2981
|
viewBox?: recharts_types_util_types.CartesianViewBox;
|
|
2585
|
-
wrapperStyle?: React
|
|
2586
|
-
} & React
|
|
2982
|
+
wrapperStyle?: React.CSSProperties;
|
|
2983
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
2587
2984
|
hideLabel?: boolean;
|
|
2588
2985
|
hideIndicator?: boolean;
|
|
2589
2986
|
indicator?: "line" | "dot" | "dashed";
|
|
2590
2987
|
nameKey?: string;
|
|
2591
2988
|
labelKey?: string;
|
|
2592
|
-
}, "ref"> & React
|
|
2989
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2593
2990
|
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
2594
|
-
declare const ChartLegendContent: React
|
|
2991
|
+
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
|
|
2595
2992
|
hideIcon?: boolean;
|
|
2596
2993
|
nameKey?: string;
|
|
2597
|
-
}, "ref"> & React
|
|
2994
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2598
2995
|
|
|
2599
2996
|
/**
|
|
2600
2997
|
* Textarea variants — `size` mirrors Input so the whole form-control
|
|
@@ -2602,56 +2999,40 @@ declare const ChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1
|
|
|
2602
2999
|
* px-3 / text-sm; `sm` and `xs` are for dense tool panels.
|
|
2603
3000
|
*/
|
|
2604
3001
|
declare const textareaVariants: (props?: ({
|
|
2605
|
-
size?: "
|
|
3002
|
+
size?: "default" | "2xs" | "xs" | "sm" | null | undefined;
|
|
2606
3003
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2607
3004
|
type TextareaSize = NonNullable<VariantProps<typeof textareaVariants>["size"]>;
|
|
2608
|
-
type TextareaProps = Omit<React
|
|
3005
|
+
type TextareaProps = Omit<React.ComponentProps<"textarea">, "size"> & {
|
|
2609
3006
|
size?: TextareaSize;
|
|
2610
3007
|
};
|
|
2611
|
-
declare const Textarea: React
|
|
3008
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
2612
3009
|
|
|
2613
3010
|
declare const toggleVariants: (props?: ({
|
|
2614
|
-
variant?: "default" | "outline" | null | undefined;
|
|
2615
|
-
size?: "
|
|
3011
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3012
|
+
size?: "default" | "2xs" | "xs" | "sm" | "lg" | null | undefined;
|
|
2616
3013
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2617
|
-
declare const Toggle: React
|
|
2618
|
-
variant?: "default" | "outline" | null | undefined;
|
|
2619
|
-
size?: "
|
|
2620
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React
|
|
3014
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
3015
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3016
|
+
size?: "default" | "2xs" | "xs" | "sm" | "lg" | null | undefined;
|
|
3017
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
2621
3018
|
|
|
2622
|
-
declare const TooltipProvider: React
|
|
2623
|
-
declare const Tooltip: React
|
|
2624
|
-
declare const TooltipTrigger: React
|
|
2625
|
-
declare const TooltipContent: React
|
|
3019
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
3020
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
3021
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3022
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2626
3023
|
|
|
2627
|
-
declare const
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
declare const
|
|
2632
|
-
|
|
2633
|
-
size?: "
|
|
3024
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
3025
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3026
|
+
size?: "default" | "2xs" | "xs" | "sm" | "lg" | null | undefined;
|
|
3027
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
3028
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
3029
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3030
|
+
size?: "default" | "2xs" | "xs" | "sm" | "lg" | null | undefined;
|
|
2634
3031
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
* the chrome with text. Pass a string for the common case;
|
|
2638
|
-
* pass a node for richer content (key hint, badge, etc.).
|
|
2639
|
-
*
|
|
2640
|
-
* Assumes a `TooltipProvider` exists somewhere upstream — in
|
|
2641
|
-
* apps/docs the root layout already mounts one, which is the
|
|
2642
|
-
* pattern most consumers should follow. If no provider is
|
|
2643
|
-
* present, the tooltip is silently ignored at runtime (Radix
|
|
2644
|
-
* no-ops) — pass `tooltip={undefined}` to be sure of plain
|
|
2645
|
-
* behavior. */
|
|
2646
|
-
tooltip?: React$1.ReactNode;
|
|
2647
|
-
/** Which side of the item the tooltip renders on. Defaults to
|
|
2648
|
-
* "top" — matches the Tabs primitive's convention. */
|
|
2649
|
-
tooltipSide?: React$1.ComponentPropsWithoutRef<typeof TooltipContent>["side"];
|
|
2650
|
-
/** Tooltip delay override. The provider's `delayDuration` is
|
|
2651
|
-
* the default; pass a per-item value if a specific control
|
|
2652
|
-
* needs a snappier or quieter feel. */
|
|
3032
|
+
tooltip?: React.ReactNode;
|
|
3033
|
+
tooltipSide?: React.ComponentPropsWithoutRef<typeof TooltipContent>["side"];
|
|
2653
3034
|
tooltipDelay?: number;
|
|
2654
|
-
} & React
|
|
3035
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
2655
3036
|
|
|
2656
3037
|
/**
|
|
2657
3038
|
* Toolbar — slot-based chrome bar for the leading/center/trailing
|
|
@@ -2701,37 +3082,37 @@ declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGrou
|
|
|
2701
3082
|
* persistent footer toolbars on mobile-style layouts.
|
|
2702
3083
|
*/
|
|
2703
3084
|
declare const toolbarVariants: (props?: ({
|
|
2704
|
-
position?: "
|
|
3085
|
+
position?: "bottom" | "top" | "inline" | null | undefined;
|
|
2705
3086
|
variant?: "default" | "transparent" | "subtle" | null | undefined;
|
|
2706
3087
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2707
3088
|
sticky?: boolean | null | undefined;
|
|
2708
3089
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2709
|
-
interface ToolbarProps extends Omit<React
|
|
3090
|
+
interface ToolbarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof toolbarVariants> {
|
|
2710
3091
|
/** Left-aligned content. Usually a logo + primary nav links. */
|
|
2711
|
-
leading?: React
|
|
3092
|
+
leading?: React.ReactNode;
|
|
2712
3093
|
/** Center-aligned content. Usually a search input, a page title,
|
|
2713
3094
|
* or a segmented control. The center column stretches via `1fr`
|
|
2714
3095
|
* so it stays visually centered relative to the bar. */
|
|
2715
|
-
center?: React
|
|
3096
|
+
center?: React.ReactNode;
|
|
2716
3097
|
/** Right-aligned content. Usually action icons + user avatar. */
|
|
2717
|
-
trailing?: React
|
|
3098
|
+
trailing?: React.ReactNode;
|
|
2718
3099
|
/** When using `children` directly (advanced custom layout), the
|
|
2719
3100
|
* slot props are ignored. Most callers should prefer the slot
|
|
2720
3101
|
* props — they give the canonical grid layout for free. */
|
|
2721
|
-
children?: React
|
|
3102
|
+
children?: React.ReactNode;
|
|
2722
3103
|
/** Required by WAI-ARIA toolbar pattern. Falls back to "Toolbar". */
|
|
2723
3104
|
"aria-label"?: string;
|
|
2724
3105
|
}
|
|
2725
|
-
declare const Toolbar: React
|
|
3106
|
+
declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
2726
3107
|
/**
|
|
2727
3108
|
* ToolbarSlot — escape-hatch piece for the rare case a consumer
|
|
2728
3109
|
* wants to compose a custom inner layout with children but still
|
|
2729
3110
|
* get the slot styling. Use the slot props on Toolbar where you can.
|
|
2730
3111
|
*/
|
|
2731
|
-
interface ToolbarSlotProps extends React
|
|
3112
|
+
interface ToolbarSlotProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2732
3113
|
align?: "leading" | "center" | "trailing";
|
|
2733
3114
|
}
|
|
2734
|
-
declare const ToolbarSlot: React
|
|
3115
|
+
declare const ToolbarSlot: React.ForwardRefExoticComponent<ToolbarSlotProps & React.RefAttributes<HTMLDivElement>>;
|
|
2735
3116
|
|
|
2736
3117
|
/**
|
|
2737
3118
|
* Sidebar — compound layout primitive for vertical app navigation.
|
|
@@ -2781,7 +3162,7 @@ declare const ToolbarSlot: React$1.ForwardRefExoticComponent<ToolbarSlotProps &
|
|
|
2781
3162
|
* Sidebar is the navigation content for that chrome.
|
|
2782
3163
|
*/
|
|
2783
3164
|
|
|
2784
|
-
interface SidebarProps extends React
|
|
3165
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
2785
3166
|
/** Controlled collapsed state. When set, `onCollapsedChange` MUST be
|
|
2786
3167
|
* wired or the toggle button becomes a no-op. */
|
|
2787
3168
|
collapsed?: boolean;
|
|
@@ -2808,7 +3189,7 @@ interface SidebarProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
|
2808
3189
|
*/
|
|
2809
3190
|
variant?: "rail" | "panel";
|
|
2810
3191
|
}
|
|
2811
|
-
interface SidebarRootComponent extends React
|
|
3192
|
+
interface SidebarRootComponent extends React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>> {
|
|
2812
3193
|
Header: typeof SidebarHeader;
|
|
2813
3194
|
Content: typeof SidebarContent;
|
|
2814
3195
|
Footer: typeof SidebarFooter;
|
|
@@ -2817,21 +3198,21 @@ interface SidebarRootComponent extends React$1.ForwardRefExoticComponent<Sidebar
|
|
|
2817
3198
|
TreeItem: typeof SidebarTreeItem;
|
|
2818
3199
|
}
|
|
2819
3200
|
declare const Sidebar: SidebarRootComponent;
|
|
2820
|
-
interface SidebarHeaderProps extends React
|
|
3201
|
+
interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2821
3202
|
}
|
|
2822
|
-
declare const SidebarHeader: React
|
|
2823
|
-
interface SidebarContentProps extends React
|
|
3203
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<SidebarHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
3204
|
+
interface SidebarContentProps extends React.HTMLAttributes<HTMLElement> {
|
|
2824
3205
|
}
|
|
2825
|
-
declare const SidebarContent: React
|
|
2826
|
-
interface SidebarFooterProps extends React
|
|
3206
|
+
declare const SidebarContent: React.ForwardRefExoticComponent<SidebarContentProps & React.RefAttributes<HTMLElement>>;
|
|
3207
|
+
interface SidebarFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2827
3208
|
}
|
|
2828
|
-
declare const SidebarFooter: React
|
|
2829
|
-
interface SidebarSectionProps extends Omit<React
|
|
3209
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<SidebarFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
3210
|
+
interface SidebarSectionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2830
3211
|
/** Group label shown above the items. Hidden when sidebar is collapsed
|
|
2831
3212
|
* (children render flat under the icon strip). */
|
|
2832
|
-
title?: React
|
|
3213
|
+
title?: React.ReactNode;
|
|
2833
3214
|
/** Optional icon next to the title. */
|
|
2834
|
-
icon?: React
|
|
3215
|
+
icon?: React.ReactNode;
|
|
2835
3216
|
/** Action(s) rendered on the right edge of the section header — the
|
|
2836
3217
|
* canonical "+ add to this group" or "..." menu slot. Common in Notion
|
|
2837
3218
|
* (+ next to Pages), Linear (+ next to Favorites), Slack (+ next to
|
|
@@ -2840,19 +3221,29 @@ interface SidebarSectionProps extends Omit<React$1.HTMLAttributes<HTMLDivElement
|
|
|
2840
3221
|
* Pointer events on the trailing content are isolated from the
|
|
2841
3222
|
* collapse toggle, so a Button inside `trailing` won't also flip the
|
|
2842
3223
|
* expanded state. */
|
|
2843
|
-
trailing?: React
|
|
3224
|
+
trailing?: React.ReactNode;
|
|
2844
3225
|
/** Allow the section to toggle open/closed via clicking the title.
|
|
2845
3226
|
* Default true when `title` is set; ignored otherwise (no header to click). */
|
|
2846
3227
|
collapsible?: boolean;
|
|
2847
3228
|
/** Initial open state for collapsible sections. Default true. */
|
|
2848
3229
|
defaultExpanded?: boolean;
|
|
3230
|
+
/** Title casing. The component should not silently dictate case
|
|
3231
|
+
* (Ali, 2026-06-11) — but the HISTORIC defaults differ per variant
|
|
3232
|
+
* and existing surfaces depend on them, so when unset, legacy
|
|
3233
|
+
* behaviour is preserved exactly: static headers render UPPERCASE
|
|
3234
|
+
* (the Notion/Linear treatment), collapsible headers render the
|
|
3235
|
+
* authored case (a long-standing `normal-case` override). Set
|
|
3236
|
+
* explicitly to get the same treatment from both variants:
|
|
3237
|
+
* `"uppercase"` for the shouty group label, `"none"` for
|
|
3238
|
+
* sentence-case headers like a "Recents" list. */
|
|
3239
|
+
titleTransform?: "uppercase" | "none";
|
|
2849
3240
|
}
|
|
2850
|
-
declare const SidebarSection: React
|
|
2851
|
-
interface SidebarItemProps extends Omit<React
|
|
3241
|
+
declare const SidebarSection: React.ForwardRefExoticComponent<SidebarSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
3242
|
+
interface SidebarItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "title"> {
|
|
2852
3243
|
/** Leading icon. Sized to fit both expanded + collapsed states. */
|
|
2853
|
-
icon?: React
|
|
3244
|
+
icon?: React.ReactNode;
|
|
2854
3245
|
/** Trailing badge — count, status label. Hidden when collapsed. */
|
|
2855
|
-
badge?: React
|
|
3246
|
+
badge?: React.ReactNode;
|
|
2856
3247
|
/** Marks the current page / route. Drives the highlighted style + sets
|
|
2857
3248
|
* `aria-current="page"`. */
|
|
2858
3249
|
active?: boolean;
|
|
@@ -2866,10 +3257,10 @@ interface SidebarItemProps extends Omit<React$1.AnchorHTMLAttributes<HTMLAnchorE
|
|
|
2866
3257
|
disabled?: boolean;
|
|
2867
3258
|
/** Visible label. Use `children` so the JSX reads naturally — the
|
|
2868
3259
|
* prop name is `children` not `label`. */
|
|
2869
|
-
children?: React
|
|
3260
|
+
children?: React.ReactNode;
|
|
2870
3261
|
/** Tooltip override shown when sidebar is collapsed. Defaults to the
|
|
2871
3262
|
* item's text content (children, when it's a string). */
|
|
2872
|
-
collapsedLabel?: React
|
|
3263
|
+
collapsedLabel?: React.ReactNode;
|
|
2873
3264
|
/**
|
|
2874
3265
|
* Row size.
|
|
2875
3266
|
*
|
|
@@ -2889,17 +3280,17 @@ interface SidebarItemProps extends Omit<React$1.AnchorHTMLAttributes<HTMLAnchorE
|
|
|
2889
3280
|
* badge anchored to the trailing edge as usual. Hidden when the
|
|
2890
3281
|
* sidebar is collapsed (only the icon + tooltip remain).
|
|
2891
3282
|
*/
|
|
2892
|
-
description?: React
|
|
3283
|
+
description?: React.ReactNode;
|
|
2893
3284
|
}
|
|
2894
|
-
declare const SidebarItem: React
|
|
2895
|
-
interface SidebarTreeItemProps extends Omit<React
|
|
3285
|
+
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
3286
|
+
interface SidebarTreeItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "title"> {
|
|
2896
3287
|
/** Row label. Required — without it the row has nothing to show. */
|
|
2897
|
-
label: React
|
|
3288
|
+
label: React.ReactNode;
|
|
2898
3289
|
/** Leading icon (folder, file, custom emoji). Shown to the right
|
|
2899
3290
|
* of the chevron column. */
|
|
2900
|
-
icon?: React
|
|
3291
|
+
icon?: React.ReactNode;
|
|
2901
3292
|
/** Trailing badge — count, status. Hidden when sidebar is collapsed. */
|
|
2902
|
-
badge?: React
|
|
3293
|
+
badge?: React.ReactNode;
|
|
2903
3294
|
/** Marks the branch as the current route. Adds aria-current="page"
|
|
2904
3295
|
* on the row. */
|
|
2905
3296
|
active?: boolean;
|
|
@@ -2913,7 +3304,7 @@ interface SidebarTreeItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLBut
|
|
|
2913
3304
|
/** Disabled state. */
|
|
2914
3305
|
disabled?: boolean;
|
|
2915
3306
|
/** Nested children — SidebarItem or more SidebarTreeItem. */
|
|
2916
|
-
children?: React
|
|
3307
|
+
children?: React.ReactNode;
|
|
2917
3308
|
/**
|
|
2918
3309
|
* Secondary line shown beneath the label — same shape as
|
|
2919
3310
|
* SidebarItem's `description`. Useful when a branch needs more
|
|
@@ -2921,7 +3312,7 @@ interface SidebarTreeItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLBut
|
|
|
2921
3312
|
* Layout adapts to stack label + description; chevron and icon
|
|
2922
3313
|
* stay vertically centered against the stack.
|
|
2923
3314
|
*/
|
|
2924
|
-
description?: React
|
|
3315
|
+
description?: React.ReactNode;
|
|
2925
3316
|
/**
|
|
2926
3317
|
* Right-edge action slot — settings cog, more-actions overflow,
|
|
2927
3318
|
* "+ add child" affordance. Rendered as a sibling of the branch
|
|
@@ -2937,13 +3328,13 @@ interface SidebarTreeItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLBut
|
|
|
2937
3328
|
* Hovering nested children rows does NOT trigger the group hover
|
|
2938
3329
|
* — the named group is scoped to the branch row alone.
|
|
2939
3330
|
*/
|
|
2940
|
-
trailing?: React
|
|
3331
|
+
trailing?: React.ReactNode;
|
|
2941
3332
|
}
|
|
2942
|
-
declare const SidebarTreeItem: React
|
|
3333
|
+
declare const SidebarTreeItem: React.ForwardRefExoticComponent<SidebarTreeItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2943
3334
|
|
|
2944
|
-
declare const Map: React
|
|
3335
|
+
declare const Map: React.ForwardRefExoticComponent<MapProps & React.RefAttributes<MapHandle>>;
|
|
2945
3336
|
|
|
2946
|
-
declare const MapMarker: React
|
|
3337
|
+
declare const MapMarker: React.NamedExoticComponent<MapMarkerProps>;
|
|
2947
3338
|
|
|
2948
3339
|
/**
|
|
2949
3340
|
* lib/motion — the global motion control for gradeui.
|
|
@@ -3205,7 +3596,7 @@ declare global {
|
|
|
3205
3596
|
__gradeMediaPending?: Record<string, true>;
|
|
3206
3597
|
}
|
|
3207
3598
|
}
|
|
3208
|
-
interface MediaSurfaceProps extends Omit<React
|
|
3599
|
+
interface MediaSurfaceProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3209
3600
|
aspect?: MediaAspect;
|
|
3210
3601
|
radius?: MediaRadius;
|
|
3211
3602
|
border?: boolean;
|
|
@@ -3213,7 +3604,7 @@ interface MediaSurfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
3213
3604
|
/** Callback fires when the surface enters / leaves the viewport. */
|
|
3214
3605
|
onVisibilityChange?: (visible: boolean) => void;
|
|
3215
3606
|
/** Fallback shown before `onReady` is signalled by the child. */
|
|
3216
|
-
fallback?: React
|
|
3607
|
+
fallback?: React.ReactNode;
|
|
3217
3608
|
/**
|
|
3218
3609
|
* Controls the empty-state placeholder shown when no `src`, `children`,
|
|
3219
3610
|
* and no `loading` state are provided. Default `"auto"` renders the
|
|
@@ -3225,7 +3616,7 @@ interface MediaSurfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
3225
3616
|
* Legacy `"icon"` is kept as an alias for `"auto"` so the previous API
|
|
3226
3617
|
* doesn't break.
|
|
3227
3618
|
*/
|
|
3228
|
-
emptyState?: "auto" | "icon" | "none" | React
|
|
3619
|
+
emptyState?: "auto" | "icon" | "none" | React.ReactNode;
|
|
3229
3620
|
/**
|
|
3230
3621
|
* What kind of media is intended for this slot — drives the placeholder
|
|
3231
3622
|
* glyph, the default `aspect` when unset, and the future generator's
|
|
@@ -3260,7 +3651,7 @@ interface MediaSurfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
3260
3651
|
* should pick a `hint` and let the map decide; this is the escape
|
|
3261
3652
|
* hatch for special slots that don't fit the canonical set.
|
|
3262
3653
|
*/
|
|
3263
|
-
glyph?: React
|
|
3654
|
+
glyph?: React.ReactNode;
|
|
3264
3655
|
/**
|
|
3265
3656
|
* Stable identifier for this specific MediaSurface instance, stamped
|
|
3266
3657
|
* on the root as `data-gds-instance-id`. When the JSX renders a list
|
|
@@ -3288,10 +3679,10 @@ interface MediaSurfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
3288
3679
|
* `children` for content that REPLACES the media (custom canvas/video);
|
|
3289
3680
|
* use `overlay` for content that DECORATES it.
|
|
3290
3681
|
*/
|
|
3291
|
-
overlay?: React
|
|
3292
|
-
children?: React
|
|
3682
|
+
overlay?: React.ReactNode;
|
|
3683
|
+
children?: React.ReactNode;
|
|
3293
3684
|
}
|
|
3294
|
-
declare const MediaSurface: React
|
|
3685
|
+
declare const MediaSurface: React.ForwardRefExoticComponent<MediaSurfaceProps & React.RefAttributes<HTMLDivElement>>;
|
|
3295
3686
|
/** Shared prop interface extended by each media primitive. */
|
|
3296
3687
|
interface BaseMediaProps {
|
|
3297
3688
|
/** src for the media — url or path. */
|
|
@@ -3315,7 +3706,7 @@ interface BaseMediaProps {
|
|
|
3315
3706
|
/** Accessible label — used as `aria-label` on the surface. */
|
|
3316
3707
|
label?: string;
|
|
3317
3708
|
className?: string;
|
|
3318
|
-
style?: React
|
|
3709
|
+
style?: React.CSSProperties;
|
|
3319
3710
|
}
|
|
3320
3711
|
|
|
3321
3712
|
/**
|
|
@@ -3334,7 +3725,7 @@ interface VideoPlayerProps extends BaseMediaProps {
|
|
|
3334
3725
|
/** Object-fit. Defaults to "cover" — matches typical hero/background use. */
|
|
3335
3726
|
objectFit?: "cover" | "contain" | "fill";
|
|
3336
3727
|
}
|
|
3337
|
-
declare const VideoPlayer: React
|
|
3728
|
+
declare const VideoPlayer: React.ForwardRefExoticComponent<VideoPlayerProps & React.RefAttributes<HTMLVideoElement>>;
|
|
3338
3729
|
|
|
3339
3730
|
/**
|
|
3340
3731
|
* RivePlayer — Rive runtime wrapped in a MediaSurface.
|
|
@@ -3358,7 +3749,7 @@ interface RivePlayerProps extends BaseMediaProps {
|
|
|
3358
3749
|
/** Inputs to pass to the state machine. */
|
|
3359
3750
|
stateMachineInputs?: Record<string, number | boolean | string>;
|
|
3360
3751
|
}
|
|
3361
|
-
declare const RivePlayer: React
|
|
3752
|
+
declare const RivePlayer: React.ForwardRefExoticComponent<RivePlayerProps & React.RefAttributes<HTMLDivElement>>;
|
|
3362
3753
|
|
|
3363
3754
|
/**
|
|
3364
3755
|
* Logo — a brand mark with lockup, background-mode, and monochrome
|
|
@@ -3387,9 +3778,9 @@ type LogoSize = "sm" | "md" | "lg" | "xl";
|
|
|
3387
3778
|
* light or dark background; `mono` is a single-colour treatment that
|
|
3388
3779
|
* inherits `currentColor` and works on any background. */
|
|
3389
3780
|
interface LogoVariant {
|
|
3390
|
-
light?: React
|
|
3391
|
-
dark?: React
|
|
3392
|
-
mono?: React
|
|
3781
|
+
light?: React.ReactNode;
|
|
3782
|
+
dark?: React.ReactNode;
|
|
3783
|
+
mono?: React.ReactNode;
|
|
3393
3784
|
}
|
|
3394
3785
|
/** The brand artwork set, keyed by lockup then appearance. */
|
|
3395
3786
|
interface LogoSources {
|
|
@@ -3397,7 +3788,7 @@ interface LogoSources {
|
|
|
3397
3788
|
horizontal?: LogoVariant;
|
|
3398
3789
|
icon?: LogoVariant;
|
|
3399
3790
|
}
|
|
3400
|
-
interface LogoProps extends Omit<React
|
|
3791
|
+
interface LogoProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
3401
3792
|
/** The brand artwork. Supply only the slots you have. Optional — with
|
|
3402
3793
|
* no artwork at all the neutral placeholder renders, which keeps
|
|
3403
3794
|
* layout intact (and keeps a model-emitted bare `<Logo />` from
|
|
@@ -3425,10 +3816,10 @@ interface LogoProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "children"
|
|
|
3425
3816
|
/** Optional link target — renders the logo as an `<a>` (logo-links-home). */
|
|
3426
3817
|
href?: string;
|
|
3427
3818
|
}
|
|
3428
|
-
declare const Logo: React
|
|
3819
|
+
declare const Logo: React.ForwardRefExoticComponent<LogoProps & React.RefAttributes<HTMLElement>>;
|
|
3429
3820
|
|
|
3430
3821
|
type GradeLoaderSize = "sm" | "md" | "lg" | "xl";
|
|
3431
|
-
interface GradeLoaderProps extends Omit<React
|
|
3822
|
+
interface GradeLoaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3432
3823
|
/** Mark size — token or exact pixels. Default `"md"` (24px). */
|
|
3433
3824
|
size?: GradeLoaderSize | number;
|
|
3434
3825
|
/** Accessible status text (and the optional visible caption).
|
|
@@ -3437,7 +3828,7 @@ interface GradeLoaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
3437
3828
|
/** Show the label visually under the mark (it's always announced). */
|
|
3438
3829
|
showLabel?: boolean;
|
|
3439
3830
|
}
|
|
3440
|
-
declare const GradeLoader: React
|
|
3831
|
+
declare const GradeLoader: React.ForwardRefExoticComponent<GradeLoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
3441
3832
|
|
|
3442
3833
|
/**
|
|
3443
3834
|
* ScreenAnimator — wrap any content in a directed camera.
|
|
@@ -3499,12 +3890,12 @@ interface ScreenAnimatorProps {
|
|
|
3499
3890
|
/** A live backdrop rendered BEHIND the content, filling the stage — an
|
|
3500
3891
|
* image, a gradient, or a `<ThreeScene>` shader. Shows around the screen
|
|
3501
3892
|
* while it's small (fly in/out) and behind any padding. */
|
|
3502
|
-
backdrop?: React
|
|
3893
|
+
backdrop?: React.ReactNode;
|
|
3503
3894
|
className?: string;
|
|
3504
|
-
style?: React
|
|
3505
|
-
children: React
|
|
3895
|
+
style?: React.CSSProperties;
|
|
3896
|
+
children: React.ReactNode;
|
|
3506
3897
|
}
|
|
3507
|
-
declare function ScreenAnimator({ shots, autoplay, loop, maxLoops, controls, paused, onEnded, spotlight, cursor, enter, captionPosition, stage, backdrop, className, style, children, }: ScreenAnimatorProps): React
|
|
3898
|
+
declare function ScreenAnimator({ shots, autoplay, loop, maxLoops, controls, paused, onEnded, spotlight, cursor, enter, captionPosition, stage, backdrop, className, style, children, }: ScreenAnimatorProps): React.JSX.Element;
|
|
3508
3899
|
|
|
3509
3900
|
/**
|
|
3510
3901
|
* Motion — a directed sequence of scenes on one persistent stage.
|
|
@@ -3579,10 +3970,10 @@ interface MotionScreenProps {
|
|
|
3579
3970
|
* render; read by tooling (the dock, future live-reference scenes). */
|
|
3580
3971
|
screenId?: string;
|
|
3581
3972
|
className?: string;
|
|
3582
|
-
style?: React
|
|
3583
|
-
children: React
|
|
3973
|
+
style?: React.CSSProperties;
|
|
3974
|
+
children: React.ReactNode;
|
|
3584
3975
|
}
|
|
3585
|
-
declare function MotionScreen({ device, shots, virtualWidth, spotlight, cursor, enter, animate, screenId: _screenId, className, style, children, }: MotionScreenProps): React
|
|
3976
|
+
declare function MotionScreen({ device, shots, virtualWidth, spotlight, cursor, enter, animate, screenId: _screenId, className, style, children, }: MotionScreenProps): React.JSX.Element;
|
|
3586
3977
|
type MotionTextTemplate = "title" | "lower-third" | "section-break" | "broadcast" | "ticker" | "stat" | "quote";
|
|
3587
3978
|
interface MotionTextProps {
|
|
3588
3979
|
/** Which Motion Template. Default "title". */
|
|
@@ -3602,9 +3993,9 @@ interface MotionTextProps {
|
|
|
3602
3993
|
*/
|
|
3603
3994
|
lift?: "none" | "shadow" | "scrim";
|
|
3604
3995
|
className?: string;
|
|
3605
|
-
style?: React
|
|
3996
|
+
style?: React.CSSProperties;
|
|
3606
3997
|
}
|
|
3607
|
-
declare function MotionText({ template, heading, text, durationMs, tone, lift, className, style, }: MotionTextProps): React
|
|
3998
|
+
declare function MotionText({ template, heading, text, durationMs, tone, lift, className, style, }: MotionTextProps): React.JSX.Element;
|
|
3608
3999
|
type MotionOverlayZone = "top-left" | "top" | "top-right" | "center" | "bottom-left" | "bottom" | "bottom-right" | "lower-third";
|
|
3609
4000
|
interface MotionOverlayProps {
|
|
3610
4001
|
/** Anchor zone. Default "top-right" (the classic network-bug corner). */
|
|
@@ -3617,10 +4008,10 @@ interface MotionOverlayProps {
|
|
|
3617
4008
|
/** Re-enable pointer events for interactive overlays. Default false. */
|
|
3618
4009
|
interactive?: boolean;
|
|
3619
4010
|
className?: string;
|
|
3620
|
-
style?: React
|
|
3621
|
-
children: React
|
|
4011
|
+
style?: React.CSSProperties;
|
|
4012
|
+
children: React.ReactNode;
|
|
3622
4013
|
}
|
|
3623
|
-
declare function MotionOverlay({ zone, fromScene: _fromScene, toScene: _toScene, interactive, className, style, children, }: MotionOverlayProps): React
|
|
4014
|
+
declare function MotionOverlay({ zone, fromScene: _fromScene, toScene: _toScene, interactive, className, style, children, }: MotionOverlayProps): React.JSX.Element;
|
|
3624
4015
|
/** How a scene ARRIVES on the stage. Entrance-only by design — the
|
|
3625
4016
|
* outgoing scene cuts; the incoming one performs. (True cross-fades
|
|
3626
4017
|
* need both scenes mounted; that rides the seekable-clock work.) */
|
|
@@ -3648,8 +4039,8 @@ interface MotionSceneProps {
|
|
|
3648
4039
|
* SCENE_TRANSITION_DEFAULT_MS. */
|
|
3649
4040
|
transitionMs?: number;
|
|
3650
4041
|
className?: string;
|
|
3651
|
-
style?: React
|
|
3652
|
-
children: React
|
|
4042
|
+
style?: React.CSSProperties;
|
|
4043
|
+
children: React.ReactNode;
|
|
3653
4044
|
}
|
|
3654
4045
|
/**
|
|
3655
4046
|
* One stage moment in a `<Motion>`. Holds arbitrary content; advances by
|
|
@@ -3657,7 +4048,7 @@ interface MotionSceneProps {
|
|
|
3657
4048
|
* (active, looping nothing) so a scene can be previewed in isolation —
|
|
3658
4049
|
* each scene is independently editable.
|
|
3659
4050
|
*/
|
|
3660
|
-
declare function MotionScene(props: MotionSceneProps): React
|
|
4051
|
+
declare function MotionScene(props: MotionSceneProps): React.JSX.Element;
|
|
3661
4052
|
interface MotionProps {
|
|
3662
4053
|
/** "play" runs the film; "strip" lays the scenes out left-to-right as
|
|
3663
4054
|
* labelled cards (the arrangement / edit view). Default "play". */
|
|
@@ -3670,7 +4061,7 @@ interface MotionProps {
|
|
|
3670
4061
|
/** The persistent stage behind every scene (CSS background). */
|
|
3671
4062
|
stage?: string;
|
|
3672
4063
|
/** A live layer behind all scenes (image, gradient, <ThreeScene>). */
|
|
3673
|
-
backdrop?: React
|
|
4064
|
+
backdrop?: React.ReactNode;
|
|
3674
4065
|
/** Start playing on mount. Default true. */
|
|
3675
4066
|
autoplay?: boolean;
|
|
3676
4067
|
/** Return to scene 1 and keep going at the end. Default false — a
|
|
@@ -3679,10 +4070,10 @@ interface MotionProps {
|
|
|
3679
4070
|
/** Show the transport (play/pause, restart, scene dots). Default true. */
|
|
3680
4071
|
controls?: boolean;
|
|
3681
4072
|
className?: string;
|
|
3682
|
-
style?: React
|
|
3683
|
-
children: React
|
|
4073
|
+
style?: React.CSSProperties;
|
|
4074
|
+
children: React.ReactNode;
|
|
3684
4075
|
}
|
|
3685
|
-
declare function Motion({ view, aspect, stage, backdrop, autoplay, loop, controls, className, style, children, }: MotionProps): React
|
|
4076
|
+
declare function Motion({ view, aspect, stage, backdrop, autoplay, loop, controls, className, style, children, }: MotionProps): React.JSX.Element;
|
|
3686
4077
|
|
|
3687
4078
|
/**
|
|
3688
4079
|
* Control schema — the canonical, UI-agnostic descriptor for a shader's
|
|
@@ -3710,6 +4101,12 @@ type NumberControl = {
|
|
|
3710
4101
|
default: number;
|
|
3711
4102
|
/** Display unit appended in the readout (e.g. "px", "°", "%"). */
|
|
3712
4103
|
unit?: string;
|
|
4104
|
+
/** Readout normalisation. "percent" shows the value as 0–100% of its
|
|
4105
|
+
* [min,max] range (the slider still drives the real value) — for the
|
|
4106
|
+
* abstract 0.3753-style knobs where a percentage reads far clearer.
|
|
4107
|
+
* Omit for the raw number. A panel-level `format` setting can opt every
|
|
4108
|
+
* eligible slider into percent without per-control flags. */
|
|
4109
|
+
display?: "percent";
|
|
3713
4110
|
};
|
|
3714
4111
|
type ColorControl = {
|
|
3715
4112
|
type: "color";
|
|
@@ -3800,6 +4197,11 @@ interface SceneHandle {
|
|
|
3800
4197
|
resize?: (width: number, height: number) => void;
|
|
3801
4198
|
/** Called when palette changes at runtime. */
|
|
3802
4199
|
setPalette?: (palette: Palette) => void;
|
|
4200
|
+
/** Called when contract-driven params change at runtime (no remount).
|
|
4201
|
+
* Values are pre-resolved by the host: colours as THREE-parseable
|
|
4202
|
+
* strings (rgb()/hex), colour lists as string[], numbers/bools/selects
|
|
4203
|
+
* as their raw DemoState values. Keyed by ControlSpec.key. */
|
|
4204
|
+
setParams?: (params: Record<string, number | string | boolean | string[]>) => void;
|
|
3803
4205
|
/** Release GPU + CPU resources. */
|
|
3804
4206
|
dispose?: () => void;
|
|
3805
4207
|
}
|
|
@@ -3897,7 +4299,11 @@ declare class ShaderCompileError extends Error {
|
|
|
3897
4299
|
* the GLSL doesn't compile. ThreeScene catches this and falls back to
|
|
3898
4300
|
* `preset="space"` so the UI stays populated.
|
|
3899
4301
|
*/
|
|
3900
|
-
declare function buildFragmentShaderScene(userFragment: string
|
|
4302
|
+
declare function buildFragmentShaderScene(userFragment: string,
|
|
4303
|
+
/** Optional param contract — each non-divider control becomes a uniform
|
|
4304
|
+
* the shader can read (see paramUniformName) and `setParams` can drive
|
|
4305
|
+
* live without a remount. */
|
|
4306
|
+
controls?: readonly ControlSpec[]): SceneFactory;
|
|
3901
4307
|
|
|
3902
4308
|
/**
|
|
3903
4309
|
* ThreeScene — the WebGL media primitive.
|
|
@@ -3923,7 +4329,7 @@ declare function buildFragmentShaderScene(userFragment: string): SceneFactory;
|
|
|
3923
4329
|
* an explicit `palette.background` always wins over both.
|
|
3924
4330
|
*/
|
|
3925
4331
|
type SceneTone = "auto" | "dark" | "light";
|
|
3926
|
-
interface ThreeSceneProps extends Omit<BaseMediaProps, "src" | "poster">, Omit<React
|
|
4332
|
+
interface ThreeSceneProps extends Omit<BaseMediaProps, "src" | "poster">, Omit<React.HTMLAttributes<HTMLDivElement>, keyof BaseMediaProps> {
|
|
3927
4333
|
/** Preset id from the shader preset registry. */
|
|
3928
4334
|
preset?: string;
|
|
3929
4335
|
/**
|
|
@@ -3966,36 +4372,54 @@ interface ThreeSceneProps extends Omit<BaseMediaProps, "src" | "poster">, Omit<R
|
|
|
3966
4372
|
* hover" thumbnails. Reduced-motion still forces paused.
|
|
3967
4373
|
*/
|
|
3968
4374
|
play?: boolean;
|
|
4375
|
+
/**
|
|
4376
|
+
* Release the WebGL context entirely while the scene is scrolled out of
|
|
4377
|
+
* view (and rebuild it when it returns), instead of merely pausing the
|
|
4378
|
+
* render loop. A live `WebGLRenderer` holds a real GL context for its
|
|
4379
|
+
* whole lifetime, and browsers cap simultaneous contexts (~16 Chrome,
|
|
4380
|
+
* ~8 Safari) — so a gallery of many `ThreeScene`s blows the budget and
|
|
4381
|
+
* the browser silently evicts the OLDEST (those cards go blank with a
|
|
4382
|
+
* "Context Lost" log). Galleries / thumbnail grids should set this so
|
|
4383
|
+
* only the on-screen scenes hold a context; a global budget (below) caps
|
|
4384
|
+
* the live total. Default `false` — single hero shaders keep their context.
|
|
4385
|
+
*/
|
|
4386
|
+
releaseOffscreen?: boolean;
|
|
3969
4387
|
}
|
|
3970
|
-
declare const ThreeScene: React
|
|
4388
|
+
declare const ThreeScene: React.ForwardRefExoticComponent<ThreeSceneProps & React.RefAttributes<HTMLDivElement>>;
|
|
3971
4389
|
|
|
3972
4390
|
/**
|
|
3973
|
-
* ShaderControls — renders a `ControlSpec[]` schema into a
|
|
3974
|
-
* panel
|
|
3975
|
-
*
|
|
3976
|
-
*
|
|
3977
|
-
*
|
|
3978
|
-
*
|
|
3979
|
-
*
|
|
3980
|
-
*
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
*
|
|
3984
|
-
*
|
|
3985
|
-
*
|
|
3986
|
-
*
|
|
3987
|
-
* colorList → N swatches + add/remove (Paper's colorCount)
|
|
3988
|
-
* divider → section heading + rule
|
|
4391
|
+
* ShaderControls — renders a `ControlSpec[]` schema into a DS-native control
|
|
4392
|
+
* panel. The single renderer behind every shader's params, the universal
|
|
4393
|
+
* post stack, and any effect layer (they all describe themselves as
|
|
4394
|
+
* ControlSpec[]).
|
|
4395
|
+
*
|
|
4396
|
+
* DS-consistent by construction: it composes the design-system primitives at
|
|
4397
|
+
* tool-panel density (Label size="xs", Slider size="sm", Input size="2xs"
|
|
4398
|
+
* variant="ghost", ToggleGroup size="sm", Select size="xs", Switch) — no
|
|
4399
|
+
* bespoke markup, so it reads identically to the Studio inspector and the
|
|
4400
|
+
* homepage tweaker.
|
|
4401
|
+
*
|
|
4402
|
+
* `labelPosition` switches between the dense inline layout (label left,
|
|
4403
|
+
* control + value right) and label-above (label + value on top, control
|
|
4404
|
+
* below). Controlled: parent owns `DemoState`, gets `onChange(key, value)`.
|
|
3989
4405
|
*/
|
|
3990
4406
|
|
|
4407
|
+
type ControlLabelPosition = "inline" | "above";
|
|
3991
4408
|
interface ShaderControlsProps {
|
|
3992
4409
|
controls: readonly ControlSpec[];
|
|
3993
4410
|
state: DemoState;
|
|
3994
4411
|
onChange: (key: string, value: number | string | boolean | string[]) => void;
|
|
3995
4412
|
disabled?: boolean;
|
|
4413
|
+
/** Label placement: dense inline (default) or stacked above the control. */
|
|
4414
|
+
labelPosition?: ControlLabelPosition;
|
|
4415
|
+
/** Number-readout format. "percent" normalises every eligible slider (no
|
|
4416
|
+
* unit, fractional step, non-negative range) to 0–100%, killing the
|
|
4417
|
+
* abstract 0.3753 readouts. A control's own `display: "percent"` always
|
|
4418
|
+
* wins. Default "raw". */
|
|
4419
|
+
format?: "raw" | "percent";
|
|
3996
4420
|
className?: string;
|
|
3997
4421
|
}
|
|
3998
|
-
declare function ShaderControls({ controls, state, onChange, disabled, className, }: ShaderControlsProps): React
|
|
4422
|
+
declare function ShaderControls({ controls, state, onChange, disabled, labelPosition, format, className, }: ShaderControlsProps): React.JSX.Element;
|
|
3999
4423
|
|
|
4000
4424
|
/**
|
|
4001
4425
|
* BackgroundFill — a frame's background *paint*, as a layer.
|
|
@@ -4072,13 +4496,13 @@ interface BackgroundFillProps {
|
|
|
4072
4496
|
/** Layer opacity (0–1). */
|
|
4073
4497
|
opacity?: number;
|
|
4074
4498
|
/** CSS mix-blend-mode against the frame behind it. */
|
|
4075
|
-
blendMode?: React
|
|
4499
|
+
blendMode?: React.CSSProperties["mixBlendMode"];
|
|
4076
4500
|
/** Corner radius — match the frame's so the paint clips cleanly. */
|
|
4077
4501
|
radius?: MediaRadius;
|
|
4078
4502
|
className?: string;
|
|
4079
|
-
style?: React
|
|
4503
|
+
style?: React.CSSProperties;
|
|
4080
4504
|
}
|
|
4081
|
-
declare const BackgroundFill: React
|
|
4505
|
+
declare const BackgroundFill: React.ForwardRefExoticComponent<BackgroundFillProps & React.RefAttributes<HTMLDivElement>>;
|
|
4082
4506
|
|
|
4083
4507
|
/**
|
|
4084
4508
|
* FillPicker — Grade's paint picker, modelled on Figma's fill popover.
|
|
@@ -4121,7 +4545,7 @@ interface FillPickerProps {
|
|
|
4121
4545
|
onChange: (value: FillValue) => void;
|
|
4122
4546
|
className?: string;
|
|
4123
4547
|
}
|
|
4124
|
-
declare function FillPicker({ value, onChange, className }: FillPickerProps): React
|
|
4548
|
+
declare function FillPicker({ value, onChange, className }: FillPickerProps): React.JSX.Element;
|
|
4125
4549
|
declare namespace FillPicker {
|
|
4126
4550
|
var displayName: string;
|
|
4127
4551
|
}
|
|
@@ -4153,7 +4577,7 @@ interface ShaderPresetPreviewProps {
|
|
|
4153
4577
|
hideLabel?: boolean;
|
|
4154
4578
|
onClick?: () => void;
|
|
4155
4579
|
}
|
|
4156
|
-
declare const ShaderPresetPreview: React
|
|
4580
|
+
declare const ShaderPresetPreview: React.ForwardRefExoticComponent<ShaderPresetPreviewProps & React.RefAttributes<HTMLDivElement>>;
|
|
4157
4581
|
|
|
4158
4582
|
/**
|
|
4159
4583
|
* ShaderPresetPicker — runtime preset gallery + selection.
|
|
@@ -4184,7 +4608,7 @@ interface ShaderPresetPickerProps {
|
|
|
4184
4608
|
columns?: 2 | 3 | 4;
|
|
4185
4609
|
className?: string;
|
|
4186
4610
|
}
|
|
4187
|
-
declare function ShaderPresetPicker({ value, onChange, filterTags, live, postPreset, palette, columns, className, }: ShaderPresetPickerProps): React
|
|
4611
|
+
declare function ShaderPresetPicker({ value, onChange, filterTags, live, postPreset, palette, columns, className, }: ShaderPresetPickerProps): React.JSX.Element;
|
|
4188
4612
|
|
|
4189
4613
|
/**
|
|
4190
4614
|
* Shader preset registry — maps semantic preset ids to scene factories
|
|
@@ -4220,7 +4644,7 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
4220
4644
|
interface LenisProviderProps {
|
|
4221
4645
|
children: React.ReactNode;
|
|
4222
4646
|
}
|
|
4223
|
-
declare function LenisProvider({ children }: LenisProviderProps): React
|
|
4647
|
+
declare function LenisProvider({ children }: LenisProviderProps): React.JSX.Element;
|
|
4224
4648
|
|
|
4225
4649
|
/**
|
|
4226
4650
|
* OKLCH ramp generation.
|
|
@@ -4287,6 +4711,34 @@ declare const FONTS: {
|
|
|
4287
4711
|
readonly mono: "ui-monospace, Menlo, monospace";
|
|
4288
4712
|
};
|
|
4289
4713
|
type FontKey = keyof typeof FONTS;
|
|
4714
|
+
/** One uploaded font face a theme carries. Stored on
|
|
4715
|
+
* `ThemeInput.typography.customFonts` and emitted as an @font-face rule
|
|
4716
|
+
* by `fontFaceCSS` (apply.ts) wherever the theme is applied. */
|
|
4717
|
+
interface CustomFontFace {
|
|
4718
|
+
/** CSS font-family name, e.g. "Pebble Sans". Doubles as the display
|
|
4719
|
+
* label and as the reference target for `custom:<family>` selections. */
|
|
4720
|
+
family: string;
|
|
4721
|
+
/** Permanent public URL for the font file (user-assets bucket). Must be
|
|
4722
|
+
* publicly resolvable so cross-origin embeds can load it. */
|
|
4723
|
+
url: string;
|
|
4724
|
+
/** @font-face `format()` hint. Derived from the file extension. */
|
|
4725
|
+
format?: "woff2" | "woff" | "truetype" | "opentype";
|
|
4726
|
+
/** font-weight descriptor: "400", "700", or a variable range "100 900". */
|
|
4727
|
+
weight?: string;
|
|
4728
|
+
/** font-stretch descriptor range, e.g. "75% 125%" for a wdth axis.
|
|
4729
|
+
* Defaults to a generous "50% 200%" (browsers clamp to the font's
|
|
4730
|
+
* real range) so width-variable fonts respond to font-stretch. */
|
|
4731
|
+
stretch?: string;
|
|
4732
|
+
style?: "normal" | "italic";
|
|
4733
|
+
/** Drives the generic fallback stack appended after the family. */
|
|
4734
|
+
category?: "sans" | "serif" | "mono";
|
|
4735
|
+
/** Provenance: the `assets` row this face came from (optional — a theme
|
|
4736
|
+
* must stay renderable even if the library row is gone). */
|
|
4737
|
+
assetId?: string;
|
|
4738
|
+
}
|
|
4739
|
+
/** What `typography.display/body/mono` accept: a registry key, or a
|
|
4740
|
+
* reference to an entry in `typography.customFonts` ("custom:<family>"). */
|
|
4741
|
+
type FontSelection = FontKey | `custom:${string}`;
|
|
4290
4742
|
/** Type scale preset — controls how generous the size ladder is. */
|
|
4291
4743
|
type TypeScalePreset = "compact" | "default" | "spacious";
|
|
4292
4744
|
/** Modular (musical-interval) scale ids — mirror GDS_MODULAR_SCALES in
|
|
@@ -4349,6 +4801,21 @@ interface ThemeInput {
|
|
|
4349
4801
|
};
|
|
4350
4802
|
/** If true, the neutral ramp is pure gray regardless of neutral hue. */
|
|
4351
4803
|
neutralPureGray?: boolean;
|
|
4804
|
+
/**
|
|
4805
|
+
* Focus ring colour. By default the ring (`--ring`) rides the PRIMARY
|
|
4806
|
+
* ramp at a mode-tuned step (500 light / 400 dark / 300 superDark).
|
|
4807
|
+
* `source` re-points it at another ramp; `hue` (0–360) gives the ring
|
|
4808
|
+
* its own dedicated ramp at primary chroma — for brands whose focus
|
|
4809
|
+
* colour is deliberately independent of primary/accent (e.g. a blue
|
|
4810
|
+
* a11y ring on a warm-toned brand). `hue` wins over `source` when both
|
|
4811
|
+
* are set. The mode-tuned step is preserved either way, so contrast
|
|
4812
|
+
* behaviour per mode doesn't change. Deterministic + portable like
|
|
4813
|
+
* every other ThemeInput field.
|
|
4814
|
+
*/
|
|
4815
|
+
ring?: {
|
|
4816
|
+
source?: "primary" | "accent" | "neutral";
|
|
4817
|
+
hue?: number;
|
|
4818
|
+
};
|
|
4352
4819
|
/**
|
|
4353
4820
|
* Global chroma intensity. Multiplies every ramp's chroma — a quick way to
|
|
4354
4821
|
* flip the whole theme between muted / default / vibrant without touching
|
|
@@ -4356,9 +4823,9 @@ interface ThemeInput {
|
|
|
4356
4823
|
*/
|
|
4357
4824
|
intensity?: ColorIntensity;
|
|
4358
4825
|
typography: {
|
|
4359
|
-
display:
|
|
4360
|
-
body:
|
|
4361
|
-
mono:
|
|
4826
|
+
display: FontSelection;
|
|
4827
|
+
body: FontSelection;
|
|
4828
|
+
mono: FontSelection;
|
|
4362
4829
|
scale: TypeScale;
|
|
4363
4830
|
/** Override heading weight. Defaults to 600 for sans, 500 for serif. */
|
|
4364
4831
|
headingWeight?: number;
|
|
@@ -4366,6 +4833,18 @@ interface ThemeInput {
|
|
|
4366
4833
|
bodyWeight?: number;
|
|
4367
4834
|
/** Letter-spacing applied to headings. Default "-0.01em". */
|
|
4368
4835
|
headingTracking?: string;
|
|
4836
|
+
/** CSS font-stretch for body text (spans, paragraphs, component
|
|
4837
|
+
* text — it inherits everywhere). Meaningful for fonts with a
|
|
4838
|
+
* wdth axis, e.g. "90%" = TT Commons' Compact cut. Default
|
|
4839
|
+
* "normal". Fonts without the axis ignore it. */
|
|
4840
|
+
bodyStretch?: string;
|
|
4841
|
+
/** CSS font-stretch for display/heading text. Defaults to
|
|
4842
|
+
* bodyStretch so one knob re-cuts the whole theme. */
|
|
4843
|
+
displayStretch?: string;
|
|
4844
|
+
/** Uploaded faces this theme carries. A `custom:<family>` selection
|
|
4845
|
+
* above must have a matching entry here; unreferenced entries are
|
|
4846
|
+
* harmless (kept so switching back is instant). */
|
|
4847
|
+
customFonts?: CustomFontFace[];
|
|
4369
4848
|
};
|
|
4370
4849
|
spacing: {
|
|
4371
4850
|
density: SpacingDensity;
|
|
@@ -4430,9 +4909,17 @@ interface GeneratedTypography {
|
|
|
4430
4909
|
fontSans: string;
|
|
4431
4910
|
fontMono: string;
|
|
4432
4911
|
fontDisplay: string;
|
|
4912
|
+
/** Custom @font-face sources carried through from the input. Whoever
|
|
4913
|
+
* applies the theme (apply.ts, Fast Frame, Sandpack, embed) is
|
|
4914
|
+
* responsible for injecting these — the font-family vars above already
|
|
4915
|
+
* reference the family names. Absent/empty for registry-only themes. */
|
|
4916
|
+
fontFaces?: CustomFontFace[];
|
|
4433
4917
|
headingWeight: number;
|
|
4434
4918
|
bodyWeight: number;
|
|
4435
4919
|
headingTracking: string;
|
|
4920
|
+
/** Resolved CSS font-stretch values ("normal" when unset). */
|
|
4921
|
+
bodyStretch: string;
|
|
4922
|
+
displayStretch: string;
|
|
4436
4923
|
/** Explicit font-size for each step in the scale. */
|
|
4437
4924
|
scale: {
|
|
4438
4925
|
display: string;
|
|
@@ -4698,11 +5185,11 @@ type GradeThemeContextValue = {
|
|
|
4698
5185
|
refresh: () => void;
|
|
4699
5186
|
};
|
|
4700
5187
|
interface GradeThemeProviderProps {
|
|
4701
|
-
children: React
|
|
5188
|
+
children: React.ReactNode;
|
|
4702
5189
|
defaultTheme?: string;
|
|
4703
5190
|
defaultMode?: ModeName;
|
|
4704
5191
|
}
|
|
4705
|
-
declare function GradeThemeProvider({ children, defaultTheme, defaultMode, }: GradeThemeProviderProps): React
|
|
5192
|
+
declare function GradeThemeProvider({ children, defaultTheme, defaultMode, }: GradeThemeProviderProps): React.JSX.Element;
|
|
4706
5193
|
/** Read the active theme + mode. Must be used inside <GradeThemeProvider>. */
|
|
4707
5194
|
declare function useGradeTheme(): GradeThemeContextValue;
|
|
4708
5195
|
/** Safe variant — returns null outside a provider instead of throwing. */
|
|
@@ -4717,7 +5204,7 @@ declare function useMaybeGradeTheme(): GradeThemeContextValue | null;
|
|
|
4717
5204
|
*/
|
|
4718
5205
|
declare function GradeThemeSwitcher({ className }: {
|
|
4719
5206
|
className?: string;
|
|
4720
|
-
}): React
|
|
5207
|
+
}): React.JSX.Element | null;
|
|
4721
5208
|
|
|
4722
5209
|
/**
|
|
4723
5210
|
* 4-way mode switcher. Segmented control: super-light / light / dark / super-dark.
|
|
@@ -4730,13 +5217,13 @@ interface GradeModeSwitcherProps {
|
|
|
4730
5217
|
className?: string;
|
|
4731
5218
|
variant?: "icons" | "labeled";
|
|
4732
5219
|
}
|
|
4733
|
-
declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProps): React
|
|
5220
|
+
declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProps): React.JSX.Element | null;
|
|
4734
5221
|
|
|
4735
5222
|
/**
|
|
4736
5223
|
* Binary light/dark toggle — flips between `light` and `dark` modes.
|
|
4737
5224
|
* For the full 4-way picker (including super-light / super-dark), use
|
|
4738
5225
|
* <GradeModeSwitcher /> instead.
|
|
4739
5226
|
*/
|
|
4740
|
-
declare function ThemeToggle(): React
|
|
5227
|
+
declare function ThemeToggle(): React.JSX.Element;
|
|
4741
5228
|
|
|
4742
|
-
export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppShell, AppShellAside, type AppShellAsideProps, AppShellFooter, type AppShellFooterProps, AppShellHeader, type AppShellHeaderProps, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, Avatar, AvatarFallback, AvatarImage, type AvatarTone, BUILT_IN_INPUTS, BackgroundFill, type BackgroundFillFit, type BackgroundFillProps, type BackgroundFillType, Badge, Banner, type BannerProps, type BaseMediaProps, BlinkingCursor, type BlinkingCursorProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, type BreadcrumbMenuItem, BreadcrumbMenuTrigger, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonShape, COMPONENT_CONTRACTS, Calendar, CalendarDayButton, Callout, CalloutDescription, CalloutTitle, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, Carousel, CarouselArrows, type CarouselArrowsProps, type AutoplayConfig as CarouselAutoplayConfig, CarouselDots, type CarouselDotsProps, type CarouselNavButtonProps, CarouselNext, CarouselPrev, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselVideoSlide, type CarouselVideoSlideProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, type ChartPalette, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCard, type CheckboxCardProps, Code, type CodeDiff, type CodeLanguage, type CodeProps, type CodeReveal, type CodeTrigger, type ColorIntensity, Composer, type ComposerAttachment, type ComposerAttachmentConfig, type ComposerContent, type ComposerFormat, type ComposerHandle, type ComposerMentionItem, type ComposerProps, ComposerReply, type ComposerStep, type ComposerTriggerConfig, DEMO_SPEED_PRESETS, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DemoSpeed, DemoStage, type DemoStageProps, type DemoTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FILL_TOKENS, FRAGMENT_HEADER, Field, FieldDescription, FieldLabel, type FieldProps, FieldTrailing, FillPicker, type FillPickerProps, type FillValue, Flex, type FlexProps, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeLoader, type GradeLoaderProps, type GradeLoaderSize, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Grid, type GridProps, Input, type InputStyle, Label, LenisProvider, Logo, type LogoLockup, type LogoMode, type LogoProps, type LogoSize, type LogoSources, type LogoVariant, MOTION_ATTR, Map, MapHandle, MapMarker, MapMarkerProps, MapProps, type MediaAspect, type MediaRadius, MediaSurface, MediaSurfaceContract, type MediaSurfaceProps, Message, type MessageProps, type ModeName, Motion, MotionOverlay, type MotionOverlayProps, type MotionOverlayZone, type MotionProps, MotionScene, type MotionSceneProps, type MotionSceneRegistration, type MotionSceneTransition, MotionScreen, type MotionScreenAnimate, type MotionScreenProps, MotionText, type MotionTextProps, type MotionTextTemplate, MultiSelect, type MultiSelectOption, type MultiSelectProps, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, RadioCard, type RadioCardProps, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, ResizableHandle, ResizablePanel, ResizablePanelGroup, Reveal, type RevealAnimation, type RevealProps, type RevealStep, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScreenAnimator, type ScreenAnimatorProps, type ScreenAnimatorShot, type ScriptedDemoContext, type ScriptedDemoState, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, ShaderControls, type ShaderControlsProps, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, SidebarTreeItem, type SidebarTreeItemProps, Skeleton, Slider, Sortable, SortableGroup, type SortableGroupProps, SortableHandle, type SortableHandleProps, SortableItem, type SortableItemProps, type SortableProps, type SpacingDensity, Stack, type StackProps, Switch, SwitchCard, type SwitchCardProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarProps, ToolbarSlot, type ToolbarSlotProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypeScalePreset, type UseScriptedDemoOptions, VideoPlayer, type VideoPlayerProps, asideVariants as appShellAsideVariants, footerVariants as appShellFooterVariants, headerVariants as appShellHeaderVariants, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, bannerVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calloutVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, sleep as demoSleep, typeText as demoTypeText, duplicateTheme, energyInput, flexVariants, generateTheme, getComponentContract, getTheme, gridVariants, listContractedComponents, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, setMotion, shaderPresetById, shaderPresets, shellVariants, stackVariants, themeToCSSVars, toggleVariants, useCarouselApi, useGradeTheme, useMaybeGradeTheme, useMotionScene, usePageActive, usePrefersReducedMotion, useReducedMotion, useScriptedDemo };
|
|
5229
|
+
export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppShell, AppShellAside, type AppShellAsideProps, AppShellFooter, type AppShellFooterProps, AppShellHeader, type AppShellHeaderProps, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, Avatar, AvatarFallback, AvatarImage, type AvatarTone, BUILT_IN_INPUTS, BackgroundFill, type BackgroundFillFit, type BackgroundFillProps, type BackgroundFillType, Badge, Banner, type BannerProps, type BaseMediaProps, BlinkingCursor, type BlinkingCursorProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, type BreadcrumbMenuItem, BreadcrumbMenuTrigger, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonShape, COMPONENT_CONTRACTS, Calendar, CalendarDayButton, Callout, CalloutDescription, CalloutTitle, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, Carousel, CarouselArrows, type CarouselArrowsProps, type AutoplayConfig as CarouselAutoplayConfig, CarouselDots, type CarouselDotsProps, type CarouselNavButtonProps, CarouselNext, CarouselPrev, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselVideoSlide, type CarouselVideoSlideProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, type ChartPalette, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCard, type CheckboxCardProps, Code, type CodeDiff, type CodeLanguage, type CodeProps, type CodeReveal, type CodeTrigger, type ColorIntensity, Combobox, type ComboboxOption, type ComboboxProps, Composer, type ComposerAttachment, type ComposerAttachmentConfig, type ComposerContent, type ComposerFormat, type ComposerHandle, type ComposerMentionItem, type ComposerProps, ComposerReply, type ComposerStep, type ComposerTriggerConfig, DEMO_SPEED_PRESETS, DataView, type DataViewBadgeOption, type DataViewCellType, type DataViewColumn, DataViewColumns, type DataViewColumnsProps, type DataViewMode, type DataViewProps, type DataViewState, DataViewToggle, type DataViewToggleProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DemoSpeed, DemoStage, type DemoStageProps, type DemoTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FILL_TOKENS, FRAGMENT_HEADER, Field, FieldDescription, FieldLabel, type FieldProps, FieldTrailing, FillPicker, type FillPickerProps, type FillValue, Flex, type FlexProps, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeLoader, type GradeLoaderProps, type GradeLoaderSize, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Grid, type GridProps, Input, type InputStyle, Label, LenisProvider, Logo, type LogoLockup, type LogoMode, type LogoProps, type LogoSize, type LogoSources, type LogoVariant, MOTION_ATTR, Map, MapHandle, MapMarker, MapMarkerProps, MapProps, type MediaAspect, type MediaRadius, MediaSurface, MediaSurfaceContract, type MediaSurfaceProps, Message, type MessageProps, type ModeName, Motion, MotionOverlay, type MotionOverlayProps, type MotionOverlayZone, type MotionProps, MotionScene, type MotionSceneProps, type MotionSceneRegistration, type MotionSceneTransition, MotionScreen, type MotionScreenAnimate, type MotionScreenProps, MotionText, type MotionTextProps, type MotionTextTemplate, MultiSelect, type MultiSelectOption, type MultiSelectProps, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, PropertyList, type PropertyListProps, PropertyListRow, type PropertyListRowProps, RadioCard, type RadioCardProps, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, ResizableHandle, ResizablePanel, ResizablePanelGroup, Reveal, type RevealAnimation, type RevealProps, type RevealStep, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScreenAnimator, type ScreenAnimatorProps, type ScreenAnimatorShot, type ScriptedDemoContext, type ScriptedDemoState, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, ShaderControls, type ShaderControlsProps, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, SidebarTreeItem, type SidebarTreeItemProps, Skeleton, Slider, Sortable, SortableGroup, type SortableGroupProps, SortableHandle, type SortableHandleProps, SortableItem, type SortableItemProps, type SortableProps, type SpacingDensity, Stack, type StackProps, Swatch, SwatchGroup, type SwatchGroupProps, type SwatchProps, Switch, SwitchCard, type SwitchCardProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarProps, ToolbarSlot, type ToolbarSlotProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypeScalePreset, type UseDataViewOptions, type UseScriptedDemoOptions, VideoPlayer, type VideoPlayerProps, asideVariants as appShellAsideVariants, footerVariants as appShellFooterVariants, headerVariants as appShellHeaderVariants, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, bannerVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calloutVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, sleep as demoSleep, typeText as demoTypeText, duplicateTheme, energyInput, flexVariants, generateTheme, getComponentContract, getTheme, gridVariants, listContractedComponents, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, setMotion, shaderPresetById, shaderPresets, shellVariants, stackVariants, swatchVariants, themeToCSSVars, toggleVariants, useCarouselApi, useDataView, useGradeTheme, useMaybeGradeTheme, useMotionScene, usePageActive, usePrefersReducedMotion, useReducedMotion, useScriptedDemo };
|