@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/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,
@@ -3484,7 +3485,7 @@ function $1278141024f0bc4d$var$Dialog({ width: width = 400, title: title, onCanc
3484
3485
  })
3485
3486
  ]
3486
3487
  }),
3487
- props.isDismissable && showCloseButton && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("button", {
3488
+ showCloseButton && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("button", {
3488
3489
  color: "gray",
3489
3490
  onClick: handleClose,
3490
3491
  "data-variant": "ghost",