@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.
- package/dist/index.development.js +3 -3
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -2616,11 +2616,11 @@ function ScreenReaderText({ children }) {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
2618
|
const AvatarGroup = (props) => {
|
|
2619
|
-
const {
|
|
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" },
|
|
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;
|