@nonoun/native-chat 0.1.1 → 0.1.2

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.
@@ -94,11 +94,17 @@ var r = class extends e {
94
94
  let r = document.createElement("n-body"), i = document.createElement("n-chat-content");
95
95
  r.appendChild(i);
96
96
  let a = document.createElement("n-footer");
97
- a.setAttribute("dividers", "");
98
- let o = document.createElement("n-chat-input"), s = document.createElement("n-textarea");
97
+ a.setAttribute("dividers", ""), a.setAttribute("padding", "none");
98
+ let o = document.createElement("n-chat-input");
99
+ o.setAttribute("variant", "plain");
100
+ let s = document.createElement("n-textarea");
99
101
  s.setAttribute("placeholder", "Ask anything"), s.setAttribute("autogrow", ""), s.setAttribute("rows", "3"), o.appendChild(s);
100
102
  let c = document.createElement("n-chat-input-actions"), l = document.createElement("n-button");
101
- l.setAttribute("variant", "primary"), l.setAttribute("intent", "accent"), l.textContent = "Send", c.appendChild(l), o.appendChild(c), a.appendChild(o), this.append(e, r, a);
103
+ l.setAttribute("variant", "ghost"), l.setAttribute("inline", ""), l.innerHTML = "<n-icon name=\"plus\"></n-icon>", c.appendChild(l);
104
+ let u = document.createElement("n-button");
105
+ u.setAttribute("variant", "ghost"), u.setAttribute("inline", ""), u.innerHTML = "<n-icon name=\"microphone\"></n-icon>", c.appendChild(u);
106
+ let d = document.createElement("n-button");
107
+ d.setAttribute("variant", "primary"), d.setAttribute("intent", "accent"), d.setAttribute("radius", "round"), d.setAttribute("inline", ""), d.setAttribute("disabled", ""), d.classList.add("submit-btn"), d.innerHTML = "<n-icon name=\"arrow-up\"></n-icon>", c.appendChild(d), o.appendChild(c), a.appendChild(o), this.append(e, r, a);
102
108
  }
103
109
  teardown() {
104
110
  this.innerHTML = "", super.teardown();
@@ -1 +1 @@
1
- {"version":3,"file":"chat-panel-element.d.ts","sourceRoot":"","sources":["../src/chat-panel-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAW,SAAQ,aAAa;IAC3C,KAAK,IAAI,IAAI;IAgDb,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"chat-panel-element.d.ts","sourceRoot":"","sources":["../src/chat-panel-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAW,SAAQ,aAAa;IAC3C,KAAK,IAAI,IAAI;IAoEb,QAAQ,IAAI,IAAI;CAIjB"}
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  /* ── n-chat-content ── */
58
- /* Message stream layout. Lives inside n-card-body which handles
58
+ /* Message stream layout. Lives inside n-body which handles
59
59
  scrolling, padding, and flex: 1. Content just manages message gap. */
60
60
 
61
61
  :where(n-chat-content) {
@@ -74,14 +74,19 @@
74
74
  single horizontal row. */
75
75
 
76
76
  :where(n-chat-input) {
77
+ --n-background: var(--n-control);
78
+ --n-border-color: var(--n-border-muted);
79
+
77
80
  display: flex;
81
+ flex: 1 1 0%;
78
82
  flex-direction: column;
79
83
  min-width: 0;
80
- background: var(--n-control);
81
- border: 1px solid var(--n-border-muted);
84
+ background: var(--n-background);
85
+ border: 1px solid var(--n-border-color);
82
86
  border-radius: var(--n-radius);
83
87
  }
84
88
 
89
+
85
90
  /* Compact: single row — textarea and actions side by side */
86
91
  :where(n-chat-input[compact]) {
87
92
  flex-direction: row;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./chat-panel-element-CYzB2qY7.js";
1
+ import { n as e, t } from "./chat-panel-element-CXPbtkyi.js";
2
2
  export { e as NChatInput, t as NChatPanel };
package/dist/register.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./chat-panel-element-CYzB2qY7.js";
1
+ import { n as e, t } from "./chat-panel-element-CXPbtkyi.js";
2
2
  import { NButton as n, NIcon as r, NTextarea as i, define as a, registerIcon as o } from "@nonoun/native-ui";
3
3
  a("n-chat-input", e), a("native-chat-panel", t), a("n-textarea", i), a("n-button", n), a("n-icon", r), o("chat-dots", "<svg viewBox=\"0 0 256 256\" fill=\"currentColor\"><path d=\"M116,128a12,12,0,1,1,12,12A12,12,0,0,1,116,128ZM84,140a12,12,0,1,0-12-12A12,12,0,0,0,84,140Zm88,0a12,12,0,1,0-12-12A12,12,0,0,0,172,140Zm60-76V192a16,16,0,0,1-16,16H83l-32.6,28.16-.09.07A15.89,15.89,0,0,1,40,240a16.13,16.13,0,0,1-6.8-1.52A15.85,15.85,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64ZM40,224h0ZM216,64H40V224l34.77-30A8,8,0,0,1,80,192H216Z\"/></svg>");
4
4
  export { e as NChatInput, t as NChatPanel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nonoun/native-chat",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Chat input and message layout components for @nonoun/native-ui",
5
5
  "license": "MIT",
6
6
  "type": "module",