@streamoid/chat-components 0.2.12 → 0.2.14
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.js +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -839,7 +839,7 @@ function DynamicForm(props) {
|
|
|
839
839
|
}
|
|
840
840
|
);
|
|
841
841
|
case "approval":
|
|
842
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex gap-2 justify-end", children: [
|
|
842
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap gap-2 justify-end", children: [
|
|
843
843
|
/* @__PURE__ */ jsxs2(
|
|
844
844
|
Button,
|
|
845
845
|
{
|
|
@@ -976,7 +976,7 @@ function DynamicForm(props) {
|
|
|
976
976
|
}
|
|
977
977
|
)
|
|
978
978
|
] }),
|
|
979
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex gap-2 justify-end", children: [
|
|
979
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap gap-2 justify-end", children: [
|
|
980
980
|
/* @__PURE__ */ jsxs2(
|
|
981
981
|
Button,
|
|
982
982
|
{
|
|
@@ -1067,7 +1067,7 @@ function DynamicForm(props) {
|
|
|
1067
1067
|
children: item.content
|
|
1068
1068
|
}
|
|
1069
1069
|
),
|
|
1070
|
-
/* @__PURE__ */ jsx10("div", { className: "flex items-center gap-0.5 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity", children: editingTodoId !== item.id && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
1070
|
+
/* @__PURE__ */ jsx10("div", { className: "flex items-center gap-0.5 flex-shrink-0 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity", children: editingTodoId !== item.id && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
1071
1071
|
/* @__PURE__ */ jsx10(
|
|
1072
1072
|
"button",
|
|
1073
1073
|
{
|
|
@@ -1146,9 +1146,10 @@ function DynamicForm(props) {
|
|
|
1146
1146
|
/* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center justify-center pt-5 pb-6", children: [
|
|
1147
1147
|
/* @__PURE__ */ jsx10(Upload, { className: "w-8 h-8 mb-2 text-muted-foreground group-hover:text-primary transition-colors" }),
|
|
1148
1148
|
/* @__PURE__ */ jsxs2("p", { className: "mb-1 text-sm text-muted-foreground", children: [
|
|
1149
|
-
/* @__PURE__ */ jsx10("span", { className: "font-semibold group-hover:text-foreground transition-colors", children: "
|
|
1149
|
+
/* @__PURE__ */ jsx10("span", { className: "font-semibold group-hover:text-foreground transition-colors sm:hidden", children: "Tap to upload" }),
|
|
1150
|
+
/* @__PURE__ */ jsx10("span", { className: "font-semibold group-hover:text-foreground transition-colors hidden sm:inline", children: "Click to upload" }),
|
|
1150
1151
|
" ",
|
|
1151
|
-
"or drag and drop"
|
|
1152
|
+
/* @__PURE__ */ jsx10("span", { className: "hidden sm:inline", children: "or drag and drop" })
|
|
1152
1153
|
] }),
|
|
1153
1154
|
field.accept && /* @__PURE__ */ jsxs2("p", { className: "text-xs text-muted-foreground/70", children: [
|
|
1154
1155
|
"Accepted: ",
|
|
@@ -1241,8 +1242,8 @@ function DynamicForm(props) {
|
|
|
1241
1242
|
}
|
|
1242
1243
|
) });
|
|
1243
1244
|
}
|
|
1244
|
-
return /* @__PURE__ */ jsxs2(Card, { className: "w-[
|
|
1245
|
-
/* @__PURE__ */ jsxs2(CardHeader, { className: "pb-2 pt-4 px-5 flex-shrink-0", children: [
|
|
1245
|
+
return /* @__PURE__ */ jsxs2(Card, { className: "w-full lg:w-[75%] max-w-2xl max-h-[60vh] lg:max-h-[45vh] flex flex-col border border-border bg-card shadow-sm animate-in fade-in duration-300", children: [
|
|
1246
|
+
/* @__PURE__ */ jsxs2(CardHeader, { className: "pb-2 pt-4 px-3 sm:px-5 flex-shrink-0", children: [
|
|
1246
1247
|
/* @__PURE__ */ jsx10(CardTitle, { className: "text-sm font-semibold tracking-tight", children: title }),
|
|
1247
1248
|
description && /* @__PURE__ */ jsx10(CardDescription, { className: "text-xs text-muted-foreground leading-snug", children: description })
|
|
1248
1249
|
] }),
|
|
@@ -1252,7 +1253,7 @@ function DynamicForm(props) {
|
|
|
1252
1253
|
"div",
|
|
1253
1254
|
{
|
|
1254
1255
|
ref: scrollRef,
|
|
1255
|
-
className: "px-5 overflow-y-auto flex-1 min-h-0 dynamic-form-scroll",
|
|
1256
|
+
className: "px-3 sm:px-5 overflow-y-auto flex-1 min-h-0 dynamic-form-scroll",
|
|
1256
1257
|
children: /* @__PURE__ */ jsxs2("div", { className: "space-y-3 pb-2", children: [
|
|
1257
1258
|
fields.map((field) => {
|
|
1258
1259
|
const statusText = getFieldStatusText(field);
|
|
@@ -1279,7 +1280,7 @@ function DynamicForm(props) {
|
|
|
1279
1280
|
}
|
|
1280
1281
|
),
|
|
1281
1282
|
/* @__PURE__ */ jsx10("div", { className: `scroll-fade-bottom ${!canScrollDown ? "fade-hidden" : ""}` }),
|
|
1282
|
-
!(fields.length === 1 && fields[0]?.type === "media_approval") && /* @__PURE__ */ jsxs2("div", { className: "flex justify-end gap-2 px-5 py-2 flex-shrink-0", children: [
|
|
1283
|
+
!(fields.length === 1 && fields[0]?.type === "media_approval") && /* @__PURE__ */ jsxs2("div", { className: "flex justify-end gap-2 px-3 sm:px-5 py-2 flex-shrink-0", children: [
|
|
1283
1284
|
cancelText && /* @__PURE__ */ jsx10(
|
|
1284
1285
|
Button,
|
|
1285
1286
|
{
|
package/package.json
CHANGED