@axa-fr/design-system-look-and-feel-react 0.3.0-ci.293 → 0.3.0-ci.294
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.
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import arrowBack from "@material-symbols/svg-400/outlined/arrow_back.svg";
|
3
2
|
import "@axa-fr/design-system-look-and-feel-css/dist/Layout/Header/PreviousLink/PreviousLink.scss";
|
3
|
+
import arrowBack from "@material-symbols/svg-400/outlined/arrow_back.svg";
|
4
4
|
import React, { isValidElement, useMemo, } from "react";
|
5
5
|
import { Svg } from "../../../Svg";
|
6
6
|
const PreviousLink = ({ handleClick, children, ...otherProps }) => {
|
7
7
|
const validChildren = useMemo(() => (React.Children.map(children, (child) => isValidElement(child) && child) ?? []).filter((c) => Boolean(c)), [children]);
|
8
8
|
return (_jsx("div", { className: "af-header-previous-link-container", ...otherProps, children: React.Children.map(validChildren, (child) => React.cloneElement(child, {
|
9
|
-
children: (_jsxs(_Fragment, { children: [_jsx(Svg, {
|
10
|
-
className: "af-header-previous-link",
|
9
|
+
children: (_jsxs(_Fragment, { children: [_jsx(Svg, { src: arrowBack }), child.props.children] })),
|
10
|
+
className: "af-btn-client af-btn-client--ghost af-btn-client--header-previous-link",
|
11
11
|
onClick: handleClick,
|
12
12
|
})) }));
|
13
13
|
};
|
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.
|
3
|
+
"version": "0.3.0-ci.294",
|
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.
|
48
|
+
"@axa-fr/design-system-look-and-feel-css": "0.3.0-ci.294",
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
50
50
|
"react": ">= 18"
|
51
51
|
},
|