@axa-fr/canopee-react 1.1.1-alpha.2 → 1.1.1-alpha.7

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.
@@ -7,44 +7,15 @@ type BaseCardRadioOptionProps = Omit<ComponentProps<typeof Radio>, "size"> & {
7
7
  description?: ReactNode;
8
8
  subtitle?: ReactNode;
9
9
  };
10
- export type CardRadioOptionProps = (BaseCardRadioOptionProps & {
10
+ export type CardRadioOptionProps = BaseCardRadioOptionProps & {
11
11
  type?: "vertical" | "horizontal";
12
12
  icon?: ComponentProps<typeof IconCommon>["src"];
13
- src?: undefined;
14
- basePictureProps?: undefined;
15
- }) | (BaseCardRadioOptionProps & {
16
- type: "horizontal";
17
13
  src?: ComponentProps<typeof BasePicture>["src"];
18
14
  basePictureProps?: Omit<ComponentProps<typeof BasePicture>, "src">;
19
- icon?: undefined;
20
- });
15
+ };
21
16
  export type CardRadioOptionCommonProps = CardRadioOptionProps & {
22
17
  RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
23
18
  IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
24
19
  };
25
- export declare const CardRadioOptionCommon: import("react").ForwardRefExoticComponent<(Omit<Omit<Omit<import("../Radio/RadioCommon").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "size"> & {
26
- label: ReactNode;
27
- description?: ReactNode;
28
- subtitle?: ReactNode;
29
- } & {
30
- type?: "vertical" | "horizontal";
31
- icon?: ComponentProps<typeof IconCommon>["src"];
32
- src?: undefined;
33
- basePictureProps?: undefined;
34
- } & {
35
- RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
36
- IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
37
- }, "ref"> | Omit<Omit<Omit<import("../Radio/RadioCommon").RadioProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "size"> & {
38
- label: ReactNode;
39
- description?: ReactNode;
40
- subtitle?: ReactNode;
41
- } & {
42
- type: "horizontal";
43
- src?: ComponentProps<typeof BasePicture>["src"];
44
- basePictureProps?: Omit<ComponentProps<typeof BasePicture>, "src">;
45
- icon?: undefined;
46
- } & {
47
- RadioComponent: ComponentType<ComponentProps<typeof Radio>>;
48
- IconComponent: ComponentType<ComponentProps<typeof IconCommon>>;
49
- }, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
20
+ export declare const CardRadioOptionCommon: import("react").ForwardRefExoticComponent<Omit<CardRadioOptionCommonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
50
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/canopee-react",
3
- "version": "1.1.1-alpha.2",
3
+ "version": "1.1.1-alpha.7",
4
4
  "description": "Package React - Design System Canopée",
5
5
  "exports": {
6
6
  "./distributeur": {
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "homepage": "https://github.com/AxaFrance/design-system#readme",
46
46
  "peerDependencies": {
47
- "@axa-fr/canopee-css": "1.1.1-alpha.2",
47
+ "@axa-fr/canopee-css": "1.1.1-alpha.7",
48
48
  "@material-symbols/svg-400": ">= 0.19.0",
49
49
  "@material-symbols/svg-700": ">= 0.19.0",
50
50
  "react": ">= 18"