@dloizides/ui-nav 1.38.1 → 1.39.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/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 = {
@@ -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: { height: size, width: size },
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
  {