@axa-fr/design-system-apollo-react 1.0.5-alpha.253 → 1.0.5-alpha.255
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/Form/DateInput/DateInputApollo.d.ts +25 -3
- package/dist/Form/DateInput/DateInputApollo.js +3 -1
- package/dist/Form/DateInput/DateInputLF.d.ts +24 -2
- package/dist/Form/DateInput/DateInputLF.js +3 -1
- package/dist/Form/Select/SelectApollo.d.ts +27 -3
- package/dist/Form/Select/SelectApollo.js +3 -1
- package/dist/Form/Select/SelectLF.d.ts +27 -3
- package/dist/Form/Select/SelectLF.js +3 -1
- package/dist/Form/TextArea/TextAreaApollo.d.ts +19 -3
- package/dist/Form/TextArea/TextAreaApollo.js +3 -1
- package/dist/Form/TextArea/TextAreaLF.d.ts +19 -3
- package/dist/Form/TextArea/TextAreaLF.js +3 -1
- package/dist/Form/TextInput/TextInputApollo.d.ts +23 -3
- package/dist/Form/TextInput/TextInputApollo.js +3 -1
- package/dist/Form/TextInput/TextInputLF.d.ts +23 -3
- package/dist/Form/TextInput/TextInputLF.js +3 -1
- package/dist/List/ContentItemDuo/ContentItemDuoApollo.d.ts +4 -0
- package/dist/List/ContentItemDuo/ContentItemDuoApollo.js +5 -0
- package/dist/List/ContentItemDuo/ContentItemDuoCommon.d.ts +14 -0
- package/dist/List/ContentItemDuo/ContentItemDuoCommon.js +13 -0
- package/dist/List/ContentItemDuo/ContentItemDuoLF.d.ts +4 -0
- package/dist/List/ContentItemDuo/ContentItemDuoLF.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/indexLF.d.ts +1 -0
- package/dist/indexLF.js +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/DateInput/DateInputApollo.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const DateInput: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
4
|
+
export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "value"> & {
|
|
5
|
+
classModifier?: string;
|
|
6
|
+
defaultValue?: Date | string;
|
|
7
|
+
value?: Date | string;
|
|
8
|
+
helper?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
success?: string;
|
|
11
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
12
|
+
type?: "text" | "date";
|
|
13
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
14
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
15
|
+
} & Partial<{
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
inputId: string;
|
|
20
|
+
idLabel: string;
|
|
21
|
+
sideButtonLabel?: string;
|
|
22
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
23
|
+
buttonLabel?: string;
|
|
24
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
25
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
26
|
+
}>, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/DateInput/DateInputApollo.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
5
6
|
import { DateInput as DateInputCommon } from "./DateInputCommon";
|
|
6
|
-
export const DateInput = (props) => (_jsx(DateInputCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const DateInput = forwardRef((props, ref) => (_jsx(DateInputCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
DateInput.displayName = "DateInput";
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/DateInput/DateInputLF.scss";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import {
|
|
4
|
-
export declare const DateInput: (
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
4
|
+
export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "value"> & {
|
|
5
|
+
classModifier?: string;
|
|
6
|
+
defaultValue?: Date | string;
|
|
7
|
+
value?: Date | string;
|
|
8
|
+
helper?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
success?: string;
|
|
11
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
12
|
+
type?: "text" | "date";
|
|
13
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
14
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
15
|
+
} & Partial<{
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
inputId: string;
|
|
20
|
+
idLabel: string;
|
|
21
|
+
sideButtonLabel?: string;
|
|
22
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
23
|
+
buttonLabel?: string;
|
|
24
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
25
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
26
|
+
}>, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/DateInput/DateInputLF.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
5
6
|
import { DateInput as DateInputCommon } from "./DateInputCommon";
|
|
6
|
-
export const DateInput = (props) => (_jsx(DateInputCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const DateInput = forwardRef((props, ref) => (_jsx(DateInputCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
DateInput.displayName = "DateInput";
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/Select/SelectApollo.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const Select: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
4
|
+
export declare const Select: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & {
|
|
5
|
+
id?: string;
|
|
6
|
+
classModifier?: string;
|
|
7
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
8
|
+
errorLabel?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
success?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
buttonLabel?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
helper?: string;
|
|
15
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
16
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
17
|
+
} & Partial<{
|
|
18
|
+
label: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
inputId: string;
|
|
22
|
+
idLabel: string;
|
|
23
|
+
sideButtonLabel?: string;
|
|
24
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
25
|
+
buttonLabel?: string;
|
|
26
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
27
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
28
|
+
}>, "ref"> & import("react").RefAttributes<HTMLSelectElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/Select/SelectApollo.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
5
6
|
import { Select as SelectCommon } from "./SelectCommon";
|
|
6
|
-
export const Select = (props) => (_jsx(SelectCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const Select = forwardRef((props, ref) => (_jsx(SelectCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
Select.displayName = "Select";
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/Select/SelectLF.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const Select: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
4
|
+
export declare const Select: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & {
|
|
5
|
+
id?: string;
|
|
6
|
+
classModifier?: string;
|
|
7
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
8
|
+
errorLabel?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
success?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
buttonLabel?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
helper?: string;
|
|
15
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
16
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
17
|
+
} & Partial<{
|
|
18
|
+
label: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
inputId: string;
|
|
22
|
+
idLabel: string;
|
|
23
|
+
sideButtonLabel?: string;
|
|
24
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
25
|
+
buttonLabel?: string;
|
|
26
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
27
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
28
|
+
}>, "ref"> & import("react").RefAttributes<HTMLSelectElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/Select/SelectLF.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
5
6
|
import { Select as SelectCommon } from "./SelectCommon";
|
|
6
|
-
export const Select = (props) => (_jsx(SelectCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const Select = forwardRef((props, ref) => (_jsx(SelectCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
Select.displayName = "Select";
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaApollo.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const TextArea: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
4
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
5
|
+
classModifier?: string;
|
|
6
|
+
sideButtonLabel: string;
|
|
7
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
8
|
+
helper?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
12
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
13
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
14
|
+
buttonLabel?: string;
|
|
15
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
16
|
+
} & Partial<{
|
|
17
|
+
message?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
messageType?: "error" | "success";
|
|
20
|
+
}>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaApollo.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
5
6
|
import { TextArea as TextAreaCommon } from "./TextAreaCommon";
|
|
6
|
-
export const TextArea = (props) => (_jsx(TextAreaCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const TextArea = forwardRef((props, ref) => (_jsx(TextAreaCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
TextArea.displayName = "TextArea";
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaLF.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const TextArea: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
4
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
5
|
+
classModifier?: string;
|
|
6
|
+
sideButtonLabel: string;
|
|
7
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
8
|
+
helper?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
12
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
13
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
14
|
+
buttonLabel?: string;
|
|
15
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
16
|
+
} & Partial<{
|
|
17
|
+
message?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
messageType?: "error" | "success";
|
|
20
|
+
}>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextArea/TextAreaLF.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
5
6
|
import { TextArea as TextAreaCommon } from "./TextAreaCommon";
|
|
6
|
-
export const TextArea = (props) => (_jsx(TextAreaCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const TextArea = forwardRef((props, ref) => (_jsx(TextAreaCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
TextArea.displayName = "TextArea";
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextInput/TextInputApollo.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const TextInput: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
4
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
+
unit?: React.ReactNode;
|
|
6
|
+
classModifier?: string;
|
|
7
|
+
helper?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
success?: string;
|
|
10
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
11
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
12
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
13
|
+
} & Partial<{
|
|
14
|
+
label: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
inputId: string;
|
|
18
|
+
idLabel: string;
|
|
19
|
+
sideButtonLabel?: string;
|
|
20
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
21
|
+
buttonLabel?: string;
|
|
22
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
23
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
24
|
+
}>, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextInput/TextInputApollo.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelApollo";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageApollo";
|
|
5
6
|
import { TextInput as TextInputCommon } from "./TextInputCommon";
|
|
6
|
-
export const TextInput = (props) => (_jsx(TextInputCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const TextInput = forwardRef((props, ref) => (_jsx(TextInputCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
TextInput.displayName = "TextInput";
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextInput/TextInputLF.scss";
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
4
|
-
export declare const TextInput: (
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
|
+
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
4
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
+
unit?: React.ReactNode;
|
|
6
|
+
classModifier?: string;
|
|
7
|
+
helper?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
success?: string;
|
|
10
|
+
label: ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>["label"];
|
|
11
|
+
ItemLabelComponent: import("react").ComponentType<Omit<ComponentProps<typeof import("../ItemLabel/ItemLabelCommon").ItemLabel>, "ButtonComponent">>;
|
|
12
|
+
ItemMessageComponent: import("react").ComponentType<ComponentProps<typeof ItemMessage>>;
|
|
13
|
+
} & Partial<{
|
|
14
|
+
label: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
inputId: string;
|
|
18
|
+
idLabel: string;
|
|
19
|
+
sideButtonLabel?: string;
|
|
20
|
+
onSideButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
21
|
+
buttonLabel?: string;
|
|
22
|
+
onButtonClick?: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
23
|
+
ButtonComponent: import("react").ComponentType<ComponentProps<typeof import("../..").Button>>;
|
|
24
|
+
}>, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ItemLabelComponent" | "ItemMessageComponent">, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-apollo-css/dist/Form/TextInput/TextInputLF.scss";
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { ItemLabel } from "../ItemLabel/ItemLabelLF";
|
|
4
5
|
import { ItemMessage } from "../ItemMessage/ItemMessageLF";
|
|
5
6
|
import { TextInput as TextInputCommon } from "./TextInputCommon";
|
|
6
|
-
export const TextInput = (props) => (_jsx(TextInputCommon, { ...props, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage }));
|
|
7
|
+
export const TextInput = forwardRef((props, ref) => (_jsx(TextInputCommon, { ...props, ref: ref, ItemLabelComponent: ItemLabel, ItemMessageComponent: ItemMessage })));
|
|
8
|
+
TextInput.displayName = "TextInput";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuo/ContentItemDuoApollo.scss";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { ContentItemDuo as ContentItemDuoCommon } from "./ContentItemDuoCommon";
|
|
4
|
+
export declare const ContentItemDuo: (props: Omit<ComponentProps<typeof ContentItemDuoCommon>, "ButtonComponent">) => 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/List/ContentItemDuo/ContentItemDuoApollo.scss";
|
|
3
|
+
import { Button } from "../../Button/ButtonApollo";
|
|
4
|
+
import { ContentItemDuo as ContentItemDuoCommon } from "./ContentItemDuoCommon";
|
|
5
|
+
export const ContentItemDuo = (props) => _jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import { Button } from "../../Button/ButtonCommon";
|
|
3
|
+
type ContentItemDuoProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
isVertical?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
classModifier?: string;
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
onButtonClick?: () => void;
|
|
11
|
+
ButtonComponent: ComponentType<ComponentProps<typeof Button>>;
|
|
12
|
+
};
|
|
13
|
+
export declare const ContentItemDuo: ({ label, value, isVertical, className, classModifier, buttonText, onButtonClick, ButtonComponent, }: ContentItemDuoProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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 ContentItemDuo = ({ label, value, isVertical = false, className, classModifier, buttonText, onButtonClick, ButtonComponent, }) => {
|
|
5
|
+
const componentClassName = useMemo(() => {
|
|
6
|
+
const classModifiers = [classModifier];
|
|
7
|
+
if (isVertical) {
|
|
8
|
+
classModifiers.push("vertical");
|
|
9
|
+
}
|
|
10
|
+
return getComponentClassName("af-content-item-duo", className, classModifiers.filter(Boolean).join(" "));
|
|
11
|
+
}, [classModifier, className, isVertical]);
|
|
12
|
+
return (_jsxs("div", { className: componentClassName, children: [_jsx("p", { className: "af-content-item-duo__label", children: label }), typeof value === "string" ? (_jsx("p", { className: "af-content-item-duo__value", children: value })) : (_jsx("div", { className: "af-content-item-duo__value", children: value })), buttonText && (_jsx("div", { className: "af-content-item-duo__button", children: _jsx(ButtonComponent, { variant: "ghost", onClick: onButtonClick, children: buttonText }) }))] }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/design-system-apollo-css/dist/List/ContentItemDuo/ContentItemDuoLF.scss";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { ContentItemDuo as ContentItemDuoCommon } from "./ContentItemDuoCommon";
|
|
4
|
+
export declare const ContentItemDuo: (props: Omit<ComponentProps<typeof ContentItemDuoCommon>, "ButtonComponent">) => 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/List/ContentItemDuo/ContentItemDuoLF.scss";
|
|
3
|
+
import { Button } from "../../Button/ButtonLF";
|
|
4
|
+
import { ContentItemDuo as ContentItemDuoCommon } from "./ContentItemDuoCommon";
|
|
5
|
+
export const ContentItemDuo = (props) => _jsx(ContentItemDuoCommon, { ...props, ButtonComponent: Button });
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { Toggle } from "./Toggle/ToggleApollo";
|
|
|
20
20
|
export { BasePicture } from "./BasePicture/BasePictureApollo";
|
|
21
21
|
export { Message, messageVariants, type MessageVariants, } from "./Message/MessageApollo";
|
|
22
22
|
export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessage/CardMessageApollo";
|
|
23
|
+
export { ContentItemDuo } from "./List/ContentItemDuo/ContentItemDuoApollo";
|
|
23
24
|
export { ProgressBar } from "./ProgressBar/ProgressBarApollo";
|
|
24
25
|
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
|
|
25
26
|
export { Stepper } from "./Stepper/StepperApollo";
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export { Toggle } from "./Toggle/ToggleApollo";
|
|
|
20
20
|
export { BasePicture } from "./BasePicture/BasePictureApollo";
|
|
21
21
|
export { Message, messageVariants, } from "./Message/MessageApollo";
|
|
22
22
|
export { CardMessage, cardMessageVariants, } from "./CardMessage/CardMessageApollo";
|
|
23
|
+
export { ContentItemDuo } from "./List/ContentItemDuo/ContentItemDuoApollo";
|
|
23
24
|
export { ProgressBar } from "./ProgressBar/ProgressBarApollo";
|
|
24
25
|
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
|
|
25
26
|
export { Stepper } from "./Stepper/StepperApollo";
|
package/dist/indexLF.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { Toggle } from "./Toggle/ToggleLF";
|
|
|
19
19
|
export { BasePicture } from "./BasePicture/BasePictureLF";
|
|
20
20
|
export { Message, messageVariants, type MessageVariants, } from "./Message/MessageLF";
|
|
21
21
|
export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./CardMessage/CardMessageLF";
|
|
22
|
+
export { ContentItemDuo } from "./List/ContentItemDuo/ContentItemDuoLF";
|
|
22
23
|
export { ProgressBar } from "./ProgressBar/ProgressBarLF";
|
|
23
24
|
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
|
|
24
25
|
export { Stepper } from "./Stepper/StepperLF";
|
package/dist/indexLF.js
CHANGED
|
@@ -19,6 +19,7 @@ export { Toggle } from "./Toggle/ToggleLF";
|
|
|
19
19
|
export { BasePicture } from "./BasePicture/BasePictureLF";
|
|
20
20
|
export { Message, messageVariants, } from "./Message/MessageLF";
|
|
21
21
|
export { CardMessage, cardMessageVariants, } from "./CardMessage/CardMessageLF";
|
|
22
|
+
export { ContentItemDuo } from "./List/ContentItemDuo/ContentItemDuoLF";
|
|
22
23
|
export { ProgressBar } from "./ProgressBar/ProgressBarLF";
|
|
23
24
|
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
|
|
24
25
|
export { Stepper } from "./Stepper/StepperLF";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-apollo-react",
|
|
3
|
-
"version": "1.0.5-alpha.
|
|
3
|
+
"version": "1.0.5-alpha.255",
|
|
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.5-alpha.
|
|
50
|
-
"@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.
|
|
49
|
+
"@axa-fr/design-system-apollo-css": "1.0.5-alpha.255",
|
|
50
|
+
"@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.255",
|
|
51
51
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
52
52
|
"react": ">= 18"
|
|
53
53
|
},
|