@skeletonlabs/skeleton-react 1.0.0-next.2 → 1.0.0-next.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.
Files changed (41) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +9 -8
  2. package/dist/components/Accordion/Accordion.js +47 -68
  3. package/dist/components/Accordion/types.d.ts +24 -25
  4. package/dist/components/AppBar/AppBar.d.ts +2 -2
  5. package/dist/components/AppBar/AppBar.js +18 -20
  6. package/dist/components/AppBar/types.d.ts +1 -1
  7. package/dist/components/Avatar/Avatar.d.ts +2 -2
  8. package/dist/components/Avatar/Avatar.js +21 -7
  9. package/dist/components/Avatar/types.d.ts +10 -5
  10. package/dist/components/Navigation/Navigation.d.ts +2 -2
  11. package/dist/components/Navigation/Navigation.js +53 -30
  12. package/dist/components/Navigation/types.d.ts +6 -1
  13. package/dist/components/Progress/Progress.d.ts +2 -2
  14. package/dist/components/Progress/Progress.js +21 -14
  15. package/dist/components/Progress/types.d.ts +20 -8
  16. package/dist/components/ProgressRing/ProgressRing.d.ts +2 -2
  17. package/dist/components/ProgressRing/ProgressRing.js +22 -27
  18. package/dist/components/ProgressRing/types.d.ts +9 -13
  19. package/dist/components/Rating/Rating.d.ts +3 -3
  20. package/dist/components/Rating/Rating.js +50 -76
  21. package/dist/components/Rating/types.d.ts +35 -54
  22. package/dist/components/Segment/Segment.d.ts +6 -0
  23. package/dist/components/Segment/Segment.js +62 -0
  24. package/dist/components/Segment/types.d.ts +59 -0
  25. package/dist/components/Segment/types.js +2 -0
  26. package/dist/components/Switch/Switch.d.ts +2 -2
  27. package/dist/components/Switch/Switch.js +34 -27
  28. package/dist/components/Switch/types.d.ts +28 -25
  29. package/dist/components/Tabs/Tabs.d.ts +12 -7
  30. package/dist/components/Tabs/Tabs.js +65 -99
  31. package/dist/components/Tabs/types.d.ts +48 -81
  32. package/dist/components/Test/Test.js +1 -1
  33. package/dist/index.d.ts +11 -10
  34. package/dist/index.js +11 -10
  35. package/dist/internal/nodes.d.ts +3 -0
  36. package/dist/internal/nodes.js +4 -0
  37. package/dist/internal/noop.d.ts +1 -0
  38. package/dist/internal/noop.js +2 -0
  39. package/package.json +36 -35
  40. package/dist/utils/react-compose.d.ts +0 -4
  41. package/dist/utils/react-compose.js +0 -3
package/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-react",
3
- "version": "1.0.0-next.2",
3
+ "version": "1.0.0-next.4",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
7
7
  ".": {
8
8
  "types": "./dist/index.d.ts",
9
9
  "default": "./dist/index.js"
10
+ },
11
+ "./schemas": "./src/lib/schemas.ts"
12
+ },
13
+ "typesVersions": {
14
+ ">4.0": {
15
+ "index.d.ts": [
16
+ "./dist/index.d.ts"
17
+ ]
10
18
  }
11
19
  },
12
20
  "files": [
@@ -21,55 +29,48 @@
21
29
  "!./dist/schemas.d.ts"
22
30
  ],
23
31
  "dependencies": {
24
- "react": "^18.2.0",
25
- "react-dom": "^18.2.0"
32
+ "react": "^18.3.1",
33
+ "react-dom": "^18.3.1"
26
34
  },
27
35
  "devDependencies": {
28
36
  "@tailwindcss/forms": "^0.5.7",
29
- "@testing-library/jest-dom": "^6.4.2",
30
- "@testing-library/react": "^14.2.2",
37
+ "@testing-library/jest-dom": "^6.4.7",
38
+ "@testing-library/react": "^14.3.1",
31
39
  "@testing-library/user-event": "^14.5.2",
32
- "@types/react": "^18.2.74",
33
- "@types/react-dom": "^18.2.24",
34
- "@typescript-eslint/eslint-plugin": "^6.21.0",
35
- "@typescript-eslint/parser": "^6.21.0",
36
- "@vitejs/plugin-react": "^4.2.1",
40
+ "@types/react": "^18.3.3",
41
+ "@types/react-dom": "^18.3.0",
42
+ "@vitejs/plugin-react": "^4.3.1",
43
+ "@zag-js/accordion": "^0.65.0",
44
+ "@zag-js/avatar": "^0.65.0",
45
+ "@zag-js/progress": "^0.65.0",
46
+ "@zag-js/radio-group": "^0.65.0",
47
+ "@zag-js/rating-group": "^0.65.0",
48
+ "@zag-js/react": "^0.65.0",
49
+ "@zag-js/switch": "^0.65.0",
50
+ "@zag-js/tabs": "^0.65.0",
37
51
  "autoprefixer": "^10.4.19",
38
- "eslint": "^8.57.0",
39
- "eslint-plugin-react-hooks": "^4.6.0",
40
- "eslint-plugin-react-refresh": "^0.4.6",
41
- "jsdom": "^24.0.0",
52
+ "jsdom": "^24.1.1",
42
53
  "lucide-react": "^0.341.0",
43
- "postcss": "^8.4.38",
44
- "react-router-dom": "^6.22.3",
45
- "tailwindcss": "^3.4.3",
46
- "typescript": "^5.4.4",
54
+ "postcss": "^8.4.39",
55
+ "react-router-dom": "^6.25.1",
56
+ "tailwindcss": "^3.4.6",
57
+ "typescript": "^5.5.3",
47
58
  "typescript-json-schema": "^0.63.0",
48
- "vite": "^5.2.8",
59
+ "vite": "^5.3.4",
49
60
  "vite-plugin-remix-router": "^2.0.0",
50
- "vitest": "^1.4.0",
51
- "@skeletonlabs/skeleton": "3.0.0-next.1",
52
- "vite-plugin-tw-plugin-watcher": "0.0.0"
53
- },
54
- "peerDependencies": {
55
- "framer-motion": "^11.0.24"
61
+ "vitest": "^1.6.0",
62
+ "@skeletonlabs/skeleton": "3.0.0-next.3",
63
+ "vite-plugin-tw-plugin-watcher": "0.0.1-next.0"
56
64
  },
57
65
  "scripts": {
58
66
  "dev": "vite",
59
67
  "build": "vite build",
68
+ "check": "pnpm package",
60
69
  "package": "tsc --project tsconfig.package.json",
61
70
  "package:watch": "tsc --project tsconfig.package.json --watch --preserveWatchOutput",
62
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
63
71
  "preview": "vite preview",
64
- "test": "vitest run",
65
- "test:watch": "vitest",
72
+ "test": "pnpm run \"/test:/\"",
73
+ "test:unit": "vitest",
66
74
  "schema": "node ./scripts/generator.js"
67
- },
68
- "typesVersions": {
69
- ">4.0": {
70
- "index.d.ts": [
71
- "./dist/index.d.ts"
72
- ]
73
- }
74
75
  }
75
76
  }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function reactCompose<T extends React.FC<any>, U extends Record<string, unknown>>(root: T, components: {
3
- [k in keyof U]: React.FC<U[k]>;
4
- }): T & { [k in keyof U]: import("react").FC<U[k]>; };
@@ -1,3 +0,0 @@
1
- export function reactCompose(root, components) {
2
- return Object.assign(root, components);
3
- }