@parrot-co/parrot-ui 0.0.74 → 0.0.75

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
@@ -1696,7 +1696,7 @@ const $6be0cf1a8e0dd120$export$303ef672e091d99 = (0, $9ade691eb9e41cfb$export$db
1696
1696
  isIconButton: {
1697
1697
  true: {
1698
1698
  width: "$$button-base-height",
1699
- px: 0
1699
+ px: "0px !important"
1700
1700
  }
1701
1701
  },
1702
1702
  appearance: {
@@ -4722,10 +4722,12 @@ function $b13859906e03ed0f$export$e44a253a59704894(props) {
4722
4722
  const items = props.items;
4723
4723
  const action = items.find((item)=>item.key === key)?.action;
4724
4724
  action?.();
4725
+ // not sure if we should still call onAction if action is present on item. but let's do this for now...maybe we put it behind a flag?
4726
+ if (!action) props.onAction?.(key);
4725
4727
  }
4726
4728
  return /*#__PURE__*/ (0, $kF5Av$jsx)($b13859906e03ed0f$var$_Dropdown, {
4727
4729
  ...props,
4728
- onAction: findAction ?? props.onAction,
4730
+ onAction: findAction,
4729
4731
  children: (item)=>/*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$Item), {
4730
4732
  textValue: item.key,
4731
4733
  children: props.renderOption ? props.renderOption(item) : item.label