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

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 (90) hide show
  1. package/dist/client.d.ts +23 -14
  2. package/dist/client.js +20 -12
  3. package/dist/distributeur/Form/Select/Select.d.ts +14 -14
  4. package/dist/distributeur/Form/Select/SelectInput.d.ts +14 -14
  5. package/dist/prospect-client/DataAgent/DataAgentApollo.d.ts +1 -0
  6. package/dist/prospect-client/DataAgent/DataAgentLF.d.ts +1 -0
  7. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.d.ts +3 -1
  8. package/dist/prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxCommon.js +2 -2
  9. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.d.ts +2 -0
  10. package/dist/prospect-client/Form/Checkbox/CheckboxText/CheckboxTextCommon.js +2 -2
  11. package/dist/prospect-client/Form/Dropdown/DropdownCommon.d.ts +2 -0
  12. package/dist/prospect-client/Form/Dropdown/DropdownCommon.js +2 -2
  13. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.d.ts +2 -0
  14. package/dist/prospect-client/Form/FileUpload/InputFile/InputFileCommon.js +2 -2
  15. package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +2 -0
  16. package/dist/prospect-client/Form/InputDate/InputDateCommon.js +2 -2
  17. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +2 -0
  18. package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.js +2 -2
  19. package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +4 -2
  20. package/dist/prospect-client/Form/InputText/InputTextCommon.js +2 -2
  21. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.d.ts +3 -0
  22. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo.js +6 -0
  23. package/dist/prospect-client/Form/Radio/{CardRadio/CardRadioCommon.d.ts → CardRadioGroup/CardRadioGroupCommon.d.ts} +13 -6
  24. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupCommon.js +16 -0
  25. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.d.ts +3 -0
  26. package/dist/prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF.js +6 -0
  27. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.d.ts +5 -1
  28. package/dist/prospect-client/Form/Radio/CardRadioOption/CardRadioOptionCommon.js +12 -8
  29. package/dist/prospect-client/Form/TextArea/TextAreaCommon.d.ts +2 -0
  30. package/dist/prospect-client/Form/TextArea/TextAreaCommon.js +2 -2
  31. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.d.ts +21 -0
  32. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutApollo.js +8 -0
  33. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.d.ts +50 -0
  34. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutCommon.js +37 -0
  35. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.d.ts +21 -0
  36. package/dist/prospect-client/Layout/ExitLayout/ExitLayoutLF.js +8 -0
  37. package/dist/prospect-client/Layout/FormLayout/FormLayout.d.ts +3529 -0
  38. package/dist/prospect-client/Layout/FormLayout/FormLayout.js +79 -0
  39. package/dist/prospect-client/Link/LinkApollo.d.ts +1 -1
  40. package/dist/prospect-client/Link/LinkApollo.js +1 -1
  41. package/dist/prospect-client/Link/LinkCommon.d.ts +4 -4
  42. package/dist/prospect-client/Link/LinkCommon.js +7 -7
  43. package/dist/prospect-client/Link/LinkLF.d.ts +1 -1
  44. package/dist/prospect-client/Link/LinkLF.js +1 -1
  45. package/dist/prospect-client/Table/TBody.d.ts +6 -0
  46. package/dist/prospect-client/Table/TBody.js +10 -0
  47. package/dist/prospect-client/Table/THead.d.ts +6 -0
  48. package/dist/prospect-client/Table/THead.js +10 -0
  49. package/dist/prospect-client/Table/TableApollo.d.ts +2 -0
  50. package/dist/prospect-client/Table/TableApollo.js +2 -0
  51. package/dist/prospect-client/Table/TableCommon.d.ts +14 -0
  52. package/dist/prospect-client/Table/TableCommon.js +19 -0
  53. package/dist/prospect-client/Table/TableLF.d.ts +2 -0
  54. package/dist/prospect-client/Table/TableLF.js +2 -0
  55. package/dist/prospect-client/Table/Td.d.ts +17 -0
  56. package/dist/prospect-client/Table/Td.js +15 -0
  57. package/dist/prospect-client/Table/Th.d.ts +9 -0
  58. package/dist/prospect-client/Table/Th.js +13 -0
  59. package/dist/prospect-client/Table/Tr.d.ts +11 -0
  60. package/dist/prospect-client/Table/Tr.js +15 -0
  61. package/dist/prospect-client/TableMobileCard/DRow.d.ts +6 -0
  62. package/dist/prospect-client/TableMobileCard/DRow.js +10 -0
  63. package/dist/prospect-client/TableMobileCard/Dd.d.ts +3 -0
  64. package/dist/prospect-client/TableMobileCard/Dd.js +9 -0
  65. package/dist/prospect-client/TableMobileCard/Dt.d.ts +3 -0
  66. package/dist/prospect-client/TableMobileCard/Dt.js +9 -0
  67. package/dist/prospect-client/TableMobileCard/TableMobileCard.d.ts +12 -0
  68. package/dist/prospect-client/TableMobileCard/TableMobileCard.js +17 -0
  69. package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.d.ts +3 -0
  70. package/dist/prospect-client/pages/ErrorPage/ErrorPageApollo.js +5 -0
  71. package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.d.ts +12 -0
  72. package/dist/prospect-client/pages/ErrorPage/ErrorPageCommon.js +7 -0
  73. package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.d.ts +3 -0
  74. package/dist/prospect-client/pages/ErrorPage/ErrorPageLF.js +5 -0
  75. package/dist/prospect-client/pages/ValidPage/ValidPageApollo.d.ts +3 -0
  76. package/dist/prospect-client/pages/ValidPage/ValidPageApollo.js +6 -0
  77. package/dist/prospect-client/pages/ValidPage/ValidPageCommon.d.ts +15 -0
  78. package/dist/prospect-client/pages/ValidPage/ValidPageCommon.js +7 -0
  79. package/dist/prospect-client/pages/ValidPage/ValidPageLF.d.ts +3 -0
  80. package/dist/prospect-client/pages/ValidPage/ValidPageLF.js +6 -0
  81. package/dist/prospect-client/utilities/types/GridContainerProps.d.ts +10 -0
  82. package/dist/prospect-client/utilities/types/GridContainerProps.js +1 -0
  83. package/dist/prospect.d.ts +22 -13
  84. package/dist/prospect.js +19 -11
  85. package/package.json +2 -2
  86. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.d.ts +0 -3
  87. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioApollo.js +0 -6
  88. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioCommon.js +0 -16
  89. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.d.ts +0 -3
  90. package/dist/prospect-client/Form/Radio/CardRadio/CardRadioLF.js +0 -6
package/dist/client.d.ts CHANGED
@@ -1,18 +1,20 @@
1
1
  import "@axa-fr/canopee-css/client/common/rebootLF.css";
2
- import "@axa-fr/canopee-css/client/common/tokensLF.css";
2
+ import "@axa-fr/canopee-css/client/common/tokens.css";
3
3
  import "@axa-fr/canopee-css/client/Grid/Grid.css";
4
4
  import "@fontsource/source-sans-pro";
5
- export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
6
5
  export { Accordion, accordionVariants, type AccordionVariants, } from "./prospect-client/Accordion/AccordionLF";
6
+ export { AccordionContextual, accordionContextualVariants, type AccordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
8
8
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
9
  export { Button, buttonVariants, type ButtonVariants, } from "./prospect-client/Button/ButtonLF";
10
+ export { Card, type CardProps } from "./prospect-client/Card/CardLF";
10
11
  export { CardMessage, cardMessageVariants, type CardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
11
12
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
12
13
  export { ContentItemDuoAction, type ContentItemDuoActionState, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
13
14
  export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMonoLF";
14
- export { DataAgent } from "./prospect-client/DataAgent/DataAgentLF";
15
+ export { DataAgent, type DataAgentProps, } from "./prospect-client/DataAgent/DataAgentLF";
15
16
  export { Divider } from "./prospect-client/Divider/DividerLF";
17
+ export { Fieldset, type FieldsetProps, } from "./prospect-client/Fieldset/FieldsetLF";
16
18
  export { CardCheckbox,
17
19
  /** @deprecated Use `CardCheckbox` instead. */
18
20
  CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
@@ -34,22 +36,30 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
34
36
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
35
37
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
36
38
  export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
37
- export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
39
+ export {
40
+ /** @deprecated Use `CardRadioGroup` instead. */
41
+ CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
38
42
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
39
43
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
40
44
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
41
45
  export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
42
- export { Heading, type HeadingLevel, } from "./prospect-client/Heading/HeadingLF";
46
+ export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingLF";
43
47
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconLF";
44
48
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
45
49
  export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterLF";
46
- export { Link, linkVariants, type LinkVariants, } from "./prospect-client/Link/LinkLF";
50
+ export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorLF";
51
+ export { Link, linkVariants, type LinkVariants, type LinkProps, } from "./prospect-client/Link/LinkLF";
47
52
  export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, type ClickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
48
53
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
54
+ export { List, type ListProps } from "./prospect-client/List/List/ListLF";
49
55
  export { Message, messageVariants, type MessageVariants, } from "./prospect-client/Message/MessageLF";
50
56
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
57
+ export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
58
+ export { Pagination } from "./prospect-client/Pagination/PaginationLF";
51
59
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
52
60
  export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
61
+ export { Skeleton, type SkeletonProps, } from "./prospect-client/Skeleton/SkeletonLF";
62
+ export { SkeletonList, type SkeletonListProps, } from "./prospect-client/SkeletonList/SkeletonListLF";
53
63
  export { Spinner, spinnerVariants, type SpinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
54
64
  export { Stepper } from "./prospect-client/Stepper/StepperLF";
55
65
  export { Svg } from "./prospect-client/Svg/Svg";
@@ -57,11 +67,10 @@ export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from
57
67
  export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagLF";
58
68
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
59
69
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
60
- export { Pagination } from "./prospect-client/Pagination/PaginationLF";
61
- export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
62
- export { Card, type CardProps } from "./prospect-client/Card/CardLF";
63
- export { List, type ListProps } from "./prospect-client/List/List/ListLF";
64
- export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorLF";
65
- export { Skeleton, type SkeletonProps, } from "./prospect-client/Skeleton/SkeletonLF";
66
- export { SkeletonList, type SkeletonListProps, } from "./prospect-client/SkeletonList/SkeletonListLF";
67
- export { Fieldset, type FieldsetProps, } from "./prospect-client/Fieldset/FieldsetLF";
70
+ export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./prospect-client/Table/TableLF";
71
+ export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
72
+ export { ExitLayout, type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
73
+ export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
74
+ export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageLF";
75
+ export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
76
+ export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
package/dist/client.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import "@axa-fr/canopee-css/client/common/rebootLF.css";
2
- import "@axa-fr/canopee-css/client/common/tokensLF.css";
2
+ import "@axa-fr/canopee-css/client/common/tokens.css";
3
3
  import "@axa-fr/canopee-css/client/Grid/Grid.css";
4
4
  import "@fontsource/source-sans-pro";
5
- export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
6
5
  export { Accordion, accordionVariants, } from "./prospect-client/Accordion/AccordionLF";
6
+ export { AccordionContextual, accordionContextualVariants, } from "./prospect-client/AccordionContextual/AccordionContextualLF";
7
7
  export { AccordionCore } from "./prospect-client/AccordionCore/AccordionCoreLF";
8
8
  export { BasePicture } from "./prospect-client/BasePicture/BasePicture";
9
9
  export { Button, buttonVariants, } from "./prospect-client/Button/ButtonLF";
10
+ export { Card } from "./prospect-client/Card/CardLF";
10
11
  export { CardMessage, cardMessageVariants, } from "./prospect-client/CardMessage/CardMessageLF";
11
12
  export { ClickIcon } from "./prospect-client/ClickIcon/ClickIconLF";
12
13
  export { ContentItemDuoAction, } from "./prospect-client/ContentItemDuoAction/ContentItemDuoActionLF";
13
14
  export { ContentItemMono } from "./prospect-client/ContentItemMono/ContentItemMonoLF";
14
- export { DataAgent } from "./prospect-client/DataAgent/DataAgentLF";
15
+ export { DataAgent, } from "./prospect-client/DataAgent/DataAgentLF";
15
16
  export { Divider } from "./prospect-client/Divider/DividerLF";
17
+ export { Fieldset, } from "./prospect-client/Fieldset/FieldsetLF";
16
18
  export { CardCheckbox,
17
19
  /** @deprecated Use `CardCheckbox` instead. */
18
20
  CardCheckbox as CheckboxCard, } from "./prospect-client/Form/Checkbox/CardCheckbox/CardCheckboxLF";
@@ -33,7 +35,9 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
33
35
  export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
34
36
  export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
35
37
  export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
36
- export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
38
+ export {
39
+ /** @deprecated Use `CardRadioGroup` instead. */
40
+ CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
37
41
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
38
42
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
39
43
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
@@ -42,13 +46,19 @@ export { Heading, } from "./prospect-client/Heading/HeadingLF";
42
46
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconLF";
43
47
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
44
48
  export { Footer, } from "./prospect-client/Layout/Footer/FooterLF";
49
+ export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorLF";
45
50
  export { Link, linkVariants, } from "./prospect-client/Link/LinkLF";
46
51
  export { ClickItem, clickItemStates, clickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
47
52
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
53
+ export { List } from "./prospect-client/List/List/ListLF";
48
54
  export { Message, messageVariants, } from "./prospect-client/Message/MessageLF";
49
55
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
56
+ export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
57
+ export { Pagination } from "./prospect-client/Pagination/PaginationLF";
50
58
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
51
59
  export { ProgressBarGroup } from "./prospect-client/ProgressBarGroup/ProgressBarGroupLF";
60
+ export { Skeleton, } from "./prospect-client/Skeleton/SkeletonLF";
61
+ export { SkeletonList, } from "./prospect-client/SkeletonList/SkeletonListLF";
52
62
  export { Spinner, spinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
53
63
  export { Stepper } from "./prospect-client/Stepper/StepperLF";
54
64
  export { Svg } from "./prospect-client/Svg/Svg";
@@ -56,11 +66,9 @@ export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarLF";
56
66
  export { Tag, tagVariants, } from "./prospect-client/Tag/TagLF";
57
67
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
58
68
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
59
- export { Pagination } from "./prospect-client/Pagination/PaginationLF";
60
- export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
61
- export { Card } from "./prospect-client/Card/CardLF";
62
- export { List } from "./prospect-client/List/List/ListLF";
63
- export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorLF";
64
- export { Skeleton, } from "./prospect-client/Skeleton/SkeletonLF";
65
- export { SkeletonList, } from "./prospect-client/SkeletonList/SkeletonListLF";
66
- export { Fieldset, } from "./prospect-client/Fieldset/FieldsetLF";
69
+ export { Table, } from "./prospect-client/Table/TableLF";
70
+ export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
71
+ export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
72
+ export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
73
+ export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageLF";
74
+ export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
@@ -6,6 +6,9 @@ declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<{
6
6
  id?: string | undefined | undefined;
7
7
  lang?: string | undefined | undefined;
8
8
  name?: string | undefined | undefined;
9
+ nonce?: string | undefined | undefined;
10
+ part?: string | undefined | undefined;
11
+ slot?: string | undefined | undefined;
9
12
  style?: import("react").CSSProperties | undefined;
10
13
  role?: import("react").AriaRole | undefined;
11
14
  tabIndex?: number | undefined | undefined;
@@ -82,18 +85,18 @@ declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<{
82
85
  onFocusCapture?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
83
86
  onBlur?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
84
87
  onBlurCapture?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
85
- onChange?: import("react").ChangeEventHandler<HTMLSelectElement> | undefined;
86
- onChangeCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
88
+ onChange?: import("react").ChangeEventHandler<HTMLSelectElement, HTMLSelectElement> | undefined;
89
+ onChangeCapture?: import("react").ChangeEventHandler<HTMLSelectElement, Element> | undefined;
87
90
  onBeforeInput?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
88
- onBeforeInputCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
89
- onInput?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
90
- onInputCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
91
- onReset?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
92
- onResetCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
93
- onSubmit?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
94
- onSubmitCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
95
- onInvalid?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
96
- onInvalidCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
91
+ onBeforeInputCapture?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
92
+ onInput?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
93
+ onInputCapture?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
94
+ onReset?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
95
+ onResetCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
96
+ onSubmit?: import("react").SubmitEventHandler<HTMLSelectElement> | undefined;
97
+ onSubmitCapture?: import("react").SubmitEventHandler<HTMLSelectElement> | undefined;
98
+ onInvalid?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
99
+ onInvalidCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
97
100
  onLoad?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
98
101
  onLoadCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
99
102
  onError?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
@@ -236,7 +239,6 @@ declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<{
236
239
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLSelectElement> | undefined;
237
240
  ref?: import("react").Ref<HTMLSelectElement> | undefined;
238
241
  form?: string | undefined | undefined;
239
- slot?: string | undefined | undefined;
240
242
  title?: string | undefined | undefined;
241
243
  dir?: string | undefined | undefined;
242
244
  disabled?: boolean | undefined | undefined;
@@ -253,7 +255,6 @@ declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<{
253
255
  draggable?: (boolean | "true" | "false") | undefined;
254
256
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
255
257
  hidden?: boolean | undefined | undefined;
256
- nonce?: string | undefined | undefined;
257
258
  spellCheck?: (boolean | "true" | "false") | undefined;
258
259
  translate?: "yes" | "no" | undefined | undefined;
259
260
  radioGroup?: string | undefined | undefined;
@@ -285,7 +286,6 @@ declare const Select: import("react").ForwardRefExoticComponent<(Omit<Omit<{
285
286
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
286
287
  is?: string | undefined | undefined;
287
288
  exportparts?: string | undefined | undefined;
288
- part?: string | undefined | undefined;
289
289
  value?: string | number | readonly string[] | undefined;
290
290
  autoComplete?: string | undefined | undefined;
291
291
  multiple?: boolean | undefined | undefined;
@@ -34,6 +34,9 @@ declare const SelectInput: import("react").ForwardRefExoticComponent<(Omit<Omit<
34
34
  id?: string | undefined | undefined;
35
35
  lang?: string | undefined | undefined;
36
36
  name?: string | undefined | undefined;
37
+ nonce?: string | undefined | undefined;
38
+ part?: string | undefined | undefined;
39
+ slot?: string | undefined | undefined;
37
40
  style?: import("react").CSSProperties | undefined;
38
41
  role?: import("react").AriaRole | undefined;
39
42
  tabIndex?: number | undefined | undefined;
@@ -110,18 +113,18 @@ declare const SelectInput: import("react").ForwardRefExoticComponent<(Omit<Omit<
110
113
  onFocusCapture?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
111
114
  onBlur?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
112
115
  onBlurCapture?: import("react").FocusEventHandler<HTMLSelectElement> | undefined;
113
- onChange?: import("react").ChangeEventHandler<HTMLSelectElement> | undefined;
114
- onChangeCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
116
+ onChange?: import("react").ChangeEventHandler<HTMLSelectElement, HTMLSelectElement> | undefined;
117
+ onChangeCapture?: import("react").ChangeEventHandler<HTMLSelectElement, Element> | undefined;
115
118
  onBeforeInput?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
116
- onBeforeInputCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
117
- onInput?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
118
- onInputCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
119
- onReset?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
120
- onResetCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
121
- onSubmit?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
122
- onSubmitCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
123
- onInvalid?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
124
- onInvalidCapture?: import("react").FormEventHandler<HTMLSelectElement> | undefined;
119
+ onBeforeInputCapture?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
120
+ onInput?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
121
+ onInputCapture?: import("react").InputEventHandler<HTMLSelectElement> | undefined;
122
+ onReset?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
123
+ onResetCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
124
+ onSubmit?: import("react").SubmitEventHandler<HTMLSelectElement> | undefined;
125
+ onSubmitCapture?: import("react").SubmitEventHandler<HTMLSelectElement> | undefined;
126
+ onInvalid?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
127
+ onInvalidCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
125
128
  onLoad?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
126
129
  onLoadCapture?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
127
130
  onError?: import("react").ReactEventHandler<HTMLSelectElement> | undefined;
@@ -264,7 +267,6 @@ declare const SelectInput: import("react").ForwardRefExoticComponent<(Omit<Omit<
264
267
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLSelectElement> | undefined;
265
268
  ref?: import("react").Ref<HTMLSelectElement> | undefined;
266
269
  form?: string | undefined | undefined;
267
- slot?: string | undefined | undefined;
268
270
  title?: string | undefined | undefined;
269
271
  dir?: string | undefined | undefined;
270
272
  disabled?: boolean | undefined | undefined;
@@ -281,7 +283,6 @@ declare const SelectInput: import("react").ForwardRefExoticComponent<(Omit<Omit<
281
283
  draggable?: (boolean | "true" | "false") | undefined;
282
284
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
283
285
  hidden?: boolean | undefined | undefined;
284
- nonce?: string | undefined | undefined;
285
286
  spellCheck?: (boolean | "true" | "false") | undefined;
286
287
  translate?: "yes" | "no" | undefined | undefined;
287
288
  radioGroup?: string | undefined | undefined;
@@ -313,7 +314,6 @@ declare const SelectInput: import("react").ForwardRefExoticComponent<(Omit<Omit<
313
314
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
314
315
  is?: string | undefined | undefined;
315
316
  exportparts?: string | undefined | undefined;
316
- part?: string | undefined | undefined;
317
317
  value?: string | number | readonly string[] | undefined;
318
318
  autoComplete?: string | undefined | undefined;
319
319
  multiple?: boolean | undefined | undefined;
@@ -1,3 +1,4 @@
1
1
  import { type DataAgentProps } from "./DataAgentCommon";
2
2
  import "@axa-fr/canopee-css/prospect/DataAgent/DataAgentApollo.css";
3
+ export { type DataAgentProps } from "./DataAgentCommon";
3
4
  export declare const DataAgent: (props: DataAgentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { type DataAgentProps } from "./DataAgentCommon";
2
2
  import "@axa-fr/canopee-css/client/DataAgent/DataAgentLF.css";
3
+ export { type DataAgentProps } from "./DataAgentCommon";
3
4
  export declare const DataAgent: (props: DataAgentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { type ComponentType, type ReactNode } from "react";
2
2
  import type { ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
3
3
  import type { CardCheckboxOptionProps } from "../CardCheckboxOption/CardCheckboxOptionCommon";
4
+ import { GridContainerProps } from "../../../utilities/types/GridContainerProps";
4
5
  type CheckboxOption = Omit<CardCheckboxOptionProps, "name" | "type">;
5
6
  export type CardCheckboxProps = Omit<CardCheckboxOptionProps, "value" | "label" | "type" | "icon" | "description" | "subtitle" | "children"> & {
6
7
  type?: "vertical" | "horizontal";
@@ -23,13 +24,14 @@ export type CardCheckboxProps = Omit<CardCheckboxOptionProps, "value" | "label"
23
24
  * @deprecated Use `message` and messageType instead.
24
25
  */
25
26
  error?: string;
27
+ containerProps?: GridContainerProps<"fieldset">;
26
28
  } & Partial<ItemMessageProps>;
27
29
  type CardCheckboxCommonProps = CardCheckboxProps & {
28
30
  CardCheckboxItemComponent: ComponentType<CardCheckboxOptionProps>;
29
31
  ItemMessageComponent: ComponentType<ItemMessageProps>;
30
32
  };
31
33
  export declare const CardCheckboxCommon: {
32
- ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type, error, name, id, onChange, CardCheckboxItemComponent, ItemMessageComponent, message, messageType, ...inputProps }: CardCheckboxCommonProps): import("react/jsx-runtime").JSX.Element;
34
+ ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type, error, name, id, onChange, CardCheckboxItemComponent, ItemMessageComponent, message, messageType, containerProps, ...inputProps }: CardCheckboxCommonProps): import("react/jsx-runtime").JSX.Element;
33
35
  displayName: string;
34
36
  };
35
37
  export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, useRef, } from "react";
3
- export const CardCheckboxCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type = "vertical", error, name, id, onChange = () => { }, CardCheckboxItemComponent, ItemMessageComponent, message, messageType = "error", ...inputProps }) => {
3
+ export const CardCheckboxCommon = ({ className, labelGroup, descriptionGroup, label, description, isRequired, required, options, type = "vertical", error, name, id, onChange = () => { }, CardCheckboxItemComponent, ItemMessageComponent, message, messageType = "error", containerProps, ...inputProps }) => {
4
4
  const generatedId = useId();
5
5
  const cardCheckboxId = id || generatedId;
6
6
  const messageId = `${cardCheckboxId}-error`;
@@ -23,7 +23,7 @@ export const CardCheckboxCommon = ({ className, labelGroup, descriptionGroup, la
23
23
  onChange(event);
24
24
  };
25
25
  const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
26
- return (_jsxs("fieldset", { className: ["af-card-checkbox", className].filter(Boolean).join(" "), id: cardCheckboxId, children: [_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { className: "af-card-checkbox__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-checkbox__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
26
+ return (_jsxs("fieldset", { className: ["af-card-checkbox", className].filter(Boolean).join(" "), id: cardCheckboxId, ...containerProps, children: [_jsxs("legend", { className: "af-card-checkbox__legend", children: [_jsxs("p", { className: "af-card-checkbox__label", children: [label, labelGroup, required || isRequired ? _jsx("span", { "aria-hidden": true, children: "*" }) : null] }), description || descriptionGroup ? (_jsxs("p", { className: "af-card-checkbox__description", children: [description, descriptionGroup] })) : null] }), _jsx("div", { className: [
27
27
  "af-card-checkbox__options",
28
28
  `af-card-checkbox__options--${type}`,
29
29
  ].join(" "), ref: cardCheckboxOptionsRef, children: options.map((cardCheckboxItemProps) => (_jsx(CardCheckboxItemComponent, { id: `${cardCheckboxId}-${cardCheckboxItemProps.value}`, required: required, onChange: handleChange, ...inputProps, ...cardCheckboxItemProps, type: type, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, name: name }, `${name ?? cardCheckboxId}-${cardCheckboxItemProps.label}`))) }), _jsx(ItemMessageComponent, { id: messageId, message: message || error, messageType: messageType })] }));
@@ -1,12 +1,14 @@
1
1
  import { type ReactNode, type ComponentType } from "react";
2
2
  import type { ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
3
3
  import type { CheckboxProps } from "../Checkbox/CheckboxCommon";
4
+ import { GridContainerProps } from "../../../utilities/types/GridContainerProps";
4
5
  export type CheckboxTextProps = {
5
6
  label: string | ReactNode;
6
7
  /**
7
8
  * @deprecated Use `message` and messageType instead.
8
9
  */
9
10
  errorMessage?: string;
11
+ containerProps?: GridContainerProps;
10
12
  } & Omit<CheckboxProps, "aria-errormessage" | "aria-invalid"> & Partial<ItemMessageProps>;
11
13
  export type CheckboxTextCommonProps = CheckboxTextProps & {
12
14
  CheckboxComponent: ComponentType<Omit<CheckboxProps, "checkBoxIcon">>;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId, forwardRef } from "react";
3
- const CheckboxTextCommon = forwardRef(({ label, errorMessage, id, message, messageType, CheckboxComponent, ItemMessageComponent, ...inputProps }, ref) => {
3
+ const CheckboxTextCommon = forwardRef(({ label, errorMessage, id, message, messageType, CheckboxComponent, ItemMessageComponent, containerProps, ...inputProps }, ref) => {
4
4
  const generatedId = useId();
5
5
  const inputId = id ?? generatedId;
6
6
  const messageId = `${inputId}-error`;
7
7
  const hasError = (Boolean(message) && messageType === "error") || Boolean(errorMessage);
8
- return (_jsxs("div", { className: "af-checkbox-text", children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, ...inputProps, "aria-errormessage": hasError ? messageId : undefined, "aria-invalid": hasError || undefined, ref: ref }), _jsx("span", { className: "af-checkbox-text__label-content", children: label })] }), _jsx(ItemMessageComponent, { message: message || errorMessage, id: messageId, messageType: messageType })] }));
8
+ return (_jsxs("div", { className: "af-checkbox-text", ...containerProps, children: [_jsxs("label", { htmlFor: inputId, children: [_jsx(CheckboxComponent, { id: inputId, ...inputProps, "aria-errormessage": hasError ? messageId : undefined, "aria-invalid": hasError || undefined, ref: ref }), _jsx("span", { className: "af-checkbox-text__label-content", children: label })] }), _jsx(ItemMessageComponent, { message: message || errorMessage, id: messageId, messageType: messageType })] }));
9
9
  });
10
10
  CheckboxTextCommon.displayName = "CheckboxTextCommon";
11
11
  export { CheckboxTextCommon };
@@ -1,6 +1,7 @@
1
1
  import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
2
2
  import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
3
3
  import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
4
+ import { GridContainerProps } from "../../utilities/types/GridContainerProps";
4
5
  export type DropdownProps = ComponentPropsWithRef<"select"> & {
5
6
  id?: string;
6
7
  classModifier?: string;
@@ -16,6 +17,7 @@ export type DropdownProps = ComponentPropsWithRef<"select"> & {
16
17
  placeholder?: string;
17
18
  description?: string;
18
19
  helper?: string;
20
+ containerProps?: GridContainerProps;
19
21
  } & Pick<ItemLabelProps, "buttonLabel" | "moreButtonLabel" | "onButtonClick" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
20
22
  type DropdownCommonProps = DropdownProps & {
21
23
  ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
3
  import { forwardRef, useId, } from "react";
4
- const DropdownCommon = forwardRef(({ id, required, label, error, placeholder, children, helper, success, message, messageType, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, ...otherProps }, inputRef) => {
4
+ const DropdownCommon = forwardRef(({ id, required, label, error, placeholder, children, helper, success, message, messageType, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, containerProps, ...otherProps }, inputRef) => {
5
5
  const idMessage = useId();
6
6
  let inputId = useId();
7
7
  inputId = id || inputId;
8
8
  const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
9
9
  const classname = classNames("af-form__dropdown-input", hasError && "af-form__dropdown-input--error");
10
- return (_jsxs("div", { className: "af-form__dropdown-container", children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsxs("select", { className: classname, ...otherProps, ref: inputRef, id: inputId, children: [Boolean(placeholder) && _jsx("option", { value: "", children: placeholder }), children] }), helper ? (_jsx("span", { className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
10
+ return (_jsxs("div", { className: "af-form__dropdown-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsxs("select", { className: classname, ...otherProps, ref: inputRef, id: inputId, children: [Boolean(placeholder) && _jsx("option", { value: "", children: placeholder }), children] }), helper ? (_jsx("span", { className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
11
11
  });
12
12
  DropdownCommon.displayName = "Dropdown";
13
13
  export { DropdownCommon };
@@ -1,6 +1,7 @@
1
1
  import { type ComponentPropsWithRef, type ComponentType, type MouseEventHandler, type ReactNode } from "react";
2
2
  import { type ItemLabelProps } from "../../ItemLabel/ItemLabelCommon";
3
3
  import { type ItemMessageProps } from "../../ItemMessage/ItemMessageCommon";
4
+ import { GridContainerProps } from "../../../utilities/types/GridContainerProps";
4
5
  type LabelProps = Partial<Omit<ItemLabelProps, "children" | "label" | "description" | "sideButtonLabel" | "onSideButtonClick" | "moreButtonLabel" | "onMoreButtonClick">>;
5
6
  export type InputFileProps = Omit<ComponentPropsWithRef<"input">, "type"> & {
6
7
  /**
@@ -51,6 +52,7 @@ export type InputFileProps = Omit<ComponentPropsWithRef<"input">, "type"> & {
51
52
  or?: ReactNode;
52
53
  button?: ReactNode;
53
54
  };
55
+ containerProps?: GridContainerProps;
54
56
  } & Omit<ItemMessageProps, "id">;
55
57
  type InputFileCommonProps = InputFileProps & {
56
58
  ItemLabelComponent: ComponentType<ItemLabelProps>;
@@ -8,7 +8,7 @@ const DEFAULT_DROPZONE_LABELS = {
8
8
  or: "ou",
9
9
  button: "Importer fichier",
10
10
  };
11
- export const InputFileCommon = forwardRef(({ ItemLabelComponent, ItemMessageComponent, id, label, description, sideButtonLabel, onSideButtonClick, moreButtonLabel, onMoreButtonClick, labelProps, helper, required, message, messageType = "error", className, style, dropzoneLabels = {}, children, ...props }, ref) => {
11
+ export const InputFileCommon = forwardRef(({ ItemLabelComponent, ItemMessageComponent, id, label, description, sideButtonLabel, onSideButtonClick, moreButtonLabel, onMoreButtonClick, labelProps, helper, required, message, messageType = "error", className, dropzoneLabels = {}, children, containerProps, ...props }, ref) => {
12
12
  const generatedId = useId();
13
13
  const inputId = id || generatedId;
14
14
  const messageId = `${inputId}-message`;
@@ -26,7 +26,7 @@ export const InputFileCommon = forwardRef(({ ItemLabelComponent, ItemMessageComp
26
26
  return (_jsxs("div", { className: getClassName({
27
27
  baseClassName: "af-input-file",
28
28
  className,
29
- }), style: style, children: [_jsx(ItemLabelComponent, { htmlFor: inputId, description: description, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, moreButtonLabel: moreButtonLabel, onMoreButtonClick: onMoreButtonClick, required: required, ...labelProps, children: label }), _jsxs("div", { className: "af-input-file__container", children: [_jsxs("span", { className: getClassName({
29
+ }), ...containerProps, children: [_jsx(ItemLabelComponent, { htmlFor: inputId, description: description, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, moreButtonLabel: moreButtonLabel, onMoreButtonClick: onMoreButtonClick, required: required, ...labelProps, children: label }), _jsxs("div", { className: "af-input-file__container", children: [_jsxs("span", { className: getClassName({
30
30
  baseClassName: "af-input-file__dropzone",
31
31
  modifiers: [hasError && "error"],
32
32
  }), children: [_jsx("input", { ref: ref, type: "file", id: inputId, required: required, "aria-invalid": hasError || undefined, "aria-errormessage": hasError ? messageId : undefined, "aria-describedby": ariaDescribedby.length > 0
@@ -2,6 +2,7 @@ import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } f
2
2
  import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
3
3
  import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
4
4
  import { type InputDateAtomProps } from "./InputDateAtom";
5
+ import { GridContainerProps } from "../../utilities/types/GridContainerProps";
5
6
  export type InputDateProps = Omit<ComponentPropsWithRef<"input">, "value" | "min" | "max"> & {
6
7
  classModifier?: string;
7
8
  defaultValue?: Date | string;
@@ -19,6 +20,7 @@ export type InputDateProps = Omit<ComponentPropsWithRef<"input">, "value" | "min
19
20
  success?: string;
20
21
  hidePicker?: boolean;
21
22
  label: ItemLabelProps["children"];
23
+ containerProps?: GridContainerProps;
22
24
  } & Partial<Pick<ItemLabelProps, "description" | "buttonLabel" | "moreButtonLabel" | "onButtonClick" | "onMoreButtonClick"> & ItemMessageProps>;
23
25
  type InputDateCommonProps = InputDateProps & {
24
26
  ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
@@ -3,7 +3,7 @@ import { forwardRef, useId, } from "react";
3
3
  import { getClassName } from "../../utilities/getClassName";
4
4
  import { InputDateAtom } from "./InputDateAtom";
5
5
  import { InputDateTextAtom } from "./InputDateTextAtom";
6
- const InputDateCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, ItemLabelComponent, ItemMessageComponent, required, hidePicker, max, min, ...otherProps }, inputRef) => {
6
+ const InputDateCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, ItemLabelComponent, ItemMessageComponent, required, hidePicker, max, min, containerProps, ...otherProps }, inputRef) => {
7
7
  const componentClassName = getClassName({
8
8
  baseClassName: "af-form__input-date",
9
9
  modifiers: classModifier.split(" "),
@@ -24,7 +24,7 @@ const InputDateCommon = forwardRef(({ className, classModifier = "", helper, err
24
24
  const hasError = (Boolean(message) && messageType === "error") || Boolean(error);
25
25
  const ariaErrormessage = hasError ? idMessage : undefined;
26
26
  const ariaInvalid = hasError || undefined;
27
- return (_jsxs("div", { className: "af-form__input-container", children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, required: required, htmlFor: inputId, children: label }), hidePicker ? (_jsx(InputDateTextAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required })) : (_jsx(InputDateAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required, max: max, min: min })), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
27
+ return (_jsxs("div", { className: "af-form__input-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, required: required, htmlFor: inputId, children: label }), hidePicker ? (_jsx(InputDateTextAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required })) : (_jsx(InputDateAtom, { ...otherProps, id: inputId, className: componentClassName, ref: inputRef, "aria-errormessage": ariaErrormessage, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedby, required: required, max: max, min: min })), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
28
28
  });
29
29
  InputDateCommon.displayName = "InputDate";
30
30
  export { InputDateCommon };
@@ -5,6 +5,7 @@ import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
5
5
  import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
6
6
  import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
7
7
  import { type OptionType } from "./InputPhone.types";
8
+ import { GridContainerProps } from "../../utilities/types/GridContainerProps";
8
9
  export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
9
10
  classModifier?: string;
10
11
  helper?: string;
@@ -24,6 +25,7 @@ export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
24
25
  onChangeInput?: (value: string) => void;
25
26
  mask?: (value: string) => string;
26
27
  label: ItemLabelProps["children"];
28
+ containerProps?: GridContainerProps;
27
29
  } & Pick<ItemLabelProps, "description" | "moreButtonLabel" | "buttonLabel" | "onMoreButtonClick" | "onButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
28
30
  type InputPhoneCommonProps = InputPhoneProps & {
29
31
  ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useId, } from "react";
3
3
  import { CountryCodeSelect } from "./CountryCodeSelect";
4
4
  import { maskFrenchPhoneNumber } from "./maskFrenchPhoneNumber";
5
- const InputPhoneCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, defaultCountry, showSelect, disabled, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions = [], onChangeSelect, onChangeInput, mask = maskFrenchPhoneNumber, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, ...otherProps }, inputRef) => {
5
+ const InputPhoneCommon = forwardRef(({ className, classModifier = "", helper, error, success, message, messageType, defaultCountry, showSelect, disabled, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, countryCodeOptions = [], onChangeSelect, onChangeInput, mask = maskFrenchPhoneNumber, ItemLabelComponent, ItemMessageComponent, InputTextComponent, IconComponent, "aria-errormessage": ariaErrormessage, containerProps, ...otherProps }, inputRef) => {
6
6
  let inputId = useId();
7
7
  inputId = otherProps.id || inputId;
8
8
  const idMessage = useId();
@@ -24,7 +24,7 @@ const InputPhoneCommon = forwardRef(({ className, classModifier = "", helper, er
24
24
  const maskedValue = mask(rawValue);
25
25
  onChangeInput?.(maskedValue);
26
26
  };
27
- return (_jsxs("div", { className: "af-form__input-phone-container", children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsxs("div", { className: "af-form__input-phone-fields", children: [showSelect ? (_jsx("div", { className: "af-form__country-code-wrapper", children: _jsx(CountryCodeSelect, { options: countryCodeOptions, defaultCountry: defaultCountry, onChangeSelect: onChangeSelect, IconComponent: IconComponent, disabled: disabled }) })) : null, _jsx(InputTextComponent, { ...otherProps, className: ["af-form__input-phone", className]
27
+ return (_jsxs("div", { className: "af-form__input-phone-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsxs("div", { className: "af-form__input-phone-fields", children: [showSelect ? (_jsx("div", { className: "af-form__country-code-wrapper", children: _jsx(CountryCodeSelect, { options: countryCodeOptions, defaultCountry: defaultCountry, onChangeSelect: onChangeSelect, IconComponent: IconComponent, disabled: disabled }) })) : null, _jsx(InputTextComponent, { ...otherProps, className: ["af-form__input-phone", className]
28
28
  .filter(Boolean)
29
29
  .join(" "), classModifier: classModifier, ref: inputRef, error: hasError ? messageType || error : undefined, type: "tel", required: required, placeholder: otherProps.placeholder, "aria-errormessage": ariaErrormessage, value: otherProps.value, onChange: handleChangeNumber, disabled: disabled, idMessage: hasError ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, id: inputId })] }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-phone-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
30
30
  });
@@ -1,8 +1,9 @@
1
- import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
1
+ import { type ComponentProps, type ComponentType, type ReactNode } from "react";
2
2
  import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
3
3
  import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
4
4
  import { ItemMessage, type ItemMessageProps } from "../ItemMessage/ItemMessageCommon";
5
- export type InputTextProps = ComponentPropsWithRef<"input"> & {
5
+ import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
6
+ export type InputTextProps = ComponentProps<"input"> & {
6
7
  unit?: ReactNode;
7
8
  classModifier?: string;
8
9
  label?: ItemLabelProps["children"];
@@ -15,6 +16,7 @@ export type InputTextProps = ComponentPropsWithRef<"input"> & {
15
16
  * @deprecated Use `message` and messageType instead.
16
17
  */
17
18
  success?: string;
19
+ containerProps?: GridContainerProps;
18
20
  } & Pick<ItemLabelProps, "description" | "moreButtonLabel" | "buttonLabel" | "onMoreButtonClick" | "onButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
19
21
  type InputTextCommonProps = InputTextProps & {
20
22
  ItemLabelComponent: ComponentType<Omit<ComponentProps<typeof ItemLabelCommon>, "ButtonComponent">>;
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useId, } from "react";
3
- const InputTextCommon = forwardRef(({ unit, className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, InputTextAtomComponent, ...otherProps }, inputRef) => {
3
+ const InputTextCommon = forwardRef(({ unit, className, classModifier = "", helper, error, success, message, messageType, label, description, buttonLabel, moreButtonLabel, onButtonClick, onMoreButtonClick, required, sideButtonLabel, onSideButtonClick, ItemLabelComponent, ItemMessageComponent, InputTextAtomComponent, containerProps, ...otherProps }, inputRef) => {
4
4
  let inputId = useId();
5
5
  inputId = otherProps.id || inputId;
6
6
  const idMessage = useId();
7
7
  const idHelp = useId();
8
8
  const ariaDescribedby = [helper && idHelp, success && idMessage].filter(Boolean);
9
- return (_jsxs("div", { className: "af-form__input-container", children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsx(InputTextAtomComponent, { id: inputId, ref: inputRef, unit: unit, className: className, classModifier: classModifier, error: (message && messageType === "error") || Boolean(error)
9
+ return (_jsxs("div", { className: "af-form__input-container", ...containerProps, children: [_jsx(ItemLabelComponent, { description: description, moreButtonLabel: moreButtonLabel ?? buttonLabel, onMoreButtonClick: onMoreButtonClick ?? onButtonClick, sideButtonLabel: sideButtonLabel, onSideButtonClick: onSideButtonClick, required: required, htmlFor: inputId, children: label }), _jsx(InputTextAtomComponent, { id: inputId, ref: inputRef, unit: unit, className: className, classModifier: classModifier, error: (message && messageType === "error") || Boolean(error)
10
10
  ? messageType || error
11
11
  : undefined, required: required, idMessage: message || error ? idMessage : undefined, idHelp: ariaDescribedby.length > 0 ? ariaDescribedby.join(" ") : undefined, ...otherProps }), helper ? (_jsx("span", { id: idHelp, className: "af-form__input-helper", children: helper })) : null, _jsx(ItemMessageComponent, { id: idMessage, message: message || error || success, messageType: messageType || (error ? "error" : "success") })] }));
12
12
  });
@@ -0,0 +1,3 @@
1
+ import { type CardRadioGroupProps } from "./CardRadioGroupCommon";
2
+ import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioGroup/CardRadioGroupApollo.css";
3
+ export declare const CardRadioGroup: (props: CardRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ItemMessage } from "../../ItemMessage/ItemMessageApollo";
3
+ import { CardRadioOption } from "../CardRadioOption/CardRadioOptionApollo";
4
+ import { CardRadioGroupCommon, } from "./CardRadioGroupCommon";
5
+ import "@axa-fr/canopee-css/prospect/Form/Radio/CardRadioGroup/CardRadioGroupApollo.css";
6
+ export const CardRadioGroup = (props) => (_jsx(CardRadioGroupCommon, { ...props, CardRadioOptionComponent: CardRadioOption, ItemMessageComponent: ItemMessage }));