xertica-ui 2.5.2 → 2.5.3
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/bin/language-config.ts +359 -359
- package/components/layout/sidebar/sidebar.tsx +10 -5
- package/components/pages/home-content/HomeContent.tsx +119 -120
- package/components/pages/template-content/TemplateContent.tsx +1353 -1354
- package/dist/AssistantChart-BW9JK6jw.cjs +3551 -0
- package/dist/AssistantChart-DNdwuS-t.js +3383 -0
- package/dist/VerifyEmailPage-Bci0bA-P.js +3296 -0
- package/dist/VerifyEmailPage-C7KiYXrm.cjs +3305 -0
- package/dist/assistant.cjs.js +1 -1
- package/dist/assistant.es.js +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +6 -6
- package/dist/input-B0_vbA3g.js +65 -0
- package/dist/input-ByYuOv8A.cjs +91 -0
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +1 -1
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +1 -1
- package/dist/rich-text-editor-DV1SixzE.js +2890 -0
- package/dist/rich-text-editor-DnSDglzW.cjs +2964 -0
- package/dist/sidebar-CQn_rwxP.cjs +1150 -0
- package/dist/sidebar-QwCoeoZ_.js +1147 -0
- package/dist/ui.cjs.js +5 -5
- package/dist/ui.es.js +3 -3
- package/dist/xertica-assistant-BrF9jScR.cjs +2180 -0
- package/dist/xertica-assistant-CsBsxTsI.js +2173 -0
- package/llms-compact.txt +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/templates/package.json +2 -2
- package/templates/src/features/home/ui/HomeContent.tsx +116 -117
- package/templates/src/features/template/ui/TemplateContent.tsx +1321 -1322
|
@@ -1,1322 +1,1321 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Button,
|
|
4
|
-
Input,
|
|
5
|
-
Label,
|
|
6
|
-
Card,
|
|
7
|
-
CardHeader,
|
|
8
|
-
CardTitle,
|
|
9
|
-
CardDescription,
|
|
10
|
-
CardContent,
|
|
11
|
-
CardFooter,
|
|
12
|
-
Tabs,
|
|
13
|
-
TabsContent,
|
|
14
|
-
TabsList,
|
|
15
|
-
TabsTrigger,
|
|
16
|
-
Badge,
|
|
17
|
-
Alert,
|
|
18
|
-
AlertDescription,
|
|
19
|
-
AlertTitle,
|
|
20
|
-
Checkbox,
|
|
21
|
-
RadioGroup,
|
|
22
|
-
RadioGroupItem,
|
|
23
|
-
Switch,
|
|
24
|
-
Select,
|
|
25
|
-
SelectContent,
|
|
26
|
-
SelectItem,
|
|
27
|
-
SelectTrigger,
|
|
28
|
-
SelectValue,
|
|
29
|
-
Textarea,
|
|
30
|
-
Progress,
|
|
31
|
-
Separator,
|
|
32
|
-
Table,
|
|
33
|
-
TableBody,
|
|
34
|
-
TableCell,
|
|
35
|
-
TableHead,
|
|
36
|
-
TableHeader,
|
|
37
|
-
TableRow,
|
|
38
|
-
Slider,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} from 'xertica-ui/
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{ id: '
|
|
108
|
-
{ id: '
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
{ id: '
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
{ id: 'use-
|
|
128
|
-
{ id: 'use-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const {
|
|
134
|
-
const
|
|
135
|
-
const [
|
|
136
|
-
const [
|
|
137
|
-
const [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
//
|
|
141
|
-
//
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
const [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
{ label: t('
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
<
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<TabsTrigger value="
|
|
230
|
-
<TabsTrigger value="
|
|
231
|
-
<TabsTrigger value="
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
<
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
<
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
<
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
<
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
<
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
<
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
<
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
<
|
|
374
|
-
|
|
375
|
-
<
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<
|
|
387
|
-
|
|
388
|
-
<
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
<
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
<
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
<
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
<
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
<
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
<
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
<
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
<
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
<
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
<Button
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
<
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
<
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
<TableHead>{t('templates.data.headers.
|
|
518
|
-
<TableHead>{t('templates.data.headers.
|
|
519
|
-
<TableHead>{t('templates.data.headers.
|
|
520
|
-
<TableHead>
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
<TableCell>
|
|
529
|
-
<TableCell>{
|
|
530
|
-
<TableCell>
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
<TableCell>
|
|
544
|
-
<TableCell>{
|
|
545
|
-
<TableCell>
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
<TableCell>
|
|
559
|
-
<TableCell>{
|
|
560
|
-
<TableCell>
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
<TableCell>
|
|
574
|
-
<TableCell>{
|
|
575
|
-
<TableCell>
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
<
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
<
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
<
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
<
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
<
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
<Button
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
<
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
<
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
</Button>
|
|
732
|
-
<Button variant="
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
<
|
|
743
|
-
|
|
744
|
-
<Button size="
|
|
745
|
-
<Button size="
|
|
746
|
-
<Button size="
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
<
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
<
|
|
777
|
-
|
|
778
|
-
<Button disabled>
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
<
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
<
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
<Badge variant="
|
|
801
|
-
<Badge variant="
|
|
802
|
-
<Badge variant="
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
<
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
<
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
<
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
<
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
<
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
<
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
<
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
<
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
<span>
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
<
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
<
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
<
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
<
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
<
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
<
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
<
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
Input,
|
|
5
|
+
Label,
|
|
6
|
+
Card,
|
|
7
|
+
CardHeader,
|
|
8
|
+
CardTitle,
|
|
9
|
+
CardDescription,
|
|
10
|
+
CardContent,
|
|
11
|
+
CardFooter,
|
|
12
|
+
Tabs,
|
|
13
|
+
TabsContent,
|
|
14
|
+
TabsList,
|
|
15
|
+
TabsTrigger,
|
|
16
|
+
Badge,
|
|
17
|
+
Alert,
|
|
18
|
+
AlertDescription,
|
|
19
|
+
AlertTitle,
|
|
20
|
+
Checkbox,
|
|
21
|
+
RadioGroup,
|
|
22
|
+
RadioGroupItem,
|
|
23
|
+
Switch,
|
|
24
|
+
Select,
|
|
25
|
+
SelectContent,
|
|
26
|
+
SelectItem,
|
|
27
|
+
SelectTrigger,
|
|
28
|
+
SelectValue,
|
|
29
|
+
Textarea,
|
|
30
|
+
Progress,
|
|
31
|
+
Separator,
|
|
32
|
+
Table,
|
|
33
|
+
TableBody,
|
|
34
|
+
TableCell,
|
|
35
|
+
TableHead,
|
|
36
|
+
TableHeader,
|
|
37
|
+
TableRow,
|
|
38
|
+
Slider,
|
|
39
|
+
Dialog,
|
|
40
|
+
DialogTrigger,
|
|
41
|
+
DialogContent,
|
|
42
|
+
DialogHeader,
|
|
43
|
+
DialogTitle,
|
|
44
|
+
DialogDescription,
|
|
45
|
+
DialogFooter,
|
|
46
|
+
AlertDialog,
|
|
47
|
+
AlertDialogTrigger,
|
|
48
|
+
AlertDialogContent,
|
|
49
|
+
AlertDialogHeader,
|
|
50
|
+
AlertDialogTitle,
|
|
51
|
+
AlertDialogDescription,
|
|
52
|
+
AlertDialogFooter,
|
|
53
|
+
AlertDialogAction,
|
|
54
|
+
AlertDialogCancel,
|
|
55
|
+
Pagination,
|
|
56
|
+
PaginationContent,
|
|
57
|
+
PaginationItem,
|
|
58
|
+
PaginationLink,
|
|
59
|
+
PaginationNext,
|
|
60
|
+
PaginationPrevious,
|
|
61
|
+
PaginationEllipsis,
|
|
62
|
+
Stepper,
|
|
63
|
+
Step,
|
|
64
|
+
TreeView,
|
|
65
|
+
RichTextEditor,
|
|
66
|
+
usePagination,
|
|
67
|
+
useStepper,
|
|
68
|
+
} from 'xertica-ui/ui';
|
|
69
|
+
import { Header, Sidebar } from 'xertica-ui/layout';
|
|
70
|
+
import { useLayout, useTheme } from 'xertica-ui/hooks';
|
|
71
|
+
import { toast } from 'sonner';
|
|
72
|
+
import { Link } from 'react-router-dom';
|
|
73
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
74
|
+
import {
|
|
75
|
+
Settings,
|
|
76
|
+
User,
|
|
77
|
+
Mail,
|
|
78
|
+
Phone,
|
|
79
|
+
Calendar,
|
|
80
|
+
Search,
|
|
81
|
+
PanelLeft,
|
|
82
|
+
Home,
|
|
83
|
+
Users,
|
|
84
|
+
Plus,
|
|
85
|
+
Trash2,
|
|
86
|
+
Archive,
|
|
87
|
+
ArrowRightLeft,
|
|
88
|
+
FileEdit,
|
|
89
|
+
Clock,
|
|
90
|
+
Map,
|
|
91
|
+
} from 'lucide-react';
|
|
92
|
+
|
|
93
|
+
export function TemplateContent() {
|
|
94
|
+
const { t } = useTranslation();
|
|
95
|
+
|
|
96
|
+
// ── TreeView demo data (built inside the component so labels react to language switches) ──
|
|
97
|
+
const treeData = [
|
|
98
|
+
{
|
|
99
|
+
id: 'components',
|
|
100
|
+
label: t('templates.enhanced.treeView.nodes.components'),
|
|
101
|
+
children: [
|
|
102
|
+
{
|
|
103
|
+
id: 'ui',
|
|
104
|
+
label: t('templates.enhanced.treeView.nodes.ui'),
|
|
105
|
+
children: [
|
|
106
|
+
{ id: 'button', label: t('templates.enhanced.treeView.nodes.button') },
|
|
107
|
+
{ id: 'input', label: t('templates.enhanced.treeView.nodes.input') },
|
|
108
|
+
{ id: 'pagination', label: t('templates.enhanced.treeView.nodes.pagination') },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'layout',
|
|
113
|
+
label: t('templates.enhanced.treeView.nodes.layout'),
|
|
114
|
+
children: [
|
|
115
|
+
{ id: 'sidebar', label: t('templates.enhanced.treeView.nodes.sidebar') },
|
|
116
|
+
{ id: 'header', label: t('templates.enhanced.treeView.nodes.header') },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: 'hooks',
|
|
123
|
+
label: t('templates.enhanced.treeView.nodes.hooks'),
|
|
124
|
+
// Hook identifiers stay as code — not translated.
|
|
125
|
+
children: [
|
|
126
|
+
{ id: 'use-pagination', label: 'usePagination' },
|
|
127
|
+
{ id: 'use-stepper', label: 'useStepper' },
|
|
128
|
+
{ id: 'use-tree-view', label: 'useTreeView' },
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
const { sidebarExpanded, sidebarWidth } = useLayout();
|
|
133
|
+
const { disableDarkMode } = useTheme();
|
|
134
|
+
const [progress, setProgress] = useState(45);
|
|
135
|
+
const [sliderValue, setSliderValue] = useState([50]);
|
|
136
|
+
const [switchEnabled, setSwitchEnabled] = useState(false);
|
|
137
|
+
const [richText, setRichText] = useState('');
|
|
138
|
+
|
|
139
|
+
// Dialog demo inputs (controlled so they re-localise on language switch).
|
|
140
|
+
// Seeded lazily from `t(...)` so the initial value reflects the current
|
|
141
|
+
// language at first render; subsequent language switches don't overwrite
|
|
142
|
+
// user edits.
|
|
143
|
+
const [dialogName, setDialogName] = useState(() => t('templates.dialogs.nameDefaultValue'));
|
|
144
|
+
const [dialogUsername, setDialogUsername] = useState(() =>
|
|
145
|
+
t('templates.dialogs.usernameDefaultValue')
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
// ── Pagination demo ─────────────────────────────────────────────────────────
|
|
149
|
+
const { currentPage, totalPages, items, next, prev, goTo, canGoPrev, canGoNext } = usePagination({
|
|
150
|
+
totalItems: 120,
|
|
151
|
+
pageSize: 10,
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// ── Stepper demo ────────────────────────────────────────────────────────────
|
|
155
|
+
const {
|
|
156
|
+
currentStep,
|
|
157
|
+
next: stepNext,
|
|
158
|
+
prev: stepPrev,
|
|
159
|
+
isFirstStep,
|
|
160
|
+
isLastStep,
|
|
161
|
+
} = useStepper({ totalSteps: 3 });
|
|
162
|
+
|
|
163
|
+
const handleFormSubmit = (e: React.FormEvent) => {
|
|
164
|
+
e.preventDefault();
|
|
165
|
+
toast.success(t('templates.formSubmitSuccess'));
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
return (
|
|
169
|
+
<div
|
|
170
|
+
style={{
|
|
171
|
+
paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : '80px',
|
|
172
|
+
}}
|
|
173
|
+
className="flex-1 flex flex-col overflow-hidden transition-all duration-300"
|
|
174
|
+
>
|
|
175
|
+
<Header
|
|
176
|
+
showThemeToggle={true}
|
|
177
|
+
showLanguageSelector={true}
|
|
178
|
+
breadcrumbs={[
|
|
179
|
+
{ label: t('nav.designSystem'), href: '/home' },
|
|
180
|
+
{ label: t('templates.breadcrumb') },
|
|
181
|
+
]}
|
|
182
|
+
renderLink={(href: string, props: any) => <Link to={href} {...props} />}
|
|
183
|
+
/>
|
|
184
|
+
|
|
185
|
+
<main className="flex-1 overflow-hidden bg-muted">
|
|
186
|
+
<div className="h-full" style={{ overflowY: 'auto', overflowX: 'hidden' }}>
|
|
187
|
+
<div className="p-5 sm:p-4 md:p-6">
|
|
188
|
+
<div className="max-w-6xl mx-auto space-y-8">
|
|
189
|
+
<div className="space-y-2">
|
|
190
|
+
<h2>{t('templates.title')}</h2>
|
|
191
|
+
<p className="text-muted-foreground">{t('templates.subtitle')}</p>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
{/* Alert Examples */}
|
|
195
|
+
<section>
|
|
196
|
+
<h3 className="mb-4">{t('templates.sections.alerts')}</h3>
|
|
197
|
+
<div className="grid gap-4 md:grid-cols-2">
|
|
198
|
+
<Alert variant="info">
|
|
199
|
+
<AlertTitle>{t('templates.alerts.infoTitle')}</AlertTitle>
|
|
200
|
+
<AlertDescription>{t('templates.alerts.infoDescription')}</AlertDescription>
|
|
201
|
+
</Alert>
|
|
202
|
+
|
|
203
|
+
<Alert variant="destructive">
|
|
204
|
+
<AlertTitle>{t('templates.alerts.errorTitle')}</AlertTitle>
|
|
205
|
+
<AlertDescription>{t('templates.alerts.errorDescription')}</AlertDescription>
|
|
206
|
+
</Alert>
|
|
207
|
+
|
|
208
|
+
<Alert variant="success">
|
|
209
|
+
<AlertTitle>{t('templates.alerts.successTitle')}</AlertTitle>
|
|
210
|
+
<AlertDescription>{t('templates.alerts.successDescription')}</AlertDescription>
|
|
211
|
+
</Alert>
|
|
212
|
+
|
|
213
|
+
<Alert variant="warning">
|
|
214
|
+
<AlertTitle>{t('templates.alerts.warningTitle')}</AlertTitle>
|
|
215
|
+
<AlertDescription>{t('templates.alerts.warningDescription')}</AlertDescription>
|
|
216
|
+
</Alert>
|
|
217
|
+
</div>
|
|
218
|
+
</section>
|
|
219
|
+
|
|
220
|
+
<Separator className="my-8" />
|
|
221
|
+
|
|
222
|
+
{/* Cards & Tabs */}
|
|
223
|
+
<section>
|
|
224
|
+
<h3 className="mb-4">{t('templates.sections.cardsAndTabs')}</h3>
|
|
225
|
+
|
|
226
|
+
<Tabs defaultValue="overview" className="w-full">
|
|
227
|
+
<TabsList className="grid w-full grid-cols-4">
|
|
228
|
+
<TabsTrigger value="overview">{t('templates.tabs.overview')}</TabsTrigger>
|
|
229
|
+
<TabsTrigger value="forms">{t('templates.tabs.forms')}</TabsTrigger>
|
|
230
|
+
<TabsTrigger value="data">{t('templates.tabs.data')}</TabsTrigger>
|
|
231
|
+
<TabsTrigger value="settings">{t('templates.tabs.settings')}</TabsTrigger>
|
|
232
|
+
</TabsList>
|
|
233
|
+
|
|
234
|
+
{/* Overview Tab */}
|
|
235
|
+
<TabsContent value="overview" className="space-y-4">
|
|
236
|
+
<div className="grid gap-4 md:grid-cols-3">
|
|
237
|
+
<Card>
|
|
238
|
+
<CardHeader>
|
|
239
|
+
<CardTitle>{t('stats.totalUsers')}</CardTitle>
|
|
240
|
+
<CardDescription>{t('stats.last30Days')}</CardDescription>
|
|
241
|
+
</CardHeader>
|
|
242
|
+
<CardContent>
|
|
243
|
+
<div className="text-foreground">
|
|
244
|
+
<span className="[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]">
|
|
245
|
+
{t('templates.overview.totalUsersDemoValue')}
|
|
246
|
+
</span>
|
|
247
|
+
<Badge variant="default" className="ml-2">
|
|
248
|
+
+12%
|
|
249
|
+
</Badge>
|
|
250
|
+
</div>
|
|
251
|
+
</CardContent>
|
|
252
|
+
</Card>
|
|
253
|
+
|
|
254
|
+
<Card>
|
|
255
|
+
<CardHeader>
|
|
256
|
+
<CardTitle>{t('stats.totalRevenue')}</CardTitle>
|
|
257
|
+
<CardDescription>{t('stats.currentMonth')}</CardDescription>
|
|
258
|
+
</CardHeader>
|
|
259
|
+
<CardContent>
|
|
260
|
+
<div className="text-foreground">
|
|
261
|
+
<span className="[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]">
|
|
262
|
+
{t('templates.overview.revenueDemoValue')}
|
|
263
|
+
</span>
|
|
264
|
+
<Badge variant="secondary" className="ml-2">
|
|
265
|
+
+8%
|
|
266
|
+
</Badge>
|
|
267
|
+
</div>
|
|
268
|
+
</CardContent>
|
|
269
|
+
</Card>
|
|
270
|
+
|
|
271
|
+
<Card>
|
|
272
|
+
<CardHeader>
|
|
273
|
+
<CardTitle>{t('stats.conversionRate')}</CardTitle>
|
|
274
|
+
<CardDescription>{t('stats.currentWeek')}</CardDescription>
|
|
275
|
+
</CardHeader>
|
|
276
|
+
<CardContent>
|
|
277
|
+
<div className="text-foreground">
|
|
278
|
+
<span className="[font-size:var(--text-stats)] [font-weight:var(--font-weight-bold)]">
|
|
279
|
+
{t('templates.overview.conversionRateDemoValue')}
|
|
280
|
+
</span>
|
|
281
|
+
<Badge variant="outline" className="ml-2">
|
|
282
|
+
-2%
|
|
283
|
+
</Badge>
|
|
284
|
+
</div>
|
|
285
|
+
</CardContent>
|
|
286
|
+
</Card>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<Card>
|
|
290
|
+
<CardHeader>
|
|
291
|
+
<CardTitle>{t('templates.overview.progressTitle')}</CardTitle>
|
|
292
|
+
<CardDescription>
|
|
293
|
+
{t('templates.overview.progressDescription')}
|
|
294
|
+
</CardDescription>
|
|
295
|
+
</CardHeader>
|
|
296
|
+
<CardContent className="space-y-6">
|
|
297
|
+
<div className="space-y-2">
|
|
298
|
+
<div className="flex items-center justify-between">
|
|
299
|
+
<Label>{t('templates.overview.projectProgress')}</Label>
|
|
300
|
+
<span className="[font-size:var(--text-small)] text-muted-foreground">
|
|
301
|
+
{progress}%
|
|
302
|
+
</span>
|
|
303
|
+
</div>
|
|
304
|
+
<Progress value={progress} className="w-full" />
|
|
305
|
+
<div className="flex gap-2">
|
|
306
|
+
<Button
|
|
307
|
+
size="sm"
|
|
308
|
+
onClick={() => setProgress(Math.max(0, progress - 10))}
|
|
309
|
+
>
|
|
310
|
+
-10%
|
|
311
|
+
</Button>
|
|
312
|
+
<Button
|
|
313
|
+
size="sm"
|
|
314
|
+
onClick={() => setProgress(Math.min(100, progress + 10))}
|
|
315
|
+
>
|
|
316
|
+
+10%
|
|
317
|
+
</Button>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
<Separator />
|
|
322
|
+
|
|
323
|
+
<div className="space-y-2">
|
|
324
|
+
<div className="flex items-center justify-between">
|
|
325
|
+
<Label>{t('templates.overview.volume')}</Label>
|
|
326
|
+
<span className="[font-size:var(--text-small)] text-muted-foreground">
|
|
327
|
+
{sliderValue[0]}%
|
|
328
|
+
</span>
|
|
329
|
+
</div>
|
|
330
|
+
<Slider
|
|
331
|
+
value={sliderValue}
|
|
332
|
+
onValueChange={setSliderValue}
|
|
333
|
+
min={0}
|
|
334
|
+
max={100}
|
|
335
|
+
step={1}
|
|
336
|
+
className="w-full"
|
|
337
|
+
/>
|
|
338
|
+
</div>
|
|
339
|
+
</CardContent>
|
|
340
|
+
</Card>
|
|
341
|
+
</TabsContent>
|
|
342
|
+
|
|
343
|
+
{/* Forms Tab */}
|
|
344
|
+
<TabsContent value="forms" className="space-y-4">
|
|
345
|
+
<Card>
|
|
346
|
+
<CardHeader>
|
|
347
|
+
<CardTitle>{t('templates.forms.registrationTitle')}</CardTitle>
|
|
348
|
+
<CardDescription>
|
|
349
|
+
{t('templates.forms.registrationDescription')}
|
|
350
|
+
</CardDescription>
|
|
351
|
+
</CardHeader>
|
|
352
|
+
<CardContent>
|
|
353
|
+
<form onSubmit={handleFormSubmit} className="space-y-4">
|
|
354
|
+
<div className="grid gap-4 md:grid-cols-2">
|
|
355
|
+
<div className="space-y-2">
|
|
356
|
+
<Label htmlFor="firstName">{t('templates.forms.firstName')}</Label>
|
|
357
|
+
<Input
|
|
358
|
+
id="firstName"
|
|
359
|
+
placeholder={t('templates.forms.firstNamePlaceholder')}
|
|
360
|
+
/>
|
|
361
|
+
</div>
|
|
362
|
+
<div className="space-y-2">
|
|
363
|
+
<Label htmlFor="lastName">{t('templates.forms.lastName')}</Label>
|
|
364
|
+
<Input
|
|
365
|
+
id="lastName"
|
|
366
|
+
placeholder={t('templates.forms.lastNamePlaceholder')}
|
|
367
|
+
/>
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
<div className="space-y-2">
|
|
372
|
+
<Label htmlFor="email">{t('templates.forms.email')}</Label>
|
|
373
|
+
<div className="relative">
|
|
374
|
+
<Mail className="absolute left-3 top-3 h-4 w-4 text-muted-foreground" />
|
|
375
|
+
<Input
|
|
376
|
+
id="email"
|
|
377
|
+
type="email"
|
|
378
|
+
placeholder={t('templates.forms.emailPlaceholder')}
|
|
379
|
+
className="pl-10"
|
|
380
|
+
/>
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<div className="space-y-2">
|
|
385
|
+
<Label htmlFor="phone">{t('templates.forms.phone')}</Label>
|
|
386
|
+
<div className="relative">
|
|
387
|
+
<Phone className="absolute left-3 top-3 h-4 w-4 text-muted-foreground" />
|
|
388
|
+
<Input
|
|
389
|
+
id="phone"
|
|
390
|
+
type="tel"
|
|
391
|
+
placeholder={t('templates.forms.phonePlaceholder')}
|
|
392
|
+
className="pl-10"
|
|
393
|
+
/>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
|
|
397
|
+
<div className="space-y-2">
|
|
398
|
+
<Label htmlFor="role">{t('templates.forms.role')}</Label>
|
|
399
|
+
<Select>
|
|
400
|
+
<SelectTrigger id="role">
|
|
401
|
+
<SelectValue placeholder={t('templates.forms.rolePlaceholder')} />
|
|
402
|
+
</SelectTrigger>
|
|
403
|
+
<SelectContent>
|
|
404
|
+
<SelectItem value="developer">
|
|
405
|
+
{t('templates.forms.roles.developer')}
|
|
406
|
+
</SelectItem>
|
|
407
|
+
<SelectItem value="designer">
|
|
408
|
+
{t('templates.forms.roles.designer')}
|
|
409
|
+
</SelectItem>
|
|
410
|
+
<SelectItem value="manager">
|
|
411
|
+
{t('templates.forms.roles.manager')}
|
|
412
|
+
</SelectItem>
|
|
413
|
+
<SelectItem value="analyst">
|
|
414
|
+
{t('templates.forms.roles.analyst')}
|
|
415
|
+
</SelectItem>
|
|
416
|
+
</SelectContent>
|
|
417
|
+
</Select>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
<div className="space-y-2">
|
|
421
|
+
<Label htmlFor="bio">{t('templates.forms.bio')}</Label>
|
|
422
|
+
<Textarea
|
|
423
|
+
id="bio"
|
|
424
|
+
placeholder={t('templates.forms.bioPlaceholder')}
|
|
425
|
+
rows={4}
|
|
426
|
+
/>
|
|
427
|
+
</div>
|
|
428
|
+
|
|
429
|
+
<Separator />
|
|
430
|
+
|
|
431
|
+
<div className="space-y-4">
|
|
432
|
+
<h4>{t('templates.forms.preferences')}</h4>
|
|
433
|
+
|
|
434
|
+
<div className="space-y-3">
|
|
435
|
+
<div className="flex items-center space-x-2">
|
|
436
|
+
<Checkbox id="newsletter" />
|
|
437
|
+
<Label htmlFor="newsletter" className="font-normal">
|
|
438
|
+
{t('templates.forms.newsletter')}
|
|
439
|
+
</Label>
|
|
440
|
+
</div>
|
|
441
|
+
|
|
442
|
+
<div className="flex items-center space-x-2">
|
|
443
|
+
<Checkbox id="notifications" />
|
|
444
|
+
<Label htmlFor="notifications" className="font-normal">
|
|
445
|
+
{t('templates.forms.pushNotifications')}
|
|
446
|
+
</Label>
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
<div className="flex items-center space-x-2">
|
|
450
|
+
<Checkbox id="updates" />
|
|
451
|
+
<Label htmlFor="updates" className="font-normal">
|
|
452
|
+
{t('templates.forms.featureUpdates')}
|
|
453
|
+
</Label>
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
|
|
457
|
+
<Separator />
|
|
458
|
+
|
|
459
|
+
<div className="space-y-3">
|
|
460
|
+
<Label>{t('templates.forms.accountType')}</Label>
|
|
461
|
+
<RadioGroup defaultValue="personal">
|
|
462
|
+
<div className="flex items-center space-x-2">
|
|
463
|
+
<RadioGroupItem value="personal" id="personal" />
|
|
464
|
+
<Label htmlFor="personal" className="font-normal">
|
|
465
|
+
{t('templates.forms.accountPersonal')}
|
|
466
|
+
</Label>
|
|
467
|
+
</div>
|
|
468
|
+
<div className="flex items-center space-x-2">
|
|
469
|
+
<RadioGroupItem value="business" id="business" />
|
|
470
|
+
<Label htmlFor="business" className="font-normal">
|
|
471
|
+
{t('templates.forms.accountBusiness')}
|
|
472
|
+
</Label>
|
|
473
|
+
</div>
|
|
474
|
+
<div className="flex items-center space-x-2">
|
|
475
|
+
<RadioGroupItem value="enterprise" id="enterprise" />
|
|
476
|
+
<Label htmlFor="enterprise" className="font-normal">
|
|
477
|
+
{t('templates.forms.accountEnterprise')}
|
|
478
|
+
</Label>
|
|
479
|
+
</div>
|
|
480
|
+
</RadioGroup>
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
</form>
|
|
484
|
+
</CardContent>
|
|
485
|
+
<CardFooter className="flex justify-between">
|
|
486
|
+
<Button variant="outline">{t('templates.forms.cancel')}</Button>
|
|
487
|
+
<Button onClick={handleFormSubmit}>
|
|
488
|
+
{t('templates.forms.createAccount')}
|
|
489
|
+
</Button>
|
|
490
|
+
</CardFooter>
|
|
491
|
+
</Card>
|
|
492
|
+
</TabsContent>
|
|
493
|
+
|
|
494
|
+
{/* Data Tab */}
|
|
495
|
+
<TabsContent value="data" className="space-y-4">
|
|
496
|
+
<Card>
|
|
497
|
+
<CardHeader>
|
|
498
|
+
<CardTitle>{t('templates.data.title')}</CardTitle>
|
|
499
|
+
<CardDescription>{t('templates.data.description')}</CardDescription>
|
|
500
|
+
</CardHeader>
|
|
501
|
+
<CardContent>
|
|
502
|
+
<div className="mb-4">
|
|
503
|
+
<div className="relative">
|
|
504
|
+
<Search className="absolute left-3 top-3 h-4 w-4 text-muted-foreground" />
|
|
505
|
+
<Input
|
|
506
|
+
placeholder={t('templates.data.searchPlaceholder')}
|
|
507
|
+
className="pl-10"
|
|
508
|
+
/>
|
|
509
|
+
</div>
|
|
510
|
+
</div>
|
|
511
|
+
|
|
512
|
+
<div className="rounded-[var(--radius-lg)] border border-border overflow-hidden">
|
|
513
|
+
<Table>
|
|
514
|
+
<TableHeader>
|
|
515
|
+
<TableRow>
|
|
516
|
+
<TableHead>{t('templates.data.headers.name')}</TableHead>
|
|
517
|
+
<TableHead>{t('templates.data.headers.email')}</TableHead>
|
|
518
|
+
<TableHead>{t('templates.data.headers.role')}</TableHead>
|
|
519
|
+
<TableHead>{t('templates.data.headers.status')}</TableHead>
|
|
520
|
+
<TableHead className="text-right">
|
|
521
|
+
{t('templates.data.headers.actions')}
|
|
522
|
+
</TableHead>
|
|
523
|
+
</TableRow>
|
|
524
|
+
</TableHeader>
|
|
525
|
+
<TableBody>
|
|
526
|
+
<TableRow>
|
|
527
|
+
<TableCell>Ana Silva</TableCell>
|
|
528
|
+
<TableCell>{`ana.silva@${t('templates.data.demoEmailDomain')}`}</TableCell>
|
|
529
|
+
<TableCell>{t('templates.data.roles.developerFemale')}</TableCell>
|
|
530
|
+
<TableCell>
|
|
531
|
+
<Badge variant="default">
|
|
532
|
+
{t('templates.data.status.active')}
|
|
533
|
+
</Badge>
|
|
534
|
+
</TableCell>
|
|
535
|
+
<TableCell className="text-right">
|
|
536
|
+
<Button variant="ghost" size="sm">
|
|
537
|
+
{t('templates.data.edit')}
|
|
538
|
+
</Button>
|
|
539
|
+
</TableCell>
|
|
540
|
+
</TableRow>
|
|
541
|
+
<TableRow>
|
|
542
|
+
<TableCell>Bruno Costa</TableCell>
|
|
543
|
+
<TableCell>{`bruno.costa@${t('templates.data.demoEmailDomain')}`}</TableCell>
|
|
544
|
+
<TableCell>{t('templates.data.roles.designer')}</TableCell>
|
|
545
|
+
<TableCell>
|
|
546
|
+
<Badge variant="default">
|
|
547
|
+
{t('templates.data.status.active')}
|
|
548
|
+
</Badge>
|
|
549
|
+
</TableCell>
|
|
550
|
+
<TableCell className="text-right">
|
|
551
|
+
<Button variant="ghost" size="sm">
|
|
552
|
+
{t('templates.data.edit')}
|
|
553
|
+
</Button>
|
|
554
|
+
</TableCell>
|
|
555
|
+
</TableRow>
|
|
556
|
+
<TableRow>
|
|
557
|
+
<TableCell>Carla Oliveira</TableCell>
|
|
558
|
+
<TableCell>{`carla.oliveira@${t('templates.data.demoEmailDomain')}`}</TableCell>
|
|
559
|
+
<TableCell>{t('templates.data.roles.manager')}</TableCell>
|
|
560
|
+
<TableCell>
|
|
561
|
+
<Badge variant="secondary">
|
|
562
|
+
{t('templates.data.status.away')}
|
|
563
|
+
</Badge>
|
|
564
|
+
</TableCell>
|
|
565
|
+
<TableCell className="text-right">
|
|
566
|
+
<Button variant="ghost" size="sm">
|
|
567
|
+
{t('templates.data.edit')}
|
|
568
|
+
</Button>
|
|
569
|
+
</TableCell>
|
|
570
|
+
</TableRow>
|
|
571
|
+
<TableRow>
|
|
572
|
+
<TableCell>Diego Santos</TableCell>
|
|
573
|
+
<TableCell>{`diego.santos@${t('templates.data.demoEmailDomain')}`}</TableCell>
|
|
574
|
+
<TableCell>{t('templates.data.roles.analyst')}</TableCell>
|
|
575
|
+
<TableCell>
|
|
576
|
+
<Badge variant="outline">
|
|
577
|
+
{t('templates.data.status.inactive')}
|
|
578
|
+
</Badge>
|
|
579
|
+
</TableCell>
|
|
580
|
+
<TableCell className="text-right">
|
|
581
|
+
<Button variant="ghost" size="sm">
|
|
582
|
+
{t('templates.data.edit')}
|
|
583
|
+
</Button>
|
|
584
|
+
</TableCell>
|
|
585
|
+
</TableRow>
|
|
586
|
+
</TableBody>
|
|
587
|
+
</Table>
|
|
588
|
+
</div>
|
|
589
|
+
</CardContent>
|
|
590
|
+
<CardFooter className="flex justify-between items-center">
|
|
591
|
+
<p className="text-muted-foreground">
|
|
592
|
+
{t('templates.data.showing', { count: 4, total: 127 })}
|
|
593
|
+
</p>
|
|
594
|
+
<div className="flex gap-2">
|
|
595
|
+
<Button variant="outline" size="sm">
|
|
596
|
+
{t('templates.data.previous')}
|
|
597
|
+
</Button>
|
|
598
|
+
<Button variant="outline" size="sm">
|
|
599
|
+
{t('templates.data.next')}
|
|
600
|
+
</Button>
|
|
601
|
+
</div>
|
|
602
|
+
</CardFooter>
|
|
603
|
+
</Card>
|
|
604
|
+
</TabsContent>
|
|
605
|
+
|
|
606
|
+
{/* Settings Tab */}
|
|
607
|
+
<TabsContent value="settings" className="space-y-4">
|
|
608
|
+
<Card>
|
|
609
|
+
<CardHeader>
|
|
610
|
+
<CardTitle>{t('templates.settings.title')}</CardTitle>
|
|
611
|
+
<CardDescription>{t('templates.settings.description')}</CardDescription>
|
|
612
|
+
</CardHeader>
|
|
613
|
+
<CardContent className="space-y-6">
|
|
614
|
+
{!disableDarkMode && (
|
|
615
|
+
<>
|
|
616
|
+
<div className="flex items-center justify-between">
|
|
617
|
+
<div className="space-y-1">
|
|
618
|
+
<Label>{t('templates.settings.darkMode')}</Label>
|
|
619
|
+
<p className="text-muted-foreground">
|
|
620
|
+
{t('templates.settings.darkModeDescription')}
|
|
621
|
+
</p>
|
|
622
|
+
</div>
|
|
623
|
+
<Switch checked={switchEnabled} onCheckedChange={setSwitchEnabled} />
|
|
624
|
+
</div>
|
|
625
|
+
|
|
626
|
+
<Separator />
|
|
627
|
+
</>
|
|
628
|
+
)}
|
|
629
|
+
|
|
630
|
+
<div className="flex items-center justify-between">
|
|
631
|
+
<div className="space-y-1">
|
|
632
|
+
<Label>{t('templates.settings.emailNotifications')}</Label>
|
|
633
|
+
<p className="text-muted-foreground">
|
|
634
|
+
{t('templates.settings.emailNotificationsDescription')}
|
|
635
|
+
</p>
|
|
636
|
+
</div>
|
|
637
|
+
<Switch defaultChecked />
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
<Separator />
|
|
641
|
+
|
|
642
|
+
<div className="flex items-center justify-between">
|
|
643
|
+
<div className="space-y-1">
|
|
644
|
+
<Label>{t('templates.settings.pushNotifications')}</Label>
|
|
645
|
+
<p className="text-muted-foreground">
|
|
646
|
+
{t('templates.settings.pushNotificationsDescription')}
|
|
647
|
+
</p>
|
|
648
|
+
</div>
|
|
649
|
+
<Switch />
|
|
650
|
+
</div>
|
|
651
|
+
|
|
652
|
+
<Separator />
|
|
653
|
+
|
|
654
|
+
<div className="space-y-3">
|
|
655
|
+
<Label>{t('templates.settings.language')}</Label>
|
|
656
|
+
<Select defaultValue="pt-br">
|
|
657
|
+
<SelectTrigger>
|
|
658
|
+
<SelectValue />
|
|
659
|
+
</SelectTrigger>
|
|
660
|
+
<SelectContent>
|
|
661
|
+
<SelectItem value="pt-br">
|
|
662
|
+
{t('templates.settings.languages.ptBR')}
|
|
663
|
+
</SelectItem>
|
|
664
|
+
<SelectItem value="en">
|
|
665
|
+
{t('templates.settings.languages.en')}
|
|
666
|
+
</SelectItem>
|
|
667
|
+
<SelectItem value="es">
|
|
668
|
+
{t('templates.settings.languages.es')}
|
|
669
|
+
</SelectItem>
|
|
670
|
+
</SelectContent>
|
|
671
|
+
</Select>
|
|
672
|
+
</div>
|
|
673
|
+
|
|
674
|
+
<Separator />
|
|
675
|
+
|
|
676
|
+
<div className="space-y-3">
|
|
677
|
+
<Label>{t('templates.settings.timezone')}</Label>
|
|
678
|
+
<Select defaultValue="america-sao-paulo">
|
|
679
|
+
<SelectTrigger>
|
|
680
|
+
<SelectValue />
|
|
681
|
+
</SelectTrigger>
|
|
682
|
+
<SelectContent>
|
|
683
|
+
<SelectItem value="america-sao-paulo">
|
|
684
|
+
{t('templates.settings.timezones.saoPaulo')}
|
|
685
|
+
</SelectItem>
|
|
686
|
+
<SelectItem value="america-new-york">
|
|
687
|
+
{t('templates.settings.timezones.newYork')}
|
|
688
|
+
</SelectItem>
|
|
689
|
+
<SelectItem value="europe-london">
|
|
690
|
+
{t('templates.settings.timezones.london')}
|
|
691
|
+
</SelectItem>
|
|
692
|
+
</SelectContent>
|
|
693
|
+
</Select>
|
|
694
|
+
</div>
|
|
695
|
+
</CardContent>
|
|
696
|
+
<CardFooter className="flex justify-between">
|
|
697
|
+
<Button variant="outline">{t('templates.settings.restoreDefaults')}</Button>
|
|
698
|
+
<Button>{t('templates.settings.saveChanges')}</Button>
|
|
699
|
+
</CardFooter>
|
|
700
|
+
</Card>
|
|
701
|
+
</TabsContent>
|
|
702
|
+
</Tabs>
|
|
703
|
+
</section>
|
|
704
|
+
|
|
705
|
+
<Separator className="my-8" />
|
|
706
|
+
|
|
707
|
+
{/* Button Variants */}
|
|
708
|
+
<section>
|
|
709
|
+
<h3 className="mb-4">{t('templates.sections.buttons')}</h3>
|
|
710
|
+
<Card>
|
|
711
|
+
<CardHeader>
|
|
712
|
+
<CardTitle>{t('templates.buttons.title')}</CardTitle>
|
|
713
|
+
<CardDescription>{t('templates.buttons.description')}</CardDescription>
|
|
714
|
+
</CardHeader>
|
|
715
|
+
<CardContent className="space-y-6">
|
|
716
|
+
<div className="space-y-3">
|
|
717
|
+
<Label>{t('templates.buttons.variants')}</Label>
|
|
718
|
+
<div className="flex flex-wrap gap-3">
|
|
719
|
+
<Button variant="default">
|
|
720
|
+
{t('templates.buttons.variantLabels.default')}
|
|
721
|
+
</Button>
|
|
722
|
+
<Button variant="secondary">
|
|
723
|
+
{t('templates.buttons.variantLabels.secondary')}
|
|
724
|
+
</Button>
|
|
725
|
+
<Button variant="outline">
|
|
726
|
+
{t('templates.buttons.variantLabels.outline')}
|
|
727
|
+
</Button>
|
|
728
|
+
<Button variant="ghost">
|
|
729
|
+
{t('templates.buttons.variantLabels.ghost')}
|
|
730
|
+
</Button>
|
|
731
|
+
<Button variant="link">{t('templates.buttons.variantLabels.link')}</Button>
|
|
732
|
+
<Button variant="destructive">
|
|
733
|
+
{t('templates.buttons.variantLabels.destructive')}
|
|
734
|
+
</Button>
|
|
735
|
+
</div>
|
|
736
|
+
</div>
|
|
737
|
+
|
|
738
|
+
<Separator />
|
|
739
|
+
|
|
740
|
+
<div className="space-y-3">
|
|
741
|
+
<Label>{t('templates.buttons.sizes')}</Label>
|
|
742
|
+
<div className="flex flex-wrap items-center gap-3">
|
|
743
|
+
<Button size="sm">{t('templates.buttons.sizeLabels.small')}</Button>
|
|
744
|
+
<Button size="default">{t('templates.buttons.sizeLabels.default')}</Button>
|
|
745
|
+
<Button size="lg">{t('templates.buttons.sizeLabels.large')}</Button>
|
|
746
|
+
<Button size="icon">
|
|
747
|
+
<Settings className="h-4 w-4" />
|
|
748
|
+
</Button>
|
|
749
|
+
</div>
|
|
750
|
+
</div>
|
|
751
|
+
|
|
752
|
+
<Separator />
|
|
753
|
+
|
|
754
|
+
<div className="space-y-3">
|
|
755
|
+
<Label>{t('templates.buttons.withIcons')}</Label>
|
|
756
|
+
<div className="flex flex-wrap gap-3">
|
|
757
|
+
<Button>
|
|
758
|
+
<User className="mr-2 h-4 w-4" />
|
|
759
|
+
{t('templates.buttons.profile')}
|
|
760
|
+
</Button>
|
|
761
|
+
<Button variant="secondary">
|
|
762
|
+
<Mail className="mr-2 h-4 w-4" />
|
|
763
|
+
{t('templates.buttons.messages')}
|
|
764
|
+
</Button>
|
|
765
|
+
<Button variant="outline">
|
|
766
|
+
<Calendar className="mr-2 h-4 w-4" />
|
|
767
|
+
{t('templates.buttons.schedule')}
|
|
768
|
+
</Button>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
|
|
772
|
+
<Separator />
|
|
773
|
+
|
|
774
|
+
<div className="space-y-3">
|
|
775
|
+
<Label>{t('templates.buttons.states')}</Label>
|
|
776
|
+
<div className="flex flex-wrap gap-3">
|
|
777
|
+
<Button disabled>{t('templates.buttons.disabled')}</Button>
|
|
778
|
+
<Button variant="outline" disabled>
|
|
779
|
+
{t('templates.buttons.outlineDisabled')}
|
|
780
|
+
</Button>
|
|
781
|
+
</div>
|
|
782
|
+
</div>
|
|
783
|
+
</CardContent>
|
|
784
|
+
</Card>
|
|
785
|
+
</section>
|
|
786
|
+
|
|
787
|
+
<Separator className="my-8" />
|
|
788
|
+
|
|
789
|
+
{/* Badges */}
|
|
790
|
+
<section>
|
|
791
|
+
<h3 className="mb-4">{t('templates.sections.badges')}</h3>
|
|
792
|
+
<Card>
|
|
793
|
+
<CardHeader>
|
|
794
|
+
<CardTitle>{t('templates.badges.title')}</CardTitle>
|
|
795
|
+
<CardDescription>{t('templates.badges.description')}</CardDescription>
|
|
796
|
+
</CardHeader>
|
|
797
|
+
<CardContent>
|
|
798
|
+
<div className="flex flex-wrap gap-3">
|
|
799
|
+
<Badge variant="default">{t('templates.badges.labels.default')}</Badge>
|
|
800
|
+
<Badge variant="secondary">{t('templates.badges.labels.secondary')}</Badge>
|
|
801
|
+
<Badge variant="outline">{t('templates.badges.labels.outline')}</Badge>
|
|
802
|
+
<Badge variant="destructive">
|
|
803
|
+
{t('templates.badges.labels.destructive')}
|
|
804
|
+
</Badge>
|
|
805
|
+
<Badge className="bg-success text-success-foreground">
|
|
806
|
+
{t('templates.badges.labels.success')}
|
|
807
|
+
</Badge>
|
|
808
|
+
<Badge className="bg-warning text-warning-foreground">
|
|
809
|
+
{t('templates.badges.labels.warning')}
|
|
810
|
+
</Badge>
|
|
811
|
+
<Badge className="bg-info text-info-foreground">
|
|
812
|
+
{t('templates.badges.labels.info')}
|
|
813
|
+
</Badge>
|
|
814
|
+
</div>
|
|
815
|
+
</CardContent>
|
|
816
|
+
</Card>
|
|
817
|
+
</section>
|
|
818
|
+
|
|
819
|
+
<Separator className="my-8" />
|
|
820
|
+
|
|
821
|
+
{/* Dialogs */}
|
|
822
|
+
<section>
|
|
823
|
+
<h3 className="mb-4">{t('templates.sections.dialogs')}</h3>
|
|
824
|
+
<div className="grid gap-4 md:grid-cols-2">
|
|
825
|
+
<Card>
|
|
826
|
+
<CardHeader>
|
|
827
|
+
<CardTitle>{t('templates.dialogs.dialogTitle')}</CardTitle>
|
|
828
|
+
<CardDescription>{t('templates.dialogs.dialogDescription')}</CardDescription>
|
|
829
|
+
</CardHeader>
|
|
830
|
+
<CardContent className="flex justify-center py-6">
|
|
831
|
+
<Dialog>
|
|
832
|
+
<DialogTrigger asChild>
|
|
833
|
+
<Button variant="outline">{t('templates.dialogs.editProfile')}</Button>
|
|
834
|
+
</DialogTrigger>
|
|
835
|
+
<DialogContent className="sm:max-w-[425px]">
|
|
836
|
+
<DialogHeader>
|
|
837
|
+
<DialogTitle>{t('templates.dialogs.editProfile')}</DialogTitle>
|
|
838
|
+
<DialogDescription>
|
|
839
|
+
{t('templates.dialogs.editProfileDescription')}
|
|
840
|
+
</DialogDescription>
|
|
841
|
+
</DialogHeader>
|
|
842
|
+
<div className="grid gap-4 py-4">
|
|
843
|
+
<div className="grid grid-cols-4 items-center gap-4">
|
|
844
|
+
<Label htmlFor="name" className="text-right">
|
|
845
|
+
{t('templates.dialogs.name')}
|
|
846
|
+
</Label>
|
|
847
|
+
<Input
|
|
848
|
+
id="name"
|
|
849
|
+
value={dialogName}
|
|
850
|
+
onChange={e => setDialogName(e.target.value)}
|
|
851
|
+
className="col-span-3"
|
|
852
|
+
/>
|
|
853
|
+
</div>
|
|
854
|
+
<div className="grid grid-cols-4 items-center gap-4">
|
|
855
|
+
<Label htmlFor="username" className="text-right">
|
|
856
|
+
{t('templates.dialogs.username')}
|
|
857
|
+
</Label>
|
|
858
|
+
<Input
|
|
859
|
+
id="username"
|
|
860
|
+
value={dialogUsername}
|
|
861
|
+
onChange={e => setDialogUsername(e.target.value)}
|
|
862
|
+
className="col-span-3"
|
|
863
|
+
/>
|
|
864
|
+
</div>
|
|
865
|
+
</div>
|
|
866
|
+
<DialogFooter>
|
|
867
|
+
<Button type="submit">{t('templates.dialogs.update')}</Button>
|
|
868
|
+
</DialogFooter>
|
|
869
|
+
</DialogContent>
|
|
870
|
+
</Dialog>
|
|
871
|
+
</CardContent>
|
|
872
|
+
</Card>
|
|
873
|
+
|
|
874
|
+
<Card>
|
|
875
|
+
<CardHeader>
|
|
876
|
+
<CardTitle>{t('templates.dialogs.alertDialogTitle')}</CardTitle>
|
|
877
|
+
<CardDescription>
|
|
878
|
+
{t('templates.dialogs.alertDialogDescription')}
|
|
879
|
+
</CardDescription>
|
|
880
|
+
</CardHeader>
|
|
881
|
+
<CardContent className="flex justify-center py-6">
|
|
882
|
+
<AlertDialog>
|
|
883
|
+
<AlertDialogTrigger asChild>
|
|
884
|
+
<Button variant="destructive">
|
|
885
|
+
{t('templates.dialogs.deleteAccount')}
|
|
886
|
+
</Button>
|
|
887
|
+
</AlertDialogTrigger>
|
|
888
|
+
<AlertDialogContent className="sm:max-w-[425px]">
|
|
889
|
+
<AlertDialogHeader>
|
|
890
|
+
<AlertDialogTitle>{t('templates.dialogs.areYouSure')}</AlertDialogTitle>
|
|
891
|
+
<AlertDialogDescription>
|
|
892
|
+
{t('templates.dialogs.deleteWarning')}
|
|
893
|
+
</AlertDialogDescription>
|
|
894
|
+
</AlertDialogHeader>
|
|
895
|
+
<AlertDialogFooter>
|
|
896
|
+
<AlertDialogCancel>{t('templates.dialogs.cancel')}</AlertDialogCancel>
|
|
897
|
+
<AlertDialogAction className="bg-destructive text-destructive-foreground hover:bg-destructive/90">
|
|
898
|
+
{t('templates.dialogs.continue')}
|
|
899
|
+
</AlertDialogAction>
|
|
900
|
+
</AlertDialogFooter>
|
|
901
|
+
</AlertDialogContent>
|
|
902
|
+
</AlertDialog>
|
|
903
|
+
</CardContent>
|
|
904
|
+
</Card>
|
|
905
|
+
</div>
|
|
906
|
+
</section>
|
|
907
|
+
|
|
908
|
+
<Separator className="my-8" />
|
|
909
|
+
|
|
910
|
+
{/* Sidebar Variations */}
|
|
911
|
+
<section>
|
|
912
|
+
<h3 className="mb-4">{t('templates.sections.sidebarVariations')}</h3>
|
|
913
|
+
<Card>
|
|
914
|
+
<CardHeader>
|
|
915
|
+
<CardTitle>{t('templates.sidebar.title')}</CardTitle>
|
|
916
|
+
<CardDescription>{t('templates.sidebar.description')}</CardDescription>
|
|
917
|
+
</CardHeader>
|
|
918
|
+
<CardContent>
|
|
919
|
+
<Tabs defaultValue="assistant" className="w-full">
|
|
920
|
+
<TabsList className="mb-4">
|
|
921
|
+
<TabsTrigger value="assistant">
|
|
922
|
+
{t('templates.sidebar.assistantMode')}
|
|
923
|
+
</TabsTrigger>
|
|
924
|
+
<TabsTrigger value="default">
|
|
925
|
+
{t('templates.sidebar.defaultMode')}
|
|
926
|
+
</TabsTrigger>
|
|
927
|
+
</TabsList>
|
|
928
|
+
|
|
929
|
+
<TabsContent value="assistant">
|
|
930
|
+
<div
|
|
931
|
+
className="relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden"
|
|
932
|
+
style={{ transform: 'translateZ(0)' }}
|
|
933
|
+
>
|
|
934
|
+
<Sidebar
|
|
935
|
+
expanded={true}
|
|
936
|
+
width={sidebarWidth}
|
|
937
|
+
onToggle={() => {}}
|
|
938
|
+
user={{ email: 'admin@xertica.com' }}
|
|
939
|
+
onLogout={() => toast(t('templates.sidebar.logoutToast'))}
|
|
940
|
+
location={{ pathname: '/assistant/current' }}
|
|
941
|
+
navigate={() => {}}
|
|
942
|
+
variant="assistant"
|
|
943
|
+
search={{
|
|
944
|
+
show: true,
|
|
945
|
+
placeholder: t('templates.sidebar.searchTopicsPlaceholder'),
|
|
946
|
+
}}
|
|
947
|
+
fixedArea={{
|
|
948
|
+
show: true,
|
|
949
|
+
content: (
|
|
950
|
+
<Button className="w-full bg-sidebar-primary hover:bg-sidebar-primary/90 text-sidebar-primary-foreground shadow-lg font-bold border-none transition-all duration-300 transform hover:scale-[1.02] active:scale-[0.98]">
|
|
951
|
+
<Plus className="w-4 h-4 mr-2" />
|
|
952
|
+
{t('templates.sidebar.newConversation')}
|
|
953
|
+
</Button>
|
|
954
|
+
),
|
|
955
|
+
}}
|
|
956
|
+
navigationGroups={[
|
|
957
|
+
{
|
|
958
|
+
id: 'recent',
|
|
959
|
+
label: t('templates.sidebar.recent'),
|
|
960
|
+
icon: Clock,
|
|
961
|
+
items: [
|
|
962
|
+
{
|
|
963
|
+
path: '/assistant/refatoracao',
|
|
964
|
+
label: t('templates.sidebar.items.sidebarRefactor'),
|
|
965
|
+
icon: PanelLeft,
|
|
966
|
+
description: t(
|
|
967
|
+
'templates.sidebar.items.sidebarRefactorDescription'
|
|
968
|
+
),
|
|
969
|
+
actions: [
|
|
970
|
+
{
|
|
971
|
+
label: t('templates.sidebar.actions.rename'),
|
|
972
|
+
icon: FileEdit,
|
|
973
|
+
onClick: () =>
|
|
974
|
+
toast(t('templates.sidebar.actions.renameToast')),
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
label: t('templates.sidebar.actions.move'),
|
|
978
|
+
icon: ArrowRightLeft,
|
|
979
|
+
children: [
|
|
980
|
+
{
|
|
981
|
+
label: t('templates.sidebar.actions.moveActive'),
|
|
982
|
+
onClick: () =>
|
|
983
|
+
toast(t('templates.sidebar.actions.moveActiveToast')),
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
label: t('templates.sidebar.actions.moveMonitoring'),
|
|
987
|
+
onClick: () =>
|
|
988
|
+
toast(
|
|
989
|
+
t('templates.sidebar.actions.moveMonitoringToast')
|
|
990
|
+
),
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
label: t('templates.sidebar.actions.moveArchive'),
|
|
994
|
+
onClick: () =>
|
|
995
|
+
toast(
|
|
996
|
+
t('templates.sidebar.actions.moveArchiveToast')
|
|
997
|
+
),
|
|
998
|
+
},
|
|
999
|
+
],
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
label: t('templates.sidebar.actions.clear'),
|
|
1003
|
+
icon: Trash2,
|
|
1004
|
+
onClick: () =>
|
|
1005
|
+
toast(t('templates.sidebar.actions.clearToast')),
|
|
1006
|
+
variant: 'destructive',
|
|
1007
|
+
},
|
|
1008
|
+
],
|
|
1009
|
+
},
|
|
1010
|
+
],
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
id: 'projects',
|
|
1014
|
+
label: t('templates.sidebar.constructionMonitoring'),
|
|
1015
|
+
icon: Map,
|
|
1016
|
+
actions: [
|
|
1017
|
+
{
|
|
1018
|
+
label: t('templates.sidebar.actions.newCategory'),
|
|
1019
|
+
icon: Plus,
|
|
1020
|
+
onClick: () =>
|
|
1021
|
+
toast(t('templates.sidebar.actions.newCategoryToast')),
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
label: t('templates.sidebar.actions.archiveGroup'),
|
|
1025
|
+
icon: Archive,
|
|
1026
|
+
onClick: () =>
|
|
1027
|
+
toast(t('templates.sidebar.actions.archiveGroupToast')),
|
|
1028
|
+
},
|
|
1029
|
+
],
|
|
1030
|
+
items: [
|
|
1031
|
+
{
|
|
1032
|
+
path: '/assistant/br163',
|
|
1033
|
+
label: t('templates.sidebar.items.br163Restoration'),
|
|
1034
|
+
icon: () => (
|
|
1035
|
+
<div className="w-2 h-2 rounded-full bg-yellow-500" />
|
|
1036
|
+
),
|
|
1037
|
+
description: (
|
|
1038
|
+
<div className="space-y-1.5 min-w-[160px]">
|
|
1039
|
+
<Progress
|
|
1040
|
+
value={67}
|
|
1041
|
+
className="h-1.5 bg-sidebar-foreground/10"
|
|
1042
|
+
/>
|
|
1043
|
+
<div className="flex justify-between items-center text-[10px] text-sidebar-foreground/60">
|
|
1044
|
+
<span>{t('templates.sidebar.items.br163Location')}</span>
|
|
1045
|
+
<span>67%</span>
|
|
1046
|
+
</div>
|
|
1047
|
+
</div>
|
|
1048
|
+
),
|
|
1049
|
+
},
|
|
1050
|
+
],
|
|
1051
|
+
},
|
|
1052
|
+
]}
|
|
1053
|
+
/>
|
|
1054
|
+
<div
|
|
1055
|
+
className="absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300"
|
|
1056
|
+
style={{ left: `${sidebarWidth}px` }}
|
|
1057
|
+
>
|
|
1058
|
+
<p className="text-muted-foreground text-center">
|
|
1059
|
+
{t('templates.sidebar.assistantContent')}
|
|
1060
|
+
</p>
|
|
1061
|
+
</div>
|
|
1062
|
+
</div>
|
|
1063
|
+
</TabsContent>
|
|
1064
|
+
|
|
1065
|
+
<TabsContent value="default">
|
|
1066
|
+
<div
|
|
1067
|
+
className="relative h-[600px] border rounded-[var(--radius-lg)] bg-muted/20 overflow-hidden"
|
|
1068
|
+
style={{ transform: 'translateZ(0)' }}
|
|
1069
|
+
>
|
|
1070
|
+
<Sidebar
|
|
1071
|
+
expanded={true}
|
|
1072
|
+
width={sidebarWidth}
|
|
1073
|
+
onToggle={() => {}}
|
|
1074
|
+
user={{
|
|
1075
|
+
name: 'Ariel Santos',
|
|
1076
|
+
email: 'admin@xertica.com',
|
|
1077
|
+
avatar: 'https://github.com/shadcn.png',
|
|
1078
|
+
}}
|
|
1079
|
+
onLogout={() => toast(t('templates.sidebar.logoutToast'))}
|
|
1080
|
+
onSettingsClick={() =>
|
|
1081
|
+
toast(t('templates.sidebar.settingsClickedToast'))
|
|
1082
|
+
}
|
|
1083
|
+
location={{ pathname: '/home' }}
|
|
1084
|
+
navigate={() => {}}
|
|
1085
|
+
variant="default"
|
|
1086
|
+
routes={[
|
|
1087
|
+
{
|
|
1088
|
+
path: '/home',
|
|
1089
|
+
label: t('templates.sidebar.routes.home'),
|
|
1090
|
+
icon: Home,
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
path: '/dashboard',
|
|
1094
|
+
label: t('templates.sidebar.routes.dashboard'),
|
|
1095
|
+
icon: Users,
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
path: '/settings',
|
|
1099
|
+
label: t('templates.sidebar.routes.settings'),
|
|
1100
|
+
icon: Settings,
|
|
1101
|
+
},
|
|
1102
|
+
]}
|
|
1103
|
+
/>
|
|
1104
|
+
<div
|
|
1105
|
+
className="absolute inset-y-0 right-0 p-8 flex items-center justify-center transition-all duration-300"
|
|
1106
|
+
style={{ left: `${sidebarWidth}px` }}
|
|
1107
|
+
>
|
|
1108
|
+
<p className="text-muted-foreground text-center">
|
|
1109
|
+
{t('templates.sidebar.defaultContent')}
|
|
1110
|
+
</p>
|
|
1111
|
+
</div>
|
|
1112
|
+
</div>
|
|
1113
|
+
</TabsContent>
|
|
1114
|
+
</Tabs>
|
|
1115
|
+
</CardContent>
|
|
1116
|
+
</Card>
|
|
1117
|
+
</section>
|
|
1118
|
+
|
|
1119
|
+
<Separator className="my-8" />
|
|
1120
|
+
|
|
1121
|
+
{/* ── v2.2.1 Components ──────────────────────────────────── */}
|
|
1122
|
+
<Separator className="my-8" />
|
|
1123
|
+
|
|
1124
|
+
<section>
|
|
1125
|
+
<h3 className="mb-4">{t('templates.sections.enhancedComponents')}</h3>
|
|
1126
|
+
<div className="space-y-6">
|
|
1127
|
+
{/* Pagination com disabled */}
|
|
1128
|
+
<Card>
|
|
1129
|
+
<CardHeader>
|
|
1130
|
+
<CardTitle>{t('templates.enhanced.pagination.title')}</CardTitle>
|
|
1131
|
+
<CardDescription>
|
|
1132
|
+
<Trans
|
|
1133
|
+
i18nKey="templates.enhanced.pagination.description"
|
|
1134
|
+
components={{ code: <code className="bg-muted px-1 rounded text-xs" /> }}
|
|
1135
|
+
/>
|
|
1136
|
+
</CardDescription>
|
|
1137
|
+
</CardHeader>
|
|
1138
|
+
<CardContent className="space-y-4">
|
|
1139
|
+
<p className="text-sm text-muted-foreground">
|
|
1140
|
+
{t('templates.enhanced.pagination.pageOfTotal', {
|
|
1141
|
+
current: currentPage,
|
|
1142
|
+
total: totalPages,
|
|
1143
|
+
})}
|
|
1144
|
+
</p>
|
|
1145
|
+
<Pagination>
|
|
1146
|
+
<PaginationContent>
|
|
1147
|
+
<PaginationItem>
|
|
1148
|
+
<PaginationPrevious
|
|
1149
|
+
href="#"
|
|
1150
|
+
onClick={e => {
|
|
1151
|
+
e.preventDefault();
|
|
1152
|
+
prev();
|
|
1153
|
+
}}
|
|
1154
|
+
disabled={!canGoPrev}
|
|
1155
|
+
/>
|
|
1156
|
+
</PaginationItem>
|
|
1157
|
+
{items.map(item =>
|
|
1158
|
+
item.type === 'ellipsis' ? (
|
|
1159
|
+
<PaginationItem key={item.key}>
|
|
1160
|
+
<PaginationEllipsis />
|
|
1161
|
+
</PaginationItem>
|
|
1162
|
+
) : (
|
|
1163
|
+
<PaginationItem key={item.page}>
|
|
1164
|
+
<PaginationLink
|
|
1165
|
+
href="#"
|
|
1166
|
+
isActive={item.page === currentPage}
|
|
1167
|
+
onClick={e => {
|
|
1168
|
+
e.preventDefault();
|
|
1169
|
+
goTo(item.page);
|
|
1170
|
+
}}
|
|
1171
|
+
>
|
|
1172
|
+
{item.page}
|
|
1173
|
+
</PaginationLink>
|
|
1174
|
+
</PaginationItem>
|
|
1175
|
+
)
|
|
1176
|
+
)}
|
|
1177
|
+
<PaginationItem>
|
|
1178
|
+
<PaginationNext
|
|
1179
|
+
href="#"
|
|
1180
|
+
onClick={e => {
|
|
1181
|
+
e.preventDefault();
|
|
1182
|
+
next();
|
|
1183
|
+
}}
|
|
1184
|
+
disabled={!canGoNext}
|
|
1185
|
+
/>
|
|
1186
|
+
</PaginationItem>
|
|
1187
|
+
</PaginationContent>
|
|
1188
|
+
</Pagination>
|
|
1189
|
+
</CardContent>
|
|
1190
|
+
</Card>
|
|
1191
|
+
|
|
1192
|
+
{/* Stepper com ARIA */}
|
|
1193
|
+
<Card>
|
|
1194
|
+
<CardHeader>
|
|
1195
|
+
<CardTitle>{t('templates.enhanced.stepper.title')}</CardTitle>
|
|
1196
|
+
<CardDescription>
|
|
1197
|
+
<Trans
|
|
1198
|
+
i18nKey="templates.enhanced.stepper.description"
|
|
1199
|
+
components={{ code: <code className="bg-muted px-1 rounded text-xs" /> }}
|
|
1200
|
+
/>
|
|
1201
|
+
</CardDescription>
|
|
1202
|
+
</CardHeader>
|
|
1203
|
+
<CardContent className="space-y-4">
|
|
1204
|
+
<Stepper currentStep={currentStep}>
|
|
1205
|
+
<Step
|
|
1206
|
+
step={1}
|
|
1207
|
+
label={t('templates.enhanced.stepper.step1Label')}
|
|
1208
|
+
description={t('templates.enhanced.stepper.step1Description')}
|
|
1209
|
+
/>
|
|
1210
|
+
<Step
|
|
1211
|
+
step={2}
|
|
1212
|
+
label={t('templates.enhanced.stepper.step2Label')}
|
|
1213
|
+
description={t('templates.enhanced.stepper.step2Description')}
|
|
1214
|
+
/>
|
|
1215
|
+
<Step
|
|
1216
|
+
step={3}
|
|
1217
|
+
label={t('templates.enhanced.stepper.step3Label')}
|
|
1218
|
+
description={t('templates.enhanced.stepper.step3Description')}
|
|
1219
|
+
/>
|
|
1220
|
+
</Stepper>
|
|
1221
|
+
<div className="flex gap-2 pt-2">
|
|
1222
|
+
<Button
|
|
1223
|
+
variant="outline"
|
|
1224
|
+
size="sm"
|
|
1225
|
+
onClick={stepPrev}
|
|
1226
|
+
disabled={isFirstStep}
|
|
1227
|
+
>
|
|
1228
|
+
{t('templates.enhanced.stepper.previous')}
|
|
1229
|
+
</Button>
|
|
1230
|
+
<Button size="sm" onClick={stepNext} disabled={isLastStep}>
|
|
1231
|
+
{isLastStep
|
|
1232
|
+
? t('templates.enhanced.stepper.finish')
|
|
1233
|
+
: t('templates.enhanced.stepper.next')}
|
|
1234
|
+
</Button>
|
|
1235
|
+
</div>
|
|
1236
|
+
</CardContent>
|
|
1237
|
+
</Card>
|
|
1238
|
+
|
|
1239
|
+
{/* TreeView com ariaLabel */}
|
|
1240
|
+
<Card>
|
|
1241
|
+
<CardHeader>
|
|
1242
|
+
<CardTitle>{t('templates.enhanced.treeView.title')}</CardTitle>
|
|
1243
|
+
<CardDescription>
|
|
1244
|
+
<Trans
|
|
1245
|
+
i18nKey="templates.enhanced.treeView.description"
|
|
1246
|
+
components={{ code: <code className="bg-muted px-1 rounded text-xs" /> }}
|
|
1247
|
+
/>
|
|
1248
|
+
</CardDescription>
|
|
1249
|
+
</CardHeader>
|
|
1250
|
+
<CardContent>
|
|
1251
|
+
<TreeView
|
|
1252
|
+
data={treeData}
|
|
1253
|
+
aria-label={t('templates.enhanced.treeView.ariaLabel')}
|
|
1254
|
+
defaultExpanded={['components', 'ui']}
|
|
1255
|
+
onNodeSelect={node =>
|
|
1256
|
+
console.log(
|
|
1257
|
+
t('templates.enhanced.treeView.selectedConsoleLog'),
|
|
1258
|
+
node.label
|
|
1259
|
+
)
|
|
1260
|
+
}
|
|
1261
|
+
className="max-w-xs border border-border rounded-[var(--radius-lg)] p-2"
|
|
1262
|
+
/>
|
|
1263
|
+
</CardContent>
|
|
1264
|
+
</Card>
|
|
1265
|
+
|
|
1266
|
+
{/* RichTextEditor sem Auto-save */}
|
|
1267
|
+
<Card>
|
|
1268
|
+
<CardHeader>
|
|
1269
|
+
<CardTitle>{t('templates.enhanced.richText.title')}</CardTitle>
|
|
1270
|
+
<CardDescription>
|
|
1271
|
+
<Trans
|
|
1272
|
+
i18nKey="templates.enhanced.richText.description"
|
|
1273
|
+
components={{ code: <code className="bg-muted px-1 rounded text-xs" /> }}
|
|
1274
|
+
/>
|
|
1275
|
+
</CardDescription>
|
|
1276
|
+
</CardHeader>
|
|
1277
|
+
<CardContent className="h-64">
|
|
1278
|
+
<RichTextEditor
|
|
1279
|
+
value={richText}
|
|
1280
|
+
onChange={setRichText}
|
|
1281
|
+
placeholder={t('templates.enhanced.richText.placeholder')}
|
|
1282
|
+
showWordCount
|
|
1283
|
+
showCharacterCount
|
|
1284
|
+
allowSearch={false}
|
|
1285
|
+
/>
|
|
1286
|
+
</CardContent>
|
|
1287
|
+
</Card>
|
|
1288
|
+
</div>
|
|
1289
|
+
</section>
|
|
1290
|
+
|
|
1291
|
+
{/* Footer Note */}
|
|
1292
|
+
<Card className="mt-8">
|
|
1293
|
+
<CardHeader>
|
|
1294
|
+
<CardTitle>{t('templates.footer.title')}</CardTitle>
|
|
1295
|
+
<CardDescription>{t('templates.footer.subtitle')}</CardDescription>
|
|
1296
|
+
</CardHeader>
|
|
1297
|
+
<CardContent className="space-y-4">
|
|
1298
|
+
<p className="text-muted-foreground">
|
|
1299
|
+
{t('templates.footer.descriptionPart1')}
|
|
1300
|
+
<code className="bg-muted px-2 py-1 rounded-[var(--radius-sm)] [font-size:var(--text-small)]">
|
|
1301
|
+
xertica-ui
|
|
1302
|
+
</code>
|
|
1303
|
+
{t('templates.footer.descriptionPart2')}
|
|
1304
|
+
</p>
|
|
1305
|
+
<Alert variant="info">
|
|
1306
|
+
<AlertTitle>{t('templates.footer.tipTitle')}</AlertTitle>
|
|
1307
|
+
<AlertDescription>
|
|
1308
|
+
{t('templates.footer.tipDescriptionPart1')}
|
|
1309
|
+
<code className="bg-muted px-1 rounded">styles/xertica/tokens.css</code>
|
|
1310
|
+
{t('templates.footer.tipDescriptionPart2')}
|
|
1311
|
+
</AlertDescription>
|
|
1312
|
+
</Alert>
|
|
1313
|
+
</CardContent>
|
|
1314
|
+
</Card>
|
|
1315
|
+
</div>
|
|
1316
|
+
</div>
|
|
1317
|
+
</div>
|
|
1318
|
+
</main>
|
|
1319
|
+
</div>
|
|
1320
|
+
);
|
|
1321
|
+
}
|