@vini-ds/agent 0.1.0-alpha.14 → 0.1.0-alpha.15
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/context/components.json +499 -7
- package/context/current.json +42 -25
- package/context/examples/0000.json +21 -21
- package/context/examples/0001.json +3 -3
- package/context/examples/0002.json +96 -96
- package/context/examples/0003.json +203 -174
- package/context/examples/0004.json +78 -49
- package/context/examples/0005.json +133 -104
- package/context/examples/0006.json +3 -3
- package/context/examples/0007.json +14 -14
- package/context/examples/0008.json +49 -49
- package/package.json +19 -10
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"Code imports: @vini-ds/ui, react.",
|
|
16
16
|
"Keep the provided example assets and their notices together with Example.tsx or replace them with assets you have rights to use. Asset bytes must be checked against the selected Atlas snapshot."
|
|
17
17
|
],
|
|
18
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
18
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, scroll-area / Horizontal; generated with the same Atlas source loader.",
|
|
19
19
|
"files": [
|
|
20
20
|
{
|
|
21
21
|
"name": "Example.tsx",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
78
78
|
"Code imports: @vini-ds/ui, react."
|
|
79
79
|
],
|
|
80
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
80
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, scroll-area / Rtl; generated with the same Atlas source loader.",
|
|
81
81
|
"files": [
|
|
82
82
|
{
|
|
83
83
|
"name": "Example.tsx",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
112
112
|
"Code imports: @vini-ds/ui."
|
|
113
113
|
],
|
|
114
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
114
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Default; generated with the same Atlas source loader.",
|
|
115
115
|
"files": [
|
|
116
116
|
{
|
|
117
117
|
"name": "Example.tsx",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
141
141
|
"Code imports: @vini-ds/ui, react."
|
|
142
142
|
],
|
|
143
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
143
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / AlignItem; generated with the same Atlas source loader.",
|
|
144
144
|
"files": [
|
|
145
145
|
{
|
|
146
146
|
"name": "Example.tsx",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
175
175
|
"Code imports: @vini-ds/ui."
|
|
176
176
|
],
|
|
177
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
177
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Groups; generated with the same Atlas source loader.",
|
|
178
178
|
"files": [
|
|
179
179
|
{
|
|
180
180
|
"name": "Example.tsx",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
204
204
|
"Code imports: @vini-ds/ui."
|
|
205
205
|
],
|
|
206
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
206
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Scrollable; generated with the same Atlas source loader.",
|
|
207
207
|
"files": [
|
|
208
208
|
{
|
|
209
209
|
"name": "Example.tsx",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
233
233
|
"Code imports: @vini-ds/ui."
|
|
234
234
|
],
|
|
235
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
235
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Disabled; generated with the same Atlas source loader.",
|
|
236
236
|
"files": [
|
|
237
237
|
{
|
|
238
238
|
"name": "Example.tsx",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
262
262
|
"Code imports: @vini-ds/ui."
|
|
263
263
|
],
|
|
264
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
264
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Invalid; generated with the same Atlas source loader.",
|
|
265
265
|
"files": [
|
|
266
266
|
{
|
|
267
267
|
"name": "Example.tsx",
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
296
296
|
"Code imports: @vini-ds/ui, react."
|
|
297
297
|
],
|
|
298
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
298
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, select / Rtl; generated with the same Atlas source loader.",
|
|
299
299
|
"files": [
|
|
300
300
|
{
|
|
301
301
|
"name": "Example.tsx",
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
330
330
|
"Code imports: @vini-ds/ui."
|
|
331
331
|
],
|
|
332
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
332
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, separator / Default; generated with the same Atlas source loader.",
|
|
333
333
|
"files": [
|
|
334
334
|
{
|
|
335
335
|
"name": "Example.tsx",
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
364
364
|
"Code imports: @vini-ds/ui."
|
|
365
365
|
],
|
|
366
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
366
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, separator / Vertical; generated with the same Atlas source loader.",
|
|
367
367
|
"files": [
|
|
368
368
|
{
|
|
369
369
|
"name": "Example.tsx",
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
398
398
|
"Code imports: @vini-ds/ui, react."
|
|
399
399
|
],
|
|
400
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
400
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, separator / Menu; generated with the same Atlas source loader.",
|
|
401
401
|
"files": [
|
|
402
402
|
{
|
|
403
403
|
"name": "Example.tsx",
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
432
432
|
"Code imports: @vini-ds/ui."
|
|
433
433
|
],
|
|
434
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
434
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, separator / List; generated with the same Atlas source loader.",
|
|
435
435
|
"files": [
|
|
436
436
|
{
|
|
437
437
|
"name": "Example.tsx",
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
466
466
|
"Code imports: @vini-ds/ui, react."
|
|
467
467
|
],
|
|
468
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
468
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, separator / Rtl; generated with the same Atlas source loader.",
|
|
469
469
|
"files": [
|
|
470
470
|
{
|
|
471
471
|
"name": "Example.tsx",
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
500
500
|
"Code imports: @vini-ds/ui, react."
|
|
501
501
|
],
|
|
502
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
502
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, sheet / Default; generated with the same Atlas source loader.",
|
|
503
503
|
"files": [
|
|
504
504
|
{
|
|
505
505
|
"name": "Example.tsx",
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
534
534
|
"Code imports: @vini-ds/ui, react."
|
|
535
535
|
],
|
|
536
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
536
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, sheet / Side; generated with the same Atlas source loader.",
|
|
537
537
|
"files": [
|
|
538
538
|
{
|
|
539
539
|
"name": "Example.tsx",
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
568
568
|
"Code imports: @vini-ds/ui, react."
|
|
569
569
|
],
|
|
570
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
570
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, sheet / NoCloseButton; generated with the same Atlas source loader.",
|
|
571
571
|
"files": [
|
|
572
572
|
{
|
|
573
573
|
"name": "Example.tsx",
|
|
@@ -596,7 +596,7 @@
|
|
|
596
596
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
597
597
|
"Code imports: @vini-ds/ui, react."
|
|
598
598
|
],
|
|
599
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
599
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, sheet / Rtl; generated with the same Atlas source loader.",
|
|
600
600
|
"files": [
|
|
601
601
|
{
|
|
602
602
|
"name": "Example.tsx",
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
"Code imports: @vini-ds/ui, react.",
|
|
632
632
|
"Keep the provided example assets and their notices together with Example.tsx or replace them with assets you have rights to use. Asset bytes must be checked against the selected Atlas snapshot."
|
|
633
633
|
],
|
|
634
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
634
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, sidebar / Default; generated with the same Atlas source loader.",
|
|
635
635
|
"files": [
|
|
636
636
|
{
|
|
637
637
|
"name": "Example.tsx",
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
677
677
|
"Code imports: @vini-ds/ui."
|
|
678
678
|
],
|
|
679
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
679
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Default; generated with the same Atlas source loader.",
|
|
680
680
|
"files": [
|
|
681
681
|
{
|
|
682
682
|
"name": "Example.tsx",
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
711
711
|
"Code imports: @vini-ds/ui."
|
|
712
712
|
],
|
|
713
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
713
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Avatar; generated with the same Atlas source loader.",
|
|
714
714
|
"files": [
|
|
715
715
|
{
|
|
716
716
|
"name": "Example.tsx",
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
745
745
|
"Code imports: @vini-ds/ui."
|
|
746
746
|
],
|
|
747
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
747
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Card; generated with the same Atlas source loader.",
|
|
748
748
|
"files": [
|
|
749
749
|
{
|
|
750
750
|
"name": "Example.tsx",
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
779
779
|
"Code imports: @vini-ds/ui."
|
|
780
780
|
],
|
|
781
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
781
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Text; generated with the same Atlas source loader.",
|
|
782
782
|
"files": [
|
|
783
783
|
{
|
|
784
784
|
"name": "Example.tsx",
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
813
813
|
"Code imports: @vini-ds/ui."
|
|
814
814
|
],
|
|
815
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
815
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Form; generated with the same Atlas source loader.",
|
|
816
816
|
"files": [
|
|
817
817
|
{
|
|
818
818
|
"name": "Example.tsx",
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
847
847
|
"Code imports: @vini-ds/ui."
|
|
848
848
|
],
|
|
849
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
849
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Table; generated with the same Atlas source loader.",
|
|
850
850
|
"files": [
|
|
851
851
|
{
|
|
852
852
|
"name": "Example.tsx",
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
881
881
|
"Code imports: @vini-ds/ui, react."
|
|
882
882
|
],
|
|
883
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
883
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, skeleton / Rtl; generated with the same Atlas source loader.",
|
|
884
884
|
"files": [
|
|
885
885
|
{
|
|
886
886
|
"name": "Example.tsx",
|
|
@@ -914,7 +914,7 @@
|
|
|
914
914
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
915
915
|
"Code imports: @vini-ds/ui, react."
|
|
916
916
|
],
|
|
917
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
917
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Default; generated with the same Atlas source loader.",
|
|
918
918
|
"files": [
|
|
919
919
|
{
|
|
920
920
|
"name": "Example.tsx",
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
949
949
|
"Code imports: @vini-ds/ui, react."
|
|
950
950
|
],
|
|
951
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
951
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Range; generated with the same Atlas source loader.",
|
|
952
952
|
"files": [
|
|
953
953
|
{
|
|
954
954
|
"name": "Example.tsx",
|
|
@@ -982,7 +982,7 @@
|
|
|
982
982
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
983
983
|
"Code imports: @vini-ds/ui, react."
|
|
984
984
|
],
|
|
985
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
985
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / MultipleThumbs; generated with the same Atlas source loader.",
|
|
986
986
|
"files": [
|
|
987
987
|
{
|
|
988
988
|
"name": "Example.tsx",
|
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1017
1017
|
"Code imports: @vini-ds/ui, react."
|
|
1018
1018
|
],
|
|
1019
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1019
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Vertical; generated with the same Atlas source loader.",
|
|
1020
1020
|
"files": [
|
|
1021
1021
|
{
|
|
1022
1022
|
"name": "Example.tsx",
|
|
@@ -1050,7 +1050,7 @@
|
|
|
1050
1050
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1051
1051
|
"Code imports: @vini-ds/ui, react."
|
|
1052
1052
|
],
|
|
1053
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1053
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Controlled; generated with the same Atlas source loader.",
|
|
1054
1054
|
"files": [
|
|
1055
1055
|
{
|
|
1056
1056
|
"name": "Example.tsx",
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1085
1085
|
"Code imports: @vini-ds/ui, react."
|
|
1086
1086
|
],
|
|
1087
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1087
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Disabled; generated with the same Atlas source loader.",
|
|
1088
1088
|
"files": [
|
|
1089
1089
|
{
|
|
1090
1090
|
"name": "Example.tsx",
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1119
1119
|
"Code imports: @vini-ds/ui, react."
|
|
1120
1120
|
],
|
|
1121
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1121
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, slider / Rtl; generated with the same Atlas source loader.",
|
|
1122
1122
|
"files": [
|
|
1123
1123
|
{
|
|
1124
1124
|
"name": "Example.tsx",
|
|
@@ -1152,7 +1152,7 @@
|
|
|
1152
1152
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1153
1153
|
"Code imports: @vini-ds/ui, react."
|
|
1154
1154
|
],
|
|
1155
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1155
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Default; generated with the same Atlas source loader.",
|
|
1156
1156
|
"files": [
|
|
1157
1157
|
{
|
|
1158
1158
|
"name": "Example.tsx",
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1187
1187
|
"Code imports: @vini-ds/ui, react."
|
|
1188
1188
|
],
|
|
1189
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1189
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Description; generated with the same Atlas source loader.",
|
|
1190
1190
|
"files": [
|
|
1191
1191
|
{
|
|
1192
1192
|
"name": "Example.tsx",
|
|
@@ -1220,7 +1220,7 @@
|
|
|
1220
1220
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1221
1221
|
"Code imports: @vini-ds/ui, react."
|
|
1222
1222
|
],
|
|
1223
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1223
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / ChoiceCard; generated with the same Atlas source loader.",
|
|
1224
1224
|
"files": [
|
|
1225
1225
|
{
|
|
1226
1226
|
"name": "Example.tsx",
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1255
1255
|
"Code imports: @vini-ds/ui, react."
|
|
1256
1256
|
],
|
|
1257
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1257
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Disabled; generated with the same Atlas source loader.",
|
|
1258
1258
|
"files": [
|
|
1259
1259
|
{
|
|
1260
1260
|
"name": "Example.tsx",
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1289
1289
|
"Code imports: @vini-ds/ui, react."
|
|
1290
1290
|
],
|
|
1291
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1291
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Invalid; generated with the same Atlas source loader.",
|
|
1292
1292
|
"files": [
|
|
1293
1293
|
{
|
|
1294
1294
|
"name": "Example.tsx",
|
|
@@ -1322,7 +1322,7 @@
|
|
|
1322
1322
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1323
1323
|
"Code imports: @vini-ds/ui, react."
|
|
1324
1324
|
],
|
|
1325
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1325
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Size; generated with the same Atlas source loader.",
|
|
1326
1326
|
"files": [
|
|
1327
1327
|
{
|
|
1328
1328
|
"name": "Example.tsx",
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1357
1357
|
"Code imports: @vini-ds/ui, react."
|
|
1358
1358
|
],
|
|
1359
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1359
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, switch / Rtl; generated with the same Atlas source loader.",
|
|
1360
1360
|
"files": [
|
|
1361
1361
|
{
|
|
1362
1362
|
"name": "Example.tsx",
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1391
1391
|
"Code imports: @vini-ds/ui."
|
|
1392
1392
|
],
|
|
1393
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1393
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Default; generated with the same Atlas source loader.",
|
|
1394
1394
|
"files": [
|
|
1395
1395
|
{
|
|
1396
1396
|
"name": "Example.tsx",
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1425
1425
|
"Code imports: @vini-ds/ui."
|
|
1426
1426
|
],
|
|
1427
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1427
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Footer; generated with the same Atlas source loader.",
|
|
1428
1428
|
"files": [
|
|
1429
1429
|
{
|
|
1430
1430
|
"name": "Example.tsx",
|
|
@@ -1458,7 +1458,7 @@
|
|
|
1458
1458
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1459
1459
|
"Code imports: @vini-ds/ui, react."
|
|
1460
1460
|
],
|
|
1461
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1461
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Actions; generated with the same Atlas source loader.",
|
|
1462
1462
|
"files": [
|
|
1463
1463
|
{
|
|
1464
1464
|
"name": "Example.tsx",
|
|
@@ -1492,12 +1492,12 @@
|
|
|
1492
1492
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1493
1493
|
"Code imports: @vini-ds/ui, react."
|
|
1494
1494
|
],
|
|
1495
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1495
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Sorting; generated with the same Atlas source loader.",
|
|
1496
1496
|
"files": [
|
|
1497
1497
|
{
|
|
1498
1498
|
"name": "Example.tsx",
|
|
1499
1499
|
"language": "tsx",
|
|
1500
|
-
"source": "import * as React from \"react\";\nimport { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport styles from \"./examples.module.css\";\
|
|
1500
|
+
"source": "import * as React from \"react\";\nimport { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport styles from \"./examples.module.css\";\nconst people = [\n { id: \"alice\", name: \"Alice Smith\", email: \"alice@example.com\", role: \"Admin\" },\n { id: \"bob\", name: \"Bob Johnson\", email: \"bob@example.com\", role: \"Editor\" },\n { id: \"carol\", name: \"Carol Williams\", email: \"carol@example.com\", role: \"Viewer\" },\n { id: \"david\", name: \"David Miller\", email: \"david@example.com\", role: \"Editor\" }\n];\nexport default function TableSortingExample() {\n const [sort, setSort] = React.useState<{ key: \"name\" | \"email\"; ascending: boolean }>({ key: \"name\", ascending: true });\n const rows = [...people].sort((a, b) => a[sort.key].localeCompare(b[sort.key], \"en\") * (sort.ascending ? 1 : -1));\n return <div className={styles.root}><Table aria-label=\"Sortable team\" className={styles.table}>\n <TableCaption>Choose a column to change the sort order.</TableCaption>\n <TableHeader>\n <TableRow>\n {([[\"name\", \"Name\"], [\"email\", \"Email\"]] as const).map(([key, label]) => (\n <TableHead\n key={key}\n scope=\"col\"\n aria-sort={sort.key === key ? sort.ascending ? \"ascending\" : \"descending\" : undefined}\n onSort={() => setSort({ key, ascending: sort.key !== key || !sort.ascending })}\n >\n {label}\n </TableHead>\n ))}\n <TableHead scope=\"col\">Role</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>{rows.map(person => <TableRow key={person.id}><TableHead scope=\"row\">{person.name}</TableHead><TableCell>{person.email}</TableCell><TableCell>{person.role}</TableCell></TableRow>)}</TableBody>\n </Table></div>;\n}\n"
|
|
1501
1501
|
},
|
|
1502
1502
|
{
|
|
1503
1503
|
"name": "SHADCN-LICENSE.txt",
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1527
1527
|
"Code imports: @vini-ds/ui."
|
|
1528
1528
|
],
|
|
1529
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1529
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Striped; generated with the same Atlas source loader.",
|
|
1530
1530
|
"files": [
|
|
1531
1531
|
{
|
|
1532
1532
|
"name": "Example.tsx",
|
|
@@ -1560,7 +1560,7 @@
|
|
|
1560
1560
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1561
1561
|
"Code imports: @vini-ds/ui, react."
|
|
1562
1562
|
],
|
|
1563
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1563
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Selection; generated with the same Atlas source loader.",
|
|
1564
1564
|
"files": [
|
|
1565
1565
|
{
|
|
1566
1566
|
"name": "Example.tsx",
|
|
@@ -1594,7 +1594,7 @@
|
|
|
1594
1594
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1595
1595
|
"Code imports: @vini-ds/ui."
|
|
1596
1596
|
],
|
|
1597
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1597
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Compact; generated with the same Atlas source loader.",
|
|
1598
1598
|
"files": [
|
|
1599
1599
|
{
|
|
1600
1600
|
"name": "Example.tsx",
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1629
1629
|
"Code imports: @vini-ds/ui, react."
|
|
1630
1630
|
],
|
|
1631
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1631
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Pagination; generated with the same Atlas source loader.",
|
|
1632
1632
|
"files": [
|
|
1633
1633
|
{
|
|
1634
1634
|
"name": "Example.tsx",
|
|
@@ -1662,7 +1662,7 @@
|
|
|
1662
1662
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1663
1663
|
"Code imports: @vini-ds/ui, react."
|
|
1664
1664
|
],
|
|
1665
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1665
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, table / Rtl; generated with the same Atlas source loader.",
|
|
1666
1666
|
"files": [
|
|
1667
1667
|
{
|
|
1668
1668
|
"name": "Example.tsx",
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1697
1697
|
"Code imports: @vini-ds/ui, react."
|
|
1698
1698
|
],
|
|
1699
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1699
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Default; generated with the same Atlas source loader.",
|
|
1700
1700
|
"files": [
|
|
1701
1701
|
{
|
|
1702
1702
|
"name": "Example.tsx",
|
|
@@ -1730,7 +1730,7 @@
|
|
|
1730
1730
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1731
1731
|
"Code imports: @vini-ds/ui, react."
|
|
1732
1732
|
],
|
|
1733
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1733
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Line; generated with the same Atlas source loader.",
|
|
1734
1734
|
"files": [
|
|
1735
1735
|
{
|
|
1736
1736
|
"name": "Example.tsx",
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1765
1765
|
"Code imports: @vini-ds/ui, react."
|
|
1766
1766
|
],
|
|
1767
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1767
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Vertical; generated with the same Atlas source loader.",
|
|
1768
1768
|
"files": [
|
|
1769
1769
|
{
|
|
1770
1770
|
"name": "Example.tsx",
|
|
@@ -1798,7 +1798,7 @@
|
|
|
1798
1798
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1799
1799
|
"Code imports: @vini-ds/ui, react."
|
|
1800
1800
|
],
|
|
1801
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1801
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Disabled; generated with the same Atlas source loader.",
|
|
1802
1802
|
"files": [
|
|
1803
1803
|
{
|
|
1804
1804
|
"name": "Example.tsx",
|
|
@@ -1832,7 +1832,7 @@
|
|
|
1832
1832
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1833
1833
|
"Code imports: @vini-ds/ui, react."
|
|
1834
1834
|
],
|
|
1835
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1835
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Icons; generated with the same Atlas source loader.",
|
|
1836
1836
|
"files": [
|
|
1837
1837
|
{
|
|
1838
1838
|
"name": "Example.tsx",
|
|
@@ -1866,7 +1866,7 @@
|
|
|
1866
1866
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1867
1867
|
"Code imports: @vini-ds/ui, react."
|
|
1868
1868
|
],
|
|
1869
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1869
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / WithForm; generated with the same Atlas source loader.",
|
|
1870
1870
|
"files": [
|
|
1871
1871
|
{
|
|
1872
1872
|
"name": "Example.tsx",
|
|
@@ -1900,7 +1900,7 @@
|
|
|
1900
1900
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1901
1901
|
"Code imports: @vini-ds/ui, react."
|
|
1902
1902
|
],
|
|
1903
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1903
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tabs / Rtl; generated with the same Atlas source loader.",
|
|
1904
1904
|
"files": [
|
|
1905
1905
|
{
|
|
1906
1906
|
"name": "Example.tsx",
|
|
@@ -1934,7 +1934,7 @@
|
|
|
1934
1934
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1935
1935
|
"Code imports: @vini-ds/ui."
|
|
1936
1936
|
],
|
|
1937
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1937
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, text / Default; generated with the same Atlas source loader.",
|
|
1938
1938
|
"files": [
|
|
1939
1939
|
{
|
|
1940
1940
|
"name": "Example.tsx",
|
|
@@ -1948,6 +1948,35 @@
|
|
|
1948
1948
|
}
|
|
1949
1949
|
]
|
|
1950
1950
|
},
|
|
1951
|
+
{
|
|
1952
|
+
"id": "atlas-component-text-search-matches",
|
|
1953
|
+
"title": "Text · Совпадения поиска",
|
|
1954
|
+
"description": "Atlas component example: Text / Совпадения поиска.",
|
|
1955
|
+
"componentIds": [
|
|
1956
|
+
"text"
|
|
1957
|
+
],
|
|
1958
|
+
"patternIds": [],
|
|
1959
|
+
"limitations": [
|
|
1960
|
+
"React DOM Atlas example source, not an installed runtime export, product validation, Figma parity or accessibility conformance claim.",
|
|
1961
|
+
"Check its API against the selected installed VINi release; the Atlas snapshot and installed packages may differ.",
|
|
1962
|
+
"Use the matching published VINi packages, public styles, fonts and the existing ThemeBrandProvider; retain any supplied CSS files.",
|
|
1963
|
+
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1964
|
+
"Code imports: @vini-ds/ui, react."
|
|
1965
|
+
],
|
|
1966
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, text / SearchMatches; generated with the same Atlas source loader.",
|
|
1967
|
+
"files": [
|
|
1968
|
+
{
|
|
1969
|
+
"name": "Example.tsx",
|
|
1970
|
+
"language": "tsx",
|
|
1971
|
+
"source": "import React from \"react\";\nimport { Text } from \"@vini-ds/ui\";\n\n/** Only the appearance of matches is demonstrated; the application owns search. */\nexport default function SearchMatchesExample() {\n return <Text as=\"p\" token=\"desktop/body/regular/500\">\n Команда обсудила <mark data-vini-search-match=\"match\">план</mark> встречи.\n Следующий <mark data-vini-search-match=\"current\">план</mark> подготовят завтра.\n </Text>;\n}\n"
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"name": "SHADCN-LICENSE.txt",
|
|
1975
|
+
"language": "text",
|
|
1976
|
+
"source": "MIT License\n\nCopyright (c) 2023 shadcn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1979
|
+
},
|
|
1951
1980
|
{
|
|
1952
1981
|
"id": "atlas-component-textarea-default",
|
|
1953
1982
|
"title": "Textarea · Основной пример",
|
|
@@ -1963,7 +1992,7 @@
|
|
|
1963
1992
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1964
1993
|
"Code imports: @vini-ds/ui."
|
|
1965
1994
|
],
|
|
1966
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
1995
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Default; generated with the same Atlas source loader.",
|
|
1967
1996
|
"files": [
|
|
1968
1997
|
{
|
|
1969
1998
|
"name": "Example.tsx",
|
|
@@ -1997,7 +2026,7 @@
|
|
|
1997
2026
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
1998
2027
|
"Code imports: @vini-ds/ui, react."
|
|
1999
2028
|
],
|
|
2000
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2029
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Field; generated with the same Atlas source loader.",
|
|
2001
2030
|
"files": [
|
|
2002
2031
|
{
|
|
2003
2032
|
"name": "Example.tsx",
|
|
@@ -2031,7 +2060,7 @@
|
|
|
2031
2060
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2032
2061
|
"Code imports: @vini-ds/ui, react."
|
|
2033
2062
|
],
|
|
2034
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2063
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Disabled; generated with the same Atlas source loader.",
|
|
2035
2064
|
"files": [
|
|
2036
2065
|
{
|
|
2037
2066
|
"name": "Example.tsx",
|
|
@@ -2065,7 +2094,7 @@
|
|
|
2065
2094
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2066
2095
|
"Code imports: @vini-ds/ui, react."
|
|
2067
2096
|
],
|
|
2068
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2097
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Invalid; generated with the same Atlas source loader.",
|
|
2069
2098
|
"files": [
|
|
2070
2099
|
{
|
|
2071
2100
|
"name": "Example.tsx",
|
|
@@ -2099,7 +2128,7 @@
|
|
|
2099
2128
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2100
2129
|
"Code imports: @vini-ds/ui, react."
|
|
2101
2130
|
],
|
|
2102
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2131
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Button; generated with the same Atlas source loader.",
|
|
2103
2132
|
"files": [
|
|
2104
2133
|
{
|
|
2105
2134
|
"name": "Example.tsx",
|
|
@@ -2133,7 +2162,7 @@
|
|
|
2133
2162
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2134
2163
|
"Code imports: @vini-ds/ui, react."
|
|
2135
2164
|
],
|
|
2136
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2165
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, textarea / Rtl; generated with the same Atlas source loader.",
|
|
2137
2166
|
"files": [
|
|
2138
2167
|
{
|
|
2139
2168
|
"name": "Example.tsx",
|
|
@@ -2167,7 +2196,7 @@
|
|
|
2167
2196
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2168
2197
|
"Code imports: @vini-ds/ui, react."
|
|
2169
2198
|
],
|
|
2170
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2199
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toast / Default; generated with the same Atlas source loader.",
|
|
2171
2200
|
"files": [
|
|
2172
2201
|
{
|
|
2173
2202
|
"name": "Example.tsx",
|
|
@@ -2196,7 +2225,7 @@
|
|
|
2196
2225
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2197
2226
|
"Code imports: @vini-ds/ui, react."
|
|
2198
2227
|
],
|
|
2199
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2228
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toast / Types; generated with the same Atlas source loader.",
|
|
2200
2229
|
"files": [
|
|
2201
2230
|
{
|
|
2202
2231
|
"name": "Example.tsx",
|
|
@@ -2230,7 +2259,7 @@
|
|
|
2230
2259
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2231
2260
|
"Code imports: @vini-ds/ui, react."
|
|
2232
2261
|
],
|
|
2233
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2262
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toast / Promise; generated with the same Atlas source loader.",
|
|
2234
2263
|
"files": [
|
|
2235
2264
|
{
|
|
2236
2265
|
"name": "Example.tsx",
|
|
@@ -2259,7 +2288,7 @@
|
|
|
2259
2288
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2260
2289
|
"Code imports: @vini-ds/ui, react."
|
|
2261
2290
|
],
|
|
2262
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2291
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / Default; generated with the same Atlas source loader.",
|
|
2263
2292
|
"files": [
|
|
2264
2293
|
{
|
|
2265
2294
|
"name": "Example.tsx",
|
|
@@ -2288,7 +2317,7 @@
|
|
|
2288
2317
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2289
2318
|
"Code imports: @vini-ds/ui, react."
|
|
2290
2319
|
],
|
|
2291
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2320
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / Outline; generated with the same Atlas source loader.",
|
|
2292
2321
|
"files": [
|
|
2293
2322
|
{
|
|
2294
2323
|
"name": "Example.tsx",
|
|
@@ -2322,7 +2351,7 @@
|
|
|
2322
2351
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2323
2352
|
"Code imports: @vini-ds/ui, react."
|
|
2324
2353
|
],
|
|
2325
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2354
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / WithText; generated with the same Atlas source loader.",
|
|
2326
2355
|
"files": [
|
|
2327
2356
|
{
|
|
2328
2357
|
"name": "Example.tsx",
|
|
@@ -2351,7 +2380,7 @@
|
|
|
2351
2380
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2352
2381
|
"Code imports: @vini-ds/ui, react."
|
|
2353
2382
|
],
|
|
2354
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2383
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / Size; generated with the same Atlas source loader.",
|
|
2355
2384
|
"files": [
|
|
2356
2385
|
{
|
|
2357
2386
|
"name": "Example.tsx",
|
|
@@ -2385,7 +2414,7 @@
|
|
|
2385
2414
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2386
2415
|
"Code imports: @vini-ds/ui, react."
|
|
2387
2416
|
],
|
|
2388
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2417
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / Disabled; generated with the same Atlas source loader.",
|
|
2389
2418
|
"files": [
|
|
2390
2419
|
{
|
|
2391
2420
|
"name": "Example.tsx",
|
|
@@ -2419,7 +2448,7 @@
|
|
|
2419
2448
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2420
2449
|
"Code imports: @vini-ds/ui, react."
|
|
2421
2450
|
],
|
|
2422
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2451
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / CustomColors; generated with the same Atlas source loader.",
|
|
2423
2452
|
"files": [
|
|
2424
2453
|
{
|
|
2425
2454
|
"name": "Example.tsx",
|
|
@@ -2453,7 +2482,7 @@
|
|
|
2453
2482
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2454
2483
|
"Code imports: @vini-ds/ui, react."
|
|
2455
2484
|
],
|
|
2456
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2485
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle / Rtl; generated with the same Atlas source loader.",
|
|
2457
2486
|
"files": [
|
|
2458
2487
|
{
|
|
2459
2488
|
"name": "Example.tsx",
|
|
@@ -2487,7 +2516,7 @@
|
|
|
2487
2516
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2488
2517
|
"Code imports: @vini-ds/ui, react."
|
|
2489
2518
|
],
|
|
2490
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2519
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Default; generated with the same Atlas source loader.",
|
|
2491
2520
|
"files": [
|
|
2492
2521
|
{
|
|
2493
2522
|
"name": "Example.tsx",
|
|
@@ -2516,7 +2545,7 @@
|
|
|
2516
2545
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2517
2546
|
"Code imports: @vini-ds/ui, react."
|
|
2518
2547
|
],
|
|
2519
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2548
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Outline; generated with the same Atlas source loader.",
|
|
2520
2549
|
"files": [
|
|
2521
2550
|
{
|
|
2522
2551
|
"name": "Example.tsx",
|
|
@@ -2545,7 +2574,7 @@
|
|
|
2545
2574
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2546
2575
|
"Code imports: @vini-ds/ui, react."
|
|
2547
2576
|
],
|
|
2548
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2577
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Size; generated with the same Atlas source loader.",
|
|
2549
2578
|
"files": [
|
|
2550
2579
|
{
|
|
2551
2580
|
"name": "Example.tsx",
|
|
@@ -2579,7 +2608,7 @@
|
|
|
2579
2608
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2580
2609
|
"Code imports: @vini-ds/ui, react."
|
|
2581
2610
|
],
|
|
2582
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2611
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Spacing; generated with the same Atlas source loader.",
|
|
2583
2612
|
"files": [
|
|
2584
2613
|
{
|
|
2585
2614
|
"name": "Example.tsx",
|
|
@@ -2608,7 +2637,7 @@
|
|
|
2608
2637
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2609
2638
|
"Code imports: @vini-ds/ui, react."
|
|
2610
2639
|
],
|
|
2611
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2640
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Vertical; generated with the same Atlas source loader.",
|
|
2612
2641
|
"files": [
|
|
2613
2642
|
{
|
|
2614
2643
|
"name": "Example.tsx",
|
|
@@ -2637,7 +2666,7 @@
|
|
|
2637
2666
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2638
2667
|
"Code imports: @vini-ds/ui, react."
|
|
2639
2668
|
],
|
|
2640
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2669
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Disabled; generated with the same Atlas source loader.",
|
|
2641
2670
|
"files": [
|
|
2642
2671
|
{
|
|
2643
2672
|
"name": "Example.tsx",
|
|
@@ -2666,7 +2695,7 @@
|
|
|
2666
2695
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2667
2696
|
"Code imports: @vini-ds/tokens, @vini-ds/ui, react."
|
|
2668
2697
|
],
|
|
2669
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2698
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Custom; generated with the same Atlas source loader.",
|
|
2670
2699
|
"files": [
|
|
2671
2700
|
{
|
|
2672
2701
|
"name": "Example.tsx",
|
|
@@ -2700,7 +2729,7 @@
|
|
|
2700
2729
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2701
2730
|
"Code imports: @vini-ds/ui, react."
|
|
2702
2731
|
],
|
|
2703
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2732
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, toggle-group / Rtl; generated with the same Atlas source loader.",
|
|
2704
2733
|
"files": [
|
|
2705
2734
|
{
|
|
2706
2735
|
"name": "Example.tsx",
|
|
@@ -2734,7 +2763,7 @@
|
|
|
2734
2763
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2735
2764
|
"Code imports: @vini-ds/ui, react."
|
|
2736
2765
|
],
|
|
2737
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2766
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tooltip / Default; generated with the same Atlas source loader.",
|
|
2738
2767
|
"files": [
|
|
2739
2768
|
{
|
|
2740
2769
|
"name": "Example.tsx",
|
|
@@ -2768,7 +2797,7 @@
|
|
|
2768
2797
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2769
2798
|
"Code imports: @vini-ds/ui, react."
|
|
2770
2799
|
],
|
|
2771
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2800
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tooltip / Side; generated with the same Atlas source loader.",
|
|
2772
2801
|
"files": [
|
|
2773
2802
|
{
|
|
2774
2803
|
"name": "Example.tsx",
|
|
@@ -2802,7 +2831,7 @@
|
|
|
2802
2831
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2803
2832
|
"Code imports: @vini-ds/ui, react."
|
|
2804
2833
|
],
|
|
2805
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2834
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tooltip / KeyboardShortcut; generated with the same Atlas source loader.",
|
|
2806
2835
|
"files": [
|
|
2807
2836
|
{
|
|
2808
2837
|
"name": "Example.tsx",
|
|
@@ -2836,7 +2865,7 @@
|
|
|
2836
2865
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2837
2866
|
"Code imports: @vini-ds/ui, react."
|
|
2838
2867
|
],
|
|
2839
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2868
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tooltip / DisabledButton; generated with the same Atlas source loader.",
|
|
2840
2869
|
"files": [
|
|
2841
2870
|
{
|
|
2842
2871
|
"name": "Example.tsx",
|
|
@@ -2870,7 +2899,7 @@
|
|
|
2870
2899
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2871
2900
|
"Code imports: @vini-ds/ui, react."
|
|
2872
2901
|
],
|
|
2873
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2902
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, tooltip / Rtl; generated with the same Atlas source loader.",
|
|
2874
2903
|
"files": [
|
|
2875
2904
|
{
|
|
2876
2905
|
"name": "Example.tsx",
|
|
@@ -2904,7 +2933,7 @@
|
|
|
2904
2933
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code.",
|
|
2905
2934
|
"Code imports: @vini-ds/ui, react."
|
|
2906
2935
|
],
|
|
2907
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2936
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15, typeset / Default; generated with the same Atlas source loader.",
|
|
2908
2937
|
"files": [
|
|
2909
2938
|
{
|
|
2910
2939
|
"name": "Example.tsx",
|
|
@@ -2936,7 +2965,7 @@
|
|
|
2936
2965
|
"It is not product validation, Figma parity or an accessibility conformance claim.",
|
|
2937
2966
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code."
|
|
2938
2967
|
],
|
|
2939
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2968
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15: component documentation accordion / Использование Accordion.",
|
|
2940
2969
|
"files": [
|
|
2941
2970
|
{
|
|
2942
2971
|
"name": "Fragment.tsx",
|
|
@@ -2963,7 +2992,7 @@
|
|
|
2963
2992
|
"It is not product validation, Figma parity or an accessibility conformance claim.",
|
|
2964
2993
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code."
|
|
2965
2994
|
],
|
|
2966
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
2995
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15: component documentation accordion / Структура Accordion.",
|
|
2967
2996
|
"files": [
|
|
2968
2997
|
{
|
|
2969
2998
|
"name": "Fragment.txt",
|
|
@@ -2990,7 +3019,7 @@
|
|
|
2990
3019
|
"It is not product validation, Figma parity or an accessibility conformance claim.",
|
|
2991
3020
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code."
|
|
2992
3021
|
],
|
|
2993
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
3022
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15: component documentation checkbox / Checked State.",
|
|
2994
3023
|
"files": [
|
|
2995
3024
|
{
|
|
2996
3025
|
"name": "Fragment.tsx",
|
|
@@ -3017,7 +3046,7 @@
|
|
|
3017
3046
|
"Preserve the public Drawer behavior, motion and accessibility constraints; verify the selected installed version.",
|
|
3018
3047
|
"SHADCN-LICENSE.txt is supplied for shadcn-derived material; it does not determine licensing or grant rights for VINi-owned code."
|
|
3019
3048
|
],
|
|
3020
|
-
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.
|
|
3049
|
+
"sourceCorrespondence": "Public Atlas 0.1.0-alpha.15: Drawer documentation Styling.",
|
|
3021
3050
|
"files": [
|
|
3022
3051
|
{
|
|
3023
3052
|
"name": "Fragment.css",
|
|
@@ -3066,7 +3095,7 @@
|
|
|
3066
3095
|
"The application owns routes, permissions, content and compact-mode behavior. Dashboard variants are demonstrations, not full pattern contract verification.",
|
|
3067
3096
|
"SHADCN-LICENSE.txt is the notice included in the public Atlas profile."
|
|
3068
3097
|
],
|
|
3069
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3098
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: application-shell/WebReference; source and transformations are the Atlas presenter."
|
|
3070
3099
|
},
|
|
3071
3100
|
{
|
|
3072
3101
|
"id": "atlas-pattern-application-shell-dashboard-reference",
|
|
@@ -3084,7 +3113,7 @@
|
|
|
3084
3113
|
{
|
|
3085
3114
|
"name": "Example.tsx",
|
|
3086
3115
|
"language": "tsx",
|
|
3087
|
-
"source": "import React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport {\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent,\n SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu,\n SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar\n} from \"@vini-ds/ui\";\nimport styles from \"./example.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart\";\n\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n] as const;\ntype RouteId = (typeof routes)[number][\"id\"];\n\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\n\ntype MaterialColumn = \"name\" | \"type\" | \"status\";\nconst materialColumns: { key: MaterialColumn; label: string }[] = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\n\nconst views = [\"Все\", \"В работе\", \"Готово\"] as const;\ntype MaterialView = (typeof views)[number];\nconst pageSize = 4;\n\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\n\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState<{ column: MaterialColumn; direction: \"ascending\" | \"descending\" } | null>(null);\n const [selected, setSelected] = React.useState<string[]>([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort) filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage: number, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage: number, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event: React.MouseEvent<HTMLAnchorElement>, nextPage: number) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column: MaterialColumn) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view) setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible}\n indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0}\n onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))} /></TableHead>\n {materialColumns.map(column => <TableHead key={column.key} scope=\"col\" aria-sort={sort?.column === column.key ? sort.direction : undefined}>\n <Button variant=\"text\" size=\"400\" endIcon={sort?.column === column.key ? (sort.direction === \"ascending\" ? \"arrow_upward\" : \"arrow_downward\") : \"swap_vert\"}\n onClick={() => toggleSort(column.key)}>{column.label}</Button>\n </TableHead>)}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)}\n onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))} /></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)} /></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)} /></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\n\nfunction Symbol({ name }: { name: string }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\n\nfunction navigateHere(event: React.MouseEvent<HTMLElement>) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\n\nfunction Navigation({ active, onNavigate, panel = false }: { active: RouteId; onNavigate: (id: RouteId) => void; panel?: boolean }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event: React.MouseEvent<HTMLElement>, id: RouteId) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile) setOpenMobile(false);\n };\n const menu = (group: \"main\" | \"materials\" | \"footer\") => (\n <SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (\n <SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label}\n render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)} />}>\n <Symbol name={route.icon} /><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n );\n\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")} />}>\n <Symbol name=\"hub\" /><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\n\nfunction DashboardShellReference({ compact, panel = false }: { compact: boolean; panel?: boolean }) {\n const [active, setActive] = React.useState<RouteId>(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\"\n mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel} /></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (\n <Grid key={pair[0]!.label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>\n ))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n\nexport default function Example() {\n return <DashboardShellReference compact={false} />;\n}\n"
|
|
3116
|
+
"source": "import React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport {\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent,\n SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu,\n SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar\n} from \"@vini-ds/ui\";\nimport styles from \"./example.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart\";\n\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n] as const;\ntype RouteId = (typeof routes)[number][\"id\"];\n\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\n\ntype MaterialColumn = \"name\" | \"type\" | \"status\";\nconst materialColumns: { key: MaterialColumn; label: string }[] = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\n\nconst views = [\"Все\", \"В работе\", \"Готово\"] as const;\ntype MaterialView = (typeof views)[number];\nconst pageSize = 4;\n\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\n\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState<{ column: MaterialColumn; direction: \"ascending\" | \"descending\" } | null>(null);\n const [selected, setSelected] = React.useState<string[]>([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort) filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage: number, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage: number, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event: React.MouseEvent<HTMLAnchorElement>, nextPage: number) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column: MaterialColumn) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view) setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible}\n indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0}\n onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))} /></TableHead>\n {materialColumns.map(column => (\n <TableHead\n key={column.key}\n scope=\"col\"\n aria-sort={sort?.column === column.key ? sort.direction : undefined}\n onSort={() => toggleSort(column.key)}\n >\n {column.label}\n </TableHead>\n ))}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)}\n onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))} /></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)} /></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)} /></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\n\nfunction Symbol({ name }: { name: string }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\n\nfunction navigateHere(event: React.MouseEvent<HTMLElement>) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\n\nfunction Navigation({ active, onNavigate, panel = false }: { active: RouteId; onNavigate: (id: RouteId) => void; panel?: boolean }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event: React.MouseEvent<HTMLElement>, id: RouteId) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile) setOpenMobile(false);\n };\n const menu = (group: \"main\" | \"materials\" | \"footer\") => (\n <SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (\n <SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label}\n render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)} />}>\n <Symbol name={route.icon} /><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n );\n\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")} />}>\n <Symbol name=\"hub\" /><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\n\nfunction DashboardShellReference({ compact, panel = false }: { compact: boolean; panel?: boolean }) {\n const [active, setActive] = React.useState<RouteId>(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\"\n mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel} /></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (\n <Grid key={pair[0]!.label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>\n ))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n\nexport default function Example() {\n return <DashboardShellReference compact={false} />;\n}\n"
|
|
3088
3117
|
},
|
|
3089
3118
|
{
|
|
3090
3119
|
"name": "example.module.css",
|
|
@@ -3119,7 +3148,7 @@
|
|
|
3119
3148
|
"SHADCN-LICENSE.txt is the notice included in the public Atlas profile.",
|
|
3120
3149
|
"The dashboard chart additionally requires a compatible Recharts dependency; sample data and actions are local demonstrations. CHART-NOTICES.txt contains the notices included in Atlas."
|
|
3121
3150
|
],
|
|
3122
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3151
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: application-shell/DashboardReference; source and transformations are the Atlas presenter."
|
|
3123
3152
|
},
|
|
3124
3153
|
{
|
|
3125
3154
|
"id": "atlas-pattern-application-shell-panel-reference",
|
|
@@ -3137,7 +3166,7 @@
|
|
|
3137
3166
|
{
|
|
3138
3167
|
"name": "Example.tsx",
|
|
3139
3168
|
"language": "tsx",
|
|
3140
|
-
"source": "import React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport {\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent,\n SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu,\n SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar\n} from \"@vini-ds/ui\";\nimport styles from \"./example.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart\";\n\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n] as const;\ntype RouteId = (typeof routes)[number][\"id\"];\n\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\n\ntype MaterialColumn = \"name\" | \"type\" | \"status\";\nconst materialColumns: { key: MaterialColumn; label: string }[] = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\n\nconst views = [\"Все\", \"В работе\", \"Готово\"] as const;\ntype MaterialView = (typeof views)[number];\nconst pageSize = 4;\n\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\n\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState<{ column: MaterialColumn; direction: \"ascending\" | \"descending\" } | null>(null);\n const [selected, setSelected] = React.useState<string[]>([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort) filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage: number, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage: number, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event: React.MouseEvent<HTMLAnchorElement>, nextPage: number) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column: MaterialColumn) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view) setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible}\n indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0}\n onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))} /></TableHead>\n {materialColumns.map(column => <TableHead key={column.key} scope=\"col\" aria-sort={sort?.column === column.key ? sort.direction : undefined}>\n <Button variant=\"text\" size=\"400\" endIcon={sort?.column === column.key ? (sort.direction === \"ascending\" ? \"arrow_upward\" : \"arrow_downward\") : \"swap_vert\"}\n onClick={() => toggleSort(column.key)}>{column.label}</Button>\n </TableHead>)}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)}\n onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))} /></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)} /></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)} /></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\n\nfunction Symbol({ name }: { name: string }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\n\nfunction navigateHere(event: React.MouseEvent<HTMLElement>) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\n\nfunction Navigation({ active, onNavigate, panel = false }: { active: RouteId; onNavigate: (id: RouteId) => void; panel?: boolean }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event: React.MouseEvent<HTMLElement>, id: RouteId) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile) setOpenMobile(false);\n };\n const menu = (group: \"main\" | \"materials\" | \"footer\") => (\n <SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (\n <SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label}\n render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)} />}>\n <Symbol name={route.icon} /><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n );\n\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")} />}>\n <Symbol name=\"hub\" /><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\n\nfunction DashboardShellReference({ compact, panel = false }: { compact: boolean; panel?: boolean }) {\n const [active, setActive] = React.useState<RouteId>(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\"\n mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel} /></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (\n <Grid key={pair[0]!.label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>\n ))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n\nexport default function Example() {\n return <DashboardShellReference compact={false} panel />;\n}\n"
|
|
3169
|
+
"source": "import React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport {\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent,\n SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu,\n SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar\n} from \"@vini-ds/ui\";\nimport styles from \"./example.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart\";\n\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n] as const;\ntype RouteId = (typeof routes)[number][\"id\"];\n\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\n\ntype MaterialColumn = \"name\" | \"type\" | \"status\";\nconst materialColumns: { key: MaterialColumn; label: string }[] = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\n\nconst views = [\"Все\", \"В работе\", \"Готово\"] as const;\ntype MaterialView = (typeof views)[number];\nconst pageSize = 4;\n\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\n\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState<{ column: MaterialColumn; direction: \"ascending\" | \"descending\" } | null>(null);\n const [selected, setSelected] = React.useState<string[]>([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort) filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage: number, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage: number, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event: React.MouseEvent<HTMLAnchorElement>, nextPage: number) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column: MaterialColumn) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view) setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible}\n indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0}\n onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))} /></TableHead>\n {materialColumns.map(column => (\n <TableHead\n key={column.key}\n scope=\"col\"\n aria-sort={sort?.column === column.key ? sort.direction : undefined}\n onSort={() => toggleSort(column.key)}\n >\n {column.label}\n </TableHead>\n ))}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)}\n onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))} /></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)} /></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)} /></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\n\nfunction Symbol({ name }: { name: string }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\n\nfunction navigateHere(event: React.MouseEvent<HTMLElement>) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\n\nfunction Navigation({ active, onNavigate, panel = false }: { active: RouteId; onNavigate: (id: RouteId) => void; panel?: boolean }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event: React.MouseEvent<HTMLElement>, id: RouteId) => {\n if (!navigateHere(event)) return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile) setOpenMobile(false);\n };\n const menu = (group: \"main\" | \"materials\" | \"footer\") => (\n <SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (\n <SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label}\n render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)} />}>\n <Symbol name={route.icon} /><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n );\n\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")} />}>\n <Symbol name=\"hub\" /><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\n\nfunction DashboardShellReference({ compact, panel = false }: { compact: boolean; panel?: boolean }) {\n const [active, setActive] = React.useState<RouteId>(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\"\n mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel} /></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (\n <Grid key={pair[0]!.label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>\n ))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n\nexport default function Example() {\n return <DashboardShellReference compact={false} panel />;\n}\n"
|
|
3141
3170
|
},
|
|
3142
3171
|
{
|
|
3143
3172
|
"name": "example.module.css",
|
|
@@ -3172,7 +3201,7 @@
|
|
|
3172
3201
|
"SHADCN-LICENSE.txt is the notice included in the public Atlas profile.",
|
|
3173
3202
|
"The dashboard chart additionally requires a compatible Recharts dependency; sample data and actions are local demonstrations. CHART-NOTICES.txt contains the notices included in Atlas."
|
|
3174
3203
|
],
|
|
3175
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3204
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: application-shell/PanelReference; source and transformations are the Atlas presenter."
|
|
3176
3205
|
},
|
|
3177
3206
|
{
|
|
3178
3207
|
"id": "atlas-pattern-authentication-card-login",
|
|
@@ -3212,7 +3241,7 @@
|
|
|
3212
3241
|
"This example is not a registered machine-readable authentication pattern contract.",
|
|
3213
3242
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3214
3243
|
],
|
|
3215
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3244
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: authentication/CardLogin; text and stylesheet come from the Atlas presenter."
|
|
3216
3245
|
},
|
|
3217
3246
|
{
|
|
3218
3247
|
"id": "atlas-pattern-authentication-split-login",
|
|
@@ -3252,7 +3281,7 @@
|
|
|
3252
3281
|
"This example is not a registered machine-readable authentication pattern contract.",
|
|
3253
3282
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3254
3283
|
],
|
|
3255
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3284
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: authentication/SplitLogin; text and stylesheet come from the Atlas presenter."
|
|
3256
3285
|
},
|
|
3257
3286
|
{
|
|
3258
3287
|
"id": "atlas-component-select-configurator",
|
|
@@ -3295,7 +3324,7 @@
|
|
|
3295
3324
|
"The selected option and clear action are local demonstration state.",
|
|
3296
3325
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3297
3326
|
],
|
|
3298
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3327
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: components/select, Настроить Select; generated using the shared Atlas source and default settings."
|
|
3299
3328
|
},
|
|
3300
3329
|
{
|
|
3301
3330
|
"id": "atlas-home-showcase",
|
|
@@ -3338,7 +3367,7 @@
|
|
|
3338
3367
|
"The local portrait path is changed for portability; ASSETS.md records its origin.",
|
|
3339
3368
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3340
3369
|
],
|
|
3341
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3370
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: home showcase, source and CSS from the host; portrait path adjusted for this package."
|
|
3342
3371
|
},
|
|
3343
3372
|
{
|
|
3344
3373
|
"id": "atlas-foundations-meeting-example",
|
|
@@ -3376,7 +3405,7 @@
|
|
|
3376
3405
|
"Submitting and reset change local state only; no meeting is created or transmitted. The guide controls appearance through its local data attributes and relies on matching public VINi styles.",
|
|
3377
3406
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3378
3407
|
],
|
|
3379
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3408
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: foundations/how-it-works, meeting demonstration, extracted from SystemGuidePage.tsx."
|
|
3380
3409
|
},
|
|
3381
3410
|
{
|
|
3382
3411
|
"id": "atlas-foundations-component-anatomy",
|
|
@@ -3413,7 +3442,7 @@
|
|
|
3413
3442
|
"Actions in the example are demonstrative and do not create a meeting.",
|
|
3414
3443
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3415
3444
|
],
|
|
3416
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3445
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: foundations/how-it-works, ComponentAnatomy extracted from SystemGuidePage.tsx."
|
|
3417
3446
|
},
|
|
3418
3447
|
{
|
|
3419
3448
|
"id": "atlas-foundations-icon-example",
|
|
@@ -3448,6 +3477,6 @@
|
|
|
3448
3477
|
"Actions in the example are demonstrative and do not create a meeting.",
|
|
3449
3478
|
"SHADCN-LICENSE.txt is a retained third-party notice; it does not establish a license grant for VINi or this entire example."
|
|
3450
3479
|
],
|
|
3451
|
-
"sourceCorrespondence": "Atlas 0.1.0-alpha.
|
|
3480
|
+
"sourceCorrespondence": "Atlas 0.1.0-alpha.15: foundations/how-it-works, IconExample extracted from SystemGuidePage.tsx."
|
|
3452
3481
|
}
|
|
3453
3482
|
]
|