@gradeui/ui 3.3.0 → 4.0.1
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/media-surface.md +1 -1
- package/dist/composer.d.mts +262 -0
- package/dist/composer.d.ts +262 -0
- package/dist/composer.js +3 -0
- package/dist/composer.js.map +1 -0
- package/dist/composer.mjs +3 -0
- package/dist/composer.mjs.map +1 -0
- package/dist/contracts.js +1 -1
- package/dist/contracts.js.map +1 -1
- package/dist/contracts.mjs +1 -1
- package/dist/contracts.mjs.map +1 -1
- package/dist/index.d.mts +104 -333
- package/dist/index.d.ts +104 -333
- package/dist/index.js +85 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -85
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types-DUwnWaxR.d.mts +43 -0
- package/dist/types-DUwnWaxR.d.ts +43 -0
- package/package.json +6 -1
- package/styles/globals.css +433 -3
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
|
12
12
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
13
13
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
14
14
|
import { Language } from 'prism-react-renderer';
|
|
15
|
-
import {
|
|
15
|
+
import { D as DEMO_SPEED_PRESETS, a as DemoSpeed, b as DemoTrigger } from './types-DUwnWaxR.js';
|
|
16
16
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
17
17
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
18
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -191,14 +191,14 @@ declare const MediaSurfaceContract: _gradeui_contracts.ComponentContract<{
|
|
|
191
191
|
description: z.ZodOptional<z.ZodString>;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
kind: "book";
|
|
194
|
-
title?: string | undefined;
|
|
195
194
|
description?: string | undefined;
|
|
195
|
+
title?: string | undefined;
|
|
196
196
|
author?: string | undefined;
|
|
197
197
|
isbn?: string | undefined;
|
|
198
198
|
}, {
|
|
199
199
|
kind: "book";
|
|
200
|
-
title?: string | undefined;
|
|
201
200
|
description?: string | undefined;
|
|
201
|
+
title?: string | undefined;
|
|
202
202
|
author?: string | undefined;
|
|
203
203
|
isbn?: string | undefined;
|
|
204
204
|
}>, z.ZodObject<{
|
|
@@ -443,7 +443,7 @@ declare const CalloutDescription: React.ForwardRefExoticComponent<React.HTMLAttr
|
|
|
443
443
|
declare const shellVariants: (props?: ({
|
|
444
444
|
nav?: "none" | "top" | "side" | "three-pane" | null | undefined;
|
|
445
445
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
446
|
-
declare const headerVariants: (props?: ({
|
|
446
|
+
declare const headerVariants$1: (props?: ({
|
|
447
447
|
sticky?: boolean | null | undefined;
|
|
448
448
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
449
449
|
declare const navVariants: (props?: ({
|
|
@@ -463,7 +463,7 @@ interface AppShellProps extends React.HTMLAttributes<HTMLDivElement>, VariantPro
|
|
|
463
463
|
asChild?: boolean;
|
|
464
464
|
}
|
|
465
465
|
declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.RefAttributes<HTMLDivElement>>;
|
|
466
|
-
interface AppShellHeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
466
|
+
interface AppShellHeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants$1> {
|
|
467
467
|
asChild?: boolean;
|
|
468
468
|
}
|
|
469
469
|
declare const AppShellHeader: React.ForwardRefExoticComponent<AppShellHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -548,7 +548,7 @@ declare function Badge({ className, variant, rounded, ...props }: BadgeProps): R
|
|
|
548
548
|
* The CSS classes referenced here live in packages/ui/styles/globals.css
|
|
549
549
|
* (and the apps/docs mirror) under the SURFACE CLASSES section.
|
|
550
550
|
*/
|
|
551
|
-
type Surface = "solid" | "translucent" | "glass" | "glass-strong";
|
|
551
|
+
type Surface = "solid" | "translucent" | "glass" | "glass-strong" | "frosted";
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* Banner — full-width horizontal strip surfacing system-level state or
|
|
@@ -585,7 +585,7 @@ type Surface = "solid" | "translucent" | "glass" | "glass-strong";
|
|
|
585
585
|
*/
|
|
586
586
|
declare const bannerVariants: (props?: ({
|
|
587
587
|
variant?: "default" | "destructive" | "success" | "warning" | "info" | "announcement" | null | undefined;
|
|
588
|
-
align?: "
|
|
588
|
+
align?: "between" | "start" | "center" | null | undefined;
|
|
589
589
|
sticky?: boolean | null | undefined;
|
|
590
590
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
591
591
|
interface BannerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof bannerVariants> {
|
|
@@ -647,8 +647,8 @@ declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAtt
|
|
|
647
647
|
* consistent across primitives.
|
|
648
648
|
*/
|
|
649
649
|
declare const buttonVariants: (props?: ({
|
|
650
|
-
variant?: "
|
|
651
|
-
size?: "
|
|
650
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "raised" | null | undefined;
|
|
651
|
+
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "default" | null | undefined;
|
|
652
652
|
iconOnly?: boolean | null | undefined;
|
|
653
653
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
654
654
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -676,7 +676,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
676
676
|
* Title / Subtitle / Description / Actions / Media) give the common shape
|
|
677
677
|
* design intent without constraining it.
|
|
678
678
|
*/
|
|
679
|
-
type SectionScope = "default" | "inverse" | "brand" | "accent" | "muted" | "card";
|
|
679
|
+
type SectionScope$1 = "default" | "inverse" | "brand" | "accent" | "muted" | "card";
|
|
680
680
|
type ContainerMaxW = "sm" | "md" | "lg" | "xl" | "prose" | "full";
|
|
681
681
|
declare const bandVariants: (props?: ({
|
|
682
682
|
pad?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
@@ -684,7 +684,7 @@ declare const bandVariants: (props?: ({
|
|
|
684
684
|
interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof bandVariants> {
|
|
685
685
|
/** Colour subtheme — applies the `scope-*` class (STUDIO-COLOR.md). Unset =
|
|
686
686
|
* the page surface (transparent). */
|
|
687
|
-
scope?: SectionScope;
|
|
687
|
+
scope?: SectionScope$1;
|
|
688
688
|
/** Visual band background — image / video / gradient / shader (e.g.
|
|
689
689
|
* `<BackgroundFill>`). Renders BEHIND the content; Section owns the
|
|
690
690
|
* relative + overflow-hidden + z-layering. Works with `scope`, which
|
|
@@ -694,11 +694,11 @@ interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<t
|
|
|
694
694
|
as?: "section" | "header" | "footer" | "div";
|
|
695
695
|
}
|
|
696
696
|
declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
|
|
697
|
-
declare const containerVariants: (props?: ({
|
|
697
|
+
declare const containerVariants$1: (props?: ({
|
|
698
698
|
maxW?: "sm" | "md" | "lg" | "xl" | "full" | "prose" | null | undefined;
|
|
699
699
|
grid?: boolean | null | undefined;
|
|
700
700
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
701
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
|
|
701
|
+
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants$1> {
|
|
702
702
|
as?: "div" | "section";
|
|
703
703
|
}
|
|
704
704
|
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -712,6 +712,66 @@ declare const SectionActions: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
712
712
|
* doesn't care what's inside; the media frames itself. */
|
|
713
713
|
declare const SectionMedia: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
714
714
|
|
|
715
|
+
/** Named colour SCOPES (STUDIO-COLOR.md). A `scope` makes the section a local
|
|
716
|
+
* colour mode — like light/dark, but scoped to this element and focused on
|
|
717
|
+
* surfaces. It applies the matching `scope-*` class, which re-points the
|
|
718
|
+
* surface tokens (--background / --card / --muted / --foreground / --border)
|
|
719
|
+
* at the named pair, so every descendant re-tones while still using the
|
|
720
|
+
* ordinary tokens. `inverse` is the dark-band / light-text marketing scope. */
|
|
721
|
+
declare const SECTION_SCOPES: readonly ["default", "inverse", "brand", "accent", "muted", "card"];
|
|
722
|
+
type SectionScope = (typeof SECTION_SCOPES)[number];
|
|
723
|
+
declare const sectionBlockVariants: (props?: ({
|
|
724
|
+
padding?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
725
|
+
background?: "muted" | "primary" | "gradient" | "card" | "transparent" | "scoped" | null | undefined;
|
|
726
|
+
fullBleed?: boolean | null | undefined;
|
|
727
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
728
|
+
declare const containerVariants: (props?: ({
|
|
729
|
+
container?: "default" | "full" | "wide" | "narrow" | null | undefined;
|
|
730
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
731
|
+
declare const headerVariants: (props?: ({
|
|
732
|
+
alignment?: "center" | "right" | "left" | null | undefined;
|
|
733
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
734
|
+
declare const titleVariants: (props?: ({
|
|
735
|
+
titleSize?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
736
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
737
|
+
type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
738
|
+
interface CTAConfig {
|
|
739
|
+
text: string;
|
|
740
|
+
variant?: ButtonVariant;
|
|
741
|
+
href?: string;
|
|
742
|
+
onClick?: () => void;
|
|
743
|
+
}
|
|
744
|
+
interface SectionBlockProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionBlockVariants>, VariantProps<typeof containerVariants>, VariantProps<typeof headerVariants>, VariantProps<typeof titleVariants> {
|
|
745
|
+
/**
|
|
746
|
+
* What the section surface is *made of*. Orthogonal to `background`
|
|
747
|
+
* (which picks the tonal direction): `surface` picks the material
|
|
748
|
+
* applied on top.
|
|
749
|
+
*
|
|
750
|
+
* - `solid` (default): the `background` tint is opaque.
|
|
751
|
+
* - `translucent`: ~82% opacity, no blur — picks up the page underneath.
|
|
752
|
+
* - `glass`: ~58% opacity + 14px blur + edge highlight. Sections that
|
|
753
|
+
* sit over a hero image / generative backdrop and need to read as
|
|
754
|
+
* floating chrome.
|
|
755
|
+
* - `glass-strong`: 42% + 24px blur — for full-page-overlay sections.
|
|
756
|
+
*
|
|
757
|
+
* When `surface !== "solid"`, the `background` Tailwind classes still
|
|
758
|
+
* apply but get overlaid with the glass class so the alpha shows
|
|
759
|
+
* through the tint.
|
|
760
|
+
*/
|
|
761
|
+
surface?: Surface;
|
|
762
|
+
/** Make the section a named colour scope (a local surface mode): applies the
|
|
763
|
+
* `scope-*` class so the whole subtree re-tones. Overrides `background`. */
|
|
764
|
+
scope?: SectionScope;
|
|
765
|
+
title?: string;
|
|
766
|
+
subtitle?: string;
|
|
767
|
+
cta1?: string | CTAConfig;
|
|
768
|
+
cta2?: string | CTAConfig;
|
|
769
|
+
backgroundImage?: string;
|
|
770
|
+
children?: React.ReactNode;
|
|
771
|
+
as?: "section" | "div" | "article";
|
|
772
|
+
}
|
|
773
|
+
declare const SectionBlock: React.ForwardRefExoticComponent<SectionBlockProps & React.RefAttributes<HTMLElement>>;
|
|
774
|
+
|
|
715
775
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
716
776
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
717
777
|
}): React.JSX.Element;
|
|
@@ -1336,48 +1396,6 @@ interface MessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title
|
|
|
1336
1396
|
}
|
|
1337
1397
|
declare const Message: React.ForwardRefExoticComponent<MessageProps & React.RefAttributes<HTMLDivElement>>;
|
|
1338
1398
|
|
|
1339
|
-
/**
|
|
1340
|
-
* Shared types + presets for scripted component demos.
|
|
1341
|
-
*
|
|
1342
|
-
* Lives at the bottom of the demo primitive stack so the hook, the
|
|
1343
|
-
* cursor, and any component that opts in (`<Code>`, `<Composer>`,
|
|
1344
|
-
* `<DemoStage>`) all read from one definition of "what slow / normal /
|
|
1345
|
-
* fast feels like" and one definition of "when do we start playing".
|
|
1346
|
-
*
|
|
1347
|
-
* If you ever want to retune the cadence of every demo on the marketing
|
|
1348
|
-
* site at once, this is the file to edit.
|
|
1349
|
-
*/
|
|
1350
|
-
/**
|
|
1351
|
-
* Animation feel. Maps onto a triple of timing values so authors can
|
|
1352
|
-
* pick a vibe (slow / normal / fast) instead of hand-tuning ms.
|
|
1353
|
-
* Components that need finer control can still override the resolved
|
|
1354
|
-
* values per-instance.
|
|
1355
|
-
*/
|
|
1356
|
-
type DemoSpeed = "slow" | "normal" | "fast";
|
|
1357
|
-
/**
|
|
1358
|
-
* What kicks the demo off:
|
|
1359
|
-
* - `mount` plays immediately on first paint
|
|
1360
|
-
* - `inView` waits for the container to cross the viewport threshold
|
|
1361
|
-
* - `manual` driven by the `play` prop or imperative ref
|
|
1362
|
-
*/
|
|
1363
|
-
type DemoTrigger = "mount" | "inView" | "manual";
|
|
1364
|
-
/**
|
|
1365
|
-
* Speed presets shared across every scripted-demo surface. Three
|
|
1366
|
-
* unambiguously distinct feels: `slow` is "I am being shown", `normal`
|
|
1367
|
-
* is "I am being told", `fast` is "I am being briefed".
|
|
1368
|
-
*
|
|
1369
|
-
* - `tokenStagger` per-character cadence for typing-style steps
|
|
1370
|
-
* - `lineStagger` per-line cadence for reveal-style demos
|
|
1371
|
-
* - `preDelay` pause after the trigger fires before the first tick
|
|
1372
|
-
* - `fadeMs` default enter-transition duration for revealed parts
|
|
1373
|
-
*/
|
|
1374
|
-
declare const DEMO_SPEED_PRESETS: Record<DemoSpeed, {
|
|
1375
|
-
tokenStagger: number;
|
|
1376
|
-
lineStagger: number;
|
|
1377
|
-
preDelay: number;
|
|
1378
|
-
fadeMs: number;
|
|
1379
|
-
}>;
|
|
1380
|
-
|
|
1381
1399
|
/**
|
|
1382
1400
|
* Cancellable sleep + type helpers for scripted demos.
|
|
1383
1401
|
*
|
|
@@ -1636,263 +1654,6 @@ interface RevealProps {
|
|
|
1636
1654
|
}
|
|
1637
1655
|
declare function Reveal({ id, animation, durationMs, hideOutsideStage, onReveal, onHide, className, children, }: RevealProps): React.JSX.Element;
|
|
1638
1656
|
|
|
1639
|
-
/**
|
|
1640
|
-
* Composer — the generic text composition surface for the design system.
|
|
1641
|
-
*
|
|
1642
|
-
* The answer wherever a user is composing a message: AI chat input,
|
|
1643
|
-
* comment thread reply, post-body editor, future copilot panels.
|
|
1644
|
-
* Replaces the textarea-with-buttons pattern that hosts kept rolling
|
|
1645
|
-
* by hand.
|
|
1646
|
-
*
|
|
1647
|
-
* Built on Lexical (Meta's React-first editor framework) so it can do:
|
|
1648
|
-
* - rich text formatting (B / I / U / S / code, headings, blockquote,
|
|
1649
|
-
* pullquote, lists)
|
|
1650
|
-
* - mentions and slash commands via lexical-beautiful-mentions, with
|
|
1651
|
-
* a typeahead popover and theme-able tokens
|
|
1652
|
-
* - image attachments (paperclip + clipboard paste) when opted in
|
|
1653
|
-
* - scripted demo playback for marketing surfaces (types text, opens
|
|
1654
|
-
* mention popovers, applies formatting, all via the same step
|
|
1655
|
-
* vocabulary as <Code>)
|
|
1656
|
-
*
|
|
1657
|
-
* Slot-based composition for the action row: hosts that need custom
|
|
1658
|
-
* affordances (template picker, voice button, attach-document) pass
|
|
1659
|
-
* `leftActions` / `rightActions`. Default Send / Stop / paperclip
|
|
1660
|
-
* render only when the host hasn't replaced the slot.
|
|
1661
|
-
*
|
|
1662
|
-
* Hosts that want the canned "chat composer with paperclip + send"
|
|
1663
|
-
* preset should reach for `<AIChatComposer>` instead, which configures
|
|
1664
|
-
* this Composer with the right slots wired up.
|
|
1665
|
-
*
|
|
1666
|
-
* Scripted demos: same `speed` / `trigger` / `play` / `loop` vocabulary
|
|
1667
|
-
* as `<Code>`, sharing the underlying `useScriptedDemo` hook from
|
|
1668
|
-
* `lib/demo/`. The Composer adds its own verbs (`mention`, `format`,
|
|
1669
|
-
* `select`, `submit`) on top of the universal `type` / `wait` / `clear`.
|
|
1670
|
-
*/
|
|
1671
|
-
type ComposerFormat = "bold" | "italic" | "underline" | "strikethrough" | "code" | "h1" | "h2" | "h3" | "blockquote" | "pullquote" | "ul" | "ol";
|
|
1672
|
-
interface ComposerMentionItem {
|
|
1673
|
-
id: string;
|
|
1674
|
-
/** Display value (without the trigger char). */
|
|
1675
|
-
value: string;
|
|
1676
|
-
/** Optional secondary label shown in the suggester. */
|
|
1677
|
-
label?: string;
|
|
1678
|
-
/** Avatar URL or initials for the suggester row. */
|
|
1679
|
-
avatar?: string;
|
|
1680
|
-
/** Arbitrary payload the host can attach to the mention. */
|
|
1681
|
-
data?: Record<string, unknown>;
|
|
1682
|
-
}
|
|
1683
|
-
interface ComposerTriggerConfig {
|
|
1684
|
-
/** The trigger character, eg. "@" or "/". */
|
|
1685
|
-
char: string;
|
|
1686
|
-
/**
|
|
1687
|
-
* Items to populate the suggester. Either a static array or a
|
|
1688
|
-
* resolver function (sync or async) that receives the typed query.
|
|
1689
|
-
* The plugin filters automatically when items is an array.
|
|
1690
|
-
*/
|
|
1691
|
-
items: ComposerMentionItem[] | ((query: string) => ComposerMentionItem[] | Promise<ComposerMentionItem[]>);
|
|
1692
|
-
/**
|
|
1693
|
-
* Whether to strip the trigger char on insert. Defaults: keep for
|
|
1694
|
-
* "@" (mentions read as "@alice"), strip for "/" (commands read as
|
|
1695
|
-
* "Insert image" not "/insert-image").
|
|
1696
|
-
*/
|
|
1697
|
-
stripTrigger?: boolean;
|
|
1698
|
-
}
|
|
1699
|
-
interface ComposerAttachmentConfig {
|
|
1700
|
-
/** Master enable. Set true on the prop to use defaults, or pass a config object. */
|
|
1701
|
-
enabled?: boolean;
|
|
1702
|
-
/** HTML accept attribute on the file input. Default "image/*". */
|
|
1703
|
-
accept?: string;
|
|
1704
|
-
/** Max number of attachments. Default 10. */
|
|
1705
|
-
maxItems?: number;
|
|
1706
|
-
/** Allow multiple selection in the file picker. Default true. */
|
|
1707
|
-
multiple?: boolean;
|
|
1708
|
-
}
|
|
1709
|
-
interface ComposerAttachment {
|
|
1710
|
-
id: string;
|
|
1711
|
-
file: File;
|
|
1712
|
-
/** Object URL owned by the composer. Hosts must NOT revoke it. */
|
|
1713
|
-
previewUrl: string;
|
|
1714
|
-
name: string;
|
|
1715
|
-
}
|
|
1716
|
-
interface ComposerContent {
|
|
1717
|
-
/** Plain text representation of the editor contents (whitespace preserved). */
|
|
1718
|
-
text: string;
|
|
1719
|
-
/** Lexical editor state serialised to JSON (for round-trip persistence). */
|
|
1720
|
-
json: string;
|
|
1721
|
-
/** Resolved mention tokens in document order. */
|
|
1722
|
-
mentions: Array<{
|
|
1723
|
-
trigger: string;
|
|
1724
|
-
value: string;
|
|
1725
|
-
data?: Record<string, unknown>;
|
|
1726
|
-
}>;
|
|
1727
|
-
}
|
|
1728
|
-
interface ComposerHandle {
|
|
1729
|
-
/** Run a demo script imperatively (vs. via `steps` + `trigger="manual"`). */
|
|
1730
|
-
play: (steps: ComposerStep[]) => void;
|
|
1731
|
-
/** Cancel an in-flight demo. Idempotent. */
|
|
1732
|
-
stop: () => void;
|
|
1733
|
-
/**
|
|
1734
|
-
* One-shot replay of the configured `steps`. Cancels any in-flight
|
|
1735
|
-
* run, clears the editor, replays from step 0. Pass a delay (ms) to
|
|
1736
|
-
* schedule the replay (useful for chaining demos). Requires `steps`
|
|
1737
|
-
* to be configured.
|
|
1738
|
-
*/
|
|
1739
|
-
restart: (delayMs?: number) => void;
|
|
1740
|
-
/** Move focus into the editor. */
|
|
1741
|
-
focus: () => void;
|
|
1742
|
-
/** Wipe the editor. */
|
|
1743
|
-
clear: () => void;
|
|
1744
|
-
/** Insert plain text at the current selection. */
|
|
1745
|
-
insert: (text: string) => void;
|
|
1746
|
-
/** Snapshot the current content + mentions. */
|
|
1747
|
-
getContent: () => ComposerContent;
|
|
1748
|
-
/** Direct access to the underlying Lexical editor (escape hatch). */
|
|
1749
|
-
getEditor: () => LexicalEditor | null;
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* Demo step vocabulary for Composer scripts. Shares `type` / `wait` /
|
|
1753
|
-
* `clear` with the universal `lib/demo` verbs; adds composer-specific
|
|
1754
|
-
* `mention`, `format`, `select`, `newline`, `submit` on top.
|
|
1755
|
-
*/
|
|
1756
|
-
type ComposerStep = {
|
|
1757
|
-
type: "type";
|
|
1758
|
-
text: string;
|
|
1759
|
-
speed?: DemoSpeed;
|
|
1760
|
-
} | {
|
|
1761
|
-
type: "wait";
|
|
1762
|
-
ms: number;
|
|
1763
|
-
} | {
|
|
1764
|
-
type: "clear";
|
|
1765
|
-
} | {
|
|
1766
|
-
type: "newline";
|
|
1767
|
-
} | {
|
|
1768
|
-
type: "submit";
|
|
1769
|
-
} | {
|
|
1770
|
-
type: "mention";
|
|
1771
|
-
/** Trigger char (must match a registered ComposerTriggerConfig.char). */
|
|
1772
|
-
trigger: string;
|
|
1773
|
-
/** Value to insert (without the trigger). Looks up the matching item by `value`. */
|
|
1774
|
-
value: string;
|
|
1775
|
-
/** Optional pre-typed query — the demo types this after the trigger char before "selecting" the value, to show the typeahead in action. */
|
|
1776
|
-
query?: string;
|
|
1777
|
-
} | {
|
|
1778
|
-
type: "format";
|
|
1779
|
-
format: ComposerFormat;
|
|
1780
|
-
} | {
|
|
1781
|
-
type: "select";
|
|
1782
|
-
/** Substring to find and select. First match wins. */
|
|
1783
|
-
text: string;
|
|
1784
|
-
};
|
|
1785
|
-
interface ComposerProps {
|
|
1786
|
-
/** Placeholder copy shown when empty. */
|
|
1787
|
-
placeholder?: string;
|
|
1788
|
-
/** Initial plain text content. For richer initial state, use `initialJson`. */
|
|
1789
|
-
initialText?: string;
|
|
1790
|
-
/** Initial Lexical state JSON (from a previous `onSubmit` round-trip). */
|
|
1791
|
-
initialJson?: string;
|
|
1792
|
-
/**
|
|
1793
|
-
* Available formats. Pass false to disable rich text entirely
|
|
1794
|
-
* (plain text mode, half the bundle weight, no toolbar). Default
|
|
1795
|
-
* enables a sensible set for most chat / comment surfaces.
|
|
1796
|
-
*/
|
|
1797
|
-
formats?: ComposerFormat[] | false;
|
|
1798
|
-
/**
|
|
1799
|
-
* Render the formatting toolbar. Default false because most uses
|
|
1800
|
-
* are short-form. Set true (or "top") to show the toolbar above the
|
|
1801
|
-
* editor. "floating" is planned; not yet implemented.
|
|
1802
|
-
*/
|
|
1803
|
-
toolbar?: boolean | "top";
|
|
1804
|
-
/**
|
|
1805
|
-
* Mention / slash command configs. Each entry registers one trigger
|
|
1806
|
-
* char and its items. Pass `[{ char: "@", items: people }, { char: "/", items: commands }]`
|
|
1807
|
-
* for the common chat-app setup.
|
|
1808
|
-
*/
|
|
1809
|
-
triggers?: ComposerTriggerConfig[];
|
|
1810
|
-
/**
|
|
1811
|
-
* Image attachments (paperclip + clipboard paste). Pass true for
|
|
1812
|
-
* defaults, an object to customise, or omit/false to skip the
|
|
1813
|
-
* attachment plumbing entirely.
|
|
1814
|
-
*/
|
|
1815
|
-
attachments?: boolean | ComposerAttachmentConfig;
|
|
1816
|
-
/** Fires when the user submits (Enter, click Send, or scripted `submit` step). */
|
|
1817
|
-
onSubmit?: (content: ComposerContent, attachments?: ComposerAttachment[]) => void;
|
|
1818
|
-
/**
|
|
1819
|
-
* Fires on every editor change with the current plain text. Use for
|
|
1820
|
-
* length validation, controlled-value bridges (eg. AIChatComposer
|
|
1821
|
-
* forwarding to a host's `value`/`onChange` pair), or live preview
|
|
1822
|
-
* surfaces. Cheap, called frequently; debounce if you need the
|
|
1823
|
-
* Lexical state JSON (use `getContent()` via ref instead).
|
|
1824
|
-
*/
|
|
1825
|
-
onChange?: (text: string) => void;
|
|
1826
|
-
/**
|
|
1827
|
-
* Loading state — disables the editor + paperclip and swaps the
|
|
1828
|
-
* default Send button for Stop. Has no effect when `rightActions`
|
|
1829
|
-
* overrides the default Send.
|
|
1830
|
-
*/
|
|
1831
|
-
isLoading?: boolean;
|
|
1832
|
-
/** Stop handler — required for Stop to be active when loading. */
|
|
1833
|
-
onStop?: () => void;
|
|
1834
|
-
/** Hard character cap. */
|
|
1835
|
-
maxLength?: number;
|
|
1836
|
-
/** Auto-focus the editor on mount. Default false. */
|
|
1837
|
-
autoFocus?: boolean;
|
|
1838
|
-
/** Whether Enter submits. Default true (Shift-Enter still inserts a newline). */
|
|
1839
|
-
submitOnEnter?: boolean;
|
|
1840
|
-
/**
|
|
1841
|
-
* Custom content for the left action slot. Replaces the default
|
|
1842
|
-
* paperclip button when `attachments` is enabled.
|
|
1843
|
-
*/
|
|
1844
|
-
leftActions?: React.ReactNode;
|
|
1845
|
-
/**
|
|
1846
|
-
* Custom content for the right action slot. Replaces the default
|
|
1847
|
-
* Send / Stop button. Use the `useComposer()` hook inside to access
|
|
1848
|
-
* imperative methods.
|
|
1849
|
-
*/
|
|
1850
|
-
rightActions?: React.ReactNode;
|
|
1851
|
-
/** Hide the default Send button without replacing it. */
|
|
1852
|
-
hideSend?: boolean;
|
|
1853
|
-
/** Scripted demo steps. */
|
|
1854
|
-
steps?: ComposerStep[];
|
|
1855
|
-
/** What kicks the script off. Defaults to "mount". */
|
|
1856
|
-
trigger?: DemoTrigger;
|
|
1857
|
-
/** For trigger="manual" — flip true to play. */
|
|
1858
|
-
play?: boolean;
|
|
1859
|
-
/** Animation feel. */
|
|
1860
|
-
speed?: DemoSpeed;
|
|
1861
|
-
/** Loop the script forever. */
|
|
1862
|
-
loop?: boolean;
|
|
1863
|
-
/**
|
|
1864
|
-
* Pause between loop iterations (ms). Defaults to 2000. Marketing
|
|
1865
|
-
* heroes that want the demo to breathe between repeats bump this
|
|
1866
|
-
* higher; tight inline demos drop it.
|
|
1867
|
-
*/
|
|
1868
|
-
loopDelay?: number;
|
|
1869
|
-
/**
|
|
1870
|
-
* Fires once per loop cycle, AFTER the loopDelay pause and BEFORE
|
|
1871
|
-
* the script replays. Use to reset parent state that the script
|
|
1872
|
-
* mutated via onSubmit (e.g., wipe a messages list back to its
|
|
1873
|
-
* seed before the demo types into it again). The editor is cleared
|
|
1874
|
-
* automatically — you only need this hook if state outside the
|
|
1875
|
-
* Composer needs to reset too.
|
|
1876
|
-
*/
|
|
1877
|
-
onLoopReset?: () => void;
|
|
1878
|
-
/**
|
|
1879
|
-
* Bare mode — strip the card chrome (border / bg / rounding). Use
|
|
1880
|
-
* when embedding inside an existing card or column layout.
|
|
1881
|
-
*/
|
|
1882
|
-
bare?: boolean;
|
|
1883
|
-
/**
|
|
1884
|
-
* Read-only mode — disables editing AND focusability. Programmatic
|
|
1885
|
-
* updates (including scripted demo playback) still work. Use for
|
|
1886
|
-
* marketing surfaces that render a Composer purely for show, so the
|
|
1887
|
-
* scripted typing doesn't steal focus from other inputs on the page.
|
|
1888
|
-
* Hides the default Send / paperclip action row.
|
|
1889
|
-
*/
|
|
1890
|
-
readOnly?: boolean;
|
|
1891
|
-
className?: string;
|
|
1892
|
-
}
|
|
1893
|
-
declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<ComposerHandle>>;
|
|
1894
|
-
declare const ComposerReply: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<ComposerHandle>>;
|
|
1895
|
-
|
|
1896
1657
|
/**
|
|
1897
1658
|
* DatePicker + DateRangePicker
|
|
1898
1659
|
*
|
|
@@ -2052,7 +1813,7 @@ declare const DropdownMenuShortcut: {
|
|
|
2052
1813
|
* rationale.
|
|
2053
1814
|
*/
|
|
2054
1815
|
declare const inputVariants: (props?: ({
|
|
2055
|
-
size?: "
|
|
1816
|
+
size?: "2xs" | "xs" | "sm" | "default" | null | undefined;
|
|
2056
1817
|
variant?: "default" | "ghost" | null | undefined;
|
|
2057
1818
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2058
1819
|
type InputSize = NonNullable<VariantProps<typeof inputVariants>["size"]>;
|
|
@@ -2073,7 +1834,7 @@ type InputProps = Omit<React.ComponentProps<"input">, "size"> & {
|
|
|
2073
1834
|
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
2074
1835
|
|
|
2075
1836
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ({
|
|
2076
|
-
size?: "
|
|
1837
|
+
size?: "2xs" | "xs" | "sm" | "default" | null | undefined;
|
|
2077
1838
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
2078
1839
|
|
|
2079
1840
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
@@ -2441,7 +2202,7 @@ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPri
|
|
|
2441
2202
|
* </ResizablePanelGroup>
|
|
2442
2203
|
*/
|
|
2443
2204
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
2444
|
-
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<
|
|
2205
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLSelectElement | HTMLTextAreaElement | HTMLMapElement | HTMLTitleElement | HTMLVideoElement | HTMLButtonElement | HTMLLinkElement | HTMLLabelElement | HTMLStyleElement | HTMLSourceElement | HTMLHtmlElement | HTMLDataElement | HTMLOptionElement | HTMLTableColElement | HTMLAudioElement | HTMLEmbedElement | HTMLProgressElement | HTMLHRElement | HTMLTableElement | HTMLAnchorElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLFieldSetElement | HTMLHeadElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLSlotElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
2445
2206
|
className?: string | undefined;
|
|
2446
2207
|
collapsedSize?: number | undefined;
|
|
2447
2208
|
collapsible?: boolean | undefined;
|
|
@@ -2481,8 +2242,8 @@ declare const ResizableHandle: ({ withHandle, className, ...props }: React.Compo
|
|
|
2481
2242
|
*/
|
|
2482
2243
|
declare const rowVariants: (props?: ({
|
|
2483
2244
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2484
|
-
align?: "
|
|
2485
|
-
justify?: "
|
|
2245
|
+
align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
|
|
2246
|
+
justify?: "between" | "start" | "center" | "end" | "around" | "evenly" | null | undefined;
|
|
2486
2247
|
wrap?: boolean | null | undefined;
|
|
2487
2248
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2488
2249
|
interface RowProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof rowVariants> {
|
|
@@ -2517,7 +2278,7 @@ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttribute
|
|
|
2517
2278
|
declare const gridVariants: (props?: ({
|
|
2518
2279
|
cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
|
|
2519
2280
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2520
|
-
align?: "
|
|
2281
|
+
align?: "start" | "center" | "end" | "stretch" | null | undefined;
|
|
2521
2282
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2522
2283
|
interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
2523
2284
|
/** When true, render as the single child element via Radix Slot — lets
|
|
@@ -2549,10 +2310,10 @@ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttribu
|
|
|
2549
2310
|
* case. Flex is the escape hatch, not the default.
|
|
2550
2311
|
*/
|
|
2551
2312
|
declare const flexVariants: (props?: ({
|
|
2552
|
-
direction?: "
|
|
2313
|
+
direction?: "row" | "col" | "row-reverse" | "col-reverse" | null | undefined;
|
|
2553
2314
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2554
|
-
align?: "
|
|
2555
|
-
justify?: "
|
|
2315
|
+
align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
|
|
2316
|
+
justify?: "between" | "start" | "center" | "end" | "around" | "evenly" | null | undefined;
|
|
2556
2317
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
2557
2318
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2558
2319
|
interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
|
|
@@ -2586,7 +2347,7 @@ type SelectMenuSize = "default" | "sm" | "xs" | "2xs";
|
|
|
2586
2347
|
* existing call site.
|
|
2587
2348
|
*/
|
|
2588
2349
|
declare const selectTriggerVariants: (props?: ({
|
|
2589
|
-
size?: "
|
|
2350
|
+
size?: "2xs" | "xs" | "sm" | "default" | null | undefined;
|
|
2590
2351
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2591
2352
|
type SelectTriggerSize = NonNullable<VariantProps<typeof selectTriggerVariants>["size"]>;
|
|
2592
2353
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
@@ -2698,7 +2459,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.Dialog
|
|
|
2698
2459
|
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
2699
2460
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2700
2461
|
declare const sheetVariants: (props?: ({
|
|
2701
|
-
side?: "
|
|
2462
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
2702
2463
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2703
2464
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
2704
2465
|
/** Extra classes for the backdrop overlay. e.g. `bg-transparent`
|
|
@@ -2854,8 +2615,8 @@ declare const Sortable: SortableRootComponent;
|
|
|
2854
2615
|
*/
|
|
2855
2616
|
declare const stackVariants: (props?: ({
|
|
2856
2617
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
2857
|
-
align?: "
|
|
2858
|
-
justify?: "
|
|
2618
|
+
align?: "start" | "center" | "end" | "stretch" | null | undefined;
|
|
2619
|
+
justify?: "between" | "start" | "center" | "end" | "around" | "evenly" | null | undefined;
|
|
2859
2620
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2860
2621
|
interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
2861
2622
|
/** When true, render as the single child element via Radix Slot — lets
|
|
@@ -2873,7 +2634,7 @@ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttri
|
|
|
2873
2634
|
* dense tool-panel sizes (the Studio inspector).
|
|
2874
2635
|
*/
|
|
2875
2636
|
declare const switchTrackVariants: (props?: ({
|
|
2876
|
-
size?: "
|
|
2637
|
+
size?: "2xs" | "xs" | "sm" | "default" | null | undefined;
|
|
2877
2638
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2878
2639
|
type SwitchSize = NonNullable<VariantProps<typeof switchTrackVariants>["size"]>;
|
|
2879
2640
|
declare const Switch: React.ForwardRefExoticComponent<Omit<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref">, "size"> & {
|
|
@@ -3061,7 +2822,7 @@ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.Cla
|
|
|
3061
2822
|
* px-3 / text-sm; `sm` and `xs` are for dense tool panels.
|
|
3062
2823
|
*/
|
|
3063
2824
|
declare const textareaVariants: (props?: ({
|
|
3064
|
-
size?: "
|
|
2825
|
+
size?: "2xs" | "xs" | "sm" | "default" | null | undefined;
|
|
3065
2826
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3066
2827
|
type TextareaSize = NonNullable<VariantProps<typeof textareaVariants>["size"]>;
|
|
3067
2828
|
type TextareaProps = Omit<React.ComponentProps<"textarea">, "size"> & {
|
|
@@ -3071,11 +2832,11 @@ declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref
|
|
|
3071
2832
|
|
|
3072
2833
|
declare const toggleVariants: (props?: ({
|
|
3073
2834
|
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3074
|
-
size?: "
|
|
2835
|
+
size?: "2xs" | "xs" | "sm" | "lg" | "default" | null | undefined;
|
|
3075
2836
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3076
2837
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
3077
2838
|
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3078
|
-
size?: "
|
|
2839
|
+
size?: "2xs" | "xs" | "sm" | "lg" | "default" | null | undefined;
|
|
3079
2840
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
3080
2841
|
|
|
3081
2842
|
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
@@ -3085,11 +2846,11 @@ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimit
|
|
|
3085
2846
|
|
|
3086
2847
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
3087
2848
|
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3088
|
-
size?: "
|
|
2849
|
+
size?: "2xs" | "xs" | "sm" | "lg" | "default" | null | undefined;
|
|
3089
2850
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
3090
2851
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
3091
2852
|
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
3092
|
-
size?: "
|
|
2853
|
+
size?: "2xs" | "xs" | "sm" | "lg" | "default" | null | undefined;
|
|
3093
2854
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
3094
2855
|
tooltip?: React.ReactNode;
|
|
3095
2856
|
tooltipSide?: React.ComponentPropsWithoutRef<typeof TooltipContent>["side"];
|
|
@@ -3144,7 +2905,7 @@ declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupP
|
|
|
3144
2905
|
* persistent footer toolbars on mobile-style layouts.
|
|
3145
2906
|
*/
|
|
3146
2907
|
declare const toolbarVariants: (props?: ({
|
|
3147
|
-
position?: "
|
|
2908
|
+
position?: "top" | "inline" | "bottom" | null | undefined;
|
|
3148
2909
|
variant?: "default" | "transparent" | "subtle" | null | undefined;
|
|
3149
2910
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3150
2911
|
sticky?: boolean | null | undefined;
|
|
@@ -5220,6 +4981,16 @@ interface GeneratedTheme {
|
|
|
5220
4981
|
info: Ramp;
|
|
5221
4982
|
highlight: Ramp;
|
|
5222
4983
|
destructive: Ramp;
|
|
4984
|
+
/**
|
|
4985
|
+
* Expressive accent ramps — default = the primary hue rotated +60°·k in
|
|
4986
|
+
* OKLCH (k = 1..5). Optional so partially-constructed themes stay valid;
|
|
4987
|
+
* generator output always includes them. Emitted as `--gds-accent{1..5}-<step>`.
|
|
4988
|
+
*/
|
|
4989
|
+
accent1?: Ramp;
|
|
4990
|
+
accent2?: Ramp;
|
|
4991
|
+
accent3?: Ramp;
|
|
4992
|
+
accent4?: Ramp;
|
|
4993
|
+
accent5?: Ramp;
|
|
5223
4994
|
};
|
|
5224
4995
|
/** Semantic tokens for all four modes. */
|
|
5225
4996
|
colors: Record<ModeName, GeneratedColorsMode>;
|
|
@@ -5415,4 +5186,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
|
|
|
5415
5186
|
*/
|
|
5416
5187
|
declare function ThemeToggle(): React.JSX.Element;
|
|
5417
5188
|
|
|
5418
|
-
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, TRANSPARENT as COLOR_PICKER_TRANSPARENT, 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, ColorPicker, type ColorPickerProps, type ColorTokenGroup, Combobox, type ComboboxOption, type ComboboxProps,
|
|
5189
|
+
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, TRANSPARENT as COLOR_PICKER_TRANSPARENT, 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, ColorPicker, type ColorPickerProps, type ColorTokenGroup, Combobox, type ComboboxOption, type ComboboxProps, Container, type ContainerMaxW, type ContainerProps, DEFAULT_COLOR_TOKEN_GROUPS, 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, DemoSpeed, DemoStage, type DemoStageProps, 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, FillSection, type FillSectionProps, type FillValue, Flex, type FlexProps, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeLoader, type GradeLoaderProps, type GradeLoaderSize, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, GradientEditor, type GradientEditorProps, type GradientStop, type GradientType, type GradientValue, 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, Section, SectionActions, SectionBlock, type SectionBlockProps, SectionDescription, SectionEyebrow, SectionMedia, type SectionProps, type SectionScope$1 as SectionScope, SectionSubtitle, SectionTitle, 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$1 as appShellHeaderVariants, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, bannerVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calloutVariants, calmInput, cn, containerVariants$1 as containerVariants, defaultPostPreset, defaultThemeId, deleteUserTheme, sleep as demoSleep, typeText as demoTypeText, duplicateTheme, energyInput, flexVariants, generateTheme, getComponentContract, getTheme, gradientToCss, gridVariants, listContractedComponents, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, bandVariants as sectionBandVariants, sectionBlockVariants, setMotion, shaderPresetById, shaderPresets, shellVariants, stackVariants, swatchVariants, themeToCSSVars, toggleVariants, useCarouselApi, useDataView, useGradeTheme, useMaybeGradeTheme, useMotionScene, usePageActive, usePrefersReducedMotion, useReducedMotion, useScriptedDemo };
|