allaw-ui 2.7.1 → 2.7.2

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.
@@ -4,7 +4,7 @@
4
4
  justify-content: center;
5
5
  align-items: center;
6
6
  gap: 10px;
7
- border-radius: 12px;
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: #1985e8;
27
+ background: #14aedc;
28
28
  color: var(--pure-white, #fff);
29
29
  }
30
30
 
31
31
  .actionButtonEnabled:hover {
32
- background: #1a92ff;
32
+ background: #12a0cc;
33
33
  }
34
34
 
35
35
  .actionButtonEnabled:active {
36
- background: #1578d0;
37
- /* opacity: 0.8; */
36
+ background: #0e8ab3;
37
+ /* opacity: 0.85; */
38
38
  }
39
39
 
40
40
  .actionButtonDisabled {
@@ -28,6 +28,11 @@
28
28
  padding-left: 4px;
29
29
  }
30
30
 
31
+ /* Style pour désactiver le zoom sur mobile */
32
+ .Input-no-zoom {
33
+ font-size: 16px;
34
+ }
35
+
31
36
  /* Style default */
32
37
  .Input-default {
33
38
  display: flex;
@@ -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 _g = useState(false), isPasswordVisible = _g[0], setIsPasswordVisible = _g[1];
11
- var _h = useState(propValue || ""), value = _h[0], setValue = _h[1];
12
- var _j = useState(propError || ""), error = _j[0], setError = _j[1];
13
- var _k = useState(false), isTouched = _k[0], setIsTouched = _k[1];
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 })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",