@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.mjs CHANGED
@@ -3,7 +3,7 @@ import { Platform, StyleSheet, Pressable, Text, View, TextInput, useWindowDimens
3
3
  import { useUi, UiProvider } from '@dloizides/ui-feedback';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import { Collapse } from '@dloizides/ui-motion';
6
- import { ModalDropdown } from '@dloizides/ui-layout';
6
+ import { LAYOUT_COLLAPSE_BREAKPOINT, ModalDropdown } from '@dloizides/ui-layout';
7
7
  import { resolveAccessibleRoutes } from '@dloizides/auth-web';
8
8
 
9
9
  // src/Sidebar.tsx
@@ -640,9 +640,7 @@ var NavExpandableItem = ({
640
640
  )) }) })
641
641
  ] });
642
642
  };
643
-
644
- // src/searchAffordance.ts
645
- var DEFAULT_SEARCH_BREAKPOINT = 768;
643
+ var DEFAULT_SEARCH_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
646
644
  function resolveSearchAffordance(viewport, breakpoint = DEFAULT_SEARCH_BREAKPOINT) {
647
645
  return viewport >= breakpoint ? "inline" : "palette";
648
646
  }
@@ -1505,9 +1503,7 @@ var MobileDrawer = ({
1505
1503
  )
1506
1504
  ] });
1507
1505
  };
1508
-
1509
- // src/railMode.ts
1510
- var RAIL_FULL_BREAKPOINT = 768;
1506
+ var RAIL_FULL_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
1511
1507
  var DEFAULT_COLLAPSED_RAIL_MAX = 1024;
1512
1508
  function resolveRailMode({ viewport, hasSidebar, hasCollapsed, range }) {
1513
1509
  if (!hasSidebar) return "none";