@openmrs/esm-styleguide 5.3.3-pre.1286 → 5.3.3-pre.1296

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.
@@ -1,4 +1,4 @@
1
- @openmrs/esm-styleguide:build: cache hit, replaying output d055face0a00e4c7
1
+ @openmrs/esm-styleguide:build: cache hit, replaying output 27ca0b84a087e919
2
2
  @openmrs/esm-styleguide:build: Browserslist: caniuse-lite is outdated. Please run:
3
3
  @openmrs/esm-styleguide:build:  npx update-browserslist-db@latest
4
4
  @openmrs/esm-styleguide:build:  Why you should do it regularly: https://github.com/browserslist/update-db#readme
@@ -53,4 +53,4 @@
53
53
  @openmrs/esm-styleguide:build: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
54
54
  @openmrs/esm-styleguide:build: For more info visit https://webpack.js.org/guides/code-splitting/
55
55
  @openmrs/esm-styleguide:build: 
56
- @openmrs/esm-styleguide:build: webpack 5.88.0 compiled with 3 warnings in 16076 ms
56
+ @openmrs/esm-styleguide:build: webpack 5.88.0 compiled with 3 warnings in 15738 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-styleguide",
3
- "version": "5.3.3-pre.1286",
3
+ "version": "5.3.3-pre.1296",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-styleguide.js",
@@ -60,9 +60,9 @@
60
60
  "rxjs": "6.x"
61
61
  },
62
62
  "devDependencies": {
63
- "@openmrs/esm-extensions": "5.3.3-pre.1286",
64
- "@openmrs/esm-react-utils": "5.3.3-pre.1286",
65
- "@openmrs/esm-state": "5.3.3-pre.1286",
63
+ "@openmrs/esm-extensions": "5.3.3-pre.1296",
64
+ "@openmrs/esm-react-utils": "5.3.3-pre.1296",
65
+ "@openmrs/esm-state": "5.3.3-pre.1296",
66
66
  "autoprefixer": "^9.8.8",
67
67
  "css-minimizer-webpack-plugin": "^1.2.0",
68
68
  "i18next": "^21.10.0",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Tile } from '@carbon/react';
2
+ import { Layer, Tile } from '@carbon/react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useLayoutType } from '@openmrs/esm-react-utils';
5
5
  import styles from './error-state.module.scss';
@@ -14,20 +14,22 @@ export const ErrorState: React.FC<ErrorStateProps> = ({ error, headerTitle }) =>
14
14
  const isTablet = useLayoutType() === 'tablet';
15
15
 
16
16
  return (
17
- <Tile light className={styles.tile}>
18
- <div className={isTablet ? styles.tabletHeading : styles.desktopHeading}>
19
- <h4>{headerTitle}</h4>
20
- </div>
21
- <p className={styles.errorMessage}>
22
- {t('error', 'Error')} {`${error?.response?.status}: `}
23
- {error?.response?.statusText}
24
- </p>
25
- <p className={styles.errorCopy}>
26
- {t(
27
- 'errorCopy',
28
- 'Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.',
29
- )}
30
- </p>
31
- </Tile>
17
+ <Layer>
18
+ <Tile className={styles.tile}>
19
+ <div className={isTablet ? styles.tabletHeading : styles.desktopHeading}>
20
+ <h4>{headerTitle}</h4>
21
+ </div>
22
+ <p className={styles.errorMessage}>
23
+ {t('error', 'Error')} {`${error?.response?.status}: `}
24
+ {error?.response?.statusText}
25
+ </p>
26
+ <p className={styles.errorCopy}>
27
+ {t(
28
+ 'errorCopy',
29
+ 'Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.',
30
+ )}
31
+ </p>
32
+ </Tile>
33
+ </Layer>
32
34
  );
33
35
  };