@valiify/dashboard-ui 0.5.1 → 0.7.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 (68) hide show
  1. package/CHANGELOG.md +456 -1
  2. package/COMPONENTS.md +2117 -704
  3. package/README.md +40 -7
  4. package/class-manifest.json +263 -2
  5. package/dist/dashboard-ui.css +4249 -1469
  6. package/dist/index.css +4056 -1453
  7. package/package.json +9 -8
  8. package/src/components/add-funds-form.css +69 -0
  9. package/src/components/alert.css +33 -56
  10. package/src/components/avatar.css +38 -2
  11. package/src/components/button.css +52 -29
  12. package/src/components/card.css +1 -1
  13. package/src/components/checklist-group.css +116 -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 +133 -0
  19. package/src/components/data-list.css +91 -0
  20. package/src/components/data-row.css +84 -19
  21. package/src/components/dropdown-field.css +9 -0
  22. package/src/components/dropdown-menu.css +6 -2
  23. package/src/components/entity-header.css +61 -0
  24. package/src/components/field-verification.css +118 -38
  25. package/src/components/final-decision.css +51 -0
  26. package/src/components/finding-card.css +157 -0
  27. package/src/components/finding-option.css +45 -0
  28. package/src/components/finding-row.css +45 -0
  29. package/src/components/funding-status.css +61 -0
  30. package/src/components/funding-total.css +57 -0
  31. package/src/components/funding-transaction.css +108 -0
  32. package/src/components/index.css +36 -0
  33. package/src/components/inline-confirm.css +42 -0
  34. package/src/components/input.css +19 -0
  35. package/src/components/keycap.css +27 -0
  36. package/src/components/menu-item.css +38 -10
  37. package/src/components/modal.css +29 -2
  38. package/src/components/navigation-rail.css +322 -2
  39. package/src/components/overlay-scrim.css +26 -0
  40. package/src/components/owner-row.css +170 -0
  41. package/src/components/owner-table-header.css +57 -0
  42. package/src/components/ownership.css +73 -0
  43. package/src/components/panel-section-header.css +56 -0
  44. package/src/components/panel-status.css +23 -0
  45. package/src/components/panel-strip-button.css +31 -0
  46. package/src/components/progress-circle.css +89 -0
  47. package/src/components/radio-select.css +5 -2
  48. package/src/components/record.css +56 -0
  49. package/src/components/resize-handle.css +131 -0
  50. package/src/components/resolved-row.css +50 -0
  51. package/src/components/scoring-details.css +79 -0
  52. package/src/components/scrollbar.css +47 -0
  53. package/src/components/section-edit.css +109 -0
  54. package/src/components/severity-count.css +63 -0
  55. package/src/components/severity-marker.css +66 -0
  56. package/src/components/snapshot-metric.css +72 -0
  57. package/src/components/step.css +1 -1
  58. package/src/components/summary-panel.css +250 -0
  59. package/src/components/summary-preview.css +76 -0
  60. package/src/components/switch.css +10 -1
  61. package/src/components/tabs.css +3 -2
  62. package/src/components/tag.css +24 -2
  63. package/src/components/textarea.css +4 -0
  64. package/src/components/toast.css +10 -6
  65. package/src/components/tooltip.css +14 -8
  66. package/src/themes/valiify-tokens.css +241 -7
  67. package/src/themes/valiify.css +244 -7
  68. package/types/components.d.ts +386 -9
@@ -50,7 +50,7 @@ export type ButtonSize =
50
50
  | "vd-btn-md"
51
51
  | "vd-btn-lg"
52
52
  | "vd-btn-xl";
53
- export type ButtonClass = "vd-btn" | ButtonVariant | ButtonSize | "vd-with-ring";
53
+ export type ButtonClass = "vd-btn" | ButtonVariant | ButtonSize | "vd-btn-blocked" | "vd-with-ring";
54
54
 
55
55
  // Chip component classes
56
56
  export type ChipVariant =
@@ -86,7 +86,35 @@ export type BadgeBg = "vd-badge-bg-no";
86
86
  export type ChipSize = "vd-chip-xs" | "vd-chip-sm" | "vd-chip-md";
87
87
  export type BadgeSize = "vd-badge-xs" | "vd-badge-sm" | "vd-badge-md";
88
88
  export type DotSize = "vd-dot-xs" | "vd-dot-sm" | "vd-dot-md";
89
+ /** The 18-hue misc palette (0.6.0): pair with vd-chip-misc / vd-badge-misc / vd-dot-misc. */
90
+ export type MiscHue =
91
+ | "vd-misc-blue"
92
+ | "vd-misc-indigo"
93
+ | "vd-misc-violet"
94
+ | "vd-misc-purple"
95
+ | "vd-misc-pink"
96
+ | "vd-misc-rose"
97
+ | "vd-misc-red"
98
+ | "vd-misc-orange"
99
+ | "vd-misc-amber"
100
+ | "vd-misc-yellow"
101
+ | "vd-misc-lime"
102
+ | "vd-misc-green"
103
+ | "vd-misc-emerald"
104
+ | "vd-misc-teal"
105
+ | "vd-misc-cyan"
106
+ | "vd-misc-sky"
107
+ | "vd-misc-slate"
108
+ | "vd-misc-stone";
109
+ export type MiscColorClass =
110
+ | "vd-chip-misc"
111
+ | "vd-badge-misc"
112
+ | "vd-dot-misc"
113
+ | "vd-dot-info"
114
+ | MiscHue;
115
+
89
116
  export type ChipClass =
117
+ | MiscColorClass
90
118
  | "vd-chip"
91
119
  | ChipVariant
92
120
  | ChipPart
@@ -170,7 +198,8 @@ export type MenuItemTrailing =
170
198
  | "vd-menu-item-chevron"
171
199
  | "vd-menu-item-chevron-left"
172
200
  | "vd-menu-item-shortcut"
173
- | "vd-menu-item-action";
201
+ | "vd-menu-item-action"
202
+ | "vd-menu-item-switch";
174
203
  export type MenuItemPart =
175
204
  | "vd-menu-item"
176
205
  | "vd-menu-item-text"
@@ -227,7 +256,8 @@ export type DropdownFieldClass =
227
256
  /** 0.5.0: 12 / 16 / 20 / 28 / 34 — lg was 34 (now xl), xs was 16 (now sm). */
228
257
  export type AvatarSize = "vd-avatar-xs" | "vd-avatar-sm" | "vd-avatar-md" | "vd-avatar-lg" | "vd-avatar-xl";
229
258
  export type AvatarState = "vd-avatar-disabled" | "vd-with-ring";
230
- export type AvatarClass = "vd-avatar" | AvatarSize | AvatarState;
259
+ export type AvatarShape = "vd-avatar-square";
260
+ export type AvatarClass = "vd-avatar" | AvatarSize | AvatarState | AvatarShape;
231
261
 
232
262
  // Pill component classes
233
263
  export type PillPart = "vd-pill" | "vd-pill-chevron";
@@ -239,7 +269,7 @@ export type PillClass = PillPart | PillState;
239
269
  * sm/md/lg bind XS/SM/LG. */
240
270
  export type TagSize = "vd-tag-xs" | "vd-tag-sm" | "vd-tag-md" | "vd-tag-lg";
241
271
  /** Figma Kind axis. md exists for the default kind only. */
242
- export type TagKind = "vd-tag-recipient" | "vd-tag-empty";
272
+ export type TagKind = "vd-tag-recipient" | "vd-tag-empty" | "vd-tag-label";
243
273
  /** vd-tag-flag was REMOVED in 0.5.0 — the External status is a nested XS
244
274
  * `.vd-chip vd-chip-neutral` inside a tag that hugs to 24. */
245
275
  export type TagPart = "vd-tag" | "vd-tag-count";
@@ -342,13 +372,19 @@ export type FieldVerificationState =
342
372
  | "vd-field-verification-verified"
343
373
  | "vd-field-verification-pending"
344
374
  | "vd-field-verification-none"
345
- | "vd-field-verification-mismatch";
375
+ | "vd-field-verification-mismatch"
376
+ | "vd-field-verification-compact"
377
+ | "vd-field-verification-warning"
378
+ | "vd-field-verification-critical"
379
+ | "vd-field-verification-resolved";
346
380
  export type FieldVerificationPart =
347
381
  | "vd-field-verification-icon"
348
382
  | "vd-field-verification-label"
349
383
  | "vd-field-verification-details"
350
384
  | "vd-field-verification-detail"
351
- | "vd-field-verification-action";
385
+ | "vd-field-verification-action"
386
+ | "vd-field-verification-mark"
387
+ | "vd-field-verification-meta";
352
388
  export type FieldVerificationClass =
353
389
  | "vd-field-verification"
354
390
  | FieldVerificationState
@@ -477,7 +513,13 @@ export type DataRowPart =
477
513
  /** Additive: stretches the Field Verification slot, like segment-selector-fill. */
478
514
  | "vd-data-row-status"
479
515
  | "vd-data-row-action";
480
- export type DataRowClass = "vd-data-row" | DataRowPart | "vd-with-ring";
516
+ export type DataRowClass =
517
+ | "vd-data-row"
518
+ | DataRowPart
519
+ | "vd-data-row-actions"
520
+ | "vd-data-row-linked"
521
+ | "vd-data-row-previous"
522
+ | "vd-with-ring";
481
523
 
482
524
  // Checkbox component classes
483
525
  // The control is a native <input type="checkbox"> inside a real <label>; every
@@ -504,7 +546,31 @@ export type SkeletonSize = "vd-skeleton-sm" | "vd-skeleton-md" | "vd-skeleton-lg
504
546
  export type SkeletonClass = "vd-skeleton" | SkeletonShape | SkeletonSize;
505
547
 
506
548
  // NavigationRail component classes
507
- export type NavigationRailClass = "vd-nav-rail";
549
+ export type NavigationRailClass =
550
+ | "vd-nav-rail"
551
+ | "vd-nav-rail-peek"
552
+ | "vd-nav-item-status-critical"
553
+ | "vd-nav-split"
554
+ | "vd-nav-split-main"
555
+ | "vd-nav-split-toggle"
556
+ | "vd-nav-jump"
557
+ | "vd-nav-jump-label"
558
+ | "vd-nav-session"
559
+ | "vd-nav-session-collapsed"
560
+ | "vd-nav-session-tile"
561
+ | "vd-nav-session-text"
562
+ | "vd-nav-session-title"
563
+ | "vd-nav-session-status"
564
+ | "vd-nav-session-dot"
565
+ | "vd-nav-user"
566
+ | "vd-nav-user-text"
567
+ | "vd-nav-user-name"
568
+ | "vd-nav-user-role"
569
+ | "vd-nav-user-collapsed"
570
+ | "vd-nav-section-header"
571
+ | "vd-nav-section-header-action"
572
+ | "vd-nav-rail-sidebar"
573
+ | "vd-nav-rail-actions";
508
574
 
509
575
  // Composer component classes — Comment Composer 1289:3690 (xl; a FLOOR component)
510
576
  export type ComposerPart =
@@ -559,6 +625,317 @@ export type TypeStyleClass =
559
625
  | "vd-text-utility-badge-count"
560
626
  | "vd-text-display-metric";
561
627
 
628
+ // ResizeHandle component classes
629
+ export type ResizeHandleClass =
630
+ | "vd-resize-handle"
631
+ | "vd-resize-handle-knob"
632
+ | "vd-resize-handle-readout"
633
+ | "vd-resize-handle-dragging";
634
+
635
+ // SeverityMarker component classes
636
+ export type SeverityMarkerClass =
637
+ | "vd-severity-marker"
638
+ | "vd-severity-marker-critical"
639
+ | "vd-severity-marker-review"
640
+ | "vd-severity-marker-info";
641
+
642
+ // SeverityCount component classes
643
+ export type SeverityCountClass =
644
+ | "vd-severity-count"
645
+ | "vd-severity-count-flush";
646
+
647
+ // ProgressCircle component classes
648
+ export type ProgressCircleClass =
649
+ | "vd-progress-circle"
650
+ | "vd-progress-circle-xs"
651
+ | "vd-progress-circle-sm"
652
+ | "vd-progress-circle-md"
653
+ | "vd-progress-circle-lg"
654
+ | "vd-progress-circle-complete";
655
+
656
+ // Keycap component classes
657
+ export type KeycapClass =
658
+ | "vd-keycap";
659
+
660
+ // Scrollbar component classes
661
+ export type ScrollbarClass =
662
+ | "vd-scrollbar";
663
+
664
+ // OverlayScrim component classes
665
+ export type OverlayScrimClass =
666
+ | "vd-overlay-scrim";
667
+
668
+ // ContentRow component classes
669
+ export type ContentRowClass =
670
+ | "vd-content-row"
671
+ | "vd-content-row-text"
672
+ | "vd-content-row-title"
673
+ | "vd-content-row-summary"
674
+ | "vd-content-row-status"
675
+ | "vd-content-row-actions"
676
+ | "vd-content-row-action"
677
+ | "vd-content-row-linked"
678
+ | "vd-with-ring";
679
+
680
+ // SummaryPreview component classes
681
+ export type SummaryPreviewClass =
682
+ | "vd-summary-preview"
683
+ | "vd-summary-preview-label"
684
+ | "vd-summary-preview-subtitle"
685
+ | "vd-summary-preview-count"
686
+ | "vd-with-ring";
687
+
688
+ // SnapshotMetric component classes
689
+ export type SnapshotMetricClass =
690
+ | "vd-snapshot-metric"
691
+ | "vd-snapshot-metric-label"
692
+ | "vd-snapshot-metric-values"
693
+ | "vd-snapshot-metric-values-center"
694
+ | "vd-snapshot-metric-value"
695
+ | "vd-snapshot-metric-detail"
696
+ | "vd-snapshot-metric-dot"
697
+ | "vd-snapshot-metric-dot-open";
698
+
699
+ // EntityHeader component classes
700
+ export type EntityHeaderClass =
701
+ | "vd-entity-header"
702
+ | "vd-entity-header-tile"
703
+ | "vd-entity-header-info"
704
+ | "vd-entity-header-name"
705
+ | "vd-entity-header-meta"
706
+ | "vd-entity-header-facts";
707
+
708
+ // Ownership component classes
709
+ export type OwnershipClass =
710
+ | "vd-ownership"
711
+ | "vd-ownership-summary"
712
+ | "vd-ownership-summary-lead";
713
+
714
+ // OwnerTableHeader component classes
715
+ export type OwnerTableHeaderClass =
716
+ | "vd-owner-table-header"
717
+ | "vd-owner-table-header-cell"
718
+ | "vd-owner-table-header-cell-main";
719
+
720
+ // PanelStatus component classes
721
+ export type PanelStatusClass =
722
+ | "vd-panel-status";
723
+
724
+ // PanelSectionHeader component classes
725
+ export type PanelSectionHeaderClass =
726
+ | "vd-panel-section-header"
727
+ | "vd-panel-section-header-title"
728
+ | "vd-panel-section-header-count";
729
+
730
+ // PanelStripButton component classes
731
+ export type PanelStripButtonClass =
732
+ | "vd-panel-strip-button"
733
+ | "vd-panel-strip-button-count";
734
+
735
+ // FindingRow component classes
736
+ export type FindingRowClass =
737
+ | "vd-finding-row"
738
+ | "vd-finding-row-label";
739
+
740
+ // FindingCard component classes
741
+ export type FindingCardClass =
742
+ | "vd-finding-card"
743
+ | "vd-finding-card-header"
744
+ | "vd-finding-card-title"
745
+ | "vd-finding-card-reason"
746
+ | "vd-finding-card-options"
747
+ | "vd-finding-card-field-label"
748
+ | "vd-finding-card-footer"
749
+ | "vd-finding-card-decision"
750
+ | "vd-finding-card-decision-top"
751
+ | "vd-finding-card-decision-title"
752
+ | "vd-finding-card-decision-meta"
753
+ | "vd-finding-card-decision-note"
754
+ | "vd-finding-card-status";
755
+
756
+ // FindingOption component classes
757
+ export type FindingOptionClass =
758
+ | "vd-finding-option";
759
+
760
+ // ResolvedRow component classes
761
+ export type ResolvedRowClass =
762
+ | "vd-resolved-row"
763
+ | "vd-resolved-row-icon"
764
+ | "vd-resolved-row-text"
765
+ | "vd-resolved-row-title"
766
+ | "vd-resolved-row-meta";
767
+
768
+ // CommentItem component classes
769
+ export type CommentItemClass =
770
+ | "vd-comment-item"
771
+ | "vd-comment-item-top"
772
+ | "vd-comment-item-author"
773
+ | "vd-comment-item-time"
774
+ | "vd-comment-item-body"
775
+ | "vd-comment-item-text";
776
+
777
+ // CommentDate component classes
778
+ export type CommentDateClass =
779
+ | "vd-comment-date"
780
+ | "vd-comment-date-label";
781
+
782
+ // ChecklistGroup component classes
783
+ export type ChecklistGroupClass =
784
+ | "vd-checklist-group"
785
+ | "vd-checklist-group-open"
786
+ | "vd-checklist-group-header"
787
+ | "vd-checklist-group-name"
788
+ | "vd-checklist-group-count"
789
+ | "vd-checklist-group-footer"
790
+ | "vd-checklist-group-record"
791
+ | "vd-checklist-group-record-top"
792
+ | "vd-checklist-group-record-title"
793
+ | "vd-checklist-group-record-meta"
794
+ | "vd-checklist-group-more";
795
+
796
+ // ChecklistTask component classes
797
+ export type ChecklistTaskClass =
798
+ | "vd-checklist-task"
799
+ | "vd-checklist-task-held"
800
+ | "vd-checklist-task-skipped"
801
+ | "vd-checklist-task-box"
802
+ | "vd-checklist-task-text"
803
+ | "vd-checklist-task-label"
804
+ | "vd-checklist-task-detail"
805
+ | "vd-checklist-task-action"
806
+ | "vd-checklist-task-skip-box";
807
+
808
+ // FundingStatus component classes
809
+ export type FundingStatusClass =
810
+ | "vd-funding-status"
811
+ | "vd-funding-status-dash"
812
+ | "vd-funding-status-pending"
813
+ | "vd-funding-status-funded"
814
+ | "vd-funding-status-refunded"
815
+ | "vd-funding-status-failed";
816
+
817
+ // FundingTransaction component classes
818
+ export type FundingTransactionClass =
819
+ | "vd-funding-transaction"
820
+ | "vd-funding-transaction-refunded"
821
+ | "vd-funding-transaction-summary"
822
+ | "vd-funding-transaction-title"
823
+ | "vd-funding-transaction-method"
824
+ | "vd-funding-transaction-meta"
825
+ | "vd-funding-transaction-amount"
826
+ | "vd-funding-transaction-status"
827
+ | "vd-funding-transaction-actions"
828
+ | "vd-funding-transaction-action";
829
+
830
+ // FundingTotal component classes
831
+ export type FundingTotalClass =
832
+ | "vd-funding-total"
833
+ | "vd-funding-total-summary"
834
+ | "vd-funding-total-label"
835
+ | "vd-funding-total-amount"
836
+ | "vd-funding-total-status"
837
+ | "vd-funding-total-actions";
838
+
839
+ // AddFundsForm component classes
840
+ export type AddFundsFormClass =
841
+ | "vd-add-funds-form"
842
+ | "vd-add-funds-form-header"
843
+ | "vd-add-funds-form-title"
844
+ | "vd-add-funds-form-hint"
845
+ | "vd-add-funds-form-fields"
846
+ | "vd-add-funds-form-actions";
847
+
848
+ // InlineConfirm component classes
849
+ export type InlineConfirmClass =
850
+ | "vd-inline-confirm"
851
+ | "vd-inline-confirm-message";
852
+
853
+ // Record component classes
854
+ export type RecordClass =
855
+ | "vd-record";
856
+
857
+ // OwnerRow component classes
858
+ export type OwnerRowClass =
859
+ | "vd-owner-row"
860
+ | "vd-owner-row-main"
861
+ | "vd-owner-row-tile"
862
+ | "vd-owner-row-text"
863
+ | "vd-owner-row-name"
864
+ | "vd-owner-row-meta"
865
+ | "vd-owner-row-status"
866
+ | "vd-owner-row-actions"
867
+ | "vd-owner-row-linked";
868
+
869
+ // DataList component classes
870
+ export type DataListClass =
871
+ | "vd-data-list"
872
+ | "vd-data-list-header"
873
+ | "vd-data-list-header-title"
874
+ | "vd-data-list-header-action"
875
+ | "vd-data-list-heading"
876
+ | "vd-data-list-heading-icon"
877
+ | "vd-data-list-heading-title";
878
+
879
+ // FinalDecision component classes
880
+ export type FinalDecisionClass =
881
+ | "vd-final-decision"
882
+ | "vd-final-decision-mark"
883
+ | "vd-final-decision-text"
884
+ | "vd-final-decision-title"
885
+ | "vd-final-decision-detail";
886
+
887
+ // SummaryPanel component classes
888
+ export type SummaryPanelClass =
889
+ | "vd-summary-panel"
890
+ | "vd-summary-panel-section"
891
+ | "vd-summary-panel-title"
892
+ | "vd-summary-panel-rows"
893
+ | "vd-summary-panel-row"
894
+ | "vd-summary-panel-row-label"
895
+ | "vd-summary-panel-row-value"
896
+ | "vd-summary-panel-row-meta"
897
+ | "vd-summary-panel-row-button"
898
+ | "vd-summary-panel-row-chevron"
899
+ | "vd-summary-panel-tags"
900
+ | "vd-summary-panel-score"
901
+ | "vd-summary-panel-score-head"
902
+ | "vd-summary-panel-score-value"
903
+ | "vd-summary-panel-score-text"
904
+ | "vd-summary-panel-score-label"
905
+ | "vd-summary-panel-score-detail"
906
+ | "vd-summary-panel-score-bar"
907
+ | "vd-summary-panel-score-segment"
908
+ | "vd-summary-panel-findings"
909
+ | "vd-summary-panel-findings-text"
910
+ | "vd-summary-panel-findings-title"
911
+ | "vd-summary-panel-findings-counts"
912
+ | "vd-summary-panel-findings-count"
913
+ | "vd-summary-panel-product"
914
+ | "vd-summary-panel-product-id"
915
+ | "vd-summary-panel-note";
916
+
917
+ // ScoringDetails component classes
918
+ export type ScoringDetailsClass =
919
+ | "vd-scoring-details"
920
+ | "vd-scoring-details-summary"
921
+ | "vd-scoring-details-rules"
922
+ | "vd-scoring-details-rule"
923
+ | "vd-scoring-details-points";
924
+
925
+ // SectionEdit component classes
926
+ export type SectionEditClass =
927
+ | "vd-section-edit"
928
+ | "vd-section-edit-header"
929
+ | "vd-section-edit-title"
930
+ | "vd-section-edit-hint"
931
+ | "vd-section-edit-group"
932
+ | "vd-section-edit-group-title"
933
+ | "vd-section-edit-row"
934
+ | "vd-section-edit-toggle"
935
+ | "vd-section-edit-footer"
936
+ | "vd-section-edit-reason"
937
+ | "vd-section-edit-note";
938
+
562
939
  // Union of all component classes
563
940
  export type ValiifyComponentClass =
564
941
  | InputClass
@@ -601,7 +978,7 @@ export type ValiifyComponentClass =
601
978
  | CheckboxClass
602
979
  | SkeletonClass
603
980
  | NavigationRailClass | ComposerClass | RecipientInputClass
604
- | TypeStyleClass;
981
+ | TypeStyleClass | ResizeHandleClass | SeverityMarkerClass | SeverityCountClass | ProgressCircleClass | KeycapClass | ScrollbarClass | OverlayScrimClass | ContentRowClass | SummaryPreviewClass | SnapshotMetricClass | EntityHeaderClass | OwnershipClass | OwnerTableHeaderClass | PanelStatusClass | PanelSectionHeaderClass | PanelStripButtonClass | FindingRowClass | FindingCardClass | FindingOptionClass | ResolvedRowClass | CommentItemClass | CommentDateClass | ChecklistGroupClass | ChecklistTaskClass | FundingStatusClass | FundingTransactionClass | FundingTotalClass | AddFundsFormClass | InlineConfirmClass | RecordClass | OwnerRowClass | DataListClass | FinalDecisionClass | SummaryPanelClass | ScoringDetailsClass | SectionEditClass;
605
982
 
606
983
  // Helper type for combining classes
607
984
  export type ComponentClassName = ValiifyComponentClass | string;