whatsapp-ui-react 0.0.4 → 0.0.6

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,3 +1,4 @@
1
- /** Joins class names, filtering out falsy values. */
2
- export declare function cn(...inputs: (string | false | null | undefined)[]): string;
1
+ import { ClassValue } from 'clsx';
2
+ /** Merges Tailwind class names, resolving conflicts via `tailwind-merge`. */
3
+ export declare function cn(...inputs: ClassValue[]): string;
3
4
  //# sourceMappingURL=cn.d.ts.map
@@ -1 +1 @@
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
+ {"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-ui-react",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "React component library with a WhatsApp Web-inspired UI.",
5
5
  "keywords": [
6
6
  "react",
@@ -20,7 +20,9 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "type": "module",
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "**/*.css"
25
+ ],
24
26
  "main": "./dist/index.cjs",
25
27
  "module": "./dist/index.js",
26
28
  "types": "./dist/index.d.ts",
@@ -29,17 +31,19 @@
29
31
  "types": "./dist/index.d.ts",
30
32
  "import": "./dist/index.js",
31
33
  "require": "./dist/index.cjs"
32
- }
34
+ },
35
+ "./css/*": "./css/*"
33
36
  },
34
37
  "files": [
35
- "dist"
38
+ "dist",
39
+ "css"
36
40
  ],
37
41
  "engines": {
38
42
  "node": ">=18"
39
43
  },
40
44
  "scripts": {
41
45
  "dev": "vite --config vite.dev.config.ts",
42
- "build": "tsc --noEmit && vite build",
46
+ "build": "tsc --noEmit && vite build && node scripts/copy-css.js",
43
47
  "build:preview": "vite build --config vite.dev.config.ts",
44
48
  "typecheck": "tsc --noEmit",
45
49
  "lint": "eslint src",