@openmrs/esm-styleguide 5.8.2-pre.2486 → 5.8.2-pre.2495
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/.turbo/turbo-build.log
CHANGED
|
@@ -14,7 +14,7 @@ assets by status 1.44 MiB [big]
|
|
|
14
14
|
asset openmrs-esm-styleguide.css 816 KiB [emitted] [minimized] [big] (name: main) 1 related asset
|
|
15
15
|
asset openmrs-esm-styleguide.js 660 KiB [emitted] [minimized] [big] (name: main) 2 related assets
|
|
16
16
|
Entrypoint main [big] 1.44 MiB (4.98 MiB) = openmrs-esm-styleguide.css 816 KiB openmrs-esm-styleguide.js 660 KiB 182 auxiliary assets
|
|
17
|
-
orphan modules 12.7 MiB (javascript) 2.4 MiB (asset) 15.7 KiB (runtime) [orphan]
|
|
17
|
+
orphan modules 12.7 MiB (javascript) 2.4 MiB (asset) 15.7 KiB (runtime) [orphan] 3415 modules
|
|
18
18
|
runtime modules 1.13 KiB 5 modules
|
|
19
19
|
built modules 2.45 MiB (javascript) 950 KiB (css/mini-extract) [built]
|
|
20
20
|
cacheable modules 2.45 MiB (javascript) 950 KiB (css/mini-extract)
|
|
@@ -45,4 +45,4 @@ WARNING in webpack performance recommendations:
|
|
|
45
45
|
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
46
46
|
For more info visit https://webpack.js.org/guides/code-splitting/
|
|
47
47
|
|
|
48
|
-
webpack 5.88.0 compiled with 3 warnings in
|
|
48
|
+
webpack 5.88.0 compiled with 3 warnings in 29136 ms
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "5.8.2-pre.
|
|
3
|
+
"version": "5.8.2-pre.2495",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-styleguide.js",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"rxjs": "6.x"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@openmrs/esm-error-handling": "5.8.2-pre.
|
|
67
|
-
"@openmrs/esm-extensions": "5.8.2-pre.
|
|
68
|
-
"@openmrs/esm-navigation": "5.8.2-pre.
|
|
69
|
-
"@openmrs/esm-react-utils": "5.8.2-pre.
|
|
70
|
-
"@openmrs/esm-state": "5.8.2-pre.
|
|
71
|
-
"@openmrs/esm-translations": "5.8.2-pre.
|
|
66
|
+
"@openmrs/esm-error-handling": "5.8.2-pre.2495",
|
|
67
|
+
"@openmrs/esm-extensions": "5.8.2-pre.2495",
|
|
68
|
+
"@openmrs/esm-navigation": "5.8.2-pre.2495",
|
|
69
|
+
"@openmrs/esm-react-utils": "5.8.2-pre.2495",
|
|
70
|
+
"@openmrs/esm-state": "5.8.2-pre.2495",
|
|
71
|
+
"@openmrs/esm-translations": "5.8.2-pre.2495",
|
|
72
72
|
"@types/geopattern": "^1.2.9",
|
|
73
73
|
"autoprefixer": "^9.8.8",
|
|
74
74
|
"css-minimizer-webpack-plugin": "^1.2.0",
|
|
@@ -4,7 +4,7 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { ExtensionSlot } from '@openmrs/esm-react-utils';
|
|
5
5
|
import { getCoreTranslation } from '@openmrs/esm-translations';
|
|
6
6
|
import { age, formatDate, parseDate } from '@openmrs/esm-utils';
|
|
7
|
-
import {
|
|
7
|
+
import { GenderFemaleIcon, GenderMaleIcon, GenderOtherIcon, GenderUnknownIcon } from '../../icons';
|
|
8
8
|
import PatientBannerPatientIdentifier from './patient-banner-patient-identifiers.component';
|
|
9
9
|
import styles from './patient-banner-patient-info.module.scss';
|
|
10
10
|
|
|
@@ -19,10 +19,10 @@ interface GenderIconProps {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const GENDER_ICONS = {
|
|
22
|
-
Female:
|
|
23
|
-
Male:
|
|
24
|
-
Other:
|
|
25
|
-
Unknown:
|
|
22
|
+
Female: GenderFemaleIcon,
|
|
23
|
+
Male: GenderMaleIcon,
|
|
24
|
+
Other: GenderOtherIcon,
|
|
25
|
+
Unknown: GenderUnknownIcon,
|
|
26
26
|
} as const;
|
|
27
27
|
|
|
28
28
|
const GenderIcon = ({ gender }: GenderIconProps) => {
|
|
@@ -32,7 +32,7 @@ const GenderIcon = ({ gender }: GenderIconProps) => {
|
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
return <IconComponent />;
|
|
35
|
+
return <IconComponent fill="#525252" />;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
const getGender = (gender: string): string => {
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export const FemaleIcon: React.FC = () => (
|
|
4
|
-
<svg fill="currentColor" width="20" height="20" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M10.625 12.457a5 5 0 1 0-1.25 0v1.293H6.25V15h3.125v2.5h1.25V15h3.125v-1.25h-3.125v-1.293zM6.25 7.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0z" />
|
|
6
|
-
</svg>
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
export const MaleIcon: React.FC = () => (
|
|
10
|
-
<svg height="20" width="20" viewBox="0 0 20 20">
|
|
11
|
-
<circle cx="8" cy="12" r="5" stroke="#525252" strokeWidth="1" fill="none" />
|
|
12
|
-
<path d="M12 8L17 3M17 3H13M17 3V7" stroke="#525252" strokeWidth="1" strokeLinecap="round" />
|
|
13
|
-
</svg>
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export const UnknownIcon: React.FC = () => (
|
|
17
|
-
<svg fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
-
<circle cx="16" cy="22.5" r="1.5" />
|
|
19
|
-
<path d="M17 19h-2v-4h2c1.103 0 2-.897 2-2s-.897-2-2-2h-2c-1.103 0-2 .897-2 2v.5h-2V13c0-2.206 1.794-4 4-4h2c2.206 0 4 1.794 4 4s-1.794 4-4 4v2z" />
|
|
20
|
-
<path d="M29.391 14.527 17.473 2.609A2.078 2.078 0 0 0 16 2c-.533 0-1.067.203-1.473.609L2.609 14.527C2.203 14.933 2 15.466 2 16s.203 1.067.609 1.473L14.526 29.39c.407.407.941.61 1.474.61s1.067-.203 1.473-.609L29.39 17.474c.407-.407.61-.94.61-1.474s-.203-1.067-.609-1.473zM16 28.036 3.965 16 16 3.964 28.036 16 16 28.036z" />
|
|
21
|
-
<path d="M0 0h32v32H0z" />
|
|
22
|
-
</svg>
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
export const OtherIcon: React.FC = () => (
|
|
26
|
-
<svg fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg">
|
|
27
|
-
<path d="M22 2v2h4.586l-6.402 6.401a6.947 6.947 0 0 0-8.368 0L10.414 9 13 6.414 11.586 5 9 7.586 5.414 4H10V2H2v8h2V5.414L7.586 9 5 11.585 6.414 13 9 10.414l1.401 1.401A6.979 6.979 0 0 0 15 22.92V25h-4v2h4v3h2v-3h4v-2h-4v-2.08a6.979 6.979 0 0 0 4.598-11.104L28 5.414V10h2V2Zm-6 19a5 5 0 1 1 5-5 5.006 5.006 0 0 1-5 5Z" />
|
|
28
|
-
<path d="M0 0h32v32H0z" />
|
|
29
|
-
</svg>
|
|
30
|
-
);
|