@dloizides/ui-nav 1.23.0 → 1.23.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/dist/index.d.mts CHANGED
@@ -1340,6 +1340,9 @@ declare const navStyles: {
1340
1340
  topbarRowItem: {
1341
1341
  marginHorizontal: number;
1342
1342
  alignItems: "center";
1343
+ justifyContent: "center";
1344
+ minHeight: number;
1345
+ minWidth: number;
1343
1346
  };
1344
1347
  topbarLabel: {
1345
1348
  fontSize: number;
@@ -1351,6 +1354,12 @@ declare const navStyles: {
1351
1354
  userName: {
1352
1355
  fontWeight: "600";
1353
1356
  };
1357
+ accountNameBtn: {
1358
+ minHeight: number;
1359
+ minWidth: number;
1360
+ justifyContent: "center";
1361
+ alignItems: "flex-end";
1362
+ };
1354
1363
  userEmail: {
1355
1364
  fontSize: number;
1356
1365
  };
package/dist/index.d.ts CHANGED
@@ -1340,6 +1340,9 @@ declare const navStyles: {
1340
1340
  topbarRowItem: {
1341
1341
  marginHorizontal: number;
1342
1342
  alignItems: "center";
1343
+ justifyContent: "center";
1344
+ minHeight: number;
1345
+ minWidth: number;
1343
1346
  };
1344
1347
  topbarLabel: {
1345
1348
  fontSize: number;
@@ -1351,6 +1354,12 @@ declare const navStyles: {
1351
1354
  userName: {
1352
1355
  fontWeight: "600";
1353
1356
  };
1357
+ accountNameBtn: {
1358
+ minHeight: number;
1359
+ minWidth: number;
1360
+ justifyContent: "center";
1361
+ alignItems: "flex-end";
1362
+ };
1354
1363
  userEmail: {
1355
1364
  fontSize: number;
1356
1365
  };
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ var uiFeedback = require('@dloizides/ui-feedback');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var uiMotion = require('@dloizides/ui-motion');
8
8
  var uiLayout = require('@dloizides/ui-layout');
9
+ var designTokens = require('@dloizides/design-tokens');
9
10
  var authWeb = require('@dloizides/auth-web');
10
11
 
11
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -71,10 +72,22 @@ var navStyles = reactNative.StyleSheet.create({
71
72
  },
72
73
  topbarLeft: { flex: 1 },
73
74
  topbarRight: { flexDirection: "row", alignItems: "center" },
74
- topbarRowItem: { marginHorizontal: 8, alignItems: "center" },
75
+ topbarRowItem: {
76
+ marginHorizontal: 8,
77
+ alignItems: "center",
78
+ justifyContent: "center",
79
+ minHeight: MIN_TOUCH_TARGET,
80
+ minWidth: MIN_TOUCH_TARGET
81
+ },
75
82
  topbarLabel: { fontSize: 14 },
76
83
  userBlock: { marginHorizontal: 12, alignItems: "flex-end" },
77
84
  userName: { fontWeight: "600" },
85
+ accountNameBtn: {
86
+ minHeight: MIN_TOUCH_TARGET,
87
+ minWidth: MIN_TOUCH_TARGET,
88
+ justifyContent: "center",
89
+ alignItems: "flex-end"
90
+ },
78
91
  userEmail: { fontSize: 12 },
79
92
  accountBtn: {
80
93
  marginLeft: 8,
@@ -976,6 +989,7 @@ var Topbar = ({
976
989
  accessibilityHint: richAccount.accountHint ?? richAccount.displayName,
977
990
  accessibilityLabel: richAccount.displayName,
978
991
  ringColor: primaryColor,
992
+ style: navStyles.accountNameBtn,
979
993
  testID: richAccount.accountTestID ?? NAV_TEST_IDS.accountName,
980
994
  onPress: richAccount.onAccount,
981
995
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [navStyles.userName, { color: colors.text }], children: richAccount.displayName })
@@ -1460,7 +1474,7 @@ var SCRIM_COLOR = "rgba(0, 0, 0, 0.5)";
1460
1474
  var MENU_GLYPH2 = "\u2630";
1461
1475
  var MENU_GLYPH_FONT_SIZE = 20;
1462
1476
  var MENU_TOGGLE_PADDING = 12;
1463
- var DRAWER_Z_INDEX = 50;
1477
+ var DRAWER_Z_INDEX = designTokens.Z_INDEX.drawer;
1464
1478
  var DRAWER_WIDTH = 280;
1465
1479
  var SCRIM_Z_INDEX = 1;
1466
1480
  var PANEL_Z_INDEX = 2;
@@ -1977,7 +1991,7 @@ function filterCommands(items, query) {
1977
1991
  });
1978
1992
  }
1979
1993
  var SCRIM_COLOR2 = "rgba(0, 0, 0, 0.5)";
1980
- var OVERLAY_Z_INDEX = 60;
1994
+ var OVERLAY_Z_INDEX = designTokens.Z_INDEX.palette;
1981
1995
  var PANEL_MAX_WIDTH = 560;
1982
1996
  var PANEL_TOP_OFFSET = 88;
1983
1997
  var LIST_MAX_HEIGHT = 360;