vizmatic 0.3.0 → 0.3.2
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 +21 -3
- package/dist/cli.js +17 -8
- package/dist/index.cjs +53 -37
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +52 -37
- package/examples/README.md +4 -0
- package/examples/aurora-incident.tsx +108 -0
- package/examples/daybreak-launch.tsx +81 -0
- package/examples/model-garden.tsx +97 -0
- package/examples/vizmatic-bare.d.ts +7 -0
- package/examples/weekend-field-notes.tsx +81 -0
- package/package.json +3 -3
|
@@ -8,9 +8,14 @@ declare global {
|
|
|
8
8
|
var width: number
|
|
9
9
|
var height: number
|
|
10
10
|
var preset: import('../src').ThemePreset
|
|
11
|
+
var background: string
|
|
11
12
|
|
|
12
13
|
const c: import('../src').ThemeColors
|
|
14
|
+
const BadgePill: AutoTheme<typeof import('../src').BadgePill>
|
|
13
15
|
const BarChart: AutoTheme<typeof import('../src').BarChart>
|
|
16
|
+
const Board: AutoTheme<typeof import('../src').Board>
|
|
17
|
+
const CanvasItem: AutoTheme<typeof import('../src').CanvasItem>
|
|
18
|
+
const Card: AutoTheme<typeof import('../src').Card>
|
|
14
19
|
const CalloutCard: AutoTheme<typeof import('../src').CalloutCard>
|
|
15
20
|
const Column: AutoTheme<typeof import('../src').Column>
|
|
16
21
|
const DataTable: AutoTheme<typeof import('../src').DataTable>
|
|
@@ -28,6 +33,8 @@ declare global {
|
|
|
28
33
|
const MetricCard: AutoTheme<typeof import('../src').MetricCard>
|
|
29
34
|
const MiniBarChart: AutoTheme<typeof import('../src').MiniBarChart>
|
|
30
35
|
const Panel: AutoTheme<typeof import('../src').Panel>
|
|
36
|
+
const ParetoBarChart: AutoTheme<typeof import('../src').ParetoBarChart>
|
|
37
|
+
const ParetoChart: AutoTheme<typeof import('../src').ParetoChart>
|
|
31
38
|
const QuadrantChart: AutoTheme<typeof import('../src').QuadrantChart>
|
|
32
39
|
const Row: AutoTheme<typeof import('../src').Row>
|
|
33
40
|
const ScatterPlot: AutoTheme<typeof import('../src').ScatterPlot>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
width = 1120;
|
|
2
|
+
height = 800;
|
|
3
|
+
background = "theme";
|
|
4
|
+
|
|
5
|
+
// themeColors = {"primary":"#9a3412","primaryLight":"#fdba74","primaryDark":"#7c2d12","secondary":"#0f766e","secondaryLight":"#5eead4","secondaryDark":"#134e4a","positive":"#4d7c0f","positiveLight":"#a3e635","positiveDark":"#365314","warning":"#b45309","warningLight":"#fbbf24","warningDark":"#78350f","info":"#0369a1","infoLight":"#38bdf8","infoDark":"#075985","accent":"#be185d","accentLight":"#f9a8d4"}
|
|
6
|
+
|
|
7
|
+
<Board width={1120} height={800}>
|
|
8
|
+
<CanvasItem x={40} y={28} width={226} height={28}>
|
|
9
|
+
<BadgePill text="THE WEEKENDER / FIELD NOTE 04" tone="warm" filled />
|
|
10
|
+
</CanvasItem>
|
|
11
|
+
<CanvasItem x={40} y={66} width={720} height={46}>
|
|
12
|
+
<TextLabel text="Take the long way through Bellweather." variant="title" fontSize={30} color={c.textPrimary} />
|
|
13
|
+
</CanvasItem>
|
|
14
|
+
<CanvasItem x={40} y={116} width={720} height={36}>
|
|
15
|
+
<TextLabel text="A fictional neighborhood walk · invented stops, scores, and timings" variant="body" fontSize={14} color={c.textSecondary} />
|
|
16
|
+
</CanvasItem>
|
|
17
|
+
<CanvasItem x={822} y={28} width={258} height={112}>
|
|
18
|
+
<MetricCard label="READER RATING" value="4.9 / 5" detail="42 min on foot" tone="green" width={258} minHeight={112} valueFontSize={28} align="left" />
|
|
19
|
+
</CanvasItem>
|
|
20
|
+
|
|
21
|
+
<CanvasItem x={40} y={178} width={694} height={320}>
|
|
22
|
+
<Card title="SAFFRON ROW · 1.8 MILES" subtitle="Four gentle stops from the tram to the old market" tone="warm" width={694} height={320} padding={16}>
|
|
23
|
+
<GraphDiagram
|
|
24
|
+
title="Fictional walking route through Saffron Row"
|
|
25
|
+
ariaLabel="Demo walking route from Juniper Cafe through Glasshouse Garden and Paper Moon Books to Old Market"
|
|
26
|
+
width={660}
|
|
27
|
+
height={225}
|
|
28
|
+
nodeWidth={126}
|
|
29
|
+
nodeHeight={76}
|
|
30
|
+
labelFontSize={13}
|
|
31
|
+
detailFontSize={12}
|
|
32
|
+
routing="orthogonal"
|
|
33
|
+
routingClearance={12}
|
|
34
|
+
nodes={[
|
|
35
|
+
{ id: 'cafe', label: 'Juniper', detail: 'tram stop', x: 0.12, y: 0.25, tone: 'warm', icon: 'globe' },
|
|
36
|
+
{ id: 'garden', label: 'Glasshouse', detail: 'shaded pause', x: 0.37, y: 0.70, tone: 'green', icon: 'bucket' },
|
|
37
|
+
{ id: 'books', label: 'Paper Moon', detail: 'quiet shelves', x: 0.63, y: 0.25, tone: 'purple', icon: 'file' },
|
|
38
|
+
{ id: 'market', label: 'Old Market', detail: 'citrus bun', x: 0.88, y: 0.70, tone: 'cyan', icon: 'check' },
|
|
39
|
+
]}
|
|
40
|
+
edges={[
|
|
41
|
+
{ from: 'cafe', to: 'garden', tone: 'warm' },
|
|
42
|
+
{ from: 'garden', to: 'books', tone: 'green' },
|
|
43
|
+
{ from: 'books', to: 'market', tone: 'cyan' },
|
|
44
|
+
]}
|
|
45
|
+
/>
|
|
46
|
+
</Card>
|
|
47
|
+
</CanvasItem>
|
|
48
|
+
|
|
49
|
+
<CanvasItem x={40} y={518} width={694} height={222}>
|
|
50
|
+
<BarChart
|
|
51
|
+
width={660}
|
|
52
|
+
height={158}
|
|
53
|
+
title="Suggested pause, in demo minutes"
|
|
54
|
+
format="integer"
|
|
55
|
+
data={[
|
|
56
|
+
{ label: 'Cafe', value: 18, color: 'warning' },
|
|
57
|
+
{ label: 'Garden', value: 26, color: 'positive' },
|
|
58
|
+
{ label: 'Books', value: 22, color: 'primary' },
|
|
59
|
+
{ label: 'Market', value: 14, color: 'info' },
|
|
60
|
+
]}
|
|
61
|
+
/>
|
|
62
|
+
</CanvasItem>
|
|
63
|
+
|
|
64
|
+
<CanvasItem x={762} y={178} width={318} height={88}>
|
|
65
|
+
<StepCard eyebrow="01 · 4.9 / 5" title="Juniper Café" subtitle="Cortado · sesame bun" tone="warm" align="left" width={318} minHeight={88} />
|
|
66
|
+
</CanvasItem>
|
|
67
|
+
<CanvasItem x={762} y={278} width={318} height={88}>
|
|
68
|
+
<StepCard eyebrow="02 · 4.8 / 5" title="Glasshouse Garden" subtitle="Fern shade · quiet benches" tone="green" align="left" width={318} minHeight={88} />
|
|
69
|
+
</CanvasItem>
|
|
70
|
+
<CanvasItem x={762} y={378} width={318} height={88}>
|
|
71
|
+
<StepCard eyebrow="03 · 4.7 / 5" title="Paper Moon Books" subtitle="Used books · window seat" tone="purple" align="left" width={318} minHeight={88} />
|
|
72
|
+
</CanvasItem>
|
|
73
|
+
<CanvasItem x={762} y={478} width={318} height={88}>
|
|
74
|
+
<StepCard eyebrow="04 · 4.6 / 5" title="Old Market Hall" subtitle="Citrus bun · flower stall" tone="cyan" align="left" width={318} minHeight={88} />
|
|
75
|
+
</CanvasItem>
|
|
76
|
+
<CanvasItem x={762} y={584} width={318} height={122}>
|
|
77
|
+
<Card title="Let the route breathe" subtitle="No reservations. No hurry. Every place in this guide is fictional demo content." tone="purple" width={318} height={122} padding={16}>
|
|
78
|
+
<TextLabel text="Start when the rain clears; stay as long as the coffee is warm." variant="tiny" color={c.textSecondary} />
|
|
79
|
+
</Card>
|
|
80
|
+
</CanvasItem>
|
|
81
|
+
</Board>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vizmatic",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Theme-aware visual primitives and a headless renderer for diagrams, figures, and presentation frames.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"site:serve": "node scripts/serve-docs.mjs docs 4173",
|
|
83
83
|
"sync:plugin-versions": "node scripts/sync-plugin-versions.mjs",
|
|
84
84
|
"security:audit": "pnpm audit --audit-level low",
|
|
85
|
-
"deps:check": "pnpm security:audit && pnpm assets:check && publint && tsx scripts/check-package.ts",
|
|
85
|
+
"deps:check": "pnpm security:audit && pnpm assets:check && publint && tsx scripts/check-package.ts && node scripts/check-consumer.mjs",
|
|
86
86
|
"verify": "pnpm lint && pnpm test && pnpm render:examples && pnpm check:examples && pnpm docs:check && pnpm deps:check",
|
|
87
87
|
"prepublishOnly": "pnpm verify"
|
|
88
88
|
},
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"gifenc": "^1.0.3",
|
|
93
93
|
"parse-css-color": "0.2.1",
|
|
94
94
|
"react": "^19.2.8",
|
|
95
|
-
"satori": "
|
|
95
|
+
"satori": "0.35.0",
|
|
96
96
|
"tsx": "^4.23.12"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|