import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { ClassProp } from 'class-variance-authority/types'; import { ClassValue } from 'clsx'; import { Dialog as Dialog_2 } from 'radix-ui'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import { JSX as JSX_2 } from 'react/jsx-runtime'; import { Popover as Popover_2 } from 'radix-ui'; import { Progress as Progress_2 } from 'radix-ui'; import * as React_2 from 'react'; import { Select as Select_2 } from 'radix-ui'; import * as SwitchPrimitives from '@radix-ui/react-switch'; import { Tabs as Tabs_2 } from 'radix-ui'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { VariantProps } from 'class-variance-authority'; /** * Banner-style message surface. * * Neutral by default; pass `variant="destructive"` for errors. Title and * description compose inside; an optional leading `` is laid out by * the internal grid template. * * @example * * Could not save * Try again in a moment. * */ export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps): JSX_2.Element; /** * Body text inside an ``. Muted by default; turns destructive * automatically when the parent is `variant="destructive"`. */ export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element; /** * Heading inside an ``. Renders as a div; single-line clamp. */ export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element; declare const alertVariants: (props?: ({ variant?: "default" | "destructive" | null | undefined; } & ClassProp) | undefined) => string; export declare const Avatar: React_2.ForwardRefExoticComponent>; export declare interface AvatarProps extends Omit, "title">, VariantProps { /** Image source. If omitted or fails to load, falls through to `fallback` → initials → "?". */ src?: string; /** * Display name. Used for `alt`, the `aria-label`, and to derive initials * when there's no image and no fallback. Optional — pass `fallback` if * you have nothing meaningful here. */ name?: string; /** * Custom fallback content (icon, number, glyph). Wins over initials. * Shown when there's no image *or* when the image errors. */ fallback?: React_2.ReactNode; /** * Paint a deterministic gradient backdrop derived from `name`. Same name * always renders the same gradient, so a chat thread of names stays * visually consistent across reloads. No effect when `src` is set. * Default `false`. */ colorFromName?: boolean; /** Optional status dot in bottom-right. */ status?: "online" | "offline" | "busy" | "away" | null; } /** * Avatar — image with smart fallback + optional status dot. * * Render priority: src (loaded) → fallback → initials(name) → "?" * * Three quality-of-life upgrades over the v1 API: * * 1. `fallback` — pass any ReactNode to override initials. Right for icon * buttons in toolbars, status pills, AI-agent avatars where the persona * is a glyph, not a name. * 2. `colorFromName` — when there's no image and no fallback, paint a * deterministic gradient backdrop derived from the name hash. Linear / * Notion default. Free polish; opt-in (false by default until consumer * apps confirm they want it everywhere). * 3. Image-load skeleton — track image-loaded state. While `src` is * fetching, show a subtle pulse instead of flashing initials → image. * 4. `shape` — `circle` (default, profile-picture read), `rounded` * (rounded-2xl, monogram-tile / brand-placeholder read), `square` * (hard corners). Together with `colorFromName`, retires the * `InitialAvatar` companion components both consumer apps shipped * locally. See issue #81. * * Sized via variant. Status dot positions bottom-right and reads from * `--success` / `--warning` / `--destructive` so dark-mode + per-studio * retinting work. */ declare const avatarVariants: (props?: ({ size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined; shape?: "square" | "circle" | "rounded" | null | undefined; } & ClassProp) | undefined) => string; export declare const Badge: React_2.ForwardRefExoticComponent>; export declare interface BadgeProps extends React_2.HTMLAttributes, VariantProps { /** * Wrap the badge in an animated ``. Use sparingly — only * for "earned attention" surfaces (premium tier, "new" feature, etc.). * Reduce-motion users get a static border, no rotation. */ shimmer?: boolean; /** * Theme-driven colour model (see `badgeToneVariants`). Unset = the variant's own colours, unchanged. Set, the tone's * `--ui-tone-*` variables win over the variant's colours. */ tone?: BadgeTone; /** A status dot in the current colour before the label (v2 Chip). aria-hidden. */ dot?: boolean; /** No fill, the edge as an inset ring in the current colour (v2 outline pills). */ outline?: boolean; /** BorderBeam color override (defaults to `hsl(var(--accent))`). */ shimmerColor?: string; /** BorderBeam loop duration in seconds (default 4). */ shimmerDuration?: number; } export declare type BadgeTone = NonNullable["tone"]>; export declare const badgeToneVariants: (props?: ({ tone?: "accent" | "info" | "neutral" | "ok" | "warn" | "danger" | "ink" | "warn-fill" | null | undefined; } & ClassProp) | undefined) => string; /** * Badge — small status pill. Covers the semantic states + the product * taxonomy pills that consumer apps actually need (public/private/premium). * * Every semantic variant routes through CSS-variable tokens (`--success`, * `--warning`, `--info`, `--premium`) so per-studio retinting + dark mode * just work. If you need a literal color (e.g., a brand-partner pill), * reach for `outline` and pass a className override — don't add a one-off * variant here. * * Appearance axis (additive on top of variant): * - `"solid"` (default) — current behavior. The variant drives bg + border + text. * - `"soft"` — pale tinted chip. Drops bg to /15 and border to /30 alpha, * matching the existing `secondary` variant treatment. Use in dense rows. * - `"steel"` — navy gradient container via `--steel-*` tokens. Renders * the BrandTile / AikoMark steel chrome on a badge shape. Applied via * inline style (gradient + shadow can't be expressed as Tailwind utilities * without arbitrary CSS var references). Use sparingly — for premium / * brand-tier surfaces only. * * Use sparingly — a wall of badges loses meaning. One per surface, max two. */ export declare const badgeVariants: (props?: ({ variant?: "accent" | "default" | "success" | "outline" | "destructive" | "secondary" | "warning" | "info" | "live" | "new" | "beta" | "public" | "private" | "premium" | "published" | "recommendation" | null | undefined; appearance?: "solid" | "soft" | "steel" | null | undefined; size?: "default" | "sm" | "lg" | null | undefined; } & ClassProp) | undefined) => string; export declare const Button: React_2.ForwardRefExoticComponent>; declare type ButtonElementProps = Omit, "color">; export declare interface ButtonProps extends ButtonElementProps, VariantProps { /** Render children via Radix Slot (no `
* * *
* * Override the icon per-instance via `icon` if you need a non-Check glyph * (rare — most surfaces want the canonical check / minus pair). * * Visual treatment is calm-by-default to read well in both compact form rows * and standalone use: * * - **Rest border** is `border-input` (neutral) instead of a saturated * primary tint. Hover ramps the border slightly to signal interactivity * without flashing brand color. * - **Box** is `h-4 w-4` with `rounded-[5px]` — softer than `rounded-sm` so * the corner profile matches ``'s feel at a smaller * visual weight. * - **Check / Minus glyphs** sit at `h-3 w-3` so the checked state reads * crisply with breathing room around the glyph instead of filling the box * edge to edge. Stroke weight is baked into the icon barrel's source SVGs * (not a runtime prop — see `src/icons.tsx`). * - **Transitions** use `transition-[background-color,border-color,color] * duration-180 ease-smooth-out`, matching ``'s focus easing * exactly so the form-primitive family reads as one design system. * Indicator glyph fades + zooms in via `data-[state=checked]:animate-in` * after the background settles, layout-first-then-opacity per the * workspace voice rule. * - **Focus ring** matches ``: `focus-visible:ring-2 ring-ring * ring-offset-2`. */ export declare interface CheckboxProps extends React_2.ComponentPropsWithoutRef { /** * Replace the checked-state glyph. Default: `Check` from the icon barrel. * Indeterminate always renders `Minus` regardless of this prop. Type * matches the barrel's `Icon` signature so any `@aisquare/ui/icons` glyph * drops in directly. */ icon?: Icon; } /** * Merge Tailwind class names with conflict resolution. * * The library's primitives use this internally so consumer-supplied `className` * always wins over the default classes. Re-exported for consumers that want the * same merge behavior in their own code. */ export declare function cn(...inputs: ClassValue[]): string; export declare function ConsoleCallout({ tone, variant, role, icon, title, actions, onDismiss, dismissLabel, className, children, ...props }: ConsoleCalloutProps): JSX_2.Element; export declare interface ConsoleCalloutProps extends Omit, "title" | "role"> { tone?: ConsoleCalloutTone; variant?: "solid" | "dashed"; /** "status" announces politely and draws the first line in the tone's colour; "alert" is read at once. */ role?: "note" | "status" | "alert"; /** The icon before the text; decorative. */ icon?: React_2.ReactNode; /** The bold first line. */ title?: React_2.ReactNode; /** The action slot: buttons at the right (v2) or under the text (fe). */ actions?: React_2.ReactNode; /** Shows a dismiss button last; called when pressed. */ onDismiss?: () => void; dismissLabel?: string; } /** * ConsoleCallout — a tinted note or banner with tones, an icon slot and an action slot: motion-free, * drawn from `--ui-callout-*`. * * Reproduces Explainability v2's Callout (solid and dashed notes; neutral, info, warn, ok, warn-fill tones; * actions at the right, a dismiss button last; a `role="status"` draws its first line in the tone's colour) * and aisquare-fe's Alert / adopted InlineNotice (an 8px card with a real border, the icon in a column, the * action under the text). Colour is per tone: `--ui-callout--bg/-border/-fg`. With no theme each tone * derives from the semantic colours (`info`, `warning`, `success`, `destructive`, `muted`). * * Variables (fallback after the comma is the no-theme value): --ui-callout-radius/-px/-py/-gap/-text/ * -title-text/-title-weight/-icon/-icon-col/-icon-mt-titled/-gap-plain/-border-w, * -dashed-radius/-dashed-leading (the dashed note's corners and line height), --ui-callout-actions-ml/-basis, --ui-callout-body-fg, * and per tone T in neutral|info|warn|ok|destructive|warn-fill: --ui-callout-T-bg/-border/-fg. * The dashed variant is a v2 drawing: fixed padding and text size, but its radius and line height follow the theme. */ export declare type ConsoleCalloutTone = "neutral" | "info" | "warn" | "ok" | "destructive" | "warn-fill"; export declare const ConsoleCard: React_2.ForwardRefExoticComponent>; export declare function ConsoleCardAction({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; export declare function ConsoleCardBody({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; /** Inline (v2: "ranked by what needs you") or stacked (fe), by `--ui-card-desc-display`. */ export declare function ConsoleCardDescription({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; export declare function ConsoleCardFooter({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; export declare function ConsoleCardHeader({ title, description, action, className, children, ...props }: ConsoleCardHeaderProps): JSX_2.Element; export declare interface ConsoleCardHeaderProps extends Omit, "title"> { /** Shorthand: the title, drawn in the header's type. */ title?: React_2.ReactNode; /** Shorthand: muted text after (v2) or under (fe) the title. */ description?: React_2.ReactNode; /** Shorthand: the right-hand side: a count, a link or a small button. */ action?: React_2.ReactNode; } /** * ConsoleCard — the console's card: motion-free, drawn only from `--ui-card-*` theme variables. * * WHY A SECOND CARD. The library's `Card` lifts on hover through `motion`, so it cannot be in the console * entry (see docs/CONSOLE.md). This one has no motion, no cover image and no variants: a bordered surface * with an optional header, body and footer. Both existing consumers keep using `Card`; this is additive. * * Under no theme the card is a 1px bordered `--card` surface with `--radius` corners and 1rem edges. * Under `data-ui-theme="v2"` it is Explainability v2's `.card` (10px radius, 1px border, compact 12px/8px * header at 12px semibold, a rule under the header and over the footer). Under `fe` it is aisquare-fe's Card * (12px radius, inset ring instead of a border, a 24px `--card-pad` on every side, 16px semibold title). * * Parts: ConsoleCardHeader (+ ConsoleCardTitle, ConsoleCardDescription, ConsoleCardAction), ConsoleCardBody, * ConsoleCardFooter. `ConsoleCardHeader` also takes `title`, `description` and `action` as shorthand. * * Variables (all optional; the fallback after the comma is the no-theme value): * --ui-card-radius, --ui-card-border-w, --ui-card-ring-w (an inset ring of the border colour), --ui-card-py, --ui-card-gap, * --ui-card-header-px/-py/-text/-weight/-align/-rule, --ui-card-desc-text, * --ui-card-title-display (inline puts the description on the title's line), --ui-card-header-leading, --ui-card-desc-leading, --ui-card-footer-leading, * --ui-card-head-overflow/-ellipsis/-ws (clip the title + description pair to one line), * --ui-card-desc-display/-ml, --ui-card-body-px, --ui-card-footer-px/-py/-text/-rule, * --ui-ink-2, --ui-ink-3 (secondary and tertiary text), --ui-line-soft (the inner rules). */ export declare type ConsoleCardProps = React_2.HTMLAttributes; export declare function ConsoleCardTitle({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; export declare function ConsoleEmptyState({ size, icon, title: titleText, titleAs, description, action, eyebrow, caption, className, ...props }: ConsoleEmptyStateProps): JSX_2.Element; export declare interface ConsoleEmptyStateProps extends Omit, "title"> { /** Default "card". */ size?: ConsoleEmptyStateSize; /** The icon slot (decorative; the title says it). Not drawn by "chart". */ icon?: React_2.ReactNode; title: React_2.ReactNode; /** The title's element: h1 for a page, h2 elsewhere. */ titleAs?: TitleTag; description?: React_2.ReactNode; /** The action slot: buttons, in a row ("page"), stacked ("card") or under the text ("row"). */ action?: React_2.ReactNode; /** The mono line above the title ("page" only). */ eyebrow?: React_2.ReactNode; /** The small line under the actions ("page" and "card"). */ caption?: React_2.ReactNode; } /** * ConsoleEmptyState — what a place shows when it has nothing yet: motion-free, drawn from `--ui-empty-*`. * * The library's `EmptyState` fades in through `motion`, so it is not in the console entry. This one is * compositional (icon slot, title, description, action slot) and has four sizes, the four drawings of * Explainability v2's EmptyState: * - "page" a 480px column, a tile with the icon, an optional mono eyebrow ("404"), a page-size title. * - "card" a 280px column, the bare icon in the empty-icon grey, a small title, stacked actions. * - "chart" a surface box with a title and one line; the caller positions it. * - "row" a tile beside left-aligned text, for a table with no rows. * aisquare-fe has one drawing: a dashed 12px box with an 8px-radius icon tile. The fe theme sets the frame * variables (dashed border, radius, padding) and the tile variables, so every size reads as that box with the * size's own layout; what a variable cannot change is the layout itself (the width of a "page" column, the * grid of a "row"), which stays the size's. * * Variables (fallback after the comma is the no-theme value), per size S in page|card|row (tile) and * page|card|chart|row (the rest): * --ui-empty-frame-style/-w/-radius/-color, --ui-empty-S-px/-py, * --ui-empty-S-tile/-tile-radius/-tile-bg/-tile-fg/-glyph, --ui-empty-page-tile-gap, --ui-empty-card-tile-gap, * --ui-empty-S-title-text, --ui-empty-title-weight, --ui-empty-S-desc-text/-desc-mt, * --ui-empty-caption-leading, --ui-empty-eyebrow-leading (the page eyebrow's line height), * --ui-empty-page-actions-mt, --ui-empty-card-actions-mt, --ui-empty-caption-text, * --ui-ink-2, --ui-ink-3 (secondary and tertiary text). */ export declare type ConsoleEmptyStateSize = "page" | "card" | "chart" | "row"; /** * Modal overlay — a focused interaction that interrupts page flow. * * Prefer over `` when the content is a self-contained task * (form, confirmation, preview). Use `` for side-anchored * panels and `` for destructive confirmations. */ export declare function Dialog({ ...props }: React_2.ComponentProps): JSX_2.Element; /** * Closes the dialog. Use `asChild` to wrap your own button. */ export declare const DialogClose: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; /** * The dialog body. Set `showCloseButton={false}` to hide the * top-right X (e.g. when you want a footer-only close affordance). */ export declare const DialogContent: React_2.ForwardRefExoticComponent & { showCloseButton?: boolean; }, "ref"> & React_2.RefAttributes>; /** * Subtext under the title. Required by Radix for the SR description * region. */ export declare const DialogDescription: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; /** * Action row at the bottom. Pass `showCloseButton` to auto-render an * outline "Close" button alongside your action buttons. */ export declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & { showCloseButton?: boolean; }): JSX_2.Element; /** * Title + description container. Stacks vertically. */ export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element; /** * Backdrop behind the dialog. Rendered automatically by * ``. */ export declare const DialogOverlay: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; /** * Portals dialog into `document.body`. Used internally by * ``. */ export declare function DialogPortal({ container, ...props }: React_2.ComponentProps): JSX_2.Element; /** * Heading. Renders as Radix `Title` for screen-reader announcements. */ export declare const DialogTitle: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; /** * Opens the dialog. Use `asChild` to render as your own button. */ export declare const DialogTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; /** * DropdownMenu — radix-based menu primitive matching pretty's surface tokens. * * * * * * * * * Promote * * * * * Delete * * * * * Animations come from radix's data-state attributes paired with Tailwind's * `data-[state=open]:animate-in` utilities, so reduced-motion is honored * without extra wiring. */ export declare const DropdownMenu: React_2.FC; export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; /** Use destructive styling for delete-style entries. */ variant?: "default" | "destructive"; } & React_2.RefAttributes>; export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; } & React_2.RefAttributes>; export declare const DropdownMenuPortal: React_2.FC; export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuShortcut: { ({ className, ...props }: React_2.HTMLAttributes): JSX_2.Element; displayName: string; }; export declare const DropdownMenuSub: React_2.FC; export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent, "ref"> & { inset?: boolean; } & React_2.RefAttributes>; export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent, "ref"> & React_2.RefAttributes>; export declare const Heading: React_2.ForwardRefExoticComponent>; declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6; export declare interface HeadingProps extends React_2.HTMLAttributes { /** The outline level (h1-h6). Default 2. */ level?: HeadingLevel; /** The look, when it differs from the level's default (h1 title-page, h2 title-section, h3+ title-card). */ variant?: TypeRole; /** The text colour. Default `primary`. */ tone?: TextTone; } declare type Icon = React_2.ForwardRefExoticComponent>; /** * The prop shape every wrapped icon accepts — a same-behavior subset of * lucide's old `LucideProps`: `size` sets width+height (default 24, lucide's * own historical default, so an icon with no explicit size doesn't visually * jump), `color` sets the SVG's `currentColor` source via inline `style` * (the same mechanism `className="text-*"` already uses — most call sites * don't pass `color` explicitly for exactly that reason). `strokeWidth` is * intentionally NOT here — IconPark's stroke width is fixed in the source * SVG, not a runtime prop, so there is nothing this wrapper could forward. */ declare interface IconProps extends Omit, "color"> { size?: number | string; color?: string; } export declare const Input: React_2.ForwardRefExoticComponent>; export declare interface InputProps extends Omit, "size">, VariantProps { } /** * Input — base text-input primitive. Variants: * - default : standard form input, rounded-lg * - ghost : borderless, transparent, for inline-edit / table-cell scenarios * - chat : softer fill, rounded-2xl, glow-on-focus (composed by ChatInput) * - search : pill, icon-prefix slot via padding (composed by ExploreSearchBar) * * Sizes: sm / default / lg * * All colors via consumer CSS vars; no hardcoded brand values. */ export declare const inputVariants: (props?: ({ variant?: "search" | "default" | "ghost" | "chat" | null | undefined; size?: "default" | "sm" | "lg" | null | undefined; } & ClassProp) | undefined) => string; export declare const Label: React_2.ForwardRefExoticComponent>; export declare interface LabelProps extends React_2.LabelHTMLAttributes, VariantProps { } /** * Label — form-field caption. * * Plain `