@openmrs/esm-styleguide 10.0.1-pre.5685 → 10.0.1-pre.5702
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
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
[0] Successfully compiled: 115 files, copied 169 files with swc (
|
|
1
|
+
[0] Successfully compiled: 115 files, copied 169 files with swc (258.34ms)
|
|
2
2
|
[0] swc --strip-leading-paths --copy-files src -d dist && svgo -rf dist --quiet exited with code 0
|
|
3
3
|
[1] tsc --project tsconfig.build.json exited with code 0
|
|
@@ -78,7 +78,7 @@ const isPageHeaderWrapperProps = (props)=>{
|
|
|
78
78
|
config?.implementationName && /*#__PURE__*/ _jsx("p", {
|
|
79
79
|
children: getCoreTranslation(config.implementationName)
|
|
80
80
|
}),
|
|
81
|
-
/*#__PURE__*/ _jsx("
|
|
81
|
+
/*#__PURE__*/ _jsx("h1", {
|
|
82
82
|
className: styles.pageName,
|
|
83
83
|
children: title
|
|
84
84
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "10.0.1-pre.
|
|
3
|
+
"version": "10.0.1-pre.5702",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"module": "dist/internal.js",
|
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
"uuid": "^11.1.1"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@openmrs/esm-api": "^10.0.1-pre.
|
|
83
|
-
"@openmrs/esm-config": "^10.0.1-pre.
|
|
84
|
-
"@openmrs/esm-emr-api": "^10.0.1-pre.
|
|
85
|
-
"@openmrs/esm-error-handling": "^10.0.1-pre.
|
|
86
|
-
"@openmrs/esm-extensions": "^10.0.1-pre.
|
|
87
|
-
"@openmrs/esm-globals": "^10.0.1-pre.
|
|
88
|
-
"@openmrs/esm-navigation": "^10.0.1-pre.
|
|
89
|
-
"@openmrs/esm-react-utils": "^10.0.1-pre.
|
|
90
|
-
"@openmrs/esm-routes": "^10.0.1-pre.
|
|
91
|
-
"@openmrs/esm-state": "^10.0.1-pre.
|
|
92
|
-
"@openmrs/esm-translations": "^10.0.1-pre.
|
|
93
|
-
"@openmrs/esm-utils": "^10.0.1-pre.
|
|
82
|
+
"@openmrs/esm-api": "^10.0.1-pre.5702",
|
|
83
|
+
"@openmrs/esm-config": "^10.0.1-pre.5702",
|
|
84
|
+
"@openmrs/esm-emr-api": "^10.0.1-pre.5702",
|
|
85
|
+
"@openmrs/esm-error-handling": "^10.0.1-pre.5702",
|
|
86
|
+
"@openmrs/esm-extensions": "^10.0.1-pre.5702",
|
|
87
|
+
"@openmrs/esm-globals": "^10.0.1-pre.5702",
|
|
88
|
+
"@openmrs/esm-navigation": "^10.0.1-pre.5702",
|
|
89
|
+
"@openmrs/esm-react-utils": "^10.0.1-pre.5702",
|
|
90
|
+
"@openmrs/esm-routes": "^10.0.1-pre.5702",
|
|
91
|
+
"@openmrs/esm-state": "^10.0.1-pre.5702",
|
|
92
|
+
"@openmrs/esm-translations": "^10.0.1-pre.5702",
|
|
93
|
+
"@openmrs/esm-utils": "^10.0.1-pre.5702",
|
|
94
94
|
"dayjs": "1.x",
|
|
95
95
|
"i18next": "25.x",
|
|
96
96
|
"react": "18.x",
|
|
@@ -99,18 +99,18 @@
|
|
|
99
99
|
"swr": "2.x"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@openmrs/esm-api": "10.0.1-pre.
|
|
103
|
-
"@openmrs/esm-config": "10.0.1-pre.
|
|
104
|
-
"@openmrs/esm-emr-api": "10.0.1-pre.
|
|
105
|
-
"@openmrs/esm-error-handling": "10.0.1-pre.
|
|
106
|
-
"@openmrs/esm-extensions": "10.0.1-pre.
|
|
107
|
-
"@openmrs/esm-globals": "10.0.1-pre.
|
|
108
|
-
"@openmrs/esm-navigation": "10.0.1-pre.
|
|
109
|
-
"@openmrs/esm-react-utils": "10.0.1-pre.
|
|
110
|
-
"@openmrs/esm-routes": "10.0.1-pre.
|
|
111
|
-
"@openmrs/esm-state": "10.0.1-pre.
|
|
112
|
-
"@openmrs/esm-translations": "10.0.1-pre.
|
|
113
|
-
"@openmrs/esm-utils": "10.0.1-pre.
|
|
102
|
+
"@openmrs/esm-api": "10.0.1-pre.5702",
|
|
103
|
+
"@openmrs/esm-config": "10.0.1-pre.5702",
|
|
104
|
+
"@openmrs/esm-emr-api": "10.0.1-pre.5702",
|
|
105
|
+
"@openmrs/esm-error-handling": "10.0.1-pre.5702",
|
|
106
|
+
"@openmrs/esm-extensions": "10.0.1-pre.5702",
|
|
107
|
+
"@openmrs/esm-globals": "10.0.1-pre.5702",
|
|
108
|
+
"@openmrs/esm-navigation": "10.0.1-pre.5702",
|
|
109
|
+
"@openmrs/esm-react-utils": "10.0.1-pre.5702",
|
|
110
|
+
"@openmrs/esm-routes": "10.0.1-pre.5702",
|
|
111
|
+
"@openmrs/esm-state": "10.0.1-pre.5702",
|
|
112
|
+
"@openmrs/esm-translations": "10.0.1-pre.5702",
|
|
113
|
+
"@openmrs/esm-utils": "10.0.1-pre.5702",
|
|
114
114
|
"@swc/cli": "0.8.1",
|
|
115
115
|
"@swc/core": "1.15.21",
|
|
116
116
|
"@types/geopattern": "^1.2.9",
|
|
@@ -102,7 +102,7 @@ export const PageHeaderContent: React.FC<PageHeaderContentProps> = ({ title, ill
|
|
|
102
102
|
{illustration}
|
|
103
103
|
<div className={styles.pageLabels}>
|
|
104
104
|
{config?.implementationName && <p>{getCoreTranslation(config.implementationName as CoreTranslationKey)}</p>}
|
|
105
|
-
<
|
|
105
|
+
<h1 className={styles.pageName}>{title}</h1>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
108
|
);
|
|
@@ -15,12 +15,12 @@ vi.mock('@openmrs/esm-config', () => ({
|
|
|
15
15
|
describe('PageHeaderContent', () => {
|
|
16
16
|
const mockIllustration = <svg data-testid="mock-illustration" />;
|
|
17
17
|
|
|
18
|
-
it('renders title and illustration', async () => {
|
|
18
|
+
it('renders the title as a heading and the illustration', async () => {
|
|
19
19
|
mockGetConfig.mockResolvedValue({});
|
|
20
20
|
|
|
21
21
|
render(<PageHeaderContent title="Test Title" illustration={mockIllustration} />);
|
|
22
22
|
|
|
23
|
-
await screen.
|
|
23
|
+
await screen.findByRole('heading', { level: 1, name: /test title/i });
|
|
24
24
|
expect(screen.getByTestId('mock-illustration')).toBeInTheDocument();
|
|
25
25
|
});
|
|
26
26
|
|