@openmrs/esm-implementer-tools-app 11.0.1-pre.6014 → 11.0.1-pre.6015

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/dist/1558.css +1 -0
  3. package/dist/{8088.css.map → 1558.css.map} +1 -1
  4. package/dist/1558.js +1 -0
  5. package/dist/1558.js.map +1 -0
  6. package/dist/1944.js +1 -0
  7. package/dist/1944.js.map +1 -0
  8. package/dist/{6479.css.map → 2989.css.map} +1 -1
  9. package/dist/2989.js +1 -0
  10. package/dist/2989.js.map +1 -0
  11. package/dist/4540.js +1 -0
  12. package/dist/4540.js.map +1 -0
  13. package/dist/{4698.js → 4938.js} +1 -1
  14. package/dist/4938.js.map +1 -0
  15. package/dist/5117.js +1 -1
  16. package/dist/5117.js.map +1 -1
  17. package/dist/5822.js +1 -0
  18. package/dist/5822.js.map +1 -0
  19. package/dist/6977.js +15 -0
  20. package/dist/6977.js.map +1 -0
  21. package/dist/7218.js +1 -0
  22. package/dist/7218.js.map +1 -0
  23. package/dist/8978.js +1 -0
  24. package/dist/8978.js.map +1 -0
  25. package/dist/932.js +1 -1
  26. package/dist/932.js.map +1 -1
  27. package/dist/openmrs-esm-implementer-tools-app.js +2 -2
  28. package/dist/openmrs-esm-implementer-tools-app.js.map +1 -1
  29. package/dist/routes.json +1 -1
  30. package/package.json +3 -3
  31. package/src/implementer-tools.test.tsx +38 -2
  32. package/src/popup/popup.component.tsx +3 -0
  33. package/src/popup/popup.test.tsx +2 -1
  34. package/src/store.ts +30 -1
  35. package/src/translations/translation-catalog.ts +14 -4
  36. package/src/translations/translations.component.tsx +696 -0
  37. package/src/translations/translations.styles.scss +133 -0
  38. package/src/translations/translations.test.tsx +839 -0
  39. package/translations/en.json +34 -0
  40. package/dist/1492.js +0 -1
  41. package/dist/1492.js.map +0 -1
  42. package/dist/1695.js +0 -1
  43. package/dist/1695.js.map +0 -1
  44. package/dist/195.js +0 -15
  45. package/dist/195.js.map +0 -1
  46. package/dist/2536.js +0 -1
  47. package/dist/2536.js.map +0 -1
  48. package/dist/4698.js.map +0 -1
  49. package/dist/6479.js +0 -1
  50. package/dist/6479.js.map +0 -1
  51. package/dist/8088.css +0 -1
  52. package/dist/8088.js +0 -1
  53. package/dist/8088.js.map +0 -1
  54. package/dist/9270.js +0 -1
  55. package/dist/9270.js.map +0 -1
  56. /package/dist/{6479.css → 2989.css} +0 -0
@@ -0,0 +1,133 @@
1
+ @use '@carbon/layout';
2
+ @use '@carbon/react/scss/themes';
3
+ @use '@carbon/react/scss/theme';
4
+ @use '@carbon/type';
5
+
6
+ /** Lays the tab out; its chrome inherits the implementer tools' dark theme like every other tab. */
7
+ .translations {
8
+ display: flex;
9
+ flex-direction: column;
10
+ height: 100%;
11
+ }
12
+
13
+ .tools {
14
+ width: 100%;
15
+ border-bottom: 1px solid theme.$border-subtle-00;
16
+ border-top: 1px solid theme.$border-subtle-00;
17
+ z-index: 2;
18
+ position: sticky;
19
+ top: 0;
20
+ }
21
+
22
+ .toolbar {
23
+ padding: layout.$spacing-05 layout.$spacing-05 layout.$spacing-03;
24
+ }
25
+
26
+ .row {
27
+ display: flex;
28
+ flex-flow: row wrap;
29
+ align-items: flex-end;
30
+ margin: 0 (-(layout.$spacing-05));
31
+
32
+ :global(.cds--col) {
33
+ max-width: 100%;
34
+ flex-basis: 0;
35
+ flex-grow: 1;
36
+ width: 100%;
37
+ padding: 0 layout.$spacing-05;
38
+ }
39
+ }
40
+
41
+ .toggleButtons {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-evenly;
45
+ }
46
+
47
+ .exports {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ align-items: center;
51
+ gap: layout.$spacing-03;
52
+ margin-top: layout.$spacing-05;
53
+ }
54
+
55
+ .exportHint {
56
+ @include type.type-style('helper-text-01');
57
+ color: theme.$text-helper;
58
+ }
59
+
60
+ .toggle {
61
+ margin-right: layout.$spacing-05;
62
+ }
63
+
64
+ /**
65
+ * The table reads as a light surface, so it carries the white theme's tokens rather than the g90
66
+ * ones the surrounding panel sets; the two together would put near-white text on a white background.
67
+ * Everything nested here, Carbon's own table styling included, resolves against these.
68
+ */
69
+ .mainContent {
70
+ @include theme.theme(themes.$white);
71
+
72
+ // Sass warns about declarations following the nested rules the mixin emits; `&` opts in to the
73
+ // behaviour CSS itself specifies.
74
+ & {
75
+ background-color: theme.$background;
76
+ width: 100%;
77
+ flex: 1 1 auto;
78
+ overflow-y: auto;
79
+ }
80
+
81
+ :global(.cds--data-table-container) {
82
+ padding-top: 0;
83
+ }
84
+
85
+ // The popup dims every table cell to $text-secondary. Carbon's default is secondary for column
86
+ // headers and primary for body cells, which is what keeps a long list of values readable.
87
+ :global(.cds--data-table) tbody td {
88
+ color: theme.$text-primary;
89
+ }
90
+ }
91
+
92
+ .namespaceCell,
93
+ .sourceCell {
94
+ white-space: nowrap;
95
+ color: theme.$text-secondary;
96
+ }
97
+
98
+ .key {
99
+ @include type.type-style('code-01');
100
+ color: theme.$text-primary;
101
+ }
102
+
103
+ .value {
104
+ color: theme.$text-primary;
105
+ overflow-wrap: anywhere;
106
+ }
107
+
108
+ .hint {
109
+ @include type.type-style('helper-text-01');
110
+ color: theme.$text-secondary;
111
+ }
112
+
113
+ .editor {
114
+ display: flex;
115
+ align-items: center;
116
+ gap: layout.$spacing-03;
117
+ }
118
+
119
+ .rowActions {
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: flex-end;
123
+ }
124
+
125
+ .emptyState {
126
+ @include type.type-style('body-compact-01');
127
+ color: theme.$text-secondary;
128
+ padding: layout.$spacing-05;
129
+ }
130
+
131
+ .pagination {
132
+ border-top: 1px solid theme.$border-subtle-00;
133
+ }