@crystaldesign/diva-navigator 25.13.0-beta.45 → 25.13.0-beta.46

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.
@@ -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
- isMobile = _useDivaCore$state.dimensions.isMobile,
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
- }), !isMobile && /*#__PURE__*/jsx(Buttons, {}), /*#__PURE__*/jsxs("div", {
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
- }), !isMobile && (showOrgName || showUserName) && /*#__PURE__*/jsx(OrganizationName, {
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,wBAwEG"}
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.45",
3
+ "version": "25.13.0-beta.46",
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": "7b04559b1689c99df827dad694b5568a32073b2e"
27
+ "gitHead": "b7e46a56b73ba6fb493131d369575324234ff921"
28
28
  }