allaw-ui 2.5.9 → 2.6.1

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.
@@ -16,6 +16,8 @@ export interface InputProps {
16
16
  value?: string;
17
17
  error?: string;
18
18
  type?: string;
19
+ name?: string;
20
+ onKeyDown?: any;
19
21
  color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
20
22
  variant?: "bold" | "semiBold" | "medium";
21
23
  }
@@ -6,7 +6,7 @@ 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;
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
10
  var _g = useState(false), isPasswordVisible = _g[0], setIsPasswordVisible = _g[1];
11
11
  var _h = useState(propValue || ""), value = _h[0], setValue = _h[1];
12
12
  var _j = useState(propError || ""), error = _j[0], setError = _j[1];
@@ -85,7 +85,7 @@ var Input = forwardRef(function (_a, ref) {
85
85
  React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" : type, placeholder: placeholder, className: "Input-placeholder", value: value, onChange: function (e) {
86
86
  handleChange(e);
87
87
  rowChange && rowChange(e);
88
- }, onBlur: handleBlur })),
88
+ }, name: name, onKeyDown: onKeyDown, onBlur: handleBlur })),
89
89
  renderEndIcon()),
90
90
  error && isTouched && (React.createElement("div", { className: "error-message" },
91
91
  React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))))));
@@ -112,7 +112,7 @@
112
112
 
113
113
  @media (max-width: 800px) {
114
114
  .stepper-container {
115
- height: 99dvh;
115
+ height: 83dvh;
116
116
  position: fixed;
117
117
  bottom: 0;
118
118
  justify-content: flex-start;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "2.5.9",
3
+ "version": "2.6.1",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",