@symply.io/basic-components 1.5.7-alpha.2 → 1.5.7-alpha.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.
@@ -26,7 +26,7 @@ function useInteractions(props) {
26
26
  var exceedError = useMemo(function () { return !!value && (Number(value) < minValue || Number(value) > maxValue); }, [value, minValue, maxValue]);
27
27
  var handleKeyboardEvent = useCallback(function (event) {
28
28
  var key = event.key, currentTarget = event.currentTarget;
29
- var val = value !== null && value !== void 0 ? value : 0;
29
+ var val = value !== null && value !== void 0 ? value : "";
30
30
  if (key === "e") {
31
31
  event.preventDefault();
32
32
  }
@@ -38,6 +38,9 @@ function useInteractions(props) {
38
38
  event.preventDefault();
39
39
  }
40
40
  }
41
+ else if (String(val) === "0" && key !== ".") {
42
+ event.preventDefault();
43
+ }
41
44
  else {
42
45
  if (key === "-") {
43
46
  event.preventDefault();
@@ -6,7 +6,7 @@ export interface TablePaginationActionsProps {
6
6
  onPageChange: (event: MouseEvent<HTMLButtonElement> | null, newPage: number) => void;
7
7
  }
8
8
  export interface TablePaginationProps extends TablePaginationActionsProps {
9
- colSpan: number;
9
+ colSpan?: number;
10
10
  rowsPerPageOptions?: Array<number>;
11
11
  onRowsPerPageChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
12
12
  primaryColor?: CSSProperties["color"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symply.io/basic-components",
3
- "version": "1.5.7-alpha.2",
3
+ "version": "1.5.7-alpha.3",
4
4
  "description": "Basic and reusable components for all frontend of Symply apps",
5
5
  "keywords": [
6
6
  "react",