@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/main.js CHANGED
@@ -1741,7 +1741,7 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
1741
1741
  isIconButton: {
1742
1742
  true: {
1743
1743
  width: "$$button-base-height",
1744
- px: 0
1744
+ px: "0px !important"
1745
1745
  }
1746
1746
  },
1747
1747
  appearance: {
@@ -4767,10 +4767,12 @@ function $39b5e387b93e95b5$export$e44a253a59704894(props) {
4767
4767
  const items = props.items;
4768
4768
  const action = items.find((item)=>item.key === key)?.action;
4769
4769
  action?.();
4770
+ // 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?
4771
+ if (!action) props.onAction?.(key);
4770
4772
  }
4771
4773
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($39b5e387b93e95b5$var$_Dropdown, {
4772
4774
  ...props,
4773
- onAction: findAction ?? props.onAction,
4775
+ onAction: findAction,
4774
4776
  children: (item)=>/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $E4F9t$reactstately.Item), {
4775
4777
  textValue: item.key,
4776
4778
  children: props.renderOption ? props.renderOption(item) : item.label