tycho-components 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { DropdownMenuItem } from 'tycho-storybook/dist/DropdownMenu/DropdownMenu';
2
2
  import './style.scss';
3
3
  type Props = {
4
- title: string | React.ReactNode;
4
+ title?: string | React.ReactNode;
5
5
  children: React.ReactNode;
6
6
  extraHeaderActions?: React.ReactNode;
7
7
  footer?: React.ReactNode;
@@ -3,5 +3,5 @@ import cx from 'classnames';
3
3
  import { DropdownMenu } from 'tycho-storybook';
4
4
  import './style.scss';
5
5
  export default function AppCard({ title, children, extraHeaderActions, footer, options, className, }) {
6
- return (_jsxs("div", { className: cx('ds-app-card', className), children: [_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: title }), extraHeaderActions && (_jsx("div", { className: "extra-header-actions", children: extraHeaderActions })), options && (_jsx(DropdownMenu, { list: options }))] }), _jsx("div", { className: "body", children: children }), footer && (_jsx("div", { className: "footer", children: footer }))] }));
6
+ return (_jsxs("div", { className: cx('ds-app-card', className), children: [title && (_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: title }), extraHeaderActions && (_jsx("div", { className: "extra-header-actions", children: extraHeaderActions })), options && _jsx(DropdownMenu, { list: options })] })), _jsx("div", { className: "body", children: children }), footer && _jsx("div", { className: "footer", children: footer })] }));
7
7
  }
@@ -41,4 +41,8 @@
41
41
  cursor: pointer;
42
42
  }
43
43
  }
44
- }
44
+
45
+ &.table-striped tbody tr:nth-of-type(odd) {
46
+ background-color: var(--layer-hover-1);
47
+ }
48
+ }
@@ -88,21 +88,6 @@
88
88
  border-color: var(--color-primary, #007bff);
89
89
  }
90
90
  }
91
-
92
- .add-badge-btn {
93
- padding: 8px 16px;
94
- background-color: var(--color-primary, #007bff);
95
- color: white;
96
- border: none;
97
- border-radius: var(--border-radius-button, 4px);
98
- cursor: pointer;
99
- font-size: 14px;
100
- white-space: nowrap;
101
-
102
- &:hover {
103
- background-color: var(--color-primary-dark, #0056b3);
104
- }
105
- }
106
91
  }
107
92
 
108
93
  .badges {
@@ -135,42 +120,5 @@
135
120
  }
136
121
  }
137
122
  }
138
-
139
- .search-actions {
140
- display: flex;
141
- justify-content: flex-end;
142
- margin-top: 24px;
143
- padding-top: 16px;
144
- border-top: 1px solid var(--color-border-default, #ddd);
145
-
146
- .search-btn {
147
- display: flex;
148
- align-items: center;
149
- gap: 8px;
150
- padding: 10px 20px;
151
- background-color: var(--color-primary, #007bff);
152
- color: white;
153
- border: none;
154
- border-radius: var(--border-radius-button, 4px);
155
- cursor: pointer;
156
- font-size: 14px;
157
- font-weight: 600;
158
-
159
- &:hover:not(:disabled) {
160
- background-color: var(--color-primary-dark, #0056b3);
161
- }
162
-
163
- &:disabled {
164
- background-color: var(--color-disabled, #ccc);
165
- cursor: not-allowed;
166
- opacity: 0.6;
167
- }
168
-
169
- svg {
170
- width: 16px;
171
- height: 16px;
172
- }
173
- }
174
- }
175
123
  }
176
124
  }
@@ -46,70 +46,59 @@ export declare const commonResources: {
46
46
  'label.edited': string;
47
47
  };
48
48
  common: {
49
- "button.confirm": string;
50
- "button.continue": string;
51
- "button.cancel": string;
52
- "button.remove": string;
53
- "button.save": string;
54
- "button.clone": string;
55
- "button.apply": string;
56
- "button.search": string;
57
- "button.edit": string;
58
- "button.open": string;
59
- "button.close": string;
60
- "button.add": string;
61
- "button.filter": string;
62
- "button.clear": string;
63
- "label.public": string;
64
- "label.private": string;
65
- "label.notavailable": string;
66
- "select.empty": string;
67
- "pagination.label.showing": string;
68
- "pagination.label.results": string;
69
- "pagination.label.total": string;
70
- "generic.placeholder": string;
71
- "generic.placeholder.comma.separated": string;
72
- "generic.placeholder.select": string;
73
- "validation.required": string;
74
- "placeholder.check": string;
75
- "placeholder.input": string;
76
- "user.status.active": string;
77
- "user.status.inactive": string;
78
- "user.status.super": string;
79
- "user.status.visitor": string;
80
- "update.success": string;
81
- "internal.server.error": string;
82
- "table.label.rows-page": string;
83
- "table.label.pages": string;
84
- "table.label.items": string;
85
- "tooltip.copy": string;
86
- "tooltip.copied": string;
87
- "document.status.deleted": string;
88
- "document.status.editing": string;
89
- "document.status.edited": string;
90
- "document.status.revision": string;
91
- "document.status.completed": string;
92
- "document.status.syntactic": string;
93
- "document.status.copying": string;
94
- "document.status.error": string;
95
- "sentence.status.todo": string;
96
- "sentence.status.done": string;
97
- "sentence.status.ignore": string;
98
- "sentence.status.tagged": string;
99
- "sentence.status.review": string;
100
- "sentence.status.error": string;
101
- "sentence.status.auto": string;
102
- 'label.tier.original': string;
103
- 'label.tier.junction': string;
104
- 'label.tier.segmentation': string;
105
- 'label.tier.spelling': string;
106
- 'label.tier.expansion': string;
107
- 'label.tier.correction': string;
108
- 'label.tier.punctuation': string;
109
- 'label.tier.illegible': string;
110
- 'label.tier.modernization': string;
111
- 'label.tier.padronization': string;
112
- 'label.tier.inflection': string;
49
+ 'button.confirm': string;
50
+ 'button.continue': string;
51
+ 'button.cancel': string;
52
+ 'button.remove': string;
53
+ 'button.save': string;
54
+ 'button.clone': string;
55
+ 'button.apply': string;
56
+ 'button.search': string;
57
+ 'button.edit': string;
58
+ 'button.open': string;
59
+ 'button.close': string;
60
+ 'button.add': string;
61
+ 'button.filter': string;
62
+ 'button.clear': string;
63
+ 'label.public': string;
64
+ 'label.private': string;
65
+ 'label.notavailable': string;
66
+ 'select.empty': string;
67
+ 'pagination.label.showing': string;
68
+ 'pagination.label.results': string;
69
+ 'pagination.label.total': string;
70
+ 'generic.placeholder': string;
71
+ 'generic.placeholder.comma.separated': string;
72
+ 'generic.placeholder.select': string;
73
+ 'validation.required': string;
74
+ 'placeholder.check': string;
75
+ 'placeholder.input': string;
76
+ 'user.status.active': string;
77
+ 'user.status.inactive': string;
78
+ 'user.status.super': string;
79
+ 'user.status.visitor': string;
80
+ 'update.success': string;
81
+ 'internal.server.error': string;
82
+ 'table.label.rows-page': string;
83
+ 'table.label.pages': string;
84
+ 'table.label.items': string;
85
+ 'tooltip.copy': string;
86
+ 'tooltip.copied': string;
87
+ 'document.status.deleted': string;
88
+ 'document.status.editing': string;
89
+ 'document.status.edited': string;
90
+ 'document.status.revision': string;
91
+ 'document.status.completed': string;
92
+ 'document.status.syntactic': string;
93
+ 'document.status.copying': string;
94
+ 'document.status.error': string;
95
+ 'sentence.status.todo': string;
96
+ 'sentence.status.done': string;
97
+ 'sentence.status.ignore': string;
98
+ 'sentence.status.tagged': string;
99
+ 'sentence.status.review': string;
100
+ 'sentence.status.error': string;
101
+ 'sentence.status.auto': string;
113
102
  };
114
103
  header: {
115
104
  'label.platform': string;
@@ -323,70 +312,59 @@ export declare const commonResources: {
323
312
  'label.edited': string;
324
313
  };
325
314
  common: {
326
- "button.confirm": string;
327
- "button.continue": string;
328
- "button.cancel": string;
329
- "button.remove": string;
330
- "button.save": string;
331
- "button.clone": string;
332
- "button.apply": string;
333
- "button.search": string;
334
- "button.edit": string;
335
- "button.open": string;
336
- "button.add": string;
337
- "button.close": string;
338
- "button.filter": string;
339
- "button.clear": string;
340
- "label.public": string;
341
- "label.private": string;
342
- "label.notavailable": string;
343
- "select.empty": string;
344
- "pagination.label.showing": string;
345
- "pagination.label.results": string;
346
- "pagination.label.total": string;
347
- "generic.placeholder": string;
348
- "generic.placeholder.select": string;
349
- "generic.placeholder.comma.separated": string;
350
- "validation.required": string;
351
- "placeholder.check": string;
352
- "placeholder.input": string;
353
- "user.status.active": string;
354
- "user.status.inactive": string;
355
- "user.status.super": string;
356
- "user.status.visitor": string;
357
- "update.success": string;
358
- "internal.server.error": string;
359
- "table.label.rows-page": string;
360
- "table.label.pages": string;
361
- "table.label.items": string;
362
- "tooltip.copy": string;
363
- "tooltip.copied": string;
364
- "document.status.deleted": string;
365
- "document.status.editing": string;
366
- "document.status.edited": string;
367
- "document.status.revision": string;
368
- "document.status.completed": string;
369
- "document.status.syntactic": string;
370
- "document.status.copying": string;
371
- "document.status.error": string;
372
- "sentence.status.todo": string;
373
- "sentence.status.done": string;
374
- "sentence.status.ignore": string;
375
- "sentence.status.tagged": string;
376
- "sentence.status.review": string;
377
- "sentence.status.error": string;
378
- "sentence.status.auto": string;
379
- 'label.tier.original': string;
380
- 'label.tier.junction': string;
381
- 'label.tier.segmentation': string;
382
- 'label.tier.spelling': string;
383
- 'label.tier.expansion': string;
384
- 'label.tier.correction': string;
385
- 'label.tier.punctuation': string;
386
- 'label.tier.illegible': string;
387
- 'label.tier.modernization': string;
388
- 'label.tier.padronization': string;
389
- 'label.tier.inflection': string;
315
+ 'button.confirm': string;
316
+ 'button.continue': string;
317
+ 'button.cancel': string;
318
+ 'button.remove': string;
319
+ 'button.save': string;
320
+ 'button.clone': string;
321
+ 'button.apply': string;
322
+ 'button.search': string;
323
+ 'button.edit': string;
324
+ 'button.open': string;
325
+ 'button.add': string;
326
+ 'button.close': string;
327
+ 'button.filter': string;
328
+ 'button.clear': string;
329
+ 'label.public': string;
330
+ 'label.private': string;
331
+ 'label.notavailable': string;
332
+ 'select.empty': string;
333
+ 'pagination.label.showing': string;
334
+ 'pagination.label.results': string;
335
+ 'pagination.label.total': string;
336
+ 'generic.placeholder': string;
337
+ 'generic.placeholder.select': string;
338
+ 'generic.placeholder.comma.separated': string;
339
+ 'validation.required': string;
340
+ 'placeholder.check': string;
341
+ 'placeholder.input': string;
342
+ 'user.status.active': string;
343
+ 'user.status.inactive': string;
344
+ 'user.status.super': string;
345
+ 'user.status.visitor': string;
346
+ 'update.success': string;
347
+ 'internal.server.error': string;
348
+ 'table.label.rows-page': string;
349
+ 'table.label.pages': string;
350
+ 'table.label.items': string;
351
+ 'tooltip.copy': string;
352
+ 'tooltip.copied': string;
353
+ 'document.status.deleted': string;
354
+ 'document.status.editing': string;
355
+ 'document.status.edited': string;
356
+ 'document.status.revision': string;
357
+ 'document.status.completed': string;
358
+ 'document.status.syntactic': string;
359
+ 'document.status.copying': string;
360
+ 'document.status.error': string;
361
+ 'sentence.status.todo': string;
362
+ 'sentence.status.done': string;
363
+ 'sentence.status.ignore': string;
364
+ 'sentence.status.tagged': string;
365
+ 'sentence.status.review': string;
366
+ 'sentence.status.error': string;
367
+ 'sentence.status.auto': string;
390
368
  };
391
369
  header: {
392
370
  'label.platform': string;
@@ -599,70 +577,59 @@ export declare const commonResources: {
599
577
  'label.edited': string;
600
578
  };
601
579
  common: {
602
- "button.confirm": string;
603
- "button.continue": string;
604
- "button.cancel": string;
605
- "button.remove": string;
606
- "button.save": string;
607
- "button.clone": string;
608
- "button.search": string;
609
- "button.edit": string;
610
- "button.open": string;
611
- "button.apply": string;
612
- "button.add": string;
613
- "button.close": string;
614
- "button.filter": string;
615
- "button.clear": string;
616
- "label.public": string;
617
- "label.private": string;
618
- "label.notavailable": string;
619
- "select.empty": string;
620
- "pagination.label.showing": string;
621
- "pagination.label.results": string;
622
- "pagination.label.total": string;
623
- "generic.placeholder": string;
624
- "generic.placeholder.select": string;
625
- "generic.placeholder.comma.separated": string;
626
- "validation.required": string;
627
- "placeholder.check": string;
628
- "placeholder.input": string;
629
- "user.status.active": string;
630
- "user.status.inactive": string;
631
- "user.status.super": string;
632
- "user.status.visitor": string;
633
- "update.success": string;
634
- "internal.server.error": string;
635
- "table.label.rows-page": string;
636
- "table.label.pages": string;
637
- "table.label.items": string;
638
- "tooltip.copy": string;
639
- "tooltip.copied": string;
640
- "document.status.deleted": string;
641
- "document.status.editing": string;
642
- "document.status.edited": string;
643
- "document.status.revision": string;
644
- "document.status.completed": string;
645
- "document.status.syntactic": string;
646
- "document.status.copying": string;
647
- "document.status.error": string;
648
- "sentence.status.todo": string;
649
- "sentence.status.done": string;
650
- "sentence.status.ignore": string;
651
- "sentence.status.tagged": string;
652
- "sentence.status.review": string;
653
- "sentence.status.error": string;
654
- "sentence.status.auto": string;
655
- 'label.tier.original': string;
656
- 'label.tier.junction': string;
657
- 'label.tier.segmentation': string;
658
- 'label.tier.spelling': string;
659
- 'label.tier.expansion': string;
660
- 'label.tier.correction': string;
661
- 'label.tier.punctuation': string;
662
- 'label.tier.illegible': string;
663
- 'label.tier.modernization': string;
664
- 'label.tier.padronization': string;
665
- 'label.tier.inflection': string;
580
+ 'button.confirm': string;
581
+ 'button.continue': string;
582
+ 'button.cancel': string;
583
+ 'button.remove': string;
584
+ 'button.save': string;
585
+ 'button.clone': string;
586
+ 'button.search': string;
587
+ 'button.edit': string;
588
+ 'button.open': string;
589
+ 'button.apply': string;
590
+ 'button.add': string;
591
+ 'button.close': string;
592
+ 'button.filter': string;
593
+ 'button.clear': string;
594
+ 'label.public': string;
595
+ 'label.private': string;
596
+ 'label.notavailable': string;
597
+ 'select.empty': string;
598
+ 'pagination.label.showing': string;
599
+ 'pagination.label.results': string;
600
+ 'pagination.label.total': string;
601
+ 'generic.placeholder': string;
602
+ 'generic.placeholder.select': string;
603
+ 'generic.placeholder.comma.separated': string;
604
+ 'validation.required': string;
605
+ 'placeholder.check': string;
606
+ 'placeholder.input': string;
607
+ 'user.status.active': string;
608
+ 'user.status.inactive': string;
609
+ 'user.status.super': string;
610
+ 'user.status.visitor': string;
611
+ 'update.success': string;
612
+ 'internal.server.error': string;
613
+ 'table.label.rows-page': string;
614
+ 'table.label.pages': string;
615
+ 'table.label.items': string;
616
+ 'tooltip.copy': string;
617
+ 'tooltip.copied': string;
618
+ 'document.status.deleted': string;
619
+ 'document.status.editing': string;
620
+ 'document.status.edited': string;
621
+ 'document.status.revision': string;
622
+ 'document.status.completed': string;
623
+ 'document.status.syntactic': string;
624
+ 'document.status.copying': string;
625
+ 'document.status.error': string;
626
+ 'sentence.status.todo': string;
627
+ 'sentence.status.done': string;
628
+ 'sentence.status.ignore': string;
629
+ 'sentence.status.tagged': string;
630
+ 'sentence.status.review': string;
631
+ 'sentence.status.error': string;
632
+ 'sentence.status.auto': string;
666
633
  };
667
634
  header: {
668
635
  'label.platform': string;
@@ -1,200 +1,167 @@
1
1
  export declare const CommonTexts: {
2
2
  en: {
3
- "button.confirm": string;
4
- "button.continue": string;
5
- "button.cancel": string;
6
- "button.remove": string;
7
- "button.save": string;
8
- "button.clone": string;
9
- "button.apply": string;
10
- "button.search": string;
11
- "button.edit": string;
12
- "button.open": string;
13
- "button.close": string;
14
- "button.add": string;
15
- "button.filter": string;
16
- "button.clear": string;
17
- "label.public": string;
18
- "label.private": string;
19
- "label.notavailable": string;
20
- "select.empty": string;
21
- "pagination.label.showing": string;
22
- "pagination.label.results": string;
23
- "pagination.label.total": string;
24
- "generic.placeholder": string;
25
- "generic.placeholder.comma.separated": string;
26
- "generic.placeholder.select": string;
27
- "validation.required": string;
28
- "placeholder.check": string;
29
- "placeholder.input": string;
30
- "user.status.active": string;
31
- "user.status.inactive": string;
32
- "user.status.super": string;
33
- "user.status.visitor": string;
34
- "update.success": string;
35
- "internal.server.error": string;
36
- "table.label.rows-page": string;
37
- "table.label.pages": string;
38
- "table.label.items": string;
39
- "tooltip.copy": string;
40
- "tooltip.copied": string;
41
- "document.status.deleted": string;
42
- "document.status.editing": string;
43
- "document.status.edited": string;
44
- "document.status.revision": string;
45
- "document.status.completed": string;
46
- "document.status.syntactic": string;
47
- "document.status.copying": string;
48
- "document.status.error": string;
49
- "sentence.status.todo": string;
50
- "sentence.status.done": string;
51
- "sentence.status.ignore": string;
52
- "sentence.status.tagged": string;
53
- "sentence.status.review": string;
54
- "sentence.status.error": string;
55
- "sentence.status.auto": string;
56
- 'label.tier.original': string;
57
- 'label.tier.junction': string;
58
- 'label.tier.segmentation': string;
59
- 'label.tier.spelling': string;
60
- 'label.tier.expansion': string;
61
- 'label.tier.correction': string;
62
- 'label.tier.punctuation': string;
63
- 'label.tier.illegible': string;
64
- 'label.tier.modernization': string;
65
- 'label.tier.padronization': string;
66
- 'label.tier.inflection': string;
3
+ 'button.confirm': string;
4
+ 'button.continue': string;
5
+ 'button.cancel': string;
6
+ 'button.remove': string;
7
+ 'button.save': string;
8
+ 'button.clone': string;
9
+ 'button.apply': string;
10
+ 'button.search': string;
11
+ 'button.edit': string;
12
+ 'button.open': string;
13
+ 'button.close': string;
14
+ 'button.add': string;
15
+ 'button.filter': string;
16
+ 'button.clear': string;
17
+ 'label.public': string;
18
+ 'label.private': string;
19
+ 'label.notavailable': string;
20
+ 'select.empty': string;
21
+ 'pagination.label.showing': string;
22
+ 'pagination.label.results': string;
23
+ 'pagination.label.total': string;
24
+ 'generic.placeholder': string;
25
+ 'generic.placeholder.comma.separated': string;
26
+ 'generic.placeholder.select': string;
27
+ 'validation.required': string;
28
+ 'placeholder.check': string;
29
+ 'placeholder.input': string;
30
+ 'user.status.active': string;
31
+ 'user.status.inactive': string;
32
+ 'user.status.super': string;
33
+ 'user.status.visitor': string;
34
+ 'update.success': string;
35
+ 'internal.server.error': string;
36
+ 'table.label.rows-page': string;
37
+ 'table.label.pages': string;
38
+ 'table.label.items': string;
39
+ 'tooltip.copy': string;
40
+ 'tooltip.copied': string;
41
+ 'document.status.deleted': string;
42
+ 'document.status.editing': string;
43
+ 'document.status.edited': string;
44
+ 'document.status.revision': string;
45
+ 'document.status.completed': string;
46
+ 'document.status.syntactic': string;
47
+ 'document.status.copying': string;
48
+ 'document.status.error': string;
49
+ 'sentence.status.todo': string;
50
+ 'sentence.status.done': string;
51
+ 'sentence.status.ignore': string;
52
+ 'sentence.status.tagged': string;
53
+ 'sentence.status.review': string;
54
+ 'sentence.status.error': string;
55
+ 'sentence.status.auto': string;
67
56
  };
68
- "pt-BR": {
69
- "button.confirm": string;
70
- "button.continue": string;
71
- "button.cancel": string;
72
- "button.remove": string;
73
- "button.save": string;
74
- "button.clone": string;
75
- "button.apply": string;
76
- "button.search": string;
77
- "button.edit": string;
78
- "button.open": string;
79
- "button.add": string;
80
- "button.close": string;
81
- "button.filter": string;
82
- "button.clear": string;
83
- "label.public": string;
84
- "label.private": string;
85
- "label.notavailable": string;
86
- "select.empty": string;
87
- "pagination.label.showing": string;
88
- "pagination.label.results": string;
89
- "pagination.label.total": string;
90
- "generic.placeholder": string;
91
- "generic.placeholder.select": string;
92
- "generic.placeholder.comma.separated": string;
93
- "validation.required": string;
94
- "placeholder.check": string;
95
- "placeholder.input": string;
96
- "user.status.active": string;
97
- "user.status.inactive": string;
98
- "user.status.super": string;
99
- "user.status.visitor": string;
100
- "update.success": string;
101
- "internal.server.error": string;
102
- "table.label.rows-page": string;
103
- "table.label.pages": string;
104
- "table.label.items": string;
105
- "tooltip.copy": string;
106
- "tooltip.copied": string;
107
- "document.status.deleted": string;
108
- "document.status.editing": string;
109
- "document.status.edited": string;
110
- "document.status.revision": string;
111
- "document.status.completed": string;
112
- "document.status.syntactic": string;
113
- "document.status.copying": string;
114
- "document.status.error": string;
115
- "sentence.status.todo": string;
116
- "sentence.status.done": string;
117
- "sentence.status.ignore": string;
118
- "sentence.status.tagged": string;
119
- "sentence.status.review": string;
120
- "sentence.status.error": string;
121
- "sentence.status.auto": string;
122
- 'label.tier.original': string;
123
- 'label.tier.junction': string;
124
- 'label.tier.segmentation': string;
125
- 'label.tier.spelling': string;
126
- 'label.tier.expansion': string;
127
- 'label.tier.correction': string;
128
- 'label.tier.punctuation': string;
129
- 'label.tier.illegible': string;
130
- 'label.tier.modernization': string;
131
- 'label.tier.padronization': string;
132
- 'label.tier.inflection': string;
57
+ 'pt-BR': {
58
+ 'button.confirm': string;
59
+ 'button.continue': string;
60
+ 'button.cancel': string;
61
+ 'button.remove': string;
62
+ 'button.save': string;
63
+ 'button.clone': string;
64
+ 'button.apply': string;
65
+ 'button.search': string;
66
+ 'button.edit': string;
67
+ 'button.open': string;
68
+ 'button.add': string;
69
+ 'button.close': string;
70
+ 'button.filter': string;
71
+ 'button.clear': string;
72
+ 'label.public': string;
73
+ 'label.private': string;
74
+ 'label.notavailable': string;
75
+ 'select.empty': string;
76
+ 'pagination.label.showing': string;
77
+ 'pagination.label.results': string;
78
+ 'pagination.label.total': string;
79
+ 'generic.placeholder': string;
80
+ 'generic.placeholder.select': string;
81
+ 'generic.placeholder.comma.separated': string;
82
+ 'validation.required': string;
83
+ 'placeholder.check': string;
84
+ 'placeholder.input': string;
85
+ 'user.status.active': string;
86
+ 'user.status.inactive': string;
87
+ 'user.status.super': string;
88
+ 'user.status.visitor': string;
89
+ 'update.success': string;
90
+ 'internal.server.error': string;
91
+ 'table.label.rows-page': string;
92
+ 'table.label.pages': string;
93
+ 'table.label.items': string;
94
+ 'tooltip.copy': string;
95
+ 'tooltip.copied': string;
96
+ 'document.status.deleted': string;
97
+ 'document.status.editing': string;
98
+ 'document.status.edited': string;
99
+ 'document.status.revision': string;
100
+ 'document.status.completed': string;
101
+ 'document.status.syntactic': string;
102
+ 'document.status.copying': string;
103
+ 'document.status.error': string;
104
+ 'sentence.status.todo': string;
105
+ 'sentence.status.done': string;
106
+ 'sentence.status.ignore': string;
107
+ 'sentence.status.tagged': string;
108
+ 'sentence.status.review': string;
109
+ 'sentence.status.error': string;
110
+ 'sentence.status.auto': string;
133
111
  };
134
112
  it: {
135
- "button.confirm": string;
136
- "button.continue": string;
137
- "button.cancel": string;
138
- "button.remove": string;
139
- "button.save": string;
140
- "button.clone": string;
141
- "button.search": string;
142
- "button.edit": string;
143
- "button.open": string;
144
- "button.apply": string;
145
- "button.add": string;
146
- "button.close": string;
147
- "button.filter": string;
148
- "button.clear": string;
149
- "label.public": string;
150
- "label.private": string;
151
- "label.notavailable": string;
152
- "select.empty": string;
153
- "pagination.label.showing": string;
154
- "pagination.label.results": string;
155
- "pagination.label.total": string;
156
- "generic.placeholder": string;
157
- "generic.placeholder.select": string;
158
- "generic.placeholder.comma.separated": string;
159
- "validation.required": string;
160
- "placeholder.check": string;
161
- "placeholder.input": string;
162
- "user.status.active": string;
163
- "user.status.inactive": string;
164
- "user.status.super": string;
165
- "user.status.visitor": string;
166
- "update.success": string;
167
- "internal.server.error": string;
168
- "table.label.rows-page": string;
169
- "table.label.pages": string;
170
- "table.label.items": string;
171
- "tooltip.copy": string;
172
- "tooltip.copied": string;
173
- "document.status.deleted": string;
174
- "document.status.editing": string;
175
- "document.status.edited": string;
176
- "document.status.revision": string;
177
- "document.status.completed": string;
178
- "document.status.syntactic": string;
179
- "document.status.copying": string;
180
- "document.status.error": string;
181
- "sentence.status.todo": string;
182
- "sentence.status.done": string;
183
- "sentence.status.ignore": string;
184
- "sentence.status.tagged": string;
185
- "sentence.status.review": string;
186
- "sentence.status.error": string;
187
- "sentence.status.auto": string;
188
- 'label.tier.original': string;
189
- 'label.tier.junction': string;
190
- 'label.tier.segmentation': string;
191
- 'label.tier.spelling': string;
192
- 'label.tier.expansion': string;
193
- 'label.tier.correction': string;
194
- 'label.tier.punctuation': string;
195
- 'label.tier.illegible': string;
196
- 'label.tier.modernization': string;
197
- 'label.tier.padronization': string;
198
- 'label.tier.inflection': string;
113
+ 'button.confirm': string;
114
+ 'button.continue': string;
115
+ 'button.cancel': string;
116
+ 'button.remove': string;
117
+ 'button.save': string;
118
+ 'button.clone': string;
119
+ 'button.search': string;
120
+ 'button.edit': string;
121
+ 'button.open': string;
122
+ 'button.apply': string;
123
+ 'button.add': string;
124
+ 'button.close': string;
125
+ 'button.filter': string;
126
+ 'button.clear': string;
127
+ 'label.public': string;
128
+ 'label.private': string;
129
+ 'label.notavailable': string;
130
+ 'select.empty': string;
131
+ 'pagination.label.showing': string;
132
+ 'pagination.label.results': string;
133
+ 'pagination.label.total': string;
134
+ 'generic.placeholder': string;
135
+ 'generic.placeholder.select': string;
136
+ 'generic.placeholder.comma.separated': string;
137
+ 'validation.required': string;
138
+ 'placeholder.check': string;
139
+ 'placeholder.input': string;
140
+ 'user.status.active': string;
141
+ 'user.status.inactive': string;
142
+ 'user.status.super': string;
143
+ 'user.status.visitor': string;
144
+ 'update.success': string;
145
+ 'internal.server.error': string;
146
+ 'table.label.rows-page': string;
147
+ 'table.label.pages': string;
148
+ 'table.label.items': string;
149
+ 'tooltip.copy': string;
150
+ 'tooltip.copied': string;
151
+ 'document.status.deleted': string;
152
+ 'document.status.editing': string;
153
+ 'document.status.edited': string;
154
+ 'document.status.revision': string;
155
+ 'document.status.completed': string;
156
+ 'document.status.syntactic': string;
157
+ 'document.status.copying': string;
158
+ 'document.status.error': string;
159
+ 'sentence.status.todo': string;
160
+ 'sentence.status.done': string;
161
+ 'sentence.status.ignore': string;
162
+ 'sentence.status.tagged': string;
163
+ 'sentence.status.review': string;
164
+ 'sentence.status.error': string;
165
+ 'sentence.status.auto': string;
199
166
  };
200
167
  };
@@ -1,200 +1,167 @@
1
1
  export const CommonTexts = {
2
2
  en: {
3
- "button.confirm": "Confirm",
4
- "button.continue": "Continue",
5
- "button.cancel": "Cancel",
6
- "button.remove": "Remove",
7
- "button.save": "Save",
8
- "button.clone": "Clone",
9
- "button.apply": "Apply",
10
- "button.search": "Search",
11
- "button.edit": "Edit",
12
- "button.open": "Open",
13
- "button.close": "Close",
14
- "button.add": "Add",
15
- "button.filter": "Filter",
16
- "button.clear": "Clear",
17
- "label.public": "Public",
18
- "label.private": "Private",
19
- "label.notavailable": "N/A",
20
- "select.empty": "Select",
21
- "pagination.label.showing": "",
22
- "pagination.label.results": "results per page",
23
- "pagination.label.total": "Total",
24
- "generic.placeholder": "Type here",
25
- "generic.placeholder.comma.separated": "Type here separated by commas",
26
- "generic.placeholder.select": "Select one here",
27
- "validation.required": "Required field.",
28
- "placeholder.check": "click to choose",
29
- "placeholder.input": "click to add",
30
- "user.status.active": "Active",
31
- "user.status.inactive": "Inactive",
32
- "user.status.super": "Super",
33
- "user.status.visitor": "Visitor",
34
- "update.success": "saved!",
35
- "internal.server.error": "An unexpected error occurred. Contact the administrator.",
36
- "table.label.rows-page": "Items per page",
37
- "table.label.pages": "of {{value}} pages",
38
- "table.label.items": "{{first}} - {{last}} of {{total}} items",
39
- "tooltip.copy": "Copy",
40
- "tooltip.copied": "Copied!",
41
- "document.status.deleted": "Deleted",
42
- "document.status.editing": "Editing",
43
- "document.status.edited": "Edited",
44
- "document.status.revision": "In revision",
45
- "document.status.completed": "Completed",
46
- "document.status.syntactic": "Revision",
47
- "document.status.copying": "Copying",
48
- "document.status.error": "Error",
49
- "sentence.status.todo": "to do",
50
- "sentence.status.done": "done",
51
- "sentence.status.ignore": "ignore",
52
- "sentence.status.tagged": "tagged",
53
- "sentence.status.review": "review",
54
- "sentence.status.error": "error",
55
- "sentence.status.auto": "automatic",
56
- 'label.tier.original': 'original',
57
- 'label.tier.junction': 'junction',
58
- 'label.tier.segmentation': 'segmentation',
59
- 'label.tier.spelling': 'spelling',
60
- 'label.tier.expansion': 'expansion',
61
- 'label.tier.correction': 'correction',
62
- 'label.tier.punctuation': 'punctuation',
63
- 'label.tier.illegible': 'illegible',
64
- 'label.tier.modernization': 'modernization',
65
- 'label.tier.padronization': 'padronization',
66
- 'label.tier.inflection': 'inflection',
3
+ 'button.confirm': 'Confirm',
4
+ 'button.continue': 'Continue',
5
+ 'button.cancel': 'Cancel',
6
+ 'button.remove': 'Remove',
7
+ 'button.save': 'Save',
8
+ 'button.clone': 'Clone',
9
+ 'button.apply': 'Apply',
10
+ 'button.search': 'Search',
11
+ 'button.edit': 'Edit',
12
+ 'button.open': 'Open',
13
+ 'button.close': 'Close',
14
+ 'button.add': 'Add',
15
+ 'button.filter': 'Filter',
16
+ 'button.clear': 'Clear',
17
+ 'label.public': 'Public',
18
+ 'label.private': 'Private',
19
+ 'label.notavailable': 'N/A',
20
+ 'select.empty': 'Select',
21
+ 'pagination.label.showing': '',
22
+ 'pagination.label.results': 'results per page',
23
+ 'pagination.label.total': 'Total',
24
+ 'generic.placeholder': 'Type here',
25
+ 'generic.placeholder.comma.separated': 'Type here separated by commas',
26
+ 'generic.placeholder.select': 'Select one here',
27
+ 'validation.required': 'Required field.',
28
+ 'placeholder.check': 'click to choose',
29
+ 'placeholder.input': 'click to add',
30
+ 'user.status.active': 'Active',
31
+ 'user.status.inactive': 'Inactive',
32
+ 'user.status.super': 'Super',
33
+ 'user.status.visitor': 'Visitor',
34
+ 'update.success': 'saved!',
35
+ 'internal.server.error': 'An unexpected error occurred. Contact the administrator.',
36
+ 'table.label.rows-page': 'Items per page',
37
+ 'table.label.pages': 'of {{value}} pages',
38
+ 'table.label.items': '{{first}} - {{last}} of {{total}} items',
39
+ 'tooltip.copy': 'Copy',
40
+ 'tooltip.copied': 'Copied!',
41
+ 'document.status.deleted': 'Deleted',
42
+ 'document.status.editing': 'Editing',
43
+ 'document.status.edited': 'Edited',
44
+ 'document.status.revision': 'In revision',
45
+ 'document.status.completed': 'Completed',
46
+ 'document.status.syntactic': 'Revision',
47
+ 'document.status.copying': 'Copying',
48
+ 'document.status.error': 'Error',
49
+ 'sentence.status.todo': 'to do',
50
+ 'sentence.status.done': 'done',
51
+ 'sentence.status.ignore': 'ignore',
52
+ 'sentence.status.tagged': 'tagged',
53
+ 'sentence.status.review': 'review',
54
+ 'sentence.status.error': 'error',
55
+ 'sentence.status.auto': 'automatic',
67
56
  },
68
- "pt-BR": {
69
- "button.confirm": "Confirmar",
70
- "button.continue": "Continuar",
71
- "button.cancel": "Cancelar",
72
- "button.remove": "Remover",
73
- "button.save": "Salvar",
74
- "button.clone": "Clonar",
75
- "button.apply": "Aplicar",
76
- "button.search": "Buscar",
77
- "button.edit": "Editar",
78
- "button.open": "Abrir",
79
- "button.add": "Adicionar",
80
- "button.close": "Fechar",
81
- "button.filter": "Filtrar",
82
- "button.clear": "Limpar",
83
- "label.public": "Público",
84
- "label.private": "Privado",
85
- "label.notavailable": "N/A",
86
- "select.empty": "Selecionar",
87
- "pagination.label.showing": "Exibindo",
88
- "pagination.label.results": "resultados por página",
89
- "pagination.label.total": "Total",
90
- "generic.placeholder": "Digite aqui",
91
- "generic.placeholder.select": "Selecione um aqui",
92
- "generic.placeholder.comma.separated": "Digite aqui separado por vírgulas",
93
- "validation.required": "Campo obrigatório.",
94
- "placeholder.check": "clique para selecionar",
95
- "placeholder.input": "clique para adicionar",
96
- "user.status.active": "Ativo",
97
- "user.status.inactive": "Inativo",
98
- "user.status.super": "Super",
99
- "user.status.visitor": "Visitante",
100
- "update.success": "salvo!",
101
- "internal.server.error": "Ocorreu um erro inesperado. Entre em contato com o administrador.",
102
- "table.label.rows-page": "Itens por página",
103
- "table.label.pages": "de {{value}} páginas",
104
- "table.label.items": "{{first}} - {{last}} de {{total}} itens",
105
- "tooltip.copy": "Copiar",
106
- "tooltip.copied": "Copiado!",
107
- "document.status.deleted": "Excluído",
108
- "document.status.editing": "Editando",
109
- "document.status.edited": "Editado",
110
- "document.status.revision": "Em revisão",
111
- "document.status.completed": "Completo",
112
- "document.status.syntactic": "Revisão",
113
- "document.status.copying": "Copiando",
114
- "document.status.error": "Erro",
115
- "sentence.status.todo": "a fazer",
116
- "sentence.status.done": "finalizado",
117
- "sentence.status.ignore": "ignorar",
118
- "sentence.status.tagged": "etiquetado",
119
- "sentence.status.review": "revisar",
120
- "sentence.status.error": "erro",
121
- "sentence.status.auto": "automático",
122
- 'label.tier.original': 'original',
123
- 'label.tier.junction': 'junção',
124
- 'label.tier.segmentation': 'segmentação',
125
- 'label.tier.spelling': 'grafia',
126
- 'label.tier.expansion': 'expansão',
127
- 'label.tier.correction': 'correção',
128
- 'label.tier.punctuation': 'pontuação',
129
- 'label.tier.illegible': 'ilegível',
130
- 'label.tier.modernization': 'modernização',
131
- 'label.tier.padronization': 'padronização',
132
- 'label.tier.inflection': 'flexão',
57
+ 'pt-BR': {
58
+ 'button.confirm': 'Confirmar',
59
+ 'button.continue': 'Continuar',
60
+ 'button.cancel': 'Cancelar',
61
+ 'button.remove': 'Remover',
62
+ 'button.save': 'Salvar',
63
+ 'button.clone': 'Clonar',
64
+ 'button.apply': 'Aplicar',
65
+ 'button.search': 'Buscar',
66
+ 'button.edit': 'Editar',
67
+ 'button.open': 'Abrir',
68
+ 'button.add': 'Adicionar',
69
+ 'button.close': 'Fechar',
70
+ 'button.filter': 'Filtrar',
71
+ 'button.clear': 'Limpar',
72
+ 'label.public': 'Público',
73
+ 'label.private': 'Privado',
74
+ 'label.notavailable': 'N/A',
75
+ 'select.empty': 'Selecionar',
76
+ 'pagination.label.showing': 'Exibindo',
77
+ 'pagination.label.results': 'resultados por página',
78
+ 'pagination.label.total': 'Total',
79
+ 'generic.placeholder': 'Digite aqui',
80
+ 'generic.placeholder.select': 'Selecione um aqui',
81
+ 'generic.placeholder.comma.separated': 'Digite aqui separado por vírgulas',
82
+ 'validation.required': 'Campo obrigatório.',
83
+ 'placeholder.check': 'clique para selecionar',
84
+ 'placeholder.input': 'clique para adicionar',
85
+ 'user.status.active': 'Ativo',
86
+ 'user.status.inactive': 'Inativo',
87
+ 'user.status.super': 'Super',
88
+ 'user.status.visitor': 'Visitante',
89
+ 'update.success': 'salvo!',
90
+ 'internal.server.error': 'Ocorreu um erro inesperado. Entre em contato com o administrador.',
91
+ 'table.label.rows-page': 'Itens por página',
92
+ 'table.label.pages': 'de {{value}} páginas',
93
+ 'table.label.items': '{{first}} - {{last}} de {{total}} itens',
94
+ 'tooltip.copy': 'Copiar',
95
+ 'tooltip.copied': 'Copiado!',
96
+ 'document.status.deleted': 'Excluído',
97
+ 'document.status.editing': 'Editando',
98
+ 'document.status.edited': 'Editado',
99
+ 'document.status.revision': 'Em revisão',
100
+ 'document.status.completed': 'Completo',
101
+ 'document.status.syntactic': 'Revisão',
102
+ 'document.status.copying': 'Copiando',
103
+ 'document.status.error': 'Erro',
104
+ 'sentence.status.todo': 'a fazer',
105
+ 'sentence.status.done': 'finalizado',
106
+ 'sentence.status.ignore': 'ignorar',
107
+ 'sentence.status.tagged': 'etiquetado',
108
+ 'sentence.status.review': 'revisar',
109
+ 'sentence.status.error': 'erro',
110
+ 'sentence.status.auto': 'automático',
133
111
  },
134
112
  it: {
135
- "button.confirm": "Conferma",
136
- "button.continue": "Continua",
137
- "button.cancel": "Annulla",
138
- "button.remove": "Rimuovi",
139
- "button.save": "Salva",
140
- "button.clone": "Clona",
141
- "button.search": "Cerca",
142
- "button.edit": "Modifica",
143
- "button.open": "Apri",
144
- "button.apply": "Applica",
145
- "button.add": "Aggiungi",
146
- "button.close": "Chiudi",
147
- "button.filter": "Filtra",
148
- "button.clear": "Pulisci",
149
- "label.public": "Pubblico",
150
- "label.private": "Privato",
151
- "label.notavailable": "N/A",
152
- "select.empty": "Seleziona",
153
- "pagination.label.showing": "Mostrando",
154
- "pagination.label.results": "risultati per pagina",
155
- "pagination.label.total": "Totale",
156
- "generic.placeholder": "Scrivi qui",
157
- "generic.placeholder.select": "Seleziona uno qui",
158
- "generic.placeholder.comma.separated": "Scrivi qui separato per virgole",
159
- "validation.required": "Campo obbligatorio.",
160
- "placeholder.check": "clicca per scegliere",
161
- "placeholder.input": "clicca per aggiungere",
162
- "user.status.active": "Attivo",
163
- "user.status.inactive": "Inattivo",
164
- "user.status.super": "Super",
165
- "user.status.visitor": "Visitatore",
166
- "update.success": "salvato!",
167
- "internal.server.error": "Si è verificato un errore inaspettato. Contatta l'amministratore.",
168
- "table.label.rows-page": "Elementi per pagina",
169
- "table.label.pages": "di {{value}} pagine",
170
- "table.label.items": "{{first}} - {{last}} di {{total}} elementi",
171
- "tooltip.copy": "Copia",
172
- "tooltip.copied": "Copiato!",
173
- "document.status.deleted": "Eliminato",
174
- "document.status.editing": "Modifica",
175
- "document.status.edited": "Modificato",
176
- "document.status.revision": "In revisione",
177
- "document.status.completed": "Completato",
178
- "document.status.syntactic": "Revisione",
179
- "document.status.copying": "Copiando",
180
- "document.status.error": "Errore",
181
- "sentence.status.todo": "da fare",
182
- "sentence.status.done": "fatto",
183
- "sentence.status.ignore": "ignora",
184
- "sentence.status.tagged": "etichettato",
185
- "sentence.status.review": "revisione",
186
- "sentence.status.error": "errore",
187
- "sentence.status.auto": "automatico",
188
- 'label.tier.original': 'originale',
189
- 'label.tier.junction': 'giunzione',
190
- 'label.tier.segmentation': 'segmentazione',
191
- 'label.tier.spelling': 'grafia',
192
- 'label.tier.expansion': 'espansione',
193
- 'label.tier.correction': 'correzione',
194
- 'label.tier.punctuation': 'punteggiatura',
195
- 'label.tier.illegible': 'illeggibile',
196
- 'label.tier.modernization': 'modernizzazione',
197
- 'label.tier.padronization': 'standardizzazione',
198
- 'label.tier.inflection': 'flessione',
113
+ 'button.confirm': 'Conferma',
114
+ 'button.continue': 'Continua',
115
+ 'button.cancel': 'Annulla',
116
+ 'button.remove': 'Rimuovi',
117
+ 'button.save': 'Salva',
118
+ 'button.clone': 'Clona',
119
+ 'button.search': 'Cerca',
120
+ 'button.edit': 'Modifica',
121
+ 'button.open': 'Apri',
122
+ 'button.apply': 'Applica',
123
+ 'button.add': 'Aggiungi',
124
+ 'button.close': 'Chiudi',
125
+ 'button.filter': 'Filtra',
126
+ 'button.clear': 'Pulisci',
127
+ 'label.public': 'Pubblico',
128
+ 'label.private': 'Privato',
129
+ 'label.notavailable': 'N/A',
130
+ 'select.empty': 'Seleziona',
131
+ 'pagination.label.showing': 'Mostrando',
132
+ 'pagination.label.results': 'risultati per pagina',
133
+ 'pagination.label.total': 'Totale',
134
+ 'generic.placeholder': 'Scrivi qui',
135
+ 'generic.placeholder.select': 'Seleziona uno qui',
136
+ 'generic.placeholder.comma.separated': 'Scrivi qui separato per virgole',
137
+ 'validation.required': 'Campo obbligatorio.',
138
+ 'placeholder.check': 'clicca per scegliere',
139
+ 'placeholder.input': 'clicca per aggiungere',
140
+ 'user.status.active': 'Attivo',
141
+ 'user.status.inactive': 'Inattivo',
142
+ 'user.status.super': 'Super',
143
+ 'user.status.visitor': 'Visitatore',
144
+ 'update.success': 'salvato!',
145
+ 'internal.server.error': "Si è verificato un errore inaspettato. Contatta l'amministratore.",
146
+ 'table.label.rows-page': 'Elementi per pagina',
147
+ 'table.label.pages': 'di {{value}} pagine',
148
+ 'table.label.items': '{{first}} - {{last}} di {{total}} elementi',
149
+ 'tooltip.copy': 'Copia',
150
+ 'tooltip.copied': 'Copiato!',
151
+ 'document.status.deleted': 'Eliminato',
152
+ 'document.status.editing': 'Modifica',
153
+ 'document.status.edited': 'Modificato',
154
+ 'document.status.revision': 'In revisione',
155
+ 'document.status.completed': 'Completato',
156
+ 'document.status.syntactic': 'Revisione',
157
+ 'document.status.copying': 'Copiando',
158
+ 'document.status.error': 'Errore',
159
+ 'sentence.status.todo': 'da fare',
160
+ 'sentence.status.done': 'fatto',
161
+ 'sentence.status.ignore': 'ignora',
162
+ 'sentence.status.tagged': 'etichettato',
163
+ 'sentence.status.review': 'revisione',
164
+ 'sentence.status.error': 'errore',
165
+ 'sentence.status.auto': 'automatico',
199
166
  },
200
167
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.8.2",
4
+ "version": "0.8.4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -47,7 +47,7 @@
47
47
  "react-hook-form": "^7.45.2",
48
48
  "react-i18next": "^13.0.2",
49
49
  "react-router-dom": "^6.14.2",
50
- "tycho-storybook": "0.5.3",
50
+ "tycho-storybook": "0.5.8",
51
51
  "yup": "^1.2.0"
52
52
  },
53
53
  "devDependencies": {