@kenyaemr/esm-shr-app 5.4.2-pre.2364 → 5.4.2-pre.2368

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,24 +1,24 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
1
+ @use '@carbon/colors';
3
2
  @use '@carbon/layout';
4
- @use '~@openmrs/esm-styleguide/src/vars' as *;
3
+ @use '@carbon/type';
5
4
 
6
5
  .heading {
7
6
  @include type.type-style('heading-compact-01');
8
- margin: spacing.$spacing-05 0 spacing.$spacing-05;
7
+ margin: layout.$spacing-05 0 layout.$spacing-05;
9
8
  }
10
9
 
11
10
  .warningContainer {
12
- background-color: $carbon--red-50;
13
- padding: spacing.$spacing-04;
14
- margin: spacing.$spacing-03 0 spacing.$spacing-03;
11
+ background-color: colors.$red-50;
12
+ padding: layout.$spacing-04;
13
+ margin: layout.$spacing-03 0 layout.$spacing-03;
15
14
  display: flex;
16
15
  justify-content: space-between;
16
+
17
17
  .warning {
18
18
  @include type.type-style('heading-compact-01');
19
- color: $ui-05;
20
19
  }
21
20
  }
21
+
22
22
  .form {
23
23
  display: flex;
24
24
  flex-direction: column;
@@ -30,18 +30,20 @@
30
30
  margin-top: auto;
31
31
  display: flex;
32
32
  justify-content: flex-end;
33
- margin-right: spacing.$spacing-04;
33
+ margin-right: layout.$spacing-04;
34
34
  }
35
35
 
36
36
  .grid {
37
- margin: 0 spacing.$spacing-05;
37
+ margin: 0 layout.$spacing-05;
38
38
  padding: 0rem;
39
39
  }
40
+
40
41
  .textbox {
41
- margin-bottom: spacing.$spacing-10;
42
+ margin-bottom: layout.$spacing-10;
42
43
  }
44
+
43
45
  .button {
44
- height: spacing.$spacing-10;
46
+ height: layout.$spacing-10;
45
47
  display: flex;
46
48
  align-content: flex-start;
47
49
  align-items: baseline;
@@ -53,7 +55,7 @@
53
55
  display: flex;
54
56
  align-items: center;
55
57
  justify-content: space-between;
56
- margin: spacing.$spacing-05;
58
+ margin: layout.$spacing-05;
57
59
  row-gap: 1.5rem;
58
60
  position: relative;
59
61
 
@@ -74,33 +76,75 @@
74
76
 
75
77
  .sectionHeader {
76
78
  @include type.type-style('heading-02');
77
- margin-top: spacing.$spacing-05;
79
+ margin-top: layout.$spacing-05;
80
+ }
81
+
82
+ // Search results container
83
+ .searchResults {
84
+ max-height: 200px;
85
+ overflow-y: auto;
86
+ border: 1px solid colors.$gray-30;
87
+ border-radius: 4px;
88
+ margin-top: layout.$spacing-03;
89
+ }
90
+
91
+ // Individual result tiles
92
+ .resultTile {
93
+ cursor: pointer;
94
+ border-bottom: 1px solid colors.$gray-20;
95
+
96
+ &:hover {
97
+ background-color: colors.$gray-10;
98
+ }
99
+
100
+ &:last-child {
101
+ border-bottom: none;
102
+ }
103
+ }
104
+
105
+ // Selected facility/items display
106
+ .selectedItem {
107
+ margin-top: layout.$spacing-03;
78
108
  }
79
109
 
110
+ // Selected reasons tags
111
+ .selectedItems {
112
+ display: flex;
113
+ flex-wrap: wrap;
114
+ gap: layout.$spacing-03;
115
+ margin-top: layout.$spacing-03;
116
+ }
117
+
118
+ // Error message styling
119
+ .errorMessage {
120
+ @include type.type-style('body-compact-01');
121
+ color: colors.$red-60;
122
+ margin-top: layout.$spacing-02;
123
+ }
124
+
125
+ // Global media query for tablet/mobile
80
126
  :global(.omrs-breakpoint-lt-desktop) {
81
127
  .form {
82
128
  height: var(--tablet-workspace-window-height);
83
129
  }
84
130
 
85
131
  .buttonSet {
86
- padding: spacing.$spacing-06 spacing.$spacing-05;
87
- background-color: $ui-02;
88
- justify-content: flex-end;
89
- gap: spacing.$spacing-05;
90
132
  padding: 0;
91
133
  margin-top: auto;
92
134
  display: flex;
93
- justify-content: end;
135
+ justify-content: flex-end;
136
+ gap: layout.$spacing-05;
94
137
  }
95
138
  }
96
139
 
140
+ // Legacy styles (consider removing if not used)
97
141
  .reasonList {
98
142
  display: flex;
99
143
  flex-direction: column;
100
- gap: spacing.$spacing-05;
144
+ gap: layout.$spacing-05;
101
145
  max-height: 15rem;
102
146
  overflow-y: auto;
103
- border-radius: spacing.$spacing-05;
147
+ border-radius: layout.$spacing-05;
104
148
  padding: 0.5rem;
105
149
  }
106
150
 
@@ -110,7 +154,7 @@
110
154
  }
111
155
 
112
156
  .reasonTile {
113
- padding: spacing.$spacing-05;
157
+ padding: layout.$spacing-05;
114
158
  cursor: pointer;
115
159
  display: flex;
116
160
  align-items: center;
@@ -120,8 +164,92 @@
120
164
  .selectedReasons {
121
165
  display: flex;
122
166
  flex-wrap: wrap;
123
- gap: spacing.$spacing-05;
167
+ gap: layout.$spacing-05;
124
168
  }
169
+
125
170
  .reasonTextbox {
126
- margin-bottom: spacing.$spacing-05;
171
+ margin-bottom: layout.$spacing-05;
172
+ }
173
+
174
+ .tile {
175
+ position: relative;
176
+ }
177
+
178
+ .tileContainer {
179
+ background-color: colors.$white-0;
180
+ border-top: 1px solid colors.$gray-20;
181
+ padding: layout.$spacing-10 0;
182
+ }
183
+
184
+ .tileNoContent {
185
+ margin: auto;
186
+ width: fit-content;
187
+ display: flex;
188
+ flex-direction: column;
189
+ align-items: center;
190
+ }
191
+
192
+ .tileContent {
193
+ display: flex;
194
+ flex-direction: row;
195
+ align-items: center;
196
+ gap: layout.$spacing-05;
197
+ }
198
+
199
+ .details {
200
+ display: flex;
201
+ flex-direction: column;
202
+ align-items: flex-start;
203
+ }
204
+
205
+ .content {
206
+ @include type.type-style('heading-compact-02');
207
+ color: colors.$gray-70;
208
+ margin-bottom: layout.$spacing-03;
209
+ }
210
+
211
+ .helper {
212
+ @include type.type-style('body-compact-01');
213
+ color: colors.$gray-70;
214
+ }
215
+
216
+ .illustrationPictogram {
217
+ width: layout.$spacing-07;
218
+ height: layout.$spacing-07;
219
+ fill: var(--brand-03);
220
+ flex-shrink: 0;
221
+ }
222
+
223
+ .closeIcon {
224
+ cursor: pointer;
225
+ color: colors.$gray-70;
226
+ margin-left: auto;
227
+ display: flex;
228
+ align-items: center;
229
+
230
+ &:hover {
231
+ color: colors.$gray-100;
232
+ }
233
+ }
234
+
235
+ .description {
236
+ @include type.type-style('body-compact-01');
237
+ color: colors.$gray-70;
238
+ margin-bottom: layout.$spacing-03;
239
+ }
240
+
241
+ .facilityInfo {
242
+ @include type.type-style('body-compact-01');
243
+ color: colors.$gray-70;
244
+ font-weight: bold;
245
+ }
246
+
247
+ .locationDetails {
248
+ @include type.type-style('body-compact-01');
249
+ color: colors.$gray-70;
250
+ }
251
+
252
+ .tags {
253
+ @include type.type-style('body-compact-01');
254
+ color: colors.$gray-70;
127
255
  }