@medplum/react 0.10.1 → 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.
Files changed (141) hide show
  1. package/dist/cjs/AttachmentButton.d.ts +2 -0
  2. package/dist/cjs/CalendarInput.d.ts +0 -1
  3. package/dist/cjs/CheckboxFormSection.d.ts +0 -1
  4. package/dist/cjs/DescriptionList.d.ts +0 -1
  5. package/dist/cjs/DiagnosticReportDisplay.d.ts +0 -1
  6. package/dist/cjs/Document.d.ts +0 -1
  7. package/dist/cjs/FhirPathTable.d.ts +0 -1
  8. package/dist/cjs/FormSection.d.ts +0 -1
  9. package/dist/cjs/MedplumLink.d.ts +2 -4
  10. package/dist/cjs/QuestionnaireBuilder.d.ts +0 -1
  11. package/dist/cjs/QuestionnaireForm.d.ts +0 -1
  12. package/dist/cjs/RequestGroupDisplay.d.ts +0 -1
  13. package/dist/cjs/ResourceBadge.d.ts +0 -1
  14. package/dist/cjs/ResourceBlame.d.ts +0 -1
  15. package/dist/cjs/ResourceDiff.d.ts +0 -1
  16. package/dist/cjs/ResourceDiffTable.d.ts +0 -2
  17. package/dist/cjs/ResourceName.d.ts +2 -1
  18. package/dist/cjs/ResourceTimeline.d.ts +0 -1
  19. package/dist/cjs/Scheduler.d.ts +0 -1
  20. package/dist/cjs/SearchControl.d.ts +0 -1
  21. package/dist/cjs/SearchFilterEditor.d.ts +0 -1
  22. package/dist/cjs/Timeline.d.ts +0 -1
  23. package/dist/cjs/auth/AuthenticationForm.d.ts +1 -0
  24. package/dist/cjs/auth/RegisterForm.d.ts +0 -1
  25. package/dist/cjs/auth/SignInForm.d.ts +1 -1
  26. package/dist/cjs/index.js +1252 -907
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/cjs/index.min.js +1 -1
  29. package/dist/cjs/index.min.js.map +1 -1
  30. package/dist/cjs/stories/DescriptionList.stories.d.ts +5 -0
  31. package/dist/cjs/stories/PlanDefinitionBuilder.stories.d.ts +2 -0
  32. package/dist/cjs/stories/RequestGroupDisplay.stories.d.ts +1 -0
  33. package/dist/cjs/stories/ResourceTable.stories.d.ts +4 -0
  34. package/dist/cjs/stories/covid19.d.ts +15 -0
  35. package/dist/esm/AttachmentArrayInput.js +2 -2
  36. package/dist/esm/AttachmentArrayInput.js.map +1 -1
  37. package/dist/esm/AttachmentButton.d.ts +2 -0
  38. package/dist/esm/AttachmentButton.js +4 -1
  39. package/dist/esm/AttachmentButton.js.map +1 -1
  40. package/dist/esm/BackboneElementInput.js +2 -1
  41. package/dist/esm/BackboneElementInput.js.map +1 -1
  42. package/dist/esm/CalendarInput.d.ts +0 -1
  43. package/dist/esm/CalendarInput.js +39 -2
  44. package/dist/esm/CalendarInput.js.map +1 -1
  45. package/dist/esm/CheckboxFormSection.d.ts +0 -1
  46. package/dist/esm/CheckboxFormSection.js +5 -5
  47. package/dist/esm/CheckboxFormSection.js.map +1 -1
  48. package/dist/esm/DescriptionList.d.ts +0 -1
  49. package/dist/esm/DescriptionList.js +23 -1
  50. package/dist/esm/DescriptionList.js.map +1 -1
  51. package/dist/esm/DiagnosticReportDisplay.d.ts +0 -1
  52. package/dist/esm/DiagnosticReportDisplay.js +40 -22
  53. package/dist/esm/DiagnosticReportDisplay.js.map +1 -1
  54. package/dist/esm/Document.d.ts +0 -1
  55. package/dist/esm/Document.js +7 -2
  56. package/dist/esm/Document.js.map +1 -1
  57. package/dist/esm/ErrorBoundary.js +2 -1
  58. package/dist/esm/ErrorBoundary.js.map +1 -1
  59. package/dist/esm/FhirPathTable.d.ts +0 -1
  60. package/dist/esm/FhirPathTable.js +5 -5
  61. package/dist/esm/FhirPathTable.js.map +1 -1
  62. package/dist/esm/FormSection.d.ts +0 -1
  63. package/dist/esm/FormSection.js +3 -11
  64. package/dist/esm/FormSection.js.map +1 -1
  65. package/dist/esm/MedplumLink.d.ts +2 -4
  66. package/dist/esm/MedplumLink.js +11 -8
  67. package/dist/esm/MedplumLink.js.map +1 -1
  68. package/dist/esm/PlanDefinitionBuilder.js +41 -10
  69. package/dist/esm/PlanDefinitionBuilder.js.map +1 -1
  70. package/dist/esm/QuestionnaireBuilder.d.ts +0 -1
  71. package/dist/esm/QuestionnaireBuilder.js +78 -31
  72. package/dist/esm/QuestionnaireBuilder.js.map +1 -1
  73. package/dist/esm/QuestionnaireForm.d.ts +0 -1
  74. package/dist/esm/QuestionnaireForm.js +26 -16
  75. package/dist/esm/QuestionnaireForm.js.map +1 -1
  76. package/dist/esm/RequestGroupDisplay.d.ts +0 -1
  77. package/dist/esm/RequestGroupDisplay.js +8 -7
  78. package/dist/esm/RequestGroupDisplay.js.map +1 -1
  79. package/dist/esm/ResourceBadge.d.ts +0 -1
  80. package/dist/esm/ResourceBadge.js +2 -1
  81. package/dist/esm/ResourceBadge.js.map +1 -1
  82. package/dist/esm/ResourceBlame.d.ts +0 -1
  83. package/dist/esm/ResourceBlame.js +59 -10
  84. package/dist/esm/ResourceBlame.js.map +1 -1
  85. package/dist/esm/ResourceDiff.d.ts +0 -1
  86. package/dist/esm/ResourceDiff.js +13 -2
  87. package/dist/esm/ResourceDiff.js.map +1 -1
  88. package/dist/esm/ResourceDiffTable.d.ts +0 -2
  89. package/dist/esm/ResourceDiffTable.js +25 -3
  90. package/dist/esm/ResourceDiffTable.js.map +1 -1
  91. package/dist/esm/ResourceForm.js +6 -5
  92. package/dist/esm/ResourceForm.js.map +1 -1
  93. package/dist/esm/ResourceInput.js +28 -2
  94. package/dist/esm/ResourceInput.js.map +1 -1
  95. package/dist/esm/ResourceName.d.ts +2 -1
  96. package/dist/esm/ResourceName.js +5 -2
  97. package/dist/esm/ResourceName.js.map +1 -1
  98. package/dist/esm/ResourcePropertyDisplay.js +6 -6
  99. package/dist/esm/ResourcePropertyDisplay.js.map +1 -1
  100. package/dist/esm/ResourceTimeline.d.ts +0 -1
  101. package/dist/esm/ResourceTimeline.js +78 -25
  102. package/dist/esm/ResourceTimeline.js.map +1 -1
  103. package/dist/esm/Scheduler.d.ts +0 -1
  104. package/dist/esm/Scheduler.js +20 -4
  105. package/dist/esm/Scheduler.js.map +1 -1
  106. package/dist/esm/SearchControl.d.ts +0 -1
  107. package/dist/esm/SearchControl.js +33 -18
  108. package/dist/esm/SearchControl.js.map +1 -1
  109. package/dist/esm/SearchFilterEditor.d.ts +0 -1
  110. package/dist/esm/SearchFilterEditor.js +2 -2
  111. package/dist/esm/SearchFilterEditor.js.map +1 -1
  112. package/dist/esm/Timeline.d.ts +0 -1
  113. package/dist/esm/Timeline.js +13 -16
  114. package/dist/esm/Timeline.js.map +1 -1
  115. package/dist/esm/auth/AuthenticationForm.d.ts +1 -0
  116. package/dist/esm/auth/AuthenticationForm.js +6 -3
  117. package/dist/esm/auth/AuthenticationForm.js.map +1 -1
  118. package/dist/esm/auth/ChooseProfileForm.js +3 -3
  119. package/dist/esm/auth/ChooseProfileForm.js.map +1 -1
  120. package/dist/esm/auth/NewProjectForm.js +3 -3
  121. package/dist/esm/auth/NewProjectForm.js.map +1 -1
  122. package/dist/esm/auth/NewUserForm.js +4 -3
  123. package/dist/esm/auth/NewUserForm.js.map +1 -1
  124. package/dist/esm/auth/RegisterForm.d.ts +0 -1
  125. package/dist/esm/auth/RegisterForm.js.map +1 -1
  126. package/dist/esm/auth/SignInForm.d.ts +1 -1
  127. package/dist/esm/auth/SignInForm.js +1 -1
  128. package/dist/esm/auth/SignInForm.js.map +1 -1
  129. package/dist/esm/index.min.js +1 -1
  130. package/dist/esm/index.min.js.map +1 -1
  131. package/dist/esm/stories/DescriptionList.stories.d.ts +5 -0
  132. package/dist/esm/stories/PlanDefinitionBuilder.stories.d.ts +2 -0
  133. package/dist/esm/stories/RequestGroupDisplay.stories.d.ts +1 -0
  134. package/dist/esm/stories/ResourceTable.stories.d.ts +4 -0
  135. package/dist/esm/stories/covid19.d.ts +15 -0
  136. package/package.json +35 -23
  137. package/rollup.config.mjs +111 -0
  138. package/dist/cjs/defaulttheme.css +0 -192
  139. package/dist/cjs/styles.css +0 -528
  140. package/dist/esm/defaulttheme.css +0 -192
  141. package/dist/esm/styles.css +0 -528
@@ -1,528 +0,0 @@
1
- .medplum-document {
2
- margin: 20px auto 6px auto;
3
- padding: 10px;
4
- clear: both;
5
- text-align: center;
6
- }
7
-
8
- .medplum-document article {
9
- background-color: var(--medplum-surface);
10
- max-width: 900px;
11
- margin: 8px auto 16px auto;
12
- padding: 15px 25px;
13
- text-align: left;
14
- border: 0.1px solid var(--medplum-gray-300);
15
- border-radius: 8px;
16
- box-shadow: 0 1px 3px 0 var(--medplum-shadow);
17
- font-size: 14px;
18
- }
19
-
20
- @media (max-width: 700px) {
21
- .medplum-document {
22
- margin: 10px auto 6px auto;
23
- padding: 4px;
24
- }
25
-
26
- .medplum-document article {
27
- padding: 6px 12px;
28
- }
29
- }
30
-
31
- .medplum-document img,
32
- .medplum-document video {
33
- width: 100%;
34
- }
35
-
36
- .medplum-left {
37
- text-align: left;
38
- }
39
-
40
- .medplum-center {
41
- text-align: center;
42
- }
43
-
44
- .medplum-right {
45
- text-align: right;
46
- }
47
-
48
- .medplum-checkbox-form-section {
49
- display: flex;
50
- justify-content: space-between;
51
- }
52
-
53
- .medplum-checkbox-form-section-checkbox-container {
54
- width: 30px;
55
- }
56
-
57
- .medplum-checkbox-form-section-details-container {
58
- flex: 1;
59
- width: 100%;
60
- }
61
-
62
- .medplum-checkbox-form-section-details-container > label {
63
- font-weight: 500;
64
- }
65
-
66
- fieldset.medplum-form-section {
67
- border: 0;
68
- margin: 6px 0 12px 0;
69
- padding: 2px 0 8px 0;
70
- }
71
-
72
- fieldset.medplum-form-section > label,
73
- fieldset.medplum-form-section > legend {
74
- display: block;
75
- margin: 1px 0 3px 0;
76
- line-height: 1.75;
77
- font-weight: 500;
78
- }
79
-
80
- fieldset.medplum-form-section > p {
81
- margin: 1px 0 4px 0;
82
- padding: 1px 0 4px 0;
83
- line-height: 1.75;
84
- }
85
-
86
- dl.medplum-description-list {
87
- display: grid;
88
- grid-template-columns: 30% 70%;
89
- margin: 0;
90
- }
91
-
92
- dl.medplum-description-list dt,
93
- dl.medplum-description-list dd {
94
- padding: 12px 8px;
95
- border-top: 0.1px solid var(--medplum-gray-300);
96
- margin: 0;
97
- }
98
-
99
- dl.medplum-description-list.compact {
100
- grid-template-columns: 20% 80%;
101
- }
102
-
103
- dl.medplum-description-list.compact dt,
104
- dl.medplum-description-list.compact dd {
105
- padding: 0 4px 4px 0;
106
- border: 0;
107
- }
108
-
109
- .medplum-resource-badge {
110
- display: inline-flex;
111
- align-items: center;
112
- gap: 4px;
113
- white-space: nowrap;
114
- }
115
-
116
- .medplum-diagnostic-report-header {
117
- display: flex;
118
- flex-direction: row;
119
- align-items: center;
120
- background-color: var(--medplum-surface);
121
- padding: 4px;
122
- overflow: hidden;
123
- }
124
-
125
- .medplum-diagnostic-report-header > .medplum-avatar {
126
- margin: 5px;
127
- }
128
-
129
- .medplum-diagnostic-report-header > dl {
130
- margin: 5px 30px 5px 0;
131
- }
132
-
133
- .medplum-diagnostic-report-header dt {
134
- color: var(--medplum-gray-500);
135
- text-transform: uppercase;
136
- font-size: 10px;
137
- white-space: nowrap;
138
- height: 16px;
139
- display: flex;
140
- align-items: center;
141
- }
142
-
143
- .medplum-diagnostic-report-header dd {
144
- font-size: 16px;
145
- font-weight: bold;
146
- line-height: 32px;
147
- white-space: nowrap;
148
- height: 40px;
149
- display: flex;
150
- align-items: center;
151
- margin: 0;
152
- }
153
-
154
- .medplum-critical {
155
- background: var(--medplum-red-50);
156
- color: var(--medplum-red-500);
157
- font-weight: bold;
158
- }
159
-
160
- .medplum-diff-removed {
161
- color: red;
162
- text-decoration: line-through;
163
- }
164
-
165
- .medplum-diff-added {
166
- color: green;
167
- }
168
-
169
- table.medplum-diff-table {
170
- border-collapse: collapse;
171
- width: 100%;
172
- }
173
-
174
- table.medplum-diff-table tr {
175
- border-top: 0.1px solid var(--medplum-gray-300);
176
- }
177
-
178
- table.medplum-diff-table th,
179
- table.medplum-diff-table td {
180
- padding: 12px 6px;
181
- vertical-align: top;
182
- }
183
-
184
- .medplum-timeline article.medplum-timeline-item {
185
- max-width: 900px;
186
- padding: 0;
187
- }
188
-
189
- .medplum-timeline article.medplum-timeline-item-pinned {
190
- background-color: var(--medplum-blue-50);
191
- }
192
-
193
- .medplum-timeline .medplum-timeline-item-header {
194
- display: flex;
195
- padding: 8px;
196
- }
197
-
198
- .medplum-timeline .medplum-timeline-item-avatar {
199
- margin-right: 8px;
200
- }
201
-
202
- .medplum-timeline .medplum-timeline-item-title {
203
- flex: 1;
204
- }
205
-
206
- .medplum-timeline .medplum-timeline-item-title > a {
207
- color: var(--medplum-gray-800);
208
- font-weight: bold;
209
- }
210
-
211
- .medplum-timeline .medplum-timeline-item-actions > a {
212
- color: var(--medplum-gray-700);
213
- font-weight: bold;
214
- width: 32px;
215
- height: 32px;
216
- display: flex;
217
- align-content: center;
218
- justify-content: center;
219
- padding: 6px;
220
- border-radius: 50%;
221
- }
222
-
223
- .medplum-timeline .medplum-timeline-item-actions > a:hover {
224
- background-color: rgba(0, 0, 0, 0.1);
225
- }
226
-
227
- .medplum-timeline .medplum-timeline-item-actions > a > svg {
228
- width: 20px;
229
- height: 20px;
230
- }
231
-
232
- .medplum-timeline .medplum-timeline-item-subtitle {
233
- font-size: 11px;
234
- }
235
-
236
- .medplum-timeline .medplum-timeline-item-subtitle > a,
237
- .medplum-timeline .medplum-timeline-item-subtitle > span {
238
- margin-right: 6px;
239
- color: var(--medplum-gray-500);
240
- }
241
-
242
- .medplum-timeline .medplum-timeline-item-footer {
243
- display: flex;
244
- padding: 8px;
245
- border-top: 0.1px solid var(--medplum-gray-200);
246
- }
247
-
248
- .medplum-timeline .medplum-timeline-icon {
249
- width: 26px;
250
- height: 26px;
251
- padding: 4px 0;
252
- margin-right: 2px;
253
- color: var(--medplum-gray-500);
254
- }
255
-
256
- .medplum-timeline-item-header > form {
257
- display: flex;
258
- width: 100%;
259
- }
260
-
261
- .medplum-timeline-item-header > form > input[type='text'] {
262
- flex: 1;
263
- margin-right: 4px;
264
- }
265
-
266
- .medplum-filter-editor {
267
- text-align: left;
268
- width: 900px;
269
- max-width: 900px;
270
- }
271
-
272
- .medplum-filter-editor-table {
273
- width: 100%;
274
- border-collapse: collapse;
275
- }
276
-
277
- .medplum-search-control {
278
- max-width: 100%;
279
- overflow: auto;
280
- text-align: left;
281
- margin-bottom: 20px;
282
- background: var(--medplum-surface);
283
- }
284
-
285
- .medplum-search-control .medplum-search-summary {
286
- line-height: 28px;
287
- padding: 2px 6px;
288
- font-size: 12px;
289
- white-space: nowrap;
290
- }
291
-
292
- .medplum-search-control > table td,
293
- .medplum-search-control > table th {
294
- cursor: pointer;
295
- }
296
-
297
- /* Body cells */
298
-
299
- .medplum-search-control > table tbody tr:hover {
300
- background-color: var(--medplum-gray-50);
301
- }
302
-
303
- .medplum-search-control .medplum-empty-search {
304
- color: var(--medplum-gray-500);
305
- text-align: center;
306
- padding: 60px;
307
- font-size: var(--medplum-font-big);
308
- }
309
-
310
- .medplum-search-icon-cell {
311
- padding: 0 !important;
312
- text-align: center !important;
313
- width: 32px !important;
314
- min-width: 32px !important;
315
- max-width: 32px !important;
316
- }
317
-
318
- .medplum-search-icon-cell input[type='checkbox'] {
319
- margin: 0;
320
- padding: 0;
321
- outline: 0;
322
- }
323
-
324
- .medplum-questionnaire-option-row {
325
- display: flex;
326
- align-items: center;
327
- line-height: 24px;
328
- }
329
-
330
- .medplum-questionnaire-option-row label {
331
- margin: 0;
332
- }
333
-
334
- .medplum-questionnaire-option-checkbox {
335
- padding: 4px 8px 0 4px;
336
- }
337
-
338
- .medplum-questionnaire-builder .section {
339
- position: relative;
340
- margin: 4px 4px 4px 0;
341
- padding: 4px 12px 16px 2px;
342
- background-color: var(--medplum-surface);
343
- border: 1px solid var(--medplum-surface);
344
- border-radius: 8px;
345
- }
346
-
347
- .medplum-questionnaire-builder .section h1 {
348
- margin: 4px 0;
349
- }
350
-
351
- .medplum-questionnaire-builder .section.hovering {
352
- border: 1px solid var(--medplum-blue-500);
353
- }
354
-
355
- .medplum-questionnaire-builder .section.editing {
356
- margin: 8px 4px 12px 0;
357
- padding: 4px 4px 20px 12px;
358
- border: 1px solid var(--medplum-gray-300);
359
- border-left: 4px solid var(--medplum-blue-500);
360
- }
361
-
362
- .medplum-questionnaire-builder .section.editing input,
363
- .medplum-questionnaire-builder .section.editing select {
364
- margin: 2px 4px 2px 0;
365
- }
366
-
367
- .medplum-questionnaire-builder .section > .top-actions {
368
- top: 1px;
369
- padding: 4px;
370
- color: var(--medplum-gray-500);
371
- }
372
-
373
- .medplum-questionnaire-builder .section > .bottom-actions {
374
- bottom: 0;
375
- }
376
-
377
- .medplum-questionnaire-builder .section > .top-actions,
378
- .medplum-questionnaire-builder .section > .bottom-actions {
379
- position: absolute;
380
- right: 4px;
381
- }
382
-
383
- .medplum-questionnaire-builder .section > .top-actions a,
384
- .medplum-questionnaire-builder .section > .bottom-actions a {
385
- font-size: 10px;
386
- color: var(--medplum-gray-500);
387
- margin: 0 6px 4px 0;
388
- }
389
-
390
- .medplum-questionnaire-builder .section.editing > .top-actions a,
391
- .medplum-questionnaire-builder .section.editing > .bottom-actions a {
392
- color: var(--medplum-blue-500);
393
- }
394
-
395
- .medplum-request-group {
396
- padding: 4px;
397
- }
398
-
399
- .medplum-request-group-task {
400
- display: flex;
401
- flex-direction: row;
402
- width: 100%;
403
- margin-bottom: 16px;
404
- }
405
-
406
- .medplum-request-group-task-checkmark {
407
- color: var(--medplum-gray-700);
408
- font-size: 24px;
409
- width: 40px;
410
- }
411
-
412
- .medplum-request-group-task-details {
413
- flex: 1;
414
- line-height: 1.75;
415
- }
416
-
417
- .medplum-request-group-task-title {
418
- font-size: 14px;
419
- font-weight: bold;
420
- }
421
-
422
- .medplum-request-grou-task-actions {
423
- width: 100px;
424
- }
425
-
426
- .medplum-blame-container {
427
- overflow-x: auto;
428
- }
429
-
430
- .medplum-blame {
431
- border: 0.1px solid var(--medplum-gray-100);
432
- border-collapse: collapse;
433
- border-radius: 4px;
434
- border-spacing: 0;
435
- width: 100%;
436
- }
437
-
438
- .medplum-blame .start-row {
439
- border-top: 0.1px solid var(--medplum-gray-100);
440
- }
441
-
442
- .medplum-blame .normal-row {
443
- border-top: 0;
444
- }
445
-
446
- .medplum-blame .details {
447
- border-right: 0.1px solid var(--medplum-gray-100);
448
- padding: 4px;
449
- font-size: 10px;
450
- line-height: 10px;
451
- vertical-align: top;
452
- }
453
-
454
- .medplum-blame .line-number {
455
- background-color: var(--medplum-gray-50);
456
- border: 0;
457
- color: var(--medplum-gray-500);
458
- font-family: monospace;
459
- padding: 4px 8px;
460
- text-align: right;
461
- }
462
-
463
- .medplum-blame .line {
464
- font-family: monospace;
465
- padding: 4px 8px;
466
- }
467
-
468
- .medplum-blame .line-pre {
469
- margin: 0;
470
- }
471
-
472
- .medplum-calendar-table {
473
- width: 350px;
474
- }
475
-
476
- .medplum-calendar-table th {
477
- font-weight: normal;
478
- font-size: 11px;
479
- padding: 8px;
480
- text-align: center;
481
- }
482
-
483
- .medplum-calendar-table td {
484
- padding: 2px 4px;
485
- }
486
-
487
- .medplum-calendar-table button {
488
- width: 44px;
489
- height: 44px;
490
- color: #0060e6;
491
- font-size: 16px;
492
- font-weight: bold;
493
- text-align: center;
494
- padding: 0;
495
- background-color: #eef5ff;
496
- border: 0;
497
- border-radius: 50%;
498
- cursor: pointer;
499
- }
500
-
501
- .medplum-calendar-table button:hover {
502
- background-color: #d9e9ff;
503
- }
504
-
505
- .medplum-calendar-table button:disabled {
506
- background-color: white;
507
- cursor: default;
508
- color: #666;
509
- font-weight: normal;
510
- }
511
-
512
- .medplum-calendar-container {
513
- display: flex;
514
- min-height: 400px;
515
- }
516
-
517
- .medplum-calendar-info-pane {
518
- min-width: 300px;
519
- padding: 20px;
520
- border-right: 1px solid #ddd;
521
- }
522
-
523
- .medplum-calendar-selection-pane {
524
- min-width: 300px;
525
- padding: 20px;
526
- }
527
-
528
- .grecaptcha-badge { visibility: hidden; }