@adia-ai/a2ui-corpus 0.0.1 → 0.0.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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "generated_at": "2026-04-24T13:58:00.287Z",
2
+ "generated_at": "2026-04-24T16:21:02.400Z",
3
3
  "stats": {
4
- "total": 109,
4
+ "total": 113,
5
5
  "by_domain": {
6
6
  "agent": 9,
7
- "data": 21,
7
+ "data": 25,
8
8
  "forms": 33,
9
9
  "layout": 40,
10
10
  "navigation": 5,
@@ -12,9 +12,9 @@
12
12
  },
13
13
  "by_complexity": {
14
14
  "primitive": 4,
15
- "composed": 60,
16
- "simple": 33,
17
- "complex": 12
15
+ "composed": 62,
16
+ "simple": 34,
17
+ "complex": 13
18
18
  }
19
19
  },
20
20
  "patterns": [
@@ -78,11 +78,26 @@
78
78
  "domain": "layout",
79
79
  "file": "layout/calendar-view.json"
80
80
  },
81
+ {
82
+ "name": "chart-card-with-trend-footer",
83
+ "domain": "data",
84
+ "file": "data/chart-card-with-trend-footer.json"
85
+ },
81
86
  {
82
87
  "name": "chart-dashboard",
83
88
  "domain": "data",
84
89
  "file": "data/chart-dashboard.json"
85
90
  },
91
+ {
92
+ "name": "chart-grid-with-kpis",
93
+ "domain": "data",
94
+ "file": "data/chart-grid-with-kpis.json"
95
+ },
96
+ {
97
+ "name": "chart-with-filter-pills",
98
+ "domain": "data",
99
+ "file": "data/chart-with-filter-pills.json"
100
+ },
86
101
  {
87
102
  "name": "chat-interface",
88
103
  "domain": "agent",
@@ -468,6 +483,11 @@
468
483
  "domain": "data",
469
484
  "file": "data/stat-cards.json"
470
485
  },
486
+ {
487
+ "name": "stat-with-sparkline",
488
+ "domain": "data",
489
+ "file": "data/stat-with-sparkline.json"
490
+ },
471
491
  {
472
492
  "name": "streaming-response",
473
493
  "domain": "agent",
@@ -746,6 +766,8 @@
746
766
  ],
747
767
  "dashboard": [
748
768
  "admin-dashboard-with-charts",
769
+ "chart-grid-with-kpis",
770
+ "chart-with-filter-pills",
749
771
  "dashboard",
750
772
  "progress-dashboard",
751
773
  "stat-cards",
@@ -753,7 +775,10 @@
753
775
  ],
754
776
  "analytics": [
755
777
  "admin-dashboard-with-charts",
756
- "chart-dashboard"
778
+ "chart-card-with-trend-footer",
779
+ "chart-dashboard",
780
+ "chart-grid-with-kpis",
781
+ "chart-with-filter-pills"
757
782
  ],
758
783
  "charts": [
759
784
  "admin-dashboard-with-charts"
@@ -768,8 +793,11 @@
768
793
  ],
769
794
  "kpi": [
770
795
  "admin-dashboard-with-charts",
796
+ "chart-card-with-trend-footer",
797
+ "chart-grid-with-kpis",
771
798
  "progress-dashboard",
772
- "stat-cards"
799
+ "stat-cards",
800
+ "stat-with-sparkline"
773
801
  ],
774
802
  "reports": [
775
803
  "admin-dashboard-with-charts"
@@ -783,7 +811,8 @@
783
811
  "overview": [
784
812
  "admin-dashboard-with-charts",
785
813
  "dashboard",
786
- "feature-grid"
814
+ "feature-grid",
815
+ "stat-with-sparkline"
787
816
  ],
788
817
  "monitoring": [
789
818
  "admin-dashboard-with-charts",
@@ -796,7 +825,8 @@
796
825
  "admin-dashboard-with-charts"
797
826
  ],
798
827
  "revenue": [
799
- "admin-dashboard-with-charts"
828
+ "admin-dashboard-with-charts",
829
+ "chart-card-with-trend-footer"
800
830
  ],
801
831
  "users": [
802
832
  "admin-dashboard-with-charts",
@@ -878,12 +908,30 @@
878
908
  "bookmark-list-categories"
879
909
  ],
880
910
  "chart": [
881
- "chart-dashboard"
911
+ "chart-card-with-trend-footer",
912
+ "chart-dashboard",
913
+ "chart-grid-with-kpis",
914
+ "chart-with-filter-pills",
915
+ "stat-with-sparkline"
882
916
  ],
883
- "graph": [
917
+ "trend": [
918
+ "chart-card-with-trend-footer",
919
+ "chart-grid-with-kpis"
920
+ ],
921
+ "card": [
922
+ "chart-card-with-trend-footer",
923
+ "image-gallery",
924
+ "product-card"
925
+ ],
926
+ "sales": [
927
+ "chart-card-with-trend-footer",
884
928
  "chart-dashboard"
885
929
  ],
886
930
  "report": [
931
+ "chart-card-with-trend-footer",
932
+ "chart-dashboard"
933
+ ],
934
+ "graph": [
887
935
  "chart-dashboard"
888
936
  ],
889
937
  "data": [
@@ -892,8 +940,32 @@
892
940
  "data-table-view",
893
941
  "pagination-table"
894
942
  ],
895
- "sales": [
896
- "chart-dashboard"
943
+ "stats": [
944
+ "chart-grid-with-kpis"
945
+ ],
946
+ "sparkline": [
947
+ "chart-grid-with-kpis",
948
+ "stat-with-sparkline"
949
+ ],
950
+ "reporting": [
951
+ "chart-grid-with-kpis"
952
+ ],
953
+ "filter": [
954
+ "chart-with-filter-pills",
955
+ "notification-filters",
956
+ "price-range-filter",
957
+ "search-filters"
958
+ ],
959
+ "pills": [
960
+ "chart-with-filter-pills"
961
+ ],
962
+ "time-range": [
963
+ "chart-with-filter-pills",
964
+ "notification-filters"
965
+ ],
966
+ "segmented": [
967
+ "chart-with-filter-pills",
968
+ "segmented-control"
897
969
  ],
898
970
  "panel": [
899
971
  "dashboard",
@@ -1177,15 +1249,20 @@
1177
1249
  "restaurant-menu"
1178
1250
  ],
1179
1251
  "stat": [
1180
- "stat-cards"
1252
+ "stat-cards",
1253
+ "stat-with-sparkline"
1181
1254
  ],
1182
1255
  "metric": [
1183
1256
  "stat-cards",
1257
+ "stat-with-sparkline",
1184
1258
  "weather-widget"
1185
1259
  ],
1186
1260
  "numbers": [
1187
1261
  "stat-cards"
1188
1262
  ],
1263
+ "summary": [
1264
+ "stat-with-sparkline"
1265
+ ],
1189
1266
  "team": [
1190
1267
  "avatar-group",
1191
1268
  "team-activity",
@@ -1496,11 +1573,6 @@
1496
1573
  "filters": [
1497
1574
  "notification-filters"
1498
1575
  ],
1499
- "filter": [
1500
- "notification-filters",
1501
- "price-range-filter",
1502
- "search-filters"
1503
- ],
1504
1576
  "notifications": [
1505
1577
  "accordion-settings",
1506
1578
  "notification-filters"
@@ -1517,9 +1589,6 @@
1517
1589
  "priority": [
1518
1590
  "notification-filters"
1519
1591
  ],
1520
- "time-range": [
1521
- "notification-filters"
1522
- ],
1523
1592
  "digest": [
1524
1593
  "notification-filters"
1525
1594
  ],
@@ -2055,10 +2124,6 @@
2055
2124
  "masonry": [
2056
2125
  "image-gallery"
2057
2126
  ],
2058
- "card": [
2059
- "image-gallery",
2060
- "product-card"
2061
- ],
2062
2127
  "columns": [
2063
2128
  "image-gallery"
2064
2129
  ],
@@ -2384,9 +2449,6 @@
2384
2449
  "section-page": [
2385
2450
  "section-subnav"
2386
2451
  ],
2387
- "segmented": [
2388
- "segmented-control"
2389
- ],
2390
2452
  "selector": [
2391
2453
  "segmented-control"
2392
2454
  ]
@@ -2426,7 +2488,9 @@
2426
2488
  "bookmark-list",
2427
2489
  "bookmark-list-categories",
2428
2490
  "calendar-view",
2491
+ "chart-card-with-trend-footer",
2429
2492
  "chart-dashboard",
2493
+ "chart-with-filter-pills",
2430
2494
  "chat-interface",
2431
2495
  "code-block",
2432
2496
  "color-picker-demo",
@@ -2482,6 +2546,7 @@
2482
2546
  "sidebar-nav",
2483
2547
  "slider-range",
2484
2548
  "social-post",
2549
+ "stat-with-sparkline",
2485
2550
  "streaming-response",
2486
2551
  "survey-rating-scales",
2487
2552
  "tabs-panels",
@@ -2511,6 +2576,8 @@
2511
2576
  "badge-showcase",
2512
2577
  "bookmark-list",
2513
2578
  "bookmark-list-categories",
2579
+ "chart-card-with-trend-footer",
2580
+ "chart-with-filter-pills",
2514
2581
  "chat-interface",
2515
2582
  "color-theme-builder",
2516
2583
  "command-palette",
@@ -2635,6 +2702,7 @@
2635
2702
  "radio-group-selection",
2636
2703
  "slider-range",
2637
2704
  "split-pane",
2705
+ "stat-with-sparkline",
2638
2706
  "streaming-response",
2639
2707
  "toast-notification",
2640
2708
  "volume-control"
@@ -2660,14 +2728,21 @@
2660
2728
  ],
2661
2729
  "visualization": [
2662
2730
  "admin-dashboard-with-charts",
2663
- "chart-dashboard"
2731
+ "chart-card-with-trend-footer",
2732
+ "chart-dashboard",
2733
+ "chart-grid-with-kpis",
2734
+ "chart-with-filter-pills",
2735
+ "stat-with-sparkline"
2664
2736
  ],
2665
2737
  "data-display": [
2666
2738
  "admin-dashboard-with-charts",
2667
2739
  "api-key-table",
2668
2740
  "bookmark-list",
2669
2741
  "bookmark-list-categories",
2742
+ "chart-card-with-trend-footer",
2670
2743
  "chart-dashboard",
2744
+ "chart-grid-with-kpis",
2745
+ "chart-with-filter-pills",
2671
2746
  "dashboard",
2672
2747
  "data-table-view",
2673
2748
  "email-inbox",
@@ -2680,13 +2755,15 @@
2680
2755
  "pagination-table",
2681
2756
  "progress-dashboard",
2682
2757
  "restaurant-menu",
2683
- "stat-cards"
2758
+ "stat-cards",
2759
+ "stat-with-sparkline"
2684
2760
  ],
2685
2761
  "complexity:complex": [
2686
2762
  "accordion-settings",
2687
2763
  "admin-dashboard-with-charts",
2688
2764
  "bleed-design-settings",
2689
2765
  "chart-dashboard",
2766
+ "chart-grid-with-kpis",
2690
2767
  "drawer-panel",
2691
2768
  "kanban-board",
2692
2769
  "pricing-tiers",
@@ -2697,6 +2774,7 @@
2697
2774
  ],
2698
2775
  "layout:grid": [
2699
2776
  "admin-dashboard-with-charts",
2777
+ "chart-grid-with-kpis",
2700
2778
  "image-gallery",
2701
2779
  "kanban-board",
2702
2780
  "metrics",
@@ -2707,6 +2785,7 @@
2707
2785
  ],
2708
2786
  "filter": [
2709
2787
  "admin-dashboard-with-charts",
2788
+ "chart-with-filter-pills",
2710
2789
  "notification-filters",
2711
2790
  "search-filters"
2712
2791
  ],
@@ -2732,6 +2811,23 @@
2732
2811
  "click-navigate": [
2733
2812
  "bookmark-list"
2734
2813
  ],
2814
+ "trend-reporting": [
2815
+ "chart-card-with-trend-footer"
2816
+ ],
2817
+ "dashboard": [
2818
+ "chart-grid-with-kpis",
2819
+ "weather-widget"
2820
+ ],
2821
+ "filtering": [
2822
+ "chart-with-filter-pills",
2823
+ "date-range-picker",
2824
+ "notification-filters",
2825
+ "price-range-filter",
2826
+ "search-filters"
2827
+ ],
2828
+ "time-range": [
2829
+ "chart-with-filter-pills"
2830
+ ],
2735
2831
  "layout:two-column": [
2736
2832
  "dashboard"
2737
2833
  ],
@@ -2791,6 +2887,9 @@
2791
2887
  "catalog": [
2792
2888
  "restaurant-menu"
2793
2889
  ],
2890
+ "kpi": [
2891
+ "stat-with-sparkline"
2892
+ ],
2794
2893
  "social": [
2795
2894
  "avatar-group",
2796
2895
  "social-post",
@@ -2907,12 +3006,6 @@
2907
3006
  "checkout": [
2908
3007
  "credit-card-payment"
2909
3008
  ],
2910
- "filtering": [
2911
- "date-range-picker",
2912
- "notification-filters",
2913
- "price-range-filter",
2914
- "search-filters"
2915
- ],
2916
3009
  "file-management": [
2917
3010
  "file-upload-form",
2918
3011
  "file-upload-gallery"
@@ -3219,9 +3312,6 @@
3219
3312
  "tooltip": [
3220
3313
  "tooltip-buttons"
3221
3314
  ],
3222
- "dashboard": [
3223
- "weather-widget"
3224
- ],
3225
3315
  "section-layout": [
3226
3316
  "section-subnav"
3227
3317
  ],
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "../_schema.json",
3
+ "name": "chart-card-with-trend-footer",
4
+ "version": 1,
5
+ "domain": "data",
6
+ "description": "Chart in a card with heading/description, chart body, and a footer showing trend stat and period caption. Canonical shadcn-style composition adapted for AdiaUI primitives.",
7
+ "tags": {
8
+ "purpose": [
9
+ "visualization",
10
+ "data-display",
11
+ "trend-reporting"
12
+ ],
13
+ "complexity": "composed",
14
+ "layout": "single-column",
15
+ "interaction": []
16
+ },
17
+ "keywords": [
18
+ "chart",
19
+ "trend",
20
+ "card",
21
+ "revenue",
22
+ "analytics",
23
+ "sales",
24
+ "report",
25
+ "kpi"
26
+ ],
27
+ "related": [
28
+ "chart-dashboard",
29
+ "chart-grid-with-kpis",
30
+ "stat-with-sparkline",
31
+ "metrics"
32
+ ],
33
+ "template": [
34
+ {
35
+ "id": "root",
36
+ "component": "Card",
37
+ "children": [
38
+ "rc-header",
39
+ "rc-body",
40
+ "rc-footer"
41
+ ]
42
+ },
43
+ {
44
+ "id": "rc-header",
45
+ "component": "Header",
46
+ "children": [
47
+ "rc-title",
48
+ "rc-desc"
49
+ ]
50
+ },
51
+ {
52
+ "id": "rc-title",
53
+ "component": "Text",
54
+ "slot": "heading",
55
+ "textContent": "Revenue",
56
+ "variant": "section"
57
+ },
58
+ {
59
+ "id": "rc-desc",
60
+ "component": "Text",
61
+ "slot": "description",
62
+ "textContent": "January – March 2024",
63
+ "variant": "caption"
64
+ },
65
+ {
66
+ "id": "rc-body",
67
+ "component": "Section",
68
+ "children": [
69
+ "rc-chart"
70
+ ]
71
+ },
72
+ {
73
+ "id": "rc-chart",
74
+ "component": "Chart",
75
+ "type": "area",
76
+ "x": "month",
77
+ "y": "revenue"
78
+ },
79
+ {
80
+ "id": "rc-footer",
81
+ "component": "Footer",
82
+ "children": [
83
+ "rc-trend",
84
+ "rc-period"
85
+ ]
86
+ },
87
+ {
88
+ "id": "rc-trend",
89
+ "component": "Text",
90
+ "slot": "heading",
91
+ "textContent": "Trending up by 5.2% this month",
92
+ "variant": "body"
93
+ },
94
+ {
95
+ "id": "rc-period",
96
+ "component": "Text",
97
+ "slot": "description",
98
+ "textContent": "Showing total visitors for the last 3 months",
99
+ "variant": "caption"
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,56 @@
1
+ $schema: ../../../../../scripts/schemas/pattern.yaml.schema.json
2
+ name: chart-card-with-trend-footer
3
+ domain: data
4
+ version: 1
5
+ description: >-
6
+ Chart in a card with heading/description, chart body, and a footer showing
7
+ trend stat and period caption. Canonical shadcn-style composition adapted
8
+ for AdiaUI primitives — the trend + period strings land in the footer's
9
+ `heading` / `description` slots (Phase 1 card-ui extension).
10
+ tags:
11
+ purpose:
12
+ - visualization
13
+ - data-display
14
+ - trend-reporting
15
+ complexity: composed
16
+ layout: single-column
17
+ interaction: []
18
+ keywords:
19
+ - chart
20
+ - trend
21
+ - card
22
+ - revenue
23
+ - analytics
24
+ - sales
25
+ - report
26
+ - kpi
27
+ related:
28
+ - chart-dashboard
29
+ - chart-grid-with-kpis
30
+ - stat-with-sparkline
31
+ - metrics
32
+ use-cases:
33
+ - Revenue / active-users / signups reporting cards on a dashboard.
34
+ - Time-series summary cards with an inline trend narrative.
35
+ - A/B test result cards — "Variant B up 5.2% this week."
36
+ variants:
37
+ - name: line
38
+ description: Swap `type: area` to `type: line` for a minimal stroke-only look.
39
+ - name: bar
40
+ description: Use `type: bar` for categorical / monthly bar breakdowns.
41
+ - name: no-description
42
+ description: Omit the `rc-desc` Text child for a tighter two-slot header.
43
+ wiring-intent:
44
+ summary: >-
45
+ Static pattern. Consumers typically wire the Chart's .data property via
46
+ a parent controller; the trend + period strings come from the same
47
+ source and are computed client-side or server-side.
48
+ controllers: []
49
+ actions: []
50
+ components:
51
+ - Card
52
+ - Header
53
+ - Section
54
+ - Footer
55
+ - Chart
56
+ - Text