@banbox/chat 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banbox/chat",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Banbox Chat UI components — reusable across all Banbox React/Next.js projects",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
package/src/index.ts CHANGED
@@ -4,6 +4,10 @@
4
4
  // Everything else is internal implementation detail.
5
5
  // ─────────────────────────────────────────────────────────────────────────────
6
6
 
7
+ // Auto-inject CSS — consumers get styles automatically on import (no manual CSS import needed)
8
+ import "./styles/index.css";
9
+
10
+
7
11
  // ── Main entry point ──────────────────────────────────────────────────────────
8
12
  export { default as ChatRoot } from "./chat/ChatRoot";
9
13
  export type { ChatRootProps } from "./chat/ChatRoot";
@@ -0,0 +1,5 @@
1
+ // Allow importing CSS files as side-effect modules in TypeScript
2
+ declare module "*.css" {
3
+ const content: string;
4
+ export default content;
5
+ }
@@ -10,9 +10,9 @@ type Props = {
10
10
 
11
11
  export default function ChatHeader({ left, right, below, className }: Props) {
12
12
  return (
13
- <div>
14
- <div className={`border-b border-[#e1e1e1] h-[64px] flex items-start justify-between px-4 pt-2.5${className ? ` ${className}` : ""}`}>
15
- <div className="flex items-start gap-3">{left}</div>
13
+ <div className={`border-b border-[#ededed] h-[64px]${className ? ` ${className}` : ""}`}>
14
+ <div className="flex items-center justify-between px-4 h-full">
15
+ <div className="flex items-center gap-3">{left}</div>
16
16
  {right}
17
17
  </div>
18
18
  {below && <>{below}</>}