@digihmis/esm-patient-registration-app 1.0.0
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/README.md +4 -0
- package/dist/117.js +1 -0
- package/dist/117.js.map +1 -0
- package/dist/131.js +1 -0
- package/dist/131.js.map +1 -0
- package/dist/132.js +1 -0
- package/dist/132.js.map +1 -0
- package/dist/152.js +1 -0
- package/dist/152.js.map +1 -0
- package/dist/209.js +1 -0
- package/dist/209.js.map +1 -0
- package/dist/247.js +1 -0
- package/dist/247.js.map +1 -0
- package/dist/28.js +1 -0
- package/dist/28.js.map +1 -0
- package/dist/317.js +1 -0
- package/dist/317.js.map +1 -0
- package/dist/349.js +1 -0
- package/dist/349.js.map +1 -0
- package/dist/371.js +1 -0
- package/dist/371.js.map +1 -0
- package/dist/378.js +1 -0
- package/dist/378.js.map +1 -0
- package/dist/442.js +1 -0
- package/dist/442.js.map +1 -0
- package/dist/45.js +1 -0
- package/dist/45.js.map +1 -0
- package/dist/459.js +12 -0
- package/dist/459.js.map +1 -0
- package/dist/466.js +1 -0
- package/dist/466.js.map +1 -0
- package/dist/508.js +1 -0
- package/dist/508.js.map +1 -0
- package/dist/61.js +1 -0
- package/dist/61.js.map +1 -0
- package/dist/640.js +1 -0
- package/dist/640.js.map +1 -0
- package/dist/689.js +1 -0
- package/dist/689.js.map +1 -0
- package/dist/709.js +1 -0
- package/dist/709.js.map +1 -0
- package/dist/712.js +1 -0
- package/dist/712.js.map +1 -0
- package/dist/720.js +1 -0
- package/dist/720.js.map +1 -0
- package/dist/742.js +1 -0
- package/dist/742.js.map +1 -0
- package/dist/771.js +1 -0
- package/dist/771.js.map +1 -0
- package/dist/806.js +1 -0
- package/dist/806.js.map +1 -0
- package/dist/912.js +1 -0
- package/dist/912.js.map +1 -0
- package/dist/913.js +1 -0
- package/dist/913.js.map +1 -0
- package/dist/940.js +1 -0
- package/dist/940.js.map +1 -0
- package/dist/957.js +15 -0
- package/dist/957.js.map +1 -0
- package/dist/digihmis-esm-patient-registration-app.js +6 -0
- package/dist/digihmis-esm-patient-registration-app.js.buildmanifest.json +827 -0
- package/dist/digihmis-esm-patient-registration-app.js.map +1 -0
- package/dist/main.js +17 -0
- package/dist/main.js.map +1 -0
- package/dist/routes.json +1 -0
- package/jest.config.js +26 -0
- package/package.json +51 -0
- package/rspack.config.js +1 -0
- package/src/active-visit-table/active-visit-table.component.tsx +240 -0
- package/src/active-visit-table/active-visits.resource.ts +338 -0
- package/src/active-visit-table/active-visits.scss +211 -0
- package/src/active-visit-table/empty-data-illustration.component.tsx +39 -0
- package/src/checkin-form/base-visit-type.component.tsx +102 -0
- package/src/checkin-form/base-visit-type.scss +75 -0
- package/src/checkin-form/checkin-form.scss +167 -0
- package/src/checkin-form/checkin-form.workspace.tsx +703 -0
- package/src/checkin-form/hooks/useDefaultFacilityLocation.ts +15 -0
- package/src/checkin-form/hooks/useDefaultVisitLocation.ts +24 -0
- package/src/checkin-form/hooks/useOfflineVisitType.ts +18 -0
- package/src/checkin-form/hooks/usePatientHistory.ts +40 -0
- package/src/checkin-form/hooks/useRecommendedVisitTypes.ts +34 -0
- package/src/checkin-form/hooks/useVisitAttributeType.ts +102 -0
- package/src/checkin-form/location-selector.component.tsx +86 -0
- package/src/checkin-form/recommended-visit-type.component.tsx +32 -0
- package/src/checkin-form/visit-attribute-type.component.tsx +256 -0
- package/src/checkin-form/visit-attribute-type.scss +5 -0
- package/src/checkin-form/visit-date-time.component.tsx +201 -0
- package/src/checkin-form/visit-form.resource.ts +308 -0
- package/src/components/custom-card/compact-patient-banner.component.tsx +70 -0
- package/src/components/custom-card/compact-patient-banner.scss +34 -0
- package/src/components/custom-card/custom-loader.component.tsx +22 -0
- package/src/components/custom-card/patient-search-context.ts +30 -0
- package/src/components/custom-input/autosuggest/autosuggest.component.tsx +213 -0
- package/src/components/custom-input/autosuggest/autosuggest.scss +158 -0
- package/src/components/custom-input/autosuggest/autosuggest.test.tsx +168 -0
- package/src/components/custom-patient-banner/custom-patient-banner.component.tsx +39 -0
- package/src/components/custom-patient-banner/custom-patient-banner.resource.ts +32 -0
- package/src/components/custom-patient-banner/custom-patient-banner.scss +26 -0
- package/src/config-schema.ts +511 -0
- package/src/constant.ts +6 -0
- package/src/constants/index.ts +1 -0
- package/src/dashboard.meta.ts +8 -0
- package/src/declarations.d.ts +6 -0
- package/src/empty-svg/empty-svg.component.tsx +565 -0
- package/src/icon-wrapper/icon-wrapper.extension.tsx +17 -0
- package/src/identifier-workspace/identifier-configure-form.workspace.tsx +278 -0
- package/src/identifier-workspace/identifier-configure.scss +106 -0
- package/src/identifier-workspace/identifier.resource.ts +90 -0
- package/src/index.ts +33 -0
- package/src/left-panel/left-panel.component.tsx +54 -0
- package/src/left-panel/left-panel.scss +13 -0
- package/src/page-header/page-header.component.tsx +35 -0
- package/src/page-header/page-header.scss +76 -0
- package/src/patient-tags/deceased-patient-tag.extension.tsx +41 -0
- package/src/patient-tags/deceased-patient-tag.scss +15 -0
- package/src/patient-tags/patient-tags.resource.ts +30 -0
- package/src/patient-tags/visit-tag.extension.tsx +43 -0
- package/src/patient-tags/visit-tag.scss +19 -0
- package/src/registration-form/form-manager.ts +449 -0
- package/src/registration-form/registration-form.component.tsx +1565 -0
- package/src/registration-form/registration-form.resource.ts +264 -0
- package/src/registration-form/registration-form.scss +282 -0
- package/src/routes.json +62 -0
- package/src/search-bar/search-bar.component.tsx +285 -0
- package/src/search-bar/search-bar.resource.ts +274 -0
- package/src/search-bar/search-bar.scss +427 -0
- package/src/search-dashboard/search-dashboard.component.tsx +17 -0
- package/src/search-dashboard/search-dashboard.scss +13 -0
- package/src/setup-tests.ts +1 -0
- package/src/type/index.ts +463 -0
- package/src/utils/fhir-mapper.ts +73 -0
- package/src/visit-summary/visit-summary.component.tsx +32 -0
- package/src/visit-summary/visit-summary.resource.ts +56 -0
- package/src/visit-summary/visit-summary.scss +74 -0
- package/translations/am.json +112 -0
- package/translations/ar.json +120 -0
- package/translations/en.json +112 -0
- package/translations/es.json +114 -0
- package/translations/fr.json +114 -0
- package/translations/he.json +114 -0
- package/translations/km.json +111 -0
- package/translations/pt.json +114 -0
- package/translations/sw.json +112 -0
- package/translations/vi.json +111 -0
- package/translations/zh.json +111 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
@use '@carbon/type';
|
|
3
|
+
@use '@carbon/colors';
|
|
4
|
+
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
border-bottom: 0.063rem solid $ui-03;
|
|
8
|
+
background-color: colors.$gray-10;
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: 1fr auto;
|
|
11
|
+
grid-template-rows: auto auto;
|
|
12
|
+
width: 100%;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding: layout.$spacing-05;
|
|
15
|
+
margin: 0 auto layout.$spacing-04 auto;
|
|
16
|
+
gap: layout.$spacing-04;
|
|
17
|
+
|
|
18
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
19
|
+
padding: layout.$spacing-03;
|
|
20
|
+
gap: layout.$spacing-02;
|
|
21
|
+
grid-template-columns: 1fr;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.patientSearchTile {
|
|
26
|
+
min-height: auto;
|
|
27
|
+
padding-left: layout.$spacing-09;
|
|
28
|
+
padding-right: layout.$spacing-09;
|
|
29
|
+
margin-bottom: layout.$spacing-05;
|
|
30
|
+
:global(.omrs-breakpoint-lt-desktop) & {
|
|
31
|
+
padding-left: layout.$spacing-05;
|
|
32
|
+
padding-right: layout.$spacing-05;
|
|
33
|
+
margin-bottom: layout.$spacing-04;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
37
|
+
padding-left: layout.$spacing-03;
|
|
38
|
+
padding-right: layout.$spacing-03;
|
|
39
|
+
margin-bottom: layout.$spacing-03;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.clearButton {
|
|
44
|
+
text-align: center;
|
|
45
|
+
display: flex;
|
|
46
|
+
|
|
47
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
48
|
+
width: 100%;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.searchForm {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: layout.$spacing-05;
|
|
57
|
+
margin-top: layout.$spacing-03;
|
|
58
|
+
|
|
59
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
60
|
+
gap: layout.$spacing-03;
|
|
61
|
+
margin-top: layout.$spacing-02;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.searchRow {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: layout.$spacing-06;
|
|
68
|
+
align-items: end;
|
|
69
|
+
|
|
70
|
+
:global(.omrs-breakpoint-lt-desktop) & {
|
|
71
|
+
gap: layout.$spacing-04;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: stretch;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
77
|
+
gap: layout.$spacing-03;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.identifierNumberColumn {
|
|
82
|
+
flex: 1;
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
|
|
85
|
+
:global(.omrs-breakpoint-lt-desktop) & {
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.searchInputContainer {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: end;
|
|
93
|
+
gap: 0;
|
|
94
|
+
|
|
95
|
+
.formSearch {
|
|
96
|
+
flex: 1;
|
|
97
|
+
:global(.cds--search-input) {
|
|
98
|
+
border-top-right-radius: 0;
|
|
99
|
+
border-bottom-right-radius: 0;
|
|
100
|
+
border-right: none;
|
|
101
|
+
background: #fff;
|
|
102
|
+
border-top: 1px solid colors.$gray-40;
|
|
103
|
+
border-left: 1px solid colors.$gray-40;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: layout.$spacing-02;
|
|
110
|
+
|
|
111
|
+
.formSearch {
|
|
112
|
+
width: 100%;
|
|
113
|
+
:global(.cds--search-input) {
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
border-right: 1px solid colors.$gray-40;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.registrationButton {
|
|
122
|
+
margin-left: 1rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.attachedSearchButton {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
text-align: center;
|
|
130
|
+
padding: 0 layout.$spacing-04;
|
|
131
|
+
font-size: type.type-scale(2);
|
|
132
|
+
margin-left: -1px;
|
|
133
|
+
|
|
134
|
+
.loadingText {
|
|
135
|
+
margin-left: 0.5rem;
|
|
136
|
+
font-size: 0.875rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:global(.cds--inline-loading) {
|
|
140
|
+
min-height: auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:global(.cds--inline-loading__animation) {
|
|
144
|
+
width: 1rem;
|
|
145
|
+
height: 1rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
149
|
+
width: 100%;
|
|
150
|
+
margin-left: 0;
|
|
151
|
+
border-left: none;
|
|
152
|
+
border-radius: 4px;
|
|
153
|
+
|
|
154
|
+
.loadingText {
|
|
155
|
+
font-size: 0.75rem;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.emptyStateContainer {
|
|
161
|
+
margin-top: 1rem;
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
min-height: 300px;
|
|
167
|
+
width: 100%;
|
|
168
|
+
row-gap: layout.$spacing-02;
|
|
169
|
+
border: 1px solid colors.$cool-gray-30;
|
|
170
|
+
|
|
171
|
+
& form {
|
|
172
|
+
border: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
svg {
|
|
176
|
+
width: 190px;
|
|
177
|
+
height: 100px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.title {
|
|
181
|
+
@include type.type-style('heading-01');
|
|
182
|
+
color: colors.$cool-gray-70;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.subTitle {
|
|
186
|
+
color: colors.$cool-gray-70;
|
|
187
|
+
font-size: layout.$spacing-05;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:global(.omrs-breakpoint-lt-desktop) & {
|
|
191
|
+
min-height: 250px;
|
|
192
|
+
row-gap: layout.$spacing-01;
|
|
193
|
+
|
|
194
|
+
svg {
|
|
195
|
+
width: 150px;
|
|
196
|
+
height: 70px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.title {
|
|
200
|
+
@include type.type-style('heading-02');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.subTitle {
|
|
204
|
+
font-size: 0.875rem;
|
|
205
|
+
text-align: center;
|
|
206
|
+
padding: 0 layout.$spacing-02;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
211
|
+
min-height: 200px;
|
|
212
|
+
padding: layout.$spacing-04;
|
|
213
|
+
|
|
214
|
+
svg {
|
|
215
|
+
width: 120px;
|
|
216
|
+
height: 60px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.title {
|
|
220
|
+
@include type.type-style('heading-03');
|
|
221
|
+
text-align: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.subTitle {
|
|
225
|
+
font-size: 0.75rem;
|
|
226
|
+
line-height: 1.2;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// NEW: Dropdown Container
|
|
232
|
+
.dropdownContainer {
|
|
233
|
+
position: relative;
|
|
234
|
+
margin-top: layout.$spacing-03;
|
|
235
|
+
background: white;
|
|
236
|
+
border: 1px solid colors.$gray-30;
|
|
237
|
+
border-radius: 4px;
|
|
238
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
239
|
+
max-height: 500px;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
animation: slideDown 0.2s ease-out;
|
|
242
|
+
|
|
243
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
244
|
+
max-height: 400px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@keyframes slideDown {
|
|
249
|
+
from {
|
|
250
|
+
opacity: 0;
|
|
251
|
+
transform: translateY(-10px);
|
|
252
|
+
}
|
|
253
|
+
to {
|
|
254
|
+
opacity: 1;
|
|
255
|
+
transform: translateY(0);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.dropdownSection {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.dropdownHeader {
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: space-between;
|
|
267
|
+
align-items: center;
|
|
268
|
+
padding: layout.$spacing-04;
|
|
269
|
+
background: colors.$gray-10;
|
|
270
|
+
border-bottom: 1px solid colors.$gray-20;
|
|
271
|
+
position: sticky;
|
|
272
|
+
top: 0;
|
|
273
|
+
z-index: 1;
|
|
274
|
+
|
|
275
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
276
|
+
padding: layout.$spacing-03;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.dropdownTitle {
|
|
281
|
+
@include type.type-style('heading-compact-01');
|
|
282
|
+
color: colors.$gray-100;
|
|
283
|
+
font-weight: 600;
|
|
284
|
+
|
|
285
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
286
|
+
font-size: 0.875rem;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.dropdownCount {
|
|
291
|
+
@include type.type-style('label-01');
|
|
292
|
+
color: colors.$gray-70;
|
|
293
|
+
background: colors.$gray-20;
|
|
294
|
+
padding: 2px 8px;
|
|
295
|
+
border-radius: 12px;
|
|
296
|
+
font-size: 0.75rem;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.dropdownResults {
|
|
300
|
+
overflow-y: auto;
|
|
301
|
+
max-height: 440px;
|
|
302
|
+
padding: layout.$spacing-03;
|
|
303
|
+
|
|
304
|
+
&::-webkit-scrollbar {
|
|
305
|
+
width: 8px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&::-webkit-scrollbar-track {
|
|
309
|
+
background: colors.$gray-10;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&::-webkit-scrollbar-thumb {
|
|
313
|
+
background: colors.$gray-40;
|
|
314
|
+
border-radius: 4px;
|
|
315
|
+
|
|
316
|
+
&:hover {
|
|
317
|
+
background: colors.$gray-50;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
322
|
+
max-height: 340px;
|
|
323
|
+
padding: layout.$spacing-02;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.dropdownEmptyState {
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
min-height: 250px;
|
|
333
|
+
padding: layout.$spacing-05;
|
|
334
|
+
row-gap: layout.$spacing-02;
|
|
335
|
+
|
|
336
|
+
svg {
|
|
337
|
+
width: 120px;
|
|
338
|
+
height: 80px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.title {
|
|
342
|
+
@include type.type-style('heading-02');
|
|
343
|
+
color: colors.$cool-gray-70;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.subTitle {
|
|
347
|
+
color: colors.$cool-gray-70;
|
|
348
|
+
font-size: 0.875rem;
|
|
349
|
+
text-align: center;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
353
|
+
min-height: 200px;
|
|
354
|
+
padding: layout.$spacing-03;
|
|
355
|
+
|
|
356
|
+
svg {
|
|
357
|
+
width: 100px;
|
|
358
|
+
height: 60px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.title {
|
|
362
|
+
font-size: 0.875rem;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.subTitle {
|
|
366
|
+
font-size: 0.75rem;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.loadingContainer {
|
|
372
|
+
padding: layout.$spacing-04;
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
gap: layout.$spacing-03;
|
|
376
|
+
|
|
377
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
378
|
+
padding: layout.$spacing-03;
|
|
379
|
+
gap: layout.$spacing-02;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.loadingMore {
|
|
384
|
+
display: flex;
|
|
385
|
+
justify-content: center;
|
|
386
|
+
padding: layout.$spacing-03;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.searchResultsContainer {
|
|
390
|
+
margin-top: 1rem;
|
|
391
|
+
border: 1px solid colors.$cool-gray-30;
|
|
392
|
+
padding: layout.$spacing-05;
|
|
393
|
+
|
|
394
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
395
|
+
padding: layout.$spacing-03;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.resultsCount {
|
|
400
|
+
@include type.type-style('label-01');
|
|
401
|
+
color: colors.$gray-100;
|
|
402
|
+
font-weight: bold;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.errorContainer {
|
|
406
|
+
margin-top: layout.$spacing-03;
|
|
407
|
+
padding: layout.$spacing-04;
|
|
408
|
+
background: colors.$red-10;
|
|
409
|
+
border: 1px solid colors.$red-30;
|
|
410
|
+
border-radius: 4px;
|
|
411
|
+
|
|
412
|
+
:global(.omrs-breakpoint-lt-tablet) & {
|
|
413
|
+
padding: layout.$spacing-03;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.errorTitle {
|
|
418
|
+
@include type.type-style('heading-compact-01');
|
|
419
|
+
color: colors.$red-70;
|
|
420
|
+
margin-bottom: layout.$spacing-02;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.errorMessage {
|
|
424
|
+
@include type.type-style('body-compact-01');
|
|
425
|
+
color: colors.$red-60;
|
|
426
|
+
font-size: 0.875rem;
|
|
427
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PageHeader } from '../page-header/page-header.component';
|
|
3
|
+
import SearchBar from '../search-bar/search-bar.component';
|
|
4
|
+
import ActiveVisitsTable from '../active-visit-table/active-visit-table.component';
|
|
5
|
+
|
|
6
|
+
const SearchDashboard: React.FC = () => {
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<main className="omrs-main-content">
|
|
10
|
+
<PageHeader />
|
|
11
|
+
<SearchBar />
|
|
12
|
+
</main>
|
|
13
|
+
</>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default SearchDashboard;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
@use '@carbon/type';
|
|
3
|
+
@use '@carbon/colors';
|
|
4
|
+
|
|
5
|
+
.pageHeader {
|
|
6
|
+
@include type.type-style('body-compact-02');
|
|
7
|
+
height: layout.$spacing-12;
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
padding: layout.$spacing-05;
|
|
11
|
+
background: colors.$white-0;
|
|
12
|
+
border-bottom: 1px solid colors.$gray-20;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|