kiban-design-system 1.0.268-alpha.0 → 1.0.270-alpha.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 CHANGED
@@ -9998,7 +9998,7 @@ const COMPONENT_NAME$p = 'AlphaSideMenu__Item';
9998
9998
  const Item$3 = ({ label, isDisabled, icon, onClick, isActive: isActiveProp, subNavigationItems, truncateText, anchorProps, isCollapsed: isCollapsedProp, isSubNavigation, isExternal, isExact, url, }) => {
9999
9999
  const { anchorComponent, collapsed, setCurrentTierItems, location } = useContext(SideMenuContext);
10000
10000
  const isCollapsed = isCollapsedProp !== undefined ? isCollapsedProp : collapsed;
10001
- const AnchorComponent = anchorComponent || 'a';
10001
+ const AnchorComponent = !isExternal ? anchorComponent || 'a' : 'a';
10002
10002
  const isActive = useMemo(() => {
10003
10003
  if (location && url) {
10004
10004
  return isExact
@@ -10051,8 +10051,8 @@ const Section$1 = ({ items, fill, title, isCollapsed: isCollapsedProp, areSubNav
10051
10051
  // layout
10052
10052
  className: titleClassNames }, { children: jsx("span", { children: title }, void 0) }), void 0)) : null;
10053
10053
  const renderItem = (item, index) => {
10054
- const { label, isDisabled, icon, onClick, isActive, subNavigationItems, truncateText, anchorProps, url, isExact, } = item;
10055
- return (jsx(Item$3, { label: label, isDisabled: isDisabled, icon: icon, onClick: onClick, isActive: isActive, subNavigationItems: subNavigationItems, truncateText: truncateText, anchorProps: anchorProps, isCollapsed: isCollapsed, isSubNavigation: areSubNavigationItems, url: url, isExact: isExact }, `alpha-side-menu-item-${index}`));
10054
+ const { label, isDisabled, icon, onClick, isActive, subNavigationItems, truncateText, anchorProps, url, isExact, isExternal, } = item;
10055
+ return (jsx(Item$3, { label: label, isDisabled: isDisabled, icon: icon, onClick: onClick, isActive: isActive, subNavigationItems: subNavigationItems, truncateText: truncateText, anchorProps: anchorProps, isCollapsed: isCollapsed, isSubNavigation: areSubNavigationItems, url: url, isExact: isExact, isExternal: isExternal }, `alpha-side-menu-item-${index}`));
10056
10056
  };
10057
10057
  const itemsMarkup = items && items.length > 0 ? (jsx("ul", Object.assign({ className: `${COMPONENT_NAME$o}__Items` }, { children: items.map(renderItem) }), void 0)) : null;
10058
10058
  const classNames = cssClassName(COMPONENT_NAME$o, fill && 'isFill');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiban-design-system",
3
- "version": "1.0.268-alpha.0",
3
+ "version": "1.0.270-alpha.0",
4
4
  "description": "",
5
5
  "author": "Kiban",
6
6
  "license": "",