@axa-fr/design-system-look-and-feel-react 1.0.5-ci.23 → 1.0.5-ci.24
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/Alert/Alert.d.ts +2 -2
- package/dist/Alert/Alert.js +6 -6
- package/package.json +2 -2
package/dist/Alert/Alert.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ComponentPropsWithoutRef, PropsWithChildren, ReactElement } from "react";
|
2
1
|
import "@axa-fr/design-system-look-and-feel-css/dist/Alert/Alert.scss";
|
3
|
-
import {
|
2
|
+
import { ComponentPropsWithoutRef, PropsWithChildren, ReactElement } from "react";
|
4
3
|
import { ButtonClient } from "../Button/Button";
|
4
|
+
import { Link } from "../Link/Link";
|
5
5
|
type Headings = "h2" | "h3" | "h4" | "h5" | "h6";
|
6
6
|
export declare const alertTypes: {
|
7
7
|
readonly validation: "validation";
|
package/dist/Alert/Alert.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import infoIcon from "@material-symbols/svg-400/outlined/info.svg";
|
2
|
+
import "@axa-fr/design-system-look-and-feel-css/dist/Alert/Alert.scss";
|
3
|
+
import checkCircleOutline from "@material-symbols/svg-400/outlined/check_circle.svg";
|
5
4
|
import errorIcon from "@material-symbols/svg-400/outlined/emergency_home.svg";
|
6
5
|
import errorOutline from "@material-symbols/svg-400/outlined/error.svg";
|
7
|
-
import
|
8
|
-
import "@
|
6
|
+
import infoIcon from "@material-symbols/svg-400/outlined/info.svg";
|
7
|
+
import wbIncandescentOutlined from "@material-symbols/svg-400/outlined/wb_incandescent.svg";
|
8
|
+
import { useMemo, } from "react";
|
9
9
|
import { Svg } from "../Svg";
|
10
10
|
export const alertTypes = {
|
11
11
|
validation: "validation",
|
@@ -23,5 +23,5 @@ const getIconFromType = (type) => ({
|
|
23
23
|
})[type] || wbIncandescentOutlined;
|
24
24
|
export const Alert = ({ type = alertTypes.information, title, children, action, iconSize = 24, heading: Heading = "h4", }) => {
|
25
25
|
const icon = useMemo(() => getIconFromType(type), [type]);
|
26
|
-
return (_jsxs("div", { className: `af-alert af-alert--${type}`, role: "alert", children: [_jsx(Svg, { src: icon, width: iconSize, height: iconSize, className: "af-alert__icon", "aria-hidden": true }), _jsxs("div", { className: "af-alert-client__content", children: [title && _jsx(Heading, { className: "af-alert__title", children: title }), children, action && _jsx("
|
26
|
+
return (_jsxs("div", { className: `af-alert af-alert--${type}`, role: "alert", children: [_jsx(Svg, { src: icon, width: iconSize, height: iconSize, className: "af-alert__icon", "aria-hidden": true }), _jsxs("div", { className: "af-alert-client__content", children: [title && _jsx(Heading, { className: "af-alert__title", children: title }), children, action && _jsx("div", { className: "af-alert__action", children: action })] })] }));
|
27
27
|
};
|
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.5-ci.
|
3
|
+
"version": "1.0.5-ci.24",
|
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": "1.0.5-ci.
|
48
|
+
"@axa-fr/design-system-look-and-feel-css": "1.0.5-ci.24",
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
50
50
|
"react": ">= 18"
|
51
51
|
},
|