@langchain/macaw-components 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/catalog.json +743 -686
  2. package/dist/components/ChatRichContent/ChatRichContent.d.ts +4 -0
  3. package/dist/components/ChatRichContent/ChatRichContent.js +315 -0
  4. package/dist/components/ChatRichContent/ChatRichContent.js.map +1 -0
  5. package/dist/components/ChatRichContent/ChatRichContent.types.d.ts +101 -0
  6. package/dist/components/ChatRichContent/ChatRichContent.types.js +0 -0
  7. package/dist/components/ChatRichContent/ChatRichContentChoices.d.ts +2 -0
  8. package/dist/components/ChatRichContent/ChatRichContentChoices.js +121 -0
  9. package/dist/components/ChatRichContent/ChatRichContentChoices.js.map +1 -0
  10. package/dist/components/ChatRichContent/ChatRichContentCollapsible.d.ts +10 -0
  11. package/dist/components/ChatRichContent/ChatRichContentCollapsible.js +23 -0
  12. package/dist/components/ChatRichContent/ChatRichContentCollapsible.js.map +1 -0
  13. package/dist/components/ChatRichContent/ChatRichContentQuestionNav.d.ts +7 -0
  14. package/dist/components/ChatRichContent/ChatRichContentQuestionNav.js +53 -0
  15. package/dist/components/ChatRichContent/ChatRichContentQuestionNav.js.map +1 -0
  16. package/dist/components/ChatRichContent/ChatRichContentStatus.d.ts +11 -0
  17. package/dist/components/ChatRichContent/ChatRichContentStatus.js +31 -0
  18. package/dist/components/ChatRichContent/ChatRichContentStatus.js.map +1 -0
  19. package/dist/components/ChatRichContent/index.d.ts +3 -0
  20. package/dist/components/ChatRichContent/index.js +3 -0
  21. package/dist/components/index.d.ts +2 -0
  22. package/dist/components/index.js +7 -5
  23. package/dist/index.js +7 -5
  24. package/dist/utilities.css +1 -1
  25. package/docs/DESIGN.md +24 -0
  26. package/package.json +6 -2
@@ -0,0 +1,23 @@
1
+ import { cn } from "../../utils/cn.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region packages/components/src/components/ChatRichContent/ChatRichContentCollapsible.tsx
4
+ /** Animates height between 0 and auto; hidden content is inert. */
5
+ function ChatRichContentCollapsible({ id, open, disabled = false, className, children }) {
6
+ if (disabled) return children;
7
+ return /* @__PURE__ */ jsx("div", {
8
+ id,
9
+ inert: !open,
10
+ className: cn("grid transition-[grid-template-rows,opacity] duration-normal ease-out motion-reduce:transition-none", open ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"),
11
+ children: /* @__PURE__ */ jsx("div", {
12
+ className: "min-h-0 overflow-hidden",
13
+ children: /* @__PURE__ */ jsx("div", {
14
+ className: cn("flex min-w-0 flex-col gap-space-4", className),
15
+ children
16
+ })
17
+ })
18
+ });
19
+ }
20
+ //#endregion
21
+ export { ChatRichContentCollapsible };
22
+
23
+ //# sourceMappingURL=ChatRichContentCollapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatRichContentCollapsible.js","names":[],"sources":["../../../src/components/ChatRichContent/ChatRichContentCollapsible.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cn } from '../../utils/cn';\n\n/** Animates height between 0 and auto; hidden content is inert. */\nexport function ChatRichContentCollapsible({\n id,\n open,\n disabled = false,\n className,\n children,\n}: {\n id?: string;\n open: boolean;\n /** Renders children directly in the parent's layout. */\n disabled?: boolean;\n className?: string;\n children: ReactNode;\n}) {\n if (disabled) return children;\n return (\n <div\n id={id}\n inert={!open}\n className={cn(\n 'grid transition-[grid-template-rows,opacity] duration-normal ease-out motion-reduce:transition-none',\n open ? 'grid-rows-[1fr] opacity-100' : 'grid-rows-[0fr] opacity-0'\n )}\n >\n <div className=\"min-h-0 overflow-hidden\">\n <div className={cn('flex min-w-0 flex-col gap-space-4', className)}>\n {children}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAKA,SAAgB,2BAA2B,EACzC,IACA,MACA,WAAW,OACX,WACA,YAQC;CACD,IAAI,UAAU,OAAO;CACrB,OACE,oBAAC,OAAD;EACM;EACJ,OAAO,CAAC;EACR,WAAW,GACT,uGACA,OAAO,gCAAgC,2BACzC;EAEA,UAAA,oBAAC,OAAD;GAAK,WAAU;GACb,UAAA,oBAAC,OAAD;IAAK,WAAW,GAAG,qCAAqC,SAAS;IAC9D;GACE,CAAA;EACF,CAAA;CACF,CAAA;AAET"}
@@ -0,0 +1,7 @@
1
+ export declare function ChatRichContentQuestionNav({ title, current, total, disabled, onChange, }: {
2
+ title: string;
3
+ current: number;
4
+ total: number;
5
+ disabled: boolean;
6
+ onChange: (current: number) => void;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,53 @@
1
+ import { Text } from "../Text/Text.js";
2
+ import { IconButton } from "../IconButton/IconButton.js";
3
+ import { CaretLeftIcon } from "@phosphor-icons/react/dist/ssr/CaretLeft";
4
+ import { CaretRightIcon } from "@phosphor-icons/react/dist/ssr/CaretRight";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region packages/components/src/components/ChatRichContent/ChatRichContentQuestionNav.tsx
7
+ function ChatRichContentQuestionNav({ title, current, total, disabled, onChange }) {
8
+ return /* @__PURE__ */ jsxs("nav", {
9
+ "aria-label": `Questions: ${title}`,
10
+ className: "flex shrink-0 items-center gap-space-1",
11
+ children: [
12
+ /* @__PURE__ */ jsx(IconButton, {
13
+ type: "button",
14
+ icon: CaretLeftIcon,
15
+ iconWeight: "regular",
16
+ size: "xxs",
17
+ color: "secondary",
18
+ variant: "plain",
19
+ label: "Previous question",
20
+ disabled: disabled || current <= 1,
21
+ onClick: () => onChange(current - 1)
22
+ }),
23
+ /* @__PURE__ */ jsxs(Text, {
24
+ as: "span",
25
+ variant: "xs",
26
+ color: "tertiary",
27
+ "aria-live": "polite",
28
+ "aria-atomic": "true",
29
+ className: "whitespace-nowrap tabular-nums",
30
+ children: [
31
+ current,
32
+ " of ",
33
+ total
34
+ ]
35
+ }),
36
+ /* @__PURE__ */ jsx(IconButton, {
37
+ type: "button",
38
+ icon: CaretRightIcon,
39
+ iconWeight: "regular",
40
+ size: "xxs",
41
+ color: "secondary",
42
+ variant: "plain",
43
+ label: "Next question",
44
+ disabled: disabled || current >= total,
45
+ onClick: () => onChange(current + 1)
46
+ })
47
+ ]
48
+ });
49
+ }
50
+ //#endregion
51
+ export { ChatRichContentQuestionNav };
52
+
53
+ //# sourceMappingURL=ChatRichContentQuestionNav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatRichContentQuestionNav.js","names":[],"sources":["../../../src/components/ChatRichContent/ChatRichContentQuestionNav.tsx"],"sourcesContent":["import { CaretLeftIcon } from '@phosphor-icons/react/dist/ssr/CaretLeft';\nimport { CaretRightIcon } from '@phosphor-icons/react/dist/ssr/CaretRight';\n\nimport { IconButton } from '../IconButton';\nimport { Text } from '../Text';\n\nexport function ChatRichContentQuestionNav({\n title,\n current,\n total,\n disabled,\n onChange,\n}: {\n title: string;\n current: number;\n total: number;\n disabled: boolean;\n onChange: (current: number) => void;\n}) {\n return (\n <nav\n aria-label={`Questions: ${title}`}\n className=\"flex shrink-0 items-center gap-space-1\"\n >\n <IconButton\n type=\"button\"\n icon={CaretLeftIcon}\n iconWeight=\"regular\"\n size=\"xxs\"\n color=\"secondary\"\n variant=\"plain\"\n label=\"Previous question\"\n disabled={disabled || current <= 1}\n onClick={() => onChange(current - 1)}\n />\n <Text\n as=\"span\"\n variant=\"xs\"\n color=\"tertiary\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n className=\"whitespace-nowrap tabular-nums\"\n >\n {current} of {total}\n </Text>\n <IconButton\n type=\"button\"\n icon={CaretRightIcon}\n iconWeight=\"regular\"\n size=\"xxs\"\n color=\"secondary\"\n variant=\"plain\"\n label=\"Next question\"\n disabled={disabled || current >= total}\n onClick={() => onChange(current + 1)}\n />\n </nav>\n );\n}\n"],"mappings":";;;;;;AAMA,SAAgB,2BAA2B,EACzC,OACA,SACA,OACA,UACA,YAOC;CACD,OACE,qBAAC,OAAD;EACE,cAAY,cAAc;EAC1B,WAAU;EAFZ,UAAA;GAIE,oBAAC,YAAD;IACE,MAAK;IACL,MAAM;IACN,YAAW;IACX,MAAK;IACL,OAAM;IACN,SAAQ;IACR,OAAM;IACN,UAAU,YAAY,WAAW;IACjC,eAAe,SAAS,UAAU,CAAC;GACpC,CAAA;GACD,qBAAC,MAAD;IACE,IAAG;IACH,SAAQ;IACR,OAAM;IACN,aAAU;IACV,eAAY;IACZ,WAAU;IANZ,UAAA;KAQG;KAAQ;KAAK;IACV;;GACN,oBAAC,YAAD;IACE,MAAK;IACL,MAAM;IACN,YAAW;IACX,MAAK;IACL,OAAM;IACN,SAAQ;IACR,OAAM;IACN,UAAU,YAAY,WAAW;IACjC,eAAe,SAAS,UAAU,CAAC;GACpC,CAAA;EACE;;AAET"}
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ChatRichContentState } from './ChatRichContent.types.js';
3
+ export declare function ChatRichContentStatus({ id, live, compact, state, isError, children, }: {
4
+ id: string;
5
+ /** Only one copy is announced and referenced when the status renders twice. */
6
+ live: boolean;
7
+ compact: boolean;
8
+ state: ChatRichContentState;
9
+ isError: boolean;
10
+ children: ReactNode;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { cn } from "../../utils/cn.js";
2
+ import { Text } from "../Text/Text.js";
3
+ import { Icon } from "../Icon/Icon.js";
4
+ import { CheckIcon } from "@phosphor-icons/react/dist/ssr/Check";
5
+ import { XIcon } from "@phosphor-icons/react/dist/ssr/X";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ //#region packages/components/src/components/ChatRichContent/ChatRichContentStatus.tsx
8
+ function ChatRichContentStatus({ id, live, compact, state, isError, children }) {
9
+ const succeeded = state === "submitted" || state === "approved";
10
+ const icon = succeeded ? CheckIcon : state === "rejected" ? XIcon : void 0;
11
+ return /* @__PURE__ */ jsxs(Text, {
12
+ id: live ? id : void 0,
13
+ role: live ? isError ? "alert" : "status" : void 0,
14
+ variant: compact ? "xs" : "sm",
15
+ className: cn("flex min-w-0 items-center gap-space-1 text-tertiary", compact ? "max-w-[50%]" : "flex-1", !compact && (state === "approved" || state === "rejected") && "justify-end", isError && "text-error-primary"),
16
+ children: [icon && /* @__PURE__ */ jsx(Icon, {
17
+ icon,
18
+ "aria-hidden": true,
19
+ size: compact ? "sm" : "md",
20
+ weight: "regular",
21
+ className: cn("shrink-0", succeeded && "text-success-primary")
22
+ }), /* @__PURE__ */ jsx("span", {
23
+ className: cn("min-w-0", compact && "truncate"),
24
+ children
25
+ })]
26
+ });
27
+ }
28
+ //#endregion
29
+ export { ChatRichContentStatus };
30
+
31
+ //# sourceMappingURL=ChatRichContentStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatRichContentStatus.js","names":[],"sources":["../../../src/components/ChatRichContent/ChatRichContentStatus.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { CheckIcon } from '@phosphor-icons/react/dist/ssr/Check';\nimport { XIcon } from '@phosphor-icons/react/dist/ssr/X';\n\nimport { cn } from '../../utils/cn';\nimport { Icon } from '../Icon';\nimport { Text } from '../Text';\nimport type { ChatRichContentState } from './ChatRichContent.types';\n\nexport function ChatRichContentStatus({\n id,\n live,\n compact,\n state,\n isError,\n children,\n}: {\n id: string;\n /** Only one copy is announced and referenced when the status renders twice. */\n live: boolean;\n compact: boolean;\n state: ChatRichContentState;\n isError: boolean;\n children: ReactNode;\n}) {\n const succeeded = state === 'submitted' || state === 'approved';\n const icon = succeeded ? CheckIcon : state === 'rejected' ? XIcon : undefined;\n return (\n <Text\n id={live ? id : undefined}\n role={live ? (isError ? 'alert' : 'status') : undefined}\n variant={compact ? 'xs' : 'sm'}\n className={cn(\n 'flex min-w-0 items-center gap-space-1 text-tertiary',\n compact ? 'max-w-[50%]' : 'flex-1',\n !compact &&\n (state === 'approved' || state === 'rejected') &&\n 'justify-end',\n isError && 'text-error-primary'\n )}\n >\n {icon && (\n <Icon\n icon={icon}\n aria-hidden\n size={compact ? 'sm' : 'md'}\n weight=\"regular\"\n className={cn('shrink-0', succeeded && 'text-success-primary')}\n />\n )}\n <span className={cn('min-w-0', compact && 'truncate')}>{children}</span>\n </Text>\n );\n}\n"],"mappings":";;;;;;;AAUA,SAAgB,sBAAsB,EACpC,IACA,MACA,SACA,OACA,SACA,YASC;CACD,MAAM,YAAY,UAAU,eAAe,UAAU;CACrD,MAAM,OAAO,YAAY,YAAY,UAAU,aAAa,QAAQ,KAAA;CACpE,OACE,qBAAC,MAAD;EACE,IAAI,OAAO,KAAK,KAAA;EAChB,MAAM,OAAQ,UAAU,UAAU,WAAY,KAAA;EAC9C,SAAS,UAAU,OAAO;EAC1B,WAAW,GACT,uDACA,UAAU,gBAAgB,UAC1B,CAAC,YACE,UAAU,cAAc,UAAU,eACnC,eACF,WAAW,oBACb;EAXF,UAAA,CAaG,QACC,oBAAC,MAAD;GACQ;GACN,eAAA;GACA,MAAM,UAAU,OAAO;GACvB,QAAO;GACP,WAAW,GAAG,YAAY,aAAa,sBAAsB;EAC9D,CAAA,GAEH,oBAAC,QAAD;GAAM,WAAW,GAAG,WAAW,WAAW,UAAU;GAAI;EAAe,CAAA,CACnE;;AAEV"}
@@ -0,0 +1,3 @@
1
+ export { ChatRichContent, ChatRichContentFallback } from './ChatRichContent.js';
2
+ export { ChatRichContentChoices } from './ChatRichContentChoices.js';
3
+ export type { ChatRichContentChoicesProps, ChatRichContentChoicesValue, ChatRichContentFallbackProps, ChatRichContentProps, ChatRichContentState, ChatRichContentRenderer, ChatRichContentRendererContext, ChatRichContentNavigation, } from './ChatRichContent.types.js';
@@ -0,0 +1,3 @@
1
+ import { ChatRichContent, ChatRichContentFallback } from "./ChatRichContent.js";
2
+ import { ChatRichContentChoices } from "./ChatRichContentChoices.js";
3
+ export { ChatRichContent, ChatRichContentChoices, ChatRichContentFallback };
@@ -30,6 +30,8 @@ export { Banner } from './Banner/Banner.js';
30
30
  export type { BannerProps } from './Banner/Banner.js';
31
31
  export { ChatComposer, ChatComposerAction, ChatComposerAttachment, ChatComposerAttachmentMenu, ChatComposerAttachments, ChatComposerContext, ChatComposerInput, ChatComposerModelSelect, ChatComposerToolbar, } from './ChatComposer/index.js';
32
32
  export type { ChatComposerActionProps, ChatComposerAttachmentMenuProps, ChatComposerAttachmentProps, ChatComposerAttachmentsProps, ChatComposerContextValue, ChatComposerDrawerIntent, ChatComposerInputHandle, ChatComposerInputProps, ChatComposerModelSelectProps, ChatComposerProps, ChatComposerToolbarProps, } from './ChatComposer/index.js';
33
+ export { ChatRichContent, ChatRichContentChoices, ChatRichContentFallback, } from './ChatRichContent/index.js';
34
+ export type { ChatRichContentChoicesProps, ChatRichContentChoicesValue, ChatRichContentFallbackProps, ChatRichContentNavigation, ChatRichContentProps, ChatRichContentRenderer, ChatRichContentRendererContext, ChatRichContentState, } from './ChatRichContent/index.js';
33
35
  export { ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatTurnDivider, } from './ChatMessage/index.js';
34
36
  export type { ChatMessageAction, ChatMessageActionCapabilities, ChatMessageActionsProps, ChatMessageBodyProps, ChatMessageContentBlock, ChatMessageHeaderProps, ChatMessageModel, ChatMessageProps, ChatMessageRole, ChatMessageStatus, ChatTurnDividerProps, } from './ChatMessage/index.js';
35
37
  export { Checkbox, getCheckedState } from './Checkbox/index.js';
@@ -25,25 +25,27 @@ import { ChatComposerInput } from "./ChatComposer/ChatComposerInput.js";
25
25
  import { ChatComposerModelSelect } from "./ChatComposer/ChatComposerModelSelect.js";
26
26
  import { Divider } from "./Divider/Divider.js";
27
27
  import { ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatTurnDivider } from "./ChatMessage/ChatMessage.js";
28
+ import { ChatRichContent, ChatRichContentFallback } from "./ChatRichContent/ChatRichContent.js";
28
29
  import { Checkbox } from "./Checkbox/Checkbox.js";
29
30
  import { getCheckedState } from "./Checkbox/getCheckedState.js";
31
+ import { Input } from "./Input/Input.js";
32
+ import { RadioButton } from "./RadioButton/RadioButton.js";
33
+ import { RadioGroup } from "./RadioGroup/RadioGroup.js";
34
+ import { RadioGroupItem } from "./RadioGroup/RadioGroupItem.js";
35
+ import { ChatRichContentChoices } from "./ChatRichContent/ChatRichContentChoices.js";
30
36
  import { t as ErrorState } from "../_chunks/ErrorState-BY6VBCRB.js";
31
37
  import { GroupedTabs } from "./GroupedTabs/GroupedTabs.js";
32
38
  import { HeatmapBlock } from "./HeatmapChart/HeatmapBlock.js";
33
39
  import { HeatmapChart } from "./HeatmapChart/HeatmapChart.js";
34
40
  import { ImagePreviewDialog } from "./ImagePreviewDialog/ImagePreviewDialog.js";
35
41
  import { ImagePreviewBlock } from "./ImagePreviewBlock/ImagePreviewBlock.js";
36
- import { Input } from "./Input/Input.js";
37
42
  import { Kbd, KbdGroup } from "./Kbd/Kbd.js";
38
43
  import { LinearProgress } from "./LinearProgress/LinearProgress.js";
39
44
  import { MetricChart } from "./MetricChart/MetricChart.js";
40
45
  import { formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime } from "./MetricChart/formatters.js";
41
46
  import { ProgressBar } from "./ProgressBar/ProgressBar.js";
42
- import { RadioButton } from "./RadioButton/RadioButton.js";
43
47
  import { RadioCard } from "./RadioCard/RadioCard.js";
44
- import { RadioGroup } from "./RadioGroup/RadioGroup.js";
45
- import { RadioGroupItem } from "./RadioGroup/RadioGroupItem.js";
46
48
  import { Slider } from "./Slider/Slider.js";
47
49
  import { StatusBadge } from "./StatusBadge/StatusBadge.js";
48
50
  import { Switch } from "./Switch/Switch.js";
49
- export { Attachment, AttachmentList, Avatar, Badge, Banner, Breadcrumb, BreadcrumbLink, BreadcrumbPage, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, ChatComposer, ChatComposerAction, ChatComposerAttachment, ChatComposerAttachmentMenu, ChatComposerAttachments, ChatComposerContext, ChatComposerInput, ChatComposerModelSelect, ChatComposerToolbar, ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatTurnDivider, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, ImagePreviewBlock, ImagePreviewDialog, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
51
+ export { Attachment, AttachmentList, Avatar, Badge, Banner, Breadcrumb, BreadcrumbLink, BreadcrumbPage, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, ChatComposer, ChatComposerAction, ChatComposerAttachment, ChatComposerAttachmentMenu, ChatComposerAttachments, ChatComposerContext, ChatComposerInput, ChatComposerModelSelect, ChatComposerToolbar, ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatRichContent, ChatRichContentChoices, ChatRichContentFallback, ChatTurnDivider, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, ImagePreviewBlock, ImagePreviewDialog, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
package/dist/index.js CHANGED
@@ -25,26 +25,28 @@ import { ChatComposerInput } from "./components/ChatComposer/ChatComposerInput.j
25
25
  import { ChatComposerModelSelect } from "./components/ChatComposer/ChatComposerModelSelect.js";
26
26
  import { Divider } from "./components/Divider/Divider.js";
27
27
  import { ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatTurnDivider } from "./components/ChatMessage/ChatMessage.js";
28
+ import { ChatRichContent, ChatRichContentFallback } from "./components/ChatRichContent/ChatRichContent.js";
28
29
  import { Checkbox } from "./components/Checkbox/Checkbox.js";
29
30
  import { getCheckedState } from "./components/Checkbox/getCheckedState.js";
31
+ import { Input } from "./components/Input/Input.js";
32
+ import { RadioButton } from "./components/RadioButton/RadioButton.js";
33
+ import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
34
+ import { RadioGroupItem } from "./components/RadioGroup/RadioGroupItem.js";
35
+ import { ChatRichContentChoices } from "./components/ChatRichContent/ChatRichContentChoices.js";
30
36
  import { t as ErrorState } from "./_chunks/ErrorState-BY6VBCRB.js";
31
37
  import { GroupedTabs } from "./components/GroupedTabs/GroupedTabs.js";
32
38
  import { HeatmapBlock } from "./components/HeatmapChart/HeatmapBlock.js";
33
39
  import { HeatmapChart } from "./components/HeatmapChart/HeatmapChart.js";
34
40
  import { ImagePreviewDialog } from "./components/ImagePreviewDialog/ImagePreviewDialog.js";
35
41
  import { ImagePreviewBlock } from "./components/ImagePreviewBlock/ImagePreviewBlock.js";
36
- import { Input } from "./components/Input/Input.js";
37
42
  import { Kbd, KbdGroup } from "./components/Kbd/Kbd.js";
38
43
  import { LinearProgress } from "./components/LinearProgress/LinearProgress.js";
39
44
  import { MetricChart } from "./components/MetricChart/MetricChart.js";
40
45
  import { formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime } from "./components/MetricChart/formatters.js";
41
46
  import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
42
- import { RadioButton } from "./components/RadioButton/RadioButton.js";
43
47
  import { RadioCard } from "./components/RadioCard/RadioCard.js";
44
- import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
45
- import { RadioGroupItem } from "./components/RadioGroup/RadioGroupItem.js";
46
48
  import { Slider } from "./components/Slider/Slider.js";
47
49
  import { StatusBadge } from "./components/StatusBadge/StatusBadge.js";
48
50
  import { Switch } from "./components/Switch/Switch.js";
49
51
  import "./components/index.js";
50
- export { Attachment, AttachmentList, Avatar, Badge, Banner, Breadcrumb, BreadcrumbLink, BreadcrumbPage, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, ChatComposer, ChatComposerAction, ChatComposerAttachment, ChatComposerAttachmentMenu, ChatComposerAttachments, ChatComposerContext, ChatComposerInput, ChatComposerModelSelect, ChatComposerToolbar, ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatTurnDivider, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, ImagePreviewBlock, ImagePreviewDialog, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
52
+ export { Attachment, AttachmentList, Avatar, Badge, Banner, Breadcrumb, BreadcrumbLink, BreadcrumbPage, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, ChatComposer, ChatComposerAction, ChatComposerAttachment, ChatComposerAttachmentMenu, ChatComposerAttachments, ChatComposerContext, ChatComposerInput, ChatComposerModelSelect, ChatComposerToolbar, ChatMessage, ChatMessageActions, ChatMessageBody, ChatMessageHeader, ChatRichContent, ChatRichContentChoices, ChatRichContentFallback, ChatTurnDivider, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, ImagePreviewBlock, ImagePreviewDialog, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };