@axa-fr/design-system-look-and-feel-react 0.3.0-ci.286 → 0.3.0-ci.288

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/Card/Card.js CHANGED
@@ -4,6 +4,5 @@ import { getComponentClassName } from "../utilities";
4
4
  export const Card = ({ children, className, classModifier, onClick, ...otherProps }) => {
5
5
  const componentClassName = useMemo(() => getComponentClassName(className, classModifier, "af-card"), [className, classModifier]);
6
6
  const Component = useMemo(() => (onClick ? "button" : "section"), [onClick]);
7
- const componentProps = useMemo(() => (onClick ? { type: "button", onClick } : { tabIndex: 0 }), [onClick]);
8
- return (_jsx(Component, { className: componentClassName, ...componentProps, ...otherProps, children: children }));
7
+ return (_jsx(Component, { className: componentClassName, ...(onClick ? { type: "button", onClick } : {}), ...otherProps, children: children }));
9
8
  };
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { List } from "..";
3
3
  import { ClickItem } from "./ClickItem";
4
- export const ClickList = ({ items, classModifier }) => (_jsx(List, { classModifier: `click-list ${classModifier}`, tabIndex: -1, children: items.map(({ id, ...props }) => (_jsx(ClickItem, { id: id, ...props }, id))) }));
4
+ export const ClickList = ({ items, classModifier }) => (_jsx(List, { classModifier: `click-list ${classModifier}`, children: items.map(({ id, ...props }) => (_jsx(ClickItem, { id: id, ...props }, id))) }));
@@ -5,5 +5,5 @@ import { BREAKPOINT, useIsSmallScreen } from "../../utilities";
5
5
  import { ContentTabItem } from "./ContentTabItem";
6
6
  export const ContentTabList = ({ items, classModifier, }) => {
7
7
  const isMobile = useIsSmallScreen(BREAKPOINT.SM);
8
- return (_jsx(List, { classModifier: `list large extra-padding content-tab-list ${classModifier}`, tabIndex: -1, children: items.map(({ id, ...item }) => (_jsx(ContentTabItem, { ...item, isMobile: isMobile }, id ?? item.title))) }));
8
+ return (_jsx(List, { classModifier: `list large extra-padding content-tab-list ${classModifier}`, children: items.map(({ id, ...item }) => (_jsx(ContentTabItem, { ...item, isMobile: isMobile }, id ?? item.title))) }));
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-look-and-feel-react",
3
- "version": "0.3.0-ci.286",
3
+ "version": "0.3.0-ci.288",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "homepage": "https://github.com/AxaFrance/design-system#readme",
47
47
  "peerDependencies": {
48
- "@axa-fr/design-system-look-and-feel-css": "0.3.0-ci.286",
48
+ "@axa-fr/design-system-look-and-feel-css": "0.3.0-ci.288",
49
49
  "@material-symbols/svg-400": ">= 0.19.0",
50
50
  "react": ">= 18"
51
51
  },