@ecohouse/ui 0.1.55 → 0.1.56
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.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Sidebar/Sidebar.stories.tsx +2 -0
- package/src/components/Sidebar/Sidebar.tsx +25 -6
package/dist/index.cjs
CHANGED
|
@@ -33361,6 +33361,7 @@ var Sidebar = react.forwardRef(function Sidebar2({
|
|
|
33361
33361
|
items,
|
|
33362
33362
|
user,
|
|
33363
33363
|
onLogOut,
|
|
33364
|
+
onLogoPress,
|
|
33364
33365
|
logoAccessibilityLabel = "Cortel Booking",
|
|
33365
33366
|
navigationAccessibilityLabel = "Account navigation",
|
|
33366
33367
|
collapseAccessibilityLabel = "Collapse sidebar",
|
|
@@ -33437,7 +33438,24 @@ var Sidebar = react.forwardRef(function Sidebar2({
|
|
|
33437
33438
|
],
|
|
33438
33439
|
accessibilityElementsHidden: collapsed,
|
|
33439
33440
|
importantForAccessibility: collapsed ? "no-hide-descendants" : "auto",
|
|
33440
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33441
|
+
children: onLogoPress ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33442
|
+
reactNative.Pressable,
|
|
33443
|
+
{
|
|
33444
|
+
accessibilityRole: "link",
|
|
33445
|
+
accessibilityLabel: logoAccessibilityLabel,
|
|
33446
|
+
hitSlop: 8,
|
|
33447
|
+
onPress: onLogoPress,
|
|
33448
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33449
|
+
BrandLogo,
|
|
33450
|
+
{
|
|
33451
|
+
accessibilityLabel: logoAccessibilityLabel,
|
|
33452
|
+
height: LOGO_HEIGHT,
|
|
33453
|
+
variant: "brand",
|
|
33454
|
+
width: LOGO_WIDTH
|
|
33455
|
+
}
|
|
33456
|
+
)
|
|
33457
|
+
}
|
|
33458
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
33441
33459
|
BrandLogo,
|
|
33442
33460
|
{
|
|
33443
33461
|
accessibilityLabel: logoAccessibilityLabel,
|