@axa-fr/design-system-apollo-react 1.0.5-alpha.254 → 1.0.5-alpha.256

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,4 +1,26 @@
1
1
  import "@axa-fr/design-system-apollo-css/dist/Form/DateInput/DateInputApollo.scss";
2
- import type { ComponentProps } from "react";
3
- import { DateInput as DateInputCommon } from "./DateInputCommon";
4
- export declare const DateInput: (props: Omit<ComponentProps<typeof DateInputCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { DateInput as DateInputCommon } from "./DateInputCommon";
4
- export declare const DateInput: (props: Omit<ComponentProps<typeof DateInputCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { Select as SelectCommon } from "./SelectCommon";
4
- export declare const Select: (props: Omit<ComponentProps<typeof SelectCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { Select as SelectCommon } from "./SelectCommon";
4
- export declare const Select: (props: Omit<ComponentProps<typeof SelectCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { TextArea as TextAreaCommon } from "./TextAreaCommon";
4
- export declare const TextArea: (props: Omit<ComponentProps<typeof TextAreaCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { TextArea as TextAreaCommon } from "./TextAreaCommon";
4
- export declare const TextArea: (props: Omit<ComponentProps<typeof TextAreaCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { TextInput as TextInputCommon } from "./TextInputCommon";
4
- export declare const TextInput: (props: Omit<ComponentProps<typeof TextInputCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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 { ComponentProps } from "react";
3
- import { TextInput as TextInputCommon } from "./TextInputCommon";
4
- export declare const TextInput: (props: Omit<ComponentProps<typeof TextInputCommon>, "ItemLabelComponent" | "ItemMessageComponent">) => import("react/jsx-runtime").JSX.Element;
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,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/ItemTabBar/ItemTabBarApollo.scss";
2
+ export { ItemTabBar, itemTabBarVariants, type ItemTabBarVariants, } from "./ItemTabBarCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/ItemTabBar/ItemTabBarApollo.scss";
2
+ export { ItemTabBar, itemTabBarVariants, } from "./ItemTabBarCommon";
@@ -0,0 +1,14 @@
1
+ import { ComponentPropsWithRef, ReactNode } from "react";
2
+ export declare const itemTabBarVariants: {
3
+ readonly tabBar: "tabBar";
4
+ readonly header: "header";
5
+ };
6
+ export type ItemTabBarVariants = keyof typeof itemTabBarVariants;
7
+ type ItemTabBarProps = ComponentPropsWithRef<"button"> & {
8
+ variant?: ItemTabBarVariants;
9
+ isActive?: boolean;
10
+ icon?: ReactNode;
11
+ title: string;
12
+ };
13
+ export declare const ItemTabBar: import("react").ForwardRefExoticComponent<Omit<ItemTabBarProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { getComponentClassName } from "../utilities/getComponentClassName";
4
+ export const itemTabBarVariants = {
5
+ tabBar: "tabBar",
6
+ header: "header",
7
+ };
8
+ export const ItemTabBar = forwardRef(({ variant = "tabBar", isActive = false, icon, title, className, ...props }, ref) => {
9
+ const classNames = getComponentClassName("af-item-tab-bar", className, variant);
10
+ return (_jsxs("button", { ref: ref, type: "button", role: "tab", "aria-selected": isActive, className: classNames, ...props, children: [icon, title] }));
11
+ });
12
+ ItemTabBar.displayName = "ItemTabBar";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/ItemTabBar/ItemTabBarLF.scss";
2
+ export { ItemTabBar, itemTabBarVariants, type ItemTabBarVariants, } from "./ItemTabBarCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/design-system-apollo-css/dist/ItemTabBar/ItemTabBarLF.scss";
2
+ export { ItemTabBar, itemTabBarVariants, } from "./ItemTabBarCommon";
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
26
26
  export { Stepper } from "./Stepper/StepperApollo";
27
27
  export { DateInput } from "./Form/DateInput/DateInputApollo";
28
28
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
29
+ export { ItemTabBar, itemTabBarVariants, type ItemTabBarVariants, } from "./ItemTabBar/ItemTabBarApollo";
29
30
  export { Heading, type HeadingLevel } from "./Heading/HeadingApollo";
30
31
  export { Checkbox } from "./Form/checkbox/checkbox/CheckboxApollo";
31
32
  export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextApollo";
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupApollo";
26
26
  export { Stepper } from "./Stepper/StepperApollo";
27
27
  export { DateInput } from "./Form/DateInput/DateInputApollo";
28
28
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalApollo";
29
+ export { ItemTabBar, itemTabBarVariants, } from "./ItemTabBar/ItemTabBarApollo";
29
30
  export { Heading } from "./Heading/HeadingApollo";
30
31
  export { Checkbox } from "./Form/checkbox/checkbox/CheckboxApollo";
31
32
  export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextApollo";
package/dist/indexLF.d.ts CHANGED
@@ -25,6 +25,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
25
25
  export { Stepper } from "./Stepper/StepperLF";
26
26
  export { DateInput } from "./Form/DateInput/DateInputLF";
27
27
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
28
+ export { ItemTabBar, itemTabBarVariants, type ItemTabBarVariants, } from "./ItemTabBar/ItemTabBarLF";
28
29
  export { Heading, type HeadingLevel } from "./Heading/HeadingLF";
29
30
  export { Checkbox } from "./Form/checkbox/checkbox/CheckboxLf";
30
31
  export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextLF";
package/dist/indexLF.js CHANGED
@@ -25,6 +25,7 @@ export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroupLF";
25
25
  export { Stepper } from "./Stepper/StepperLF";
26
26
  export { DateInput } from "./Form/DateInput/DateInputLF";
27
27
  export { TimelineVertical } from "./TimelineVertical/TimelineVerticalLF";
28
+ export { ItemTabBar, itemTabBarVariants, } from "./ItemTabBar/ItemTabBarLF";
28
29
  export { Heading } from "./Heading/HeadingLF";
29
30
  export { Checkbox } from "./Form/checkbox/checkbox/CheckboxLf";
30
31
  export { CheckboxText } from "./Form/checkbox/checkboxText/CheckboxTextLF";
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.254",
3
+ "version": "1.0.5-alpha.256",
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.254",
50
- "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.254",
49
+ "@axa-fr/design-system-apollo-css": "1.0.5-alpha.256",
50
+ "@axa-fr/design-system-look-and-feel-css": "1.0.5-alpha.256",
51
51
  "@material-symbols/svg-400": ">= 0.19.0",
52
52
  "react": ">= 18"
53
53
  },