@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/module.js
CHANGED
|
@@ -1553,6 +1553,7 @@ const $aca95339810194aa$var$SpaceContext = /*#__PURE__*/ $kF5Av$createContext({
|
|
|
1553
1553
|
function $aca95339810194aa$export$eef1e68107c58ef2({ children: children , compact: compact , gap: gap , ...props }) {
|
|
1554
1554
|
const childrenCount = $kF5Av$Children.count(children);
|
|
1555
1555
|
const nodes = $kF5Av$useMemo(()=>{
|
|
1556
|
+
console.log("rendering space children");
|
|
1556
1557
|
return $kF5Av$Children.map(children, (child, index)=>{
|
|
1557
1558
|
const isFirstChild = index == 0;
|
|
1558
1559
|
const isLastChild = index == childrenCount - 1;
|
|
@@ -1569,7 +1570,9 @@ function $aca95339810194aa$export$eef1e68107c58ef2({ children: children , compac
|
|
|
1569
1570
|
children: child
|
|
1570
1571
|
});
|
|
1571
1572
|
});
|
|
1572
|
-
}, [
|
|
1573
|
+
}, [
|
|
1574
|
+
children
|
|
1575
|
+
]);
|
|
1573
1576
|
const realGap = compact ? undefined : gap;
|
|
1574
1577
|
return /*#__PURE__*/ (0, $kF5Av$jsx)($aca95339810194aa$export$30d85e96e785900a, {
|
|
1575
1578
|
gap: realGap,
|
|
@@ -1696,7 +1699,7 @@ const $6be0cf1a8e0dd120$export$303ef672e091d99 = (0, $9ade691eb9e41cfb$export$db
|
|
|
1696
1699
|
isIconButton: {
|
|
1697
1700
|
true: {
|
|
1698
1701
|
width: "$$button-base-height",
|
|
1699
|
-
px:
|
|
1702
|
+
px: "0px !important"
|
|
1700
1703
|
}
|
|
1701
1704
|
},
|
|
1702
1705
|
appearance: {
|
|
@@ -4722,10 +4725,12 @@ function $b13859906e03ed0f$export$e44a253a59704894(props) {
|
|
|
4722
4725
|
const items = props.items;
|
|
4723
4726
|
const action = items.find((item)=>item.key === key)?.action;
|
|
4724
4727
|
action?.();
|
|
4728
|
+
// 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?
|
|
4729
|
+
if (!action) props.onAction?.(key);
|
|
4725
4730
|
}
|
|
4726
4731
|
return /*#__PURE__*/ (0, $kF5Av$jsx)($b13859906e03ed0f$var$_Dropdown, {
|
|
4727
4732
|
...props,
|
|
4728
|
-
onAction: findAction
|
|
4733
|
+
onAction: findAction,
|
|
4729
4734
|
children: (item)=>/*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$Item), {
|
|
4730
4735
|
textValue: item.key,
|
|
4731
4736
|
children: props.renderOption ? props.renderOption(item) : item.label
|