@xqmsg/ui-core 0.18.7 → 0.18.8

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.
@@ -3,6 +3,7 @@ import { Button as Button$2, Alert as Alert$1, AlertDescription, Flex, Box, Text
3
3
  import { FormProvider, useWatch, Controller } from 'react-hook-form';
4
4
  import { debounce, truncate } from 'lodash-es';
5
5
  import { QuestionOutlineIcon, CloseIcon, HamburgerIcon } from '@chakra-ui/icons';
6
+ import { Link as Link$3 } from 'react-router-dom';
6
7
  import { HiOutlineRefresh } from 'react-icons/hi';
7
8
  import { ChakraProvider } from '@chakra-ui/provider';
8
9
  import { createBreakpoints, transparentize, mode, getColor } from '@chakra-ui/theme-tools';
@@ -2856,22 +2857,31 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
2856
2857
  var label = _ref.label,
2857
2858
  leftIcon = _ref.leftIcon,
2858
2859
  href = _ref.href,
2860
+ to = _ref.to,
2859
2861
  rightIcon = _ref.rightIcon,
2860
2862
  isExternal = _ref.isExternal,
2861
2863
  isSelected = _ref.isSelected,
2862
2864
  onClick = _ref.onClick;
2863
2865
  var additionalProps = {};
2866
+ var reactRouterLinkProps = {};
2867
+
2868
+ if (to) {
2869
+ reactRouterLinkProps = {
2870
+ to: to,
2871
+ as: Link$3
2872
+ };
2873
+ }
2864
2874
 
2865
2875
  if (isExternal) {
2866
2876
  additionalProps = _extends$6({}, additionalProps, {
2867
2877
  referrerPolicy: 'no-referrer',
2868
- target: '_blank'
2878
+ target: '_blank',
2879
+ href: href,
2880
+ isExternal: true
2869
2881
  });
2870
2882
  }
2871
2883
 
2872
- return /*#__PURE__*/React__default.createElement(Link$2, Object.assign({
2873
- href: href
2874
- }, additionalProps, {
2884
+ return /*#__PURE__*/React__default.createElement(Link$2, Object.assign({}, reactRouterLinkProps, additionalProps, {
2875
2885
  onClick: onClick,
2876
2886
  display: "flex",
2877
2887
  alignItems: "center",