@axa-fr/design-system-apollo-react 1.0.5-alpha.297 → 1.0.5-alpha.298

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.
@@ -7,7 +7,7 @@ export const getContentItemCoreProps = ({ IconComponent, BasePictureComponent, t
7
7
  title,
8
8
  primarySubtitle: subtitle1,
9
9
  subtitle: subtitle2,
10
- leftComponent: _jsx(IconComponent, { "data-testid": "icon", src: icon }),
10
+ leftComponent: icon && _jsx(IconComponent, { "data-testid": "icon", src: icon }),
11
11
  };
12
12
  }
13
13
  if (type === "picture") {
@@ -16,7 +16,10 @@ export const getContentItemCoreProps = ({ IconComponent, BasePictureComponent, t
16
16
  leftComponent: (_jsx(BasePictureComponent, { src: props.picture, alt: props.title })),
17
17
  };
18
18
  }
19
- return props;
19
+ return {
20
+ ...props,
21
+ leftComponent: _jsx("div", { className: "stick" }),
22
+ };
20
23
  };
21
24
  export const ContentItemMonoCommon = (props) => {
22
25
  return _jsx(ContentItemMonoCore, { ...getContentItemCoreProps(props) });
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  export const ContentItemMonoCore = ({ size = "medium", leftComponent, title, primarySubtitle, subtitle, }) => {
3
- return (_jsxs("div", { "data-testid": "container", className: `af-content-item-mono ${size}`, children: [leftComponent ?? _jsx("div", { className: "stick" }), _jsxs("div", { className: "text-content", children: [_jsx("span", { className: "title", children: title }), primarySubtitle && (_jsx("span", { className: "subtitle-primary", children: primarySubtitle })), subtitle && _jsx("span", { className: "subtitle", children: subtitle })] })] }));
3
+ return (_jsxs("div", { "data-testid": "container", className: `af-content-item-mono ${size}`, children: [leftComponent, _jsxs("div", { className: "text-content", children: [_jsx("span", { className: "title", children: title }), primarySubtitle && (_jsx("span", { className: "subtitle-primary", children: primarySubtitle })), subtitle && _jsx("span", { className: "subtitle", children: subtitle })] })] }));
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-apollo-react",
3
- "version": "1.0.5-alpha.297",
3
+ "version": "1.0.5-alpha.298",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "homepage": "https://github.com/AxaFrance/design-system#readme",
48
48
  "peerDependencies": {
49
- "@axa-fr/design-system-apollo-css": "1.0.5-alpha.297",
50
- "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.297",
49
+ "@axa-fr/design-system-apollo-css": "1.0.5-alpha.298",
50
+ "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.298",
51
51
  "@material-symbols/svg-400": ">= 0.19.0",
52
52
  "react": ">= 18"
53
53
  },