@axa-fr/canopee-react 2.0.0-alpha.2 → 2.0.0-alpha.22

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.
Files changed (41) hide show
  1. package/dist/client.d.ts +7 -2
  2. package/dist/client.js +7 -2
  3. package/dist/prospect-client/AppName/AppName.d.ts +44 -0
  4. package/dist/prospect-client/AppName/AppName.js +23 -0
  5. package/dist/prospect-client/Card/CardApollo.d.ts +1 -1
  6. package/dist/prospect-client/Card/CardApollo.js +1 -1
  7. package/dist/prospect-client/Card/CardCommon.d.ts +30 -2
  8. package/dist/prospect-client/Card/CardCommon.js +18 -1
  9. package/dist/prospect-client/Card/CardLF.d.ts +1 -1
  10. package/dist/prospect-client/Card/CardLF.js +1 -1
  11. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +7 -0
  12. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.js +6 -0
  13. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +8 -0
  14. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.js +9 -0
  15. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +7 -0
  16. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.js +6 -0
  17. package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
  18. package/dist/prospect-client/Header/HeaderApollo.js +8 -0
  19. package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
  20. package/dist/prospect-client/Header/HeaderCommon.js +37 -0
  21. package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
  22. package/dist/prospect-client/Header/HeaderLF.js +8 -0
  23. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
  24. package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
  25. package/dist/prospect-client/List/List/ListCommon.js +12 -0
  26. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
  27. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
  28. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
  29. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
  30. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
  31. package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
  32. package/dist/prospect-client/TabMenu/TabMenu.js +1 -1
  33. package/dist/prospect-client/TagList/TagListApollo.d.ts +4 -0
  34. package/dist/prospect-client/TagList/TagListApollo.js +5 -0
  35. package/dist/prospect-client/TagList/TagListCommon.d.ts +10 -0
  36. package/dist/prospect-client/TagList/TagListCommon.js +16 -0
  37. package/dist/prospect-client/TagList/TagListLF.d.ts +4 -0
  38. package/dist/prospect-client/TagList/TagListLF.js +5 -0
  39. package/dist/prospect.d.ts +6 -1
  40. package/dist/prospect.js +6 -1
  41. package/package.json +2 -2
package/dist/client.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import "@axa-fr/canopee-css/client/common/rebootLF.css";
1
+ import "@axa-fr/canopee-css/client/common/reboot.css";
2
2
  import "@axa-fr/canopee-css/client/common/tokens.css";
3
3
  import "@axa-fr/canopee-css/client/Grid/Grid.css";
4
4
  import "@fontsource/source-sans-pro";
5
5
  export { Accordion, accordionVariants, type AccordionVariants, } from "./prospect-client/Accordion/AccordionLF";
6
6
  export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
8
+ export { AppName, type AppNameProps } from "./prospect-client/AppName/AppName";
8
9
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
10
  export { Button, buttonVariants, type ButtonVariants, } from "./prospect-client/Button/ButtonLF";
10
- export { Card, type CardProps } from "./prospect-client/Card/CardLF";
11
+ export { Card, cardVariants, type CardProps, type CardVariants, } from "./prospect-client/Card/CardLF";
11
12
  export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
12
13
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
13
14
  export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
@@ -36,6 +37,7 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
36
37
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
37
38
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
38
39
  export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
40
+ export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
39
41
  export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
40
42
  export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
41
43
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
@@ -43,9 +45,11 @@ export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/Ra
43
45
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
44
46
  export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
45
47
  export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingLF";
48
+ export { Header, type HeaderProps } from "./prospect-client/Header/HeaderLF";
46
49
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconLF";
47
50
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
48
51
  export { ItemMenu, type ItemMenuProps, } from "./prospect-client/ItemMenu/ItemMenuLF";
52
+ export { MenuBurger, type MenuBurgerProps, } from "./prospect-client/MenuBurger/MenuBurgerLF";
49
53
  export { TabMenu, type TabMenuProps } from "./prospect-client/TabMenu/TabMenu";
50
54
  export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
51
55
  export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterLF";
@@ -74,6 +78,7 @@ export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from
74
78
  export { Table, type BodyColorVariants, type HeadColorVariants, type RowSizeVariants, type TableProps, } from "./prospect-client/Table/TableLF";
75
79
  export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
76
80
  export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagLF";
81
+ export { TagList, type TagListProps, } from "./prospect-client/TagList/TagListLF";
77
82
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
78
83
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
79
84
  export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
package/dist/client.js CHANGED
@@ -1,13 +1,14 @@
1
- import "@axa-fr/canopee-css/client/common/rebootLF.css";
1
+ import "@axa-fr/canopee-css/client/common/reboot.css";
2
2
  import "@axa-fr/canopee-css/client/common/tokens.css";
3
3
  import "@axa-fr/canopee-css/client/Grid/Grid.css";
4
4
  import "@fontsource/source-sans-pro";
5
5
  export { Accordion, accordionVariants, } from "./prospect-client/Accordion/AccordionLF";
6
6
  export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
8
+ export { AppName } from "./prospect-client/AppName/AppName";
8
9
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
10
  export { Button, buttonVariants, } from "./prospect-client/Button/ButtonLF";
10
- export { Card } from "./prospect-client/Card/CardLF";
11
+ export { Card, cardVariants, } from "./prospect-client/Card/CardLF";
11
12
  export { CardMessage, cardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
12
13
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
13
14
  export { ContentItemDuoAction, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
@@ -36,6 +37,7 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
36
37
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
37
38
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
38
39
  export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
40
+ export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
39
41
  export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
40
42
  export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
41
43
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
@@ -43,9 +45,11 @@ export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextLF";
43
45
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
44
46
  export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
45
47
  export { Heading, } from "./prospect-client/Heading/HeadingLF";
48
+ export { Header } from "./prospect-client/Header/HeaderLF";
46
49
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconLF";
47
50
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
48
51
  export { ItemMenu, } from "./prospect-client/ItemMenu/ItemMenuLF";
52
+ export { MenuBurger, } from "./prospect-client/MenuBurger/MenuBurgerLF";
49
53
  export { TabMenu } from "./prospect-client/TabMenu/TabMenu";
50
54
  export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
51
55
  export { Footer, } from "./prospect-client/Layout/Footer/FooterLF";
@@ -74,5 +78,6 @@ export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarLF";
74
78
  export { Table, } from "./prospect-client/Table/TableLF";
75
79
  export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
76
80
  export { Tag, tagVariants, } from "./prospect-client/Tag/TagLF";
81
+ export { TagList, } from "./prospect-client/TagList/TagListLF";
77
82
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
78
83
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
@@ -0,0 +1,44 @@
1
+ import type { ComponentPropsWithoutRef, ElementType } from "react";
2
+ import "@axa-fr/canopee-css/prospect/AppName/AppNameAll.css";
3
+ /**
4
+ * Props for the AppName component.
5
+ */
6
+ export type AppNameProps = ComponentPropsWithoutRef<"div"> & {
7
+ /**
8
+ * Application name displayed next to the AXA logo.
9
+ */
10
+ label: string;
11
+ /**
12
+ * Alt text for the AXA logo image.
13
+ * @default "Logo AXA"
14
+ */
15
+ logoAlt?: string;
16
+ /**
17
+ * Props forwarded to the `LogoLinkComponent` (defaults to `<a>`).
18
+ * @example { href: "/" }
19
+ * @example { to: "/" } // for React Router Link
20
+ */
21
+ logoLinkProps?: Record<string, unknown>;
22
+ /**
23
+ * Element or component used to wrap the logo.
24
+ * Accepts native HTML elements (`"a"`) or custom components (e.g. `Link` from React Router or the DS).
25
+ * `logoLinkProps` are forwarded to it.
26
+ * @default "a"
27
+ * @example "a"
28
+ * @example Link // from react-router-dom or the DS
29
+ */
30
+ LogoLinkComponent?: ElementType;
31
+ };
32
+ /**
33
+ * Displays the application name alongside the AXA logo.
34
+ * The logo can optionally be wrapped in a native anchor or a custom link component.
35
+ *
36
+ * @component
37
+ * @param {AppNameProps} props - AppName props.
38
+ * @param {string} props.label - Application name displayed next to the logo.
39
+ * @param {string} [props.logoAlt="Logo AXA"] - Alt text for the AXA logo image.
40
+ * @param {Record<string, unknown>} [props.logoLinkProps] - Props forwarded to the wrapping anchor or `LogoLinkComponent`.
41
+ * @param {ElementType} [props.LogoLinkComponent="a"] - Element or component used to wrap the logo. Accepts `"a"` or any custom link component (e.g. React Router `Link`).
42
+ * @returns {JSX.Element} The rendered AppName component.
43
+ */
44
+ export declare const AppName: ({ label, className, logoAlt, logoLinkProps, LogoLinkComponent, ...props }: AppNameProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import logoAxa from "@axa-fr/canopee-css/logo-axa.svg";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ import "@axa-fr/canopee-css/prospect/AppName/AppNameAll.css";
5
+ /**
6
+ * Displays the application name alongside the AXA logo.
7
+ * The logo can optionally be wrapped in a native anchor or a custom link component.
8
+ *
9
+ * @component
10
+ * @param {AppNameProps} props - AppName props.
11
+ * @param {string} props.label - Application name displayed next to the logo.
12
+ * @param {string} [props.logoAlt="Logo AXA"] - Alt text for the AXA logo image.
13
+ * @param {Record<string, unknown>} [props.logoLinkProps] - Props forwarded to the wrapping anchor or `LogoLinkComponent`.
14
+ * @param {ElementType} [props.LogoLinkComponent="a"] - Element or component used to wrap the logo. Accepts `"a"` or any custom link component (e.g. React Router `Link`).
15
+ * @returns {JSX.Element} The rendered AppName component.
16
+ */
17
+ export const AppName = ({ label, className, logoAlt = "Logo AXA", logoLinkProps, LogoLinkComponent = "a", ...props }) => {
18
+ const logo = (_jsx("img", { src: logoAxa, alt: logoAlt, className: "af-app-name__logo" }));
19
+ return (_jsxs("div", { className: getClassName({
20
+ baseClassName: "af-app-name",
21
+ className,
22
+ }), ...props, children: [LogoLinkComponent ? (_jsx(LogoLinkComponent, { className: "af-app-name__logo-link", ...logoLinkProps, children: logo })) : (logo), _jsx("span", { className: "af-app-name__label", children: label })] }));
23
+ };
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
2
- export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
2
+ export { cardVariants, type CardVariants, type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/prospect/Card/CardApollo.css";
2
- export { CardCommon as Card, } from "./CardCommon";
2
+ export { cardVariants, CardCommon as Card, } from "./CardCommon";
@@ -1,4 +1,32 @@
1
1
  import type { ComponentProps, ElementType } from "react";
2
2
  import { type PolymorphicComponent } from "../utilities/types/PolymorphicComponent";
3
- export type CardCommonProps<T extends ElementType> = PolymorphicComponent<T, ComponentProps<"div">>;
4
- export declare const CardCommon: <T extends ElementType = "div">({ as, children, className, ...props }: CardCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const cardVariants: {
4
+ readonly unstyled: "unstyled";
5
+ };
6
+ export type CardVariants = keyof typeof cardVariants;
7
+ /**
8
+ * Props for the Card component.
9
+ *
10
+ * @template T - The element type rendered by the card (defaults to `"div"`).
11
+ */
12
+ export type CardCommonProps<T extends ElementType> = PolymorphicComponent<T, ComponentProps<"div"> & {
13
+ /**
14
+ * Visual variant of the card.
15
+ * - `"unstyled"` — removes border and padding.
16
+ */
17
+ variant?: CardVariants;
18
+ }>;
19
+ /**
20
+ * Polymorphic card wrapper that adds padding and a border.
21
+ * The underlying HTML element can be changed via the `as` prop.
22
+ *
23
+ * @component
24
+ * @template T - The element type rendered by the card.
25
+ * @param {CardCommonProps<T>} props - Card props.
26
+ * @param {ElementType} [props.as="div"] - HTML element or component to render as.
27
+ * @param {CardVariants} [props.variant] - Visual variant of the card.
28
+ * @param {string} [props.className] - Additional CSS class applied to the root element.
29
+ * @param {ReactNode} [props.children] - Content rendered inside the card.
30
+ * @returns {JSX.Element} The rendered Card component.
31
+ */
32
+ export declare const CardCommon: <T extends ElementType = "div">({ as, children, className, variant, ...props }: CardCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,27 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import {} from "../utilities/types/PolymorphicComponent";
3
3
  import { getClassName } from "../utilities/getClassName";
4
- export const CardCommon = ({ as, children, className, ...props }) => {
4
+ export const cardVariants = {
5
+ unstyled: "unstyled",
6
+ };
7
+ /**
8
+ * Polymorphic card wrapper that adds padding and a border.
9
+ * The underlying HTML element can be changed via the `as` prop.
10
+ *
11
+ * @component
12
+ * @template T - The element type rendered by the card.
13
+ * @param {CardCommonProps<T>} props - Card props.
14
+ * @param {ElementType} [props.as="div"] - HTML element or component to render as.
15
+ * @param {CardVariants} [props.variant] - Visual variant of the card.
16
+ * @param {string} [props.className] - Additional CSS class applied to the root element.
17
+ * @param {ReactNode} [props.children] - Content rendered inside the card.
18
+ * @returns {JSX.Element} The rendered Card component.
19
+ */
20
+ export const CardCommon = ({ as, children, className, variant, ...props }) => {
5
21
  const Component = as || "div";
6
22
  return (_jsx(Component, { className: getClassName({
7
23
  baseClassName: "af-card",
24
+ modifiers: [variant],
8
25
  className,
9
26
  }), ...props, children: children }));
10
27
  };
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/client/Card/CardLF.css";
2
- export { type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
2
+ export { cardVariants, type CardVariants, type CardCommonProps as CardProps, CardCommon as Card, } from "./CardCommon";
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/client/Card/CardLF.css";
2
- export { CardCommon as Card, } from "./CardCommon";
2
+ export { cardVariants, CardCommon as Card, } from "./CardCommon";
@@ -0,0 +1,7 @@
1
+ import "@axa-fr/canopee-css/prospect/Form/ItemMultiSelect/ItemMultiSelectApollo.css";
2
+ import { type ItemMultiSelectCommonProps } from "./ItemMultiSelectCommon";
3
+ export type ItemMultiSelectProps = Omit<ItemMultiSelectCommonProps, "Checkbox">;
4
+ export declare const ItemMultiSelect: {
5
+ (props: ItemMultiSelectProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Form/ItemMultiSelect/ItemMultiSelectApollo.css";
3
+ import { Checkbox } from "../Checkbox/Checkbox/CheckboxApollo";
4
+ import { ItemMultiSelectCommon, } from "./ItemMultiSelectCommon";
5
+ export const ItemMultiSelect = (props) => (_jsx(ItemMultiSelectCommon, { ...props, Checkbox: Checkbox }));
6
+ ItemMultiSelect.displayName = "ItemMultiSelect";
@@ -0,0 +1,8 @@
1
+ import { type ComponentProps, type ComponentType, type FC, type ReactNode } from "react";
2
+ export type ItemMultiSelectVariant = "primary" | "secondary";
3
+ export type ItemMultiSelectCommonProps = Omit<ComponentProps<"input">, "type"> & {
4
+ label: ReactNode;
5
+ variant?: ItemMultiSelectVariant;
6
+ Checkbox: ComponentType<ComponentProps<"input">>;
7
+ };
8
+ export declare const ItemMultiSelectCommon: FC<ItemMultiSelectCommonProps>;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import { getClassName } from "../../utilities/getClassName";
4
+ export const ItemMultiSelectCommon = ({ label, variant = "primary", className = "", id, Checkbox, ...inputProps }) => (_jsxs("label", { className: getClassName({
5
+ baseClassName: "af-item-multi-select",
6
+ modifiers: [variant],
7
+ className: className ?? "",
8
+ }), htmlFor: id, children: [_jsx("span", { className: "af-item-multi-select__checkbox", children: _jsx(Checkbox, { id: id, ...inputProps }) }), _jsx("span", { className: "af-item-multi-select__label", children: label })] }));
9
+ ItemMultiSelectCommon.displayName = "ItemMultiSelectCommon";
@@ -0,0 +1,7 @@
1
+ import "@axa-fr/canopee-css/client/Form/ItemMultiSelect/ItemMultiSelectLF.css";
2
+ import { type ItemMultiSelectCommonProps } from "./ItemMultiSelectCommon";
3
+ export type ItemMultiSelectProps = Omit<ItemMultiSelectCommonProps, "Checkbox">;
4
+ export declare const ItemMultiSelect: {
5
+ (props: ItemMultiSelectProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/Form/ItemMultiSelect/ItemMultiSelectLF.css";
3
+ import { Checkbox } from "../Checkbox/Checkbox/CheckboxLF";
4
+ import { ItemMultiSelectCommon, } from "./ItemMultiSelectCommon";
5
+ export const ItemMultiSelect = (props) => (_jsx(ItemMultiSelectCommon, { ...props, Checkbox: Checkbox }));
6
+ ItemMultiSelect.displayName = "ItemMultiSelect";
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/prospect/Header/HeaderApollo.css";
2
+ import { type HeaderProps } from "./HeaderCommon";
3
+ export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { HeaderProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Header/HeaderApollo.css";
3
+ import { AppName } from "../AppName/AppName";
4
+ import { Heading } from "../Heading/HeadingApollo";
5
+ import { MenuBurger } from "../MenuBurger/MenuBurgerApollo";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconApollo";
7
+ import { HeaderCommon } from "./HeaderCommon";
8
+ export const Header = (props) => (_jsx(HeaderCommon, { AppNameComponent: AppName, HeadingComponent: Heading, MenuBurgerComponent: MenuBurger, ClickIconComponent: ClickIcon, ...props }));
@@ -0,0 +1,22 @@
1
+ import { type ComponentPropsWithoutRef, type ComponentType, type ReactNode } from "react";
2
+ import { type ClickIconProps } from "../ClickIcon/ClickIconCommon";
3
+ import { type AppNameProps } from "../AppName/AppName";
4
+ import { type HeadingProps } from "../Heading/types";
5
+ import { type MenuBurgerProps } from "../MenuBurger/MenuBurgerCommon";
6
+ import { type TabMenuProps } from "../TabMenu/TabMenu";
7
+ export type HeaderProps = Omit<ComponentPropsWithoutRef<"header">, "title"> & {
8
+ appNameProps: AppNameProps;
9
+ menuBurgerProps?: MenuBurgerProps;
10
+ tabMenuProps?: TabMenuProps;
11
+ clickIconProps?: ClickIconProps;
12
+ title?: string;
13
+ actionChildren?: ReactNode;
14
+ };
15
+ type HeaderCommonProps = HeaderProps & {
16
+ AppNameComponent: ComponentType<AppNameProps>;
17
+ HeadingComponent: ComponentType<HeadingProps>;
18
+ MenuBurgerComponent: ComponentType<MenuBurgerProps>;
19
+ ClickIconComponent: ComponentType<ClickIconProps>;
20
+ };
21
+ export declare const HeaderCommon: ({ appNameProps, menuBurgerProps, tabMenuProps, clickIconProps, title, className, AppNameComponent, HeadingComponent, MenuBurgerComponent, ClickIconComponent, actionChildren, ...props }: HeaderCommonProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import menu from "@material-symbols/svg-400/outlined/menu.svg";
4
+ import { BREAKPOINT } from "../utilities/constants";
5
+ import {} from "../ClickIcon/ClickIconCommon";
6
+ import { TabMenu } from "../TabMenu/TabMenu";
7
+ import {} from "../AppName/AppName";
8
+ import {} from "../Heading/types";
9
+ import {} from "../MenuBurger/MenuBurgerCommon";
10
+ import {} from "../TabMenu/TabMenu";
11
+ import { getClassName } from "../utilities/getClassName";
12
+ import { useIsSmallScreen } from "../utilities/hook/useIsSmallScreen";
13
+ const withElementClass = (props, baseClassName) => ({
14
+ ...props,
15
+ className: getClassName({
16
+ baseClassName,
17
+ className: props.className,
18
+ }),
19
+ });
20
+ export const HeaderCommon = ({ appNameProps, menuBurgerProps, tabMenuProps, clickIconProps, title, className, AppNameComponent, HeadingComponent, MenuBurgerComponent, ClickIconComponent, actionChildren, ...props }) => {
21
+ const isSmallScreen = useIsSmallScreen(BREAKPOINT.MD);
22
+ const parsedAppNameProps = withElementClass(appNameProps, "af-header__app-name");
23
+ const parsedMenuBurgerProps = menuBurgerProps
24
+ ? withElementClass(menuBurgerProps, "af-header__menu-burger")
25
+ : undefined;
26
+ const parsedTabMenuProps = tabMenuProps
27
+ ? withElementClass(tabMenuProps, "af-header__tab-menu")
28
+ : undefined;
29
+ return (_jsxs("header", { className: getClassName({
30
+ baseClassName: "af-header",
31
+ className,
32
+ }), ...props, children: [_jsx(AppNameComponent, { ...parsedAppNameProps }), Boolean(parsedMenuBurgerProps) ||
33
+ Boolean(parsedTabMenuProps) ||
34
+ Boolean(actionChildren) ? (_jsx(ClickIconComponent, { ...clickIconProps, src: menu, size: "S", variant: "ghost", className: "af-header__menu-icon", "aria-haspopup": isSmallScreen ? "menu" : undefined, "aria-label": clickIconProps?.["aria-label"] ?? "Ouvrir le menu", popoverTarget: isSmallScreen ? "af-header-menu" : undefined, popoverTargetAction: isSmallScreen ? "toggle" : undefined })) : null, _jsxs("div", { id: "af-header-menu", popover: isSmallScreen ? "auto" : undefined, className: "af-header__menu", children: [parsedTabMenuProps ? _jsx(TabMenu, { ...parsedTabMenuProps }) : null, (title && !isSmallScreen) ||
35
+ actionChildren ||
36
+ parsedMenuBurgerProps ? (_jsxs("div", { className: "af-header__actions", children: [title ? (_jsx(HeadingComponent, { level: 1, className: "af-header__title", children: title })) : null, actionChildren ? (_jsx("div", { className: "af-header__actions-children", children: actionChildren })) : null, parsedMenuBurgerProps ? (_jsx(MenuBurgerComponent, { ...parsedMenuBurgerProps })) : null] })) : null] })] }));
37
+ };
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/client/Header/HeaderLF.css";
2
+ import { type HeaderProps } from "./HeaderCommon";
3
+ export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { HeaderProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/Header/HeaderLF.css";
3
+ import { AppName } from "../AppName/AppName";
4
+ import { Heading } from "../Heading/HeadingLF";
5
+ import { MenuBurger } from "../MenuBurger/MenuBurgerLF";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconLF";
7
+ import { HeaderCommon } from "./HeaderCommon";
8
+ export const Header = (props) => (_jsx(HeaderCommon, { AppNameComponent: AppName, HeadingComponent: Heading, MenuBurgerComponent: MenuBurger, ClickIconComponent: ClickIcon, ...props }));
@@ -1,4 +1,5 @@
1
1
  import type { ClickItemPropsCommon } from "./types";
2
+ export type { ClickItemProps } from "./types";
2
3
  export declare const clickItemVariants: {
3
4
  readonly small: "small";
4
5
  readonly medium: "medium";
@@ -1,8 +1,33 @@
1
1
  import { type ComponentProps, type ComponentType } from "react";
2
- import { CardCommon as Card, type CardCommonProps } from "../../Card/CardCommon";
3
- export type ListProps = CardCommonProps<"ul" | "ol">;
2
+ import { CardCommon as Card, type CardCommonProps, type CardVariants } from "../../Card/CardCommon";
3
+ /**
4
+ * Props for the List component.
5
+ * Extends `CardCommonProps` (without `variant` override) to allow the list
6
+ * to be rendered as a `ul` or `ol` with optional card styling.
7
+ */
8
+ export type ListProps = Omit<CardCommonProps<"ul" | "ol">, "variant"> & {
9
+ /**
10
+ * Visual variant inherited from Card.
11
+ * - `"default"` — bordered list with padding.
12
+ * - `"unstyled"` — removes border and padding.
13
+ * @default "default"
14
+ */
15
+ variant?: CardVariants;
16
+ };
4
17
  type ListPropsCommon = ListProps & {
5
18
  CardComponent: ComponentType<ComponentProps<typeof Card>>;
6
19
  };
20
+ /**
21
+ * Renders an accessible list (`ul` or `ol`) wrapped in a Card.
22
+ * Each direct child is automatically wrapped in a `<li>` element.
23
+ *
24
+ * @component
25
+ * @param {ListPropsCommon} props - List props.
26
+ * @param {ReactNode} props.children - Items to render inside the list. Each child is wrapped in a `<li>`.
27
+ * @param {"ul" | "ol"} [props.as="ul"] - HTML list element to render.
28
+ * @param {CardVariants} [props.variant="default"] - Visual variant of the surrounding Card.
29
+ * @param {ComponentType} props.CardComponent - Injected Card component (theme-specific).
30
+ * @returns {JSX.Element} The rendered List component.
31
+ */
7
32
  export declare const ListCommon: ({ children, CardComponent, as, ...listProps }: ListPropsCommon) => import("react/jsx-runtime").JSX.Element;
8
33
  export {};
@@ -2,4 +2,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Children } from "react";
3
3
  import { CardCommon as Card, } from "../../Card/CardCommon";
4
4
  import { generateId } from "../../utilities/generateId";
5
+ /**
6
+ * Renders an accessible list (`ul` or `ol`) wrapped in a Card.
7
+ * Each direct child is automatically wrapped in a `<li>` element.
8
+ *
9
+ * @component
10
+ * @param {ListPropsCommon} props - List props.
11
+ * @param {ReactNode} props.children - Items to render inside the list. Each child is wrapped in a `<li>`.
12
+ * @param {"ul" | "ol"} [props.as="ul"] - HTML list element to render.
13
+ * @param {CardVariants} [props.variant="default"] - Visual variant of the surrounding Card.
14
+ * @param {ComponentType} props.CardComponent - Injected Card component (theme-specific).
15
+ * @returns {JSX.Element} The rendered List component.
16
+ */
5
17
  export const ListCommon = ({ children, CardComponent, as = "ul", ...listProps }) => (_jsx(CardComponent, { as: as, ...listProps, children: Children.toArray(children).map((child) => (_jsx("li", { children: child }, generateId(child)))) }));
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/prospect/MenuBurger/MenuBurgerAll.css";
2
+ import { type MenuBurgerProps } from "./MenuBurgerCommon";
3
+ export declare const MenuBurger: (props: MenuBurgerProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { MenuBurgerProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/MenuBurger/MenuBurgerAll.css";
3
+ import { Button } from "../Button/ButtonApollo";
4
+ import { Icon } from "../Icon/IconApollo";
5
+ import { ClickItem } from "../List/ClickItem/ClickItemApollo";
6
+ import { List } from "../List/List/ListApollo";
7
+ import { MenuBurgerCommon } from "./MenuBurgerCommon";
8
+ export const MenuBurger = (props) => (_jsx(MenuBurgerCommon, { ButtonComponent: Button, ClickItemComponent: ClickItem, IconComponent: Icon, ListComponent: List, ...props }));
@@ -0,0 +1,60 @@
1
+ import { type ComponentPropsWithoutRef, type ComponentType, type ReactNode, type PropsWithChildren } from "react";
2
+ import type { ButtonProps } from "../Button/ButtonCommon";
3
+ import type { IconProps } from "../Icon/IconCommon";
4
+ import type { ClickItemProps } from "../List/ClickItem/ClickItemCommon";
5
+ import type { ListProps } from "../List/List/ListCommon";
6
+ export declare const menuBurgerVariants: {
7
+ readonly primary: "primary";
8
+ readonly secondary: "secondary";
9
+ };
10
+ export type MenuBurgerVariants = keyof typeof menuBurgerVariants;
11
+ export type MenuBurgerClickItemProps = Omit<ClickItemProps, "variant"> & {
12
+ variant?: ClickItemProps["variant"];
13
+ };
14
+ /**
15
+ * Props for the MenuBurger component.
16
+ */
17
+ export type MenuBurgerProps = {
18
+ /**
19
+ * Label displayed inside the trigger button.
20
+ */
21
+ buttonLabel: string;
22
+ /**
23
+ * Extra content rendered below the ClickItem list.
24
+ */
25
+ children?: ReactNode;
26
+ /**
27
+ * Icon displayed on the left side of the trigger button.
28
+ * @default person
29
+ */
30
+ icon?: IconProps["src"];
31
+ /**
32
+ * Visual variant of the trigger button.
33
+ * @default primary
34
+ */
35
+ variant?: MenuBurgerVariants;
36
+ /**
37
+ * ClickItem list rendered inside the popover panel.
38
+ */
39
+ clickItems?: MenuBurgerClickItemProps[];
40
+ } & Omit<ComponentPropsWithoutRef<"div">, "children">;
41
+ type MenuBurgerCommonProps = PropsWithChildren<MenuBurgerProps> & {
42
+ ButtonComponent: ComponentType<ButtonProps>;
43
+ ClickItemComponent: ComponentType<ClickItemProps>;
44
+ IconComponent: ComponentType<IconProps>;
45
+ ListComponent: ComponentType<ListProps>;
46
+ };
47
+ /**
48
+ * Renders a burger-style menu button opening a popover panel with navigation and actions.
49
+ *
50
+ * @component
51
+ * @param {PropsWithChildren<MenuBurgerProps>} props - MenuBurger props.
52
+ * @param {string} props.buttonLabel - Label shown in the trigger button.
53
+ * @param {IconProps["src"]} [props.icon=person] - Icon shown on the left of the trigger button.
54
+ * @param {MenuBurgerVariants} [props.variant=primary] - Visual variant of the trigger button.
55
+ * @param {ClickItemProps[]} [props.clickItems] - Click items displayed under the links.
56
+ * @param {React.ReactNode} [props.children] - Extra content rendered below the ClickItem list.
57
+ * @returns {JSX.Element} The rendered MenuBurger component.
58
+ */
59
+ export declare const MenuBurgerCommon: ({ buttonLabel, icon, variant, clickItems, children, className, ButtonComponent, ClickItemComponent, IconComponent, ListComponent, ...props }: MenuBurgerCommonProps) => import("react/jsx-runtime").JSX.Element;
60
+ export {};
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import keyboardArrowDown from "@material-symbols/svg-400/outlined/keyboard_arrow_down.svg";
3
+ import person from "@material-symbols/svg-400/outlined/person.svg";
4
+ import { useId, } from "react";
5
+ import { getClassName } from "../utilities/getClassName";
6
+ import { useIsSmallScreen } from "../utilities/hook/useIsSmallScreen";
7
+ import { BREAKPOINT } from "../utilities/constants";
8
+ export const menuBurgerVariants = {
9
+ primary: "primary",
10
+ secondary: "secondary",
11
+ };
12
+ /**
13
+ * Renders a burger-style menu button opening a popover panel with navigation and actions.
14
+ *
15
+ * @component
16
+ * @param {PropsWithChildren<MenuBurgerProps>} props - MenuBurger props.
17
+ * @param {string} props.buttonLabel - Label shown in the trigger button.
18
+ * @param {IconProps["src"]} [props.icon=person] - Icon shown on the left of the trigger button.
19
+ * @param {MenuBurgerVariants} [props.variant=primary] - Visual variant of the trigger button.
20
+ * @param {ClickItemProps[]} [props.clickItems] - Click items displayed under the links.
21
+ * @param {React.ReactNode} [props.children] - Extra content rendered below the ClickItem list.
22
+ * @returns {JSX.Element} The rendered MenuBurger component.
23
+ */
24
+ export const MenuBurgerCommon = ({ buttonLabel, icon = person, variant = "primary", clickItems, children, className, ButtonComponent, ClickItemComponent, IconComponent, ListComponent, ...props }) => {
25
+ const isSmallScreen = useIsSmallScreen(BREAKPOINT.MD);
26
+ const isDesktop = !isSmallScreen;
27
+ const popoverId = useId();
28
+ const triggerId = `${popoverId}-trigger`;
29
+ const iconVariant = variant === "primary" ? "secondary" : "primary";
30
+ return (_jsxs("div", { className: getClassName({
31
+ baseClassName: "af-menu-burger",
32
+ className,
33
+ }), ...props, children: [isDesktop ? (_jsx(ButtonComponent, { id: triggerId, className: "af-menu-burger__button", variant: variant, iconLeft: _jsx(IconComponent, { src: icon, alt: "", role: "presentation", size: "S", variant: iconVariant }), iconRight: _jsx(IconComponent, { className: "af-menu-burger__button-icon--suffix", src: keyboardArrowDown, alt: "", role: "presentation", size: "S", variant: iconVariant }), popoverTarget: popoverId, popoverTargetAction: "toggle", "aria-haspopup": "true", children: buttonLabel })) : null, _jsxs("section", { id: isDesktop ? popoverId : undefined, popover: isDesktop ? "auto" : undefined, className: "af-menu-burger__panel", "aria-labelledby": isDesktop ? triggerId : undefined, children: [clickItems && clickItems.length > 0 ? (_jsx("div", { className: "af-menu-burger__section af-menu-burger__section--actions", children: _jsx(ListComponent, { className: "af-menu-burger__click-items", variant: "unstyled", children: clickItems.map((clickItem) => (_jsx(ClickItemComponent, { variant: clickItem.variant ?? "small", ...clickItem }, clickItem.title))) }) })) : null, children ? (_jsx("div", { className: "af-menu-burger__section af-menu-burger__content", children: children })) : null] })] }));
34
+ };
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/client/MenuBurger/MenuBurgerAll.css";
2
+ import { type MenuBurgerProps } from "./MenuBurgerCommon";
3
+ export declare const MenuBurger: (props: MenuBurgerProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { MenuBurgerProps };
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/MenuBurger/MenuBurgerAll.css";
3
+ import { Button } from "../Button/ButtonLF";
4
+ import { Icon } from "../Icon/IconLF";
5
+ import { ClickItem } from "../List/ClickItem/ClickItemLF";
6
+ import { List } from "../List/List/ListLF";
7
+ import { MenuBurgerCommon } from "./MenuBurgerCommon";
8
+ export const MenuBurger = (props) => (_jsx(MenuBurgerCommon, { ButtonComponent: Button, ClickItemComponent: ClickItem, IconComponent: Icon, ListComponent: List, ...props }));
@@ -33,7 +33,7 @@ export const TabMenu = ({ items, className, initialPosition = 0, ...props }) =>
33
33
  className,
34
34
  }), ...props,
35
35
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
36
- tabIndex: 0, onKeyDown: (e) => handleKeys(e.key), children: _jsx("ul", { className: "af-tab-menu__list", children: items.map((item, index) => (_jsx("li", { role: "presentation", children: _jsx(ItemMenu, { ref: (el) => {
36
+ tabIndex: 0, onKeyDown: (e) => handleKeys(e.key), children: _jsx("ul", { className: "af-tab-menu__list", children: items.map((item, index) => (_jsx("li", { children: _jsx(ItemMenu, { ref: (el) => {
37
37
  itemRefs.current[index] = el;
38
38
  }, ...item, isActive: index === position ? true : item.isActive, tabIndex: index === position ? 0 : -1, children: item.label }) }, item.href))) }) }));
39
39
  };
@@ -0,0 +1,4 @@
1
+ import { type TagListProps as TagListCommonProps } from "./TagListCommon";
2
+ import "@axa-fr/canopee-css/prospect/TagList/TagListAll.css";
3
+ export type TagListProps = Omit<TagListCommonProps, "OverflowTag">;
4
+ export declare const TagList: (props: TagListProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Tag } from "../Tag/TagCommon";
3
+ import { TagListCommon, } from "./TagListCommon";
4
+ import "@axa-fr/canopee-css/prospect/TagList/TagListAll.css";
5
+ export const TagList = (props) => (_jsx(TagListCommon, { ...props, OverflowTag: Tag }));
@@ -0,0 +1,10 @@
1
+ import { type ComponentType, type ReactNode } from "react";
2
+ export type TagListProps = {
3
+ children: ReactNode;
4
+ hideThreshold?: number;
5
+ className?: string;
6
+ OverflowTag: ComponentType<{
7
+ children: ReactNode;
8
+ }>;
9
+ };
10
+ export declare const TagListCommon: ({ children, hideThreshold, className, OverflowTag, }: TagListProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Children, isValidElement, } from "react";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ export const TagListCommon = ({ children, hideThreshold = 2, className = "", OverflowTag, }) => {
5
+ const childArray = Children.toArray(children).filter(isValidElement);
6
+ const total = childArray.length;
7
+ const isOverflowing = total > hideThreshold;
8
+ const visibleChildren = isOverflowing
9
+ ? childArray.slice(0, hideThreshold)
10
+ : childArray;
11
+ const hiddenCount = total - hideThreshold;
12
+ return (_jsxs("div", { className: getClassName({
13
+ baseClassName: "af-tag-list",
14
+ className,
15
+ }), children: [visibleChildren, isOverflowing ? _jsxs(OverflowTag, { children: ["+", hiddenCount] }) : null] }));
16
+ };
@@ -0,0 +1,4 @@
1
+ import { type TagListProps as TagListCommonProps } from "./TagListCommon";
2
+ import "@axa-fr/canopee-css/client/TagList/TagListAll.css";
3
+ export type TagListProps = Omit<TagListCommonProps, "OverflowTag">;
4
+ export declare const TagList: (props: TagListProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Tag } from "../Tag/TagCommon";
3
+ import { TagListCommon, } from "./TagListCommon";
4
+ import "@axa-fr/canopee-css/client/TagList/TagListAll.css";
5
+ export const TagList = (props) => (_jsx(TagListCommon, { ...props, OverflowTag: Tag }));
@@ -5,9 +5,10 @@ import "@fontsource/source-sans-pro";
5
5
  export { Accordion, accordionVariants, type AccordionVariants, } from "./prospect-client/Accordion/AccordionApollo";
6
6
  export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualApollo";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreApollo";
8
+ export { AppName, type AppNameProps } from "./prospect-client/AppName/AppName";
8
9
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
10
  export { Button, buttonVariants, type ButtonVariants, } from "./prospect-client/Button/ButtonApollo";
10
- export { Card, type CardProps } from "./prospect-client/Card/CardApollo";
11
+ export { Card, cardVariants, type CardProps, type CardVariants, } from "./prospect-client/Card/CardApollo";
11
12
  export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./prospect-client/CardMessage/CardMessageApollo";
12
13
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconApollo";
13
14
  export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo";
@@ -32,6 +33,7 @@ export { InputText } from "./prospect-client/Form/InputText/InputTextApollo";
32
33
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomApollo";
33
34
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
34
35
  export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
36
+ export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
35
37
  export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
36
38
  export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
37
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
@@ -39,9 +41,11 @@ export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/Ra
39
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
40
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
41
43
  export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingApollo";
44
+ export { Header, type HeaderProps, } from "./prospect-client/Header/HeaderApollo";
42
45
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconApollo";
43
46
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
44
47
  export { ItemMenu, type ItemMenuProps, } from "./prospect-client/ItemMenu/ItemMenuApollo";
48
+ export { MenuBurger, type MenuBurgerProps, } from "./prospect-client/MenuBurger/MenuBurgerApollo";
45
49
  export { TabMenu, type TabMenuProps } from "./prospect-client/TabMenu/TabMenu";
46
50
  export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
47
51
  export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterApollo";
@@ -70,6 +74,7 @@ export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from
70
74
  export { Table, type BodyColorVariants, type HeadColorVariants, type RowSizeVariants, type TableProps, } from "./prospect-client/Table/TableApollo";
71
75
  export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
72
76
  export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagApollo";
77
+ export { TagList, type TagListProps, } from "./prospect-client/TagList/TagListApollo";
73
78
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalApollo";
74
79
  export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
75
80
  export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
package/dist/prospect.js CHANGED
@@ -5,9 +5,10 @@ import "@fontsource/source-sans-pro";
5
5
  export { Accordion, accordionVariants, } from "./prospect-client/Accordion/AccordionApollo";
6
6
  export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualApollo";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreApollo";
8
+ export { AppName } from "./prospect-client/AppName/AppName";
8
9
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
10
  export { Button, buttonVariants, } from "./prospect-client/Button/ButtonApollo";
10
- export { Card } from "./prospect-client/Card/CardApollo";
11
+ export { Card, cardVariants, } from "./prospect-client/Card/CardApollo";
11
12
  export { CardMessage, cardMessageVariants, } from "./prospect-client/CardMessage/CardMessageApollo";
12
13
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconApollo";
13
14
  export { ContentItemDuoAction, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo";
@@ -32,6 +33,7 @@ export { InputText } from "./prospect-client/Form/InputText/InputTextApollo";
32
33
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomApollo";
33
34
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
34
35
  export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
36
+ export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
35
37
  export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
36
38
  export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
37
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
@@ -39,9 +41,11 @@ export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextApol
39
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
40
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
41
43
  export { Heading, } from "./prospect-client/Heading/HeadingApollo";
44
+ export { Header, } from "./prospect-client/Header/HeaderApollo";
42
45
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconApollo";
43
46
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
44
47
  export { ItemMenu, } from "./prospect-client/ItemMenu/ItemMenuApollo";
48
+ export { MenuBurger, } from "./prospect-client/MenuBurger/MenuBurgerApollo";
45
49
  export { TabMenu } from "./prospect-client/TabMenu/TabMenu";
46
50
  export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
47
51
  export { Footer, } from "./prospect-client/Layout/Footer/FooterApollo";
@@ -70,5 +74,6 @@ export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarApollo"
70
74
  export { Table, } from "./prospect-client/Table/TableApollo";
71
75
  export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
72
76
  export { Tag, tagVariants, } from "./prospect-client/Tag/TagApollo";
77
+ export { TagList, } from "./prospect-client/TagList/TagListApollo";
73
78
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalApollo";
74
79
  export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/canopee-react",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "Package React - Design System Canopée",
5
5
  "exports": {
6
6
  "./distributeur": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "homepage": "https://github.com/AxaFrance/design-system#readme",
55
55
  "peerDependencies": {
56
- "@axa-fr/canopee-css": "2.0.0-alpha.2",
56
+ "@axa-fr/canopee-css": "2.0.0-alpha.22",
57
57
  "@material-symbols/svg-400": ">= 0.19.0",
58
58
  "@material-symbols/svg-700": ">= 0.19.0",
59
59
  "react": ">= 19"