@axa-fr/canopee-react 2.0.1-alpha.14 → 2.0.1-alpha.15
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/prospect-client/Form/Dropdown/DropdownCommon.d.ts +2 -2
- package/dist/prospect-client/Form/InputDate/InputDateCommon.d.ts +2 -2
- package/dist/prospect-client/Form/InputPhone/InputPhoneCommon.d.ts +2 -2
- package/dist/prospect-client/Form/InputText/InputTextCommon.d.ts +2 -2
- package/dist/prospect-client/Stepper/StepperCommon.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
3
3
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
4
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
@@ -7,7 +7,7 @@ export type DropdownProps = ComponentPropsWithRef<"select"> & {
|
|
|
7
7
|
label?: ItemLabelProps["children"];
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
helper?:
|
|
10
|
+
helper?: ReactNode;
|
|
11
11
|
containerProps?: GridContainerProps;
|
|
12
12
|
} & Pick<ItemLabelProps, "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
|
|
13
13
|
type DropdownCommonProps = DropdownProps & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
3
3
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
4
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
@@ -8,7 +8,7 @@ export type InputDateProps = Omit<ComponentPropsWithRef<"input">, "value" | "min
|
|
|
8
8
|
value?: Date | string;
|
|
9
9
|
min?: InputDateAtomProps["min"];
|
|
10
10
|
max?: InputDateAtomProps["max"];
|
|
11
|
-
helper?:
|
|
11
|
+
helper?: ReactNode;
|
|
12
12
|
hidePicker?: boolean;
|
|
13
13
|
label: ItemLabelProps["children"];
|
|
14
14
|
containerProps?: GridContainerProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType } from "react";
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithRef, type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import type { SingleValue } from "react-select";
|
|
3
3
|
import { Icon } from "../../Icon/IconCommon";
|
|
4
4
|
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
@@ -7,7 +7,7 @@ import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelComm
|
|
|
7
7
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
8
8
|
import { type OptionType } from "./InputPhone.types";
|
|
9
9
|
export type InputPhoneProps = ComponentPropsWithRef<"input"> & {
|
|
10
|
-
helper?:
|
|
10
|
+
helper?: ReactNode;
|
|
11
11
|
defaultCountry?: string;
|
|
12
12
|
showSelect?: boolean;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type ComponentProps, type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
2
3
|
import { InputTextAtom } from "../InputTextAtom/InputTextAtomCommon";
|
|
3
4
|
import { ItemLabelCommon, type ItemLabelProps } from "../ItemLabel/ItemLabelCommon";
|
|
4
5
|
import { type ItemMessageProps } from "../ItemMessage/ItemMessage";
|
|
5
|
-
import type { GridContainerProps } from "../../utilities/types/GridContainerProps";
|
|
6
6
|
export type InputTextProps = ComponentProps<"input"> & {
|
|
7
7
|
unit?: ReactNode;
|
|
8
8
|
label?: ItemLabelProps["children"];
|
|
9
|
-
helper?:
|
|
9
|
+
helper?: ReactNode;
|
|
10
10
|
containerProps?: GridContainerProps;
|
|
11
11
|
} & Pick<ItemLabelProps, "description" | "moreButtonLabel" | "onMoreButtonClick" | "sideButtonLabel" | "onSideButtonClick"> & Pick<ItemMessageProps, "message" | "messageType">;
|
|
12
12
|
type InputTextCommonProps = InputTextProps & {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type ComponentType, type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
import { type ItemMessageProps } from "../Form/ItemMessage/ItemMessage";
|
|
3
|
-
import { type ProgressBarGroupProps } from "../ProgressBarGroup/ProgressBarGroupCommon";
|
|
4
3
|
import type { HeadingCommonProps } from "../Heading/HeadingCommon";
|
|
5
4
|
import type { HeadingLevel } from "../Heading/types";
|
|
5
|
+
import { type ProgressBarGroupProps } from "../ProgressBarGroup/ProgressBarGroupCommon";
|
|
6
6
|
export type StepperProps = {
|
|
7
7
|
currentStepProgress?: number;
|
|
8
8
|
currentStep: number;
|
|
9
9
|
currentSubtitle?: ReactNode;
|
|
10
10
|
currentTitle?: ReactNode;
|
|
11
11
|
nbSteps?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
12
|
-
helper?:
|
|
12
|
+
helper?: ReactNode;
|
|
13
13
|
icon?: string;
|
|
14
14
|
iconProps?: HeadingCommonProps["iconProps"];
|
|
15
15
|
message?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/canopee-react",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.15",
|
|
4
4
|
"description": "Package React - Design System Canopée",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@axa-fr/canopee-css": "2.0.1-alpha.
|
|
57
|
+
"@axa-fr/canopee-css": "2.0.1-alpha.15",
|
|
58
58
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
59
59
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
60
60
|
"react": ">= 19"
|