@krosoft/react 0.0.8 → 0.0.10

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.
@@ -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 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -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 @@
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,8 +1,25 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
+ "scripts": {
7
+ "build": "tsc -p tsconfig.build.json",
8
+ "lint": "eslint .",
9
+ "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}'",
10
+ "type-check": "tsc --noEmit",
11
+ "test": "vitest run"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/krosoft-dev/krosoft-packages-react.git"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
6
23
  "exports": {
7
24
  "./helpers": {
8
25
  "import": "./dist/helpers/index.js",
@@ -13,22 +30,13 @@
13
30
  "types": "./dist/hooks/index.d.ts"
14
31
  }
15
32
  },
16
- "files": [
17
- "dist"
18
- ],
19
- "scripts": {
20
- "build": "tsc -p tsconfig.build.json",
21
- "lint": "eslint .",
22
- "type-check": "tsc --noEmit",
23
- "test": "vitest run"
33
+ "peerDependencies": {
34
+ "react": ">=18.0.0"
24
35
  },
25
36
  "dependencies": {
26
37
  "clsx": "^2.1.1",
27
38
  "tailwind-merge": "^2.6.1"
28
39
  },
29
- "peerDependencies": {
30
- "react": ">=18.0.0"
31
- },
32
40
  "devDependencies": {
33
41
  "@krosoft/tooling-eslint-react": ">=0.0.2",
34
42
  "@krosoft/tooling-prettier": ">=0.0.6",
@@ -39,12 +47,5 @@
39
47
  "typescript": "^5.9.3",
40
48
  "jsdom": "^26.1.0",
41
49
  "vitest": "^4.1.2"
42
- },
43
- "repository": {
44
- "type": "git",
45
- "url": "git+https://github.com/krosoft-dev/krosoft-packages-react.git"
46
- },
47
- "publishConfig": {
48
- "access": "public"
49
50
  }
50
51
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tailwind.helper.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind.helper.test.d.ts","sourceRoot":"","sources":["../../../tests/helpers/tailwind.helper.test.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { cn } from "../../src/helpers";
2
- import { describe, it, expect } from "vitest";
3
- describe("cn", () => {
4
- it("fusionne des classes simples", () => {
5
- expect(cn("foo", "bar")).toBe("foo bar");
6
- });
7
- it("résout les conflits tailwind", () => {
8
- expect(cn("p-4", "p-2")).toBe("p-2");
9
- });
10
- it("ignore les valeurs falsy", () => {
11
- expect(cn("foo", undefined, null, false, "bar")).toBe("foo bar");
12
- });
13
- it("gère les classes conditionnelles", () => {
14
- expect(cn("foo", { bar: true, baz: false })).toBe("foo bar");
15
- });
16
- });
17
- //# sourceMappingURL=tailwind.helper.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind.helper.test.js","sourceRoot":"","sources":["../../../tests/helpers/tailwind.helper.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE;IAClB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("vite").UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vitest.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAIG"}
@@ -1,7 +0,0 @@
1
- import { defineConfig } from "vitest/config";
2
- export default defineConfig({
3
- test: {
4
- environment: "jsdom",
5
- },
6
- });
7
- //# sourceMappingURL=vitest.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,WAAW,EAAE,OAAO;KACrB;CACF,CAAC,CAAC"}
File without changes
File without changes
File without changes
File without changes