@axa-fr/design-system-apollo-react 1.0.3-alpha.239 → 1.0.3-alpha.241

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.
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/CardMessage/CardMessageApollo.scss";
2
+ export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessageCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/CardMessage/CardMessageApollo.scss";
2
+ export { CardMessage, cardMessageVariants, } from "./CardMessageCommon";
@@ -0,0 +1,14 @@
1
+ import { ComponentPropsWithoutRef } from "react";
2
+ export declare const cardMessageVariants: {
3
+ readonly info: "info";
4
+ readonly warning: "warning";
5
+ readonly error: "error";
6
+ readonly neutral: "neutral";
7
+ };
8
+ export type CardMessageVariants = keyof typeof cardMessageVariants;
9
+ export type CardMessageProps = ComponentPropsWithoutRef<"div"> & {
10
+ variant?: CardMessageVariants;
11
+ title?: string;
12
+ text: string;
13
+ };
14
+ export declare const CardMessage: ({ variant, title, text, className, ...props }: CardMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { getComponentClassName } from "../utilities/getComponentClassName";
4
+ export const cardMessageVariants = {
5
+ info: "info",
6
+ warning: "warning",
7
+ error: "error",
8
+ neutral: "neutral",
9
+ };
10
+ export const CardMessage = ({ variant = "info", title, text, className, ...props }) => {
11
+ const componentClassName = useMemo(() => {
12
+ return getComponentClassName("af-card-message", className, variant);
13
+ }, [className, variant]);
14
+ return (_jsxs("div", { ...props, className: componentClassName, children: [title && _jsx("span", { className: "af-card-message--title", children: title }), _jsx("span", { className: "af-card-message--text", children: text })] }));
15
+ };
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/CardMessage/CardMessageLF.scss";
2
+ export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessageCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/CardMessage/CardMessageLF.scss";
2
+ export { CardMessage, cardMessageVariants, } from "./CardMessageCommon";
@@ -7,8 +7,7 @@ export declare const tagVariants: {
7
7
  readonly neutral: "neutral";
8
8
  };
9
9
  export type TagVariants = keyof typeof tagVariants;
10
- type TagProps = ComponentProps<"div"> & {
10
+ export type TagProps = ComponentProps<"div"> & {
11
11
  variant?: TagVariants;
12
12
  };
13
13
  export declare const Tag: ({ children, className, variant, ...divProps }: TagProps) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalApollo.scss";
2
+ import type { TimelineVerticalProps } from "./types";
3
+ export type { TimelineVerticalProps } from "./types";
4
+ export declare const TimelineVertical: ({ tag, tagProps, ...props }: TimelineVerticalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalApollo.scss";
3
+ import { TimelineVertical as TimelineVerticalCommon } from "./TimelineVerticalCommon";
4
+ import { Tag } from "../Tag/TagApollo";
5
+ export const TimelineVertical = ({ tag, tagProps = {}, ...props }) => (_jsx(TimelineVerticalCommon, { tag: _jsx(Tag, { ...tagProps, children: tag }), ...props }));
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren, ReactNode } from "react";
2
+ export type TimelineVerticalProps = PropsWithChildren<{
3
+ title: string;
4
+ tag: ReactNode;
5
+ className?: string;
6
+ }>;
7
+ export declare const TimelineVertical: ({ title, children, tag, className, }: TimelineVerticalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import classNames from "classnames";
3
+ export const TimelineVertical = ({ title, children, tag, className, }) => (_jsxs("section", { className: classNames("af-timeline-vertical", className), children: [_jsxs("header", { className: "af-timeline-vertical__header", children: [tag, _jsx("h4", { className: "af-timeline-vertical__title", children: title })] }), Boolean(children) && (_jsx("main", { className: "af-timeline-vertical__description", children: children }))] }));
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalLF.scss";
2
+ import type { TimelineVerticalProps } from "./types";
3
+ export type { TimelineVerticalProps } from "./types";
4
+ export declare const TimelineVertical: ({ tag, tagProps, ...props }: TimelineVerticalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/design-system-apollo-css/dist/TimelineVertical/TimelineVerticalLF.scss";
3
+ import { TimelineVertical as TimelineVerticalCommon } from "./TimelineVerticalCommon";
4
+ import { Tag } from "../Tag/TagLF";
5
+ export const TimelineVertical = ({ tag, tagProps = {}, ...props }) => (_jsx(TimelineVerticalCommon, { tag: _jsx(Tag, { ...tagProps, children: tag }), ...props }));
@@ -0,0 +1,5 @@
1
+ import { TagProps } from "../Tag/TagCommon";
2
+ import type { TimelineVerticalProps as TimelineVerticalCommonProps } from "./TimelineVerticalCommon";
3
+ export type TimelineVerticalProps = TimelineVerticalCommonProps & {
4
+ tagProps?: Omit<TagProps, "children">;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -19,7 +19,9 @@ export { ClickIcon } from "./ClickIcon/ClickIconApollo";
19
19
  export { Toggle } from "./Toggle/ToggleApollo";
20
20
  export { BasePicture } from "./BasePicture/BasePictureApollo";
21
21
  export { Message, messageVariants, type MessageVariants, } from "./Message/MessageApollo";
22
+ export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessage/CardMessageApollo";
22
23
  export { ProgressBar } from "./ProgressBar/ProgressBarApollo";
23
24
  export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
24
25
  export { Stepper } from "./Stepper/StepperApollo";
25
26
  export { DateInput } from "./Form/DateInput/DateInputApollo";
27
+ export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
package/dist/index.js CHANGED
@@ -19,7 +19,9 @@ export { ClickIcon } from "./ClickIcon/ClickIconApollo";
19
19
  export { Toggle } from "./Toggle/ToggleApollo";
20
20
  export { BasePicture } from "./BasePicture/BasePictureApollo";
21
21
  export { Message, messageVariants, } from "./Message/MessageApollo";
22
+ export { CardMessage, cardMessageVariants, } from "./CardMessage/CardMessageApollo";
22
23
  export { ProgressBar } from "./ProgressBar/ProgressBarApollo";
23
24
  export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
24
25
  export { Stepper } from "./Stepper/StepperApollo";
25
26
  export { DateInput } from "./Form/DateInput/DateInputApollo";
27
+ export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
package/dist/indexLF.d.ts CHANGED
@@ -18,7 +18,9 @@ export { ClickIcon } from "./ClickIcon/ClickIconLF";
18
18
  export { Toggle } from "./Toggle/ToggleLF";
19
19
  export { BasePicture } from "./BasePicture/BasePictureLF";
20
20
  export { Message, messageVariants, type MessageVariants, } from "./Message/MessageLF";
21
+ export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessage/CardMessageLF";
21
22
  export { ProgressBar } from "./ProgressBar/ProgressBarLF";
22
23
  export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
23
24
  export { Stepper } from "./Stepper/StepperLF";
24
25
  export { DateInput } from "./Form/DateInput/DateInputLF";
26
+ export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
package/dist/indexLF.js CHANGED
@@ -18,7 +18,9 @@ export { ClickIcon } from "./ClickIcon/ClickIconLF";
18
18
  export { Toggle } from "./Toggle/ToggleLF";
19
19
  export { BasePicture } from "./BasePicture/BasePictureLF";
20
20
  export { Message, messageVariants, } from "./Message/MessageLF";
21
+ export { CardMessage, cardMessageVariants, } from "./CardMessage/CardMessageLF";
21
22
  export { ProgressBar } from "./ProgressBar/ProgressBarLF";
22
23
  export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
23
24
  export { Stepper } from "./Stepper/StepperLF";
24
25
  export { DateInput } from "./Form/DateInput/DateInputLF";
26
+ export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/design-system-apollo-react",
3
- "version": "1.0.3-alpha.239",
3
+ "version": "1.0.3-alpha.241",
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.3-alpha.239",
50
- "@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.239",
49
+ "@axa-fr/design-system-apollo-css": "1.0.3-alpha.241",
50
+ "@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.241",
51
51
  "@material-symbols/svg-400": ">= 0.19.0",
52
52
  "react": ">= 18"
53
53
  },