@veluai/velu 0.2.25 → 0.2.28

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 (114) hide show
  1. package/README.md +80 -80
  2. package/dist/cli.js +44 -44
  3. package/package.json +64 -64
  4. package/runtime/velu-ui/base.css +320 -320
  5. package/runtime/velu-ui/components/Accordion.jsx +64 -64
  6. package/runtime/velu-ui/components/ApiClient.jsx +207 -207
  7. package/runtime/velu-ui/components/ApiField.jsx +87 -87
  8. package/runtime/velu-ui/components/ApiPath.jsx +63 -63
  9. package/runtime/velu-ui/components/ApiReferencePage.jsx +384 -384
  10. package/runtime/velu-ui/components/ApiSamples.jsx +36 -36
  11. package/runtime/velu-ui/components/ApiSidebar.jsx +125 -125
  12. package/runtime/velu-ui/components/AskBar.jsx +71 -71
  13. package/runtime/velu-ui/components/Callout.jsx +114 -114
  14. package/runtime/velu-ui/components/Card.jsx +131 -131
  15. package/runtime/velu-ui/components/ChangelogFilters.jsx +75 -75
  16. package/runtime/velu-ui/components/Chatbot.jsx +972 -972
  17. package/runtime/velu-ui/components/CodeBlock.jsx +375 -375
  18. package/runtime/velu-ui/components/Columns.jsx +56 -56
  19. package/runtime/velu-ui/components/ContextMenu.jsx +327 -327
  20. package/runtime/velu-ui/components/ErrorCard.jsx +138 -138
  21. package/runtime/velu-ui/components/Field.jsx +81 -81
  22. package/runtime/velu-ui/components/Image.jsx +163 -163
  23. package/runtime/velu-ui/components/Logo.jsx +31 -31
  24. package/runtime/velu-ui/components/MethodBadge.jsx +31 -31
  25. package/runtime/velu-ui/components/NavSelect.jsx +108 -108
  26. package/runtime/velu-ui/components/NotFound.jsx +63 -63
  27. package/runtime/velu-ui/components/PageFeedback.jsx +219 -219
  28. package/runtime/velu-ui/components/PageFooter.jsx +145 -145
  29. package/runtime/velu-ui/components/PageHeader.jsx +422 -422
  30. package/runtime/velu-ui/components/PageNav.jsx +77 -77
  31. package/runtime/velu-ui/components/PoweredBy.jsx +51 -51
  32. package/runtime/velu-ui/components/Prompt.jsx +115 -115
  33. package/runtime/velu-ui/components/Search.jsx +460 -460
  34. package/runtime/velu-ui/components/Sidebar.jsx +246 -246
  35. package/runtime/velu-ui/components/SocialLinks.jsx +90 -90
  36. package/runtime/velu-ui/components/Steps.jsx +65 -65
  37. package/runtime/velu-ui/components/ThemeToggle.jsx +48 -48
  38. package/runtime/velu-ui/components/Toc.jsx +537 -537
  39. package/runtime/velu-ui/components/TocBar.jsx +195 -195
  40. package/runtime/velu-ui/components/Tree.jsx +87 -87
  41. package/runtime/velu-ui/components/TryItBar.jsx +102 -102
  42. package/runtime/velu-ui/components/Update.jsx +92 -92
  43. package/runtime/velu-ui/components/accordion.css +92 -92
  44. package/runtime/velu-ui/components/api-page.css +208 -208
  45. package/runtime/velu-ui/components/api.css +635 -635
  46. package/runtime/velu-ui/components/ask-bar.css +103 -103
  47. package/runtime/velu-ui/components/card.css +105 -105
  48. package/runtime/velu-ui/components/changelog-filters.css +43 -43
  49. package/runtime/velu-ui/components/chatbot.css +687 -687
  50. package/runtime/velu-ui/components/code-block.css +263 -263
  51. package/runtime/velu-ui/components/context-menu.css +199 -199
  52. package/runtime/velu-ui/components/docs-layout.css +822 -822
  53. package/runtime/velu-ui/components/field.css +82 -82
  54. package/runtime/velu-ui/components/image.css +237 -237
  55. package/runtime/velu-ui/components/nav-select.css +157 -157
  56. package/runtime/velu-ui/components/not-found.css +94 -94
  57. package/runtime/velu-ui/components/page-feedback.css +261 -261
  58. package/runtime/velu-ui/components/page-footer.css +130 -130
  59. package/runtime/velu-ui/components/page-header.css +558 -558
  60. package/runtime/velu-ui/components/page-nav.css +50 -50
  61. package/runtime/velu-ui/components/powered-by.css +92 -92
  62. package/runtime/velu-ui/components/prompt.css +99 -99
  63. package/runtime/velu-ui/components/search.css +307 -307
  64. package/runtime/velu-ui/components/sidebar.css +205 -205
  65. package/runtime/velu-ui/components/steps.css +77 -77
  66. package/runtime/velu-ui/components/theme-toggle.css +102 -102
  67. package/runtime/velu-ui/components/toc-bar.css +234 -234
  68. package/runtime/velu-ui/components/tree.css +49 -49
  69. package/runtime/velu-ui/components/update.css +111 -111
  70. package/runtime/velu-ui/index.js +58 -58
  71. package/runtime/velu-ui/lib/api-send.js +118 -118
  72. package/runtime/velu-ui/lib/brand-icons.jsx +103 -103
  73. package/runtime/velu-ui/lib/component-schemas.js +100 -100
  74. package/runtime/velu-ui/lib/copyText.js +64 -64
  75. package/runtime/velu-ui/lib/docs-assistant.js +273 -273
  76. package/runtime/velu-ui/lib/lang-icons.jsx +147 -147
  77. package/runtime/velu-ui/lib/page-feedback.js +72 -72
  78. package/runtime/velu-ui/lib/pagefind.js +116 -116
  79. package/runtime/velu-ui/lib/prism-langs.js +957 -957
  80. package/runtime/velu-ui/lib/prism-loader.js +74 -74
  81. package/runtime/velu-ui/lib/resolveIcon.jsx +29 -29
  82. package/runtime/velu-ui/lib/scrollIntoNearestView.js +66 -66
  83. package/runtime/velu-ui/mdx-components.jsx +107 -107
  84. package/runtime/velu-ui/primitives/Cluster.jsx +49 -49
  85. package/runtime/velu-ui/primitives/Stack.jsx +63 -63
  86. package/runtime/velu-ui/primitives/Switcher.jsx +57 -57
  87. package/runtime/velu-ui/primitives/stack.css +3 -3
  88. package/runtime/velu-ui/primitives/switcher.css +25 -25
  89. package/runtime/velu-ui/styles.css +48 -48
  90. package/runtime/velu-ui/tokens.css +4 -4
  91. package/schema/velu.schema.json +419 -419
  92. package/src/lib/extract-mdx-error.js +170 -170
  93. package/src/lib/issues.js +159 -159
  94. package/src/lib/known-components.js +35 -35
  95. package/src/navigation.js +459 -459
  96. package/src/runtime/App.jsx +1754 -1754
  97. package/src/runtime/ErrorBoundary.jsx +54 -54
  98. package/src/runtime/client-entry.jsx +27 -27
  99. package/src/runtime/server-entry.jsx +24 -24
  100. package/src/template.html +48 -48
  101. package/templates/starter/ai-tools/claude-code.mdx +26 -26
  102. package/templates/starter/ai-tools/cursor.mdx +17 -17
  103. package/templates/starter/api-reference/introduction.mdx +43 -43
  104. package/templates/starter/development.mdx +19 -19
  105. package/templates/starter/essentials/code.mdx +29 -29
  106. package/templates/starter/essentials/images.mdx +29 -29
  107. package/templates/starter/essentials/markdown.mdx +25 -25
  108. package/templates/starter/essentials/navigation.mdx +39 -39
  109. package/templates/starter/essentials/settings.mdx +30 -30
  110. package/templates/starter/favicon.svg +6 -6
  111. package/templates/starter/index.mdx +31 -31
  112. package/templates/starter/openapi.json +160 -160
  113. package/templates/starter/quickstart.mdx +31 -31
  114. package/templates/starter/velu.json +40 -40
@@ -1,307 +1,307 @@
1
- /* Search — command-palette search. Ported from the Claude-Design "Velu
2
- Search" handoff and retokenized: the design's surf/txt/bord layers
3
- map onto velu-ui tokens, so it themes for free via [data-theme].
4
- surf-page / surf-elevated → --page-bg
5
- surf-row-hover / kbd → --surface-color
6
- surf-row-selected → accent tint
7
- txt-1 → --text-color
8
- txt-2 / txt-3 / muted → --muted-color
9
- bord-* → --border-color
10
- accent → --accent-color
11
- */
12
-
13
- /* ── Shared kbd chip (⌘K trigger hint / esc / ↵) ────────────────────── */
14
- /* line-height: 1 so a tall glyph like ↵ doesn't stretch the chip;
15
- justify-content centers single-character contents. */
16
- .velu-search__kbd {
17
- display: inline-flex;
18
- align-items: center;
19
- justify-content: center;
20
- flex: none;
21
- min-inline-size: var(--s0);
22
- padding-block: var(--s-5);
23
- padding-inline: var(--s-3);
24
- background: var(--surface-color);
25
- border: var(--border-width) solid var(--border-color);
26
- border-radius: var(--radius-sm);
27
- font-size: var(--f-h7);
28
- line-height: 1;
29
- font-weight: var(--weight-medium);
30
- color: var(--text-color);
31
- }
32
-
33
- /* ── Trigger box (placed at the top of the page) ────────────────────── */
34
- /* Content-sized; the label's flex:1 only matters if the consumer gives
35
- the trigger an explicit width. */
36
- .velu-search__trigger {
37
- display: inline-flex;
38
- align-items: center;
39
- gap: var(--s-3);
40
- padding-block: var(--s-3);
41
- padding-inline: var(--s-2);
42
- background: var(--page-bg);
43
- border: var(--border-width) solid var(--border-color);
44
- border-radius: var(--radius-sm);
45
- color: var(--muted-color);
46
- font: inherit;
47
- font-size: var(--f-h6);
48
- cursor: pointer;
49
- transition: border-color 0.12s ease;
50
- }
51
- .velu-search__trigger:hover {
52
- border-color: var(--accent-color);
53
- }
54
- .velu-search__trigger-icon {
55
- display: inline-flex;
56
- flex: none;
57
- color: var(--muted-color);
58
- }
59
- .velu-search__trigger-label {
60
- flex: 1;
61
- text-align: start;
62
- }
63
-
64
- /* ── Mobile collapse — trigger becomes icon-only ───────────────────── */
65
- /* At mobile widths (< 640px) the header is too crowded to show the
66
- full search box; collapse to a magnifier icon. App.jsx passes
67
- `inline-size: 30ch` inline on the trigger to fix its desktop width,
68
- so we need !important here to win over the inline style. The kbd
69
- chip is also hidden — at mobile there's no keyboard shortcut hint
70
- to display. */
71
- @container docs (max-width: 640px) {
72
- .velu-search__trigger {
73
- inline-size: auto !important;
74
- padding-inline: var(--s-3);
75
- }
76
- .velu-search__trigger-label,
77
- .velu-search__trigger .velu-search__kbd {
78
- display: none;
79
- }
80
- }
81
-
82
- /* ── Scrim + palette ────────────────────────────────────────────────── */
83
- .velu-search__scrim {
84
- position: fixed;
85
- inset: 0;
86
- z-index: 60;
87
- display: flex;
88
- align-items: flex-start;
89
- justify-content: center;
90
- /* Top offset eases down on short screens; side gutter is small so the
91
- palette uses most of a narrow viewport (no effect on desktop —
92
- the palette is capped at --vsearch-width there). */
93
- padding-block-start: clamp(var(--s1), 8vh, 12vh);
94
- padding-inline: var(--s-3);
95
- background: color-mix(in srgb, #000 48%, transparent);
96
- -webkit-backdrop-filter: blur(4px);
97
- backdrop-filter: blur(4px);
98
- animation: velu-search-scrim-in 0.18s ease-out;
99
- }
100
- @keyframes velu-search-scrim-in {
101
- from { opacity: 0; }
102
- to { opacity: 1; }
103
- }
104
-
105
- .velu-search__palette {
106
- /* Overridable panel width (≈ the design's 720px). */
107
- --vsearch-width: 45rem;
108
- inline-size: var(--vsearch-width);
109
- max-inline-size: 100%;
110
- display: flex;
111
- flex-direction: column;
112
- overflow: hidden;
113
- background: var(--page-bg);
114
- color: var(--text-color);
115
- border: var(--border-width) solid var(--border-color);
116
- border-radius: var(--radius-md);
117
- box-shadow:
118
- 0 var(--s2) var(--s4) color-mix(in srgb, #000 32%, transparent),
119
- 0 var(--s0) var(--s2) color-mix(in srgb, #000 18%, transparent);
120
- animation: velu-search-palette-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
121
- }
122
- @keyframes velu-search-palette-in {
123
- from {
124
- opacity: 0;
125
- transform: translateY(calc(var(--s-3) * -1)) scale(0.985);
126
- }
127
- to {
128
- opacity: 1;
129
- transform: none;
130
- }
131
- }
132
- /* base.css's global `* { max-width: 66ch }` would cap the <input>;
133
- reset within the palette — flex / the panel govern width here. */
134
- .velu-search__palette * {
135
- max-inline-size: none;
136
- }
137
-
138
- /* ── Input row ──────────────────────────────────────────────────────── */
139
- .velu-search__input-wrap {
140
- display: flex;
141
- align-items: center;
142
- gap: var(--s-2);
143
- padding: var(--s-1) var(--s0);
144
- border-block-end: var(--border-width) solid var(--border-color);
145
- }
146
- .velu-search__input-icon {
147
- display: inline-flex;
148
- flex: none;
149
- color: var(--muted-color);
150
- }
151
- .velu-search__input {
152
- flex: 1 1 auto;
153
- min-inline-size: 0;
154
- padding: 0;
155
- background: transparent;
156
- border: 0;
157
- outline: 0;
158
- font: inherit;
159
- font-size: var(--f-h4);
160
- font-weight: var(--weight-light);
161
- line-height: var(--lh-h4);
162
- color: var(--text-color);
163
- }
164
- .velu-search__input::placeholder {
165
- color: var(--muted-color);
166
- }
167
-
168
- /* ── Result list ────────────────────────────────────────────────────── */
169
- .velu-search__list {
170
- flex: 1 1 auto;
171
- overflow-y: auto;
172
- padding: var(--s-3);
173
- max-block-size: 72vh;
174
- }
175
- .velu-search__group {
176
- padding: var(--s-1) var(--s-1) var(--s-4);
177
- font-size: var(--f-h7);
178
- font-weight: var(--weight-medium);
179
- letter-spacing: 0.08em;
180
- text-transform: uppercase;
181
- color: var(--muted-color);
182
- }
183
-
184
- /* Result row — grid: glyph | (breadcrumb / title / desc) | meta. */
185
- .velu-search__row {
186
- display: grid;
187
- grid-template-columns: auto 1fr auto;
188
- gap: var(--s-6) var(--s0);
189
- align-items: center;
190
- padding: var(--s-2);
191
- border-radius: var(--radius-sm);
192
- color: var(--text-color);
193
- cursor: pointer;
194
- }
195
- .velu-search__row + .velu-search__row {
196
- margin-block-start: var(--s-6);
197
- }
198
- .velu-search__row:hover {
199
- background: var(--surface-color);
200
- }
201
- .velu-search__row--selected {
202
- background: color-mix(in srgb, var(--accent-color) 12%, transparent);
203
- }
204
-
205
- .velu-search__row-glyph {
206
- grid-column: 1;
207
- grid-row: 1 / -1;
208
- display: flex;
209
- align-items: center;
210
- justify-content: center;
211
- inline-size: 2.5em;
212
- block-size: 2.5em;
213
- color: var(--text-color);
214
- }
215
- .velu-search__glyph-hash {
216
- font-size: var(--f-h3);
217
- font-weight: var(--weight-light);
218
- line-height: 1;
219
- color: var(--text-color);
220
- }
221
- .velu-search__glyph-icon {
222
- display: inline-flex;
223
- inline-size: var(--icon-size-lg);
224
- block-size: var(--icon-size-lg);
225
- color: var(--muted-color);
226
- }
227
- .velu-search__row--selected .velu-search__glyph-icon {
228
- color: var(--text-color);
229
- }
230
-
231
- .velu-search__crumbs {
232
- grid-column: 2;
233
- grid-row: 1;
234
- display: flex;
235
- align-items: center;
236
- flex-wrap: wrap;
237
- gap: var(--s-4);
238
- font-size: var(--f-h6);
239
- line-height: var(--lh-h6);
240
- color: var(--muted-color);
241
- }
242
- .velu-search__crumb-sep {
243
- opacity: 0.6;
244
- }
245
- .velu-search__row-title {
246
- grid-column: 2;
247
- grid-row: 2;
248
- font-size: var(--f-h5);
249
- font-weight: var(--weight-medium);
250
- line-height: var(--lh-h5);
251
- color: var(--text-color);
252
- }
253
- .velu-search__row-desc {
254
- grid-column: 2;
255
- grid-row: 3;
256
- font-size: var(--f-h6);
257
- font-weight: var(--weight-light);
258
- line-height: var(--lh-h6);
259
- color: var(--muted-color);
260
- overflow: hidden;
261
- text-overflow: ellipsis;
262
- white-space: nowrap;
263
- }
264
- .velu-search__row-meta {
265
- grid-column: 3;
266
- grid-row: 1 / -1;
267
- display: flex;
268
- align-items: center;
269
- opacity: 0;
270
- transition: opacity 0.15s ease;
271
- }
272
- .velu-search__row:hover .velu-search__row-meta,
273
- .velu-search__row--selected .velu-search__row-meta {
274
- opacity: 1;
275
- }
276
-
277
- /* ── Empty / no-results ─────────────────────────────────────────────── */
278
- .velu-search__empty {
279
- display: flex;
280
- flex-direction: column;
281
- align-items: center;
282
- gap: var(--s-6);
283
- padding: var(--s3) var(--s0);
284
- text-align: center;
285
- }
286
- .velu-search__empty-icon {
287
- display: inline-flex;
288
- margin-block-end: var(--s-3);
289
- font-size: var(--f-h2);
290
- color: var(--muted-color);
291
- }
292
- .velu-search__empty-title {
293
- font-size: var(--f-h6);
294
- font-weight: var(--weight-medium);
295
- color: var(--text-color);
296
- }
297
- .velu-search__empty-sub {
298
- font-size: var(--f-h6);
299
- color: var(--muted-color);
300
- }
301
-
302
- @media (prefers-reduced-motion: reduce) {
303
- .velu-search__scrim,
304
- .velu-search__palette {
305
- animation: none;
306
- }
307
- }
1
+ /* Search — command-palette search. Ported from the Claude-Design "Velu
2
+ Search" handoff and retokenized: the design's surf/txt/bord layers
3
+ map onto velu-ui tokens, so it themes for free via [data-theme].
4
+ surf-page / surf-elevated → --page-bg
5
+ surf-row-hover / kbd → --surface-color
6
+ surf-row-selected → accent tint
7
+ txt-1 → --text-color
8
+ txt-2 / txt-3 / muted → --muted-color
9
+ bord-* → --border-color
10
+ accent → --accent-color
11
+ */
12
+
13
+ /* ── Shared kbd chip (⌘K trigger hint / esc / ↵) ────────────────────── */
14
+ /* line-height: 1 so a tall glyph like ↵ doesn't stretch the chip;
15
+ justify-content centers single-character contents. */
16
+ .velu-search__kbd {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ flex: none;
21
+ min-inline-size: var(--s0);
22
+ padding-block: var(--s-5);
23
+ padding-inline: var(--s-3);
24
+ background: var(--surface-color);
25
+ border: var(--border-width) solid var(--border-color);
26
+ border-radius: var(--radius-sm);
27
+ font-size: var(--f-h7);
28
+ line-height: 1;
29
+ font-weight: var(--weight-medium);
30
+ color: var(--text-color);
31
+ }
32
+
33
+ /* ── Trigger box (placed at the top of the page) ────────────────────── */
34
+ /* Content-sized; the label's flex:1 only matters if the consumer gives
35
+ the trigger an explicit width. */
36
+ .velu-search__trigger {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: var(--s-3);
40
+ padding-block: var(--s-3);
41
+ padding-inline: var(--s-2);
42
+ background: var(--page-bg);
43
+ border: var(--border-width) solid var(--border-color);
44
+ border-radius: var(--radius-sm);
45
+ color: var(--muted-color);
46
+ font: inherit;
47
+ font-size: var(--f-h6);
48
+ cursor: pointer;
49
+ transition: border-color 0.12s ease;
50
+ }
51
+ .velu-search__trigger:hover {
52
+ border-color: var(--accent-color);
53
+ }
54
+ .velu-search__trigger-icon {
55
+ display: inline-flex;
56
+ flex: none;
57
+ color: var(--muted-color);
58
+ }
59
+ .velu-search__trigger-label {
60
+ flex: 1;
61
+ text-align: start;
62
+ }
63
+
64
+ /* ── Mobile collapse — trigger becomes icon-only ───────────────────── */
65
+ /* At mobile widths (< 640px) the header is too crowded to show the
66
+ full search box; collapse to a magnifier icon. App.jsx passes
67
+ `inline-size: 30ch` inline on the trigger to fix its desktop width,
68
+ so we need !important here to win over the inline style. The kbd
69
+ chip is also hidden — at mobile there's no keyboard shortcut hint
70
+ to display. */
71
+ @container docs (max-width: 640px) {
72
+ .velu-search__trigger {
73
+ inline-size: auto !important;
74
+ padding-inline: var(--s-3);
75
+ }
76
+ .velu-search__trigger-label,
77
+ .velu-search__trigger .velu-search__kbd {
78
+ display: none;
79
+ }
80
+ }
81
+
82
+ /* ── Scrim + palette ────────────────────────────────────────────────── */
83
+ .velu-search__scrim {
84
+ position: fixed;
85
+ inset: 0;
86
+ z-index: 60;
87
+ display: flex;
88
+ align-items: flex-start;
89
+ justify-content: center;
90
+ /* Top offset eases down on short screens; side gutter is small so the
91
+ palette uses most of a narrow viewport (no effect on desktop —
92
+ the palette is capped at --vsearch-width there). */
93
+ padding-block-start: clamp(var(--s1), 8vh, 12vh);
94
+ padding-inline: var(--s-3);
95
+ background: color-mix(in srgb, #000 48%, transparent);
96
+ -webkit-backdrop-filter: blur(4px);
97
+ backdrop-filter: blur(4px);
98
+ animation: velu-search-scrim-in 0.18s ease-out;
99
+ }
100
+ @keyframes velu-search-scrim-in {
101
+ from { opacity: 0; }
102
+ to { opacity: 1; }
103
+ }
104
+
105
+ .velu-search__palette {
106
+ /* Overridable panel width (≈ the design's 720px). */
107
+ --vsearch-width: 45rem;
108
+ inline-size: var(--vsearch-width);
109
+ max-inline-size: 100%;
110
+ display: flex;
111
+ flex-direction: column;
112
+ overflow: hidden;
113
+ background: var(--page-bg);
114
+ color: var(--text-color);
115
+ border: var(--border-width) solid var(--border-color);
116
+ border-radius: var(--radius-md);
117
+ box-shadow:
118
+ 0 var(--s2) var(--s4) color-mix(in srgb, #000 32%, transparent),
119
+ 0 var(--s0) var(--s2) color-mix(in srgb, #000 18%, transparent);
120
+ animation: velu-search-palette-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
121
+ }
122
+ @keyframes velu-search-palette-in {
123
+ from {
124
+ opacity: 0;
125
+ transform: translateY(calc(var(--s-3) * -1)) scale(0.985);
126
+ }
127
+ to {
128
+ opacity: 1;
129
+ transform: none;
130
+ }
131
+ }
132
+ /* base.css's global `* { max-width: 66ch }` would cap the <input>;
133
+ reset within the palette — flex / the panel govern width here. */
134
+ .velu-search__palette * {
135
+ max-inline-size: none;
136
+ }
137
+
138
+ /* ── Input row ──────────────────────────────────────────────────────── */
139
+ .velu-search__input-wrap {
140
+ display: flex;
141
+ align-items: center;
142
+ gap: var(--s-2);
143
+ padding: var(--s-1) var(--s0);
144
+ border-block-end: var(--border-width) solid var(--border-color);
145
+ }
146
+ .velu-search__input-icon {
147
+ display: inline-flex;
148
+ flex: none;
149
+ color: var(--muted-color);
150
+ }
151
+ .velu-search__input {
152
+ flex: 1 1 auto;
153
+ min-inline-size: 0;
154
+ padding: 0;
155
+ background: transparent;
156
+ border: 0;
157
+ outline: 0;
158
+ font: inherit;
159
+ font-size: var(--f-h4);
160
+ font-weight: var(--weight-light);
161
+ line-height: var(--lh-h4);
162
+ color: var(--text-color);
163
+ }
164
+ .velu-search__input::placeholder {
165
+ color: var(--muted-color);
166
+ }
167
+
168
+ /* ── Result list ────────────────────────────────────────────────────── */
169
+ .velu-search__list {
170
+ flex: 1 1 auto;
171
+ overflow-y: auto;
172
+ padding: var(--s-3);
173
+ max-block-size: 72vh;
174
+ }
175
+ .velu-search__group {
176
+ padding: var(--s-1) var(--s-1) var(--s-4);
177
+ font-size: var(--f-h7);
178
+ font-weight: var(--weight-medium);
179
+ letter-spacing: 0.08em;
180
+ text-transform: uppercase;
181
+ color: var(--muted-color);
182
+ }
183
+
184
+ /* Result row — grid: glyph | (breadcrumb / title / desc) | meta. */
185
+ .velu-search__row {
186
+ display: grid;
187
+ grid-template-columns: auto 1fr auto;
188
+ gap: var(--s-6) var(--s0);
189
+ align-items: center;
190
+ padding: var(--s-2);
191
+ border-radius: var(--radius-sm);
192
+ color: var(--text-color);
193
+ cursor: pointer;
194
+ }
195
+ .velu-search__row + .velu-search__row {
196
+ margin-block-start: var(--s-6);
197
+ }
198
+ .velu-search__row:hover {
199
+ background: var(--surface-color);
200
+ }
201
+ .velu-search__row--selected {
202
+ background: color-mix(in srgb, var(--accent-color) 12%, transparent);
203
+ }
204
+
205
+ .velu-search__row-glyph {
206
+ grid-column: 1;
207
+ grid-row: 1 / -1;
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: center;
211
+ inline-size: 2.5em;
212
+ block-size: 2.5em;
213
+ color: var(--text-color);
214
+ }
215
+ .velu-search__glyph-hash {
216
+ font-size: var(--f-h3);
217
+ font-weight: var(--weight-light);
218
+ line-height: 1;
219
+ color: var(--text-color);
220
+ }
221
+ .velu-search__glyph-icon {
222
+ display: inline-flex;
223
+ inline-size: var(--icon-size-lg);
224
+ block-size: var(--icon-size-lg);
225
+ color: var(--muted-color);
226
+ }
227
+ .velu-search__row--selected .velu-search__glyph-icon {
228
+ color: var(--text-color);
229
+ }
230
+
231
+ .velu-search__crumbs {
232
+ grid-column: 2;
233
+ grid-row: 1;
234
+ display: flex;
235
+ align-items: center;
236
+ flex-wrap: wrap;
237
+ gap: var(--s-4);
238
+ font-size: var(--f-h6);
239
+ line-height: var(--lh-h6);
240
+ color: var(--muted-color);
241
+ }
242
+ .velu-search__crumb-sep {
243
+ opacity: 0.6;
244
+ }
245
+ .velu-search__row-title {
246
+ grid-column: 2;
247
+ grid-row: 2;
248
+ font-size: var(--f-h5);
249
+ font-weight: var(--weight-medium);
250
+ line-height: var(--lh-h5);
251
+ color: var(--text-color);
252
+ }
253
+ .velu-search__row-desc {
254
+ grid-column: 2;
255
+ grid-row: 3;
256
+ font-size: var(--f-h6);
257
+ font-weight: var(--weight-light);
258
+ line-height: var(--lh-h6);
259
+ color: var(--muted-color);
260
+ overflow: hidden;
261
+ text-overflow: ellipsis;
262
+ white-space: nowrap;
263
+ }
264
+ .velu-search__row-meta {
265
+ grid-column: 3;
266
+ grid-row: 1 / -1;
267
+ display: flex;
268
+ align-items: center;
269
+ opacity: 0;
270
+ transition: opacity 0.15s ease;
271
+ }
272
+ .velu-search__row:hover .velu-search__row-meta,
273
+ .velu-search__row--selected .velu-search__row-meta {
274
+ opacity: 1;
275
+ }
276
+
277
+ /* ── Empty / no-results ─────────────────────────────────────────────── */
278
+ .velu-search__empty {
279
+ display: flex;
280
+ flex-direction: column;
281
+ align-items: center;
282
+ gap: var(--s-6);
283
+ padding: var(--s3) var(--s0);
284
+ text-align: center;
285
+ }
286
+ .velu-search__empty-icon {
287
+ display: inline-flex;
288
+ margin-block-end: var(--s-3);
289
+ font-size: var(--f-h2);
290
+ color: var(--muted-color);
291
+ }
292
+ .velu-search__empty-title {
293
+ font-size: var(--f-h6);
294
+ font-weight: var(--weight-medium);
295
+ color: var(--text-color);
296
+ }
297
+ .velu-search__empty-sub {
298
+ font-size: var(--f-h6);
299
+ color: var(--muted-color);
300
+ }
301
+
302
+ @media (prefers-reduced-motion: reduce) {
303
+ .velu-search__scrim,
304
+ .velu-search__palette {
305
+ animation: none;
306
+ }
307
+ }