@parrot-co/parrot-ui 0.0.74 → 0.0.76
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 +8 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1598,6 +1598,7 @@ const $78991f4fdd965321$var$SpaceContext = /*#__PURE__*/ $E4F9t$react.createCont
|
|
|
1598
1598
|
function $78991f4fdd965321$export$eef1e68107c58ef2({ children: children , compact: compact , gap: gap , ...props }) {
|
|
1599
1599
|
const childrenCount = $E4F9t$react.Children.count(children);
|
|
1600
1600
|
const nodes = $E4F9t$react.useMemo(()=>{
|
|
1601
|
+
console.log("rendering space children");
|
|
1601
1602
|
return $E4F9t$react.Children.map(children, (child, index)=>{
|
|
1602
1603
|
const isFirstChild = index == 0;
|
|
1603
1604
|
const isLastChild = index == childrenCount - 1;
|
|
@@ -1614,7 +1615,9 @@ function $78991f4fdd965321$export$eef1e68107c58ef2({ children: children , compac
|
|
|
1614
1615
|
children: child
|
|
1615
1616
|
});
|
|
1616
1617
|
});
|
|
1617
|
-
}, [
|
|
1618
|
+
}, [
|
|
1619
|
+
children
|
|
1620
|
+
]);
|
|
1618
1621
|
const realGap = compact ? undefined : gap;
|
|
1619
1622
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($78991f4fdd965321$export$30d85e96e785900a, {
|
|
1620
1623
|
gap: realGap,
|
|
@@ -1741,7 +1744,7 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
|
|
|
1741
1744
|
isIconButton: {
|
|
1742
1745
|
true: {
|
|
1743
1746
|
width: "$$button-base-height",
|
|
1744
|
-
px:
|
|
1747
|
+
px: "0px !important"
|
|
1745
1748
|
}
|
|
1746
1749
|
},
|
|
1747
1750
|
appearance: {
|
|
@@ -4767,10 +4770,12 @@ function $39b5e387b93e95b5$export$e44a253a59704894(props) {
|
|
|
4767
4770
|
const items = props.items;
|
|
4768
4771
|
const action = items.find((item)=>item.key === key)?.action;
|
|
4769
4772
|
action?.();
|
|
4773
|
+
// 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?
|
|
4774
|
+
if (!action) props.onAction?.(key);
|
|
4770
4775
|
}
|
|
4771
4776
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($39b5e387b93e95b5$var$_Dropdown, {
|
|
4772
4777
|
...props,
|
|
4773
|
-
onAction: findAction
|
|
4778
|
+
onAction: findAction,
|
|
4774
4779
|
children: (item)=>/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $E4F9t$reactstately.Item), {
|
|
4775
4780
|
textValue: item.key,
|
|
4776
4781
|
children: props.renderOption ? props.renderOption(item) : item.label
|