@jsenv/navi 0.12.1 → 0.12.2

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.
@@ -12510,9 +12510,18 @@ const CharSlot = ({
12510
12510
  });
12511
12511
  };
12512
12512
  const Icon = ({
12513
+ box,
12513
12514
  children,
12514
12515
  ...props
12515
12516
  }) => {
12517
+ if (box) {
12518
+ return jsx(Box, {
12519
+ layoutInline: true,
12520
+ layoutColumn: true,
12521
+ ...props,
12522
+ children: children
12523
+ });
12524
+ }
12516
12525
  return jsx(CharSlot, {
12517
12526
  decorative: true,
12518
12527
  ...props,
@@ -13002,7 +13011,6 @@ const LinkWithAction = props => {
13002
13011
  const RouteLink = ({
13003
13012
  route,
13004
13013
  routeParams,
13005
- active,
13006
13014
  children,
13007
13015
  ...rest
13008
13016
  }) => {
@@ -13011,11 +13019,13 @@ const RouteLink = ({
13011
13019
  }
13012
13020
  const routeStatus = useRouteStatus(route);
13013
13021
  const url = route.buildUrl(routeParams);
13014
- const innerActive = active || routeStatus.active;
13022
+ const routeIsActive = routeStatus.active;
13015
13023
  return jsx(Link, {
13016
13024
  ...rest,
13017
13025
  href: url,
13018
- active: innerActive,
13026
+ pseudoState: {
13027
+ ":-navi-current-link": routeIsActive
13028
+ },
13019
13029
  children: children
13020
13030
  });
13021
13031
  };