@dloizides/ui-nav 1.9.0 → 1.10.0
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/CHANGELOG.md +34 -0
- package/dist/index.d.mts +22 -3
- package/dist/index.d.ts +22 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -534,6 +534,7 @@ var Topbar = ({
|
|
|
534
534
|
accessibilityLabel: language.label,
|
|
535
535
|
ringColor: primaryColor,
|
|
536
536
|
style: navStyles.topbarRowItem,
|
|
537
|
+
testID: language.testID,
|
|
537
538
|
onPress: language.onPress,
|
|
538
539
|
children: /* @__PURE__ */ jsx(Text, { style: [navStyles.topbarLabel, { color: colors.text }], children: language.label })
|
|
539
540
|
}
|
|
@@ -547,10 +548,10 @@ var Topbar = ({
|
|
|
547
548
|
richAccount.onAccount ? /* @__PURE__ */ jsx(
|
|
548
549
|
FocusableTouchable,
|
|
549
550
|
{
|
|
550
|
-
accessibilityHint: richAccount.displayName,
|
|
551
|
+
accessibilityHint: richAccount.accountHint ?? richAccount.displayName,
|
|
551
552
|
accessibilityLabel: richAccount.displayName,
|
|
552
553
|
ringColor: primaryColor,
|
|
553
|
-
testID: NAV_TEST_IDS.accountName,
|
|
554
|
+
testID: richAccount.accountTestID ?? NAV_TEST_IDS.accountName,
|
|
554
555
|
onPress: richAccount.onAccount,
|
|
555
556
|
children: /* @__PURE__ */ jsx(Text, { style: [navStyles.userName, { color: colors.text }], children: richAccount.displayName })
|
|
556
557
|
}
|
|
@@ -1235,8 +1236,8 @@ var CollapsedRail = ({
|
|
|
1235
1236
|
}
|
|
1236
1237
|
);
|
|
1237
1238
|
};
|
|
1238
|
-
function wantsTopBar(layout, hasHeader
|
|
1239
|
-
return layout === "top" || layout === "both" || hasHeader
|
|
1239
|
+
function wantsTopBar(layout, hasHeader) {
|
|
1240
|
+
return layout === "top" || layout === "both" || hasHeader;
|
|
1240
1241
|
}
|
|
1241
1242
|
function wantsSideRail(layout, hasSideRail) {
|
|
1242
1243
|
return (layout === "side" || layout === "both") && hasSideRail;
|
|
@@ -1255,7 +1256,7 @@ var NavShell = ({
|
|
|
1255
1256
|
collapsedRailRange: collapsedRailRangeProp,
|
|
1256
1257
|
...shellProps
|
|
1257
1258
|
}) => {
|
|
1258
|
-
const showTopBar = wantsTopBar(layout, header !== void 0
|
|
1259
|
+
const showTopBar = wantsTopBar(layout, header !== void 0);
|
|
1259
1260
|
const showSideRail = wantsSideRail(layout, sideRail !== void 0);
|
|
1260
1261
|
const headerNode = header !== void 0 ? header : showTopBar && topBar !== void 0 ? /* @__PURE__ */ jsx(
|
|
1261
1262
|
NavBar,
|