@dloizides/ui-nav 1.38.1 → 1.39.1
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 +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -980,6 +980,7 @@ var NAV_TEST_IDS = {
|
|
|
980
980
|
topbarCenter: "topbar-center",
|
|
981
981
|
brandHome: "nav-brand-home",
|
|
982
982
|
brandMarkIcon: "nav-brand-mark-icon",
|
|
983
|
+
brandMarkSlot: "nav-brand-mark-slot",
|
|
983
984
|
brandMarkName: "nav-brand-mark-name"
|
|
984
985
|
};
|
|
985
986
|
var APP_SHELL_SUFFIX = {
|
|
@@ -1103,13 +1104,13 @@ var Topbar = ({
|
|
|
1103
1104
|
style: navStyles.accountNameBtn,
|
|
1104
1105
|
testID: richAccount.accountTestID ?? NAV_TEST_IDS.accountName,
|
|
1105
1106
|
onPress: richAccount.onAccount,
|
|
1106
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
1107
|
+
children: /* @__PURE__ */ jsx(Text, { style: [navStyles.userName, WRAP_ANYWHERE, { color: colors.text }], children: richAccount.displayName })
|
|
1107
1108
|
}
|
|
1108
|
-
) : /* @__PURE__ */ jsx(Text, {
|
|
1109
|
+
) : /* @__PURE__ */ jsx(Text, { style: [navStyles.userName, WRAP_ANYWHERE, { color: colors.text }], testID: NAV_TEST_IDS.accountName, children: richAccount.displayName }),
|
|
1109
1110
|
richAccount.tenantName !== void 0 ? /* @__PURE__ */ jsx(
|
|
1110
1111
|
Text,
|
|
1111
1112
|
{
|
|
1112
|
-
style: [navStyles.accountTenant, { color: colors.textSecondary }],
|
|
1113
|
+
style: [navStyles.accountTenant, WRAP_ANYWHERE, { color: colors.textSecondary }],
|
|
1113
1114
|
testID: NAV_TEST_IDS.accountTenant,
|
|
1114
1115
|
children: richAccount.tenantName
|
|
1115
1116
|
}
|
|
@@ -1720,19 +1721,21 @@ var BrandMark = ({
|
|
|
1720
1721
|
label,
|
|
1721
1722
|
onNavigate,
|
|
1722
1723
|
size = DEFAULT_ICON_SIZE,
|
|
1723
|
-
iconOnly = false
|
|
1724
|
+
iconOnly = false,
|
|
1725
|
+
mark
|
|
1724
1726
|
}) => {
|
|
1725
1727
|
const { theme } = useUi();
|
|
1728
|
+
const box = { height: size, width: size };
|
|
1726
1729
|
return /* @__PURE__ */ jsx(BrandHomeLink, { label, route, onNavigate, children: /* @__PURE__ */ jsxs(View, { style: styles5.row, children: [
|
|
1727
|
-
/* @__PURE__ */ jsx(
|
|
1730
|
+
mark === void 0 ? /* @__PURE__ */ jsx(
|
|
1728
1731
|
Image,
|
|
1729
1732
|
{
|
|
1730
1733
|
accessibilityElementsHidden: true,
|
|
1731
1734
|
source,
|
|
1732
|
-
style:
|
|
1735
|
+
style: box,
|
|
1733
1736
|
testID: NAV_TEST_IDS.brandMarkIcon
|
|
1734
1737
|
}
|
|
1735
|
-
),
|
|
1738
|
+
) : /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, style: box, testID: NAV_TEST_IDS.brandMarkSlot, children: mark }),
|
|
1736
1739
|
iconOnly ? null : /* @__PURE__ */ jsx(
|
|
1737
1740
|
Text,
|
|
1738
1741
|
{
|