@axa-fr/canopee-react 1.7.1-alpha.24 → 1.7.1-alpha.25

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.
package/dist/client.d.ts CHANGED
@@ -41,20 +41,26 @@ export {
41
41
  CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
42
42
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
43
43
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
44
+ export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/RadioText/RadioTextLF";
44
45
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
45
46
  export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
46
47
  export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingLF";
47
48
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconLF";
48
49
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
50
+ export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
49
51
  export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterLF";
52
+ export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
50
53
  export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorLF";
51
- export { Link, linkVariants, type LinkVariants, type LinkProps, } from "./prospect-client/Link/LinkLF";
54
+ export { Link, linkVariants, type LinkProps, type LinkVariants, } from "./prospect-client/Link/LinkLF";
52
55
  export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, type ClickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
53
56
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
54
57
  export { List, type ListProps } from "./prospect-client/List/List/ListLF";
58
+ export { Loader, type LoaderProps } from "./prospect-client/Loader/LoaderLF";
55
59
  export { Message, messageVariants, type MessageVariants, } from "./prospect-client/Message/MessageLF";
56
60
  export { MultiMessage, type MultiMessageItem, type MultiMessageProps, } from "./prospect-client/MultiMessage/MultiMessageLF";
57
61
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
62
+ export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
63
+ export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageLF";
58
64
  export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
59
65
  export { Pagination } from "./prospect-client/Pagination/PaginationLF";
60
66
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
@@ -65,14 +71,9 @@ export { Spinner, spinnerVariants, type SpinnerVariants, } from "./prospect-clie
65
71
  export { Stepper } from "./prospect-client/Stepper/StepperLF";
66
72
  export { Svg } from "./prospect-client/Svg/Svg";
67
73
  export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from "./prospect-client/TabBar/TabBarLF";
74
+ export { Table, type BodyColorVariants, type HeadColorVariants, type RowSizeVariants, type TableProps, } from "./prospect-client/Table/TableLF";
75
+ export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
68
76
  export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagLF";
69
77
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
70
78
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
71
- export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./prospect-client/Table/TableLF";
72
- export { TableMobileCard, type TableMobileCardProps, } from "./prospect-client/TableMobileCard/TableMobileCard";
73
- export { ExitLayout, type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
74
- export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
75
- export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageLF";
76
- export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
77
79
  export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
78
- export { Loader, type LoaderProps } from "./prospect-client/Loader/LoaderLF";
package/dist/client.js CHANGED
@@ -41,20 +41,26 @@ export {
41
41
  CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
42
42
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionLF";
43
43
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
44
+ export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextLF";
44
45
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaLF";
45
46
  export { DebugGrid } from "./prospect-client/Grid/DebugGridLF";
46
47
  export { Heading, } from "./prospect-client/Heading/HeadingLF";
47
48
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconLF";
48
49
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarLF";
50
+ export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
49
51
  export { Footer, } from "./prospect-client/Layout/Footer/FooterLF";
52
+ export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
50
53
  export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorLF";
51
54
  export { Link, linkVariants, } from "./prospect-client/Link/LinkLF";
52
55
  export { ClickItem, clickItemStates, clickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemLF";
53
56
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoLF";
54
57
  export { List } from "./prospect-client/List/List/ListLF";
58
+ export { Loader } from "./prospect-client/Loader/LoaderLF";
55
59
  export { Message, messageVariants, } from "./prospect-client/Message/MessageLF";
56
60
  export { MultiMessage, } from "./prospect-client/MultiMessage/MultiMessageLF";
57
61
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalLF";
62
+ export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
63
+ export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageLF";
58
64
  export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationLF";
59
65
  export { Pagination } from "./prospect-client/Pagination/PaginationLF";
60
66
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarLF";
@@ -65,13 +71,8 @@ export { Spinner, spinnerVariants, } from "./prospect-client/Spinner/SpinnerLF";
65
71
  export { Stepper } from "./prospect-client/Stepper/StepperLF";
66
72
  export { Svg } from "./prospect-client/Svg/Svg";
67
73
  export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarLF";
74
+ export { Table, } from "./prospect-client/Table/TableLF";
75
+ export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
68
76
  export { Tag, tagVariants, } from "./prospect-client/Tag/TagLF";
69
77
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalLF";
70
78
  export { Toggle } from "./prospect-client/Toggle/ToggleLF";
71
- export { Table, } from "./prospect-client/Table/TableLF";
72
- export { TableMobileCard, } from "./prospect-client/TableMobileCard/TableMobileCard";
73
- export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutLF";
74
- export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
75
- export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageLF";
76
- export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageLF";
77
- export { Loader } from "./prospect-client/Loader/LoaderLF";
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/prospect/Form/Radio/RadioText/RadioTextAll.css";
2
+ import { type RadioTextProps } from "./RadioTextCommon";
3
+ export { type RadioTextProps } from "./RadioTextCommon";
4
+ export declare const RadioText: import("react").ForwardRefExoticComponent<Omit<RadioTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/prospect/Form/Radio/RadioText/RadioTextAll.css";
3
+ import { forwardRef } from "react";
4
+ import { Radio } from "../Radio/RadioApollo";
5
+ import { RadioTextCommon } from "./RadioTextCommon";
6
+ export {} from "./RadioTextCommon";
7
+ export const RadioText = forwardRef((props, ref) => (_jsx(RadioTextCommon, { ...props, ref: ref, RadioComponent: Radio })));
8
+ RadioText.displayName = "RadioText";
@@ -0,0 +1,12 @@
1
+ import { type ComponentType, type ReactNode } from "react";
2
+ import type { GridContainerProps } from "../../../utilities/types/GridContainerProps";
3
+ import type { RadioProps } from "../Radio/RadioCommon";
4
+ export type RadioTextProps = {
5
+ label: string | ReactNode;
6
+ labelProps?: GridContainerProps<"label">;
7
+ } & RadioProps;
8
+ export type RadioTextCommonProps = RadioTextProps & {
9
+ RadioComponent: ComponentType<RadioProps>;
10
+ };
11
+ declare const RadioTextCommon: import("react").ForwardRefExoticComponent<Omit<RadioTextCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
12
+ export { RadioTextCommon };
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ const RadioTextCommon = forwardRef(({ label, labelProps, RadioComponent, ...inputProps }, ref) => (_jsxs("label", { className: "af-radio-text", ...labelProps, children: [_jsx(RadioComponent, { ...inputProps, ref: ref }), _jsx("span", { className: "af-radio-text__label-content", children: label })] })));
4
+ RadioTextCommon.displayName = "RadioTextCommon";
5
+ export { RadioTextCommon };
@@ -0,0 +1,4 @@
1
+ import "@axa-fr/canopee-css/client/Form/Radio/RadioText/RadioTextAll.css";
2
+ import { type RadioTextProps } from "./RadioTextCommon";
3
+ export { type RadioTextProps } from "./RadioTextCommon";
4
+ export declare const RadioText: import("react").ForwardRefExoticComponent<Omit<RadioTextProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "@axa-fr/canopee-css/client/Form/Radio/RadioText/RadioTextAll.css";
3
+ import { forwardRef } from "react";
4
+ import { Radio } from "../Radio/RadioLF";
5
+ import { RadioTextCommon } from "./RadioTextCommon";
6
+ export {} from "./RadioTextCommon";
7
+ export const RadioText = forwardRef((props, ref) => (_jsx(RadioTextCommon, { ...props, ref: ref, RadioComponent: Radio })));
8
+ RadioText.displayName = "RadioText";
@@ -37,20 +37,26 @@ export {
37
37
  CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
38
38
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo";
39
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
40
+ export { RadioText, type RadioTextProps, } from "./prospect-client/Form/Radio/RadioText/RadioTextApollo";
40
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
41
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
42
43
  export { Heading, type HeadingLevel, type HeadingProps, } from "./prospect-client/Heading/HeadingApollo";
43
44
  export { Icon, iconSizeVariants, iconVariants, type IconSizeVariants, type IconVariants, } from "./prospect-client/Icon/IconApollo";
44
45
  export { ItemTabBar, type ItemTabBarProps, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
46
+ export { ExitLayout, type ExitLayoutProps, type ExitLayoutWithSubComponents, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
45
47
  export { Footer, type FooterProps, } from "./prospect-client/Layout/Footer/FooterApollo";
48
+ export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
46
49
  export { LevelSelector, type LevelSelectorProps, } from "./prospect-client/LevelSelector/LevelSelectorApollo";
47
- export { Link, linkVariants, type LinkVariants, type LinkProps, } from "./prospect-client/Link/LinkApollo";
50
+ export { Link, linkVariants, type LinkProps, type LinkVariants, } from "./prospect-client/Link/LinkApollo";
48
51
  export { ClickItem, clickItemStates, clickItemVariants, type ClickItemStates, type ClickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemApollo";
49
52
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoApollo";
50
53
  export { List, type ListProps } from "./prospect-client/List/List/ListApollo";
54
+ export { Loader, type LoaderProps, } from "./prospect-client/Loader/LoaderApollo";
51
55
  export { Message, messageVariants, type MessageVariants, } from "./prospect-client/Message/MessageApollo";
52
56
  export { MultiMessage, type MultiMessageItem, type MultiMessageProps, } from "./prospect-client/MultiMessage/MultiMessageApollo";
53
57
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalApollo";
58
+ export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageApollo";
59
+ export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageApollo";
54
60
  export { ItemPagination, type ItemPaginationProps, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationApollo";
55
61
  export { Pagination } from "./prospect-client/Pagination/PaginationApollo";
56
62
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarApollo";
@@ -61,14 +67,9 @@ export { Spinner, spinnerVariants, type SpinnerVariants, } from "./prospect-clie
61
67
  export { Stepper } from "./prospect-client/Stepper/StepperApollo";
62
68
  export { Svg } from "./prospect-client/Svg/Svg";
63
69
  export { TabBar, tabBarDirection, type TabBarDirection, type TabBarProps, } from "./prospect-client/TabBar/TabBarApollo";
70
+ export { Table, type BodyColorVariants, type HeadColorVariants, type RowSizeVariants, type TableProps, } from "./prospect-client/Table/TableApollo";
71
+ export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
64
72
  export { Tag, tagVariants, type TagVariants, } from "./prospect-client/Tag/TagApollo";
65
73
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalApollo";
66
74
  export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
67
- export { Table, type TableProps, type HeadColorVariants, type BodyColorVariants, type RowSizeVariants, } from "./prospect-client/Table/TableApollo";
68
- export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
69
- export { ExitLayout, type ExitLayoutWithSubComponents, type ExitLayoutProps, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
70
- export { FormLayout, type FormLayoutProps, } from "./prospect-client/Layout/FormLayout/FormLayout";
71
- export { ValidPage, type ValidPageProps, } from "./prospect-client/pages/ValidPage/ValidPageApollo";
72
- export { ErrorPage, type ErrorPageProps, } from "./prospect-client/pages/ErrorPage/ErrorPageApollo";
73
75
  export type { GridContainerProps } from "./prospect-client/utilities/types/GridContainerProps";
74
- export { Loader, type LoaderProps, } from "./prospect-client/Loader/LoaderApollo";
package/dist/prospect.js CHANGED
@@ -37,20 +37,26 @@ export {
37
37
  CardRadioGroup as CardRadio, CardRadioGroup, } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
38
38
  export { CardRadioOption } from "./prospect-client/Form/Radio/CardRadioOption/CardRadioOptionApollo";
39
39
  export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
40
+ export { RadioText, } from "./prospect-client/Form/Radio/RadioText/RadioTextApollo";
40
41
  export { TextArea } from "./prospect-client/Form/TextArea/TextAreaApollo";
41
42
  export { DebugGrid } from "./prospect-client/Grid/DebugGridApollo";
42
43
  export { Heading, } from "./prospect-client/Heading/HeadingApollo";
43
44
  export { Icon, iconSizeVariants, iconVariants, } from "./prospect-client/Icon/IconApollo";
44
45
  export { ItemTabBar, } from "./prospect-client/ItemTabBar/ItemTabBarApollo";
46
+ export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
45
47
  export { Footer, } from "./prospect-client/Layout/Footer/FooterApollo";
48
+ export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
46
49
  export { LevelSelector, } from "./prospect-client/LevelSelector/LevelSelectorApollo";
47
50
  export { Link, linkVariants, } from "./prospect-client/Link/LinkApollo";
48
51
  export { ClickItem, clickItemStates, clickItemVariants, } from "./prospect-client/List/ClickItem/ClickItemApollo";
49
52
  export { ContentItemDuo } from "./prospect-client/List/ContentItemDuo/ContentItemDuoApollo";
50
53
  export { List } from "./prospect-client/List/List/ListApollo";
54
+ export { Loader, } from "./prospect-client/Loader/LoaderApollo";
51
55
  export { Message, messageVariants, } from "./prospect-client/Message/MessageApollo";
52
56
  export { MultiMessage, } from "./prospect-client/MultiMessage/MultiMessageApollo";
53
57
  export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } from "./prospect-client/Modal/ModalApollo";
58
+ export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageApollo";
59
+ export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageApollo";
54
60
  export { ItemPagination, } from "./prospect-client/Pagination/ItemPagination/ItemPaginationApollo";
55
61
  export { Pagination } from "./prospect-client/Pagination/PaginationApollo";
56
62
  export { ProgressBar } from "./prospect-client/ProgressBar/ProgressBarApollo";
@@ -61,13 +67,8 @@ export { Spinner, spinnerVariants, } from "./prospect-client/Spinner/SpinnerApol
61
67
  export { Stepper } from "./prospect-client/Stepper/StepperApollo";
62
68
  export { Svg } from "./prospect-client/Svg/Svg";
63
69
  export { TabBar, tabBarDirection, } from "./prospect-client/TabBar/TabBarApollo";
70
+ export { Table, } from "./prospect-client/Table/TableApollo";
71
+ export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
64
72
  export { Tag, tagVariants, } from "./prospect-client/Tag/TagApollo";
65
73
  export { TimelineVertical } from "./prospect-client/TimelineVertical/TimelineVerticalApollo";
66
74
  export { Toggle } from "./prospect-client/Toggle/ToggleApollo";
67
- export { Table, } from "./prospect-client/Table/TableApollo";
68
- export { TableMobileCard } from "./prospect-client/TableMobileCard/TableMobileCard";
69
- export { ExitLayout, } from "./prospect-client/Layout/ExitLayout/ExitLayoutApollo";
70
- export { FormLayout, } from "./prospect-client/Layout/FormLayout/FormLayout";
71
- export { ValidPage, } from "./prospect-client/pages/ValidPage/ValidPageApollo";
72
- export { ErrorPage, } from "./prospect-client/pages/ErrorPage/ErrorPageApollo";
73
- export { Loader, } from "./prospect-client/Loader/LoaderApollo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/canopee-react",
3
- "version": "1.7.1-alpha.24",
3
+ "version": "1.7.1-alpha.25",
4
4
  "description": "Package React - Design System Canopée",
5
5
  "exports": {
6
6
  "./distributeur": {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "homepage": "https://github.com/AxaFrance/design-system#readme",
51
51
  "peerDependencies": {
52
- "@axa-fr/canopee-css": "1.7.1-alpha.24",
52
+ "@axa-fr/canopee-css": "1.7.1-alpha.25",
53
53
  "@material-symbols/svg-400": ">= 0.19.0",
54
54
  "@material-symbols/svg-700": ">= 0.19.0",
55
55
  "react": ">= 18"