@hyvnt/hyvui 0.2.0 → 0.3.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/README.md +264 -253
- package/dist/components/ambient/CornerBrackets.svelte +83 -87
- package/dist/components/ambient/DataStream.svelte +111 -94
- package/dist/components/ambient/GlyphMark.svelte +69 -69
- package/dist/components/ambient/GridOverlay.svelte +26 -28
- package/dist/components/ambient/ParallaxLayer.svelte +37 -41
- package/dist/components/ambient/ScanBand.svelte +95 -91
- package/dist/components/ambient/SignalRing.svelte +100 -100
- package/dist/components/ambient/ThreadLine.svelte +71 -78
- package/dist/components/ambient/Vignette.svelte +24 -26
- package/dist/components/depth/DepthLayer.svelte +22 -27
- package/dist/components/depth/DepthStage.svelte +63 -62
- package/dist/components/depth/FloatCard.svelte +113 -104
- package/dist/components/depth/HorizonGrid.svelte +216 -160
- package/dist/components/depth/Plinth.svelte +52 -57
- package/dist/components/display/Avatar.svelte +64 -69
- package/dist/components/display/Badge.svelte +59 -63
- package/dist/components/display/Blockquote.svelte +31 -34
- package/dist/components/display/CodeBlock.svelte +71 -76
- package/dist/components/display/MetricCard.svelte +77 -83
- package/dist/components/display/Table.svelte +99 -104
- package/dist/components/feedback/Alert.svelte +71 -76
- package/dist/components/feedback/EmptyState.svelte +68 -68
- package/dist/components/feedback/ErrorState.svelte +73 -73
- package/dist/components/feedback/Skeleton.svelte +52 -52
- package/dist/components/feedback/StatusDot.svelte +49 -54
- package/dist/components/feedback/StatusLine.svelte +122 -122
- package/dist/components/feedback/Toast.svelte +130 -136
- package/dist/components/inputs/Button.svelte +240 -237
- package/dist/components/inputs/Checkbox.svelte +104 -105
- package/dist/components/inputs/FileUpload.svelte +165 -163
- package/dist/components/inputs/Input.svelte +145 -147
- package/dist/components/inputs/Select.svelte +156 -150
- package/dist/components/inputs/Textarea.svelte +153 -154
- package/dist/components/inputs/Toggle.svelte +120 -120
- package/dist/components/layout/Card.svelte +70 -76
- package/dist/components/layout/Drawer.svelte +133 -109
- package/dist/components/layout/Grid.svelte +118 -43
- package/dist/components/layout/Grid.svelte.d.ts +8 -2
- package/dist/components/layout/Modal.svelte +176 -159
- package/dist/components/layout/Panel.svelte +49 -54
- package/dist/components/layout/Popover.svelte +178 -67
- package/dist/components/layout/Popover.svelte.d.ts +10 -1
- package/dist/components/layout/Stack.svelte +53 -53
- package/dist/components/navigation/Breadcrumb.svelte +70 -73
- package/dist/components/navigation/DropdownMenu.svelte +167 -124
- package/dist/components/navigation/DropdownMenu.svelte.d.ts +12 -2
- package/dist/components/navigation/SidebarNav.svelte +86 -90
- package/dist/components/navigation/Tabs.svelte +81 -86
- package/dist/components/navigation/Topbar.svelte +85 -85
- package/dist/components/patterns/ActionBar.svelte +71 -76
- package/dist/components/patterns/ConfirmDialog.svelte +63 -64
- package/dist/components/patterns/PageHeader.svelte +109 -114
- package/dist/components/patterns/SearchBar.svelte +54 -59
- package/dist/components/patterns/TerminalBoot.svelte +104 -104
- package/dist/components/primitives/Divider.svelte +26 -29
- package/dist/components/primitives/Icon.svelte +44 -49
- package/dist/components/primitives/Label.svelte +39 -44
- package/dist/components/primitives/Surface.svelte +89 -87
- package/dist/components/primitives/Text.svelte +98 -98
- package/dist/components/scenes/ArchiveScene.svelte +92 -95
- package/dist/components/scenes/ArchiveScene.svelte.d.ts +7 -1
- package/dist/components/scenes/LogScene.svelte +72 -77
- package/dist/components/scenes/NarrativeScene.svelte +91 -92
- package/dist/components/scenes/ReadoutScene.svelte +120 -107
- package/dist/components/scenes/ReadoutScene.svelte.d.ts +3 -1
- package/dist/components/scenes/StageScene.svelte +97 -104
- package/dist/examples/FieldReport.svelte +226 -223
- package/dist/examples/ObservationDeck.svelte +333 -317
- package/dist/examples/SignalLost.svelte +191 -191
- package/dist/styles.css +113 -0
- package/dist/system/actions/echo.js +9 -9
- package/dist/system/actions/resolve.js +9 -9
- package/dist/system/actions/reveal.js +1 -1
- package/dist/system/actions/surface.js +13 -1
- package/dist/system/depth/depth.css +49 -49
- package/dist/system/depth/depth.js +1 -1
- package/dist/system/expressions.css +80 -80
- package/dist/system/override-template.css +72 -72
- package/dist/system/register.css +74 -74
- package/dist/system/scroll-lock.d.ts +6 -0
- package/dist/system/scroll-lock.js +23 -0
- package/dist/tokens/tokens.css +100 -86
- package/dist/tokens/tokens.js +4 -4
- package/dist/utils/motion.js +1 -1
- package/package.json +67 -60
|
@@ -1,223 +1,226 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
EXAMPLE: Field Report
|
|
3
|
-
REGISTER: field-notebook
|
|
4
|
-
CONCEPT: a case study page that reads like a recovered classified document
|
|
5
|
-
DEMONSTRATES: NarrativeScene, FloatCard, Plinth, MetricCard, Table, Blockquote, CodeBlock, Badge, Text expressions, DepthStage, DepthLayer, GlyphMark, surface action
|
|
6
|
-
INSPIRED BY: a handwritten field notebook digitized and presented across a table
|
|
7
|
-
-->
|
|
8
|
-
<script lang="ts">
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
frequency: 47.2,
|
|
56
|
-
threshold: 0.003,
|
|
57
|
-
timeout: Infinity,
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
if (signal.strength > baseline) {
|
|
61
|
-
log('contact', signal.origin);
|
|
62
|
-
}`;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<NarrativeScene chapter="field report 03 — signal architecture">
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
</
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
1
|
+
<!--
|
|
2
|
+
EXAMPLE: Field Report
|
|
3
|
+
REGISTER: field-notebook
|
|
4
|
+
CONCEPT: a case study page that reads like a recovered classified document
|
|
5
|
+
DEMONSTRATES: NarrativeScene, FloatCard, Plinth, MetricCard, Table, Blockquote, CodeBlock, Badge, Text expressions, DepthStage, DepthLayer, GlyphMark, surface action
|
|
6
|
+
INSPIRED BY: a handwritten field notebook digitized and presented across a table
|
|
7
|
+
-->
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import {
|
|
10
|
+
Text,
|
|
11
|
+
Label,
|
|
12
|
+
Badge,
|
|
13
|
+
Divider,
|
|
14
|
+
Stack,
|
|
15
|
+
Grid,
|
|
16
|
+
MetricCard,
|
|
17
|
+
Table,
|
|
18
|
+
Blockquote,
|
|
19
|
+
CodeBlock,
|
|
20
|
+
NarrativeScene,
|
|
21
|
+
FloatCard,
|
|
22
|
+
Plinth,
|
|
23
|
+
DepthStage,
|
|
24
|
+
DepthLayer,
|
|
25
|
+
GlyphMark,
|
|
26
|
+
CornerBrackets,
|
|
27
|
+
surface,
|
|
28
|
+
applyRegister
|
|
29
|
+
} from '../index.js';
|
|
30
|
+
import { onMount } from 'svelte';
|
|
31
|
+
|
|
32
|
+
const metrics = [
|
|
33
|
+
{ label: 'first paint', value: '0.8s', trend: 'down' as const, trendValue: '-34%' },
|
|
34
|
+
{ label: 'bundle weight', value: '12kb', trend: 'down' as const, trendValue: '-61%' },
|
|
35
|
+
{ label: 'field duration', value: '9 weeks', trend: 'neutral' as const, trendValue: '' }
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const phases = [
|
|
39
|
+
{ phase: '01', designation: 'survey', date: '2025.09.12', status: 'complete' },
|
|
40
|
+
{ phase: '02', designation: 'excavation', date: '2025.09.28', status: 'complete' },
|
|
41
|
+
{ phase: '03', designation: 'assembly', date: '2025.10.14', status: 'complete' },
|
|
42
|
+
{ phase: '04', designation: 'calibration', date: '2025.10.30', status: 'complete' },
|
|
43
|
+
{ phase: '05', designation: 'field test', date: '2025.11.08', status: 'complete' },
|
|
44
|
+
{ phase: '06', designation: 'deployment', date: '2025.11.15', status: 'active' }
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const phaseColumns = [
|
|
48
|
+
{ key: 'phase', label: 'phase' },
|
|
49
|
+
{ key: 'designation', label: 'designation' },
|
|
50
|
+
{ key: 'date', label: 'date' },
|
|
51
|
+
{ key: 'status', label: 'status' }
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
const codeSnippet = `const signal = await listen({
|
|
55
|
+
frequency: 47.2,
|
|
56
|
+
threshold: 0.003,
|
|
57
|
+
timeout: Infinity,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
if (signal.strength > baseline) {
|
|
61
|
+
log('contact', signal.origin);
|
|
62
|
+
}`;
|
|
63
|
+
|
|
64
|
+
const technologies = ['svelte', 'typescript', 'css custom properties', 'canvas 2d', 'webgl'];
|
|
65
|
+
|
|
66
|
+
onMount(() => {
|
|
67
|
+
applyRegister('field-notebook');
|
|
68
|
+
return () => {
|
|
69
|
+
document.body.removeAttribute('data-register');
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<NarrativeScene chapter="field report 03 — signal architecture">
|
|
75
|
+
{#snippet heading()}
|
|
76
|
+
<DepthStage perspective="far">
|
|
77
|
+
<DepthLayer level="foreground">
|
|
78
|
+
<Text variant="heading" expression="title-card" as="h1" color="primary">
|
|
79
|
+
building the listening station
|
|
80
|
+
</Text>
|
|
81
|
+
</DepthLayer>
|
|
82
|
+
</DepthStage>
|
|
83
|
+
{/snippet}
|
|
84
|
+
|
|
85
|
+
{#snippet copy()}
|
|
86
|
+
<div class="field-report-copy">
|
|
87
|
+
<div use:surface={{ delay: 200 }}>
|
|
88
|
+
<Text variant="body">
|
|
89
|
+
the project started as a question. not the kind you find in a brief. the kind that stays
|
|
90
|
+
after the meeting ends. what does it feel like when a system is paying attention.
|
|
91
|
+
</Text>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<div use:surface={{ delay: 350 }}>
|
|
95
|
+
<Text variant="body">
|
|
96
|
+
we built the component library first. not because it was the most important part, but
|
|
97
|
+
because naming things forces clarity. every token, every variant, every slot had to earn
|
|
98
|
+
its name.
|
|
99
|
+
</Text>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div use:surface={{ delay: 500 }}>
|
|
103
|
+
<Blockquote>
|
|
104
|
+
the real constraint was not technical. it was tonal. how do you build an interface that
|
|
105
|
+
feels serious without feeling cold. that feels precise without feeling sterile.
|
|
106
|
+
</Blockquote>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<div class="field-report-metrics" use:surface={{ delay: 650 }}>
|
|
110
|
+
<DepthStage perspective="far">
|
|
111
|
+
<DepthLayer level="raised">
|
|
112
|
+
<Grid cols={3} gap="0.75rem">
|
|
113
|
+
{#each metrics as m}
|
|
114
|
+
<FloatCard tiltMax={5}>
|
|
115
|
+
<div class="field-report-metric-inner">
|
|
116
|
+
<Label color="muted">{m.label}</Label>
|
|
117
|
+
<Text variant="heading" as="span" color="primary">{m.value}</Text>
|
|
118
|
+
{#if m.trendValue}
|
|
119
|
+
<Text
|
|
120
|
+
variant="caption"
|
|
121
|
+
as="span"
|
|
122
|
+
color={m.trend === 'down' ? 'signal' : 'muted'}
|
|
123
|
+
>
|
|
124
|
+
{m.trend === 'down' ? '\u2193' : '\u2014'}
|
|
125
|
+
{m.trendValue}
|
|
126
|
+
</Text>
|
|
127
|
+
{/if}
|
|
128
|
+
</div>
|
|
129
|
+
</FloatCard>
|
|
130
|
+
{/each}
|
|
131
|
+
</Grid>
|
|
132
|
+
</DepthLayer>
|
|
133
|
+
</DepthStage>
|
|
134
|
+
<Plinth width="90%" depth="24px" />
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div use:surface={{ delay: 800 }}>
|
|
138
|
+
<Text expression="chapter" as="span">mission log</Text>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<div use:surface={{ delay: 900 }}>
|
|
142
|
+
<Table columns={phaseColumns} rows={phases} />
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<div use:surface={{ delay: 1000 }}>
|
|
146
|
+
<Text expression="chapter" as="span">from the field notebook</Text>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<div use:surface={{ delay: 1100 }}>
|
|
150
|
+
<CodeBlock code={codeSnippet} />
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<div class="field-report-tags" use:surface={{ delay: 1200 }}>
|
|
154
|
+
{#each technologies as tech}
|
|
155
|
+
<Badge variant="default">{tech}</Badge>
|
|
156
|
+
{/each}
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
{/snippet}
|
|
160
|
+
|
|
161
|
+
{#snippet canvas()}
|
|
162
|
+
<div class="field-report-canvas" use:surface={{ delay: 400 }}>
|
|
163
|
+
<div class="field-report-canvas-inner" style:position="relative">
|
|
164
|
+
<CornerBrackets size={40} color="rgba(199, 156, 87, 0.12)" />
|
|
165
|
+
<div class="field-report-canvas-marks">
|
|
166
|
+
<GlyphMark variant="reticle" size={48} color="var(--muted-strong)" />
|
|
167
|
+
<div class="field-report-canvas-label">
|
|
168
|
+
<Label color="muted">artifact scan</Label>
|
|
169
|
+
<Label color="accent">47.2 mhz</Label>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
{/snippet}
|
|
175
|
+
</NarrativeScene>
|
|
176
|
+
|
|
177
|
+
<style>
|
|
178
|
+
.field-report-copy {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
gap: 1.75rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.field-report-metrics {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
gap: 0.5rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.field-report-metric-inner {
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
gap: 0.25rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.field-report-tags {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-wrap: wrap;
|
|
199
|
+
gap: 0.375rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.field-report-canvas {
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
min-height: 50vh;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.field-report-canvas-inner {
|
|
210
|
+
padding: 3rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.field-report-canvas-marks {
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
align-items: center;
|
|
217
|
+
gap: 1.5rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.field-report-canvas-label {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
align-items: center;
|
|
224
|
+
gap: 0.25rem;
|
|
225
|
+
}
|
|
226
|
+
</style>
|