@dhis2-ui/header-bar 10.0.0-alpha.7 → 10.0.0-alpha.8

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.
@@ -17,8 +17,9 @@
17
17
  "Account": "Conta",
18
18
  "Help": "Ajuda",
19
19
  "About DHIS2": "Sobre DHIS2",
20
- "Logout": "",
20
+ "Logout": " Terminar sessão",
21
21
  "New {{appName}} version available": "",
22
22
  "New app version available": "",
23
- "Click to reload": ""
23
+ "Click to reload": "",
24
+ "header bar profile": ""
24
25
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _reactHooks = require("@testing-library/react-hooks");
3
+ var _react = require("@testing-library/react");
4
4
  var _useOnDocClick = require("./use-on-doc-click.js");
5
5
  describe('useOnDocClick', () => {
6
6
  let eventListenerMap = {};
@@ -20,7 +20,7 @@ describe('useOnDocClick', () => {
20
20
  const containerRef = {
21
21
  current: el
22
22
  };
23
- (0, _reactHooks.renderHook)(() => (0, _useOnDocClick.useOnDocClick)(containerRef, hide));
23
+ (0, _react.renderHook)(() => (0, _useOnDocClick.useOnDocClick)(containerRef, hide));
24
24
  eventListenerMap.click({
25
25
  target: document.body
26
26
  });
@@ -31,7 +31,7 @@ describe('useOnDocClick', () => {
31
31
  const containerRef = {
32
32
  current: el
33
33
  };
34
- (0, _reactHooks.renderHook)(() => (0, _useOnDocClick.useOnDocClick)(containerRef, hide));
34
+ (0, _react.renderHook)(() => (0, _useOnDocClick.useOnDocClick)(containerRef, hide));
35
35
  eventListenerMap.click({
36
36
  target: el
37
37
  });
@@ -17,8 +17,9 @@
17
17
  "Account": "Conta",
18
18
  "Help": "Ajuda",
19
19
  "About DHIS2": "Sobre DHIS2",
20
- "Logout": "",
20
+ "Logout": " Terminar sessão",
21
21
  "New {{appName}} version available": "",
22
22
  "New app version available": "",
23
- "Click to reload": ""
23
+ "Click to reload": "",
24
+ "header bar profile": ""
24
25
  }
@@ -1,4 +1,4 @@
1
- import { renderHook } from '@testing-library/react-hooks';
1
+ import { renderHook } from '@testing-library/react';
2
2
  import { useOnDocClick } from './use-on-doc-click.js';
3
3
  describe('useOnDocClick', () => {
4
4
  let eventListenerMap = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/header-bar",
3
- "version": "10.0.0-alpha.7",
3
+ "version": "10.0.0-alpha.8",
4
4
  "description": "UI HeaderBar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,26 +29,26 @@
29
29
  "peerDependencies": {
30
30
  "@dhis2/app-runtime": "^3",
31
31
  "@dhis2/d2-i18n": "^1",
32
- "react": "^16.13",
33
- "react-dom": "^16.13",
32
+ "react": "^16.13 || ^18",
33
+ "react-dom": "^16.13 || ^18",
34
34
  "styled-jsx": "^4"
35
35
  },
36
36
  "dependencies": {
37
- "@dhis2-ui/box": "10.0.0-alpha.7",
38
- "@dhis2-ui/button": "10.0.0-alpha.7",
39
- "@dhis2-ui/card": "10.0.0-alpha.7",
40
- "@dhis2-ui/center": "10.0.0-alpha.7",
41
- "@dhis2-ui/divider": "10.0.0-alpha.7",
42
- "@dhis2-ui/input": "10.0.0-alpha.7",
43
- "@dhis2-ui/layer": "10.0.0-alpha.7",
44
- "@dhis2-ui/loader": "10.0.0-alpha.7",
45
- "@dhis2-ui/logo": "10.0.0-alpha.7",
46
- "@dhis2-ui/menu": "10.0.0-alpha.7",
47
- "@dhis2-ui/modal": "10.0.0-alpha.7",
48
- "@dhis2-ui/user-avatar": "10.0.0-alpha.7",
37
+ "@dhis2-ui/box": "10.0.0-alpha.8",
38
+ "@dhis2-ui/button": "10.0.0-alpha.8",
39
+ "@dhis2-ui/card": "10.0.0-alpha.8",
40
+ "@dhis2-ui/center": "10.0.0-alpha.8",
41
+ "@dhis2-ui/divider": "10.0.0-alpha.8",
42
+ "@dhis2-ui/input": "10.0.0-alpha.8",
43
+ "@dhis2-ui/layer": "10.0.0-alpha.8",
44
+ "@dhis2-ui/loader": "10.0.0-alpha.8",
45
+ "@dhis2-ui/logo": "10.0.0-alpha.8",
46
+ "@dhis2-ui/menu": "10.0.0-alpha.8",
47
+ "@dhis2-ui/modal": "10.0.0-alpha.8",
48
+ "@dhis2-ui/user-avatar": "10.0.0-alpha.8",
49
49
  "@dhis2/prop-types": "^3.1.2",
50
- "@dhis2/ui-constants": "10.0.0-alpha.7",
51
- "@dhis2/ui-icons": "10.0.0-alpha.7",
50
+ "@dhis2/ui-constants": "10.0.0-alpha.8",
51
+ "@dhis2/ui-icons": "10.0.0-alpha.8",
52
52
  "classnames": "^2.3.1",
53
53
  "moment": "^2.29.1",
54
54
  "prop-types": "^15.7.2"
@@ -60,8 +60,8 @@
60
60
  "devDependencies": {
61
61
  "@dhis2/app-runtime": "^3.9.0",
62
62
  "@dhis2/d2-i18n": "^1.1.0",
63
- "react": "16.13",
64
- "react-dom": "16.13",
63
+ "react": "^18.3.1",
64
+ "react-dom": "^18.3.1",
65
65
  "styled-jsx": "^4.0.1"
66
66
  },
67
67
  "types": "types"