whatsapp-ui-react 0.0.2 → 0.0.4

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.
@@ -1,4 +1,3 @@
1
- import { ClassValue } from 'clsx';
2
- /** Merges Tailwind class names, resolving conflicts via `tailwind-merge`. */
3
- export declare function cn(...inputs: ClassValue[]): string;
1
+ /** Joins class names, filtering out falsy values. */
2
+ export declare function cn(...inputs: (string | false | null | undefined)[]): string;
4
3
  //# sourceMappingURL=cn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,6EAA6E;AAC7E,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAE3E"}
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  /** A single message entry managed by {@link Chat}. */
3
3
  export interface GroupedMessage {
4
- /** Unique React key auto-generated by `<Chat>` when omitted. */
4
+ /** Unique React key - auto-generated by `<Chat>` when omitted. */
5
5
  id?: React.Key;
6
6
  /** Identifies the sender; `'me'` denotes the local user. */
7
7
  senderId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-ui-react",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "React component library with a WhatsApp Web-inspired UI.",
5
5
  "keywords": [
6
6
  "react",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/2hoch1/whatsapp-ui-react.git"
19
+ "url": "git+https://github.com/2hoch1/whatsapp-ui-react.git"
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "type": "module",
@@ -29,8 +29,7 @@
29
29
  "types": "./dist/index.d.ts",
30
30
  "import": "./dist/index.js",
31
31
  "require": "./dist/index.cjs"
32
- },
33
- "./styles": "./dist/tailwind.css"
32
+ }
34
33
  },
35
34
  "files": [
36
35
  "dist"
@@ -41,7 +40,6 @@
41
40
  "scripts": {
42
41
  "dev": "vite --config vite.dev.config.ts",
43
42
  "build": "tsc --noEmit && vite build",
44
- "postbuild": "node --input-type=module --eval \"import{copyFileSync}from'fs';copyFileSync('./src/tailwind.css','./dist/tailwind.css');\"",
45
43
  "build:preview": "vite build --config vite.dev.config.ts",
46
44
  "typecheck": "tsc --noEmit",
47
45
  "lint": "eslint src",
@@ -61,6 +59,7 @@
61
59
  "@commitlint/cli": "^19.0.0",
62
60
  "@commitlint/config-conventional": "^19.0.0",
63
61
  "@eslint/js": "^9.0.0",
62
+ "@tailwindcss/cli": "^4.2.1",
64
63
  "@tailwindcss/vite": "^4.2.1",
65
64
  "@testing-library/jest-dom": "^6.0.0",
66
65
  "@testing-library/react": "^16.0.0",
package/dist/tailwind.css DELETED
@@ -1,49 +0,0 @@
1
- @theme {
2
- /* ── Background colors ── */
3
- --color-wa-bg: #161717;
4
- --color-wa-header: #161717;
5
- --color-wa-bubble-out: #144d37;
6
- --color-wa-bubble-in: #202c33;
7
- --color-wa-input: #242626;
8
- --color-wa-avatar: #2a3942;
9
- --color-wa-divider: #182229;
10
-
11
- /* ── Text colors ── */
12
- --color-wa-text-primary: #e9edef;
13
- --color-wa-text-secondary: #8696a0;
14
- --color-wa-text-body: #d1d7db;
15
- --color-wa-icon: #aebac1;
16
-
17
- /* ── Accent colors ── */
18
- --color-wa-teal: #00a884;
19
- --color-wa-teal-hover: #06cf9c;
20
- --color-wa-send: #21c063;
21
- --color-wa-read: #53bdeb;
22
- --color-wa-waveform-out: #53bdeb;
23
- --color-wa-waveform-in: #8696a0;
24
- --color-wa-waveform-out-faint: rgba(83, 189, 235, 0.4);
25
- --color-wa-waveform-in-faint: rgba(134, 150, 160, 0.4);
26
-
27
- /* ── Border radii ── */
28
- --radius-wa-bubble: 0.525rem;
29
- --radius-wa-divider: 0.325rem;
30
- }
31
-
32
- /* ── Custom scrollbar ── */
33
- .scrollbar-wa {
34
- scrollbar-width: thin;
35
- scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
36
- }
37
- .scrollbar-wa::-webkit-scrollbar {
38
- width: 4px;
39
- }
40
- .scrollbar-wa::-webkit-scrollbar-track {
41
- background: transparent;
42
- }
43
- .scrollbar-wa::-webkit-scrollbar-thumb {
44
- background: rgba(255, 255, 255, 0.18);
45
- border-radius: 9999px;
46
- }
47
- .scrollbar-wa::-webkit-scrollbar-thumb:hover {
48
- background: rgba(255, 255, 255, 0.3);
49
- }