@medplum/react 0.9.10 → 0.9.13
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/dist/cjs/defaulttheme.css +4 -8
- package/dist/cjs/index.js +22 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/cjs/styles.css +2 -2
- package/dist/esm/defaulttheme.css +4 -8
- package/dist/esm/index.js +20 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/styles.css +2 -2
- package/dist/types/CodeableConceptDisplay.d.ts +2 -2
- package/dist/types/Header.d.ts +6 -4
- package/dist/types/QuantityDisplay.d.ts +1 -1
- package/dist/types/RangeDisplay.d.ts +1 -0
- package/dist/types/ResourceBlame.d.ts +2 -2
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stories/Header.stories.d.ts +2 -0
- package/package.json +18 -18
package/dist/esm/styles.css
CHANGED
|
@@ -498,8 +498,8 @@ table.medplum-table {
|
|
|
498
498
|
width: 100%;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
table.medplum-table th,
|
|
502
|
-
table.medplum-table td {
|
|
501
|
+
table.medplum-table > thead > tr > th,
|
|
502
|
+
table.medplum-table > tbody > tr > td {
|
|
503
503
|
border: 0.1px solid var(--medplum-gray-400);
|
|
504
504
|
padding: 4px 6px;
|
|
505
505
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
3
|
-
export interface
|
|
3
|
+
export interface CodeableConceptDisplayProps {
|
|
4
4
|
value?: CodeableConcept;
|
|
5
5
|
}
|
|
6
|
-
export declare function CodeableConceptDisplay(props:
|
|
6
|
+
export declare function CodeableConceptDisplay(props: CodeableConceptDisplayProps): JSX.Element | null;
|
package/dist/types/Header.d.ts
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import { UserConfiguration } from '@medplum/fhirtypes';
|
|
3
3
|
import './Header.css';
|
|
4
4
|
export interface HeaderProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
readonly title?: string;
|
|
6
|
+
readonly bgColor?: string;
|
|
7
|
+
readonly onLogo?: () => void;
|
|
8
|
+
readonly onProfile?: () => void;
|
|
9
|
+
readonly onSignOut?: () => void;
|
|
10
|
+
readonly config?: UserConfiguration;
|
|
9
11
|
}
|
|
10
12
|
export declare function Header(props: HeaderProps): JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface QuantityDisplayProps {
|
|
|
4
4
|
value?: Quantity;
|
|
5
5
|
}
|
|
6
6
|
export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Element | null;
|
|
7
|
-
export declare function formatQuantityString(quantity: Quantity): string;
|
|
7
|
+
export declare function formatQuantityString(quantity: Quantity | undefined): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Bundle } from '@medplum/fhirtypes';
|
|
2
|
+
import { Bundle, ResourceType } from '@medplum/fhirtypes';
|
|
3
3
|
import './ResourceBlame.css';
|
|
4
4
|
export interface ResourceBlameProps {
|
|
5
5
|
history?: Bundle;
|
|
6
|
-
resourceType?:
|
|
6
|
+
resourceType?: ResourceType;
|
|
7
7
|
id?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function ResourceBlame(props: ResourceBlameProps): JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './Autocomplete';
|
|
|
7
7
|
export * from './Avatar';
|
|
8
8
|
export * from './BackboneElementInput';
|
|
9
9
|
export * from './Button';
|
|
10
|
+
export * from './CodeableConceptDisplay';
|
|
10
11
|
export * from './CodeableConceptInput';
|
|
11
12
|
export * from './CodeInput';
|
|
12
13
|
export * from './ContactPointDisplay';
|
|
@@ -37,6 +38,8 @@ export * from './Popup';
|
|
|
37
38
|
export * from './QuestionnaireBuilder';
|
|
38
39
|
export * from './QuestionnaireForm';
|
|
39
40
|
export * from './QuestionnaireUtils';
|
|
41
|
+
export * from './RangeDisplay';
|
|
42
|
+
export * from './RangeInput';
|
|
40
43
|
export * from './ReferenceInput';
|
|
41
44
|
export * from './ResourceArrayDisplay';
|
|
42
45
|
export * from './ResourceArrayInput';
|
|
@@ -4,3 +4,5 @@ import { HeaderProps } from '../Header';
|
|
|
4
4
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Basic: (args: HeaderProps) => JSX.Element;
|
|
7
|
+
export declare const CustomColor: (args: HeaderProps) => JSX.Element;
|
|
8
|
+
export declare const Search: (args: HeaderProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "Medplum React Component Library",
|
|
5
5
|
"author": "Medplum <hello@medplum.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,36 +19,36 @@
|
|
|
19
19
|
"storybook": "build-storybook"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@medplum/core": "0.9.
|
|
23
|
-
"@medplum/fhirtypes": "0.9.
|
|
24
|
-
"@medplum/mock": "0.9.
|
|
25
|
-
"@storybook/addon-actions": "6.5.
|
|
26
|
-
"@storybook/addon-essentials": "6.5.
|
|
27
|
-
"@storybook/addon-links": "6.5.
|
|
28
|
-
"@storybook/builder-webpack5": "6.5.
|
|
29
|
-
"@storybook/manager-webpack5": "6.5.
|
|
30
|
-
"@storybook/react": "6.5.
|
|
22
|
+
"@medplum/core": "0.9.13",
|
|
23
|
+
"@medplum/fhirtypes": "0.9.13",
|
|
24
|
+
"@medplum/mock": "0.9.13",
|
|
25
|
+
"@storybook/addon-actions": "6.5.8",
|
|
26
|
+
"@storybook/addon-essentials": "6.5.8",
|
|
27
|
+
"@storybook/addon-links": "6.5.8",
|
|
28
|
+
"@storybook/builder-webpack5": "6.5.8",
|
|
29
|
+
"@storybook/manager-webpack5": "6.5.8",
|
|
30
|
+
"@storybook/react": "6.5.8",
|
|
31
31
|
"@testing-library/dom": "8.13.0",
|
|
32
32
|
"@testing-library/jest-dom": "5.16.4",
|
|
33
|
-
"@testing-library/react": "13.
|
|
34
|
-
"@types/jest": "
|
|
35
|
-
"@types/node": "17.0.
|
|
36
|
-
"@types/react": "18.0.
|
|
33
|
+
"@testing-library/react": "13.3.0",
|
|
34
|
+
"@types/jest": "28.1.1",
|
|
35
|
+
"@types/node": "17.0.42",
|
|
36
|
+
"@types/react": "18.0.12",
|
|
37
37
|
"@types/react-dom": "18.0.5",
|
|
38
38
|
"@types/react-router-dom": "5.3.3",
|
|
39
39
|
"dotenv-webpack": "7.1.0",
|
|
40
40
|
"identity-obj-proxy": "3.0.0",
|
|
41
|
-
"jest": "28.1.
|
|
42
|
-
"jest-each": "28.1.
|
|
41
|
+
"jest": "28.1.1",
|
|
42
|
+
"jest-each": "28.1.1",
|
|
43
43
|
"html-webpack-plugin": "5.5.0",
|
|
44
44
|
"react": "18.1.0",
|
|
45
45
|
"react-dom": "18.1.0",
|
|
46
46
|
"react-router-dom": "6.3.0",
|
|
47
47
|
"rimraf": "3.0.2",
|
|
48
|
-
"typescript": "4.7.
|
|
48
|
+
"typescript": "4.7.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@medplum/core": "0.9.
|
|
51
|
+
"@medplum/core": "0.9.13",
|
|
52
52
|
"react": "^17.0.2 || ^18.0.0",
|
|
53
53
|
"react-dom": "^17.0.2 || ^18.0.0",
|
|
54
54
|
"react-router-dom": "^6.2.2"
|