@dhis2-ui/header-bar 9.3.0 → 9.4.0-alpha.2
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 +10 -10
- package/build/cjs/debug-info/debug-info-table.js +7 -7
- package/build/cjs/header-bar.js +5 -5
- package/build/cjs/header-bar.stories.js +11 -1
- package/build/cjs/logo.js +4 -4
- package/build/cjs/notification-icon.js +5 -4
- package/build/cjs/online-status.styles.js +2 -2
- package/build/cjs/profile-menu/profile-header.js +6 -6
- package/build/cjs/profile-menu/profile-menu.js +3 -3
- package/build/es/apps.js +10 -10
- package/build/es/debug-info/debug-info-table.js +7 -7
- package/build/es/header-bar.js +5 -5
- package/build/es/header-bar.stories.js +7 -0
- package/build/es/logo.js +4 -4
- package/build/es/notification-icon.js +5 -4
- package/build/es/online-status.styles.js +2 -2
- package/build/es/profile-menu/profile-header.js +6 -6
- package/build/es/profile-menu/profile-menu.js +3 -3
- package/package.json +15 -15
package/build/cjs/apps.js
CHANGED
|
@@ -108,7 +108,7 @@ function List(_ref3) {
|
|
|
108
108
|
} = _ref3;
|
|
109
109
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
110
110
|
"data-test": "headerbar-apps-menu-list",
|
|
111
|
-
className: "jsx-
|
|
111
|
+
className: "jsx-2424821176"
|
|
112
112
|
}, apps.filter(_ref4 => {
|
|
113
113
|
let {
|
|
114
114
|
displayName,
|
|
@@ -132,8 +132,8 @@ function List(_ref3) {
|
|
|
132
132
|
img: icon
|
|
133
133
|
});
|
|
134
134
|
}), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
135
|
-
id: "
|
|
136
|
-
}, ["div.jsx-
|
|
135
|
+
id: "2424821176"
|
|
136
|
+
}, ["div.jsx-2424821176{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:30vw;min-width:300px;max-width:560px;min-height:200px;max-height:465px;margin-block-start:0;margin-block-end:8px;margin-inline:8px;overflow:auto;overflow-x:hidden;}"]));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
List.propTypes = {
|
|
@@ -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-
|
|
152
|
+
className: "jsx-3826299842"
|
|
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: "
|
|
161
|
-
}, ["div.jsx-
|
|
160
|
+
id: "3826299842"
|
|
161
|
+
}, ["div.jsx-3826299842{z-index:10000;position:absolute;inset-inline-end:-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: _style.default.dynamic([["
|
|
196
|
+
className: _style.default.dynamic([["325245423", [_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: _style.default.dynamic([["
|
|
200
|
+
className: _style.default.dynamic([["325245423", [_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,9 +205,9 @@ const Apps = _ref7 => {
|
|
|
205
205
|
filter: filter,
|
|
206
206
|
onFilterChange: handleFilterChange
|
|
207
207
|
}) : null, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
208
|
-
id: "
|
|
208
|
+
id: "325245423",
|
|
209
209
|
dynamic: [_uiConstants.spacers.dp4, _uiConstants.spacers.dp12]
|
|
210
|
-
}, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding:".concat(_uiConstants.spacers.dp4, "
|
|
210
|
+
}, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding-block-start:".concat(_uiConstants.spacers.dp4, ";padding-block-end:0;padding-inline:").concat(_uiConstants.spacers.dp12, ";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%;}"]));
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
Apps.propTypes = {
|
|
@@ -30,18 +30,18 @@ function DebugInfoTable() {
|
|
|
30
30
|
const debugInfo = (0, _useDebugInfo.useDebugInfo)();
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement("table", {
|
|
32
32
|
'data-test': 'dhis2-ui-headerbar-debuginfotable',
|
|
33
|
-
className: _style.default.dynamic([["
|
|
33
|
+
className: _style.default.dynamic([["4076206425", [_uiConstants.colors.grey700]]])
|
|
34
34
|
}, /*#__PURE__*/_react.default.createElement("tbody", {
|
|
35
|
-
className: _style.default.dynamic([["
|
|
35
|
+
className: _style.default.dynamic([["4076206425", [_uiConstants.colors.grey700]]])
|
|
36
36
|
}, Object.keys(debugInfo).map(key => /*#__PURE__*/_react.default.createElement("tr", {
|
|
37
37
|
key: key,
|
|
38
|
-
className: _style.default.dynamic([["
|
|
38
|
+
className: _style.default.dynamic([["4076206425", [_uiConstants.colors.grey700]]])
|
|
39
39
|
}, /*#__PURE__*/_react.default.createElement("td", {
|
|
40
|
-
className: _style.default.dynamic([["
|
|
40
|
+
className: _style.default.dynamic([["4076206425", [_uiConstants.colors.grey700]]]) + " " + "debug-info-key"
|
|
41
41
|
}, formatDebugInfoKey(key)), /*#__PURE__*/_react.default.createElement("td", {
|
|
42
|
-
className: _style.default.dynamic([["
|
|
42
|
+
className: _style.default.dynamic([["4076206425", [_uiConstants.colors.grey700]]])
|
|
43
43
|
}, debugInfo[key])))), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
44
|
-
id: "
|
|
44
|
+
id: "4076206425",
|
|
45
45
|
dynamic: [_uiConstants.colors.grey700]
|
|
46
|
-
}, ["table.__jsx-style-dynamic-selector{white-space:pre-wrap;font-size:14px;line-height:1.2;color:".concat(_uiConstants.colors.grey700, ";font-famile:Menlo,Courier,monospace !important;}"), "td.__jsx-style-dynamic-selector{padding:3px
|
|
46
|
+
}, ["table.__jsx-style-dynamic-selector{white-space:pre-wrap;font-size:14px;line-height:1.2;color:".concat(_uiConstants.colors.grey700, ";font-famile:Menlo,Courier,monospace !important;}"), "td.__jsx-style-dynamic-selector{padding-block:3px;padding-inline-end:16px;padding-inline-start:0;}", ".debug-info-key.__jsx-style-dynamic-selector{font-weight:bold;}"]));
|
|
47
47
|
}
|
package/build/cjs/header-bar.js
CHANGED
|
@@ -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([["
|
|
105
|
+
className: _style.default.dynamic([["4230161118", [_uiConstants.colors.white]]]) + " " + (className || "")
|
|
106
106
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
-
className: _style.default.dynamic([["
|
|
107
|
+
className: _style.default.dynamic([["4230161118", [_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([["
|
|
112
|
+
className: _style.default.dynamic([["4230161118", [_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: "
|
|
127
|
+
id: "4230161118",
|
|
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;color:".concat(_uiConstants.colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-
|
|
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-inline-start:auto;}"])));
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
exports.HeaderBar = HeaderBar;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WithUpdateNotification = exports.WithOnlineStatusMessage = exports.WithOnlineStatus = exports.NonEnglishUserLocale = exports.NoAuthorityForInterpretationsApp = exports.Loading = exports.Error = exports.Default = exports.CustomLogoWideDimension = void 0;
|
|
6
|
+
exports.default = exports.WithUpdateNotification = exports.WithOnlineStatusMessage = exports.WithOnlineStatus = exports.RTLHeader = exports.NonEnglishUserLocale = exports.NoAuthorityForInterpretationsApp = exports.Loading = exports.Error = exports.Default = exports.CustomLogoWideDimension = void 0;
|
|
7
7
|
|
|
8
8
|
var _appRuntime = require("@dhis2/app-runtime");
|
|
9
9
|
|
|
@@ -246,6 +246,16 @@ const WithOnlineStatusMessage = () => /*#__PURE__*/_react.default.createElement(
|
|
|
246
246
|
}), /*#__PURE__*/_react.default.createElement(_onlineStatusMessage.OnlineStatusMessageUpdate, null));
|
|
247
247
|
|
|
248
248
|
exports.WithOnlineStatusMessage = WithOnlineStatusMessage;
|
|
249
|
+
|
|
250
|
+
const RTLHeader = () => /*#__PURE__*/_react.default.createElement(_appRuntime.CustomDataProvider, {
|
|
251
|
+
data: customData
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
253
|
+
dir: "rtl"
|
|
254
|
+
}, /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, {
|
|
255
|
+
appName: "Example!"
|
|
256
|
+
})));
|
|
257
|
+
|
|
258
|
+
exports.RTLHeader = RTLHeader;
|
|
249
259
|
WithOnlineStatusMessage.decorators = [(0, _common.createDecoratorProvider)({ ..._common.providerConfig,
|
|
250
260
|
pwaEnabled: true
|
|
251
261
|
}, { ..._common.mockOfflineInterface,
|
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-
|
|
24
|
+
className: "jsx-1445465036"
|
|
25
25
|
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
26
26
|
href: baseUrl,
|
|
27
|
-
className: "jsx-
|
|
27
|
+
className: "jsx-1445465036"
|
|
28
28
|
}, /*#__PURE__*/_react.default.createElement(_logoImage.LogoImage, null)), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
29
|
-
id: "
|
|
30
|
-
}, ["div.jsx-
|
|
29
|
+
id: "1445465036"
|
|
30
|
+
}, ["div.jsx-1445465036{box-sizing:border-box;min-width:49px;max-height:48px;margin-block:0;margin-inline-end:12px;margin-inline-start:0;border-inline-end:1px solid rgba(32,32,32,0.15);}", "div.jsx-1445465036:hover{background-color:#1a557f;}", "a.jsx-1445465036,a.jsx-1445465036:hover,a.jsx-1445465036:focus,a.jsx-1445465036:active,a.jsx-1445465036:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", "a.jsx-1445465036:focus{outline:2px solid white;outline-offset:-2px;}", "a.jsx-1445465036:focus.jsx-1445465036:not(:focus-visible){outline:none;}"]));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
exports.Logo = Logo;
|
|
@@ -37,16 +37,17 @@ const NotificationIcon = _ref => {
|
|
|
37
37
|
dataTestId
|
|
38
38
|
} = _ref;
|
|
39
39
|
return /*#__PURE__*/_react.default.createElement("a", {
|
|
40
|
+
dir: "ltr",
|
|
40
41
|
href: href,
|
|
41
42
|
"data-test": dataTestId,
|
|
42
|
-
className: _style.default.dynamic([["
|
|
43
|
+
className: _style.default.dynamic([["995028205", [_uiConstants.spacers.dp12, _uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]]) + " " + (kind || "")
|
|
43
44
|
}, icon(kind), count > 0 && /*#__PURE__*/_react.default.createElement("span", {
|
|
44
45
|
"data-test": "".concat(dataTestId, "-count"),
|
|
45
|
-
className: _style.default.dynamic([["
|
|
46
|
+
className: _style.default.dynamic([["995028205", [_uiConstants.spacers.dp12, _uiConstants.spacers.dp12, _uiConstants.theme.secondary500, _uiConstants.colors.white, _uiConstants.spacers.dp4]]])
|
|
46
47
|
}, count), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
47
|
-
id: "
|
|
48
|
+
id: "995028205",
|
|
48
49
|
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;
|
|
50
|
+
}, ["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;inset-inline-end: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
51
|
};
|
|
51
52
|
|
|
52
53
|
exports.NotificationIcon = NotificationIcon;
|
|
@@ -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-
|
|
11
|
-
_defaultExport.__hash = "
|
|
10
|
+
const _defaultExport = [".container.jsx-2382375945{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-2382375945{margin-inline-end:".concat(_uiConstants.spacers.dp8, ";padding:").concat(_uiConstants.spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-2382375945{display:none;padding:0px ".concat(_uiConstants.spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-2382375945{display:none;}.container.bar.jsx-2382375945{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-2382375945{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-2382375945{margin-inline-end:".concat(_uiConstants.spacers.dp16, ";}"), ".info-dense.jsx-2382375945{margin-inline-start:".concat(_uiConstants.spacers.dp12, ";font-size:12px;}"), ".icon.jsx-2382375945{width:8px;min-width:8px;height:8px;border-radius:8px;margin-inline-end:".concat(_uiConstants.spacers.dp4, ";}"), ".icon.online.jsx-2382375945{background-color:".concat(_uiConstants.colors.teal400, ";}"), ".icon.offline.jsx-2382375945{background-color:transparent;border:1px solid ".concat(_uiConstants.colors.yellow300, ";}"), ".icon.reconnecting.jsx-2382375945{background:".concat(_uiConstants.colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-2382375945 2s linear infinite;animation:fadeinout-jsx-2382375945 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-2382375945{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-2382375945{50%{opacity:1;}}", "@keyframes fadeinout-jsx-2382375945{50%{opacity:1;}}", ".label.jsx-2382375945{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
|
|
11
|
+
_defaultExport.__hash = "2382375945";
|
|
12
12
|
var _default = _defaultExport;
|
|
13
13
|
exports.default = _default;
|
|
@@ -79,10 +79,10 @@ const ProfileDetails = _ref4 => {
|
|
|
79
79
|
email
|
|
80
80
|
} = _ref4;
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
className: "jsx-
|
|
82
|
+
className: "jsx-4236878114"
|
|
83
83
|
}, /*#__PURE__*/_react.default.createElement(ProfileName, null, name), /*#__PURE__*/_react.default.createElement(ProfileEmail, null, email), /*#__PURE__*/_react.default.createElement(ProfileEdit, null, _index.default.t('Edit profile')), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
84
|
-
id: "
|
|
85
|
-
}, ["div.jsx-
|
|
84
|
+
id: "4236878114"
|
|
85
|
+
}, ["div.jsx-4236878114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-inline-start:20px;color:#000;font-size:14px;font-weight:400;}"]));
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
ProfileDetails.propTypes = {
|
|
@@ -97,7 +97,7 @@ const ProfileHeader = _ref5 => {
|
|
|
97
97
|
avatarId
|
|
98
98
|
} = _ref5;
|
|
99
99
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
className: "jsx-
|
|
100
|
+
className: "jsx-371352323"
|
|
101
101
|
}, /*#__PURE__*/_react.default.createElement(_userAvatar.UserAvatar, {
|
|
102
102
|
avatarId: avatarId,
|
|
103
103
|
name: name,
|
|
@@ -107,8 +107,8 @@ const ProfileHeader = _ref5 => {
|
|
|
107
107
|
name: name,
|
|
108
108
|
email: email
|
|
109
109
|
}), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
110
|
-
id: "
|
|
111
|
-
}, ["div.jsx-
|
|
110
|
+
id: "371352323"
|
|
111
|
+
}, ["div.jsx-371352323{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-inline-start:24px;padding-top:20px;}"]));
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
exports.ProfileHeader = ProfileHeader;
|
|
@@ -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-
|
|
148
|
+
className: "jsx-3924623997"
|
|
149
149
|
}, /*#__PURE__*/_react.default.createElement(ProfileContents, props), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
150
|
-
id: "
|
|
151
|
-
}, ["div.jsx-
|
|
150
|
+
id: "3924623997"
|
|
151
|
+
}, ["div.jsx-3924623997{z-index:10000;position:absolute;inset-inline-end:4px;width:320px;}"]));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
exports.ProfileMenu = ProfileMenu;
|
package/build/es/apps.js
CHANGED
|
@@ -86,7 +86,7 @@ function List(_ref3) {
|
|
|
86
86
|
} = _ref3;
|
|
87
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
88
88
|
"data-test": "headerbar-apps-menu-list",
|
|
89
|
-
className: "jsx-
|
|
89
|
+
className: "jsx-2424821176"
|
|
90
90
|
}, apps.filter(_ref4 => {
|
|
91
91
|
let {
|
|
92
92
|
displayName,
|
|
@@ -110,8 +110,8 @@ function List(_ref3) {
|
|
|
110
110
|
img: icon
|
|
111
111
|
});
|
|
112
112
|
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
113
|
-
id: "
|
|
114
|
-
}, ["div.jsx-
|
|
113
|
+
id: "2424821176"
|
|
114
|
+
}, ["div.jsx-2424821176{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:30vw;min-width:300px;max-width:560px;min-height:200px;max-height:465px;margin-block-start:0;margin-block-end:8px;margin-inline:8px;overflow:auto;overflow-x:hidden;}"]));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
List.propTypes = {
|
|
@@ -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-
|
|
130
|
+
className: "jsx-3826299842"
|
|
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: "
|
|
139
|
-
}, ["div.jsx-
|
|
138
|
+
id: "3826299842"
|
|
139
|
+
}, ["div.jsx-3826299842{z-index:10000;position:absolute;inset-inline-end:-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: _JSXStyle.dynamic([["
|
|
174
|
+
className: _JSXStyle.dynamic([["325245423", [spacers.dp4, spacers.dp12]]])
|
|
175
175
|
}, /*#__PURE__*/React.createElement("button", {
|
|
176
176
|
onClick: handleVisibilityToggle,
|
|
177
177
|
"data-test": "headerbar-apps-icon",
|
|
178
|
-
className: _JSXStyle.dynamic([["
|
|
178
|
+
className: _JSXStyle.dynamic([["325245423", [spacers.dp4, spacers.dp12]]])
|
|
179
179
|
}, /*#__PURE__*/React.createElement(IconApps24, {
|
|
180
180
|
color: colors.white
|
|
181
181
|
})), show ? /*#__PURE__*/React.createElement(AppMenu, {
|
|
@@ -183,9 +183,9 @@ const Apps = _ref7 => {
|
|
|
183
183
|
filter: filter,
|
|
184
184
|
onFilterChange: handleFilterChange
|
|
185
185
|
}) : null, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
186
|
-
id: "
|
|
186
|
+
id: "325245423",
|
|
187
187
|
dynamic: [spacers.dp4, spacers.dp12]
|
|
188
|
-
}, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding:".concat(spacers.dp4, "
|
|
188
|
+
}, ["button.__jsx-style-dynamic-selector{display:block;background:transparent;padding-block-start:".concat(spacers.dp4, ";padding-block-end:0;padding-inline:").concat(spacers.dp12, ";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%;}"]));
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
Apps.propTypes = {
|
|
@@ -18,18 +18,18 @@ export function DebugInfoTable() {
|
|
|
18
18
|
const debugInfo = useDebugInfo();
|
|
19
19
|
return /*#__PURE__*/React.createElement("table", {
|
|
20
20
|
'data-test': 'dhis2-ui-headerbar-debuginfotable',
|
|
21
|
-
className: _JSXStyle.dynamic([["
|
|
21
|
+
className: _JSXStyle.dynamic([["4076206425", [colors.grey700]]])
|
|
22
22
|
}, /*#__PURE__*/React.createElement("tbody", {
|
|
23
|
-
className: _JSXStyle.dynamic([["
|
|
23
|
+
className: _JSXStyle.dynamic([["4076206425", [colors.grey700]]])
|
|
24
24
|
}, Object.keys(debugInfo).map(key => /*#__PURE__*/React.createElement("tr", {
|
|
25
25
|
key: key,
|
|
26
|
-
className: _JSXStyle.dynamic([["
|
|
26
|
+
className: _JSXStyle.dynamic([["4076206425", [colors.grey700]]])
|
|
27
27
|
}, /*#__PURE__*/React.createElement("td", {
|
|
28
|
-
className: _JSXStyle.dynamic([["
|
|
28
|
+
className: _JSXStyle.dynamic([["4076206425", [colors.grey700]]]) + " " + "debug-info-key"
|
|
29
29
|
}, formatDebugInfoKey(key)), /*#__PURE__*/React.createElement("td", {
|
|
30
|
-
className: _JSXStyle.dynamic([["
|
|
30
|
+
className: _JSXStyle.dynamic([["4076206425", [colors.grey700]]])
|
|
31
31
|
}, debugInfo[key])))), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
32
|
-
id: "
|
|
32
|
+
id: "4076206425",
|
|
33
33
|
dynamic: [colors.grey700]
|
|
34
|
-
}, ["table.__jsx-style-dynamic-selector{white-space:pre-wrap;font-size:14px;line-height:1.2;color:".concat(colors.grey700, ";font-famile:Menlo,Courier,monospace !important;}"), "td.__jsx-style-dynamic-selector{padding:3px
|
|
34
|
+
}, ["table.__jsx-style-dynamic-selector{white-space:pre-wrap;font-size:14px;line-height:1.2;color:".concat(colors.grey700, ";font-famile:Menlo,Courier,monospace !important;}"), "td.__jsx-style-dynamic-selector{padding-block:3px;padding-inline-end:16px;padding-inline-start:0;}", ".debug-info-key.__jsx-style-dynamic-selector{font-weight:bold;}"]));
|
|
35
35
|
}
|
package/build/es/header-bar.js
CHANGED
|
@@ -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([["
|
|
75
|
+
className: _JSXStyle.dynamic([["4230161118", [colors.white]]]) + " " + (className || "")
|
|
76
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
className: _JSXStyle.dynamic([["
|
|
77
|
+
className: _JSXStyle.dynamic([["4230161118", [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([["
|
|
82
|
+
className: _JSXStyle.dynamic([["4230161118", [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: "
|
|
97
|
+
id: "4230161118",
|
|
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;color:".concat(colors.white, ";height:48px;}"), ".right-control-spacer.__jsx-style-dynamic-selector{margin-
|
|
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-inline-start:auto;}"])));
|
|
100
100
|
};
|
|
101
101
|
HeaderBar.propTypes = {
|
|
102
102
|
appName: PropTypes.string,
|
|
@@ -204,6 +204,13 @@ export const WithOnlineStatusMessage = () => /*#__PURE__*/React.createElement(Cu
|
|
|
204
204
|
}, /*#__PURE__*/React.createElement(HeaderBar, {
|
|
205
205
|
appName: "Exemple!"
|
|
206
206
|
}), /*#__PURE__*/React.createElement(OnlineStatusMessageUpdate, null));
|
|
207
|
+
export const RTLHeader = () => /*#__PURE__*/React.createElement(CustomDataProvider, {
|
|
208
|
+
data: customData
|
|
209
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
210
|
+
dir: "rtl"
|
|
211
|
+
}, /*#__PURE__*/React.createElement(HeaderBar, {
|
|
212
|
+
appName: "Example!"
|
|
213
|
+
})));
|
|
207
214
|
WithOnlineStatusMessage.decorators = [createDecoratorProvider({ ...providerConfig,
|
|
208
215
|
pwaEnabled: true
|
|
209
216
|
}, { ...mockOfflineInterface,
|
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-
|
|
11
|
+
className: "jsx-1445465036"
|
|
12
12
|
}, /*#__PURE__*/React.createElement("a", {
|
|
13
13
|
href: baseUrl,
|
|
14
|
-
className: "jsx-
|
|
14
|
+
className: "jsx-1445465036"
|
|
15
15
|
}, /*#__PURE__*/React.createElement(LogoImage, null)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
16
|
-
id: "
|
|
17
|
-
}, ["div.jsx-
|
|
16
|
+
id: "1445465036"
|
|
17
|
+
}, ["div.jsx-1445465036{box-sizing:border-box;min-width:49px;max-height:48px;margin-block:0;margin-inline-end:12px;margin-inline-start:0;border-inline-end:1px solid rgba(32,32,32,0.15);}", "div.jsx-1445465036:hover{background-color:#1a557f;}", "a.jsx-1445465036,a.jsx-1445465036:hover,a.jsx-1445465036:focus,a.jsx-1445465036:active,a.jsx-1445465036:visited{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", "a.jsx-1445465036:focus{outline:2px solid white;outline-offset:-2px;}", "a.jsx-1445465036:focus.jsx-1445465036:not(:focus-visible){outline:none;}"]));
|
|
18
18
|
};
|
|
@@ -24,16 +24,17 @@ export const NotificationIcon = _ref => {
|
|
|
24
24
|
dataTestId
|
|
25
25
|
} = _ref;
|
|
26
26
|
return /*#__PURE__*/React.createElement("a", {
|
|
27
|
+
dir: "ltr",
|
|
27
28
|
href: href,
|
|
28
29
|
"data-test": dataTestId,
|
|
29
|
-
className: _JSXStyle.dynamic([["
|
|
30
|
+
className: _JSXStyle.dynamic([["995028205", [spacers.dp12, spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]]) + " " + (kind || "")
|
|
30
31
|
}, icon(kind), count > 0 && /*#__PURE__*/React.createElement("span", {
|
|
31
32
|
"data-test": "".concat(dataTestId, "-count"),
|
|
32
|
-
className: _JSXStyle.dynamic([["
|
|
33
|
+
className: _JSXStyle.dynamic([["995028205", [spacers.dp12, spacers.dp12, theme.secondary500, colors.white, spacers.dp4]]])
|
|
33
34
|
}, count), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
34
|
-
id: "
|
|
35
|
+
id: "995028205",
|
|
35
36
|
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;
|
|
37
|
+
}, ["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;inset-inline-end: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
38
|
};
|
|
38
39
|
NotificationIcon.defaultProps = {
|
|
39
40
|
count: 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { colors, spacers } from '@dhis2/ui-constants';
|
|
2
|
-
const _defaultExport = [".container.jsx-
|
|
3
|
-
_defaultExport.__hash = "
|
|
2
|
+
const _defaultExport = [".container.jsx-2382375945{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-2382375945{margin-inline-end:".concat(spacers.dp8, ";padding:").concat(spacers.dp8, ";border-radius:5px;font-size:14px;}"), ".container.bar.jsx-2382375945{display:none;padding:0px ".concat(spacers.dp4, ";min-height:24px;font-size:13px;}"), "@media (max-width:480px){.container.badge.jsx-2382375945{display:none;}.container.bar.jsx-2382375945{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}", ".unselectable.jsx-2382375945{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".info.jsx-2382375945{margin-inline-end:".concat(spacers.dp16, ";}"), ".info-dense.jsx-2382375945{margin-inline-start:".concat(spacers.dp12, ";font-size:12px;}"), ".icon.jsx-2382375945{width:8px;min-width:8px;height:8px;border-radius:8px;margin-inline-end:".concat(spacers.dp4, ";}"), ".icon.online.jsx-2382375945{background-color:".concat(colors.teal400, ";}"), ".icon.offline.jsx-2382375945{background-color:transparent;border:1px solid ".concat(colors.yellow300, ";}"), ".icon.reconnecting.jsx-2382375945{background:".concat(colors.grey300, ";-webkit-animation:fadeinout 2s linear infinite;-webkit-animation:fadeinout-jsx-2382375945 2s linear infinite;animation:fadeinout-jsx-2382375945 2s linear infinite;opacity:0;}"), "@-webkit-keyframes fadeinout{50%.jsx-2382375945{opacity:1;}}", "@-webkit-keyframes fadeinout-jsx-2382375945{50%{opacity:1;}}", "@keyframes fadeinout-jsx-2382375945{50%{opacity:1;}}", ".label.jsx-2382375945{-webkit-letter-spacing:0.5px;-moz-letter-spacing:0.5px;-ms-letter-spacing:0.5px;letter-spacing:0.5px;}"];
|
|
3
|
+
_defaultExport.__hash = "2382375945";
|
|
4
4
|
export default _defaultExport;
|
|
@@ -64,10 +64,10 @@ const ProfileDetails = _ref4 => {
|
|
|
64
64
|
email
|
|
65
65
|
} = _ref4;
|
|
66
66
|
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: "jsx-
|
|
67
|
+
className: "jsx-4236878114"
|
|
68
68
|
}, /*#__PURE__*/React.createElement(ProfileName, null, name), /*#__PURE__*/React.createElement(ProfileEmail, null, email), /*#__PURE__*/React.createElement(ProfileEdit, null, i18n.t('Edit profile')), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
69
|
-
id: "
|
|
70
|
-
}, ["div.jsx-
|
|
69
|
+
id: "4236878114"
|
|
70
|
+
}, ["div.jsx-4236878114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-inline-start:20px;color:#000;font-size:14px;font-weight:400;}"]));
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
ProfileDetails.propTypes = {
|
|
@@ -81,7 +81,7 @@ export const ProfileHeader = _ref5 => {
|
|
|
81
81
|
avatarId
|
|
82
82
|
} = _ref5;
|
|
83
83
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
|
-
className: "jsx-
|
|
84
|
+
className: "jsx-371352323"
|
|
85
85
|
}, /*#__PURE__*/React.createElement(UserAvatar, {
|
|
86
86
|
avatarId: avatarId,
|
|
87
87
|
name: name,
|
|
@@ -91,8 +91,8 @@ export const ProfileHeader = _ref5 => {
|
|
|
91
91
|
name: name,
|
|
92
92
|
email: email
|
|
93
93
|
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
94
|
-
id: "
|
|
95
|
-
}, ["div.jsx-
|
|
94
|
+
id: "371352323"
|
|
95
|
+
}, ["div.jsx-371352323{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-inline-start:24px;padding-top:20px;}"]));
|
|
96
96
|
};
|
|
97
97
|
ProfileHeader.propTypes = {
|
|
98
98
|
avatarId: PropTypes.string,
|
|
@@ -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-
|
|
118
|
+
className: "jsx-3924623997"
|
|
119
119
|
}, /*#__PURE__*/React.createElement(ProfileContents, props), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
120
|
-
id: "
|
|
121
|
-
}, ["div.jsx-
|
|
120
|
+
id: "3924623997"
|
|
121
|
+
}, ["div.jsx-3924623997{z-index:10000;position:absolute;inset-inline-end:4px;width:320px;}"]));
|
|
122
122
|
};
|
|
123
123
|
ProfileMenu.propTypes = {
|
|
124
124
|
hideProfileMenu: PropTypes.func.isRequired,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/header-bar",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0-alpha.2",
|
|
4
4
|
"description": "UI HeaderBar",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"styled-jsx": "^4"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@dhis2-ui/box": "9.
|
|
38
|
-
"@dhis2-ui/button": "9.
|
|
39
|
-
"@dhis2-ui/card": "9.
|
|
40
|
-
"@dhis2-ui/center": "9.
|
|
41
|
-
"@dhis2-ui/divider": "9.
|
|
42
|
-
"@dhis2-ui/input": "9.
|
|
43
|
-
"@dhis2-ui/layer": "9.
|
|
44
|
-
"@dhis2-ui/loader": "9.
|
|
45
|
-
"@dhis2-ui/logo": "9.
|
|
46
|
-
"@dhis2-ui/menu": "9.
|
|
47
|
-
"@dhis2-ui/modal": "9.
|
|
48
|
-
"@dhis2-ui/user-avatar": "9.
|
|
37
|
+
"@dhis2-ui/box": "9.4.0-alpha.2",
|
|
38
|
+
"@dhis2-ui/button": "9.4.0-alpha.2",
|
|
39
|
+
"@dhis2-ui/card": "9.4.0-alpha.2",
|
|
40
|
+
"@dhis2-ui/center": "9.4.0-alpha.2",
|
|
41
|
+
"@dhis2-ui/divider": "9.4.0-alpha.2",
|
|
42
|
+
"@dhis2-ui/input": "9.4.0-alpha.2",
|
|
43
|
+
"@dhis2-ui/layer": "9.4.0-alpha.2",
|
|
44
|
+
"@dhis2-ui/loader": "9.4.0-alpha.2",
|
|
45
|
+
"@dhis2-ui/logo": "9.4.0-alpha.2",
|
|
46
|
+
"@dhis2-ui/menu": "9.4.0-alpha.2",
|
|
47
|
+
"@dhis2-ui/modal": "9.4.0-alpha.2",
|
|
48
|
+
"@dhis2-ui/user-avatar": "9.4.0-alpha.2",
|
|
49
49
|
"@dhis2/prop-types": "^3.1.2",
|
|
50
|
-
"@dhis2/ui-constants": "9.
|
|
51
|
-
"@dhis2/ui-icons": "9.
|
|
50
|
+
"@dhis2/ui-constants": "9.4.0-alpha.2",
|
|
51
|
+
"@dhis2/ui-icons": "9.4.0-alpha.2",
|
|
52
52
|
"classnames": "^2.3.1",
|
|
53
53
|
"moment": "^2.29.1",
|
|
54
54
|
"prop-types": "^15.7.2"
|