allaw-ui 2.7.1 → 2.7.3
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/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
- package/dist/app/[job]/[profile]/page.d.ts +0 -0
- package/dist/app/[job]/[profile]/page.js +0 -0
- package/dist/components/atoms/buttons/ActionButton.module.css +5 -5
- package/dist/components/atoms/inputs/Input.css +5 -0
- package/dist/components/atoms/inputs/Input.d.ts +1 -0
- package/dist/components/atoms/inputs/Input.js +6 -6
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: 10px;
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 10px;
|
|
8
8
|
font-family: "Open Sans", sans-serif;
|
|
9
9
|
font-size: 14px;
|
|
10
10
|
font-style: normal;
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.actionButtonEnabled {
|
|
27
|
-
background: #
|
|
27
|
+
background: #14aedc;
|
|
28
28
|
color: var(--pure-white, #fff);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.actionButtonEnabled:hover {
|
|
32
|
-
background: #
|
|
32
|
+
background: #0fa2cf;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.actionButtonEnabled:active {
|
|
36
|
-
background: #
|
|
37
|
-
/* opacity: 0.
|
|
36
|
+
background: #0c89b4;
|
|
37
|
+
/* opacity: 0.85; */
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.actionButtonDisabled {
|
|
@@ -20,6 +20,7 @@ export interface InputProps {
|
|
|
20
20
|
onKeyDown?: any;
|
|
21
21
|
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
|
|
22
22
|
variant?: "bold" | "semiBold" | "medium";
|
|
23
|
+
disableZoom?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface InputRef {
|
|
25
26
|
validate: () => boolean;
|
|
@@ -6,11 +6,11 @@ import { commonRegex } from "../../../utils/regex";
|
|
|
6
6
|
import TinyInfo from "../typography/TinyInfo";
|
|
7
7
|
import Paragraph from "../typography/Paragraph";
|
|
8
8
|
var Input = forwardRef(function (_a, ref) {
|
|
9
|
-
var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, rowChange = _a.rowChange, placeholder = _a.placeholder, endIcon = _a.endIcon, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, _d = _a.type, type = _d === void 0 ? "text" : _d, propError = _a.error, _e = _a.color, color = _e === void 0 ? "noir" : _e, _f = _a.variant, variant = _f === void 0 ? "medium" : _f, onKeyDown = _a.onKeyDown, name = _a.name;
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
9
|
+
var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, rowChange = _a.rowChange, placeholder = _a.placeholder, endIcon = _a.endIcon, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, _d = _a.type, type = _d === void 0 ? "text" : _d, propError = _a.error, _e = _a.color, color = _e === void 0 ? "noir" : _e, _f = _a.variant, variant = _f === void 0 ? "medium" : _f, onKeyDown = _a.onKeyDown, name = _a.name, _g = _a.disableZoom, disableZoom = _g === void 0 ? false : _g;
|
|
10
|
+
var _h = useState(false), isPasswordVisible = _h[0], setIsPasswordVisible = _h[1];
|
|
11
|
+
var _j = useState(propValue || ""), value = _j[0], setValue = _j[1];
|
|
12
|
+
var _k = useState(propError || ""), error = _k[0], setError = _k[1];
|
|
13
|
+
var _l = useState(false), isTouched = _l[0], setIsTouched = _l[1];
|
|
14
14
|
var inputRef = useRef(null);
|
|
15
15
|
useEffect(function () {
|
|
16
16
|
setValue(propValue || "");
|
|
@@ -82,7 +82,7 @@ var Input = forwardRef(function (_a, ref) {
|
|
|
82
82
|
React.createElement("div", { className: "Input-wrapper" },
|
|
83
83
|
React.createElement("div", { className: "Input-container" },
|
|
84
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) {
|
|
85
|
+
React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" : type, placeholder: placeholder, className: "Input-placeholder ".concat(disableZoom ? "Input-no-zoom" : ""), value: value, onChange: function (e) {
|
|
86
86
|
handleChange(e);
|
|
87
87
|
rowChange && rowChange(e);
|
|
88
88
|
}, name: name, onKeyDown: onKeyDown, onBlur: handleBlur })),
|