@jsenv/navi 0.11.18 → 0.11.20

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.
@@ -11766,7 +11766,7 @@ const LinkPlain = forwardRef((props, ref) => {
11766
11766
  blankTargetIcon,
11767
11767
  anchorIcon,
11768
11768
  icon,
11769
- pointerDefaultWhenCurrent,
11769
+ cursorDefaultWhenCurrent,
11770
11770
  ...rest
11771
11771
  } = props;
11772
11772
  const innerRef = useRef();
@@ -11786,7 +11786,7 @@ const LinkPlain = forwardRef((props, ref) => {
11786
11786
  const innerClassName = withPropsClassName("navi_link", className);
11787
11787
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
11788
11788
  base: {
11789
- pointer: pointerDefaultWhenCurrent && targetIsCurrent ? "default" : undefined
11789
+ cursor: cursorDefaultWhenCurrent && targetIsCurrent ? "default" : undefined
11790
11790
  },
11791
11791
  layout: true,
11792
11792
  typo: true
@@ -11983,20 +11983,20 @@ const LinkWithAction = forwardRef((props, ref) => {
11983
11983
  const RouteLink = ({
11984
11984
  route,
11985
11985
  routeParams,
11986
+ active,
11986
11987
  children,
11987
11988
  ...rest
11988
11989
  }) => {
11989
11990
  if (!route) {
11990
- throw new Error("RouteLink: route prop is required");
11991
+ throw new Error("route prop is required");
11991
11992
  }
11992
- const {
11993
- active
11994
- } = useRouteStatus(route);
11993
+ const routeStatus = useRouteStatus(route);
11995
11994
  const url = route.buildUrl(routeParams);
11995
+ const innerActive = active || routeStatus.active;
11996
11996
  return jsx(Link, {
11997
11997
  ...rest,
11998
11998
  href: url,
11999
- active: active ? "" : undefined,
11999
+ active: innerActive,
12000
12000
  children: children
12001
12001
  });
12002
12002
  };