@dloizides/ui-nav 1.20.0 → 1.21.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.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -646,9 +646,7 @@ var NavExpandableItem = ({
|
|
|
646
646
|
)) }) })
|
|
647
647
|
] });
|
|
648
648
|
};
|
|
649
|
-
|
|
650
|
-
// src/searchAffordance.ts
|
|
651
|
-
var DEFAULT_SEARCH_BREAKPOINT = 768;
|
|
649
|
+
var DEFAULT_SEARCH_BREAKPOINT = uiLayout.LAYOUT_COLLAPSE_BREAKPOINT;
|
|
652
650
|
function resolveSearchAffordance(viewport, breakpoint = DEFAULT_SEARCH_BREAKPOINT) {
|
|
653
651
|
return viewport >= breakpoint ? "inline" : "palette";
|
|
654
652
|
}
|
|
@@ -1511,9 +1509,7 @@ var MobileDrawer = ({
|
|
|
1511
1509
|
)
|
|
1512
1510
|
] });
|
|
1513
1511
|
};
|
|
1514
|
-
|
|
1515
|
-
// src/railMode.ts
|
|
1516
|
-
var RAIL_FULL_BREAKPOINT = 768;
|
|
1512
|
+
var RAIL_FULL_BREAKPOINT = uiLayout.LAYOUT_COLLAPSE_BREAKPOINT;
|
|
1517
1513
|
var DEFAULT_COLLAPSED_RAIL_MAX = 1024;
|
|
1518
1514
|
function resolveRailMode({ viewport, hasSidebar, hasCollapsed, range }) {
|
|
1519
1515
|
if (!hasSidebar) return "none";
|