allaw-ui 2.5.6 → 2.5.8
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.
|
@@ -38,12 +38,18 @@
|
|
|
38
38
|
gap: 11px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.Input-default .Input-wrapper {
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
.Input-default .Input-container {
|
|
42
48
|
display: flex;
|
|
43
49
|
width: 100%;
|
|
44
|
-
flex-direction:
|
|
45
|
-
justify-content:
|
|
46
|
-
align-items:
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
align-items: center;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
.Input-default .Input-input {
|
|
@@ -82,6 +88,12 @@
|
|
|
82
88
|
gap: 11px;
|
|
83
89
|
}
|
|
84
90
|
|
|
91
|
+
.Input-variation .Input-wrapper {
|
|
92
|
+
width: 100%;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
}
|
|
96
|
+
|
|
85
97
|
.Input-variation .Input-container {
|
|
86
98
|
display: flex;
|
|
87
99
|
width: 100%;
|
|
@@ -152,6 +164,12 @@
|
|
|
152
164
|
gap: 11px;
|
|
153
165
|
}
|
|
154
166
|
|
|
167
|
+
.Input-password .Input-wrapper {
|
|
168
|
+
width: 100%;
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
}
|
|
172
|
+
|
|
155
173
|
.Input-password .Input-container {
|
|
156
174
|
display: flex;
|
|
157
175
|
width: 100%;
|
|
@@ -204,5 +222,6 @@
|
|
|
204
222
|
|
|
205
223
|
.error-message {
|
|
206
224
|
padding-top: 4px;
|
|
207
|
-
padding-left:
|
|
225
|
+
padding-left: 4px;
|
|
226
|
+
width: 100%;
|
|
208
227
|
}
|
|
@@ -79,13 +79,14 @@ var Input = forwardRef(function (_a, ref) {
|
|
|
79
79
|
isRequired && title && (React.createElement("span", { className: "Input-required" },
|
|
80
80
|
"\u00A0",
|
|
81
81
|
"*"))),
|
|
82
|
-
React.createElement("div", { className: "Input-
|
|
83
|
-
React.createElement("div", { className: "Input-
|
|
84
|
-
React.createElement("
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
React.createElement("div", { className: "Input-wrapper" },
|
|
83
|
+
React.createElement("div", { className: "Input-container" },
|
|
84
|
+
React.createElement("div", { className: "Input-input" },
|
|
85
|
+
React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" : type, placeholder: placeholder, className: "Input-placeholder", value: value, onChange: function (e) {
|
|
86
|
+
handleChange(e);
|
|
87
|
+
rowChange && rowChange(e);
|
|
88
|
+
}, onBlur: handleBlur })),
|
|
89
|
+
renderEndIcon()),
|
|
89
90
|
error && isTouched && (React.createElement("div", { className: "error-message" },
|
|
90
91
|
React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))))));
|
|
91
92
|
});
|
|
@@ -99,3 +99,12 @@ WithValidation.args = {
|
|
|
99
99
|
isRequired: true,
|
|
100
100
|
validate: "email",
|
|
101
101
|
};
|
|
102
|
+
export var PasswordWithError = Template.bind({});
|
|
103
|
+
PasswordWithError.args = {
|
|
104
|
+
name: "passwordInputError",
|
|
105
|
+
title: "Mot de passe",
|
|
106
|
+
placeholder: "Entrez votre mot de passe",
|
|
107
|
+
style: "password",
|
|
108
|
+
isRequired: true,
|
|
109
|
+
error: "Le mot de passe doit contenir au moins 8 caractères",
|
|
110
|
+
};
|