@dloizides/ui-nav 1.30.0 → 1.31.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.d.mts +13 -17
- package/dist/index.d.ts +13 -17
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,9 @@ var navStyles = StyleSheet.create({
|
|
|
28
28
|
borderRightWidth: 1,
|
|
29
29
|
height: "100%"
|
|
30
30
|
},
|
|
31
|
+
sidebarBrand: {
|
|
32
|
+
marginBottom: 12
|
|
33
|
+
},
|
|
31
34
|
sidebarTitle: {
|
|
32
35
|
fontWeight: "700",
|
|
33
36
|
marginBottom: 12
|
|
@@ -815,7 +818,7 @@ var Sidebar = ({
|
|
|
815
818
|
containerStyle
|
|
816
819
|
],
|
|
817
820
|
children: [
|
|
818
|
-
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [navStyles.sidebarTitle, { color: colors.text }], children: title }),
|
|
821
|
+
typeof title === "string" ? /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [navStyles.sidebarTitle, { color: colors.text }], children: title }) : /* @__PURE__ */ jsx(View, { style: navStyles.sidebarBrand, children: title }),
|
|
819
822
|
showInlineSearch && search !== void 0 ? /* @__PURE__ */ jsx(
|
|
820
823
|
SidebarSearch,
|
|
821
824
|
{
|
|
@@ -2067,7 +2070,7 @@ var NavShell = ({
|
|
|
2067
2070
|
renderChevron: sideRail.renderChevron,
|
|
2068
2071
|
search: sideRail.search,
|
|
2069
2072
|
searchQuery: sideRail.searchQuery,
|
|
2070
|
-
title: sideRail.title,
|
|
2073
|
+
title: sideRail.brand ?? sideRail.title,
|
|
2071
2074
|
onNavigate,
|
|
2072
2075
|
onSearchChange: sideRail.onSearchChange
|
|
2073
2076
|
}
|