@axa-fr/design-system-apollo-react 1.0.5-alpha.254 → 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/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";
|
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
|
},
|