@parrot-co/parrot-ui 0.1.26 → 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,
@@ -3414,7 +3415,7 @@ function $4bad2c10a2b6e638$var$Dialog({ width: width = 400, title: title, onCanc
3414
3415
  })
3415
3416
  ]
3416
3417
  }),
3417
- props.isDismissable && showCloseButton && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3418
+ showCloseButton && /*#__PURE__*/ (0, $hgUW1$jsx)("button", {
3418
3419
  color: "gray",
3419
3420
  onClick: handleClose,
3420
3421
  "data-variant": "ghost",