kelt-ui-kit-react 1.7.4 → 1.7.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kelt-ui-kit-react",
3
3
  "type": "module",
4
- "version": "1.7.4",
4
+ "version": "1.7.5",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -21,6 +21,7 @@ export function DataTableColumn<T>({
21
21
  textAlign: column.align ?? "left",
22
22
  alignContent: column.children ? "center" : "flex-end",
23
23
  }}
24
+ className={column.children ? "has-children" : ""}
24
25
  colSpan={column.children?.length ?? 1}
25
26
  rowSpan={!column.children?.length && hasNestedColumns ? 2 : 1}
26
27
  onClick={() => onColumnClick?.(column)}
@@ -17,6 +17,7 @@ export interface InputProps {
17
17
  required?: boolean;
18
18
  minLength?: number;
19
19
  maxLength?: number;
20
+ width?: string;
20
21
  autoComplete?: string;
21
22
  step?: string;
22
23
  tabIndex?: number;
@@ -34,6 +35,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
34
35
  name,
35
36
  type = TypeInputEnum.TEXT,
36
37
  value,
38
+ width,
37
39
  onInvalid,
38
40
  placeholder,
39
41
  className,
@@ -52,13 +54,16 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
52
54
  onClick,
53
55
  handleKeyDown,
54
56
  },
55
- ref
57
+ ref,
56
58
  ) => {
57
59
  // Si le type est password, on utilise l'input de type password
58
60
  const [showPassword, setShowPassword] = useState(false);
59
61
 
60
62
  return (
61
- <div className={`input-container ${`input-container-${type}`} `}>
63
+ <div
64
+ className={`input-container ${`input-container-${type}`} `}
65
+ style={{ width }}
66
+ >
62
67
  <input name={`hide-${name}`} type="text" style={{ display: "none" }} />
63
68
 
64
69
  <input
@@ -100,7 +105,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
100
105
  )}
101
106
  </div>
102
107
  );
103
- }
108
+ },
104
109
  );
105
110
 
106
111
  Input.displayName = "Input";