@mmb-digital/ds-lilly 0.10.43 → 0.10.44

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/ds-lilly.js CHANGED
@@ -105477,13 +105477,14 @@ var IconList = function (_a) {
105477
105477
 
105478
105478
 
105479
105479
  var IconListItem = function (_a) {
105480
- var children = _a.children, iconBackgroundColor = _a.iconBackgroundColor, iconName = _a.iconName, iconSize = _a.iconSize, imageUrl = _a.imageUrl, size = _a.size, testId = _a.testId, textSize = _a.textSize, theme = _a.theme;
105480
+ var avatar = _a.avatar, children = _a.children, iconBackgroundColor = _a.iconBackgroundColor, iconName = _a.iconName, iconSize = _a.iconSize, imageUrl = _a.imageUrl, size = _a.size, testId = _a.testId, textSize = _a.textSize, theme = _a.theme;
105481
105481
  var SIZE = {
105482
105482
  icon: iconSize ? iconSize : size,
105483
105483
  text: textSize ? textSize : size
105484
105484
  };
105485
105485
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("li", { className: classBinder_cx('c-iconList__item', theme), "data-testid": testId },
105486
- (iconName || imageUrl) && (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: classBinder_cx('c-iconList__icon') },
105486
+ (avatar || iconName || imageUrl) && (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: classBinder_cx('c-iconList__icon') },
105487
+ avatar,
105487
105488
  iconName && external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Icon, { backgroundColor: iconBackgroundColor, name: iconName, size: SIZE.icon }),
105488
105489
  imageUrl && external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Avatar, { background: "transparent", imageUrl: imageUrl, size: SIZE.icon }))),
105489
105490
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: classBinder_cx('c-iconList__content', { 'u-textLarge': SIZE.text === 'large' }) }, SIZE.text === 'small' ? external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("small", null, children) : children)));
@@ -5,6 +5,8 @@ export declare type SizeType = 'large' | 'small';
5
5
  export interface IconListItemPropsType extends ComponentPropsType {
6
6
  /** Children to be rendered in the main container. */
7
7
  children: ReactElement;
8
+ /** Avatar as icon */
9
+ avatar?: ReactElement;
8
10
  /** Color of icon background */
9
11
  iconBackgroundColor?: BackgroundColorType;
10
12
  /** Custom icon name */
@@ -18,5 +20,5 @@ export interface IconListItemPropsType extends ComponentPropsType {
18
20
  /** Specific size for text only */
19
21
  textSize?: SizeType;
20
22
  }
21
- export declare const IconListItem: ({ children, iconBackgroundColor, iconName, iconSize, imageUrl, size, testId, textSize, theme }: IconListItemPropsType) => JSX.Element;
23
+ export declare const IconListItem: ({ avatar, children, iconBackgroundColor, iconName, iconSize, imageUrl, size, testId, textSize, theme }: IconListItemPropsType) => JSX.Element;
22
24
  //# sourceMappingURL=IconListItem.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/ds-lilly",
3
- "version": "0.10.43",
3
+ "version": "0.10.44",
4
4
  "description": "MMB LILLY design system",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,