@elia-assistant/chatui 1.0.8 → 1.0.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.
@@ -112,18 +112,18 @@ var n = [
112
112
  {
113
113
  id: "cherry",
114
114
  label: "Cherry",
115
- scheme: "dark",
115
+ scheme: "light",
116
116
  vars: {
117
- bgBase: "#120608",
118
- bgSurface: "#1e0c10",
119
- bgSurface2: "#2a1016",
120
- bgBorder: "#3d1520",
121
- accent: "#ef4444",
117
+ bgBase: "#ffffff",
118
+ bgSurface: "#fff1f2",
119
+ bgSurface2: "#ffe4e6",
120
+ bgBorder: "#fecdd3",
121
+ accent: "#e11d48",
122
122
  accentFg: "#ffffff",
123
- fgPrimary: "#ffe4e6",
124
- fgSecondary: "#fca5a5",
125
- fgMuted: "#f87171",
126
- userBubble: "#dc2626",
123
+ fgPrimary: "#1a0005",
124
+ fgSecondary: "#4c0519",
125
+ fgMuted: "#9f1239",
126
+ userBubble: "#e11d48",
127
127
  userBubbleFg: "#ffffff"
128
128
  }
129
129
  },
@@ -251,4 +251,4 @@ var a = {
251
251
  //#endregion
252
252
  export { i as n, n as r, o as t };
253
253
 
254
- //# sourceMappingURL=settingsStore-uYZsUiVr.js.map
254
+ //# sourceMappingURL=settingsStore-Br8PCCHq.js.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as e, i as t, n, r } from "./chunks/i18n-Bk--20yp.js";
2
- import { n as i, r as a, t as o } from "./chunks/settingsStore-uYZsUiVr.js";
2
+ import { n as i, r as a, t as o } from "./chunks/settingsStore-Br8PCCHq.js";
3
3
  import { useChatStore as s } from "./chat-store.js";
4
4
  import { Children as c, Fragment as l, cloneElement as u, createContext as d, createElement as f, isValidElement as p, useCallback as m, useContext as h, useEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
5
5
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -8400,12 +8400,26 @@ function wu({ message: e }) {
8400
8400
  return /* @__PURE__ */ C("div", {
8401
8401
  className: `flex gap-3 ${t ? "flex-row-reverse" : "flex-row"} items-end mb-4`,
8402
8402
  children: [t ? /* @__PURE__ */ S("div", {
8403
- className: "w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold",
8403
+ className: "w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center",
8404
8404
  style: {
8405
8405
  background: "var(--t-user-bubble)",
8406
8406
  color: "var(--t-user-fg)"
8407
8407
  },
8408
- children: "U"
8408
+ children: /* @__PURE__ */ C("svg", {
8409
+ width: "14",
8410
+ height: "14",
8411
+ viewBox: "0 0 24 24",
8412
+ fill: "none",
8413
+ stroke: "currentColor",
8414
+ strokeWidth: "2",
8415
+ strokeLinecap: "round",
8416
+ strokeLinejoin: "round",
8417
+ children: [/* @__PURE__ */ S("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), /* @__PURE__ */ S("circle", {
8418
+ cx: "12",
8419
+ cy: "7",
8420
+ r: "4"
8421
+ })]
8422
+ })
8409
8423
  }) : /* @__PURE__ */ S(Su, {}), /* @__PURE__ */ C("div", {
8410
8424
  className: `flex flex-col gap-1 max-w-[88%] ${t ? "items-end" : "items-start"}`,
8411
8425
  children: [/* @__PURE__ */ S("div", {
@@ -8527,7 +8541,7 @@ function Ou({ onSend: e, disabled: t, placeholder: n, allowFileUploads: r }) {
8527
8541
  placeholder: n ?? "Type a message… (Enter to send, Shift+Enter for newline)",
8528
8542
  disabled: t,
8529
8543
  rows: 1,
8530
- className: "flex-1 rounded-xl px-4 py-2.5 text-sm leading-relaxed focus:outline-none disabled:opacity-50 min-h-[42px]",
8544
+ className: "flex-1 rounded-xl px-4 py-2.5 text-base md:text-sm leading-relaxed focus:outline-none disabled:opacity-50 min-h-[42px]",
8531
8545
  style: {
8532
8546
  background: "var(--t-bg-surface)",
8533
8547
  color: "var(--t-fg-primary)",
@@ -9075,35 +9089,35 @@ function Gu() {
9075
9089
  var Ku = 500 * 1024, qu = [
9076
9090
  {
9077
9091
  code: "en",
9078
- label: "EN English"
9092
+ label: "EN - English"
9079
9093
  },
9080
9094
  {
9081
9095
  code: "sk",
9082
- label: "SK Slovak"
9096
+ label: "SK - Slovak"
9083
9097
  },
9084
9098
  {
9085
9099
  code: "de",
9086
- label: "DE German"
9100
+ label: "DE - German"
9087
9101
  },
9088
9102
  {
9089
9103
  code: "cs",
9090
- label: "CS Czech"
9104
+ label: "CS - Czech"
9091
9105
  },
9092
9106
  {
9093
9107
  code: "pl",
9094
- label: "PL Polish"
9108
+ label: "PL - Polish"
9095
9109
  },
9096
9110
  {
9097
9111
  code: "hu",
9098
- label: "HU Hungarian"
9112
+ label: "HU - Hungarian"
9099
9113
  },
9100
9114
  {
9101
9115
  code: "fr",
9102
- label: "FR French"
9116
+ label: "FR - French"
9103
9117
  },
9104
9118
  {
9105
9119
  code: "es",
9106
- label: "ES Spanish"
9120
+ label: "ES - Spanish"
9107
9121
  }
9108
9122
  ];
9109
9123
  function Ju({ onClose: e }) {
@@ -9814,7 +9828,7 @@ useSettingsStore.getState().setLanguage(${JSON.stringify(i)})
9814
9828
  })] })
9815
9829
  })
9816
9830
  ]
9817
- }), /* @__PURE__ */ S("style", { children: "\n .input-field {\n width: 100%;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 13px;\n background: var(--t-bg-surface2);\n color: var(--t-fg-primary);\n border: 1px solid var(--t-bg-border);\n outline: none;\n transition: border-color 0.15s;\n }\n .input-field:focus { border-color: var(--t-accent); }\n " })]
9831
+ }), /* @__PURE__ */ S("style", { children: "\n .input-field {\n width: 100%;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 13px;\n background: var(--t-bg-surface2);\n color: var(--t-fg-primary);\n border: 1px solid var(--t-bg-border);\n outline: none;\n transition: border-color 0.15s;\n }\n .input-field:focus { border-color: var(--t-accent); }\n @media (max-width: 767px) {\n .input-field { font-size: 1rem; }\n }\n " })]
9818
9832
  });
9819
9833
  }
9820
9834
  function $({ label: e, required: t, error: n, children: r }) {
@@ -10099,11 +10113,10 @@ function $u() {
10099
10113
  }), !_ && r && /* @__PURE__ */ S(Ju, { onClose: () => i(!1) })] });
10100
10114
  }
10101
10115
  function ed({ open: e, iconSrc: t, onClick: n }) {
10102
- let r = !!t && !e;
10103
10116
  return /* @__PURE__ */ S("button", {
10104
10117
  className: "fixed bottom-4 right-4 z-50 w-14 h-14 rounded-full shadow-lg flex items-center justify-center transition-transform hover:scale-105 overflow-hidden",
10105
10118
  style: {
10106
- background: r ? "transparent" : "var(--t-accent)",
10119
+ background: "var(--t-accent)",
10107
10120
  color: "var(--t-accent-fg)"
10108
10121
  },
10109
10122
  onClick: n,
@@ -10116,7 +10129,7 @@ function ed({ open: e, iconSrc: t, onClick: n }) {
10116
10129
  stroke: "currentColor",
10117
10130
  strokeWidth: "2.5",
10118
10131
  children: /* @__PURE__ */ S("path", { d: "M18 6 6 18M6 6l12 12" })
10119
- }) : r ? /* @__PURE__ */ S("img", {
10132
+ }) : t && !e ? /* @__PURE__ */ S("img", {
10120
10133
  src: t,
10121
10134
  alt: "",
10122
10135
  className: "w-full h-full object-cover"
package/dist/store.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./chunks/settingsStore-uYZsUiVr.js";
1
+ import { t as e } from "./chunks/settingsStore-Br8PCCHq.js";
2
2
  export { e as useSettingsStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elia-assistant/chatui",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",