@axa-fr/canopee-react 1.3.1-alpha.3 → 1.4.1-alpha.1

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 (285) hide show
  1. package/dist/client.d.ts +23 -14
  2. package/dist/client.js +21 -12
  3. package/dist/distributeur/Accordion/Accordion.d.ts +2 -2
  4. package/dist/distributeur/Accordion/Accordion.js +1 -1
  5. package/dist/distributeur/Accordion/Header.js +1 -0
  6. package/dist/distributeur/Button/Button.d.ts +1 -1
  7. package/dist/distributeur/CardData/CardData.d.ts +1 -1
  8. package/dist/distributeur/CardData/CardData.js +1 -0
  9. package/dist/distributeur/CardData/CardDataHeader.d.ts +1 -1
  10. package/dist/distributeur/CardData/CardDataHeader.js +2 -1
  11. package/dist/distributeur/Divider/Divider.d.ts +1 -1
  12. package/dist/distributeur/Form/Checkbox/Checkbox.d.ts +2 -2
  13. package/dist/distributeur/Form/Checkbox/Checkbox.js +1 -1
  14. package/dist/distributeur/Form/Checkbox/CheckboxInput.d.ts +1 -1
  15. package/dist/distributeur/Form/Checkbox/CheckboxItem.d.ts +1 -1
  16. package/dist/distributeur/Form/Checkbox/CheckboxItem.js +1 -1
  17. package/dist/distributeur/Form/Date/Date.d.ts +1 -1
  18. package/dist/distributeur/Form/Date/DateInput.d.ts +2 -2
  19. package/dist/distributeur/Form/Experimental/index.d.ts +1 -0
  20. package/dist/distributeur/Form/Experimental/index.js +1 -1
  21. package/dist/distributeur/Form/File/File.d.ts +2 -2
  22. package/dist/distributeur/Form/File/File.js +2 -2
  23. package/dist/distributeur/Form/File/FileErrors.d.ts +1 -1
  24. package/dist/distributeur/Form/File/FileErrors.js +1 -0
  25. package/dist/distributeur/Form/File/FileInput.d.ts +1 -1
  26. package/dist/distributeur/Form/File/FileLine.d.ts +1 -1
  27. package/dist/distributeur/Form/File/FileTable.d.ts +3 -3
  28. package/dist/distributeur/Form/File/FileTable.js +2 -2
  29. package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.d.ts +1 -1
  30. package/dist/distributeur/Form/MultiSelect/FormatOptionLabel.js +2 -1
  31. package/dist/distributeur/Form/MultiSelect/MultiSelect.d.ts +1 -1
  32. package/dist/distributeur/Form/MultiSelect/MultiSelect.js +2 -2
  33. package/dist/distributeur/Form/MultiSelect/MultiSelectInput.d.ts +1 -1
  34. package/dist/distributeur/Form/MultiSelect/MultiSelectInput.js +1 -0
  35. package/dist/distributeur/Form/MultiSelect/ValueContainer.d.ts +1 -1
  36. package/dist/distributeur/Form/MultiSelect/ValueContainer.js +1 -1
  37. package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.d.ts +1 -1
  38. package/dist/distributeur/Form/MultiSelect/useMultiSelectStyle.js +1 -0
  39. package/dist/distributeur/Form/NestedQuestion/NestedQuestion.d.ts +1 -1
  40. package/dist/distributeur/Form/Number/Number.d.ts +1 -1
  41. package/dist/distributeur/Form/Number/NumberInput.d.ts +1 -1
  42. package/dist/distributeur/Form/Number/NumberInput.js +1 -0
  43. package/dist/distributeur/Form/Pass/Pass.d.ts +1 -1
  44. package/dist/distributeur/Form/Pass/PassInput.d.ts +2 -2
  45. package/dist/distributeur/Form/Radio/Radio.js +1 -1
  46. package/dist/distributeur/Form/Radio/RadioCardGroup.d.ts +1 -1
  47. package/dist/distributeur/Form/Radio/RadioCardGroup.js +1 -1
  48. package/dist/distributeur/Form/Radio/RadioInput.d.ts +1 -1
  49. package/dist/distributeur/Form/Radio/RadioItem.d.ts +1 -1
  50. package/dist/distributeur/Form/Radio/RadioItem.js +1 -1
  51. package/dist/distributeur/Form/Select/Select.d.ts +15 -15
  52. package/dist/distributeur/Form/Select/SelectBase.d.ts +1 -1
  53. package/dist/distributeur/Form/Select/SelectDefault.d.ts +1 -1
  54. package/dist/distributeur/Form/Select/SelectDefaultWithOptions.d.ts +1 -1
  55. package/dist/distributeur/Form/Select/SelectInput.d.ts +15 -15
  56. package/dist/distributeur/Form/Slider/SliderInput.d.ts +1 -1
  57. package/dist/distributeur/Form/Slider/SliderInput.js +1 -0
  58. package/dist/distributeur/Form/Text/Text.d.ts +1 -1
  59. package/dist/distributeur/Form/Text/TextInput.d.ts +2 -2
  60. package/dist/distributeur/Form/Textarea/TextareaInput.d.ts +1 -1
  61. package/dist/distributeur/Form/core/Deprecated/Field.js +1 -0
  62. package/dist/distributeur/Form/core/Deprecated/FieldInput.d.ts +1 -1
  63. package/dist/distributeur/Form/core/Field.js +1 -1
  64. package/dist/distributeur/Form/core/FormClassManager.d.ts +1 -1
  65. package/dist/distributeur/Form/core/HelpMessage.d.ts +1 -1
  66. package/dist/distributeur/Form/core/index.d.ts +1 -1
  67. package/dist/distributeur/HelpButton/index.d.ts +1 -1
  68. package/dist/distributeur/Layout/Footer/Footer.js +2 -2
  69. package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.d.ts +1 -1
  70. package/dist/distributeur/Layout/Header/AnchorNavBar/AnchorNavBar.js +3 -2
  71. package/dist/distributeur/Layout/Header/Header.js +1 -0
  72. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.d.ts +2 -2
  73. package/dist/distributeur/Layout/Header/HeaderTitle/HeaderTitle.js +1 -1
  74. package/dist/distributeur/Layout/Header/Infos/Infos.d.ts +1 -1
  75. package/dist/distributeur/Layout/Header/Name/Name.js +1 -0
  76. package/dist/distributeur/Layout/Header/NavBar/NavBarBase.d.ts +1 -1
  77. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItem.d.ts +1 -1
  78. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemBase.d.ts +1 -1
  79. package/dist/distributeur/Layout/Header/NavBar/NavBarItem/NavBarItemLink.d.ts +1 -1
  80. package/dist/distributeur/Layout/Header/User/User.d.ts +1 -1
  81. package/dist/distributeur/Layout/MainContainer/MainContainer.d.ts +1 -1
  82. package/dist/distributeur/Link/CustomLink.d.ts +1 -1
  83. package/dist/distributeur/Link/LinkAnchor.d.ts +1 -1
  84. package/dist/distributeur/Link/LinkAnchor.js +2 -1
  85. package/dist/distributeur/Loader/Loader.js +1 -0
  86. package/dist/distributeur/Messages/Message.d.ts +1 -1
  87. package/dist/distributeur/ModalAgent/BooleanModal.d.ts +1 -1
  88. package/dist/distributeur/ModalAgent/BooleanModal.js +1 -1
  89. package/dist/distributeur/Popover/AnimatedPopover.d.ts +1 -1
  90. package/dist/distributeur/Popover/AnimatedPopover.js +1 -1
  91. package/dist/distributeur/Popover/Popover.d.ts +2 -2
  92. package/dist/distributeur/Popover/Popover.js +1 -0
  93. package/dist/distributeur/Popover/Popover.types.d.ts +1 -1
  94. package/dist/distributeur/Popover/PopoverBase.d.ts +1 -1
  95. package/dist/distributeur/Popover/PopoverBase.js +1 -0
  96. package/dist/distributeur/Popover/PopoverClick.d.ts +1 -1
  97. package/dist/distributeur/Popover/PopoverOver.d.ts +1 -1
  98. package/dist/distributeur/Popover/index.js +2 -0
  99. package/dist/distributeur/Restitution/ArticleRestitution.d.ts +1 -1
  100. package/dist/distributeur/Restitution/HeaderRestitution.js +1 -0
  101. package/dist/distributeur/Restitution/Restitution.d.ts +1 -1
  102. package/dist/distributeur/Restitution/RestitutionList.d.ts +1 -1
  103. package/dist/distributeur/Restitution/SectionRestitution.d.ts +1 -1
  104. package/dist/distributeur/Restitution/SectionRestitutionColumn.d.ts +1 -1
  105. package/dist/distributeur/Restitution/SectionRestitutionRow.d.ts +1 -1
  106. package/dist/distributeur/Steps/Step.d.ts +1 -1
  107. package/dist/distributeur/Steps/StepCurrent.d.ts +1 -1
  108. package/dist/distributeur/Steps/StepDisabled.d.ts +1 -1
  109. package/dist/distributeur/Steps/StepLink.d.ts +1 -1
  110. package/dist/distributeur/Steps/StepNoLink.d.ts +1 -1
  111. package/dist/distributeur/Steps/Steps.d.ts +1 -1
  112. package/dist/distributeur/Steps/VerticalStep.d.ts +1 -1
  113. package/dist/distributeur/Steps/types.d.ts +1 -1
  114. package/dist/distributeur/Summary/index.d.ts +1 -1
  115. package/dist/distributeur/Table/Pagination/LiPoint.d.ts +1 -1
  116. package/dist/distributeur/Table/Pagination/Pager.d.ts +1 -1
  117. package/dist/distributeur/Table/Pagination/PaginationButton.d.ts +1 -1
  118. package/dist/distributeur/Table/Pagination/Paging.d.ts +1 -1
  119. package/dist/distributeur/Table/TBody.d.ts +1 -1
  120. package/dist/distributeur/Table/THead.d.ts +1 -1
  121. package/dist/distributeur/Table/Table.d.ts +1 -1
  122. package/dist/distributeur/Table/Td.d.ts +1 -1
  123. package/dist/distributeur/Table/Th.d.ts +1 -1
  124. package/dist/distributeur/Table/Tr.d.ts +1 -1
  125. package/dist/distributeur/Table/Tr.js +1 -0
  126. package/dist/distributeur/Tabs/Tabs.d.ts +2 -2
  127. package/dist/distributeur/Tabs/Tabs.js +1 -0
  128. package/dist/distributeur/Tabs/components/Pane.js +1 -0
  129. package/dist/distributeur/Tabs/components/Tab.d.ts +1 -1
  130. package/dist/distributeur/Tabs/components/TabsCore.d.ts +1 -1
  131. package/dist/distributeur/Tabs/components/TabsCore.js +1 -1
  132. package/dist/distributeur/Tabs/components/Title.js +1 -0
  133. package/dist/distributeur/Tag/Tag.d.ts +1 -1
  134. package/dist/distributeur/Tag/Tag.js +1 -1
  135. package/dist/distributeur/Title/Title.d.ts +1 -1
  136. package/dist/distributeur.js +1 -0
  137. package/dist/prospect-client/Button/ButtonCommon.js +1 -0
  138. package/dist/prospect-client/Card/CardCommon.js +1 -0
  139. package/dist/prospect-client/CardMessage/CardMessageCommon.d.ts +1 -1
  140. package/dist/prospect-client/ClickIcon/ClickIconCommon.d.ts +1 -1
  141. package/dist/prospect-client/ClickIcon/ClickIconCommon.js +1 -0
  142. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionApollo.js +1 -0
  143. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionCommon.js +1 -0
  144. package/dist/prospect-client/ContentItemDuoAction/ContentItemDuoActionLF.js +1 -0
  145. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.d.ts +1 -1
  146. package/dist/prospect-client/ContentItemMono/ContentItemMonoCommon.js +1 -0
  147. package/dist/prospect-client/ContentItemMono/ContentItemMonoCore.d.ts +2 -3
  148. package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +1 -0
  149. package/dist/prospect-client/DataAgent/DataAgentApollo.js +1 -0
  150. package/dist/prospect-client/DataAgent/DataAgentCommon.d.ts +2 -2
  151. package/dist/prospect-client/DataAgent/DataAgentCommon.js +3 -2
  152. package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +1 -0
  153. package/dist/prospect-client/DataAgent/DataAgentLF.js +1 -0
  154. package/dist/prospect-client/Fieldset/FieldsetCommon.js +2 -0
  155. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +3 -1
  156. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +2 -2
  157. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +3 -1
  158. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +3 -3
  159. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +2 -0
  160. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +4 -2
  161. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +2 -0
  162. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +5 -3
  163. package/dist/prospect-client/Form/FileUpload/ItemFile/ItemFileCommon.js +1 -0
  164. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +2 -0
  165. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +4 -2
  166. package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.d.ts +3 -3
  167. package/dist/prospect-client/Form/InputPhone/CountryCodeSelect.js +2 -1
  168. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +3 -1
  169. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +7 -2
  170. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -2
  171. package/dist/prospect-client/Form/InputText/InputTextCommon.js +5 -2
  172. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.d.ts +3 -0
  173. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +6 -0
  174. package/dist/prospect-client/Form/Radio/{CardRadio/CardRadioCommon.d.ts → CardRadioGroup/CardRadioGroupCommon.d.ts} +13 -6
  175. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +18 -0
  176. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.d.ts +3 -0
  177. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +6 -0
  178. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +5 -1
  179. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +12 -8
  180. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +3 -1
  181. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +4 -2
  182. package/dist/prospect-client/Heading/HeadingApollo.d.ts +1 -1
  183. package/dist/prospect-client/Heading/HeadingApollo.js +1 -1
  184. package/dist/prospect-client/Heading/HeadingCommon.js +1 -0
  185. package/dist/prospect-client/Heading/HeadingLF.d.ts +1 -1
  186. package/dist/prospect-client/Heading/HeadingLF.js +1 -1
  187. package/dist/prospect-client/Icon/IconCommon.d.ts +1 -1
  188. package/dist/prospect-client/Icon/IconCommon.js +1 -1
  189. package/dist/prospect-client/ItemTabBar/ItemTabBarCommon.d.ts +1 -1
  190. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +21 -0
  191. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +9 -0
  192. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +50 -0
  193. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.js +39 -0
  194. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +21 -0
  195. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +9 -0
  196. package/dist/prospect-client/Layout/Footer/FooterCommon.d.ts +2 -2
  197. package/dist/prospect-client/Layout/Footer/FooterCommon.js +1 -1
  198. package/dist/prospect-client/Layout/FormLayout/FormLayout.d.ts +3529 -0
  199. package/dist/prospect-client/Layout/FormLayout/FormLayout.js +79 -0
  200. package/dist/prospect-client/LevelSelector/LevelSelectorApollo.js +1 -0
  201. package/dist/prospect-client/LevelSelector/LevelSelectorCommon.d.ts +2 -2
  202. package/dist/prospect-client/LevelSelector/LevelSelectorCommon.js +2 -0
  203. package/dist/prospect-client/LevelSelector/LevelSelectorLF.js +1 -0
  204. package/dist/prospect-client/Link/LinkApollo.d.ts +1 -1
  205. package/dist/prospect-client/Link/LinkApollo.js +1 -1
  206. package/dist/prospect-client/Link/LinkCommon.d.ts +5 -5
  207. package/dist/prospect-client/Link/LinkCommon.js +7 -7
  208. package/dist/prospect-client/Link/LinkLF.d.ts +1 -1
  209. package/dist/prospect-client/Link/LinkLF.js +1 -1
  210. package/dist/prospect-client/List/ClickItem/ClickItemWrapper.d.ts +1 -1
  211. package/dist/prospect-client/List/ClickItem/components/ClickItemContentCommon.d.ts +1 -1
  212. package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.d.ts +2 -2
  213. package/dist/prospect-client/List/ClickItem/components/ClickItemSuffixCommon.js +1 -0
  214. package/dist/prospect-client/List/ContentItemDuo/ContentItemDuoCommon.js +1 -0
  215. package/dist/prospect-client/List/List/ListApollo.js +1 -0
  216. package/dist/prospect-client/List/List/ListCommon.d.ts +1 -1
  217. package/dist/prospect-client/List/List/ListCommon.js +1 -0
  218. package/dist/prospect-client/List/List/ListLF.js +1 -0
  219. package/dist/prospect-client/Message/MessageCommon.js +1 -0
  220. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationApollo.js +1 -0
  221. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationCommon.js +2 -0
  222. package/dist/prospect-client/Pagination/ItemPagination/ItemPaginationLF.js +1 -0
  223. package/dist/prospect-client/Pagination/PaginationApollo.js +1 -0
  224. package/dist/prospect-client/Pagination/PaginationCommon.d.ts +1 -1
  225. package/dist/prospect-client/Pagination/PaginationCommon.js +2 -2
  226. package/dist/prospect-client/Pagination/PaginationLF.js +1 -0
  227. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupApollo.d.ts +1 -1
  228. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupCommon.js +1 -0
  229. package/dist/prospect-client/ProgressBarGroup/ProgressBarGroupLF.d.ts +1 -1
  230. package/dist/prospect-client/SkeletonList/SkeletonListApollo.js +1 -0
  231. package/dist/prospect-client/SkeletonList/SkeletonListLF.js +1 -0
  232. package/dist/prospect-client/Spinner/SpinnerCommon.d.ts +1 -1
  233. package/dist/prospect-client/Stepper/StepperCommon.d.ts +1 -1
  234. package/dist/prospect-client/Stepper/StepperCommon.js +1 -0
  235. package/dist/prospect-client/Svg/Svg.js +1 -1
  236. package/dist/prospect-client/TabBar/TabBarCommon.d.ts +1 -1
  237. package/dist/prospect-client/TabBar/TabBarCommon.js +2 -1
  238. package/dist/prospect-client/Table/TBody.d.ts +6 -0
  239. package/dist/prospect-client/Table/TBody.js +10 -0
  240. package/dist/prospect-client/Table/THead.d.ts +6 -0
  241. package/dist/prospect-client/Table/THead.js +11 -0
  242. package/dist/prospect-client/Table/TableApollo.d.ts +2 -0
  243. package/dist/prospect-client/Table/TableApollo.js +2 -0
  244. package/dist/prospect-client/Table/TableCommon.d.ts +14 -0
  245. package/dist/prospect-client/Table/TableCommon.js +20 -0
  246. package/dist/prospect-client/Table/TableLF.d.ts +2 -0
  247. package/dist/prospect-client/Table/TableLF.js +2 -0
  248. package/dist/prospect-client/Table/Td.d.ts +17 -0
  249. package/dist/prospect-client/Table/Td.js +15 -0
  250. package/dist/prospect-client/Table/Th.d.ts +9 -0
  251. package/dist/prospect-client/Table/Th.js +14 -0
  252. package/dist/prospect-client/Table/Tr.d.ts +11 -0
  253. package/dist/prospect-client/Table/Tr.js +16 -0
  254. package/dist/prospect-client/TableMobileCard/DRow.d.ts +6 -0
  255. package/dist/prospect-client/TableMobileCard/DRow.js +11 -0
  256. package/dist/prospect-client/TableMobileCard/Dd.d.ts +3 -0
  257. package/dist/prospect-client/TableMobileCard/Dd.js +10 -0
  258. package/dist/prospect-client/TableMobileCard/Dt.d.ts +3 -0
  259. package/dist/prospect-client/TableMobileCard/Dt.js +10 -0
  260. package/dist/prospect-client/TableMobileCard/TableMobileCard.d.ts +12 -0
  261. package/dist/prospect-client/TableMobileCard/TableMobileCard.js +18 -0
  262. package/dist/prospect-client/TimelineVertical/TimelineVerticalCommon.d.ts +1 -1
  263. package/dist/prospect-client/TimelineVertical/types.d.ts +1 -1
  264. package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.d.ts +3 -0
  265. package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.js +6 -0
  266. package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.d.ts +12 -0
  267. package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.js +9 -0
  268. package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.d.ts +3 -0
  269. package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.js +6 -0
  270. package/dist/prospect-client/pages/ValidPage/ValidPageApollo.d.ts +3 -0
  271. package/dist/prospect-client/pages/ValidPage/ValidPageApollo.js +7 -0
  272. package/dist/prospect-client/pages/ValidPage/ValidPageCommon.d.ts +15 -0
  273. package/dist/prospect-client/pages/ValidPage/ValidPageCommon.js +10 -0
  274. package/dist/prospect-client/pages/ValidPage/ValidPageLF.d.ts +3 -0
  275. package/dist/prospect-client/pages/ValidPage/ValidPageLF.js +7 -0
  276. package/dist/prospect-client/utilities/types/GridContainerProps.d.ts +10 -0
  277. package/dist/prospect-client/utilities/types/GridContainerProps.js +1 -0
  278. package/dist/prospect.d.ts +22 -13
  279. package/dist/prospect.js +20 -11
  280. package/package.json +2 -2
  281. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +0 -3
  282. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +0 -6
  283. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +0 -16
  284. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +0 -3
  285. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +0 -6
@@ -0,0 +1,79 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Children, isValidElement, } from "react";
3
+ import "@axa-fr/canopee-css/prospect/Layout/FormLayout/FormLayoutAll.css";
4
+ import { getClassName } from "../../utilities/getClassName";
5
+ const Header = ({ children }) => children;
6
+ const Footer = ({ children }) => children;
7
+ const Faq = ({ children }) => children;
8
+ const setDataCols = ({ dataColsMobile, dataColsTablet, dataColsDesktopSmall, dataColsDesktopMedium, dataColsDesktopLarge, }) => {
9
+ return {
10
+ "--cols-mobile": dataColsMobile || undefined,
11
+ "--cols-tablet": dataColsTablet || undefined,
12
+ "--cols-desktop-small": dataColsDesktopSmall || undefined,
13
+ "--cols-desktop-medium": dataColsDesktopMedium || undefined,
14
+ "--cols-desktop-large": dataColsDesktopLarge || undefined,
15
+ };
16
+ };
17
+ const setResponsiveStyle = (childProps) => {
18
+ const { "data-cols-mobile": dataColsMobile, "data-cols-tablet": dataColsTablet, "data-cols-desktop-small": dataColsDesktopSmall, "data-cols-desktop-medium": dataColsDesktopMedium, "data-cols-desktop-large": dataColsDesktopLarge, ...rest } = childProps?.containerProps || childProps;
19
+ if (childProps?.containerProps) {
20
+ return {
21
+ ...childProps,
22
+ ...rest,
23
+ containerProps: {
24
+ style: {
25
+ ...(childProps.containerProps?.style ||
26
+ {}),
27
+ ...setDataCols({
28
+ dataColsMobile,
29
+ dataColsTablet,
30
+ dataColsDesktopSmall,
31
+ dataColsDesktopMedium,
32
+ dataColsDesktopLarge,
33
+ }),
34
+ },
35
+ },
36
+ };
37
+ }
38
+ return {
39
+ ...rest,
40
+ style: {
41
+ ...(rest.style || {}),
42
+ ...setDataCols({
43
+ dataColsMobile,
44
+ dataColsTablet,
45
+ dataColsDesktopSmall,
46
+ dataColsDesktopMedium,
47
+ dataColsDesktopLarge,
48
+ }),
49
+ },
50
+ };
51
+ };
52
+ export const Body = ({ children }) => Children.map(children, function (child) {
53
+ if (isValidElement(child)) {
54
+ const childProps = typeof child.props === "object" && child.props !== null
55
+ ? child.props
56
+ : {};
57
+ const responsiveStyle = setResponsiveStyle(childProps);
58
+ return {
59
+ ...child,
60
+ props: responsiveStyle,
61
+ };
62
+ }
63
+ return child;
64
+ });
65
+ export const FormLayout = ({ children, className, "aria-label": ariaLabel = "Formulaire", ...formProps }) => {
66
+ const childrenArray = Children.toArray(children);
67
+ const header = childrenArray.find((child) => isValidElement(child) && child.type === Header);
68
+ const body = childrenArray.find((child) => isValidElement(child) && child.type === Body);
69
+ const footer = childrenArray.find((child) => isValidElement(child) && child.type === Footer);
70
+ const faq = childrenArray.find((child) => isValidElement(child) && child.type === Faq);
71
+ return (_jsxs(_Fragment, { children: [_jsxs("form", { className: getClassName({
72
+ baseClassName: "af-form-layout",
73
+ className,
74
+ }), "aria-label": ariaLabel, ...formProps, children: [header ? (_jsx("div", { className: "af-form-layout__header subgrid", children: header })) : null, body ? (_jsx("div", { className: "af-form-layout__fields subgrid", children: body })) : null, footer ? (_jsx("div", { className: "af-form-layout__actions subgrid", children: footer })) : null] }), faq ? _jsx("div", { className: "af-form-layout__faq subgrid", children: faq }) : null] }));
75
+ };
76
+ FormLayout.Header = Header;
77
+ FormLayout.Body = Body;
78
+ FormLayout.Footer = Footer;
79
+ FormLayout.Faq = Faq;
@@ -6,3 +6,4 @@ import { LevelSelectorCommon, } from "./LevelSelectorCommon";
6
6
  export const LevelSelector = (props) => {
7
7
  return (_jsx(LevelSelectorCommon, { ...props, ClickIconComponent: ClickIcon, CardComponent: Card }));
8
8
  };
9
+ export {};
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentType } from "react";
2
- import { ClickIcon } from "../ClickIcon/ClickIconCommon";
1
+ import { type ComponentProps, type ComponentType } from "react";
3
2
  import { CardCommon } from "../Card/CardCommon";
3
+ import { ClickIcon } from "../ClickIcon/ClickIconCommon";
4
4
  export type LevelSelectorProps = {
5
5
  title: string;
6
6
  description?: string;
@@ -2,6 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import add from "@material-symbols/svg-400/rounded/add-fill.svg";
3
3
  import remove from "@material-symbols/svg-400/rounded/remove-fill.svg";
4
4
  import { useId } from "react";
5
+ import { CardCommon } from "../Card/CardCommon";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconCommon";
5
7
  export const LevelSelectorCommon = ({ title, description, value = 0, stepsCount = 2, ClickIconComponent, CardComponent, minusAriaLabel = "Diminuer le niveau", plusAriaLabel = "Augmenter le niveau", onChange, }) => {
6
8
  const levelSelectorId = useId();
7
9
  const stepsArray = Array.from({ length: stepsCount }, (_, index) => index + 1);
@@ -6,3 +6,4 @@ import { LevelSelectorCommon, } from "./LevelSelectorCommon";
6
6
  export const LevelSelector = (props) => {
7
7
  return (_jsx(LevelSelectorCommon, { ...props, ClickIconComponent: ClickIcon, CardComponent: Card }));
8
8
  };
9
+ export {};
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/prospect/Link/LinkApollo.css";
2
- export { Link, type LinkVariants, linkVariants } from "./LinkCommon";
2
+ export { Link, type LinkVariants, linkVariants, type LinkProps, } from "./LinkCommon";
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/prospect/Link/LinkApollo.css";
2
- export { Link, linkVariants } from "./LinkCommon";
2
+ export { Link, linkVariants, } from "./LinkCommon";
@@ -1,17 +1,17 @@
1
- import { ComponentPropsWithoutRef, PropsWithChildren, type ReactNode } from "react";
1
+ import type { ComponentPropsWithoutRef, PropsWithChildren, ReactNode } from "react";
2
2
  export declare const linkVariants: {
3
- readonly default: "default";
4
- readonly underline: "underline";
5
3
  readonly inverse: "inverse";
6
4
  };
7
5
  export type LinkVariants = keyof typeof linkVariants;
8
- type LinkProps = {
6
+ export type LinkProps = {
9
7
  variant?: LinkVariants;
10
8
  openInNewTab?: boolean;
11
9
  leftIcon?: ReactNode;
12
10
  rightIcon?: ReactNode;
13
11
  className?: string;
12
+ /**
13
+ * @deprecated Use variant instead
14
+ */
14
15
  classModifier?: string;
15
16
  } & ComponentPropsWithoutRef<"a">;
16
17
  export declare const Link: ({ href, variant, openInNewTab, leftIcon, rightIcon, children, className, classModifier, ...props }: PropsWithChildren<LinkProps>) => import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,20 +1,20 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import openInNew from "@material-symbols/svg-400/outlined/open_in_new.svg";
3
- import { useMemo, } from "react";
4
3
  import { Svg } from "../Svg/Svg";
5
- import { getComponentClassName } from "../utilities/getComponentClassName";
4
+ import { getClassName } from "../utilities/getClassName";
6
5
  export const linkVariants = {
7
- default: "default",
8
- underline: "underline",
9
6
  inverse: "inverse",
10
7
  };
11
- export const Link = ({ href, variant = "underline", openInNewTab = false, leftIcon, rightIcon, children, className, classModifier = "", ...props }) => {
8
+ export const Link = ({ href, variant, openInNewTab = false, leftIcon, rightIcon, children, className, classModifier = "", ...props }) => {
12
9
  const newTabProps = openInNewTab && {
13
10
  target: "_blank",
14
11
  rel: "noopener noreferrer",
15
12
  };
16
- const componentClassName = useMemo(() => getComponentClassName("af-link", className, `${classModifier}${!className && openInNewTab ? " openInNewTab" : ""} ${variant}`), [classModifier, className, openInNewTab, variant]);
17
- return (_jsxs("a", { className: componentClassName, href: href, ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
13
+ return (_jsxs("a", { className: getClassName({
14
+ baseClassName: "af-link",
15
+ modifiers: [classModifier, variant, openInNewTab && "openInNewTab"],
16
+ className,
17
+ }), href: href, ...newTabProps, ...props, children: [leftIcon, children, openInNewTab || Boolean(rightIcon)
18
18
  ? (rightIcon ?? _jsx(Svg, { src: openInNew }))
19
19
  : null] }));
20
20
  };
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/client/Link/LinkLF.css";
2
- export { Link, type LinkVariants, linkVariants } from "./LinkCommon";
2
+ export { Link, type LinkVariants, linkVariants, type LinkProps, } from "./LinkCommon";
@@ -1,2 +1,2 @@
1
1
  import "@axa-fr/canopee-css/client/Link/LinkLF.css";
2
- export { Link, linkVariants } from "./LinkCommon";
2
+ export { Link, linkVariants, } from "./LinkCommon";
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from "react";
1
+ import type { HTMLAttributes } from "react";
2
2
  type ClickItemWrapperProps = HTMLAttributes<HTMLElement> & {
3
3
  isClickable?: boolean;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ComponentType } from "react";
1
+ import type { ComponentType } from "react";
2
2
  import type { TagProps } from "../../../Tag/TagCommon";
3
3
  export type ClickItemContentProps = {
4
4
  title: string;
@@ -1,7 +1,7 @@
1
- import { ComponentProps, ComponentType } from "react";
1
+ import type { ComponentProps, ComponentType } from "react";
2
2
  import type { IconProps } from "../../../Icon/IconCommon";
3
- import { ClickItemStates, ClickItemVariants } from "../ClickItemCommon";
4
3
  import { Spinner } from "../../../Spinner/SpinnerCommon";
4
+ import type { ClickItemStates, ClickItemVariants } from "../ClickItemCommon";
5
5
  export type ClickItemSuffixProps = {
6
6
  state: ClickItemStates;
7
7
  variant: ClickItemVariants;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import keyboardArrowRight from "@material-symbols/svg-400/rounded/keyboard_arrow_right-fill.svg";
3
+ import { Spinner } from "../../../Spinner/SpinnerCommon";
3
4
  export const ClickItemSuffixCommon = ({ state, variant, trailingClickIcon, IconComponent, SpinnerComponent, }) => {
4
5
  if (variant === "large" && state === "loading") {
5
6
  return _jsx(SpinnerComponent, { size: 32 });
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from "react";
2
3
  import { getClassName } from "../../utilities/getClassName";
3
4
  export const ContentItemDuoCommon = ({ label, value, position = "horizontal", size = "large", className, classModifier, isVertical, buttonText, onButtonClick, ButtonComponent, ...containerProps }) => {
4
5
  const componentClassName = getClassName({
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/List/List/ListApollo.css";
3
3
  import { Card } from "../../Card/CardApollo";
4
4
  import { ListCommon } from "./ListCommon";
5
+ export {} from "./ListCommon";
5
6
  export const List = (props) => (_jsx(ListCommon, { ...props, CardComponent: Card }));
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ComponentType } from "react";
1
+ import { type ComponentProps, type ComponentType } from "react";
2
2
  import { CardCommon as Card, type CardCommonProps } from "../../Card/CardCommon";
3
3
  export type ListProps = CardCommonProps<"ul" | "ol">;
4
4
  type ListPropsCommon = ListProps & {
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Children } from "react";
3
+ import { CardCommon as Card, } from "../../Card/CardCommon";
3
4
  import { generateId } from "../../utilities/generateId";
4
5
  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)))) }));
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/List/List/ListLF.css";
3
3
  import { Card } from "../../Card/CardLF";
4
4
  import { ListCommon } from "./ListCommon";
5
+ export {} from "./ListCommon";
5
6
  export const List = (props) => (_jsx(ListCommon, { ...props, CardComponent: Card }));
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Link } from "../Link/LinkCommon";
2
3
  import { iconByVariant, messageVariants } from "./constants";
3
4
  import { getAriaRole } from "./Message.helpers";
4
5
  const defaultClassName = "af-message";
@@ -1,3 +1,4 @@
1
1
  import "@axa-fr/canopee-css/prospect/Pagination/ItemPagination/ItemPaginationApollo.css";
2
2
  import { ItemPaginationCommon } from "./ItemPaginationCommon";
3
+ export {} from "./ItemPaginationCommon";
3
4
  export const ItemPagination = ItemPaginationCommon;
@@ -1,4 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import {} from "../../utilities/types/PolymorphicComponent";
2
4
  import { getClassName } from "../../utilities/getClassName";
3
5
  export const ELLIPSIS = "...";
4
6
  export const ItemPaginationCommon = ({ as, page, isCurrentPage, className, ...props }) => {
@@ -1,3 +1,4 @@
1
1
  import "@axa-fr/canopee-css/client/Pagination/ItemPagination/ItemPaginationLF.css";
2
2
  import { ItemPaginationCommon } from "./ItemPaginationCommon";
3
+ export {} from "./ItemPaginationCommon";
3
4
  export const ItemPagination = ItemPaginationCommon;
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Pagination/PaginationApollo.css";
3
3
  import { ItemPagination } from "./ItemPagination/ItemPaginationApollo";
4
4
  import { PaginationCommon } from "./PaginationCommon";
5
+ export {} from "./PaginationCommon";
5
6
  export const Pagination = (props) => (_jsx(PaginationCommon, { ...props, ItemPaginationComponent: ItemPagination }));
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ComponentType, type ComponentPropsWithoutRef } from "react";
1
+ import type { ComponentProps, ComponentPropsWithoutRef, ComponentType } from "react";
2
2
  import { ClickIcon } from "../ClickIcon/ClickIconCommon";
3
3
  import { ItemPaginationCommon } from "./ItemPagination/ItemPaginationCommon";
4
4
  import { type getItemsProps } from "./Pagination.helper";
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import chevronBackward from "@material-symbols/svg-400/rounded/chevron_backward.svg";
3
3
  import chevronForward from "@material-symbols/svg-400/rounded/chevron_forward.svg";
4
- import { getClassName } from "../utilities/getClassName";
5
4
  import { ClickIcon } from "../ClickIcon/ClickIconCommon";
6
- import { ELLIPSIS, } from "./ItemPagination/ItemPaginationCommon";
5
+ import { getClassName } from "../utilities/getClassName";
6
+ import { ELLIPSIS, ItemPaginationCommon, } from "./ItemPagination/ItemPaginationCommon";
7
7
  import { getItems } from "./Pagination.helper";
8
8
  export const PaginationCommon = ({ numberPages = 1, onChangePage, className, currentPage = 1, asItem, hidePrevNext = false, "aria-label": ariaLabel = "Pagination", ItemPaginationComponent, prevButtonProps, nextButtonProps, }) => {
9
9
  const items = getItems({
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/client/Pagination/PaginationLF.css";
3
3
  import { ItemPagination } from "./ItemPagination/ItemPaginationLF";
4
4
  import { PaginationCommon } from "./PaginationCommon";
5
+ export {} from "./PaginationCommon";
5
6
  export const Pagination = (props) => (_jsx(PaginationCommon, { ...props, ItemPaginationComponent: ItemPagination }));
@@ -1,3 +1,3 @@
1
1
  import "@axa-fr/canopee-css/prospect/ProgressBarGroup/ProgressBarGroupApollo.css";
2
- import { ProgressBarGroupProps } from "./ProgressBarGroupCommon";
2
+ import { type ProgressBarGroupProps } from "./ProgressBarGroupCommon";
3
3
  export declare const ProgressBarGroup: (props: ProgressBarGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
3
  import { useId } from "react";
4
+ import { ProgressBar } from "../ProgressBar/ProgressBarCommon";
4
5
  import { useSequentialProgress } from "./useSequentialProgress";
5
6
  export const ProgressBarGroupCommon = ({ currentStepProgress = 0, max = 100, nbSteps = 4, stepsCount = nbSteps, currentStep, className, ProgressBarComponent, ...props }) => {
6
7
  const stepperId = useId();
@@ -1,3 +1,3 @@
1
1
  import "@axa-fr/canopee-css/client/ProgressBarGroup/ProgressBarGroupLF.css";
2
- import { ProgressBarGroupProps } from "./ProgressBarGroupCommon";
2
+ import { type ProgressBarGroupProps } from "./ProgressBarGroupCommon";
3
3
  export declare const ProgressBarGroup: (props: ProgressBarGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Skeleton } from "../Skeleton/SkeletonApollo";
3
3
  import { List } from "../List/List/ListApollo";
4
4
  import { SkeletonListCommon, } from "./SkeletonListCommon";
5
+ export {} from "./SkeletonListCommon";
5
6
  export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, SkeletonComponent: Skeleton, ListComponent: List }));
@@ -2,4 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Skeleton } from "../Skeleton/SkeletonLF";
3
3
  import { List } from "../List/List/ListLF";
4
4
  import { SkeletonListCommon, } from "./SkeletonListCommon";
5
+ export {} from "./SkeletonListCommon";
5
6
  export const SkeletonList = (props) => (_jsx(SkeletonListCommon, { ...props, SkeletonComponent: Skeleton, ListComponent: List }));
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef } from "react";
1
+ import type { ComponentPropsWithoutRef } from "react";
2
2
  export declare const spinnerVariants: {
3
3
  readonly blue: "blue";
4
4
  readonly gray: "gray";
@@ -1,4 +1,4 @@
1
- import { ComponentType, type HTMLAttributes } from "react";
1
+ import { type ComponentType, type HTMLAttributes } from "react";
2
2
  import { type ItemMessageProps } from "../Form/ItemMessage/ItemMessageCommon";
3
3
  import { type ProgressBarGroupProps } from "../ProgressBarGroup/ProgressBarGroupCommon";
4
4
  export type StepperProps = {
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, } from "react";
3
3
  import { ItemMessage, } from "../Form/ItemMessage/ItemMessageCommon";
4
+ import {} from "../ProgressBarGroup/ProgressBarGroupCommon";
4
5
  export const StepperCommon = ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, className, ProgressBarGroupComponent, helper, message, messageType = "success", titleLevel = 2, ...props }) => {
5
6
  const titleId = useId();
6
7
  const Title = `h${titleLevel}`;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "@axa-fr/canopee-css/prospect/Svg/Svg.css";
3
- import React from "react";
3
+ import React, {} from "react";
4
4
  import { svgInjector } from "./svgInjector";
5
5
  const cloneAttributes = (from, to) => {
6
6
  const attributes = from.getAttributeNames();
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ComponentType, ReactNode } from "react";
1
+ import { type ComponentProps, type ComponentType, type ReactNode } from "react";
2
2
  import { ItemTabBar, type ItemTabBarProps } from "../ItemTabBar/ItemTabBarCommon";
3
3
  export declare const tabBarDirection: {
4
4
  readonly center: "center";
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, useRef, useState, } from "react";
3
2
  import classNames from "classnames";
3
+ import { useCallback, useRef, useState, } from "react";
4
+ import { ItemTabBar, } from "../ItemTabBar/ItemTabBarCommon";
4
5
  export const tabBarDirection = {
5
6
  center: "center",
6
7
  left: "left",
@@ -0,0 +1,6 @@
1
+ import type { ComponentPropsWithRef } from "react";
2
+ export type BodyColorVariants = "white" | "blue" | "alternate";
3
+ export type TBodyProps = ComponentPropsWithRef<"tbody"> & {
4
+ variant?: BodyColorVariants;
5
+ };
6
+ export declare const TBody: ({ variant, className, children, ...tableBodyProps }: TBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getClassName } from "../utilities/getClassName";
3
+ export const TBody = ({ variant = "white", className, children, ...tableBodyProps }) => {
4
+ const componentClassName = getClassName({
5
+ baseClassName: "af-table__tbody",
6
+ className,
7
+ modifiers: [variant],
8
+ });
9
+ return (_jsx("tbody", { className: componentClassName, ...tableBodyProps, children: children }));
10
+ };
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export type HeadColorVariants = "gray" | "blue";
3
+ export type THeadProps = ComponentPropsWithRef<"thead"> & {
4
+ variant?: HeadColorVariants;
5
+ };
6
+ export declare const THead: ({ variant, className, children, ...tableHeadProps }: THeadProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ export const THead = ({ variant = "blue", className, children, ...tableHeadProps }) => {
5
+ const componentClassName = getClassName({
6
+ baseClassName: "af-table__thead",
7
+ className,
8
+ modifiers: [variant],
9
+ });
10
+ return (_jsx("thead", { className: componentClassName, ...tableHeadProps, children: children }));
11
+ };
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/prospect/Table/TableApollo.css";
2
+ export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./TableCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/prospect/Table/TableApollo.css";
2
+ export { Table, } from "./TableCommon";
@@ -0,0 +1,14 @@
1
+ import { type ComponentPropsWithRef } from "react";
2
+ import { type RowSizeVariants } from "./Tr";
3
+ import { type BodyColorVariants } from "./TBody";
4
+ import { type HeadColorVariants } from "./THead";
5
+ export type { HeadColorVariants, BodyColorVariants, RowSizeVariants };
6
+ export type TableProps = ComponentPropsWithRef<"table">;
7
+ export declare const Table: {
8
+ ({ className, children, ...tableProps }: TableProps): import("react/jsx-runtime").JSX.Element;
9
+ THead: ({ variant, className, children, ...tableHeadProps }: import("./THead").THeadProps) => import("react/jsx-runtime").JSX.Element;
10
+ TBody: ({ variant, className, children, ...tableBodyProps }: import("./TBody").TBodyProps) => import("react/jsx-runtime").JSX.Element;
11
+ Th: ({ position, onCheck, checkboxPosition, onSort, className, children, ...tableHeaderProps }: import("./Th").ThProps) => import("react/jsx-runtime").JSX.Element;
12
+ Tr: ({ size, className, children, ...tableRowProps }: import("./Tr").TrProps) => import("react/jsx-runtime").JSX.Element;
13
+ Td: ({ position, verticalAlign, size, variant, className, children, ...tableCellProps }: import("./Td").TdProps) => import("react/jsx-runtime").JSX.Element;
14
+ };
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ import { Td } from "./Td";
5
+ import { Tr } from "./Tr";
6
+ import { Th } from "./Th";
7
+ import { TBody } from "./TBody";
8
+ import { THead } from "./THead";
9
+ export const Table = ({ className, children, ...tableProps }) => {
10
+ const componentClassName = getClassName({
11
+ baseClassName: "af-table",
12
+ className,
13
+ });
14
+ return (_jsx("table", { className: componentClassName, ...tableProps, children: children }));
15
+ };
16
+ Table.THead = THead;
17
+ Table.TBody = TBody;
18
+ Table.Th = Th;
19
+ Table.Tr = Tr;
20
+ Table.Td = Td;
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/client/Table/TableLF.css";
2
+ export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./TableCommon";
@@ -0,0 +1,2 @@
1
+ import "@axa-fr/canopee-css/client/Table/TableLF.css";
2
+ export { Table, } from "./TableCommon";
@@ -0,0 +1,17 @@
1
+ import type { ComponentPropsWithRef } from "react";
2
+ export type CellContentPositionVariants = "left" | "center" | "right";
3
+ export type CellContentVerticalAlignVariants = "top" | "middle";
4
+ export declare const tdSizeVariants: {
5
+ readonly L: "large";
6
+ readonly M: "medium";
7
+ readonly S: "small";
8
+ };
9
+ export type TdSizeVariants = keyof typeof tdSizeVariants;
10
+ export type CellColorVariant = "white" | "blue";
11
+ export type TdProps = ComponentPropsWithRef<"td"> & {
12
+ position?: CellContentPositionVariants;
13
+ verticalAlign?: CellContentVerticalAlignVariants;
14
+ size?: TdSizeVariants;
15
+ variant?: CellColorVariant;
16
+ };
17
+ export declare const Td: ({ position, verticalAlign, size, variant, className, children, ...tableCellProps }: TdProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getClassName } from "../utilities/getClassName";
3
+ export const tdSizeVariants = {
4
+ L: "large",
5
+ M: "medium",
6
+ S: "small",
7
+ };
8
+ export const Td = ({ position = "left", verticalAlign = "middle", size, variant, className, children, ...tableCellProps }) => {
9
+ const componentClassName = getClassName({
10
+ baseClassName: "af-table__td",
11
+ className,
12
+ modifiers: [position, verticalAlign, size && tdSizeVariants[size], variant],
13
+ });
14
+ return (_jsx("td", { className: componentClassName, ...tableCellProps, children: children }));
15
+ };
@@ -0,0 +1,9 @@
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export type HeaderCellPositionVariants = "left" | "center" | "right";
3
+ export type ThProps = ComponentPropsWithRef<"th"> & {
4
+ position?: HeaderCellPositionVariants;
5
+ checkboxPosition?: HeaderCellPositionVariants;
6
+ onCheck?: () => void;
7
+ onSort?: () => void;
8
+ };
9
+ export declare const Th: ({ position, onCheck, checkboxPosition, onSort, className, children, ...tableHeaderProps }: ThProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import unfoldMore from "@material-symbols/svg-400/rounded/unfold_more-fill.svg";
4
+ import { getClassName } from "../utilities/getClassName";
5
+ import { Checkbox } from "../Form/Checkbox/Checkbox/CheckboxCommon";
6
+ import { ClickIcon } from "../ClickIcon/ClickIconCommon";
7
+ export const Th = ({ position = "left", onCheck, checkboxPosition = "left", onSort, className, children, ...tableHeaderProps }) => {
8
+ const componentClassName = getClassName({
9
+ baseClassName: "af-table__th",
10
+ className,
11
+ modifiers: [position, checkboxPosition && `checkbox-${checkboxPosition}`],
12
+ });
13
+ return (_jsx("th", { className: componentClassName, ...tableHeaderProps, children: _jsxs("div", { className: "af-table__th-wrapper", children: [onCheck ? _jsx(Checkbox, { onChange: onCheck }) : null, _jsx("span", { className: "af-table__th-content", children: children }), onSort ? (_jsx(ClickIcon, { onClick: onSort, src: unfoldMore, variant: "ghost", className: "af-table__th-sort-icon" })) : null] }) }));
14
+ };
@@ -0,0 +1,11 @@
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export declare const rowSizeVariants: {
3
+ readonly L: "large";
4
+ readonly M: "medium";
5
+ readonly S: "small";
6
+ };
7
+ export type RowSizeVariants = keyof typeof rowSizeVariants;
8
+ export type TrProps = ComponentPropsWithRef<"tr"> & {
9
+ size?: RowSizeVariants;
10
+ };
11
+ export declare const Tr: ({ size, className, children, ...tableRowProps }: TrProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import {} from "react";
3
+ import { getClassName } from "../utilities/getClassName";
4
+ export const rowSizeVariants = {
5
+ L: "large",
6
+ M: "medium",
7
+ S: "small",
8
+ };
9
+ export const Tr = ({ size = "S", className, children, ...tableRowProps }) => {
10
+ const componentClassName = getClassName({
11
+ baseClassName: "af-table__tr",
12
+ className,
13
+ modifiers: [rowSizeVariants[size]],
14
+ });
15
+ return (_jsx("tr", { className: componentClassName, ...tableRowProps, children: children }));
16
+ };
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export type DRowDirectionVariants = "row" | "column";
3
+ export type TrProps = ComponentPropsWithRef<"div"> & {
4
+ direction?: DRowDirectionVariants;
5
+ };
6
+ export declare const DRow: ({ className, children, direction, ...dRowProps }: TrProps) => import("react/jsx-runtime").JSX.Element;