allaw-ui 0.0.34 → 0.0.36
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/components/atoms/filter/Basefiler.css +94 -3
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/dist/app/layout.d.ts +0 -0
- package/dist/app/layout.js +0 -0
- package/dist/components/atoms/buttons/ActionCircleButton.d.ts +0 -9
- package/dist/components/atoms/buttons/ActionCircleButton.js +0 -23
- package/dist/components/atoms/buttons/AgendaSlot.d.ts +0 -10
- package/dist/components/atoms/buttons/AgendaSlot.js +0 -7
- package/dist/components/atoms/buttons/FavoriteToggle.d.ts +0 -8
- package/dist/components/atoms/buttons/FavoriteToggle.js +0 -11
- package/dist/components/atoms/buttons/FilterButton.d.ts +0 -9
- package/dist/components/atoms/buttons/FilterButton.js +0 -9
- package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +0 -9
- package/dist/components/atoms/buttons/FilterButtonPrimary.js +0 -46
- package/dist/components/atoms/buttons/GhostButton.d.ts +0 -14
- package/dist/components/atoms/buttons/GhostButton.js +0 -11
- package/dist/components/atoms/buttons/IconButton.d.ts +0 -10
- package/dist/components/atoms/buttons/IconButton.js +0 -14
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +0 -12
- package/dist/components/atoms/buttons/OAuthProviderButton.js +0 -143
- package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -10
- package/dist/components/atoms/buttons/PendingDocuments.js +0 -13
- package/dist/components/atoms/buttons/PrimaryButton.d.ts +0 -16
- package/dist/components/atoms/buttons/PrimaryButton.js +0 -11
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +0 -14
- package/dist/components/atoms/buttons/SecondaryButton.js +0 -11
- package/dist/components/atoms/buttons/TabNavigation.d.ts +0 -13
- package/dist/components/atoms/buttons/TabNavigation.js +0 -10
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +0 -10
- package/dist/components/atoms/buttons/TertiaryButton.js +0 -10
- package/dist/components/atoms/buttons/index.d.ts +0 -22
- package/dist/components/atoms/buttons/index.js +0 -11
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +0 -11
- package/dist/components/atoms/checkboxes/Checkbox.js +0 -15
- package/dist/components/atoms/checkboxes/index.d.ts +0 -2
- package/dist/components/atoms/checkboxes/index.js +0 -1
- package/dist/components/atoms/filter/Filter.d.ts +0 -23
- package/dist/components/atoms/filter/Filter.js +0 -87
- package/dist/components/atoms/filter/index.d.ts +0 -2
- package/dist/components/atoms/filter/index.js +0 -1
- package/dist/components/atoms/inputs/Input.d.ts +0 -22
- package/dist/components/atoms/inputs/Input.js +0 -86
- package/dist/components/atoms/inputs/SearchBar.d.ts +0 -12
- package/dist/components/atoms/inputs/SearchBar.js +0 -20
- package/dist/components/atoms/inputs/index.d.ts +0 -4
- package/dist/components/atoms/inputs/index.js +0 -2
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +0 -15
- package/dist/components/atoms/progressBars/ProgressBar.js +0 -17
- package/dist/components/atoms/progressBars/index.d.ts +0 -2
- package/dist/components/atoms/progressBars/index.js +0 -1
- package/dist/components/atoms/radios/RadioButton.d.ts +0 -11
- package/dist/components/atoms/radios/RadioButton.js +0 -10
- package/dist/components/atoms/radios/index.d.ts +0 -2
- package/dist/components/atoms/radios/index.js +0 -1
- package/dist/components/atoms/selects/Select.d.ts +0 -24
- package/dist/components/atoms/selects/Select.js +0 -84
- package/dist/components/atoms/selects/index.d.ts +0 -2
- package/dist/components/atoms/selects/index.js +0 -1
- package/dist/components/atoms/tags/AppointementStatusTag.d.ts +0 -8
- package/dist/components/atoms/tags/AppointementStatusTag.js +0 -41
- package/dist/components/atoms/tags/FolderStatusTag.d.ts +0 -7
- package/dist/components/atoms/tags/FolderStatusTag.js +0 -8
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +0 -10
- package/dist/components/atoms/tags/OtherStatusTag.js +0 -10
- package/dist/components/atoms/tags/index.d.ts +0 -6
- package/dist/components/atoms/tags/index.js +0 -3
- package/dist/components/atoms/typography/Heading.d.ts +0 -10
- package/dist/components/atoms/typography/Heading.js +0 -7
- package/dist/components/atoms/typography/Paragraph.d.ts +0 -11
- package/dist/components/atoms/typography/Paragraph.js +0 -24
- package/dist/components/atoms/typography/SmallTitle.d.ts +0 -9
- package/dist/components/atoms/typography/SmallTitle.js +0 -7
- package/dist/components/atoms/typography/Subtitle.d.ts +0 -9
- package/dist/components/atoms/typography/Subtitle.js +0 -7
- package/dist/components/atoms/typography/TinyInfo.d.ts +0 -12
- package/dist/components/atoms/typography/TinyInfo.js +0 -15
- package/dist/components/atoms/typography/index.d.ts +0 -10
- package/dist/components/atoms/typography/index.js +0 -5
- package/dist/components/atoms/uiVariables/BorderRadius.d.ts +0 -6
- package/dist/components/atoms/uiVariables/BorderRadius.js +0 -12
- package/dist/components/atoms/uiVariables/Shadows.d.ts +0 -6
- package/dist/components/atoms/uiVariables/Shadows.js +0 -11
- package/dist/components/atoms/uiVariables/Strokes.d.ts +0 -6
- package/dist/components/atoms/uiVariables/Strokes.js +0 -10
- package/dist/components/atoms/uiVariables/index.d.ts +0 -3
- package/dist/components/atoms/uiVariables/index.js +0 -3
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +0 -25
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +0 -109
- package/dist/components/molecules/appointmentSlot/index.d.ts +0 -2
- package/dist/components/molecules/appointmentSlot/index.js +0 -1
- package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +0 -12
- package/dist/components/molecules/breadcrumb/Breadcrumb.js +0 -12
- package/dist/components/molecules/breadcrumb/index.d.ts +0 -2
- package/dist/components/molecules/breadcrumb/index.js +0 -1
- package/dist/components/molecules/caseCard/CaseCard.d.ts +0 -14
- package/dist/components/molecules/caseCard/CaseCard.js +0 -20
- package/dist/components/molecules/caseCard/index.d.ts +0 -2
- package/dist/components/molecules/caseCard/index.js +0 -1
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +0 -15
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +0 -28
- package/dist/components/molecules/checkboxForm/index.d.ts +0 -2
- package/dist/components/molecules/checkboxForm/index.js +0 -1
- package/dist/components/molecules/contactCard/ContactCard.d.ts +0 -17
- package/dist/components/molecules/contactCard/ContactCard.js +0 -80
- package/dist/components/molecules/contactCard/index.d.ts +0 -2
- package/dist/components/molecules/contactCard/index.js +0 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +0 -14
- package/dist/components/molecules/documentCard/DocumentCard.js +0 -59
- package/dist/components/molecules/documentCard/index.d.ts +0 -2
- package/dist/components/molecules/documentCard/index.js +0 -1
- package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +0 -15
- package/dist/components/molecules/employeeCard/EmployeeCard.js +0 -34
- package/dist/components/molecules/employeeCard/index.d.ts +0 -2
- package/dist/components/molecules/employeeCard/index.js +0 -1
- package/dist/components/molecules/proCard/ProCard.d.ts +0 -13
- package/dist/components/molecules/proCard/ProCard.js +0 -25
- package/dist/components/molecules/proCard/index.d.ts +0 -2
- package/dist/components/molecules/proCard/index.js +0 -1
- package/dist/components/molecules/stepper/Stepper.d.ts +0 -27
- package/dist/components/molecules/stepper/Stepper.js +0 -68
- package/dist/components/molecules/stepper/index.d.ts +0 -2
- package/dist/components/molecules/stepper/index.js +0 -1
- package/dist/index.d.ts +0 -40
- package/dist/index.js +0 -59
- package/dist/utils/regex.d.ts +0 -5
- package/dist/utils/regex.js +0 -7
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect, useCallback } from "react";
|
|
2
|
-
import ReactDOM from "react-dom";
|
|
3
|
-
import "./Stepper.css";
|
|
4
|
-
import "../../../styles/global.css";
|
|
5
|
-
import "../../../styles/icons.css";
|
|
6
|
-
import ProgressBar from "../../atoms/progressBars/ProgressBar";
|
|
7
|
-
import PrimaryButton from "../../atoms/buttons/PrimaryButton";
|
|
8
|
-
import SecondaryButton from "../../atoms/buttons/SecondaryButton";
|
|
9
|
-
var Stepper = function (_a) {
|
|
10
|
-
var steps = _a.steps, currentStep = _a.currentStep, _b = _a.startIcon, startIcon = _b === void 0 ? [] : _b, _c = _a.endIcon, endIcon = _c === void 0 ? true : _c, children = _a.children, _d = _a.secondaryButton, secondaryButton = _d === void 0 ? [] : _d, _e = _a.primaryButton, primaryButton = _e === void 0 ? [] : _e, _f = _a.showProgressBar, showProgressBar = _f === void 0 ? [] : _f, onClose = _a.onClose, validateStep = _a.validateStep;
|
|
11
|
-
var _g = useState(currentStep), step = _g[0], setStep = _g[1];
|
|
12
|
-
var _h = useState(null), portalContainer = _h[0], setPortalContainer = _h[1];
|
|
13
|
-
useEffect(function () {
|
|
14
|
-
var container = document.createElement("div");
|
|
15
|
-
document.body.appendChild(container);
|
|
16
|
-
setPortalContainer(container);
|
|
17
|
-
return function () {
|
|
18
|
-
document.body.removeChild(container);
|
|
19
|
-
};
|
|
20
|
-
}, []);
|
|
21
|
-
useEffect(function () {
|
|
22
|
-
setStep(currentStep);
|
|
23
|
-
}, [currentStep]);
|
|
24
|
-
var handleNext = useCallback(function () {
|
|
25
|
-
// console.log("Stepper: Validating current step");
|
|
26
|
-
var currentPrimaryButton = primaryButton[step - 1];
|
|
27
|
-
if (currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.onPrimaryButtonClick) {
|
|
28
|
-
currentPrimaryButton.onPrimaryButtonClick(step);
|
|
29
|
-
}
|
|
30
|
-
if (validateStep) {
|
|
31
|
-
var isValid = validateStep(step);
|
|
32
|
-
// console.log(
|
|
33
|
-
// `Stepper: Step ${step} validation result - ${isValid ? "valid" : "invalid"}`
|
|
34
|
-
// );
|
|
35
|
-
if (!isValid) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
if (step < steps) {
|
|
40
|
-
setStep(step + 1);
|
|
41
|
-
}
|
|
42
|
-
else if (step === steps && onClose) {
|
|
43
|
-
onClose();
|
|
44
|
-
}
|
|
45
|
-
}, [step, steps, validateStep, primaryButton, onClose]);
|
|
46
|
-
var handlePrevious = useCallback(function () {
|
|
47
|
-
if (step > 1) {
|
|
48
|
-
setStep(step - 1);
|
|
49
|
-
}
|
|
50
|
-
}, [step]);
|
|
51
|
-
var currentSecondaryButton = secondaryButton[step - 1];
|
|
52
|
-
var currentPrimaryButton = primaryButton[step - 1];
|
|
53
|
-
var currentShowProgressBar = showProgressBar[step - 1] !== false;
|
|
54
|
-
var currentShowStartIcon = startIcon[step - 1];
|
|
55
|
-
var stepperContent = (React.createElement("div", { className: "stepper-overlay", onClick: onClose },
|
|
56
|
-
React.createElement("div", { className: "stepper-container", onClick: function (e) { return e.stopPropagation(); } },
|
|
57
|
-
React.createElement(ProgressBar, { steps: steps, currentStep: step, startIcon: currentShowStartIcon, endIcon: endIcon, onStartIconClick: handlePrevious, onEndIconClick: onClose, showProgressBar: currentShowProgressBar }),
|
|
58
|
-
React.createElement("div", { className: "stepper-content" }, children[step - 1]),
|
|
59
|
-
React.createElement("div", { className: "stepper-buttons ".concat(!(currentSecondaryButton === null || currentSecondaryButton === void 0 ? void 0 : currentSecondaryButton.show) && !(currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.show) ? "no-buttons" : "") },
|
|
60
|
-
(currentSecondaryButton === null || currentSecondaryButton === void 0 ? void 0 : currentSecondaryButton.show) && (React.createElement("div", { className: "stepper-button-container secondary-button-container" },
|
|
61
|
-
React.createElement(SecondaryButton, { label: currentSecondaryButton.label, startIcon: currentSecondaryButton.icon, onClick: function () { var _a; return (_a = currentSecondaryButton.onSecondaryButtonClick) === null || _a === void 0 ? void 0 : _a.call(currentSecondaryButton, step); } }))),
|
|
62
|
-
(currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.show) && (React.createElement("div", { className: "stepper-button-container primary-button-container" },
|
|
63
|
-
React.createElement(PrimaryButton, { label: currentPrimaryButton.label, onClick: handleNext })))))));
|
|
64
|
-
return portalContainer
|
|
65
|
-
? ReactDOM.createPortal(stepperContent, portalContainer)
|
|
66
|
-
: null;
|
|
67
|
-
};
|
|
68
|
-
export default Stepper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Stepper } from "./Stepper";
|
package/dist/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export { default as Button } from "./components/atoms/buttons/PrimaryButton";
|
|
2
|
-
export { default as FavoriteToggle } from "./components/atoms/buttons/FavoriteToggle";
|
|
3
|
-
export { default as FilterButton } from "./components/atoms/buttons/FilterButton";
|
|
4
|
-
export { default as GhostButton } from "./components/atoms/buttons/GhostButton";
|
|
5
|
-
export { default as IconButton } from "./components/atoms/buttons/IconButton";
|
|
6
|
-
export { default as PendingDocuments } from "./components/atoms/buttons/PendingDocuments";
|
|
7
|
-
export { default as PrimaryButton } from "./components/atoms/buttons/PrimaryButton";
|
|
8
|
-
export { default as SecondaryButton } from "./components/atoms/buttons/SecondaryButton";
|
|
9
|
-
export { default as TabNavigation } from "./components/atoms/buttons/TabNavigation";
|
|
10
|
-
export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
|
|
11
|
-
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
12
|
-
export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
|
|
13
|
-
export { default as Filter } from "./components/atoms/filter/Filter";
|
|
14
|
-
export { default as Input } from "./components/atoms/inputs/Input";
|
|
15
|
-
export type { InputProps, InputRef } from "./components/atoms/inputs/Input";
|
|
16
|
-
export { default as SearchBar } from "./components/atoms/inputs/SearchBar";
|
|
17
|
-
export { default as ProgressBar } from "./components/atoms/progressBars/ProgressBar";
|
|
18
|
-
export { default as RadioButton } from "./components/atoms/radios/RadioButton";
|
|
19
|
-
export { default as Select } from "./components/atoms/selects/Select";
|
|
20
|
-
export type { SelectItem, SelectProps, SelectRef, } from "./components/atoms/selects/Select";
|
|
21
|
-
export { default as AppointementStatusTag } from "./components/atoms/tags/AppointementStatusTag";
|
|
22
|
-
export { default as FolderStatusTag } from "./components/atoms/tags/FolderStatusTag";
|
|
23
|
-
export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTag";
|
|
24
|
-
export { default as Heading } from "./components/atoms/typography/Heading";
|
|
25
|
-
export { default as Paragraph } from "./components/atoms/typography/Paragraph";
|
|
26
|
-
export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
|
|
27
|
-
export { default as Subtitle } from "./components/atoms/typography/Subtitle";
|
|
28
|
-
export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
|
|
29
|
-
export { default as BorderRadius } from "./components/atoms/uiVariables/BorderRadius";
|
|
30
|
-
export { default as Shadows } from "./components/atoms/uiVariables/Shadows";
|
|
31
|
-
export { default as Strokes } from "./components/atoms/uiVariables/Strokes";
|
|
32
|
-
export { default as AppointmentSlot } from "./components/molecules/appointmentSlot/AppointmentSlot";
|
|
33
|
-
export { default as CaseCard } from "./components/molecules/caseCard/CaseCard";
|
|
34
|
-
export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
|
|
35
|
-
export { default as DocumentCard } from "./components/molecules/documentCard/DocumentCard";
|
|
36
|
-
export { default as EmployeeCard } from "./components/molecules/employeeCard/EmployeeCard";
|
|
37
|
-
export { default as Stepper } from "./components/molecules/stepper/Stepper";
|
|
38
|
-
export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
|
|
39
|
-
export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
|
|
40
|
-
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
package/dist/index.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Atoms
|
|
2
|
-
// Buttons
|
|
3
|
-
export { default as Button } from "./components/atoms/buttons/PrimaryButton";
|
|
4
|
-
export { default as FavoriteToggle } from "./components/atoms/buttons/FavoriteToggle";
|
|
5
|
-
export { default as FilterButton } from "./components/atoms/buttons/FilterButton";
|
|
6
|
-
export { default as GhostButton } from "./components/atoms/buttons/GhostButton";
|
|
7
|
-
export { default as IconButton } from "./components/atoms/buttons/IconButton";
|
|
8
|
-
export { default as PendingDocuments } from "./components/atoms/buttons/PendingDocuments";
|
|
9
|
-
export { default as PrimaryButton } from "./components/atoms/buttons/PrimaryButton";
|
|
10
|
-
export { default as SecondaryButton } from "./components/atoms/buttons/SecondaryButton";
|
|
11
|
-
export { default as TabNavigation } from "./components/atoms/buttons/TabNavigation";
|
|
12
|
-
export { default as TertiaryButton } from "./components/atoms/buttons/TertiaryButton";
|
|
13
|
-
export { default as OAuthProviderButton } from "./components/atoms/buttons/OAuthProviderButton";
|
|
14
|
-
// Checkboxes
|
|
15
|
-
export { default as Checkbox } from "./components/atoms/checkboxes/Checkbox";
|
|
16
|
-
// Checkboxes
|
|
17
|
-
export { default as Filter } from "./components/atoms/filter/Filter";
|
|
18
|
-
// Inputs
|
|
19
|
-
export { default as Input } from "./components/atoms/inputs/Input";
|
|
20
|
-
export { default as SearchBar } from "./components/atoms/inputs/SearchBar";
|
|
21
|
-
// Progress Bars
|
|
22
|
-
export { default as ProgressBar } from "./components/atoms/progressBars/ProgressBar";
|
|
23
|
-
// Radios
|
|
24
|
-
export { default as RadioButton } from "./components/atoms/radios/RadioButton";
|
|
25
|
-
// Selects
|
|
26
|
-
export { default as Select } from "./components/atoms/selects/Select";
|
|
27
|
-
// Tags
|
|
28
|
-
export { default as AppointementStatusTag } from "./components/atoms/tags/AppointementStatusTag";
|
|
29
|
-
export { default as FolderStatusTag } from "./components/atoms/tags/FolderStatusTag";
|
|
30
|
-
export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTag";
|
|
31
|
-
// Typography
|
|
32
|
-
export { default as Heading } from "./components/atoms/typography/Heading";
|
|
33
|
-
export { default as Paragraph } from "./components/atoms/typography/Paragraph";
|
|
34
|
-
export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
|
|
35
|
-
export { default as Subtitle } from "./components/atoms/typography/Subtitle";
|
|
36
|
-
export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
|
|
37
|
-
// UI Variables
|
|
38
|
-
export { default as BorderRadius } from "./components/atoms/uiVariables/BorderRadius";
|
|
39
|
-
export { default as Shadows } from "./components/atoms/uiVariables/Shadows";
|
|
40
|
-
export { default as Strokes } from "./components/atoms/uiVariables/Strokes";
|
|
41
|
-
// Molecules
|
|
42
|
-
// Appointment Slot
|
|
43
|
-
export { default as AppointmentSlot } from "./components/molecules/appointmentSlot/AppointmentSlot";
|
|
44
|
-
// Case Card
|
|
45
|
-
export { default as CaseCard } from "./components/molecules/caseCard/CaseCard";
|
|
46
|
-
// Contact Card
|
|
47
|
-
export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
|
|
48
|
-
// Document Card
|
|
49
|
-
export { default as DocumentCard } from "./components/molecules/documentCard/DocumentCard";
|
|
50
|
-
// Employee Card
|
|
51
|
-
export { default as EmployeeCard } from "./components/molecules/employeeCard/EmployeeCard";
|
|
52
|
-
// Stepper
|
|
53
|
-
export { default as Stepper } from "./components/molecules/stepper/Stepper";
|
|
54
|
-
// CheckboxForm
|
|
55
|
-
export { default as CheckboxForm } from "./components/molecules/checkboxForm/CheckboxForm";
|
|
56
|
-
// Breadcrumb
|
|
57
|
-
export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcrumb";
|
|
58
|
-
// ProCard
|
|
59
|
-
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
package/dist/utils/regex.d.ts
DELETED
package/dist/utils/regex.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var commonRegex = {
|
|
2
|
-
email: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
|
|
3
|
-
// Cette regex couvre les numéros de téléphone français incluant la France métropolitaine, les départements et territoires d'outre-mer (Guadeloupe, Martinique, Guyane, Réunion, Mayotte, et Nouvelle-Calédonie) en formats national et international.
|
|
4
|
-
phone: /^(?:\+33\s?[1-9](?:[\s.-]?\d{2}){4}|0[1-9](?:[\s.-]?\d{2}){4}|0[1-9]\d{8}|(?:\+590|0|0590)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+596|0|0596)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+594|0|0594)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+262|0|0262)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2}|(?:\+687)[\s.-]?\d{2}[\s.-]?\d{2}[\s.-]?\d{2})$/,
|
|
5
|
-
// Cette regex permet de valider les noms et prénoms français, incluant les accents, cédilles, traits d'union, espaces et apostrophes.
|
|
6
|
-
name: /^[A-Za-zÀ-ÖØ-öø-ÿ'\- ]+$/,
|
|
7
|
-
};
|