@luscii-healthtech/web-ui 30.8.0 → 30.8.2

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.
@@ -2616,11 +2616,11 @@ function ScreenReaderText({ children }) {
2616
2616
  }
2617
2617
 
2618
2618
  const AvatarGroup = (props) => {
2619
- const { children, maxAvatars = 3 } = props;
2619
+ const { as: Element = "div", outlineColor: _, maxAvatars = 3, moreAvatarsLabel: __ } = props, rest = __rest(props, ["as", "outlineColor", "maxAvatars", "moreAvatarsLabel"]);
2620
2620
  return React__namespace.default.createElement(
2621
2621
  Stack,
2622
- Object.assign({ axis: "x", align: "center" }, props),
2623
- React__namespace.default.Children.map(children, (child, index) => {
2622
+ Object.assign({ as: Element, axis: "x", align: "center" }, rest),
2623
+ React__namespace.default.Children.map(props.children, (child, index) => {
2624
2624
  if (!React__namespace.default.isValidElement(child)) {
2625
2625
  console.error(`AvatarGroup only accepts children of type Avatar, but received an invalid React element.`);
2626
2626
  return null;