@parrot-co/parrot-ui 0.1.27 → 0.1.28

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/module.js CHANGED
@@ -1441,8 +1441,9 @@ function $ad85ba12e832a3ea$var$MenuItemInner({ state: state, item: item, ...othe
1441
1441
  const { menuItemProps: menuItemProps, isSelected: isSelected, isFocused: isFocused, isPressed: isPressed, isDisabled: isDisabled, descriptionProps: descriptionProps } = (0, $hgUW1$useMenuItem)({
1442
1442
  key: item?.key
1443
1443
  }, state, ref);
1444
+ const ElementType = item.props.href ? "a" : "div";
1444
1445
  const { className: className, style: style, isReadOnly: isReadOnly, icon: icon, color: color, description: description, label: label } = otherProps;
1445
- return /*#__PURE__*/ (0, $hgUW1$jsxs)("li", {
1446
+ return /*#__PURE__*/ (0, $hgUW1$jsxs)(ElementType, {
1446
1447
  ref: ref,
1447
1448
  className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)(className, "p-list-option p-menu-item"),
1448
1449
  "data-selected": isSelected,