@axa-fr/design-system-look-and-feel-react 1.0.3-alpha.206 → 1.0.3-alpha.208

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,10 +1 @@
1
- import { ComponentPropsWithoutRef, PropsWithChildren, type ReactNode } from "react";
2
- type LinkProps = {
3
- openInNewTab?: boolean;
4
- leftIcon?: ReactNode;
5
- rightIcon?: ReactNode;
6
- className?: string;
7
- classModifier?: string;
8
- } & ComponentPropsWithoutRef<"a">;
9
- export declare const Link: ({ href, openInNewTab, leftIcon, rightIcon, children, className, classModifier, ...props }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
10
- export {};
1
+ export { Link } from "@axa-fr/design-system-apollo-react/lf";
package/dist/Link/Link.js CHANGED
@@ -1,14 +1 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import openInNew from "@material-symbols/svg-400/outlined/open_in_new.svg";
3
- import { useMemo, } from "react";
4
- import { Svg } from "../Svg";
5
- import { getComponentClassName } from "../utilities";
6
- export const Link = ({ href, openInNewTab = false, leftIcon, rightIcon, children, className, classModifier = "", ...props }) => {
7
- const newTabProps = openInNewTab && {
8
- target: "_blank",
9
- rel: "noopener noreferrer",
10
- };
11
- const componentClassName = useMemo(() => getComponentClassName("af-link", className, `${classModifier}${!className && openInNewTab ? " openInNewTab" : ""}`), [classModifier, className, openInNewTab]);
12
- return (_jsxs("a", { className: componentClassName, href: href, ...newTabProps, ...props, children: [leftIcon, children, (openInNewTab || Boolean(rightIcon)) &&
13
- (rightIcon ?? _jsx(Svg, { src: openInNew }))] }));
14
- };
1
+ export { Link } from "@axa-fr/design-system-apollo-react/lf";
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export { DebugGrid } from "./Grid/DebugGrid";
20
20
  export { IconBg } from "./IconBg";
21
21
  export { Footer } from "./Layout/Footer/Footer";
22
22
  export { BurgerMenu, Header, NavBar, PreviousLink } from "./Layout/Header";
23
- export { Link } from "./Link";
23
+ export { Link } from "./Link/Link";
24
24
  export { List } from "./List";
25
25
  export { ClickItem, createClickItemParent } from "./List/ClickItem";
26
26
  export { ContentItemDuo } from "./List/ContentItemDuo";
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ export { DebugGrid } from "./Grid/DebugGrid";
19
19
  export { IconBg } from "./IconBg";
20
20
  export { Footer } from "./Layout/Footer/Footer";
21
21
  export { BurgerMenu, Header, NavBar, PreviousLink } from "./Layout/Header";
22
- export { Link } from "./Link";
22
+ export { Link } from "./Link/Link";
23
23
  export { List } from "./List";
24
24
  export { ClickItem, createClickItemParent } from "./List/ClickItem";
25
25
  export { ContentItemDuo } from "./List/ContentItemDuo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-look-and-feel-react",
3
- "version": "1.0.3-alpha.206",
3
+ "version": "1.0.3-alpha.208",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "homepage": "https://github.com/AxaFrance/design-system#readme",
49
49
  "peerDependencies": {
50
- "@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.206",
50
+ "@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.208",
51
51
  "@material-symbols/svg-400": ">= 0.19.0",
52
52
  "react": ">= 18",
53
- "@axa-fr/design-system-apollo-react": "1.0.3-alpha.206"
53
+ "@axa-fr/design-system-apollo-react": "1.0.3-alpha.208"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@material-symbols/svg-400": {
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-look-and-feel-css/dist/Link/Link.scss";
2
- export { Link } from "./Link";
@@ -1,2 +0,0 @@
1
- import "@axa-fr/design-system-look-and-feel-css/dist/Link/Link.scss";
2
- export { Link } from "./Link";