@parrot-co/parrot-ui 0.1.27 → 0.1.31

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/main.js CHANGED
@@ -1511,8 +1511,9 @@ function $724eace27ebf345b$var$MenuItemInner({ state: state, item: item, ...othe
1511
1511
  const { menuItemProps: menuItemProps, isSelected: isSelected, isFocused: isFocused, isPressed: isPressed, isDisabled: isDisabled, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useMenuItem)({
1512
1512
  key: item?.key
1513
1513
  }, state, ref);
1514
+ const ElementType = item.props.href ? "a" : "div";
1514
1515
  const { className: className, style: style, isReadOnly: isReadOnly, icon: icon, color: color, description: description, label: label } = otherProps;
1515
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("li", {
1516
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)(ElementType, {
1516
1517
  ref: ref,
1517
1518
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option p-menu-item"),
1518
1519
  "data-selected": isSelected,