@axa-fr/canopee-react 1.6.1-alpha.4 → 1.6.1-alpha.5
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/distributeur/MandatoryMention/MandatoryMention.css";
|
|
2
|
+
declare const variantTexts: {
|
|
3
|
+
readonly all: "Tous les champs sont obligatoires";
|
|
4
|
+
readonly one: "Champs obligatoires *";
|
|
5
|
+
};
|
|
6
|
+
type MandatoryVariant = keyof typeof variantTexts;
|
|
7
|
+
type MandatoryMentionProps = {
|
|
8
|
+
variant: MandatoryVariant;
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const MandatoryMention: ({ variant, id }: MandatoryMentionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/distributeur/MandatoryMention/MandatoryMention.css";
|
|
3
|
+
const variantTexts = {
|
|
4
|
+
all: "Tous les champs sont obligatoires",
|
|
5
|
+
one: "Champs obligatoires *",
|
|
6
|
+
};
|
|
7
|
+
export const MandatoryMention = ({ variant, id }) => {
|
|
8
|
+
const text = variantTexts[variant];
|
|
9
|
+
return (_jsx("p", { id: id, className: `af-mandatory af-mandatory--${variant}`, children: text }));
|
|
10
|
+
};
|
package/dist/distributeur.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export { Footer } from "./distributeur/Layout/Footer";
|
|
|
30
30
|
export { Header, HeaderTitle, Infos, MenuTitleWrapper, Name, NavBar, NavBarBase, NavBarItem, NavBarItemBase, NavBarItemLink, ToggleButton, User, type AnchorNavBarItem, } from "./distributeur/Layout/Header";
|
|
31
31
|
export { MainContainer } from "./distributeur/Layout/MainContainer/MainContainer";
|
|
32
32
|
export { Link, type LinkProps } from "./distributeur/Link/Link";
|
|
33
|
+
export { MandatoryMention } from "./distributeur/MandatoryMention/MandatoryMention";
|
|
33
34
|
export { BooleanModal, Modal, ModalBody, ModalFooter, ModalHeader, ModalHeaderBase, } from "./distributeur/ModalAgent";
|
|
34
35
|
export { ArticleRestitution, HeaderRestitution, Restitution, RestitutionList, SectionRestitution, SectionRestitutionColumn, SectionRestitutionRow, SectionRestitutionTitle, } from "./distributeur/Restitution";
|
|
35
36
|
export { Step, StepBase, Steps, VerticalStep, type StepLinkOnClickHandler, type StepMode, } from "./distributeur/Steps";
|
package/dist/distributeur.js
CHANGED
|
@@ -29,6 +29,7 @@ export { Footer } from "./distributeur/Layout/Footer";
|
|
|
29
29
|
export { Header, HeaderTitle, Infos, MenuTitleWrapper, Name, NavBar, NavBarBase, NavBarItem, NavBarItemBase, NavBarItemLink, ToggleButton, User, } from "./distributeur/Layout/Header";
|
|
30
30
|
export { MainContainer } from "./distributeur/Layout/MainContainer/MainContainer";
|
|
31
31
|
export { Link } from "./distributeur/Link/Link";
|
|
32
|
+
export { MandatoryMention } from "./distributeur/MandatoryMention/MandatoryMention";
|
|
32
33
|
export { BooleanModal, Modal, ModalBody, ModalFooter, ModalHeader, ModalHeaderBase, } from "./distributeur/ModalAgent";
|
|
33
34
|
export { ArticleRestitution, HeaderRestitution, Restitution, RestitutionList, SectionRestitution, SectionRestitutionColumn, SectionRestitutionRow, SectionRestitutionTitle, } from "./distributeur/Restitution";
|
|
34
35
|
export { Step, StepBase, Steps, VerticalStep, } from "./distributeur/Steps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/canopee-react",
|
|
3
|
-
"version": "1.6.1-alpha.
|
|
3
|
+
"version": "1.6.1-alpha.5",
|
|
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.6.1-alpha.
|
|
52
|
+
"@axa-fr/canopee-css": "1.6.1-alpha.5",
|
|
53
53
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
54
54
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
55
55
|
"react": ">= 18"
|