@axa-fr/design-system-look-and-feel-react 1.0.3-alpha.230 → 1.0.3-alpha.238
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/Form/Date/Date.d.ts +1 -0
- package/dist/Form/Date/Date.js +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/ProgressBar/ProgressBar.js +1 -0
- package/dist/ProgressBarGroup/ProgressBarGroup.d.ts +1 -0
- package/dist/ProgressBarGroup/ProgressBarGroup.js +1 -0
- package/dist/Stepper/Stepper.d.ts +1 -12
- package/dist/Stepper/Stepper.js +1 -22
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/package.json +3 -3
@@ -0,0 +1 @@
|
|
1
|
+
export { DateInput } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DateInput } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ProgressBar } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ProgressBar } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ProgressBarGroup } from "@axa-fr/design-system-apollo-react/lf";
|
@@ -1,12 +1 @@
|
|
1
|
-
|
2
|
-
import { HTMLAttributes } from "react";
|
3
|
-
export type StepperProps = {
|
4
|
-
currentStepProgress?: number;
|
5
|
-
currentStep: number;
|
6
|
-
currentSubtitle?: string;
|
7
|
-
currentTitle?: string;
|
8
|
-
nbSteps: 2 | 3 | 4 | 5 | 6;
|
9
|
-
isTitleVisible?: boolean;
|
10
|
-
isSubtitleVisible?: boolean;
|
11
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "role">;
|
12
|
-
export declare const Stepper: ({ currentStepProgress, currentTitle, nbSteps, currentStep, currentSubtitle, isTitleVisible, isSubtitleVisible, className, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
1
|
+
export { Stepper } from "@axa-fr/design-system-apollo-react/lf";
|
package/dist/Stepper/Stepper.js
CHANGED
@@ -1,22 +1 @@
|
|
1
|
-
|
2
|
-
import "@axa-fr/design-system-look-and-feel-css/dist/Stepper/Stepper.scss";
|
3
|
-
import classNames from "classnames";
|
4
|
-
import { useCallback, useId } from "react";
|
5
|
-
const INITIAL_STEPPER_PROGRESS = 10;
|
6
|
-
const MAX_STEPPER_PROGRESS = 100;
|
7
|
-
export const Stepper = ({ currentStepProgress = INITIAL_STEPPER_PROGRESS, currentTitle, nbSteps, currentStep, currentSubtitle, isTitleVisible = true, isSubtitleVisible = true, className, ...props }) => {
|
8
|
-
const stepperId = useId();
|
9
|
-
const getCurrentProgress = useCallback((index) => {
|
10
|
-
if (index < currentStep) {
|
11
|
-
return MAX_STEPPER_PROGRESS;
|
12
|
-
}
|
13
|
-
if (index === currentStep) {
|
14
|
-
if (currentStepProgress === 0) {
|
15
|
-
return INITIAL_STEPPER_PROGRESS;
|
16
|
-
}
|
17
|
-
return currentStepProgress;
|
18
|
-
}
|
19
|
-
return 0;
|
20
|
-
}, [currentStep, currentStepProgress]);
|
21
|
-
return (_jsxs("div", { className: "af-stepper-client", ...props, children: [_jsxs("div", { children: [isTitleVisible && currentTitle && (_jsx("h2", { className: "af-stepper-client__title", "aria-describedby": stepperId, children: currentTitle })), isSubtitleVisible && currentSubtitle && (_jsx("p", { className: "af-stepper-client__subtitle", children: currentSubtitle }))] }), _jsx("div", { id: stepperId, role: "group", "aria-label": currentTitle, className: classNames("af-stepper-client__content", className), children: [...Array(nbSteps).keys()].map((index) => (_jsx("div", { className: "af-stepper-client__progressbar", "aria-current": index === currentStep, "aria-hidden": index !== currentStep, "aria-label": `${getCurrentProgress(index)}%`, children: _jsx("div", { className: "af-stepper-client__progress", style: { width: `${getCurrentProgress(index)}%` } }) }, `${stepperId}-${index}`))) })] }));
|
22
|
-
};
|
1
|
+
export { Stepper } from "@axa-fr/design-system-apollo-react/lf";
|
package/dist/index.d.ts
CHANGED
@@ -17,6 +17,7 @@ export { Radio, RadioSelect } from "./Form/Radio";
|
|
17
17
|
export { Select } from "./Form/Select/Select";
|
18
18
|
export { TextInput } from "./Form/Text/Text";
|
19
19
|
export { TextArea } from "./Form/TextArea/TextArea";
|
20
|
+
export { DateInput } from "./Form/Date/Date";
|
20
21
|
export { DebugGrid } from "./Grid/DebugGrid";
|
21
22
|
export { IconBg } from "./IconBg";
|
22
23
|
export { Footer } from "./Layout/Footer/Footer";
|
@@ -33,7 +34,6 @@ export type { ModalCoreBodyProps, ModalCoreFooterProps, ModalCoreHeaderProps, Mo
|
|
33
34
|
export { Pagination } from "./Pagination/Pagination";
|
34
35
|
export { Skeleton } from "./Skeleton/Skeleton";
|
35
36
|
export { SkeletonList } from "./SkeletonList/SkeletonList";
|
36
|
-
export { Stepper } from "./Stepper/Stepper";
|
37
37
|
export { Svg } from "./Svg";
|
38
38
|
export { TabsClient as Tabs, Direction as TabsDirection } from "./Tabs/Tabs";
|
39
39
|
export { Tag, tagVariants, type TagVariants } from "./Tag";
|
@@ -42,3 +42,6 @@ export { ClickIcon } from "./ClickIcon/ClickIcon";
|
|
42
42
|
export { Icon, iconVariants, type IconVariants, iconSizeVariants, type IconSizeVariants, } from "./Icon/Icon";
|
43
43
|
export { Toggle } from "./Toggle";
|
44
44
|
export { BasePicture } from "./BasePicture/BasePicture";
|
45
|
+
export { ProgressBar } from "./ProgressBar/ProgressBar";
|
46
|
+
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroup";
|
47
|
+
export { Stepper } from "./Stepper/Stepper";
|
package/dist/index.js
CHANGED
@@ -16,6 +16,7 @@ export { Radio, RadioSelect } from "./Form/Radio";
|
|
16
16
|
export { Select } from "./Form/Select/Select";
|
17
17
|
export { TextInput } from "./Form/Text/Text";
|
18
18
|
export { TextArea } from "./Form/TextArea/TextArea";
|
19
|
+
export { DateInput } from "./Form/Date/Date";
|
19
20
|
export { DebugGrid } from "./Grid/DebugGrid";
|
20
21
|
export { IconBg } from "./IconBg";
|
21
22
|
export { Footer } from "./Layout/Footer/Footer";
|
@@ -31,7 +32,6 @@ export { Modal, ModalCore, ModalCoreBody, ModalCoreFooter, ModalCoreHeader, } fr
|
|
31
32
|
export { Pagination } from "./Pagination/Pagination";
|
32
33
|
export { Skeleton } from "./Skeleton/Skeleton";
|
33
34
|
export { SkeletonList } from "./SkeletonList/SkeletonList";
|
34
|
-
export { Stepper } from "./Stepper/Stepper";
|
35
35
|
export { Svg } from "./Svg";
|
36
36
|
export { TabsClient as Tabs, Direction as TabsDirection } from "./Tabs/Tabs";
|
37
37
|
export { Tag, tagVariants } from "./Tag";
|
@@ -40,3 +40,6 @@ export { ClickIcon } from "./ClickIcon/ClickIcon";
|
|
40
40
|
export { Icon, iconVariants, iconSizeVariants, } from "./Icon/Icon";
|
41
41
|
export { Toggle } from "./Toggle";
|
42
42
|
export { BasePicture } from "./BasePicture/BasePicture";
|
43
|
+
export { ProgressBar } from "./ProgressBar/ProgressBar";
|
44
|
+
export { ProgressBarGroup } from "./ProgressBarGroup/ProgressBarGroup";
|
45
|
+
export { Stepper } from "./Stepper/Stepper";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@axa-fr/design-system-look-and-feel-react",
|
3
|
-
"version": "1.0.3-alpha.
|
3
|
+
"version": "1.0.3-alpha.238",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -47,10 +47,10 @@
|
|
47
47
|
},
|
48
48
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
49
49
|
"peerDependencies": {
|
50
|
-
"@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.
|
50
|
+
"@axa-fr/design-system-look-and-feel-css": "1.0.3-alpha.238",
|
51
51
|
"@material-symbols/svg-400": ">= 0.19.0",
|
52
52
|
"react": ">= 18",
|
53
|
-
"@axa-fr/design-system-apollo-react": "1.0.3-alpha.
|
53
|
+
"@axa-fr/design-system-apollo-react": "1.0.3-alpha.238"
|
54
54
|
},
|
55
55
|
"peerDependenciesMeta": {
|
56
56
|
"@material-symbols/svg-400": {
|