@krosoft/react 0.0.1 → 0.0.3

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/README.md CHANGED
@@ -1 +1,5 @@
1
- # krosoft-packages-react
1
+ # krosoft-packages-react
2
+
3
+ [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/made-with-typescript.svg)](https://forthebadge.com)
4
+
5
+ Krosoft shared React package.
@@ -0,0 +1,2 @@
1
+ export * from "./tailwind.helper";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./tailwind.helper";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=tailwind.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/tailwind.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
@@ -0,0 +1,6 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ //# sourceMappingURL=tailwind.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.helper.js","sourceRoot":"","sources":["../../src/helpers/tailwind.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "exports": {
7
+ "./helpers": {
8
+ "import": "./dist/helpers/index.js",
9
+ "types": "./dist/helpers/index.d.ts"
10
+ },
7
11
  "./hooks": {
8
12
  "import": "./dist/hooks/index.js",
9
13
  "types": "./dist/hooks/index.d.ts"
@@ -18,6 +22,10 @@
18
22
  "type-check": "tsc --noEmit",
19
23
  "test": "vitest run"
20
24
  },
25
+ "dependencies": {
26
+ "clsx": "^2.1.1",
27
+ "tailwind-merge": "^2.6.1"
28
+ },
21
29
  "peerDependencies": {
22
30
  "react": ">=18.0.0"
23
31
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/hooks/index.ts"],"names":[],"mappings":""}
File without changes
File without changes