@nuvui/charts 0.0.0-stage → 0.1.1

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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -2
  3. package/dist/components/chart/chart-container.cjs +62 -0
  4. package/dist/components/chart/chart-container.d.cts +44 -0
  5. package/dist/components/chart/chart-container.d.ts +44 -0
  6. package/dist/components/chart/chart-container.js +62 -0
  7. package/dist/components/chart/chart-legend.cjs +55 -0
  8. package/dist/components/chart/chart-legend.d.cts +29 -0
  9. package/dist/components/chart/chart-legend.d.ts +29 -0
  10. package/dist/components/chart/chart-legend.js +54 -0
  11. package/dist/components/chart/chart-table.cjs +42 -0
  12. package/dist/components/chart/chart-table.d.cts +41 -0
  13. package/dist/components/chart/chart-table.d.ts +41 -0
  14. package/dist/components/chart/chart-table.js +42 -0
  15. package/dist/components/chart/chart-tooltip.cjs +99 -0
  16. package/dist/components/chart/chart-tooltip.d.cts +41 -0
  17. package/dist/components/chart/chart-tooltip.d.ts +41 -0
  18. package/dist/components/chart/chart-tooltip.js +97 -0
  19. package/dist/components/chart/config.cjs +81 -0
  20. package/dist/components/chart/config.d.cts +45 -0
  21. package/dist/components/chart/config.d.ts +45 -0
  22. package/dist/components/chart/config.js +75 -0
  23. package/dist/components/chart/context.cjs +20 -0
  24. package/dist/components/chart/context.d.cts +6 -0
  25. package/dist/components/chart/context.d.ts +6 -0
  26. package/dist/components/chart/context.js +18 -0
  27. package/dist/components/chart/index.cjs +15 -0
  28. package/dist/components/chart/index.d.cts +8 -0
  29. package/dist/components/chart/index.d.ts +8 -0
  30. package/dist/components/chart/index.js +6 -0
  31. package/dist/components/chart/patterns.cjs +81 -0
  32. package/dist/components/chart/patterns.js +81 -0
  33. package/dist/components/chart/swatch.cjs +34 -0
  34. package/dist/components/chart/swatch.d.cts +7 -0
  35. package/dist/components/chart/swatch.d.ts +7 -0
  36. package/dist/components/chart/swatch.js +34 -0
  37. package/dist/css/chart.css +199 -0
  38. package/dist/index.cjs +15 -0
  39. package/dist/index.d.cts +9 -0
  40. package/dist/index.d.ts +9 -0
  41. package/dist/index.js +6 -0
  42. package/dist/styles.css +199 -0
  43. package/dist/utils/cx.cjs +6 -0
  44. package/dist/utils/cx.js +6 -0
  45. package/package.json +96 -3
@@ -0,0 +1,6 @@
1
+ //#region src/utils/cx.ts
2
+ function cx(...classes) {
3
+ return classes.filter(Boolean).join(" ");
4
+ }
5
+ //#endregion
6
+ exports.cx = cx;
@@ -0,0 +1,6 @@
1
+ //#region src/utils/cx.ts
2
+ function cx(...classes) {
3
+ return classes.filter(Boolean).join(" ");
4
+ }
5
+ //#endregion
6
+ export { cx };
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@nuvui/charts",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Charts for @nuvui/react, built on Recharts.",
5
+ "license": "MIT",
6
+ "author": "Nuvraxis",
7
+ "homepage": "https://nuvui.nuvraxis.com",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/Nuvraxis/nuvui.git",
11
+ "directory": "packages/charts"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/Nuvraxis/nuvui/issues"
15
+ },
16
+ "type": "module",
17
+ "engines": {
18
+ "node": ">=18"
19
+ },
20
+ "sideEffects": [
21
+ "**/*.css"
22
+ ],
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.cts",
29
+ "exports": {
30
+ ".": {
31
+ "import": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/index.d.cts",
37
+ "default": "./dist/index.cjs"
38
+ }
39
+ },
40
+ "./chart": {
41
+ "import": {
42
+ "types": "./dist/components/chart/index.d.ts",
43
+ "default": "./dist/components/chart/index.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/components/chart/index.d.cts",
47
+ "default": "./dist/components/chart/index.cjs"
48
+ }
49
+ },
50
+ "./styles.css": "./dist/styles.css",
51
+ "./css/*.css": "./dist/css/*.css",
52
+ "./package.json": "./package.json"
53
+ },
54
+ "peerDependencies": {
55
+ "@nuvui/react": "^0.1.1",
56
+ "react": "^18.2.0 || ^19.0.0",
57
+ "react-dom": "^18.2.0 || ^19.0.0",
58
+ "recharts": "^3.10.1"
59
+ },
60
+ "devDependencies": {
61
+ "@arethetypeswrong/cli": "^0.18.5",
62
+ "@nuvui/react": "0.1.1",
63
+ "@nuvui/tooling": "0.0.0",
64
+ "@nuvui/typescript-config": "0.0.0",
65
+ "@size-limit/preset-small-lib": "14.1.0",
66
+ "@types/node": "^24.0.0",
67
+ "@types/react": "^19.3.0",
68
+ "@types/react-dom": "^19.3.0",
69
+ "@vitest/browser-playwright": "^5.0.3",
70
+ "axe-core": "^4.13.0",
71
+ "playwright": "1.63.0",
72
+ "publint": "^0.3.25",
73
+ "react": "^19.3.0",
74
+ "react-dom": "^19.3.0",
75
+ "react-is": "^19.3.0",
76
+ "recharts": "^3.10.1",
77
+ "sass-embedded": "^1.105.1",
78
+ "size-limit": "14.1.0",
79
+ "stylelint": "^17.16.0",
80
+ "tsdown": "0.23.0",
81
+ "typescript": "^7.0.2",
82
+ "vitest": "^5.0.3",
83
+ "vitest-browser-react": "^2.3.0"
84
+ },
85
+ "publishConfig": {
86
+ "access": "public",
87
+ "provenance": true
88
+ },
89
+ "scripts": {
90
+ "build": "tsdown && node scripts/check-dist.mjs",
91
+ "dev": "tsdown --watch src",
92
+ "lint": "stylelint \"src/**/*.scss\"",
93
+ "typecheck": "tsc --noEmit",
94
+ "test": "vitest run",
95
+ "test:watch": "vitest",
96
+ "check:package": "publint && pnpm pack --out node_modules/.cache/attw/package.tgz && attw node_modules/.cache/attw/package.tgz",
97
+ "size": "size-limit"
98
+ }
6
99
  }