@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/dist/index.cjs +27 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/types/css.d.ts +5 -0
- package/src/ui/chat/ChatHeader.tsx +3 -3
- package/dist/index.css +0 -2273
package/package.json
CHANGED
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";
|
|
@@ -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=
|
|
15
|
-
<div className="flex items-
|
|
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}</>}
|