@invana/ui 0.0.33 → 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.cjs +176 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -9
- package/dist/index.d.ts +53 -9
- package/dist/index.js +176 -35
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -785,9 +785,9 @@ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
785
785
|
/**
|
|
786
786
|
* No box, and nothing wasted on its outside: only the rules between rows
|
|
787
787
|
* are drawn, and the first and last columns sit flush with the text around
|
|
788
|
-
* the table. For a table
|
|
789
|
-
*
|
|
790
|
-
*
|
|
788
|
+
* the table. For a table set into running text — an assistant's answer.
|
|
789
|
+
* A table inside a card or a panel keeps its cell padding and drops only
|
|
790
|
+
* the box, with `bordered={false}`.
|
|
791
791
|
*/
|
|
792
792
|
seamless?: boolean;
|
|
793
793
|
/**
|
|
@@ -1536,8 +1536,10 @@ interface CastTableProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "c
|
|
|
1536
1536
|
*/
|
|
1537
1537
|
resolved?: CastResolution[];
|
|
1538
1538
|
readOnly?: boolean;
|
|
1539
|
-
/** Passed to the table: no box, outer columns flush — for a cast
|
|
1539
|
+
/** Passed to the table: no box, outer columns flush — for a cast set into running text. */
|
|
1540
1540
|
seamless?: boolean;
|
|
1541
|
+
/** Passed to the table: off drops the box and keeps the cell padding — for a cast inside a panel. */
|
|
1542
|
+
bordered?: boolean;
|
|
1541
1543
|
}
|
|
1542
1544
|
/**
|
|
1543
1545
|
* `role → resolves to → why this one`, four fixed rows.
|
|
@@ -2055,6 +2057,8 @@ interface ClarifyOption {
|
|
|
2055
2057
|
value: string;
|
|
2056
2058
|
/** The choice, in the user's terms — `Theme velocity, 5 sessions`. */
|
|
2057
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;
|
|
2058
2062
|
/**
|
|
2059
2063
|
* Where the choice comes from in the model — `Theme.velocity_5d · 14 themes`.
|
|
2060
2064
|
*
|
|
@@ -2069,9 +2073,26 @@ interface ClarifyOption {
|
|
|
2069
2073
|
* settled and read-only. Open: a surface may name its own.
|
|
2070
2074
|
*/
|
|
2071
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
|
+
}
|
|
2072
2086
|
interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
2073
2087
|
/** @default "pending" */
|
|
2074
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";
|
|
2075
2096
|
/** The header's word while the ask waits — `confirm` for a yes-or-no. @default "question" */
|
|
2076
2097
|
kind?: React$1.ReactNode;
|
|
2077
2098
|
/** Which step asked — `understand`. */
|
|
@@ -2085,7 +2106,29 @@ interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
2085
2106
|
/** The choices, as one Questionnaire item. Ignored when `children` is given. */
|
|
2086
2107
|
options?: ClarifyOption[];
|
|
2087
2108
|
value?: string;
|
|
2088
|
-
|
|
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;
|
|
2089
2132
|
/**
|
|
2090
2133
|
* Any other control, in place of `options` — a `Questionnaire` of several
|
|
2091
2134
|
* steps, a form, a summary of the answers.
|
|
@@ -3082,9 +3125,10 @@ interface NavItemConfig {
|
|
|
3082
3125
|
*/
|
|
3083
3126
|
menuTrigger?: "item" | "caret";
|
|
3084
3127
|
/**
|
|
3085
|
-
* Draws an inline `×`
|
|
3086
|
-
* managed. The body still selects; only the `×` closes.
|
|
3087
|
-
*
|
|
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.
|
|
3088
3132
|
*/
|
|
3089
3133
|
onClose?: () => void;
|
|
3090
3134
|
/**
|
|
@@ -5623,4 +5667,4 @@ interface UseOverflowItemsResult {
|
|
|
5623
5667
|
*/
|
|
5624
5668
|
declare function useOverflowItems({ count, enabled, pinnedIndex, reserve, }: UseOverflowItemsOptions): UseOverflowItemsResult;
|
|
5625
5669
|
|
|
5626
|
-
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
|
@@ -785,9 +785,9 @@ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
785
785
|
/**
|
|
786
786
|
* No box, and nothing wasted on its outside: only the rules between rows
|
|
787
787
|
* are drawn, and the first and last columns sit flush with the text around
|
|
788
|
-
* the table. For a table
|
|
789
|
-
*
|
|
790
|
-
*
|
|
788
|
+
* the table. For a table set into running text — an assistant's answer.
|
|
789
|
+
* A table inside a card or a panel keeps its cell padding and drops only
|
|
790
|
+
* the box, with `bordered={false}`.
|
|
791
791
|
*/
|
|
792
792
|
seamless?: boolean;
|
|
793
793
|
/**
|
|
@@ -1536,8 +1536,10 @@ interface CastTableProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "c
|
|
|
1536
1536
|
*/
|
|
1537
1537
|
resolved?: CastResolution[];
|
|
1538
1538
|
readOnly?: boolean;
|
|
1539
|
-
/** Passed to the table: no box, outer columns flush — for a cast
|
|
1539
|
+
/** Passed to the table: no box, outer columns flush — for a cast set into running text. */
|
|
1540
1540
|
seamless?: boolean;
|
|
1541
|
+
/** Passed to the table: off drops the box and keeps the cell padding — for a cast inside a panel. */
|
|
1542
|
+
bordered?: boolean;
|
|
1541
1543
|
}
|
|
1542
1544
|
/**
|
|
1543
1545
|
* `role → resolves to → why this one`, four fixed rows.
|
|
@@ -2055,6 +2057,8 @@ interface ClarifyOption {
|
|
|
2055
2057
|
value: string;
|
|
2056
2058
|
/** The choice, in the user's terms — `Theme velocity, 5 sessions`. */
|
|
2057
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;
|
|
2058
2062
|
/**
|
|
2059
2063
|
* Where the choice comes from in the model — `Theme.velocity_5d · 14 themes`.
|
|
2060
2064
|
*
|
|
@@ -2069,9 +2073,26 @@ interface ClarifyOption {
|
|
|
2069
2073
|
* settled and read-only. Open: a surface may name its own.
|
|
2070
2074
|
*/
|
|
2071
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
|
+
}
|
|
2072
2086
|
interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
2073
2087
|
/** @default "pending" */
|
|
2074
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";
|
|
2075
2096
|
/** The header's word while the ask waits — `confirm` for a yes-or-no. @default "question" */
|
|
2076
2097
|
kind?: React$1.ReactNode;
|
|
2077
2098
|
/** Which step asked — `understand`. */
|
|
@@ -2085,7 +2106,29 @@ interface ClarifyCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
2085
2106
|
/** The choices, as one Questionnaire item. Ignored when `children` is given. */
|
|
2086
2107
|
options?: ClarifyOption[];
|
|
2087
2108
|
value?: string;
|
|
2088
|
-
|
|
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;
|
|
2089
2132
|
/**
|
|
2090
2133
|
* Any other control, in place of `options` — a `Questionnaire` of several
|
|
2091
2134
|
* steps, a form, a summary of the answers.
|
|
@@ -3082,9 +3125,10 @@ interface NavItemConfig {
|
|
|
3082
3125
|
*/
|
|
3083
3126
|
menuTrigger?: "item" | "caret";
|
|
3084
3127
|
/**
|
|
3085
|
-
* Draws an inline `×`
|
|
3086
|
-
* managed. The body still selects; only the `×` closes.
|
|
3087
|
-
*
|
|
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.
|
|
3088
3132
|
*/
|
|
3089
3133
|
onClose?: () => void;
|
|
3090
3134
|
/**
|
|
@@ -5623,4 +5667,4 @@ interface UseOverflowItemsResult {
|
|
|
5623
5667
|
*/
|
|
5624
5668
|
declare function useOverflowItems({ count, enabled, pinnedIndex, reserve, }: UseOverflowItemsOptions): UseOverflowItemsResult;
|
|
5625
5669
|
|
|
5626
|
-
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
|
@@ -4123,10 +4123,10 @@ var PURPOSE = {
|
|
|
4123
4123
|
embed: "text in, vector out"
|
|
4124
4124
|
};
|
|
4125
4125
|
var CastTable = React25.forwardRef(
|
|
4126
|
-
({ cast = {}, resolved, readOnly, seamless, className, ...props }, ref) => {
|
|
4126
|
+
({ cast = {}, resolved, readOnly, seamless, bordered, className, ...props }, ref) => {
|
|
4127
4127
|
const byRole = new Map((resolved ?? []).map((r) => [r.role, r]));
|
|
4128
4128
|
return /* @__PURE__ */ jsxs("div", { ref, className: cn("min-w-0", className), ...props, children: [
|
|
4129
|
-
/* @__PURE__ */ jsxs(Table, { density: "compact", seamless, children: [
|
|
4129
|
+
/* @__PURE__ */ jsxs(Table, { density: "compact", seamless, bordered, children: [
|
|
4130
4130
|
/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
4131
4131
|
/* @__PURE__ */ jsx(TableHead, { className: "w-[5.5rem]", children: "role" }),
|
|
4132
4132
|
/* @__PURE__ */ jsx(TableHead, { children: "resolves to" }),
|
|
@@ -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
|
|
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
|
-
"
|
|
4591
|
+
"button",
|
|
4592
4592
|
{
|
|
4593
|
-
|
|
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 =
|
|
4610
|
+
const control = close ? /* @__PURE__ */ jsxs(
|
|
4612
4611
|
"div",
|
|
4613
4612
|
{
|
|
4614
|
-
ref:
|
|
4615
|
-
...tabProps,
|
|
4616
|
-
...a11y,
|
|
4613
|
+
ref: itemRef(index),
|
|
4617
4614
|
style: item.style,
|
|
4618
4615
|
onClick: () => select(item),
|
|
4619
|
-
className:
|
|
4620
|
-
|
|
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
|
|
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__ */
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
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
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
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
|
-
|
|
5482
|
-
))
|
|
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
|
-
|
|
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;
|