@northlight/ui 2.28.8 → 2.28.9
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/es/northlight.js
CHANGED
|
@@ -1776,7 +1776,12 @@ const AvatarGroup = (_a) => {
|
|
|
1776
1776
|
"spacing"
|
|
1777
1777
|
]);
|
|
1778
1778
|
const [nbrRemainingAvatars, setNbrRemainingAvatars] = useState(0);
|
|
1779
|
-
|
|
1779
|
+
const childrenWithMargin = getChildrenWithProps(
|
|
1780
|
+
children,
|
|
1781
|
+
{ ml: spacing },
|
|
1782
|
+
(_child, idx) => idx > 0
|
|
1783
|
+
);
|
|
1784
|
+
return /* @__PURE__ */ React.createElement(HStack, __spreadValues$1_({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small$1, { sx: { color: "blue.500" } }, "+", nbrRemainingAvatars));
|
|
1780
1785
|
};
|
|
1781
1786
|
|
|
1782
1787
|
var __defProp$1Z = Object.defineProperty;
|