@axa-fr/canopee-react 1.8.1-alpha.1 → 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 (211) hide show
  1. package/dist/client.d.ts +11 -6
  2. package/dist/client.js +11 -6
  3. package/dist/distributeur/Action/Action.d.ts +8 -2
  4. package/dist/distributeur/Action/Action.js +4 -4
  5. package/dist/distributeur/Button/Button.d.ts +8 -5
  6. package/dist/distributeur/Button/Button.js +2 -2
  7. package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +6 -3
  8. package/dist/distributeur/Form/Checkbox/Checkbox.js +4 -4
  9. package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +6 -3
  10. package/dist/distributeur/Form/Checkbox/CheckboxInput.js +4 -4
  11. package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +7 -3
  12. package/dist/distributeur/Form/Checkbox/CheckboxItem.js +4 -4
  13. package/dist/distributeur/Form/Choice/Choice.d.ts +6 -3
  14. package/dist/distributeur/Form/Choice/Choice.js +4 -4
  15. package/dist/distributeur/Form/Choice/ChoiceInput.d.ts +6 -3
  16. package/dist/distributeur/Form/Choice/ChoiceInput.js +2 -4
  17. package/dist/distributeur/Form/Date/Date.d.ts +4 -1
  18. package/dist/distributeur/Form/Date/Date.js +4 -4
  19. package/dist/distributeur/Form/Date/DateInput.d.ts +4 -1
  20. package/dist/distributeur/Form/Date/DateInput.js +2 -4
  21. package/dist/distributeur/Form/Experimental/Input.d.ts +5 -1
  22. package/dist/distributeur/Form/Experimental/Input.js +4 -4
  23. package/dist/distributeur/Form/Experimental/TextInput.d.ts +4 -1
  24. package/dist/distributeur/Form/Experimental/TextInput.js +4 -4
  25. package/dist/distributeur/Form/Number/Number.d.ts +4 -1
  26. package/dist/distributeur/Form/Number/Number.js +4 -4
  27. package/dist/distributeur/Form/Pass/Pass.d.ts +4 -1
  28. package/dist/distributeur/Form/Pass/Pass.js +4 -4
  29. package/dist/distributeur/Form/Radio/Radio.d.ts +12 -23
  30. package/dist/distributeur/Form/Radio/Radio.js +4 -4
  31. package/dist/distributeur/Form/Radio/RadioInput.d.ts +6 -3
  32. package/dist/distributeur/Form/Radio/RadioInput.js +4 -4
  33. package/dist/distributeur/Form/Radio/RadioItem.d.ts +4 -1
  34. package/dist/distributeur/Form/Radio/RadioItem.js +4 -4
  35. package/dist/distributeur/Form/Select/Select.d.ts +9 -325
  36. package/dist/distributeur/Form/Select/Select.js +5 -5
  37. package/dist/distributeur/Form/Select/SelectBase.d.ts +10 -6
  38. package/dist/distributeur/Form/Select/SelectBase.js +4 -4
  39. package/dist/distributeur/Form/Select/SelectDefault.d.ts +4 -1
  40. package/dist/distributeur/Form/Select/SelectDefault.js +4 -4
  41. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +4 -1
  42. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.js +5 -12
  43. package/dist/distributeur/Form/Select/SelectInput.d.ts +9 -376
  44. package/dist/distributeur/Form/Select/SelectInput.js +2 -4
  45. package/dist/distributeur/Form/Text/Text.d.ts +4 -1
  46. package/dist/distributeur/Form/Text/Text.js +4 -4
  47. package/dist/distributeur/Form/Text/TextInput.d.ts +4 -1
  48. package/dist/distributeur/Form/Text/TextInput.js +2 -4
  49. package/dist/distributeur/Form/Textarea/Textarea.d.ts +7 -2
  50. package/dist/distributeur/Form/Textarea/Textarea.js +4 -4
  51. package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +4 -1
  52. package/dist/distributeur/Form/Textarea/TextareaInput.js +2 -4
  53. package/dist/distributeur/Layout/Footer/Footer.d.ts +5 -3
  54. package/dist/distributeur/Layout/Footer/Footer.js +2 -2
  55. package/dist/distributeur/Layout/Header/Name/Name.js +1 -1
  56. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.js +1 -1
  57. package/dist/distributeur/Link/Link.d.ts +4 -1
  58. package/dist/distributeur/Link/Link.js +3 -4
  59. package/dist/distributeur/Link/LinkAnchor.d.ts +4 -1
  60. package/dist/distributeur/Link/LinkAnchor.js +4 -4
  61. package/dist/distributeur/Loader/ItemLoader.d.ts +4 -0
  62. package/dist/distributeur/Loader/ItemLoader.js +8 -0
  63. package/dist/distributeur/Loader/Loader.d.ts +7 -10
  64. package/dist/distributeur/Loader/Loader.js +12 -27
  65. package/dist/distributeur/Loader/SquareLoader.d.ts +15 -0
  66. package/dist/distributeur/Loader/SquareLoader.js +33 -0
  67. package/dist/distributeur/ModalAgent/BooleanModal.d.ts +4 -1
  68. package/dist/distributeur/ModalAgent/BooleanModal.js +4 -4
  69. package/dist/distributeur/ModalAgent/Modal.d.ts +4 -1
  70. package/dist/distributeur/ModalAgent/Modal.js +4 -4
  71. package/dist/distributeur/Steps/VerticalStep.d.ts +2 -8
  72. package/dist/distributeur/Svg/svgInjector.js +1 -0
  73. package/dist/distributeur/Tag/Tag.d.ts +4 -1
  74. package/dist/distributeur/Tag/Tag.js +4 -4
  75. package/dist/distributeur/Title/Title.d.ts +4 -1
  76. package/dist/distributeur/Title/Title.js +4 -4
  77. package/dist/distributeur.d.ts +12 -6
  78. package/dist/distributeur.js +4 -1
  79. package/dist/prospect-client/AppName/AppName.d.ts +44 -0
  80. package/dist/prospect-client/AppName/AppName.js +23 -0
  81. package/dist/prospect-client/Card/CardApollo.d.ts +1 -1
  82. package/dist/prospect-client/Card/CardApollo.js +1 -1
  83. package/dist/prospect-client/Card/CardCommon.d.ts +30 -2
  84. package/dist/prospect-client/Card/CardCommon.js +18 -1
  85. package/dist/prospect-client/Card/CardLF.d.ts +1 -1
  86. package/dist/prospect-client/Card/CardLF.js +1 -1
  87. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.d.ts +4 -1
  88. package/dist/prospect-client/Form/Checkbox/CardCheckboxOption/CardCheckboxOptionCommon.js +3 -3
  89. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.d.ts +4 -1
  90. package/dist/prospect-client/Form/Checkbox/Checkbox/CheckboxCommon.js +2 -2
  91. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.d.ts +4 -1
  92. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextApollo.js +1 -2
  93. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +4 -1
  94. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +4 -4
  95. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.d.ts +4 -1
  96. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextLF.js +1 -2
  97. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +4 -1
  98. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -4
  99. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.d.ts +4 -1
  100. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadApollo.js +1 -2
  101. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.d.ts +4 -1
  102. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadCommon.js +4 -4
  103. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.d.ts +4 -1
  104. package/dist/prospect-client/Form/FileUpload/FileUpload/FileUploadLF.js +1 -2
  105. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.d.ts +4 -1
  106. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileApollo.js +3 -4
  107. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +4 -1
  108. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +4 -6
  109. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.d.ts +4 -1
  110. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileLF.js +1 -2
  111. package/dist/prospect-client/Form/InputDate/InputDateApollo.d.ts +4 -1
  112. package/dist/prospect-client/Form/InputDate/InputDateApollo.js +1 -2
  113. package/dist/prospect-client/Form/InputDate/InputDateAtom.d.ts +4 -1
  114. package/dist/prospect-client/Form/InputDate/InputDateAtom.js +2 -2
  115. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +4 -1
  116. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +4 -4
  117. package/dist/prospect-client/Form/InputDate/InputDateLF.d.ts +4 -1
  118. package/dist/prospect-client/Form/InputDate/InputDateLF.js +1 -2
  119. package/dist/prospect-client/Form/InputDate/InputDateTextAtom.d.ts +4 -1
  120. package/dist/prospect-client/Form/InputDate/InputDateTextAtom.js +4 -4
  121. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +4 -1
  122. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +4 -4
  123. package/dist/prospect-client/Form/InputText/InputTextApollo.d.ts +4 -1
  124. package/dist/prospect-client/Form/InputText/InputTextApollo.js +1 -2
  125. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -1
  126. package/dist/prospect-client/Form/InputText/InputTextCommon.js +4 -4
  127. package/dist/prospect-client/Form/InputText/InputTextLF.d.ts +4 -1
  128. package/dist/prospect-client/Form/InputText/InputTextLF.js +1 -2
  129. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.d.ts +4 -1
  130. package/dist/prospect-client/Form/InputTextAtom/InputTextAtomCommon.js +4 -4
  131. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.d.ts +7 -0
  132. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.js +6 -0
  133. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +8 -0
  134. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.js +9 -0
  135. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +7 -0
  136. package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.js +6 -0
  137. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +3 -0
  138. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +6 -0
  139. package/dist/prospect-client/Form/Radio/{CardRadioOption/CardRadioOptionCommon.d.ts → CardRadio/CardRadioCommon.d.ts} +7 -4
  140. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +16 -0
  141. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +3 -0
  142. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +6 -0
  143. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +2 -2
  144. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.d.ts +6 -6
  145. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +3 -3
  146. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +2 -2
  147. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.d.ts +4 -1
  148. package/dist/prospect-client/Form/Radio/Radio/RadioCommon.js +3 -3
  149. package/dist/prospect-client/Form/TextArea/TextAreaApollo.d.ts +4 -1
  150. package/dist/prospect-client/Form/TextArea/TextAreaApollo.js +1 -2
  151. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +4 -1
  152. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -4
  153. package/dist/prospect-client/Form/TextArea/TextAreaLF.d.ts +4 -1
  154. package/dist/prospect-client/Form/TextArea/TextAreaLF.js +1 -2
  155. package/dist/prospect-client/Header/HeaderApollo.d.ts +4 -0
  156. package/dist/prospect-client/Header/HeaderApollo.js +8 -0
  157. package/dist/prospect-client/Header/HeaderCommon.d.ts +22 -0
  158. package/dist/prospect-client/Header/HeaderCommon.js +37 -0
  159. package/dist/prospect-client/Header/HeaderLF.d.ts +4 -0
  160. package/dist/prospect-client/Header/HeaderLF.js +8 -0
  161. package/dist/prospect-client/ItemMenu/ItemMenuApollo.d.ts +2 -0
  162. package/dist/prospect-client/ItemMenu/ItemMenuApollo.js +2 -0
  163. package/dist/prospect-client/ItemMenu/ItemMenuCommon.d.ts +22 -0
  164. package/dist/prospect-client/ItemMenu/ItemMenuCommon.js +18 -0
  165. package/dist/prospect-client/ItemMenu/ItemMenuLF.d.ts +2 -0
  166. package/dist/prospect-client/ItemMenu/ItemMenuLF.js +2 -0
  167. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +4 -1
  168. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.js +4 -4
  169. package/dist/prospect-client/List/ClickItem/ClickItemCommon.d.ts +1 -0
  170. package/dist/prospect-client/List/List/ListCommon.d.ts +27 -2
  171. package/dist/prospect-client/List/List/ListCommon.js +12 -0
  172. package/dist/prospect-client/Loader/LoaderCommon.d.ts +4 -1
  173. package/dist/prospect-client/Loader/LoaderCommon.js +4 -4
  174. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.d.ts +4 -0
  175. package/dist/prospect-client/MenuBurger/MenuBurgerApollo.js +8 -0
  176. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.d.ts +60 -0
  177. package/dist/prospect-client/MenuBurger/MenuBurgerCommon.js +34 -0
  178. package/dist/prospect-client/MenuBurger/MenuBurgerLF.d.ts +4 -0
  179. package/dist/prospect-client/MenuBurger/MenuBurgerLF.js +8 -0
  180. package/dist/prospect-client/Modal/ModalApollo.d.ts +4 -1
  181. package/dist/prospect-client/Modal/ModalApollo.js +2 -3
  182. package/dist/prospect-client/Modal/ModalCommon.d.ts +4 -1
  183. package/dist/prospect-client/Modal/ModalCommon.js +1 -2
  184. package/dist/prospect-client/Modal/ModalLF.d.ts +4 -1
  185. package/dist/prospect-client/Modal/ModalLF.js +2 -3
  186. package/dist/prospect-client/Modal/components/ModalCore.d.ts +4 -1
  187. package/dist/prospect-client/Modal/components/ModalCore.js +3 -3
  188. package/dist/prospect-client/TabMenu/TabMenu.d.ts +36 -0
  189. package/dist/prospect-client/TabMenu/TabMenu.helpers.d.ts +1 -0
  190. package/dist/prospect-client/TabMenu/TabMenu.helpers.js +12 -0
  191. package/dist/prospect-client/TabMenu/TabMenu.js +39 -0
  192. package/dist/prospect-client/TagList/TagListApollo.d.ts +4 -0
  193. package/dist/prospect-client/TagList/TagListApollo.js +5 -0
  194. package/dist/prospect-client/TagList/TagListCommon.d.ts +10 -0
  195. package/dist/prospect-client/TagList/TagListCommon.js +16 -0
  196. package/dist/prospect-client/TagList/TagListLF.d.ts +4 -0
  197. package/dist/prospect-client/TagList/TagListLF.js +5 -0
  198. package/dist/prospect-client/Toggle/ToggleApollo.d.ts +4 -1
  199. package/dist/prospect-client/Toggle/ToggleApollo.js +1 -2
  200. package/dist/prospect-client/Toggle/ToggleCommon.d.ts +4 -3
  201. package/dist/prospect-client/Toggle/ToggleCommon.js +4 -4
  202. package/dist/prospect-client/Toggle/ToggleLF.d.ts +4 -1
  203. package/dist/prospect-client/Toggle/ToggleLF.js +1 -2
  204. package/dist/prospect.d.ts +10 -5
  205. package/dist/prospect.js +10 -5
  206. package/package.json +3 -3
  207. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.d.ts +0 -3
  208. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo.js +0 -6
  209. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +0 -16
  210. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.d.ts +0 -3
  211. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF.js +0 -6
@@ -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 }));
@@ -5,4 +5,7 @@ export { ModalCoreBody, type ModalCoreBodyProps, } from "./components/ModalCoreB
5
5
  export { ModalCoreFooter } from "./components/ModalCoreFooterApollo";
6
6
  export { ModalCoreHeader } from "./components/ModalCoreHeaderApollo";
7
7
  export type { ModalCoreFooterProps, ModalCoreHeaderProps, ModalProps, } from "./types";
8
- export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
8
+ export declare const Modal: {
9
+ ({ headingProps, icon, iconProps, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Modal/ModalApollo.css";
3
- import { forwardRef } from "react";
4
3
  import { Button } from "../Button/ButtonApollo";
5
4
  import { Heading } from "../Heading/HeadingApollo";
6
5
  import { ModalCommon } from "./ModalCommon";
@@ -8,10 +7,10 @@ export { ModalCore } from "./components/ModalCore";
8
7
  export { ModalCoreBody, } from "./components/ModalCoreBody";
9
8
  export { ModalCoreFooter } from "./components/ModalCoreFooterApollo";
10
9
  export { ModalCoreHeader } from "./components/ModalCoreHeaderApollo";
11
- export const Modal = forwardRef(({ headingProps = {}, icon, iconProps, ...props }, ref) => (_jsx(ModalCommon, { ...props, ref: ref, headingComponent: Heading, headingProps: {
10
+ export const Modal = ({ headingProps = {}, icon, iconProps, ...props }) => (_jsx(ModalCommon, { ...props, headingComponent: Heading, headingProps: {
12
11
  ...headingProps,
13
12
  children: props.title,
14
13
  icon: headingProps.icon ?? icon,
15
14
  iconProps: headingProps.iconProps ?? iconProps,
16
- }, buttonComponent: Button })));
15
+ }, buttonComponent: Button }));
17
16
  Modal.displayName = "Modal";
@@ -7,4 +7,7 @@ export type ModalCommonProps = ModalCoreProps & Omit<ModalCoreHeaderCommonProps,
7
7
  modalCoreFooterProps?: ModalCoreFooterContainerProps;
8
8
  modalCoreHeaderProps?: ModalCoreHeaderContainerProps;
9
9
  };
10
- export declare const ModalCommon: import("react").ForwardRefExoticComponent<Omit<ModalCommonProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
10
+ export declare const ModalCommon: {
11
+ ({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, iconProps, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }: ModalCommonProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
2
  import { ModalCore } from "./components/ModalCore";
4
3
  import { ModalCoreBody, } from "./components/ModalCoreBody";
5
4
  import { ModalCoreFooterCommon, } from "./components/ModalCoreFooterCommon";
6
5
  import { ModalCoreHeaderCommon } from "./components/ModalCoreHeaderCommon";
7
- export const ModalCommon = forwardRef(({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, iconProps, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }, ref) => (_jsxs(ModalCore, { onClose: onClose, ref: ref, ...props, children: [_jsx(ModalCoreHeaderCommon, { headingComponent: headingComponent, headingProps: headingProps, iconProps: iconProps, onClose: onClose, closeButtonAriaLabel: closeButtonAriaLabel, ...modalCoreHeaderProps }), _jsx(ModalCoreBody, { ...modalCoreBodyProps, children: children }), _jsx(ModalCoreFooterCommon, { buttonComponent: buttonComponent, primaryButtonProps: primaryButtonProps, secondaryButtonProps: secondaryButtonProps, tertiaryButtonProps: tertiaryButtonProps, ...modalCoreFooterProps })] })));
6
+ export const ModalCommon = ({ children, headingComponent, headingProps, closeButtonAriaLabel, onClose, iconProps, primaryButtonProps, secondaryButtonProps, tertiaryButtonProps, buttonComponent, modalCoreBodyProps, modalCoreFooterProps, modalCoreHeaderProps, ...props }) => (_jsxs(ModalCore, { onClose: onClose, ...props, children: [_jsx(ModalCoreHeaderCommon, { headingComponent: headingComponent, headingProps: headingProps, iconProps: iconProps, onClose: onClose, closeButtonAriaLabel: closeButtonAriaLabel, ...modalCoreHeaderProps }), _jsx(ModalCoreBody, { ...modalCoreBodyProps, children: children }), _jsx(ModalCoreFooterCommon, { buttonComponent: buttonComponent, primaryButtonProps: primaryButtonProps, secondaryButtonProps: secondaryButtonProps, tertiaryButtonProps: tertiaryButtonProps, ...modalCoreFooterProps })] }));
8
7
  ModalCommon.displayName = "ModalCommon";
@@ -5,4 +5,7 @@ export { ModalCoreBody, type ModalCoreBodyProps, } from "./components/ModalCoreB
5
5
  export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
6
6
  export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
7
7
  export type { ModalCoreFooterProps, ModalCoreHeaderProps, ModalProps, } from "./types";
8
- export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
8
+ export declare const Modal: {
9
+ ({ headingProps, icon, iconProps, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Modal/ModalLF.css";
3
- import { forwardRef } from "react";
4
3
  import { Button } from "../Button/ButtonLF";
5
4
  import { Heading } from "../Heading/HeadingLF";
6
5
  import { ModalCommon } from "./ModalCommon";
@@ -8,10 +7,10 @@ export { ModalCore } from "./components/ModalCore";
8
7
  export { ModalCoreBody, } from "./components/ModalCoreBody";
9
8
  export { ModalCoreFooter } from "./components/ModalCoreFooterLF";
10
9
  export { ModalCoreHeader } from "./components/ModalCoreHeaderLF";
11
- export const Modal = forwardRef(({ headingProps = {}, icon, iconProps, ...props }, ref) => (_jsx(ModalCommon, { ...props, ref: ref, headingComponent: Heading, headingProps: {
10
+ export const Modal = ({ headingProps = {}, icon, iconProps, ...props }) => (_jsx(ModalCommon, { ...props, headingComponent: Heading, headingProps: {
12
11
  ...headingProps,
13
12
  children: props.title,
14
13
  icon: headingProps.icon ?? icon,
15
14
  iconProps: headingProps.iconProps ?? iconProps,
16
- }, buttonComponent: Button })));
15
+ }, buttonComponent: Button }));
17
16
  Modal.displayName = "Modal";
@@ -2,5 +2,8 @@ import { type ComponentPropsWithRef } from "react";
2
2
  export type ModalCoreProps = Omit<ComponentPropsWithRef<"dialog">, "title" | "onClose"> & Required<Pick<ComponentPropsWithRef<"dialog">, "title">> & {
3
3
  onClose?: VoidFunction;
4
4
  };
5
- declare const ModalCore: import("react").ForwardRefExoticComponent<Omit<ModalCoreProps, "ref"> & import("react").RefAttributes<HTMLDialogElement>>;
5
+ declare const ModalCore: {
6
+ ({ className, children, ...props }: ModalCoreProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
6
9
  export { ModalCore };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- const ModalCore = forwardRef(({ className, children, ...props }, ref) => (
2
+ import {} from "react";
3
+ const ModalCore = ({ className, children, ...props }) => (
4
4
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events
5
- _jsx("dialog", { "aria-modal": true, "aria-label": props["aria-label"] ?? props.title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: props.onClose, ref: ref, ...props, children: _jsx("section", { className: "af-modal__content", onClick: (e) => e.stopPropagation(), children: children }) })));
5
+ _jsx("dialog", { "aria-modal": true, "aria-label": props["aria-label"] ?? props.title, className: ["af-modal", className].filter(Boolean).join(" "), onClick: props.onClose, ...props, children: _jsx("section", { className: "af-modal__content", onClick: (e) => e.stopPropagation(), children: children }) }));
6
6
  ModalCore.displayName = "ModalCore";
7
7
  export { ModalCore };
@@ -0,0 +1,36 @@
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import { type ItemMenuProps } from "../ItemMenu/ItemMenuCommon";
3
+ import "@axa-fr/canopee-css/prospect/TabMenu/TabMenuAll.css";
4
+ /**
5
+ * One item displayed in the TabMenu component.
6
+ */
7
+ export type TabMenuItemProps = Omit<ItemMenuProps, "children"> & {
8
+ /**
9
+ * Visible label of the menu item.
10
+ */
11
+ label: string;
12
+ };
13
+ /**
14
+ * Props for the TabMenu component.
15
+ */
16
+ export type TabMenuProps = {
17
+ /**
18
+ * List of menu items.
19
+ */
20
+ items?: TabMenuItemProps[];
21
+ /**
22
+ * Initial active item position.
23
+ * @default 0
24
+ */
25
+ initialPosition?: number;
26
+ } & Omit<ComponentPropsWithoutRef<"nav">, "children">;
27
+ /**
28
+ * Renders a keyboard-navigable tab-style menu.
29
+ *
30
+ * @component
31
+ * @param {TabMenuProps} props - TabMenu props.
32
+ * @param {TabMenuItemProps[]} [props.items] - Items to render.
33
+ * @param {number} [props.initialPosition=0] - Initially selected item index.
34
+ * @returns {JSX.Element | null} The rendered TabMenu, or null when no items are provided.
35
+ */
36
+ export declare const TabMenu: ({ items, className, initialPosition, ...props }: TabMenuProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const getPosition: (max: number, position: number, direction: string) => number;
@@ -0,0 +1,12 @@
1
+ export const getPosition = (max, position, direction) => {
2
+ switch (direction) {
3
+ case "ArrowRight":
4
+ case "ArrowDown":
5
+ return position + 1 < max ? position + 1 : 0;
6
+ case "ArrowLeft":
7
+ case "ArrowUp":
8
+ return position - 1 < 0 ? max - 1 : position - 1;
9
+ default:
10
+ return position;
11
+ }
12
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useRef, useState, } from "react";
3
+ import { ItemMenu } from "../ItemMenu/ItemMenuCommon";
4
+ import { getClassName } from "../utilities/getClassName";
5
+ import { getPosition } from "./TabMenu.helpers";
6
+ import "@axa-fr/canopee-css/prospect/TabMenu/TabMenuAll.css";
7
+ /**
8
+ * Renders a keyboard-navigable tab-style menu.
9
+ *
10
+ * @component
11
+ * @param {TabMenuProps} props - TabMenu props.
12
+ * @param {TabMenuItemProps[]} [props.items] - Items to render.
13
+ * @param {number} [props.initialPosition=0] - Initially selected item index.
14
+ * @returns {JSX.Element | null} The rendered TabMenu, or null when no items are provided.
15
+ */
16
+ export const TabMenu = ({ items, className, initialPosition = 0, ...props }) => {
17
+ const [position, setPosition] = useState(initialPosition);
18
+ const itemRefs = useRef([]);
19
+ const handleKeys = useCallback((key) => {
20
+ if (key === "ArrowRight" || key === "ArrowLeft") {
21
+ const newPosition = getPosition(items?.length ?? 0, position, key);
22
+ itemRefs.current[newPosition]?.focus();
23
+ setPosition(newPosition);
24
+ }
25
+ }, [position, items?.length]);
26
+ if (!items || items.length === 0) {
27
+ return null;
28
+ }
29
+ return (
30
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
31
+ _jsx("nav", { className: getClassName({
32
+ baseClassName: "af-tab-menu",
33
+ className,
34
+ }), ...props,
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", { children: _jsx(ItemMenu, { ref: (el) => {
37
+ itemRefs.current[index] = el;
38
+ }, ...item, isActive: index === position ? true : item.isActive, tabIndex: index === position ? 0 : -1, children: item.label }) }, item.href))) }) }));
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 }));
@@ -1,3 +1,6 @@
1
1
  import "@axa-fr/canopee-css/prospect/Toggle/ToggleApollo.css";
2
2
  import { type ToggleProps } from "./ToggleCommon";
3
- export declare const Toggle: import("react").ForwardRefExoticComponent<ToggleProps & import("react").RefAttributes<HTMLInputElement>>;
3
+ export declare const Toggle: {
4
+ ({ ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Toggle/ToggleApollo.css";
3
- import { forwardRef } from "react";
4
3
  import { Icon } from "../Icon/IconApollo";
5
4
  import { ToggleCommon } from "./ToggleCommon";
6
- export const Toggle = forwardRef((props, ref) => _jsx(ToggleCommon, { IconComponent: Icon, ...props, ref: ref }));
5
+ export const Toggle = ({ ...props }) => (_jsx(ToggleCommon, { IconComponent: Icon, ...props }));
7
6
  Toggle.displayName = "Toggle";
@@ -4,6 +4,7 @@ export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, "style" |
4
4
  export type ToggleCommonProps = ToggleProps & {
5
5
  IconComponent: ComponentType<IconProps>;
6
6
  };
7
- export declare const ToggleCommon: import("react").ForwardRefExoticComponent<ToggleProps & {
8
- IconComponent: ComponentType<IconProps>;
9
- } & import("react").RefAttributes<HTMLInputElement>>;
7
+ export declare const ToggleCommon: {
8
+ ({ className, IconComponent, ...inputProps }: ToggleCommonProps): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import check from "@material-symbols/svg-400/rounded/check.svg";
3
3
  import close from "@material-symbols/svg-400/rounded/close.svg";
4
- import { forwardRef, useId, } from "react";
4
+ import { useId } from "react";
5
5
  import { getComponentClassName } from "../utilities/getComponentClassName";
6
- export const ToggleCommon = forwardRef(({ className, IconComponent, ...inputProps }, ref) => {
6
+ export const ToggleCommon = ({ className, IconComponent, ...inputProps }) => {
7
7
  let inputId = useId();
8
8
  inputId = inputProps.id ?? inputId;
9
- return (_jsxs("label", { className: getComponentClassName("af-toggle", className), htmlFor: inputId, children: [_jsx("div", { className: "af-toggle__root", children: _jsxs("span", { className: "af-toggle__handle", children: [_jsx(IconComponent, { src: check, "aria-hidden": "true", className: "af-toggle__icon af-toggle__icon--check", size: "XS" }), _jsx(IconComponent, { src: close, "aria-hidden": "true", className: "af-toggle__icon af-toggle__icon--close", size: "XS" })] }) }), _jsx("input", { ...inputProps, ref: ref, type: "checkbox", id: inputId })] }));
10
- });
9
+ return (_jsxs("label", { className: getComponentClassName("af-toggle", className), htmlFor: inputId, children: [_jsx("div", { className: "af-toggle__root", children: _jsxs("span", { className: "af-toggle__handle", children: [_jsx(IconComponent, { src: check, "aria-hidden": "true", className: "af-toggle__icon af-toggle__icon--check", size: "XS" }), _jsx(IconComponent, { src: close, "aria-hidden": "true", className: "af-toggle__icon af-toggle__icon--close", size: "XS" })] }) }), _jsx("input", { ...inputProps, type: "checkbox", id: inputId })] }));
10
+ };
11
11
  ToggleCommon.displayName = "ToggleCommon";
@@ -1,3 +1,6 @@
1
1
  import "@axa-fr/canopee-css/client/Toggle/ToggleLF.css";
2
2
  import { type ToggleProps } from "./ToggleCommon";
3
- export declare const Toggle: import("react").ForwardRefExoticComponent<ToggleProps & import("react").RefAttributes<HTMLInputElement>>;
3
+ export declare const Toggle: {
4
+ ({ ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Toggle/ToggleLF.css";
3
- import { forwardRef } from "react";
4
3
  import { Icon } from "../Icon/IconLF";
5
4
  import { ToggleCommon } from "./ToggleCommon";
6
- export const Toggle = forwardRef((props, ref) => _jsx(ToggleCommon, { IconComponent: Icon, ...props, ref: ref }));
5
+ export const Toggle = ({ ...props }) => (_jsx(ToggleCommon, { IconComponent: Icon, ...props }));
7
6
  Toggle.displayName = "Toggle";
@@ -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,17 +33,20 @@ 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";
35
- export {
36
- /** @deprecated Use `CardRadioGroup` instead. */
37
- CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
38
- export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo";
36
+ export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
37
+ export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
38
+ export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
39
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
40
40
  export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/RadioText/RadioTextApollo";
41
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
42
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
43
43
  export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingApollo";
44
+ export { Header, type HeaderProps, } from "./prospect-client/Header/HeaderApollo";
44
45
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconApollo";
45
46
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
47
+ export { ItemMenu, type ItemMenuProps, } from "./prospect-client/ItemMenu/ItemMenuApollo";
48
+ export { MenuBurger, type MenuBurgerProps, } from "./prospect-client/MenuBurger/MenuBurgerApollo";
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";
48
52
  export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
@@ -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,17 +33,20 @@ 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";
35
- export {
36
- /** @deprecated Use `CardRadioGroup` instead. */
37
- CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
38
- export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo";
36
+ export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
37
+ export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
38
+ export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
39
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
40
40
  export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextApollo";
41
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
42
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
43
43
  export { Heading, } from "./prospect-client/Heading/HeadingApollo";
44
+ export { Header, } from "./prospect-client/Header/HeaderApollo";
44
45
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconApollo";
45
46
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
47
+ export { ItemMenu, } from "./prospect-client/ItemMenu/ItemMenuApollo";
48
+ export { MenuBurger, } from "./prospect-client/MenuBurger/MenuBurgerApollo";
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";
48
52
  export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
@@ -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": "1.8.1-alpha.1",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "Package React - Design System Canopée",
5
5
  "exports": {
6
6
  "./distributeur": {
@@ -53,10 +53,10 @@
53
53
  },
54
54
  "homepage": "https://github.com/AxaFrance/design-system#readme",
55
55
  "peerDependencies": {
56
- "@axa-fr/canopee-css": "1.8.1-alpha.1",
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
- "react": ">= 18"
59
+ "react": ">= 19"
60
60
  },
61
61
  "dependencies": {
62
62
  "@floating-ui/react": "^0.27.8",
@@ -1,3 +0,0 @@
1
- import { type CardRadioOptionProps } from "./CardRadioOptionCommon";
2
- import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
3
- export declare const CardRadioOption: (props: CardRadioOptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from "../../../Icon/IconApollo";
3
- import { Radio } from "../Radio/RadioApollo";
4
- import { CardRadioOptionCommon, } from "./CardRadioOptionCommon";
5
- import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioOption/CardRadioOptionApollo.css";
6
- export const CardRadioOption = (props) => (_jsx(CardRadioOptionCommon, { ...props, RadioComponent: Radio, IconComponent: Icon }));
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { BasePicture } from "../../../BasePicture/BasePicture";
4
- import { getClassName } from "../../../utilities/getClassName";
5
- export const CardRadioOptionCommon = forwardRef(({ label, position, type, description, subtitle, icon, src, basePictureProps, isInvalid, className, RadioComponent, IconComponent, ...inputProps }, ref) => {
6
- const isCardRadioOptionHorizontal = [position, type].includes("horizontal");
7
- return (_jsxs("label", { className: getClassName({
8
- baseClassName: "af-card-radio-option",
9
- modifiers: [
10
- isInvalid && "invalid",
11
- isCardRadioOptionHorizontal && "horizontal",
12
- ],
13
- className,
14
- }), children: [icon ? _jsx(IconComponent, { src: icon, role: "presentation" }) : null, isCardRadioOptionHorizontal && src ? (_jsx(BasePicture, { src: src, ...basePictureProps })) : null, _jsxs("div", { className: "af-card-radio-option__content", children: [_jsx("p", { className: "af-card-radio-option__label", children: label }), Boolean(description) && (_jsx("p", { className: "af-card-radio-option__description", children: description })), Boolean(subtitle) && (_jsx("p", { className: "af-card-radio-option__subtitle", children: subtitle }))] }), _jsx(RadioComponent, { ...inputProps, isInvalid: isInvalid, ref: ref })] }));
15
- });
16
- CardRadioOptionCommon.displayName = "CardRadioOptionCommon";
@@ -1,3 +0,0 @@
1
- import { type CardRadioOptionProps } from "./CardRadioOptionCommon";
2
- import "@axa-fr/canopee-css/client/Form/Radio/CardRadioOption/CardRadioOptionLF.css";
3
- export declare const CardRadioOption: (props: CardRadioOptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from "../../../Icon/IconLF";
3
- import { Radio } from "../Radio/RadioLF";
4
- import { CardRadioOptionCommon, } from "./CardRadioOptionCommon";
5
- import "@axa-fr/canopee-css/client/Form/Radio/CardRadioOption/CardRadioOptionLF.css";
6
- export const CardRadioOption = (props) => (_jsx(CardRadioOptionCommon, { ...props, RadioComponent: Radio, IconComponent: Icon }));