@crystaldesign/diva-navigator 25.13.0-beta.45 → 25.13.0-beta.47
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/esm/index.js
CHANGED
|
@@ -2666,7 +2666,10 @@ var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2666
2666
|
_useDivaCore$state = _useDivaCore.state,
|
|
2667
2667
|
hideSnow = _useDivaCore$state.hideSnow,
|
|
2668
2668
|
user = _useDivaCore$state.user,
|
|
2669
|
-
|
|
2669
|
+
_useDivaCore$state$di = _useDivaCore$state.dimensions,
|
|
2670
|
+
isMobile = _useDivaCore$state$di.isMobile,
|
|
2671
|
+
isTablet = _useDivaCore$state$di.isTablet,
|
|
2672
|
+
isPortrait = _useDivaCore$state$di.isPortrait,
|
|
2670
2673
|
_useDivaCore$state$na = _useDivaCore$state.navigationConfiguration,
|
|
2671
2674
|
customHeaderElement = _useDivaCore$state$na.customHeaderElement,
|
|
2672
2675
|
showLogin = _useDivaCore$state$na.showLogin,
|
|
@@ -2712,6 +2715,9 @@ var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2712
2715
|
}
|
|
2713
2716
|
e.stopPropagation();
|
|
2714
2717
|
};
|
|
2718
|
+
|
|
2719
|
+
//still show buttons on tablet in landscape mode
|
|
2720
|
+
var showButtons = !isMobile || isTablet && !isPortrait;
|
|
2715
2721
|
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
2716
2722
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2717
2723
|
id: "diva-header",
|
|
@@ -2730,12 +2736,12 @@ var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2730
2736
|
className: headerWrapper,
|
|
2731
2737
|
children: [/*#__PURE__*/jsx(Logos, {}), welcomeText && /*#__PURE__*/jsx(WelcomeText, {
|
|
2732
2738
|
text: welcomeText
|
|
2733
|
-
}),
|
|
2739
|
+
}), showButtons && /*#__PURE__*/jsx(Buttons, {}), /*#__PURE__*/jsxs("div", {
|
|
2734
2740
|
className: headerWrapperRight,
|
|
2735
2741
|
children: [!!qrCodeScanner && /*#__PURE__*/jsx(QrCodeScanner, {}), !!customHeaderElement && /*#__PURE__*/jsx("div", {
|
|
2736
2742
|
className: customArea,
|
|
2737
2743
|
children: customHeaderElement()
|
|
2738
|
-
}),
|
|
2744
|
+
}), showButtons && (showOrgName || showUserName) && /*#__PURE__*/jsx(OrganizationName, {
|
|
2739
2745
|
showOrgName: showOrgName,
|
|
2740
2746
|
showUserName: showUserName,
|
|
2741
2747
|
onClickProfile: onClickProfile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;;AAgBnD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;;AAgBnD,wBA2EG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-navigator",
|
|
3
|
-
"version": "25.13.0-beta.
|
|
3
|
+
"version": "25.13.0-beta.47",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
},
|
|
25
25
|
"module": "build/esm/index.js",
|
|
26
26
|
"types": "./build/types/navigator/src/index.d.ts",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "96030d86292ff07de5e5f42a1b99c8482152ab64"
|
|
28
28
|
}
|