@dhis2-ui/header-bar 8.13.2 → 8.13.4

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/build/cjs/apps.js CHANGED
@@ -149,7 +149,7 @@ const AppMenu = _ref6 => {
149
149
  } = _ref6;
150
150
  return /*#__PURE__*/_react.default.createElement("div", {
151
151
  "data-test": "headerbar-apps-menu",
152
- className: "jsx-3879001227"
152
+ className: "jsx-105953480"
153
153
  }, /*#__PURE__*/_react.default.createElement(_card.Card, null, /*#__PURE__*/_react.default.createElement(Search, {
154
154
  value: filter,
155
155
  onChange: onFilterChange
@@ -157,8 +157,8 @@ const AppMenu = _ref6 => {
157
157
  apps: apps,
158
158
  filter: filter
159
159
  })), /*#__PURE__*/_react.default.createElement(_style.default, {
160
- id: "3879001227"
161
- }, ["div.jsx-3879001227{z-index:10000;position:absolute;top:28px;right:-6px;border-top:4px solid transparent;}"]));
160
+ id: "105953480"
161
+ }, ["div.jsx-105953480{z-index:10000;position:absolute;right:-4px;}"]));
162
162
  };
163
163
 
164
164
  AppMenu.propTypes = {
@@ -193,11 +193,11 @@ const Apps = _ref7 => {
193
193
  return /*#__PURE__*/_react.default.createElement("div", {
194
194
  ref: containerEl,
195
195
  "data-test": "headerbar-apps",
196
- className: "jsx-515098251"
196
+ className: _style.default.dynamic([["2891838412", [_uiConstants.spacers.dp4, _uiConstants.spacers.dp12]]])
197
197
  }, /*#__PURE__*/_react.default.createElement("button", {
198
198
  onClick: handleVisibilityToggle,
199
199
  "data-test": "headerbar-apps-icon",
200
- className: "jsx-515098251"
200
+ className: _style.default.dynamic([["2891838412", [_uiConstants.spacers.dp4, _uiConstants.spacers.dp12]]])
201
201
  }, /*#__PURE__*/_react.default.createElement(_uiIcons.IconApps24, {
202
202
  color: _uiConstants.colors.white
203
203
  })), show ? /*#__PURE__*/_react.default.createElement(AppMenu, {
@@ -205,8 +205,9 @@ const Apps = _ref7 => {
205
205
  filter: filter,
206
206
  onFilterChange: handleFilterChange
207
207
  }) : null, /*#__PURE__*/_react.default.createElement(_style.default, {
208
- id: "515098251"
209
- }, ["button.jsx-515098251{display:block;background:transparent;padding:0;border:0;cursor:pointer;}", "button.jsx-515098251:focus{outline:1px dotted white;}", "div.jsx-515098251{position:relative;width:24px;height:30px;margin:8px 0 0 0;}"]));
208
+ id: "2891838412",
209
+ dynamic: [_uiConstants.spacers.dp4, _uiConstants.spacers.dp12]
210
+ }, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding:".concat(_uiConstants.spacers.dp4, " ").concat(_uiConstants.spacers.dp12, " 0;border:0;cursor:pointer;height:100%;}"), "button.__jsx-style-dynamic-selector:focus{outline:2px solid white;outline-offset:-2px;}", "button.__jsx-style-dynamic-selector:focus.__jsx-style-dynamic-selector:not(:focus-visible){outline:none;}", "button.__jsx-style-dynamic-selector:hover{background:#1a557f;}", "button.__jsx-style-dynamic-selector:active{background:#104067;}", "div.__jsx-style-dynamic-selector{position:relative;height:100%;}"]));
210
211
  };
211
212
 
212
213
  Apps.propTypes = {
@@ -102,14 +102,14 @@ const HeaderBar = _ref => {
102
102
  updateAvailable: updateAvailable,
103
103
  onApplyAvailableUpdate: onApplyAvailableUpdate
104
104
  }, /*#__PURE__*/_react.default.createElement("header", {
105
- className: _style.default.dynamic([["3860078320", [_uiConstants.colors.white]]]) + " " + (className || "")
105
+ className: _style.default.dynamic([["2211918310", [_uiConstants.colors.white]]]) + " " + (className || "")
106
106
  }, /*#__PURE__*/_react.default.createElement("div", {
107
- className: _style.default.dynamic([["3860078320", [_uiConstants.colors.white]]]) + " " + "main"
107
+ className: _style.default.dynamic([["2211918310", [_uiConstants.colors.white]]]) + " " + "main"
108
108
  }, !loading && !error && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_logo.Logo, null), /*#__PURE__*/_react.default.createElement(_title.Title, {
109
109
  app: appName || configAppName,
110
110
  instance: data.title.applicationTitle
111
111
  }), /*#__PURE__*/_react.default.createElement("div", {
112
- className: _style.default.dynamic([["3860078320", [_uiConstants.colors.white]]]) + " " + "right-control-spacer"
112
+ className: _style.default.dynamic([["2211918310", [_uiConstants.colors.white]]]) + " " + "right-control-spacer"
113
113
  }), pwaEnabled && /*#__PURE__*/_react.default.createElement(_onlineStatus.OnlineStatus, null), /*#__PURE__*/_react.default.createElement(_notifications.Notifications, {
114
114
  interpretations: data.notifications.unreadInterpretations,
115
115
  messages: data.notifications.unreadMessageConversations,
@@ -124,9 +124,9 @@ const HeaderBar = _ref => {
124
124
  }))), pwaEnabled && !loading && !error && /*#__PURE__*/_react.default.createElement(_onlineStatus.OnlineStatus, {
125
125
  dense: true
126
126
  }), /*#__PURE__*/_react.default.createElement(_style.default, {
127
- id: "3860078320",
127
+ id: "2211918310",
128
128
  dynamic: [_uiConstants.colors.white]
129
- }, [".main.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#2c6693;border-bottom:1px solid rgba(32,32,32,0.15);color:".concat(_uiConstants.colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-left:auto;}"])));
129
+ }, [".main.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#2c6693;color:".concat(_uiConstants.colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-left:auto;}"])));
130
130
  };
131
131
 
132
132
  exports.HeaderBar = HeaderBar;
@@ -53,25 +53,27 @@ var _translations22 = _interopRequireDefault(require("./ro/translations.json"));
53
53
 
54
54
  var _translations23 = _interopRequireDefault(require("./ru/translations.json"));
55
55
 
56
- var _translations24 = _interopRequireDefault(require("./sv/translations.json"));
56
+ var _translations24 = _interopRequireDefault(require("./si/translations.json"));
57
57
 
58
- var _translations25 = _interopRequireDefault(require("./tet/translations.json"));
58
+ var _translations25 = _interopRequireDefault(require("./sv/translations.json"));
59
59
 
60
- var _translations26 = _interopRequireDefault(require("./tg/translations.json"));
60
+ var _translations26 = _interopRequireDefault(require("./tet/translations.json"));
61
61
 
62
- var _translations27 = _interopRequireDefault(require("./uk/translations.json"));
62
+ var _translations27 = _interopRequireDefault(require("./tg/translations.json"));
63
63
 
64
- var _translations28 = _interopRequireDefault(require("./ur/translations.json"));
64
+ var _translations28 = _interopRequireDefault(require("./uk/translations.json"));
65
65
 
66
- var _translations29 = _interopRequireDefault(require("./uz/translations.json"));
66
+ var _translations29 = _interopRequireDefault(require("./ur/translations.json"));
67
67
 
68
- var _translations30 = _interopRequireDefault(require("./uz_Latn/translations.json"));
68
+ var _translations30 = _interopRequireDefault(require("./uz/translations.json"));
69
69
 
70
- var _translations31 = _interopRequireDefault(require("./vi/translations.json"));
70
+ var _translations31 = _interopRequireDefault(require("./uz_Latn/translations.json"));
71
71
 
72
- var _translations32 = _interopRequireDefault(require("./zh/translations.json"));
72
+ var _translations32 = _interopRequireDefault(require("./vi/translations.json"));
73
73
 
74
- var _translations33 = _interopRequireDefault(require("./zh_CN/translations.json"));
74
+ var _translations33 = _interopRequireDefault(require("./zh/translations.json"));
75
+
76
+ var _translations34 = _interopRequireDefault(require("./zh_CN/translations.json"));
75
77
 
76
78
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
77
79
 
@@ -131,25 +133,27 @@ _d2I18n.default.addResources('ro', namespace, _translations22.default);
131
133
 
132
134
  _d2I18n.default.addResources('ru', namespace, _translations23.default);
133
135
 
134
- _d2I18n.default.addResources('sv', namespace, _translations24.default);
136
+ _d2I18n.default.addResources('si', namespace, _translations24.default);
137
+
138
+ _d2I18n.default.addResources('sv', namespace, _translations25.default);
135
139
 
136
- _d2I18n.default.addResources('tet', namespace, _translations25.default);
140
+ _d2I18n.default.addResources('tet', namespace, _translations26.default);
137
141
 
138
- _d2I18n.default.addResources('tg', namespace, _translations26.default);
142
+ _d2I18n.default.addResources('tg', namespace, _translations27.default);
139
143
 
140
- _d2I18n.default.addResources('uk', namespace, _translations27.default);
144
+ _d2I18n.default.addResources('uk', namespace, _translations28.default);
141
145
 
142
- _d2I18n.default.addResources('ur', namespace, _translations28.default);
146
+ _d2I18n.default.addResources('ur', namespace, _translations29.default);
143
147
 
144
- _d2I18n.default.addResources('uz', namespace, _translations29.default);
148
+ _d2I18n.default.addResources('uz', namespace, _translations30.default);
145
149
 
146
- _d2I18n.default.addResources('uz_Latn', namespace, _translations30.default);
150
+ _d2I18n.default.addResources('uz_Latn', namespace, _translations31.default);
147
151
 
148
- _d2I18n.default.addResources('vi', namespace, _translations31.default);
152
+ _d2I18n.default.addResources('vi', namespace, _translations32.default);
149
153
 
150
- _d2I18n.default.addResources('zh', namespace, _translations32.default);
154
+ _d2I18n.default.addResources('zh', namespace, _translations33.default);
151
155
 
152
- _d2I18n.default.addResources('zh_CN', namespace, _translations33.default);
156
+ _d2I18n.default.addResources('zh_CN', namespace, _translations34.default);
153
157
 
154
158
  var _default = _d2I18n.default;
155
159
  exports.default = _default;
@@ -0,0 +1,22 @@
1
+ {
2
+ "Search apps": "",
3
+ "DHIS2 {{dhis2Version}}": "",
4
+ "DHIS2 version unknown": "",
5
+ "{{appName}} version unknown": "",
6
+ "App {{appVersion}}": "",
7
+ "App version unknown": "",
8
+ "Debug info": "",
9
+ "Close": "වසන්න",
10
+ "Copy debug info": "",
11
+ "Online": "",
12
+ "Offline": "",
13
+ "Edit profile": "",
14
+ "Settings": "",
15
+ "Account": "",
16
+ "Help": "",
17
+ "About DHIS2": "",
18
+ "Logout": "",
19
+ "New {{appName}} version available": "",
20
+ "New app version available": "",
21
+ "Click to reload": ""
22
+ }
package/build/cjs/logo.js CHANGED
@@ -21,13 +21,13 @@ const Logo = () => {
21
21
  } = (0, _appRuntime.useConfig)();
22
22
  return /*#__PURE__*/_react.default.createElement("div", {
23
23
  "data-test": "headerbar-logo",
24
- className: "jsx-3962152106"
24
+ className: "jsx-2077637423"
25
25
  }, /*#__PURE__*/_react.default.createElement("a", {
26
26
  href: baseUrl,
27
- className: "jsx-3962152106"
27
+ className: "jsx-2077637423"
28
28
  }, /*#__PURE__*/_react.default.createElement(_logoImage.LogoImage, null)), /*#__PURE__*/_react.default.createElement(_style.default, {
29
- id: "3962152106"
30
- }, ["div.jsx-3962152106{box-sizing:border-box;min-width:49px;max-height:48px;margin:0 12px 0 0;border-right:1px solid rgba(32,32,32,0.15);}", "a.jsx-3962152106,a.jsx-3962152106:hover,a.jsx-3962152106:focus,a.jsx-3962152106:active,a.jsx-3962152106:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"]));
29
+ id: "2077637423"
30
+ }, ["div.jsx-2077637423{box-sizing:border-box;min-width:49px;max-height:48px;margin:0 12px 0 0;border-right:1px solid rgba(32,32,32,0.15);}", "div.jsx-2077637423:hover{background-color:#1a557f;}", "a.jsx-2077637423,a.jsx-2077637423:hover,a.jsx-2077637423:focus,a.jsx-2077637423:active,a.jsx-2077637423:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", "a.jsx-2077637423:focus{outline:2px solid white;outline-offset:-2px;}", "a.jsx-2077637423:focus.jsx-2077637423:not(:focus-visible){outline:none;}"]));
31
31
  };
32
32
 
33
33
  exports.Logo = Logo;
@@ -39,14 +39,14 @@ const NotificationIcon = _ref => {
39
39
  return /*#__PURE__*/_react.default.createElement("a", {
40
40
  href: href,
41
41
  "data-test": dataTestId,
42
- className: _style.default.dynamic([["2450998793", [_uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]]) + " " + (kind || "")
42
+ className: _style.default.dynamic([["2752984221", [_uiConstants.spacers.dp12, _uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]]) + " " + (kind || "")
43
43
  }, icon(kind), count > 0 && /*#__PURE__*/_react.default.createElement("span", {
44
44
  "data-test": "".concat(dataTestId, "-count"),
45
- className: _style.default.dynamic([["2450998793", [_uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]])
45
+ className: _style.default.dynamic([["2752984221", [_uiConstants.spacers.dp12, _uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]])
46
46
  }, count), /*#__PURE__*/_react.default.createElement(_style.default, {
47
- id: "2450998793",
48
- dynamic: [_uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]
49
- }, ["a.__jsx-style-dynamic-selector{position:relative;margin:4px 24px 0 0;cursor:pointer;}", "a.__jsx-style-dynamic-selector:focus{outline:1px dotted white;}", "span.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1;position:absolute;top:-9px;right:-6px;min-width:18px;min-height:18px;border-radius:".concat(_uiConstants.spacers.dp12, ";box-shadow:0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);background-color:").concat(_uiConstants.theme.secondary500, ";color:").concat(_uiConstants.colors.white, ";font-size:13px;font-weight:600;line-height:15px;text-align:center;cursor:inherit;padding:0 ").concat(_uiConstants.spacers.dp4, ";}")]));
47
+ id: "2752984221",
48
+ dynamic: [_uiConstants.spacers.dp12, _uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]
49
+ }, ["a.__jsx-style-dynamic-selector{position:relative;margin:0;cursor:pointer;padding:0 ".concat(_uiConstants.spacers.dp12, ";height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"), "a.__jsx-style-dynamic-selector:focus{outline:2px solid white;outline-offset:-2px;}", "a.__jsx-style-dynamic-selector:focus.__jsx-style-dynamic-selector:not(:focus-visible){outline:none;}", "a.__jsx-style-dynamic-selector:hover{background:#1a557f;}", "a.__jsx-style-dynamic-selector:active{background:#104067;}", "span.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1;position:absolute;top:3px;right:2px;min-width:18px;min-height:18px;border-radius:".concat(_uiConstants.spacers.dp12, ";box-shadow:0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);background-color:").concat(_uiConstants.theme.secondary500, ";color:").concat(_uiConstants.colors.white, ";font-size:13px;font-weight:600;line-height:15px;text-align:center;cursor:inherit;padding:0 ").concat(_uiConstants.spacers.dp4, ";}")]));
50
50
  };
51
51
 
52
52
  exports.NotificationIcon = NotificationIcon;
@@ -38,7 +38,7 @@ const Notifications = _ref => {
38
38
  } = (0, _appRuntime.useConfig)();
39
39
  return /*#__PURE__*/_react.default.createElement("div", {
40
40
  "data-test": "headerbar-notifications",
41
- className: "jsx-1500177125"
41
+ className: "jsx-55705730"
42
42
  }, hasAuthority(userAuthorities, 'M_dhis-web-interpretation') && /*#__PURE__*/_react.default.createElement(_notificationIcon.NotificationIcon, {
43
43
  count: interpretations,
44
44
  href: (0, _joinPath.joinPath)(baseUrl, 'dhis-web-interpretation'),
@@ -51,8 +51,8 @@ const Notifications = _ref => {
51
51
  kind: "interpretation",
52
52
  dataTestId: "headerbar-messages"
53
53
  }), /*#__PURE__*/_react.default.createElement(_style.default, {
54
- id: "1500177125"
55
- }, ["div.jsx-1500177125{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"]));
54
+ id: "55705730"
55
+ }, ["div.jsx-55705730{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}"]));
56
56
  };
57
57
 
58
58
  exports.Notifications = Notifications;
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _uiConstants = require("@dhis2/ui-constants");
9
9
 
10
- const _defaultExport = [".container.jsx-2116755021{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:#104167;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:".concat(_uiConstants.colors.grey100, ";}"), ".container.badge.jsx-2116755021{margin-right:".concat(_uiConstants.spacers.dp24, ";padding:").concat(_uiConstants.spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-2116755021{display:none;padding:0px ".concat(_uiConstants.spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-2116755021{display:none;}.container.bar.jsx-2116755021{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-2116755021{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-2116755021{margin-right:".concat(_uiConstants.spacers.dp16, ";}"), ".info-dense.jsx-2116755021{margin-left:".concat(_uiConstants.spacers.dp12, ";font-size:12px;}"), ".icon.jsx-2116755021{width:8px;min-width:8px;height:8px;border-radius:8px;margin-right:".concat(_uiConstants.spacers.dp4, ";}"), ".icon.online.jsx-2116755021{background-color:".concat(_uiConstants.colors.teal400, ";}"), ".icon.offline.jsx-2116755021{background-color:transparent;border:1px solid ".concat(_uiConstants.colors.yellow300, ";}"), ".icon.reconnecting.jsx-2116755021{background:".concat(_uiConstants.colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-2116755021 2s linear infinite;animation:fadeinout-jsx-2116755021 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-2116755021{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-2116755021{50%{opacity:1;}}", "@keyframes fadeinout-jsx-2116755021{50%{opacity:1;}}", ".label.jsx-2116755021{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
11
- _defaultExport.__hash = "2116755021";
10
+ const _defaultExport = [".container.jsx-3029616205{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:#104167;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:".concat(_uiConstants.colors.grey100, ";}"), ".container.badge.jsx-3029616205{margin-right:".concat(_uiConstants.spacers.dp8, ";padding:").concat(_uiConstants.spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-3029616205{display:none;padding:0px ".concat(_uiConstants.spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-3029616205{display:none;}.container.bar.jsx-3029616205{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-3029616205{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-3029616205{margin-right:".concat(_uiConstants.spacers.dp16, ";}"), ".info-dense.jsx-3029616205{margin-left:".concat(_uiConstants.spacers.dp12, ";font-size:12px;}"), ".icon.jsx-3029616205{width:8px;min-width:8px;height:8px;border-radius:8px;margin-right:".concat(_uiConstants.spacers.dp4, ";}"), ".icon.online.jsx-3029616205{background-color:".concat(_uiConstants.colors.teal400, ";}"), ".icon.offline.jsx-3029616205{background-color:transparent;border:1px solid ".concat(_uiConstants.colors.yellow300, ";}"), ".icon.reconnecting.jsx-3029616205{background:".concat(_uiConstants.colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-3029616205 2s linear infinite;animation:fadeinout-jsx-3029616205 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-3029616205{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-3029616205{50%{opacity:1;}}", "@keyframes fadeinout-jsx-3029616205{50%{opacity:1;}}", ".label.jsx-3029616205{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
11
+ _defaultExport.__hash = "3029616205";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -145,10 +145,10 @@ const ProfileMenu = _ref2 => {
145
145
  } = _ref2;
146
146
  return /*#__PURE__*/_react.default.createElement("div", {
147
147
  "data-test": "headerbar-profile-menu",
148
- className: "jsx-1689179824"
148
+ className: "jsx-2907613216"
149
149
  }, /*#__PURE__*/_react.default.createElement(ProfileContents, props), /*#__PURE__*/_react.default.createElement(_style.default, {
150
- id: "1689179824"
151
- }, ["div.jsx-1689179824{z-index:10000;position:absolute;top:34px;right:-6px;width:320px;border-top:4px solid transparent;}"]));
150
+ id: "2907613216"
151
+ }, ["div.jsx-2907613216{z-index:10000;position:absolute;right:4px;width:320px;}"]));
152
152
  };
153
153
 
154
154
  exports.ProfileMenu = ProfileMenu;
@@ -41,10 +41,10 @@ const Profile = _ref => {
41
41
  return /*#__PURE__*/_react.default.createElement("div", {
42
42
  ref: containerRef,
43
43
  "data-test": "headerbar-profile",
44
- className: "jsx-2213392235" + " " + "headerbar-profile"
44
+ className: "jsx-3442481507" + " " + "headerbar-profile"
45
45
  }, /*#__PURE__*/_react.default.createElement("button", {
46
46
  onClick: toggleProfileMenu,
47
- className: "jsx-2213392235" + " " + "headerbar-profile-btn"
47
+ className: "jsx-3442481507" + " " + "headerbar-profile-btn"
48
48
  }, /*#__PURE__*/_react.default.createElement(_userAvatar.UserAvatar, {
49
49
  avatarId: avatarId,
50
50
  name: name,
@@ -64,8 +64,8 @@ const Profile = _ref => {
64
64
  setShowDebugInfoModal(false);
65
65
  }
66
66
  }), /*#__PURE__*/_react.default.createElement(_style.default, {
67
- id: "2213392235"
68
- }, [".headerbar-profile.jsx-2213392235{position:relative;width:36px;height:36px;min-width:36px;min-height:36px;margin:2px 12px 0 24px;}", ".headerbar-profile-btn.jsx-2213392235{background:transparent;padding:0;border:0;cursor:pointer;width:100%;height:100%;}", ".headerbar-profile-btn.jsx-2213392235:focus{outline:1px dotted white;}"]));
67
+ id: "3442481507"
68
+ }, [".headerbar-profile.jsx-3442481507{position:relative;height:100%;}", ".headerbar-profile-btn.jsx-3442481507{background:transparent;padding:6px;border:0;cursor:pointer;}", ".headerbar-profile-btn.jsx-3442481507:focus{outline:2px solid white;outline-offset:-2px;}", ".headerbar-profile-btn.jsx-3442481507:focus.jsx-3442481507:not(:focus-visible){outline:none;}", ".headerbar-profile-btn.jsx-3442481507:hover{background:#1a557f;}", ".headerbar-profile-btn.jsx-3442481507:active{background:#104067;}"]));
69
69
  };
70
70
 
71
71
  Profile.propTypes = {
package/build/es/apps.js CHANGED
@@ -2,7 +2,7 @@ import _JSXStyle from "styled-jsx/style";
2
2
  import { Card } from '@dhis2-ui/card';
3
3
  import { InputField } from '@dhis2-ui/input';
4
4
  import { useConfig } from '@dhis2/app-runtime';
5
- import { colors, theme } from '@dhis2/ui-constants';
5
+ import { colors, spacers, theme } from '@dhis2/ui-constants';
6
6
  import { IconApps24, IconSettings24 } from '@dhis2/ui-icons';
7
7
  import PropTypes from 'prop-types';
8
8
  import React, { useState, useEffect, useCallback, useRef } from 'react';
@@ -127,7 +127,7 @@ const AppMenu = _ref6 => {
127
127
  } = _ref6;
128
128
  return /*#__PURE__*/React.createElement("div", {
129
129
  "data-test": "headerbar-apps-menu",
130
- className: "jsx-3879001227"
130
+ className: "jsx-105953480"
131
131
  }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Search, {
132
132
  value: filter,
133
133
  onChange: onFilterChange
@@ -135,8 +135,8 @@ const AppMenu = _ref6 => {
135
135
  apps: apps,
136
136
  filter: filter
137
137
  })), /*#__PURE__*/React.createElement(_JSXStyle, {
138
- id: "3879001227"
139
- }, ["div.jsx-3879001227{z-index:10000;position:absolute;top:28px;right:-6px;border-top:4px solid transparent;}"]));
138
+ id: "105953480"
139
+ }, ["div.jsx-105953480{z-index:10000;position:absolute;right:-4px;}"]));
140
140
  };
141
141
 
142
142
  AppMenu.propTypes = {
@@ -171,11 +171,11 @@ const Apps = _ref7 => {
171
171
  return /*#__PURE__*/React.createElement("div", {
172
172
  ref: containerEl,
173
173
  "data-test": "headerbar-apps",
174
- className: "jsx-515098251"
174
+ className: _JSXStyle.dynamic([["2891838412", [spacers.dp4, spacers.dp12]]])
175
175
  }, /*#__PURE__*/React.createElement("button", {
176
176
  onClick: handleVisibilityToggle,
177
177
  "data-test": "headerbar-apps-icon",
178
- className: "jsx-515098251"
178
+ className: _JSXStyle.dynamic([["2891838412", [spacers.dp4, spacers.dp12]]])
179
179
  }, /*#__PURE__*/React.createElement(IconApps24, {
180
180
  color: colors.white
181
181
  })), show ? /*#__PURE__*/React.createElement(AppMenu, {
@@ -183,8 +183,9 @@ const Apps = _ref7 => {
183
183
  filter: filter,
184
184
  onFilterChange: handleFilterChange
185
185
  }) : null, /*#__PURE__*/React.createElement(_JSXStyle, {
186
- id: "515098251"
187
- }, ["button.jsx-515098251{display:block;background:transparent;padding:0;border:0;cursor:pointer;}", "button.jsx-515098251:focus{outline:1px dotted white;}", "div.jsx-515098251{position:relative;width:24px;height:30px;margin:8px 0 0 0;}"]));
186
+ id: "2891838412",
187
+ dynamic: [spacers.dp4, spacers.dp12]
188
+ }, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding:".concat(spacers.dp4, " ").concat(spacers.dp12, " 0;border:0;cursor:pointer;height:100%;}"), "button.__jsx-style-dynamic-selector:focus{outline:2px solid white;outline-offset:-2px;}", "button.__jsx-style-dynamic-selector:focus.__jsx-style-dynamic-selector:not(:focus-visible){outline:none;}", "button.__jsx-style-dynamic-selector:hover{background:#1a557f;}", "button.__jsx-style-dynamic-selector:active{background:#104067;}", "div.__jsx-style-dynamic-selector{position:relative;height:100%;}"]));
188
189
  };
189
190
 
190
191
  Apps.propTypes = {
@@ -72,14 +72,14 @@ export const HeaderBar = _ref => {
72
72
  updateAvailable: updateAvailable,
73
73
  onApplyAvailableUpdate: onApplyAvailableUpdate
74
74
  }, /*#__PURE__*/React.createElement("header", {
75
- className: _JSXStyle.dynamic([["3860078320", [colors.white]]]) + " " + (className || "")
75
+ className: _JSXStyle.dynamic([["2211918310", [colors.white]]]) + " " + (className || "")
76
76
  }, /*#__PURE__*/React.createElement("div", {
77
- className: _JSXStyle.dynamic([["3860078320", [colors.white]]]) + " " + "main"
77
+ className: _JSXStyle.dynamic([["2211918310", [colors.white]]]) + " " + "main"
78
78
  }, !loading && !error && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Logo, null), /*#__PURE__*/React.createElement(Title, {
79
79
  app: appName || configAppName,
80
80
  instance: data.title.applicationTitle
81
81
  }), /*#__PURE__*/React.createElement("div", {
82
- className: _JSXStyle.dynamic([["3860078320", [colors.white]]]) + " " + "right-control-spacer"
82
+ className: _JSXStyle.dynamic([["2211918310", [colors.white]]]) + " " + "right-control-spacer"
83
83
  }), pwaEnabled && /*#__PURE__*/React.createElement(OnlineStatus, null), /*#__PURE__*/React.createElement(Notifications, {
84
84
  interpretations: data.notifications.unreadInterpretations,
85
85
  messages: data.notifications.unreadMessageConversations,
@@ -94,9 +94,9 @@ export const HeaderBar = _ref => {
94
94
  }))), pwaEnabled && !loading && !error && /*#__PURE__*/React.createElement(OnlineStatus, {
95
95
  dense: true
96
96
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
97
- id: "3860078320",
97
+ id: "2211918310",
98
98
  dynamic: [colors.white]
99
- }, [".main.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#2c6693;border-bottom:1px solid rgba(32,32,32,0.15);color:".concat(colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-left:auto;}"])));
99
+ }, [".main.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#2c6693;color:".concat(colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-left:auto;}"])));
100
100
  };
101
101
  HeaderBar.propTypes = {
102
102
  appName: PropTypes.string,
@@ -30,6 +30,7 @@ import ptTranslations from './pt/translations.json';
30
30
  import pt_BRTranslations from './pt_BR/translations.json';
31
31
  import roTranslations from './ro/translations.json';
32
32
  import ruTranslations from './ru/translations.json';
33
+ import siTranslations from './si/translations.json';
33
34
  import svTranslations from './sv/translations.json';
34
35
  import tetTranslations from './tet/translations.json';
35
36
  import tgTranslations from './tg/translations.json';
@@ -64,6 +65,7 @@ i18n.addResources('pt', namespace, ptTranslations);
64
65
  i18n.addResources('pt_BR', namespace, pt_BRTranslations);
65
66
  i18n.addResources('ro', namespace, roTranslations);
66
67
  i18n.addResources('ru', namespace, ruTranslations);
68
+ i18n.addResources('si', namespace, siTranslations);
67
69
  i18n.addResources('sv', namespace, svTranslations);
68
70
  i18n.addResources('tet', namespace, tetTranslations);
69
71
  i18n.addResources('tg', namespace, tgTranslations);
@@ -0,0 +1,22 @@
1
+ {
2
+ "Search apps": "",
3
+ "DHIS2 {{dhis2Version}}": "",
4
+ "DHIS2 version unknown": "",
5
+ "{{appName}} version unknown": "",
6
+ "App {{appVersion}}": "",
7
+ "App version unknown": "",
8
+ "Debug info": "",
9
+ "Close": "වසන්න",
10
+ "Copy debug info": "",
11
+ "Online": "",
12
+ "Offline": "",
13
+ "Edit profile": "",
14
+ "Settings": "",
15
+ "Account": "",
16
+ "Help": "",
17
+ "About DHIS2": "",
18
+ "Logout": "",
19
+ "New {{appName}} version available": "",
20
+ "New app version available": "",
21
+ "Click to reload": ""
22
+ }
package/build/es/logo.js CHANGED
@@ -8,11 +8,11 @@ export const Logo = () => {
8
8
  } = useConfig();
9
9
  return /*#__PURE__*/React.createElement("div", {
10
10
  "data-test": "headerbar-logo",
11
- className: "jsx-3962152106"
11
+ className: "jsx-2077637423"
12
12
  }, /*#__PURE__*/React.createElement("a", {
13
13
  href: baseUrl,
14
- className: "jsx-3962152106"
14
+ className: "jsx-2077637423"
15
15
  }, /*#__PURE__*/React.createElement(LogoImage, null)), /*#__PURE__*/React.createElement(_JSXStyle, {
16
- id: "3962152106"
17
- }, ["div.jsx-3962152106{box-sizing:border-box;min-width:49px;max-height:48px;margin:0 12px 0 0;border-right:1px solid rgba(32,32,32,0.15);}", "a.jsx-3962152106,a.jsx-3962152106:hover,a.jsx-3962152106:focus,a.jsx-3962152106:active,a.jsx-3962152106:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"]));
16
+ id: "2077637423"
17
+ }, ["div.jsx-2077637423{box-sizing:border-box;min-width:49px;max-height:48px;margin:0 12px 0 0;border-right:1px solid rgba(32,32,32,0.15);}", "div.jsx-2077637423:hover{background-color:#1a557f;}", "a.jsx-2077637423,a.jsx-2077637423:hover,a.jsx-2077637423:focus,a.jsx-2077637423:active,a.jsx-2077637423:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", "a.jsx-2077637423:focus{outline:2px solid white;outline-offset:-2px;}", "a.jsx-2077637423:focus.jsx-2077637423:not(:focus-visible){outline:none;}"]));
18
18
  };
@@ -26,14 +26,14 @@ export const NotificationIcon = _ref => {
26
26
  return /*#__PURE__*/React.createElement("a", {
27
27
  href: href,
28
28
  "data-test": dataTestId,
29
- className: _JSXStyle.dynamic([["2450998793", [spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]]) + " " + (kind || "")
29
+ className: _JSXStyle.dynamic([["2752984221", [spacers.dp12, spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]]) + " " + (kind || "")
30
30
  }, icon(kind), count > 0 && /*#__PURE__*/React.createElement("span", {
31
31
  "data-test": "".concat(dataTestId, "-count"),
32
- className: _JSXStyle.dynamic([["2450998793", [spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]])
32
+ className: _JSXStyle.dynamic([["2752984221", [spacers.dp12, spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]])
33
33
  }, count), /*#__PURE__*/React.createElement(_JSXStyle, {
34
- id: "2450998793",
35
- dynamic: [spacers.dp12, theme.secondary500, colors.white, spacers.dp4]
36
- }, ["a.__jsx-style-dynamic-selector{position:relative;margin:4px 24px 0 0;cursor:pointer;}", "a.__jsx-style-dynamic-selector:focus{outline:1px dotted white;}", "span.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1;position:absolute;top:-9px;right:-6px;min-width:18px;min-height:18px;border-radius:".concat(spacers.dp12, ";box-shadow:0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);background-color:").concat(theme.secondary500, ";color:").concat(colors.white, ";font-size:13px;font-weight:600;line-height:15px;text-align:center;cursor:inherit;padding:0 ").concat(spacers.dp4, ";}")]));
34
+ id: "2752984221",
35
+ dynamic: [spacers.dp12, spacers.dp12, theme.secondary500, colors.white, spacers.dp4]
36
+ }, ["a.__jsx-style-dynamic-selector{position:relative;margin:0;cursor:pointer;padding:0 ".concat(spacers.dp12, ";height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"), "a.__jsx-style-dynamic-selector:focus{outline:2px solid white;outline-offset:-2px;}", "a.__jsx-style-dynamic-selector:focus.__jsx-style-dynamic-selector:not(:focus-visible){outline:none;}", "a.__jsx-style-dynamic-selector:hover{background:#1a557f;}", "a.__jsx-style-dynamic-selector:active{background:#104067;}", "span.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1;position:absolute;top:3px;right:2px;min-width:18px;min-height:18px;border-radius:".concat(spacers.dp12, ";box-shadow:0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);background-color:").concat(theme.secondary500, ";color:").concat(colors.white, ";font-size:13px;font-weight:600;line-height:15px;text-align:center;cursor:inherit;padding:0 ").concat(spacers.dp4, ";}")]));
37
37
  };
38
38
  NotificationIcon.defaultProps = {
39
39
  count: 0
@@ -24,7 +24,7 @@ export const Notifications = _ref => {
24
24
  } = useConfig();
25
25
  return /*#__PURE__*/React.createElement("div", {
26
26
  "data-test": "headerbar-notifications",
27
- className: "jsx-1500177125"
27
+ className: "jsx-55705730"
28
28
  }, hasAuthority(userAuthorities, 'M_dhis-web-interpretation') && /*#__PURE__*/React.createElement(NotificationIcon, {
29
29
  count: interpretations,
30
30
  href: joinPath(baseUrl, 'dhis-web-interpretation'),
@@ -37,8 +37,8 @@ export const Notifications = _ref => {
37
37
  kind: "interpretation",
38
38
  dataTestId: "headerbar-messages"
39
39
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
40
- id: "1500177125"
41
- }, ["div.jsx-1500177125{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"]));
40
+ id: "55705730"
41
+ }, ["div.jsx-55705730{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}"]));
42
42
  };
43
43
  Notifications.propTypes = {
44
44
  interpretations: PropTypes.number,
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui-constants';
2
- const _defaultExport = [".container.jsx-2116755021{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:#104167;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:".concat(colors.grey100, ";}"), ".container.badge.jsx-2116755021{margin-right:".concat(spacers.dp24, ";padding:").concat(spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-2116755021{display:none;padding:0px ".concat(spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-2116755021{display:none;}.container.bar.jsx-2116755021{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-2116755021{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-2116755021{margin-right:".concat(spacers.dp16, ";}"), ".info-dense.jsx-2116755021{margin-left:".concat(spacers.dp12, ";font-size:12px;}"), ".icon.jsx-2116755021{width:8px;min-width:8px;height:8px;border-radius:8px;margin-right:".concat(spacers.dp4, ";}"), ".icon.online.jsx-2116755021{background-color:".concat(colors.teal400, ";}"), ".icon.offline.jsx-2116755021{background-color:transparent;border:1px solid ".concat(colors.yellow300, ";}"), ".icon.reconnecting.jsx-2116755021{background:".concat(colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-2116755021 2s linear infinite;animation:fadeinout-jsx-2116755021 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-2116755021{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-2116755021{50%{opacity:1;}}", "@keyframes fadeinout-jsx-2116755021{50%{opacity:1;}}", ".label.jsx-2116755021{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
3
- _defaultExport.__hash = "2116755021";
2
+ const _defaultExport = [".container.jsx-3029616205{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:#104167;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:".concat(colors.grey100, ";}"), ".container.badge.jsx-3029616205{margin-right:".concat(spacers.dp8, ";padding:").concat(spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-3029616205{display:none;padding:0px ".concat(spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-3029616205{display:none;}.container.bar.jsx-3029616205{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-3029616205{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-3029616205{margin-right:".concat(spacers.dp16, ";}"), ".info-dense.jsx-3029616205{margin-left:".concat(spacers.dp12, ";font-size:12px;}"), ".icon.jsx-3029616205{width:8px;min-width:8px;height:8px;border-radius:8px;margin-right:".concat(spacers.dp4, ";}"), ".icon.online.jsx-3029616205{background-color:".concat(colors.teal400, ";}"), ".icon.offline.jsx-3029616205{background-color:transparent;border:1px solid ".concat(colors.yellow300, ";}"), ".icon.reconnecting.jsx-3029616205{background:".concat(colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-3029616205 2s linear infinite;animation:fadeinout-jsx-3029616205 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-3029616205{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-3029616205{50%{opacity:1;}}", "@keyframes fadeinout-jsx-3029616205{50%{opacity:1;}}", ".label.jsx-3029616205{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
3
+ _defaultExport.__hash = "3029616205";
4
4
  export default _defaultExport;
@@ -115,10 +115,10 @@ export const ProfileMenu = _ref2 => {
115
115
  } = _ref2;
116
116
  return /*#__PURE__*/React.createElement("div", {
117
117
  "data-test": "headerbar-profile-menu",
118
- className: "jsx-1689179824"
118
+ className: "jsx-2907613216"
119
119
  }, /*#__PURE__*/React.createElement(ProfileContents, props), /*#__PURE__*/React.createElement(_JSXStyle, {
120
- id: "1689179824"
121
- }, ["div.jsx-1689179824{z-index:10000;position:absolute;top:34px;right:-6px;width:320px;border-top:4px solid transparent;}"]));
120
+ id: "2907613216"
121
+ }, ["div.jsx-2907613216{z-index:10000;position:absolute;right:4px;width:320px;}"]));
122
122
  };
123
123
  ProfileMenu.propTypes = {
124
124
  hideProfileMenu: PropTypes.func.isRequired,
@@ -22,10 +22,10 @@ const Profile = _ref => {
22
22
  return /*#__PURE__*/React.createElement("div", {
23
23
  ref: containerRef,
24
24
  "data-test": "headerbar-profile",
25
- className: "jsx-2213392235" + " " + "headerbar-profile"
25
+ className: "jsx-3442481507" + " " + "headerbar-profile"
26
26
  }, /*#__PURE__*/React.createElement("button", {
27
27
  onClick: toggleProfileMenu,
28
- className: "jsx-2213392235" + " " + "headerbar-profile-btn"
28
+ className: "jsx-3442481507" + " " + "headerbar-profile-btn"
29
29
  }, /*#__PURE__*/React.createElement(UserAvatar, {
30
30
  avatarId: avatarId,
31
31
  name: name,
@@ -45,8 +45,8 @@ const Profile = _ref => {
45
45
  setShowDebugInfoModal(false);
46
46
  }
47
47
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
48
- id: "2213392235"
49
- }, [".headerbar-profile.jsx-2213392235{position:relative;width:36px;height:36px;min-width:36px;min-height:36px;margin:2px 12px 0 24px;}", ".headerbar-profile-btn.jsx-2213392235{background:transparent;padding:0;border:0;cursor:pointer;width:100%;height:100%;}", ".headerbar-profile-btn.jsx-2213392235:focus{outline:1px dotted white;}"]));
48
+ id: "3442481507"
49
+ }, [".headerbar-profile.jsx-3442481507{position:relative;height:100%;}", ".headerbar-profile-btn.jsx-3442481507{background:transparent;padding:6px;border:0;cursor:pointer;}", ".headerbar-profile-btn.jsx-3442481507:focus{outline:2px solid white;outline-offset:-2px;}", ".headerbar-profile-btn.jsx-3442481507:focus.jsx-3442481507:not(:focus-visible){outline:none;}", ".headerbar-profile-btn.jsx-3442481507:hover{background:#1a557f;}", ".headerbar-profile-btn.jsx-3442481507:active{background:#104067;}"]));
50
50
  };
51
51
 
52
52
  Profile.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/header-bar",
3
- "version": "8.13.2",
3
+ "version": "8.13.4",
4
4
  "description": "UI HeaderBar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,21 +33,21 @@
33
33
  "styled-jsx": "^4"
34
34
  },
35
35
  "dependencies": {
36
- "@dhis2-ui/box": "8.13.2",
37
- "@dhis2-ui/button": "8.13.2",
38
- "@dhis2-ui/card": "8.13.2",
39
- "@dhis2-ui/center": "8.13.2",
40
- "@dhis2-ui/divider": "8.13.2",
41
- "@dhis2-ui/input": "8.13.2",
42
- "@dhis2-ui/layer": "8.13.2",
43
- "@dhis2-ui/loader": "8.13.2",
44
- "@dhis2-ui/logo": "8.13.2",
45
- "@dhis2-ui/menu": "8.13.2",
46
- "@dhis2-ui/modal": "8.13.2",
47
- "@dhis2-ui/user-avatar": "8.13.2",
36
+ "@dhis2-ui/box": "8.13.4",
37
+ "@dhis2-ui/button": "8.13.4",
38
+ "@dhis2-ui/card": "8.13.4",
39
+ "@dhis2-ui/center": "8.13.4",
40
+ "@dhis2-ui/divider": "8.13.4",
41
+ "@dhis2-ui/input": "8.13.4",
42
+ "@dhis2-ui/layer": "8.13.4",
43
+ "@dhis2-ui/loader": "8.13.4",
44
+ "@dhis2-ui/logo": "8.13.4",
45
+ "@dhis2-ui/menu": "8.13.4",
46
+ "@dhis2-ui/modal": "8.13.4",
47
+ "@dhis2-ui/user-avatar": "8.13.4",
48
48
  "@dhis2/prop-types": "^3.1.2",
49
- "@dhis2/ui-constants": "8.13.2",
50
- "@dhis2/ui-icons": "8.13.2",
49
+ "@dhis2/ui-constants": "8.13.4",
50
+ "@dhis2/ui-icons": "8.13.4",
51
51
  "classnames": "^2.3.1",
52
52
  "moment": "^2.29.1",
53
53
  "prop-types": "^15.7.2"