@valiify/dashboard-ui 0.5.1 → 0.6.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +233 -1
  2. package/COMPONENTS.md +1058 -12
  3. package/README.md +40 -7
  4. package/class-manifest.json +187 -2
  5. package/dist/dashboard-ui.css +3017 -918
  6. package/dist/index.css +2370 -448
  7. package/package.json +3 -2
  8. package/src/components/add-funds-form.css +68 -0
  9. package/src/components/alert.css +33 -56
  10. package/src/components/avatar.css +38 -2
  11. package/src/components/button.css +24 -19
  12. package/src/components/card.css +1 -1
  13. package/src/components/checklist-group.css +115 -0
  14. package/src/components/checklist-task.css +125 -0
  15. package/src/components/chip.css +145 -0
  16. package/src/components/comment-date.css +36 -0
  17. package/src/components/comment-item.css +59 -0
  18. package/src/components/content-row.css +108 -0
  19. package/src/components/data-row.css +71 -19
  20. package/src/components/dropdown-field.css +9 -0
  21. package/src/components/entity-header.css +61 -0
  22. package/src/components/field-verification.css +113 -38
  23. package/src/components/finding-card.css +117 -0
  24. package/src/components/finding-option.css +39 -0
  25. package/src/components/finding-row.css +45 -0
  26. package/src/components/funding-status.css +61 -0
  27. package/src/components/funding-total.css +56 -0
  28. package/src/components/funding-transaction.css +103 -0
  29. package/src/components/index.css +29 -0
  30. package/src/components/inline-confirm.css +42 -0
  31. package/src/components/input.css +19 -0
  32. package/src/components/keycap.css +27 -0
  33. package/src/components/menu-item.css +10 -0
  34. package/src/components/modal.css +10 -2
  35. package/src/components/navigation-rail.css +200 -0
  36. package/src/components/overlay-scrim.css +26 -0
  37. package/src/components/owner-table-header.css +42 -0
  38. package/src/components/ownership.css +73 -0
  39. package/src/components/panel-section-header.css +53 -0
  40. package/src/components/panel-status.css +23 -0
  41. package/src/components/panel-strip-button.css +31 -0
  42. package/src/components/progress-circle.css +89 -0
  43. package/src/components/resize-handle.css +131 -0
  44. package/src/components/resolved-row.css +50 -0
  45. package/src/components/scrollbar.css +47 -0
  46. package/src/components/severity-count.css +50 -0
  47. package/src/components/severity-marker.css +66 -0
  48. package/src/components/snapshot-metric.css +72 -0
  49. package/src/components/summary-preview.css +72 -0
  50. package/src/components/switch.css +10 -1
  51. package/src/components/tag.css +20 -0
  52. package/src/components/textarea.css +4 -0
  53. package/src/components/toast.css +9 -5
  54. package/src/components/tooltip.css +14 -8
  55. package/src/themes/valiify-tokens.css +240 -6
  56. package/src/themes/valiify.css +243 -6
  57. package/types/components.d.ts +291 -8
package/README.md CHANGED
@@ -293,19 +293,27 @@ Button • IconButton • TextButton • Input • Textarea • Checkbox • Rad
293
293
 
294
294
  ### Data Display
295
295
 
296
- Avatar • Chip • Badge • Dot • Tag • Pill • DataRow • Divider • Icon • Skeleton
296
+ Avatar • Chip • Badge • Dot • Tag • Pill • DataRow • ContentRow • SnapshotMetric • EntityHeader • Ownership • OwnerTableHeader • SummaryPreview • Divider • Icon • Keycap • Skeleton
297
297
 
298
298
  ### Navigation
299
299
 
300
- NavigationRail • Tabs • SegmentSelector • FilterSegment • Breadcrumbs • Pagination • MenuItem • DropdownMenu • Link
300
+ NavigationRail • ResizeHandle • Tabs • SegmentSelector • FilterSegment • Breadcrumbs • Pagination • MenuItem • DropdownMenu • Link • Scrollbar • OverlayScrim
301
301
 
302
302
  ### Feedback
303
303
 
304
- Alert • Toast • Modal • Tooltip • LoadingIndicator • LoadingInline • ProgressBar • Stepper
304
+ Alert • Toast • Modal • Tooltip • LoadingIndicator • LoadingInline • ProgressBar • ProgressCircle • Stepper • InlineConfirm
305
305
 
306
306
  ### Review Components
307
307
 
308
- FieldVerification • SectionMarker
308
+ FieldVerification • SectionMarker • SeverityMarker • SeverityCount
309
+
310
+ ### Findings Panel
311
+
312
+ PanelStatus • PanelSectionHeader • PanelStripButton • FindingRow • FindingCard • FindingOption • ResolvedRow • CommentItem • CommentDate • ChecklistGroup • ChecklistTask
313
+
314
+ ### Funding
315
+
316
+ FundingStatus • FundingTransaction • FundingTotal • AddFundsForm
309
317
 
310
318
  > **Note:** Card is placeholder scaffolding, not a real component. Don't use it.
311
319
 
@@ -365,7 +373,7 @@ See [TROUBLESHOOTING.md](TROUBLESHOOTING.md#styles-dont-apply-at-all).
365
373
 
366
374
  Built on the Valiify Figma design system (Commercial-Designs, `FdcEV83HPv44bzLPAQU1hR`).
367
375
 
368
- **48 colors** • **5 radii** • **3 border widths** • **5 control heights** • **21 text styles** (each also a `.vd-text-*` class) • **4 shadows**
376
+ **108 colors, in Light and Onyx** • **5 radii** • **3 border widths** • **5 control heights** • **21 text styles** (each also a `.vd-text-*` class) • **4 shadows**
369
377
 
370
378
  All tokens are **extracted from Figma**, not hand-written. They live in a Tailwind `@theme` block, so each one generates utilities:
371
379
 
@@ -382,6 +390,29 @@ Browse the full set in Storybook under **Foundations → Design Tokens**.
382
390
 
383
391
  **Colors:** OKLch notation for perceptual uniformity.
384
392
 
393
+ ### Themes
394
+
395
+ Two themes ship: **Light** (the default — nothing to set) and **Onyx**, the dark
396
+ theme. Switch with one attribute:
397
+
398
+ ```html
399
+ <html data-theme="onyx">
400
+ ```
401
+
402
+ Every colour token changes with it, so components, token utilities and the `vd:`
403
+ utilities all follow. It works on a subtree too (`<div data-theme="onyx">`) — give
404
+ that element its own background and text colour (`bg-surface-frame
405
+ text-content-primary`), since text colour is inherited from outside it. On
406
+ `./styles.css` the page background is yours to set, as it is in Light.
407
+
408
+ The library ships no JavaScript, so remembering the choice is yours:
409
+
410
+ ```js
411
+ const root = document.documentElement;
412
+ if (wantsDark) root.setAttribute("data-theme", "onyx");
413
+ else root.removeAttribute("data-theme");
414
+ ```
415
+
385
416
  > **Token names are public API.** Renaming or removing a token is a breaking change. Changing a token's *value* is not.
386
417
 
387
418
  ## Fonts
@@ -428,6 +459,8 @@ npm run audit # Coverage check
428
459
  npm run verify:component Avatar # Static source check
429
460
  npm run verify:layers # Cascade-layer contract
430
461
  npm run verify:visual # Rendered styles vs Figma
462
+ npm run verify:visual -- --theme onyx # the same checks in the Onyx theme
463
+ npm run verify:theme # Light / Onyx switching, measured in a browser
431
464
  npm run verify:a11y # Accessibility scan
432
465
  npm run typecheck # TypeScript
433
466
  ```
@@ -447,12 +480,12 @@ See [docs/component-process.md](https://github.com/BubbaCoop/Valiify-dashboard-u
447
480
  - **CSS-only** - Zero JavaScript dependencies
448
481
  - **Tailwind v4 `@theme`** - Tokens generate utilities automatically
449
482
  - **No Tailwind plugin** - No `tailwind.config.js` to register
450
- - **Single light theme** - V1 ships one theme; no dark mode yet
483
+ - **Two themes** - Light by default; add `data-theme="onyx"` to `<html>` for the dark theme
451
484
  - **Framework-agnostic** - Works with React, Vue, Svelte, vanilla HTML
452
485
 
453
486
  ## Status
454
487
 
455
- **0.5.0** — 40 components on the Revision 3 design scale, every one with a visual spec.
488
+ **0.6.0 (not yet published; npm has 0.5.0)** — 70 components in two themes, Light and Onyx, every one with a visual spec checked in both.
456
489
  **Next:** accessibility remediation (the remaining items are designer-blocked contrast tokens).
457
490
 
458
491
  ## Links
@@ -6,8 +6,8 @@
6
6
  "componentNamespace": "vd-",
7
7
  "utilityPrefix": "vd:",
8
8
  "counts": {
9
- "components": 395,
10
- "namespaced": 395,
9
+ "components": 580,
10
+ "namespaced": 580,
11
11
  "unprefixed": 0,
12
12
  "customUtilities": 1,
13
13
  "prefixedUtilities": 308
@@ -22,6 +22,12 @@
22
22
  ]
23
23
  },
24
24
  "components": [
25
+ "vd-add-funds-form",
26
+ "vd-add-funds-form-actions",
27
+ "vd-add-funds-form-fields",
28
+ "vd-add-funds-form-header",
29
+ "vd-add-funds-form-hint",
30
+ "vd-add-funds-form-title",
25
31
  "vd-alert",
26
32
  "vd-alert-body",
27
33
  "vd-alert-content",
@@ -38,12 +44,14 @@
38
44
  "vd-avatar-lg",
39
45
  "vd-avatar-md",
40
46
  "vd-avatar-sm",
47
+ "vd-avatar-square",
41
48
  "vd-avatar-xl",
42
49
  "vd-avatar-xs",
43
50
  "vd-badge",
44
51
  "vd-badge-bg-no",
45
52
  "vd-badge-critical",
46
53
  "vd-badge-md",
54
+ "vd-badge-misc",
47
55
  "vd-badge-neutral",
48
56
  "vd-badge-primary",
49
57
  "vd-badge-sm",
@@ -79,17 +87,46 @@
79
87
  "vd-checkbox-input",
80
88
  "vd-checkbox-label",
81
89
  "vd-checkbox-subtitle",
90
+ "vd-checklist-group",
91
+ "vd-checklist-group-count",
92
+ "vd-checklist-group-footer",
93
+ "vd-checklist-group-header",
94
+ "vd-checklist-group-more",
95
+ "vd-checklist-group-name",
96
+ "vd-checklist-group-open",
97
+ "vd-checklist-group-record",
98
+ "vd-checklist-group-record-meta",
99
+ "vd-checklist-group-record-title",
100
+ "vd-checklist-group-record-top",
101
+ "vd-checklist-task",
102
+ "vd-checklist-task-action",
103
+ "vd-checklist-task-box",
104
+ "vd-checklist-task-detail",
105
+ "vd-checklist-task-held",
106
+ "vd-checklist-task-label",
107
+ "vd-checklist-task-skip-box",
108
+ "vd-checklist-task-skipped",
109
+ "vd-checklist-task-text",
82
110
  "vd-chip",
83
111
  "vd-chip-bg-no",
84
112
  "vd-chip-critical",
85
113
  "vd-chip-dot",
86
114
  "vd-chip-md",
115
+ "vd-chip-misc",
87
116
  "vd-chip-neutral",
88
117
  "vd-chip-primary",
89
118
  "vd-chip-sm",
90
119
  "vd-chip-success",
91
120
  "vd-chip-warning",
92
121
  "vd-chip-xs",
122
+ "vd-comment-date",
123
+ "vd-comment-date-label",
124
+ "vd-comment-item",
125
+ "vd-comment-item-author",
126
+ "vd-comment-item-body",
127
+ "vd-comment-item-text",
128
+ "vd-comment-item-time",
129
+ "vd-comment-item-top",
93
130
  "vd-composer",
94
131
  "vd-composer-actions",
95
132
  "vd-composer-body",
@@ -102,9 +139,18 @@
102
139
  "vd-composer-shell",
103
140
  "vd-composer-tags",
104
141
  "vd-composer-textarea",
142
+ "vd-content-row",
143
+ "vd-content-row-action",
144
+ "vd-content-row-actions",
145
+ "vd-content-row-status",
146
+ "vd-content-row-summary",
147
+ "vd-content-row-text",
148
+ "vd-content-row-title",
105
149
  "vd-data-row",
106
150
  "vd-data-row-action",
151
+ "vd-data-row-actions",
107
152
  "vd-data-row-field",
153
+ "vd-data-row-linked",
108
154
  "vd-data-row-status",
109
155
  "vd-data-row-value",
110
156
  "vd-divider",
@@ -117,7 +163,9 @@
117
163
  "vd-divider-metadata-value",
118
164
  "vd-dot",
119
165
  "vd-dot-critical",
166
+ "vd-dot-info",
120
167
  "vd-dot-md",
168
+ "vd-dot-misc",
121
169
  "vd-dot-neutral",
122
170
  "vd-dot-primary",
123
171
  "vd-dot-sm",
@@ -147,22 +195,72 @@
147
195
  "vd-dropdown-menu-header-label",
148
196
  "vd-dropdown-menu-search",
149
197
  "vd-dropdown-panel",
198
+ "vd-entity-header",
199
+ "vd-entity-header-facts",
200
+ "vd-entity-header-info",
201
+ "vd-entity-header-meta",
202
+ "vd-entity-header-name",
203
+ "vd-entity-header-tile",
150
204
  "vd-field-verification",
151
205
  "vd-field-verification-action",
206
+ "vd-field-verification-compact",
207
+ "vd-field-verification-critical",
152
208
  "vd-field-verification-detail",
153
209
  "vd-field-verification-details",
154
210
  "vd-field-verification-icon",
155
211
  "vd-field-verification-label",
212
+ "vd-field-verification-mark",
213
+ "vd-field-verification-meta",
156
214
  "vd-field-verification-mismatch",
157
215
  "vd-field-verification-none",
158
216
  "vd-field-verification-pending",
217
+ "vd-field-verification-resolved",
159
218
  "vd-field-verification-verified",
219
+ "vd-field-verification-warning",
160
220
  "vd-filter-segment",
161
221
  "vd-filter-segment-first",
162
222
  "vd-filter-segment-last",
163
223
  "vd-filter-segment-md",
164
224
  "vd-filter-segment-sm",
165
225
  "vd-filter-segments",
226
+ "vd-finding-card",
227
+ "vd-finding-card-decision",
228
+ "vd-finding-card-decision-meta",
229
+ "vd-finding-card-decision-note",
230
+ "vd-finding-card-decision-title",
231
+ "vd-finding-card-decision-top",
232
+ "vd-finding-card-field-label",
233
+ "vd-finding-card-footer",
234
+ "vd-finding-card-header",
235
+ "vd-finding-card-options",
236
+ "vd-finding-card-reason",
237
+ "vd-finding-card-status",
238
+ "vd-finding-card-title",
239
+ "vd-finding-option",
240
+ "vd-finding-row",
241
+ "vd-finding-row-label",
242
+ "vd-funding-status",
243
+ "vd-funding-status-dash",
244
+ "vd-funding-status-failed",
245
+ "vd-funding-status-funded",
246
+ "vd-funding-status-pending",
247
+ "vd-funding-status-refunded",
248
+ "vd-funding-total",
249
+ "vd-funding-total-actions",
250
+ "vd-funding-total-amount",
251
+ "vd-funding-total-label",
252
+ "vd-funding-total-status",
253
+ "vd-funding-total-summary",
254
+ "vd-funding-transaction",
255
+ "vd-funding-transaction-action",
256
+ "vd-funding-transaction-actions",
257
+ "vd-funding-transaction-amount",
258
+ "vd-funding-transaction-meta",
259
+ "vd-funding-transaction-method",
260
+ "vd-funding-transaction-refunded",
261
+ "vd-funding-transaction-status",
262
+ "vd-funding-transaction-summary",
263
+ "vd-funding-transaction-title",
166
264
  "vd-icon",
167
265
  "vd-icon-button",
168
266
  "vd-icon-button-inline",
@@ -183,6 +281,8 @@
183
281
  "vd-icon-size-20",
184
282
  "vd-icon-size-22",
185
283
  "vd-icon-size-24",
284
+ "vd-inline-confirm",
285
+ "vd-inline-confirm-message",
186
286
  "vd-input",
187
287
  "vd-input-bg-neutral",
188
288
  "vd-input-container",
@@ -199,6 +299,7 @@
199
299
  "vd-input-sm",
200
300
  "vd-input-xl",
201
301
  "vd-input-xs",
302
+ "vd-keycap",
202
303
  "vd-link",
203
304
  "vd-link-critical",
204
305
  "vd-link-inline",
@@ -231,10 +332,29 @@
231
332
  "vd-menu-item-shortcut",
232
333
  "vd-menu-item-sm",
233
334
  "vd-menu-item-subtitle",
335
+ "vd-menu-item-switch",
234
336
  "vd-menu-item-text",
235
337
  "vd-menu-item-tile",
236
338
  "vd-menu-item-tile-lg",
237
339
  "vd-menu-item-title",
340
+ "vd-misc-amber",
341
+ "vd-misc-blue",
342
+ "vd-misc-cyan",
343
+ "vd-misc-emerald",
344
+ "vd-misc-green",
345
+ "vd-misc-indigo",
346
+ "vd-misc-lime",
347
+ "vd-misc-orange",
348
+ "vd-misc-pink",
349
+ "vd-misc-purple",
350
+ "vd-misc-red",
351
+ "vd-misc-rose",
352
+ "vd-misc-sky",
353
+ "vd-misc-slate",
354
+ "vd-misc-stone",
355
+ "vd-misc-teal",
356
+ "vd-misc-violet",
357
+ "vd-misc-yellow",
238
358
  "vd-modal",
239
359
  "vd-modal-context",
240
360
  "vd-modal-context-text",
@@ -262,14 +382,28 @@
262
382
  "vd-nav-item-icon",
263
383
  "vd-nav-item-label",
264
384
  "vd-nav-item-status",
385
+ "vd-nav-item-status-critical",
265
386
  "vd-nav-item-status-primary",
266
387
  "vd-nav-item-status-warning",
388
+ "vd-nav-jump",
389
+ "vd-nav-jump-label",
267
390
  "vd-nav-rail",
268
391
  "vd-nav-rail-collapsed",
269
392
  "vd-nav-rail-content",
270
393
  "vd-nav-rail-footer",
271
394
  "vd-nav-rail-items",
395
+ "vd-nav-rail-peek",
272
396
  "vd-nav-rail-section",
397
+ "vd-nav-session",
398
+ "vd-nav-session-collapsed",
399
+ "vd-nav-session-dot",
400
+ "vd-nav-session-status",
401
+ "vd-nav-session-text",
402
+ "vd-nav-session-tile",
403
+ "vd-nav-session-title",
404
+ "vd-nav-split",
405
+ "vd-nav-split-main",
406
+ "vd-nav-split-toggle",
273
407
  "vd-nav-title",
274
408
  "vd-nav-title-action",
275
409
  "vd-nav-title-collapsed",
@@ -277,6 +411,17 @@
277
411
  "vd-nav-title-logo",
278
412
  "vd-nav-title-name",
279
413
  "vd-nav-title-subtitle",
414
+ "vd-nav-user",
415
+ "vd-nav-user-name",
416
+ "vd-nav-user-role",
417
+ "vd-nav-user-text",
418
+ "vd-overlay-scrim",
419
+ "vd-owner-table-header",
420
+ "vd-owner-table-header-cell",
421
+ "vd-owner-table-header-cell-main",
422
+ "vd-ownership",
423
+ "vd-ownership-summary",
424
+ "vd-ownership-summary-lead",
280
425
  "vd-pagination",
281
426
  "vd-pagination-item",
282
427
  "vd-pagination-item-active",
@@ -286,6 +431,12 @@
286
431
  "vd-pagination-status",
287
432
  "vd-pagination-status-current",
288
433
  "vd-pagination-summary",
434
+ "vd-panel-section-header",
435
+ "vd-panel-section-header-count",
436
+ "vd-panel-section-header-title",
437
+ "vd-panel-status",
438
+ "vd-panel-strip-button",
439
+ "vd-panel-strip-button-count",
289
440
  "vd-pill",
290
441
  "vd-pill-chevron",
291
442
  "vd-progress-bar",
@@ -300,6 +451,12 @@
300
451
  "vd-progress-bar-title",
301
452
  "vd-progress-bar-track",
302
453
  "vd-progress-bar-value",
454
+ "vd-progress-circle",
455
+ "vd-progress-circle-complete",
456
+ "vd-progress-circle-lg",
457
+ "vd-progress-circle-md",
458
+ "vd-progress-circle-sm",
459
+ "vd-progress-circle-xs",
303
460
  "vd-radio-select",
304
461
  "vd-radio-select-input",
305
462
  "vd-radio-select-label",
@@ -310,6 +467,16 @@
310
467
  "vd-recipient-input-lg",
311
468
  "vd-recipient-input-shell",
312
469
  "vd-recipient-input-xl",
470
+ "vd-resize-handle",
471
+ "vd-resize-handle-dragging",
472
+ "vd-resize-handle-knob",
473
+ "vd-resize-handle-readout",
474
+ "vd-resolved-row",
475
+ "vd-resolved-row-icon",
476
+ "vd-resolved-row-meta",
477
+ "vd-resolved-row-text",
478
+ "vd-resolved-row-title",
479
+ "vd-scrollbar",
313
480
  "vd-section-marker",
314
481
  "vd-section-marker-approve",
315
482
  "vd-section-marker-dot",
@@ -319,6 +486,11 @@
319
486
  "vd-segment-selector-fill",
320
487
  "vd-sensitive-data",
321
488
  "vd-sensitive-data-value",
489
+ "vd-severity-count",
490
+ "vd-severity-marker",
491
+ "vd-severity-marker-critical",
492
+ "vd-severity-marker-info",
493
+ "vd-severity-marker-review",
322
494
  "vd-skeleton",
323
495
  "vd-skeleton-button",
324
496
  "vd-skeleton-circle",
@@ -328,6 +500,14 @@
328
500
  "vd-skeleton-md",
329
501
  "vd-skeleton-rectangle",
330
502
  "vd-skeleton-sm",
503
+ "vd-snapshot-metric",
504
+ "vd-snapshot-metric-detail",
505
+ "vd-snapshot-metric-dot",
506
+ "vd-snapshot-metric-dot-open",
507
+ "vd-snapshot-metric-label",
508
+ "vd-snapshot-metric-value",
509
+ "vd-snapshot-metric-values",
510
+ "vd-snapshot-metric-values-center",
331
511
  "vd-step",
332
512
  "vd-step-active",
333
513
  "vd-step-label",
@@ -338,6 +518,10 @@
338
518
  "vd-stepper-connector-complete",
339
519
  "vd-stepper-steps",
340
520
  "vd-stepper-title",
521
+ "vd-summary-preview",
522
+ "vd-summary-preview-count",
523
+ "vd-summary-preview-label",
524
+ "vd-summary-preview-subtitle",
341
525
  "vd-switch",
342
526
  "vd-switch-input",
343
527
  "vd-tab",
@@ -354,6 +538,7 @@
354
538
  "vd-tag-count",
355
539
  "vd-tag-empty",
356
540
  "vd-tag-external",
541
+ "vd-tag-label",
357
542
  "vd-tag-lg",
358
543
  "vd-tag-md",
359
544
  "vd-tag-recipient",