@invana/ui 0.0.34 → 0.0.35

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/dist/index.d.cts CHANGED
@@ -2057,6 +2057,8 @@ interface ClarifyOption {
2057
2057
  value: string;
2058
2058
  /** The choice, in the user's terms — `Theme velocity, 5 sessions`. */
2059
2059
  label: React$1.ReactNode;
2060
+ /** What picking it means, under the label — `Flights in and out, counted once each.` */
2061
+ description?: React$1.ReactNode;
2060
2062
  /**
2061
2063
  * Where the choice comes from in the model — `Theme.velocity_5d · 14 themes`.
2062
2064
  *
@@ -2071,9 +2073,26 @@ interface ClarifyOption {
2071
2073
  * settled and read-only. Open: a surface may name its own.
2072
2074
  */
2073
2075
  type ClarifyState = "pending" | "answered" | "skipped" | "superseded" | "expired" | (string & {});
2076
+ /** One ask of several in one card — the same fields a single ask takes. */
2077
+ interface ClarifyQuestion {
2078
+ /** The question. One sentence. */
2079
+ question?: React$1.ReactNode;
2080
+ options?: ClarifyOption[];
2081
+ /** The picked option's value. */
2082
+ value?: string;
2083
+ /** What was typed instead of picking — drawn as the chosen row when it matches no option. */
2084
+ answer?: React$1.ReactNode;
2085
+ }
2074
2086
  interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
2075
2087
  /** @default "pending" */
2076
2088
  state?: ClarifyState;
2089
+ /**
2090
+ * `card` is a boxed panel with a header bar — a playbook, a form. `inline`
2091
+ * reads as part of a conversation: no box, a title line, the options as
2092
+ * light rows, the ones not taken dimmed once settled.
2093
+ * @default "card"
2094
+ */
2095
+ variant?: "card" | "inline";
2077
2096
  /** The header's word while the ask waits — `confirm` for a yes-or-no. @default "question" */
2078
2097
  kind?: React$1.ReactNode;
2079
2098
  /** Which step asked — `understand`. */
@@ -2087,7 +2106,29 @@ interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
2087
2106
  /** The choices, as one Questionnaire item. Ignored when `children` is given. */
2088
2107
  options?: ClarifyOption[];
2089
2108
  value?: string;
2090
- onSelect?: (value: string) => void;
2109
+ /** What was typed instead of picking — drawn as the chosen row when it matches no option. */
2110
+ answer?: React$1.ReactNode;
2111
+ /**
2112
+ * Several asks in one card, in the order they were asked. Takes the place of
2113
+ * `question` · `options` · `value` · `answer`.
2114
+ */
2115
+ questions?: ClarifyQuestion[];
2116
+ /** A pick. `index` is the ask's position in `questions` — `0` for a single ask. */
2117
+ onSelect?: (value: string, index: number) => void;
2118
+ /**
2119
+ * Answering in words: a last row under the options while the ask waits.
2120
+ * Leave it out where there is nowhere to type.
2121
+ */
2122
+ onTypeInstead?: () => void;
2123
+ /** @default "Something else — let me type", or "Type your answer" with no options */
2124
+ typeInsteadLabel?: React$1.ReactNode;
2125
+ /**
2126
+ * Settled, the card folds to its title line — `Answered · Most routes` —
2127
+ * and opens to the question and the options it was asked with.
2128
+ */
2129
+ collapsible?: boolean;
2130
+ /** Open on first render. @default true while pending, false once settled */
2131
+ defaultOpen?: boolean;
2091
2132
  /**
2092
2133
  * Any other control, in place of `options` — a `Questionnaire` of several
2093
2134
  * steps, a form, a summary of the answers.
@@ -3084,9 +3125,10 @@ interface NavItemConfig {
3084
3125
  */
3085
3126
  menuTrigger?: "item" | "caret";
3086
3127
  /**
3087
- * Draws an inline `×` inside the item — a tab that is closed rather than
3088
- * managed. The body still selects; only the `×` closes. Like the caret, it
3089
- * makes the item host a button, so the item itself renders as a `<div>`.
3128
+ * Draws an inline `×` on the item — a tab that is closed rather than
3129
+ * managed. The body still selects; only the `×` closes. The `×` is a sibling
3130
+ * of the item's control inside one box, not a child of it, so a tab's
3131
+ * accessible name stays its label and no button is nested in it.
3090
3132
  */
3091
3133
  onClose?: () => void;
3092
3134
  /**
@@ -5625,4 +5667,4 @@ interface UseOverflowItemsResult {
5625
5667
  */
5626
5668
  declare function useOverflowItems({ count, enabled, pinnedIndex, reserve, }: UseOverflowItemsOptions): UseOverflowItemsResult;
5627
5669
 
5628
- export { AbsenceNote, type AbsenceNoteProps, type AbsenceReason, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddressChip, type AddressChipProps, type AddressTone, AgentChip, type AgentChipProps, AgentHeader, type AgentHeaderProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppStatusBar, type AppStatusBarProps, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactTable, type ArtifactTableProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps, Badge, type BadgeProps, type BaseNavProps, type Bound, BoundChip, type BoundChipProps, type BoundPalette, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, ButtonWithTooltip, type ButtonWithTooltipProps, CAST_ROLES, CannotAnswerCard, type CannotAnswerCardProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithHeader, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CastResolution, type CastRole, type CastSource, CastTable, type CastTableProps, CaveatNote, type CaveatNoteProps, ChatSession, ChatSessionActivityRow, type ChatSessionActivityRowProps, type ChatSessionActivityStatus, ChatSessionActivitySubLine, type ChatSessionActivitySubLineProps, ChatSessionCaret, ChatSessionComposer, type ChatSessionComposerProps, ChatSessionContextChip, type ChatSessionContextChipProps, ChatSessionDisclosure, ChatSessionDisclosureCode, type ChatSessionDisclosureProps, ChatSessionDisclosureSteps, type ChatSessionDisclosureStepsProps, ChatSessionMessage, type ChatSessionMessageAction, ChatSessionMessageOptions, type ChatSessionMessageOptionsProps, type ChatSessionMessageProps, type ChatSessionMessageRole, type ChatSessionMessageStatus, ChatSessionProgressLine, type ChatSessionProgressLineProps, ChatSessionPromptRow, type ChatSessionPromptRowProps, type ChatSessionProps, ChatSessionStatusBar, type ChatSessionStatusBarProps, ChatSessionTaskGroup, type ChatSessionTaskGroupProps, ChatSessionTaskRow, type ChatSessionTaskRowProps, type ChatSessionTaskStatus, CitationList, type CitationListProps, CitationMarker, CitationRow, type CitationRowProps, ClampedText, type ClampedTextProps, ClarifyActions, type ClarifyActionsProps, ClarifyCard, type ClarifyCardProps, ClarifyFootnote, type ClarifyFootnoteProps, type ClarifyOption, type ClarifyState, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextBar, type ContextBarProps, DataReach, type DataReachModel, type DataReachProps, type DeclaredAxes, DiagnosisCard, type DiagnosisCardProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffList, type DiffListProps, type DiffOp, DiffRow, type DiffRowProps, DotRating, type DotRatingProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EgressClass, EgressList, type EgressListProps, EmissionBody, EmissionCard, type EmissionCardProps, EmissionHeader, type EmissionHeaderProps, type EmissionKind, EmptyState, EmptyStateLock, type EmptyStateLockProps, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryProps, type ExchangeOption, ExchangeRecord, type ExchangeRecordProps, ExpandToggle, type ExpandToggleProps, type ExpandedKeys, Eyebrow, type EyebrowProps, FilterBar, type FilterBarProps, FilterChip, type FilterChipOption, type FilterChipProps, FloatingPanel, type FloatingPanelProps, Gantt, type GanttBar, type GanttBracket, GanttDetailCard, type GanttDetailCardProps, type GanttDetailProps, type GanttInstant, type GanttProps, type GanttRow, type GanttSeam, type GanttStatus, HeaderTrail, type HeaderTrailCrumb, type HeaderTrailProps, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, KindChip, type KindChipProps, type KnownAddressTone, type KnownBound, type KnownDiffOp, type KnownLayer, type KnownMetricTone, type KnownParticipantVerdict, type KnownRunKind, type KnownRunStatus, type KnownTerminalLevel, type Layer, LayerChip, type LayerChipProps, type LayerPaint, type LayerPalette, LayerSection, type LayerSectionProps, Legend, LegendItem, type LegendItemProps, type LegendProps, type LegendSwatchKind, LensRow, type LensRowProps, type LensUsage, Link, type LinkProps, LogCard, type LogCardProps, type LogFloor, type LogLine, MarkChip, type MarkChipProps, type MarkTone, type MatchCandidate, MatchPreview, type MatchPreviewProps, MenuItem, type MenuItemProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricGrid, type MetricGridProps, MetricTile, type MetricTileProps, type MetricTone, MultiFilterChip, type MultiFilterChipProps, type Narrowing, NavBase, NavHorizontal, type NavHorizontalItem, NavHorizontalItems, type NavHorizontalItemsProps, type NavHorizontalProps, type NavItemConfig, NavItems, type NavItemsProps, type NavItemsVariant, type NavMenuItem, type NavSection, NavVertical, type NavVerticalItem, NavVerticalItems, type NavVerticalItemsProps, type NavVerticalProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NestedMenu, type NestedMenuProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelBox, type PanelBoxProps, PanelContent, type PanelContentProps, PanelStack, type PanelStackHandle, type PanelStackProps, type PanelStackSection, ParticipantRow, type ParticipantRowProps, type ParticipantVerdict, Popover, PopoverContent, PopoverTrigger, Progress, PropertyList, type PropertyListProps, PropertyRow, type PropertyRowProps, ProposalCard, type ProposalCardProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceFigure, type QuestionnaireChoiceProps, QuestionnaireChoiceTitle, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, type QuestionnaireFigureTone, QuestionnaireInput, type QuestionnaireInputProps, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireProgressBar, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RatingControl, type RatingControlProps, RecordHeader, type RecordHeaderProps, RecordPager, type RecordPagerProps, RefusalCard, type RefusalCardProps, RepairNote, type RepairNoteProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, RetryNote, type RetryNoteProps, RichSelect, type RichSelectAction, type RichSelectOption, type RichSelectProps, type RichSelectToggle, type RuleEgress, type RuleProperties, RuleRow, type RuleRowProps, type RuleSelect, type RunKind, RunRow, type RunRowProps, type RunStatus, RunStatusText, type RunStatusTextProps, ScopeLine, type ScopeLineChoice, type ScopeLinePart, type ScopeLineProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchInputSize, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SliceLine, SliceSummary, type SliceSummaryProps, Spinner, Stack, type StackProps, StageTrail, type StageTrailProps, type StageTrailStep, StatusDot, type StatusDotProps, StatusIcon, type StatusIconProps, type StatusIconState, type TabConfig, TabbedPanel, type TabbedPanelProps, Table, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskNode, type TaskNodeProps, type TaskNodeTag, type TemplateOption, TemplatePicker, type TemplatePickerProps, Terminal, type TerminalLevel, TerminalLine, type TerminalLineKind, type TerminalLineProps, type TerminalProps, TimelineEntry, type TimelineEntryProps, TimelineFooter, type TimelineFooterProps, TimelineList, type TimelineListProps, TimelineSection, type TimelineSectionProps, type TimelineVariant, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarAction, type ToolbarItem, type ToolbarProps, type ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TouchItem, TouchStrip, type TouchStripProps, Tour, type TourController, type TourProps, type TourReference, type TourStep, TraceGate, type TraceGateProps, TraceList, type TraceListProps, TraceLoop, type TraceLoopProps, TraceStep, type TraceStepProps, TreeItem, TreeView, type TreeViewProps, Typography, TypographyBlockquote, type TypographyBlockquoteProps, TypographyH1, type TypographyH1Props, TypographyH2, type TypographyH2Props, TypographyH3, type TypographyH3Props, TypographyH4, type TypographyH4Props, TypographyH5, type TypographyH5Props, TypographyH6, type TypographyH6Props, TypographyInlineCode, type TypographyInlineCodeProps, TypographyLarge, type TypographyLargeProps, TypographyLead, type TypographyLeadProps, TypographyList, type TypographyListProps, TypographyMuted, type TypographyMutedProps, TypographyP, type TypographyPProps, TypographyPre, type TypographyPreProps, TypographySmall, type TypographySmallProps, UnderDevelopment, type UnderDevelopmentProps, type UseExpandedKeysOptions, type UseOverflowItemsOptions, type UseOverflowItemsResult, type UseTourOptions, type Verdict, Workbook, type WorkbookAction, type WorkbookPage, type WorkbookPageMenuItem, type WorkbookProps, agentChipVariants, avatarVariants, badgeVariants, buttonGroupVariants, buttonVariants, chatSessionGutterClass, cn, describeSlice, formatRecords, layerLabel, layerPaint, linkVariants, navigationMenuTriggerStyle, ICON as runStatusIcons, TONE as runStatusTones, split as splitAddress, stackVariants, statusDotVariants, statusIconVariants, summarizeReach, toggleVariants, useExpandedKeys, useOverflowItems, useSidebar, useTour };
5670
+ export { AbsenceNote, type AbsenceNoteProps, type AbsenceReason, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddressChip, type AddressChipProps, type AddressTone, AgentChip, type AgentChipProps, AgentHeader, type AgentHeaderProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppStatusBar, type AppStatusBarProps, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactTable, type ArtifactTableProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps, Badge, type BadgeProps, type BaseNavProps, type Bound, BoundChip, type BoundChipProps, type BoundPalette, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, ButtonWithTooltip, type ButtonWithTooltipProps, CAST_ROLES, CannotAnswerCard, type CannotAnswerCardProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithHeader, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CastResolution, type CastRole, type CastSource, CastTable, type CastTableProps, CaveatNote, type CaveatNoteProps, ChatSession, ChatSessionActivityRow, type ChatSessionActivityRowProps, type ChatSessionActivityStatus, ChatSessionActivitySubLine, type ChatSessionActivitySubLineProps, ChatSessionCaret, ChatSessionComposer, type ChatSessionComposerProps, ChatSessionContextChip, type ChatSessionContextChipProps, ChatSessionDisclosure, ChatSessionDisclosureCode, type ChatSessionDisclosureProps, ChatSessionDisclosureSteps, type ChatSessionDisclosureStepsProps, ChatSessionMessage, type ChatSessionMessageAction, ChatSessionMessageOptions, type ChatSessionMessageOptionsProps, type ChatSessionMessageProps, type ChatSessionMessageRole, type ChatSessionMessageStatus, ChatSessionProgressLine, type ChatSessionProgressLineProps, ChatSessionPromptRow, type ChatSessionPromptRowProps, type ChatSessionProps, ChatSessionStatusBar, type ChatSessionStatusBarProps, ChatSessionTaskGroup, type ChatSessionTaskGroupProps, ChatSessionTaskRow, type ChatSessionTaskRowProps, type ChatSessionTaskStatus, CitationList, type CitationListProps, CitationMarker, CitationRow, type CitationRowProps, ClampedText, type ClampedTextProps, ClarifyActions, type ClarifyActionsProps, ClarifyCard, type ClarifyCardProps, ClarifyFootnote, type ClarifyFootnoteProps, type ClarifyOption, type ClarifyQuestion, type ClarifyState, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextBar, type ContextBarProps, DataReach, type DataReachModel, type DataReachProps, type DeclaredAxes, DiagnosisCard, type DiagnosisCardProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffList, type DiffListProps, type DiffOp, DiffRow, type DiffRowProps, DotRating, type DotRatingProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EgressClass, EgressList, type EgressListProps, EmissionBody, EmissionCard, type EmissionCardProps, EmissionHeader, type EmissionHeaderProps, type EmissionKind, EmptyState, EmptyStateLock, type EmptyStateLockProps, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryProps, type ExchangeOption, ExchangeRecord, type ExchangeRecordProps, ExpandToggle, type ExpandToggleProps, type ExpandedKeys, Eyebrow, type EyebrowProps, FilterBar, type FilterBarProps, FilterChip, type FilterChipOption, type FilterChipProps, FloatingPanel, type FloatingPanelProps, Gantt, type GanttBar, type GanttBracket, GanttDetailCard, type GanttDetailCardProps, type GanttDetailProps, type GanttInstant, type GanttProps, type GanttRow, type GanttSeam, type GanttStatus, HeaderTrail, type HeaderTrailCrumb, type HeaderTrailProps, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, KindChip, type KindChipProps, type KnownAddressTone, type KnownBound, type KnownDiffOp, type KnownLayer, type KnownMetricTone, type KnownParticipantVerdict, type KnownRunKind, type KnownRunStatus, type KnownTerminalLevel, type Layer, LayerChip, type LayerChipProps, type LayerPaint, type LayerPalette, LayerSection, type LayerSectionProps, Legend, LegendItem, type LegendItemProps, type LegendProps, type LegendSwatchKind, LensRow, type LensRowProps, type LensUsage, Link, type LinkProps, LogCard, type LogCardProps, type LogFloor, type LogLine, MarkChip, type MarkChipProps, type MarkTone, type MatchCandidate, MatchPreview, type MatchPreviewProps, MenuItem, type MenuItemProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricGrid, type MetricGridProps, MetricTile, type MetricTileProps, type MetricTone, MultiFilterChip, type MultiFilterChipProps, type Narrowing, NavBase, NavHorizontal, type NavHorizontalItem, NavHorizontalItems, type NavHorizontalItemsProps, type NavHorizontalProps, type NavItemConfig, NavItems, type NavItemsProps, type NavItemsVariant, type NavMenuItem, type NavSection, NavVertical, type NavVerticalItem, NavVerticalItems, type NavVerticalItemsProps, type NavVerticalProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NestedMenu, type NestedMenuProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelBox, type PanelBoxProps, PanelContent, type PanelContentProps, PanelStack, type PanelStackHandle, type PanelStackProps, type PanelStackSection, ParticipantRow, type ParticipantRowProps, type ParticipantVerdict, Popover, PopoverContent, PopoverTrigger, Progress, PropertyList, type PropertyListProps, PropertyRow, type PropertyRowProps, ProposalCard, type ProposalCardProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceFigure, type QuestionnaireChoiceProps, QuestionnaireChoiceTitle, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, type QuestionnaireFigureTone, QuestionnaireInput, type QuestionnaireInputProps, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireProgressBar, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RatingControl, type RatingControlProps, RecordHeader, type RecordHeaderProps, RecordPager, type RecordPagerProps, RefusalCard, type RefusalCardProps, RepairNote, type RepairNoteProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, RetryNote, type RetryNoteProps, RichSelect, type RichSelectAction, type RichSelectOption, type RichSelectProps, type RichSelectToggle, type RuleEgress, type RuleProperties, RuleRow, type RuleRowProps, type RuleSelect, type RunKind, RunRow, type RunRowProps, type RunStatus, RunStatusText, type RunStatusTextProps, ScopeLine, type ScopeLineChoice, type ScopeLinePart, type ScopeLineProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchInputSize, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SliceLine, SliceSummary, type SliceSummaryProps, Spinner, Stack, type StackProps, StageTrail, type StageTrailProps, type StageTrailStep, StatusDot, type StatusDotProps, StatusIcon, type StatusIconProps, type StatusIconState, type TabConfig, TabbedPanel, type TabbedPanelProps, Table, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskNode, type TaskNodeProps, type TaskNodeTag, type TemplateOption, TemplatePicker, type TemplatePickerProps, Terminal, type TerminalLevel, TerminalLine, type TerminalLineKind, type TerminalLineProps, type TerminalProps, TimelineEntry, type TimelineEntryProps, TimelineFooter, type TimelineFooterProps, TimelineList, type TimelineListProps, TimelineSection, type TimelineSectionProps, type TimelineVariant, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarAction, type ToolbarItem, type ToolbarProps, type ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TouchItem, TouchStrip, type TouchStripProps, Tour, type TourController, type TourProps, type TourReference, type TourStep, TraceGate, type TraceGateProps, TraceList, type TraceListProps, TraceLoop, type TraceLoopProps, TraceStep, type TraceStepProps, TreeItem, TreeView, type TreeViewProps, Typography, TypographyBlockquote, type TypographyBlockquoteProps, TypographyH1, type TypographyH1Props, TypographyH2, type TypographyH2Props, TypographyH3, type TypographyH3Props, TypographyH4, type TypographyH4Props, TypographyH5, type TypographyH5Props, TypographyH6, type TypographyH6Props, TypographyInlineCode, type TypographyInlineCodeProps, TypographyLarge, type TypographyLargeProps, TypographyLead, type TypographyLeadProps, TypographyList, type TypographyListProps, TypographyMuted, type TypographyMutedProps, TypographyP, type TypographyPProps, TypographyPre, type TypographyPreProps, TypographySmall, type TypographySmallProps, UnderDevelopment, type UnderDevelopmentProps, type UseExpandedKeysOptions, type UseOverflowItemsOptions, type UseOverflowItemsResult, type UseTourOptions, type Verdict, Workbook, type WorkbookAction, type WorkbookPage, type WorkbookPageMenuItem, type WorkbookProps, agentChipVariants, avatarVariants, badgeVariants, buttonGroupVariants, buttonVariants, chatSessionGutterClass, cn, describeSlice, formatRecords, layerLabel, layerPaint, linkVariants, navigationMenuTriggerStyle, ICON as runStatusIcons, TONE as runStatusTones, split as splitAddress, stackVariants, statusDotVariants, statusIconVariants, summarizeReach, toggleVariants, useExpandedKeys, useOverflowItems, useSidebar, useTour };
package/dist/index.d.ts CHANGED
@@ -2057,6 +2057,8 @@ interface ClarifyOption {
2057
2057
  value: string;
2058
2058
  /** The choice, in the user's terms — `Theme velocity, 5 sessions`. */
2059
2059
  label: React$1.ReactNode;
2060
+ /** What picking it means, under the label — `Flights in and out, counted once each.` */
2061
+ description?: React$1.ReactNode;
2060
2062
  /**
2061
2063
  * Where the choice comes from in the model — `Theme.velocity_5d · 14 themes`.
2062
2064
  *
@@ -2071,9 +2073,26 @@ interface ClarifyOption {
2071
2073
  * settled and read-only. Open: a surface may name its own.
2072
2074
  */
2073
2075
  type ClarifyState = "pending" | "answered" | "skipped" | "superseded" | "expired" | (string & {});
2076
+ /** One ask of several in one card — the same fields a single ask takes. */
2077
+ interface ClarifyQuestion {
2078
+ /** The question. One sentence. */
2079
+ question?: React$1.ReactNode;
2080
+ options?: ClarifyOption[];
2081
+ /** The picked option's value. */
2082
+ value?: string;
2083
+ /** What was typed instead of picking — drawn as the chosen row when it matches no option. */
2084
+ answer?: React$1.ReactNode;
2085
+ }
2074
2086
  interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
2075
2087
  /** @default "pending" */
2076
2088
  state?: ClarifyState;
2089
+ /**
2090
+ * `card` is a boxed panel with a header bar — a playbook, a form. `inline`
2091
+ * reads as part of a conversation: no box, a title line, the options as
2092
+ * light rows, the ones not taken dimmed once settled.
2093
+ * @default "card"
2094
+ */
2095
+ variant?: "card" | "inline";
2077
2096
  /** The header's word while the ask waits — `confirm` for a yes-or-no. @default "question" */
2078
2097
  kind?: React$1.ReactNode;
2079
2098
  /** Which step asked — `understand`. */
@@ -2087,7 +2106,29 @@ interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
2087
2106
  /** The choices, as one Questionnaire item. Ignored when `children` is given. */
2088
2107
  options?: ClarifyOption[];
2089
2108
  value?: string;
2090
- onSelect?: (value: string) => void;
2109
+ /** What was typed instead of picking — drawn as the chosen row when it matches no option. */
2110
+ answer?: React$1.ReactNode;
2111
+ /**
2112
+ * Several asks in one card, in the order they were asked. Takes the place of
2113
+ * `question` · `options` · `value` · `answer`.
2114
+ */
2115
+ questions?: ClarifyQuestion[];
2116
+ /** A pick. `index` is the ask's position in `questions` — `0` for a single ask. */
2117
+ onSelect?: (value: string, index: number) => void;
2118
+ /**
2119
+ * Answering in words: a last row under the options while the ask waits.
2120
+ * Leave it out where there is nowhere to type.
2121
+ */
2122
+ onTypeInstead?: () => void;
2123
+ /** @default "Something else — let me type", or "Type your answer" with no options */
2124
+ typeInsteadLabel?: React$1.ReactNode;
2125
+ /**
2126
+ * Settled, the card folds to its title line — `Answered · Most routes` —
2127
+ * and opens to the question and the options it was asked with.
2128
+ */
2129
+ collapsible?: boolean;
2130
+ /** Open on first render. @default true while pending, false once settled */
2131
+ defaultOpen?: boolean;
2091
2132
  /**
2092
2133
  * Any other control, in place of `options` — a `Questionnaire` of several
2093
2134
  * steps, a form, a summary of the answers.
@@ -3084,9 +3125,10 @@ interface NavItemConfig {
3084
3125
  */
3085
3126
  menuTrigger?: "item" | "caret";
3086
3127
  /**
3087
- * Draws an inline `×` inside the item — a tab that is closed rather than
3088
- * managed. The body still selects; only the `×` closes. Like the caret, it
3089
- * makes the item host a button, so the item itself renders as a `<div>`.
3128
+ * Draws an inline `×` on the item — a tab that is closed rather than
3129
+ * managed. The body still selects; only the `×` closes. The `×` is a sibling
3130
+ * of the item's control inside one box, not a child of it, so a tab's
3131
+ * accessible name stays its label and no button is nested in it.
3090
3132
  */
3091
3133
  onClose?: () => void;
3092
3134
  /**
@@ -5625,4 +5667,4 @@ interface UseOverflowItemsResult {
5625
5667
  */
5626
5668
  declare function useOverflowItems({ count, enabled, pinnedIndex, reserve, }: UseOverflowItemsOptions): UseOverflowItemsResult;
5627
5669
 
5628
- export { AbsenceNote, type AbsenceNoteProps, type AbsenceReason, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddressChip, type AddressChipProps, type AddressTone, AgentChip, type AgentChipProps, AgentHeader, type AgentHeaderProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppStatusBar, type AppStatusBarProps, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactTable, type ArtifactTableProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps, Badge, type BadgeProps, type BaseNavProps, type Bound, BoundChip, type BoundChipProps, type BoundPalette, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, ButtonWithTooltip, type ButtonWithTooltipProps, CAST_ROLES, CannotAnswerCard, type CannotAnswerCardProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithHeader, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CastResolution, type CastRole, type CastSource, CastTable, type CastTableProps, CaveatNote, type CaveatNoteProps, ChatSession, ChatSessionActivityRow, type ChatSessionActivityRowProps, type ChatSessionActivityStatus, ChatSessionActivitySubLine, type ChatSessionActivitySubLineProps, ChatSessionCaret, ChatSessionComposer, type ChatSessionComposerProps, ChatSessionContextChip, type ChatSessionContextChipProps, ChatSessionDisclosure, ChatSessionDisclosureCode, type ChatSessionDisclosureProps, ChatSessionDisclosureSteps, type ChatSessionDisclosureStepsProps, ChatSessionMessage, type ChatSessionMessageAction, ChatSessionMessageOptions, type ChatSessionMessageOptionsProps, type ChatSessionMessageProps, type ChatSessionMessageRole, type ChatSessionMessageStatus, ChatSessionProgressLine, type ChatSessionProgressLineProps, ChatSessionPromptRow, type ChatSessionPromptRowProps, type ChatSessionProps, ChatSessionStatusBar, type ChatSessionStatusBarProps, ChatSessionTaskGroup, type ChatSessionTaskGroupProps, ChatSessionTaskRow, type ChatSessionTaskRowProps, type ChatSessionTaskStatus, CitationList, type CitationListProps, CitationMarker, CitationRow, type CitationRowProps, ClampedText, type ClampedTextProps, ClarifyActions, type ClarifyActionsProps, ClarifyCard, type ClarifyCardProps, ClarifyFootnote, type ClarifyFootnoteProps, type ClarifyOption, type ClarifyState, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextBar, type ContextBarProps, DataReach, type DataReachModel, type DataReachProps, type DeclaredAxes, DiagnosisCard, type DiagnosisCardProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffList, type DiffListProps, type DiffOp, DiffRow, type DiffRowProps, DotRating, type DotRatingProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EgressClass, EgressList, type EgressListProps, EmissionBody, EmissionCard, type EmissionCardProps, EmissionHeader, type EmissionHeaderProps, type EmissionKind, EmptyState, EmptyStateLock, type EmptyStateLockProps, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryProps, type ExchangeOption, ExchangeRecord, type ExchangeRecordProps, ExpandToggle, type ExpandToggleProps, type ExpandedKeys, Eyebrow, type EyebrowProps, FilterBar, type FilterBarProps, FilterChip, type FilterChipOption, type FilterChipProps, FloatingPanel, type FloatingPanelProps, Gantt, type GanttBar, type GanttBracket, GanttDetailCard, type GanttDetailCardProps, type GanttDetailProps, type GanttInstant, type GanttProps, type GanttRow, type GanttSeam, type GanttStatus, HeaderTrail, type HeaderTrailCrumb, type HeaderTrailProps, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, KindChip, type KindChipProps, type KnownAddressTone, type KnownBound, type KnownDiffOp, type KnownLayer, type KnownMetricTone, type KnownParticipantVerdict, type KnownRunKind, type KnownRunStatus, type KnownTerminalLevel, type Layer, LayerChip, type LayerChipProps, type LayerPaint, type LayerPalette, LayerSection, type LayerSectionProps, Legend, LegendItem, type LegendItemProps, type LegendProps, type LegendSwatchKind, LensRow, type LensRowProps, type LensUsage, Link, type LinkProps, LogCard, type LogCardProps, type LogFloor, type LogLine, MarkChip, type MarkChipProps, type MarkTone, type MatchCandidate, MatchPreview, type MatchPreviewProps, MenuItem, type MenuItemProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricGrid, type MetricGridProps, MetricTile, type MetricTileProps, type MetricTone, MultiFilterChip, type MultiFilterChipProps, type Narrowing, NavBase, NavHorizontal, type NavHorizontalItem, NavHorizontalItems, type NavHorizontalItemsProps, type NavHorizontalProps, type NavItemConfig, NavItems, type NavItemsProps, type NavItemsVariant, type NavMenuItem, type NavSection, NavVertical, type NavVerticalItem, NavVerticalItems, type NavVerticalItemsProps, type NavVerticalProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NestedMenu, type NestedMenuProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelBox, type PanelBoxProps, PanelContent, type PanelContentProps, PanelStack, type PanelStackHandle, type PanelStackProps, type PanelStackSection, ParticipantRow, type ParticipantRowProps, type ParticipantVerdict, Popover, PopoverContent, PopoverTrigger, Progress, PropertyList, type PropertyListProps, PropertyRow, type PropertyRowProps, ProposalCard, type ProposalCardProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceFigure, type QuestionnaireChoiceProps, QuestionnaireChoiceTitle, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, type QuestionnaireFigureTone, QuestionnaireInput, type QuestionnaireInputProps, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireProgressBar, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RatingControl, type RatingControlProps, RecordHeader, type RecordHeaderProps, RecordPager, type RecordPagerProps, RefusalCard, type RefusalCardProps, RepairNote, type RepairNoteProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, RetryNote, type RetryNoteProps, RichSelect, type RichSelectAction, type RichSelectOption, type RichSelectProps, type RichSelectToggle, type RuleEgress, type RuleProperties, RuleRow, type RuleRowProps, type RuleSelect, type RunKind, RunRow, type RunRowProps, type RunStatus, RunStatusText, type RunStatusTextProps, ScopeLine, type ScopeLineChoice, type ScopeLinePart, type ScopeLineProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchInputSize, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SliceLine, SliceSummary, type SliceSummaryProps, Spinner, Stack, type StackProps, StageTrail, type StageTrailProps, type StageTrailStep, StatusDot, type StatusDotProps, StatusIcon, type StatusIconProps, type StatusIconState, type TabConfig, TabbedPanel, type TabbedPanelProps, Table, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskNode, type TaskNodeProps, type TaskNodeTag, type TemplateOption, TemplatePicker, type TemplatePickerProps, Terminal, type TerminalLevel, TerminalLine, type TerminalLineKind, type TerminalLineProps, type TerminalProps, TimelineEntry, type TimelineEntryProps, TimelineFooter, type TimelineFooterProps, TimelineList, type TimelineListProps, TimelineSection, type TimelineSectionProps, type TimelineVariant, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarAction, type ToolbarItem, type ToolbarProps, type ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TouchItem, TouchStrip, type TouchStripProps, Tour, type TourController, type TourProps, type TourReference, type TourStep, TraceGate, type TraceGateProps, TraceList, type TraceListProps, TraceLoop, type TraceLoopProps, TraceStep, type TraceStepProps, TreeItem, TreeView, type TreeViewProps, Typography, TypographyBlockquote, type TypographyBlockquoteProps, TypographyH1, type TypographyH1Props, TypographyH2, type TypographyH2Props, TypographyH3, type TypographyH3Props, TypographyH4, type TypographyH4Props, TypographyH5, type TypographyH5Props, TypographyH6, type TypographyH6Props, TypographyInlineCode, type TypographyInlineCodeProps, TypographyLarge, type TypographyLargeProps, TypographyLead, type TypographyLeadProps, TypographyList, type TypographyListProps, TypographyMuted, type TypographyMutedProps, TypographyP, type TypographyPProps, TypographyPre, type TypographyPreProps, TypographySmall, type TypographySmallProps, UnderDevelopment, type UnderDevelopmentProps, type UseExpandedKeysOptions, type UseOverflowItemsOptions, type UseOverflowItemsResult, type UseTourOptions, type Verdict, Workbook, type WorkbookAction, type WorkbookPage, type WorkbookPageMenuItem, type WorkbookProps, agentChipVariants, avatarVariants, badgeVariants, buttonGroupVariants, buttonVariants, chatSessionGutterClass, cn, describeSlice, formatRecords, layerLabel, layerPaint, linkVariants, navigationMenuTriggerStyle, ICON as runStatusIcons, TONE as runStatusTones, split as splitAddress, stackVariants, statusDotVariants, statusIconVariants, summarizeReach, toggleVariants, useExpandedKeys, useOverflowItems, useSidebar, useTour };
5670
+ export { AbsenceNote, type AbsenceNoteProps, type AbsenceReason, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddressChip, type AddressChipProps, type AddressTone, AgentChip, type AgentChipProps, AgentHeader, type AgentHeaderProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppStatusBar, type AppStatusBarProps, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactTable, type ArtifactTableProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps, Badge, type BadgeProps, type BaseNavProps, type Bound, BoundChip, type BoundChipProps, type BoundPalette, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, ButtonWithTooltip, type ButtonWithTooltipProps, CAST_ROLES, CannotAnswerCard, type CannotAnswerCardProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithHeader, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CastResolution, type CastRole, type CastSource, CastTable, type CastTableProps, CaveatNote, type CaveatNoteProps, ChatSession, ChatSessionActivityRow, type ChatSessionActivityRowProps, type ChatSessionActivityStatus, ChatSessionActivitySubLine, type ChatSessionActivitySubLineProps, ChatSessionCaret, ChatSessionComposer, type ChatSessionComposerProps, ChatSessionContextChip, type ChatSessionContextChipProps, ChatSessionDisclosure, ChatSessionDisclosureCode, type ChatSessionDisclosureProps, ChatSessionDisclosureSteps, type ChatSessionDisclosureStepsProps, ChatSessionMessage, type ChatSessionMessageAction, ChatSessionMessageOptions, type ChatSessionMessageOptionsProps, type ChatSessionMessageProps, type ChatSessionMessageRole, type ChatSessionMessageStatus, ChatSessionProgressLine, type ChatSessionProgressLineProps, ChatSessionPromptRow, type ChatSessionPromptRowProps, type ChatSessionProps, ChatSessionStatusBar, type ChatSessionStatusBarProps, ChatSessionTaskGroup, type ChatSessionTaskGroupProps, ChatSessionTaskRow, type ChatSessionTaskRowProps, type ChatSessionTaskStatus, CitationList, type CitationListProps, CitationMarker, CitationRow, type CitationRowProps, ClampedText, type ClampedTextProps, ClarifyActions, type ClarifyActionsProps, ClarifyCard, type ClarifyCardProps, ClarifyFootnote, type ClarifyFootnoteProps, type ClarifyOption, type ClarifyQuestion, type ClarifyState, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextBar, type ContextBarProps, DataReach, type DataReachModel, type DataReachProps, type DeclaredAxes, DiagnosisCard, type DiagnosisCardProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffList, type DiffListProps, type DiffOp, DiffRow, type DiffRowProps, DotRating, type DotRatingProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EgressClass, EgressList, type EgressListProps, EmissionBody, EmissionCard, type EmissionCardProps, EmissionHeader, type EmissionHeaderProps, type EmissionKind, EmptyState, EmptyStateLock, type EmptyStateLockProps, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryProps, type ExchangeOption, ExchangeRecord, type ExchangeRecordProps, ExpandToggle, type ExpandToggleProps, type ExpandedKeys, Eyebrow, type EyebrowProps, FilterBar, type FilterBarProps, FilterChip, type FilterChipOption, type FilterChipProps, FloatingPanel, type FloatingPanelProps, Gantt, type GanttBar, type GanttBracket, GanttDetailCard, type GanttDetailCardProps, type GanttDetailProps, type GanttInstant, type GanttProps, type GanttRow, type GanttSeam, type GanttStatus, HeaderTrail, type HeaderTrailCrumb, type HeaderTrailProps, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, KindChip, type KindChipProps, type KnownAddressTone, type KnownBound, type KnownDiffOp, type KnownLayer, type KnownMetricTone, type KnownParticipantVerdict, type KnownRunKind, type KnownRunStatus, type KnownTerminalLevel, type Layer, LayerChip, type LayerChipProps, type LayerPaint, type LayerPalette, LayerSection, type LayerSectionProps, Legend, LegendItem, type LegendItemProps, type LegendProps, type LegendSwatchKind, LensRow, type LensRowProps, type LensUsage, Link, type LinkProps, LogCard, type LogCardProps, type LogFloor, type LogLine, MarkChip, type MarkChipProps, type MarkTone, type MatchCandidate, MatchPreview, type MatchPreviewProps, MenuItem, type MenuItemProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricGrid, type MetricGridProps, MetricTile, type MetricTileProps, type MetricTone, MultiFilterChip, type MultiFilterChipProps, type Narrowing, NavBase, NavHorizontal, type NavHorizontalItem, NavHorizontalItems, type NavHorizontalItemsProps, type NavHorizontalProps, type NavItemConfig, NavItems, type NavItemsProps, type NavItemsVariant, type NavMenuItem, type NavSection, NavVertical, type NavVerticalItem, NavVerticalItems, type NavVerticalItemsProps, type NavVerticalProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NestedMenu, type NestedMenuProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelBox, type PanelBoxProps, PanelContent, type PanelContentProps, PanelStack, type PanelStackHandle, type PanelStackProps, type PanelStackSection, ParticipantRow, type ParticipantRowProps, type ParticipantVerdict, Popover, PopoverContent, PopoverTrigger, Progress, PropertyList, type PropertyListProps, PropertyRow, type PropertyRowProps, ProposalCard, type ProposalCardProps, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, type QuestionnaireChoiceFigure, type QuestionnaireChoiceProps, QuestionnaireChoiceTitle, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, type QuestionnaireFigureTone, QuestionnaireInput, type QuestionnaireInputProps, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireProgressBar, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, RatingControl, type RatingControlProps, RecordHeader, type RecordHeaderProps, RecordPager, type RecordPagerProps, RefusalCard, type RefusalCardProps, RepairNote, type RepairNoteProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, RetryNote, type RetryNoteProps, RichSelect, type RichSelectAction, type RichSelectOption, type RichSelectProps, type RichSelectToggle, type RuleEgress, type RuleProperties, RuleRow, type RuleRowProps, type RuleSelect, type RunKind, RunRow, type RunRowProps, type RunStatus, RunStatusText, type RunStatusTextProps, ScopeLine, type ScopeLineChoice, type ScopeLinePart, type ScopeLineProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchInputSize, SectionHeader, type SectionHeaderProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SliceLine, SliceSummary, type SliceSummaryProps, Spinner, Stack, type StackProps, StageTrail, type StageTrailProps, type StageTrailStep, StatusDot, type StatusDotProps, StatusIcon, type StatusIconProps, type StatusIconState, type TabConfig, TabbedPanel, type TabbedPanelProps, Table, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskNode, type TaskNodeProps, type TaskNodeTag, type TemplateOption, TemplatePicker, type TemplatePickerProps, Terminal, type TerminalLevel, TerminalLine, type TerminalLineKind, type TerminalLineProps, type TerminalProps, TimelineEntry, type TimelineEntryProps, TimelineFooter, type TimelineFooterProps, TimelineList, type TimelineListProps, TimelineSection, type TimelineSectionProps, type TimelineVariant, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, type ToolbarAction, type ToolbarItem, type ToolbarProps, type ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TouchItem, TouchStrip, type TouchStripProps, Tour, type TourController, type TourProps, type TourReference, type TourStep, TraceGate, type TraceGateProps, TraceList, type TraceListProps, TraceLoop, type TraceLoopProps, TraceStep, type TraceStepProps, TreeItem, TreeView, type TreeViewProps, Typography, TypographyBlockquote, type TypographyBlockquoteProps, TypographyH1, type TypographyH1Props, TypographyH2, type TypographyH2Props, TypographyH3, type TypographyH3Props, TypographyH4, type TypographyH4Props, TypographyH5, type TypographyH5Props, TypographyH6, type TypographyH6Props, TypographyInlineCode, type TypographyInlineCodeProps, TypographyLarge, type TypographyLargeProps, TypographyLead, type TypographyLeadProps, TypographyList, type TypographyListProps, TypographyMuted, type TypographyMutedProps, TypographyP, type TypographyPProps, TypographyPre, type TypographyPreProps, TypographySmall, type TypographySmallProps, UnderDevelopment, type UnderDevelopmentProps, type UseExpandedKeysOptions, type UseOverflowItemsOptions, type UseOverflowItemsResult, type UseTourOptions, type Verdict, Workbook, type WorkbookAction, type WorkbookPage, type WorkbookPageMenuItem, type WorkbookProps, agentChipVariants, avatarVariants, badgeVariants, buttonGroupVariants, buttonVariants, chatSessionGutterClass, cn, describeSlice, formatRecords, layerLabel, layerPaint, linkVariants, navigationMenuTriggerStyle, ICON as runStatusIcons, TONE as runStatusTones, split as splitAddress, stackVariants, statusDotVariants, statusIconVariants, summarizeReach, toggleVariants, useExpandedKeys, useOverflowItems, useSidebar, useTour };
package/dist/index.js CHANGED
@@ -4525,7 +4525,7 @@ var NavItems = ({
4525
4525
  const isActive = key === currentKey;
4526
4526
  const hasMenu = !item.href && Boolean(item.menuItems?.length);
4527
4527
  const asCaret = hasMenu && item.menuTrigger === "caret";
4528
- const hostsButton = asCaret || Boolean(item.onClose);
4528
+ const hostsButton = asCaret;
4529
4529
  const isInteractive = Boolean(
4530
4530
  item.href || item.onClick || hasMenu || isTabs
4531
4531
  );
@@ -4588,9 +4588,9 @@ var NavItems = ({
4588
4588
  }
4589
4589
  ) });
4590
4590
  const close = item.onClose && /* @__PURE__ */ jsx(
4591
- "span",
4591
+ "button",
4592
4592
  {
4593
- role: "button",
4593
+ type: "button",
4594
4594
  tabIndex: -1,
4595
4595
  "aria-label": `Close ${item.name}`,
4596
4596
  onClick: (e) => {
@@ -4605,20 +4605,49 @@ var NavItems = ({
4605
4605
  icon,
4606
4606
  label,
4607
4607
  caret,
4608
- close,
4609
4608
  badge
4610
4609
  ] });
4611
- const control = hostsButton ? /* @__PURE__ */ jsx(
4610
+ const control = close ? /* @__PURE__ */ jsxs(
4612
4611
  "div",
4613
4612
  {
4614
- ref: setNode,
4615
- ...tabProps,
4616
- ...a11y,
4613
+ ref: itemRef(index),
4617
4614
  style: item.style,
4618
4615
  onClick: () => select(item),
4619
- className: itemClass,
4620
- children: inner
4616
+ className: cn(
4617
+ itemClass,
4618
+ "has-[[role=tab]:focus-visible]:ring-2 has-[[role=tab]:focus-visible]:ring-ring"
4619
+ ),
4620
+ children: [
4621
+ /* @__PURE__ */ jsx(
4622
+ "div",
4623
+ {
4624
+ ref: (el) => {
4625
+ nodes.current[key] = el;
4626
+ },
4627
+ ...tabProps,
4628
+ ...a11y,
4629
+ className: "inline-flex items-center gap-[inherit] focus-visible:outline-none",
4630
+ children: inner
4631
+ }
4632
+ ),
4633
+ close
4634
+ ]
4621
4635
  }
4636
+ ) : hostsButton ? (
4637
+ // A caret item hosts a button, so it cannot itself be one — nested
4638
+ // buttons are invalid, and the browser resolves the click to the outer control.
4639
+ /* @__PURE__ */ jsx(
4640
+ "div",
4641
+ {
4642
+ ref: setNode,
4643
+ ...tabProps,
4644
+ ...a11y,
4645
+ style: item.style,
4646
+ onClick: () => select(item),
4647
+ className: itemClass,
4648
+ children: inner
4649
+ }
4650
+ )
4622
4651
  ) : item.href ? /* @__PURE__ */ jsx(
4623
4652
  "a",
4624
4653
  {
@@ -5429,6 +5458,7 @@ ClarifyActions.displayName = "ClarifyActions";
5429
5458
  var ClarifyCard = React25.forwardRef(
5430
5459
  ({
5431
5460
  state = "pending",
5461
+ variant = "card",
5432
5462
  kind = "question",
5433
5463
  step,
5434
5464
  waiting,
@@ -5436,7 +5466,13 @@ var ClarifyCard = React25.forwardRef(
5436
5466
  question,
5437
5467
  options,
5438
5468
  value,
5469
+ answer,
5470
+ questions,
5439
5471
  onSelect,
5472
+ onTypeInstead,
5473
+ typeInsteadLabel,
5474
+ collapsible = false,
5475
+ defaultOpen,
5440
5476
  children,
5441
5477
  footnote,
5442
5478
  actions,
@@ -5445,50 +5481,153 @@ var ClarifyCard = React25.forwardRef(
5445
5481
  ...props
5446
5482
  }, ref) => {
5447
5483
  const settled = state !== "pending";
5484
+ const inline = variant === "inline";
5448
5485
  const name = React25.useId();
5486
+ const asks = questions ?? (question != null || options ? [{ question, options, value, answer }] : []);
5487
+ const [open, setOpen] = React25.useState(defaultOpen ?? !settled);
5488
+ const wasSettled = React25.useRef(settled);
5489
+ React25.useEffect(() => {
5490
+ if (settled && !wasSettled.current) setOpen(defaultOpen ?? false);
5491
+ wasSettled.current = settled;
5492
+ }, [settled, defaultOpen]);
5493
+ const shown = !collapsible || open;
5494
+ const summary = settled ? summaryOf(asks) : null;
5495
+ const title = settled && !inline ? state : kind;
5496
+ const sub = inline ? [settled ? state : null, summary ?? step].filter((x) => x != null) : step != null ? [step] : [];
5497
+ const chevron = collapsible ? /* @__PURE__ */ jsx(
5498
+ "svg",
5499
+ {
5500
+ "aria-hidden": "true",
5501
+ viewBox: "0 0 24 24",
5502
+ fill: "none",
5503
+ stroke: "currentColor",
5504
+ strokeWidth: 2,
5505
+ strokeLinecap: "round",
5506
+ strokeLinejoin: "round",
5507
+ className: cn("size-3 shrink-0 transition-transform", open && "rotate-180"),
5508
+ children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
5509
+ }
5510
+ ) : null;
5511
+ const headerContent = /* @__PURE__ */ jsxs(Fragment, { children: [
5512
+ /* @__PURE__ */ jsx("span", { className: cn("shrink-0 font-medium", inline && "first-letter:uppercase"), children: title }),
5513
+ sub.length > 0 ? /* @__PURE__ */ jsx("span", { className: "min-w-0 truncate text-muted-foreground first-letter:uppercase", children: sub.map((part, i) => /* @__PURE__ */ jsxs(React25.Fragment, { children: [
5514
+ i > 0 ? " \xB7 " : null,
5515
+ part
5516
+ ] }, i)) }) : null,
5517
+ inline ? chevron : /* @__PURE__ */ jsx("span", { className: "flex-1" }),
5518
+ waiting != null ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-muted-foreground", children: waiting }) : null,
5519
+ time != null ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-muted-foreground", children: time }) : null,
5520
+ !inline ? chevron : null
5521
+ ] });
5522
+ const headerClass = inline ? "flex min-w-0 items-center gap-1.5 text-start" : "flex h-control-sm shrink-0 items-center gap-2 border-b border-border bg-chrome px-2 text-sm text-start";
5449
5523
  return /* @__PURE__ */ jsxs(
5450
5524
  "div",
5451
5525
  {
5452
5526
  ref,
5453
5527
  "data-state": state,
5528
+ "data-variant": variant,
5454
5529
  className: cn(
5455
- "flex min-w-0 flex-col overflow-hidden border border-border bg-card",
5530
+ "flex min-w-0 flex-col",
5531
+ inline ? "gap-2" : "overflow-hidden border border-border bg-card",
5456
5532
  (state === "superseded" || state === "expired") && "opacity-75",
5457
5533
  className
5458
5534
  ),
5459
5535
  ...props,
5460
5536
  children: [
5461
- /* @__PURE__ */ jsxs("div", { className: "flex h-control-sm shrink-0 items-center gap-2 border-b border-border bg-chrome px-2 text-sm", children: [
5462
- /* @__PURE__ */ jsx("span", { className: "shrink-0 font-medium", children: settled ? state : kind }),
5463
- step != null ? /* @__PURE__ */ jsx("span", { className: "truncate text-muted-foreground", children: step }) : null,
5464
- /* @__PURE__ */ jsx("span", { className: "flex-1" }),
5465
- waiting != null ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-muted-foreground", children: waiting }) : null,
5466
- time != null ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-muted-foreground", children: time }) : null
5467
- ] }),
5468
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2 p-2", children: [
5469
- question != null ? /* @__PURE__ */ jsx("p", { children: question }) : null,
5470
- children ?? (options ? /* @__PURE__ */ jsx(Questionnaire, { onSubmit: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(QuestionnaireItem, { name, children: /* @__PURE__ */ jsx(QuestionnaireChoices, { children: options.map((o) => /* @__PURE__ */ jsx(
5471
- QuestionnaireChoice,
5537
+ collapsible ? /* @__PURE__ */ jsx(
5538
+ "button",
5539
+ {
5540
+ type: "button",
5541
+ "aria-expanded": open,
5542
+ onClick: () => setOpen((o) => !o),
5543
+ className: cn(
5544
+ headerClass,
5545
+ "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
5546
+ inline && "self-start rounded-control"
5547
+ ),
5548
+ children: headerContent
5549
+ }
5550
+ ) : /* @__PURE__ */ jsx("div", { className: headerClass, children: headerContent }),
5551
+ shown ? /* @__PURE__ */ jsxs("div", { className: cn("flex flex-1 flex-col", inline ? "gap-3" : "gap-2 p-2"), children: [
5552
+ children ?? asks.map((ask, index) => /* @__PURE__ */ jsx(
5553
+ Ask,
5472
5554
  {
5473
- value: o.value,
5474
- detail: o.detail,
5475
- disabled: o.disabled,
5476
- readOnly: settled,
5477
- checked: value === void 0 ? void 0 : value === o.value,
5478
- onChange: () => onSelect?.(o.value),
5479
- children: /* @__PURE__ */ jsx(QuestionnaireChoiceTitle, { children: o.label })
5555
+ ask,
5556
+ name: `${name}-${index}`,
5557
+ inline,
5558
+ settled,
5559
+ onSelect: onSelect ? (v) => onSelect(v, index) : void 0,
5560
+ onTypeInstead,
5561
+ typeInsteadLabel
5480
5562
  },
5481
- o.value
5482
- )) }) }) }) : null),
5563
+ index
5564
+ )),
5483
5565
  footnote != null ? /* @__PURE__ */ jsx(ClarifyFootnote, { children: footnote }) : null,
5484
5566
  actions ? /* @__PURE__ */ jsx(ClarifyActions, { align: actionsAlign, children: actions }) : null
5485
- ] })
5567
+ ] }) : null
5486
5568
  ]
5487
5569
  }
5488
5570
  );
5489
5571
  }
5490
5572
  );
5491
5573
  ClarifyCard.displayName = "ClarifyCard";
5574
+ function summaryOf(asks) {
5575
+ if (asks.length > 1) return `${asks.length} questions`;
5576
+ const ask = asks[0];
5577
+ if (!ask) return null;
5578
+ return ask.options?.find((o) => o.value === ask.value)?.label ?? ask.answer ?? null;
5579
+ }
5580
+ var TYPED = "\0typed";
5581
+ function Ask({
5582
+ ask,
5583
+ name,
5584
+ inline,
5585
+ settled,
5586
+ onSelect,
5587
+ onTypeInstead,
5588
+ typeInsteadLabel
5589
+ }) {
5590
+ const options = ask.options ?? [];
5591
+ const picked = options.some((o) => o.value === ask.value);
5592
+ const typed = settled && !picked && ask.answer != null;
5593
+ const row = (checked) => cn(inline && "border-transparent", settled && !checked && "opacity-60");
5594
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
5595
+ ask.question != null ? /* @__PURE__ */ jsx("p", { className: cn(inline && "font-medium"), children: ask.question }) : null,
5596
+ options.length > 0 || typed || !settled && onTypeInstead ? /* @__PURE__ */ jsx(Questionnaire, { onSubmit: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(QuestionnaireItem, { name, children: /* @__PURE__ */ jsxs(QuestionnaireChoices, { children: [
5597
+ options.map((o) => {
5598
+ const checked = ask.value === o.value;
5599
+ return /* @__PURE__ */ jsxs(
5600
+ QuestionnaireChoice,
5601
+ {
5602
+ value: o.value,
5603
+ detail: o.detail,
5604
+ disabled: o.disabled,
5605
+ readOnly: settled,
5606
+ checked: ask.value === void 0 ? void 0 : checked,
5607
+ onChange: () => onSelect?.(o.value),
5608
+ className: row(checked),
5609
+ children: [
5610
+ /* @__PURE__ */ jsx(QuestionnaireChoiceTitle, { children: o.label }),
5611
+ o.description != null ? /* @__PURE__ */ jsx(QuestionnaireChoiceDescription, { children: o.description }) : null
5612
+ ]
5613
+ },
5614
+ o.value
5615
+ );
5616
+ }),
5617
+ typed ? /* @__PURE__ */ jsx(QuestionnaireChoice, { value: TYPED, readOnly: true, checked: true, className: row(true), children: /* @__PURE__ */ jsx(QuestionnaireChoiceTitle, { children: ask.answer }) }) : null,
5618
+ !settled && onTypeInstead ? /* @__PURE__ */ jsx(
5619
+ QuestionnaireChoice,
5620
+ {
5621
+ value: TYPED,
5622
+ checked: false,
5623
+ onChange: onTypeInstead,
5624
+ className: row(false),
5625
+ children: /* @__PURE__ */ jsx(QuestionnaireChoiceTitle, { children: typeInsteadLabel ?? (options.length > 0 ? "Something else \u2014 let me type" : "Type your answer") })
5626
+ }
5627
+ ) : null
5628
+ ] }) }) }) : null
5629
+ ] });
5630
+ }
5492
5631
  var ContextBar = React25.forwardRef(
5493
5632
  ({ counters, hint, className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
5494
5633
  "div",
@@ -9245,7 +9384,9 @@ function useTour(options) {
9245
9384
  const lastIndex = Math.max(total - 1, 0);
9246
9385
  const clamped = Math.min(Math.max(current, 0), lastIndex);
9247
9386
  const at = React25.useRef(clamped);
9248
- at.current = clamped;
9387
+ React25.useLayoutEffect(() => {
9388
+ at.current = clamped;
9389
+ }, [clamped]);
9249
9390
  const move = React25.useCallback(
9250
9391
  (to) => {
9251
9392
  if (to === at.current) return;