@meetreeve/ui 0.21.0 → 0.22.0

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/dist/tokens.css CHANGED
@@ -27,3 +27,42 @@
27
27
  --breakpoint-sm: 640px;
28
28
  --breakpoint-md: 768px;
29
29
  }
30
+
31
+ /*
32
+ * Chart tokens (@meetreeve/ui/charts, DEV-17042). Every chart colour reads one
33
+ * of these; components contain no hex. In a base layer so a host's own
34
+ * (unlayered) :root / .dark values win — set them to re-skin every chart in
35
+ * the brand's colours. Defaults are the Reeve palette.
36
+ */
37
+ @layer base {
38
+ :root {
39
+ --chart-1: #7c3aed;
40
+ --chart-2: #14b8a6;
41
+ --chart-3: #f59e0b;
42
+ --chart-4: #f43f5e;
43
+ --chart-5: #06b6d4;
44
+ --chart-6: #a78bfa;
45
+ --chart-7: #2dd4bf;
46
+ --chart-8: #fbbf24;
47
+ --chart-positive: #059669;
48
+ --chart-negative: #e11d48;
49
+ --chart-grid: var(--border);
50
+ --chart-muted: var(--muted-foreground);
51
+ }
52
+ .dark {
53
+ --chart-1: #8b5cf6;
54
+ --chart-2: #2dd4bf;
55
+ --chart-3: #fbbf24;
56
+ --chart-4: #fb7185;
57
+ --chart-5: #22d3ee;
58
+ --chart-6: #c4b5fd;
59
+ --chart-7: #5eead4;
60
+ --chart-8: #fde68a;
61
+ --chart-positive: #34d399;
62
+ --chart-negative: #fb7185;
63
+ /* Re-declared so they resolve against the dark --border / --muted-foreground
64
+ when .dark sits below :root. */
65
+ --chart-grid: var(--border);
66
+ --chart-muted: var(--muted-foreground);
67
+ }
68
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meetreeve/ui",
3
- "version": "0.21.0",
4
- "description": "Shared brand-adaptive UI primitives for MindFortress frontends — min-size tokens, a favicon→logo→monogram BrandGlyph, a responsive header that keeps the search bar usable on mobile, AppSidebar's viewport-driven auto-collapse ladder, and the StageRail flow-of-cards primitives, the tenant SiteFooter, and the LockedValue/LockedBlock/UnlockCta paywall primitives.",
3
+ "version": "0.22.0",
4
+ "description": "Shared brand-adaptive UI primitives for MindFortress frontends — min-size tokens, a favicon→logo→monogram BrandGlyph, a responsive header that keeps the search bar usable on mobile, AppSidebar's viewport-driven auto-collapse ladder, the StageRail flow-of-cards primitives, the tenant SiteFooter, the LockedValue/LockedBlock/UnlockCta paywall primitives, and the @meetreeve/ui/charts dashboard kit (token-driven charts, KpiCard, ChartCard, DashboardGrid).",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -32,10 +32,16 @@
32
32
  "import": "./dist/stage-rail/index.mjs",
33
33
  "require": "./dist/stage-rail/index.js"
34
34
  },
35
+ "./charts": {
36
+ "types": "./dist/charts/index.d.ts",
37
+ "import": "./dist/charts/index.mjs",
38
+ "require": "./dist/charts/index.js"
39
+ },
35
40
  "./tokens.css": "./dist/tokens.css"
36
41
  },
37
42
  "files": [
38
- "dist"
43
+ "dist",
44
+ "THIRD_PARTY_NOTICES.md"
39
45
  ],
40
46
  "sideEffects": [
41
47
  "**/*.css"
@@ -60,8 +66,14 @@
60
66
  "next": ">=14",
61
67
  "react": ">=18",
62
68
  "react-dom": ">=18",
69
+ "recharts": "^3.7.0",
63
70
  "zod": ">=3.24.0"
64
71
  },
72
+ "peerDependenciesMeta": {
73
+ "recharts": {
74
+ "optional": true
75
+ }
76
+ },
65
77
  "devDependencies": {
66
78
  "@testing-library/dom": "^10.4.1",
67
79
  "@testing-library/react": "^16.3.2",
@@ -77,6 +89,7 @@
77
89
  "next": "16.1.6",
78
90
  "react": "19.2.3",
79
91
  "react-dom": "19.2.3",
92
+ "recharts": "^3.7.0",
80
93
  "tailwind-merge": "^3.6.0",
81
94
  "tsup": "^8.0.0",
82
95
  "typescript": "5.9.3",
@@ -90,7 +103,8 @@
90
103
  "brand",
91
104
  "header",
92
105
  "meetreeve",
93
- "design-tokens"
106
+ "design-tokens",
107
+ "charts"
94
108
  ],
95
109
  "repository": {
96
110
  "type": "git",