@swisper.ai/web-chat-ui 0.2.8 → 0.2.9
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/components/chat-artifact/chat-artifact.d.ts.map +1 -1
- package/dist/components/chat-artifact/chat-artifact.stories.d.ts +2 -0
- package/dist/components/chat-artifact/chat-artifact.stories.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +6 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat-artifact/chat-artifact.stories.tsx +45 -21
- package/src/components/chat-artifact/chat-artifact.tsx +15 -9
package/dist/index.es.js
CHANGED
|
@@ -2489,7 +2489,7 @@ function $a({ asChild: e = !1, className: t, children: n, ...r }) {
|
|
|
2489
2489
|
role: "group",
|
|
2490
2490
|
"data-slot": "chat-artifact",
|
|
2491
2491
|
"data-testid": "chat-artifact",
|
|
2492
|
-
className: M("cursor-pointer", "max-w-
|
|
2492
|
+
className: M("cursor-pointer", "w-full", "md:max-w-[min(400px,calc(var(--chat-window-width,100%)-var(--spacing-message)))]", "flex flex-row items-center gap-8", "p-8 rounded-promptbox-attachment", "bg-promptbox-attachment-background", "hover:bg-promptbox-attachment-background-hover", "active:bg-promptbox-attachment-background-pressed", "outline-none", "focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-focus-visible", t),
|
|
2493
2493
|
...r,
|
|
2494
2494
|
children: n
|
|
2495
2495
|
});
|
|
@@ -2498,8 +2498,11 @@ function eo({ className: e, children: t }) {
|
|
|
2498
2498
|
return /* @__PURE__ */ H("span", {
|
|
2499
2499
|
"data-slot": "chat-artifact-icon",
|
|
2500
2500
|
"data-testid": "chat-artifact-icon",
|
|
2501
|
-
className: M("
|
|
2502
|
-
children:
|
|
2501
|
+
className: M("shrink-0", "inline-flex items-center justify-center", "size-32"),
|
|
2502
|
+
children: /* @__PURE__ */ H("span", {
|
|
2503
|
+
className: M("size-full", "inline-flex items-center justify-center", "rounded-[8px] p-8 [&_svg]:size-16", "bg-secondary-hover", "text-icon-fill-inverse", e),
|
|
2504
|
+
children: t
|
|
2505
|
+
})
|
|
2503
2506
|
});
|
|
2504
2507
|
}
|
|
2505
2508
|
function to({ className: e, children: t }) {
|