oziko-ui-kit 0.0.68 → 0.0.69

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.
@@ -6,7 +6,7 @@ export type TypeNumberInput = {
6
6
  description?: string;
7
7
  value?: number;
8
8
  options?: number[];
9
- onChange?: (value: number) => void;
9
+ onChange?: (value: number | undefined) => void;
10
10
  inputProps?: TypeInput;
11
11
  selectProps?: TypeFluidContainer;
12
12
  inputContainerClassName?: string;
@@ -79,6 +79,9 @@ type TypeObjectInputProps<T> = {
79
79
  type TypeSelectInputProps<T extends string | number> = {
80
80
  enum?: T[];
81
81
  } & TypeInputProps<T>;
82
+ type TypeNumberInput = {
83
+ enum?: number[];
84
+ } & TypeInputProps<number | undefined>;
82
85
  type TypeMultiSelectInputProps<T extends string | number> = {
83
86
  enum?: T[];
84
87
  } & TypeInputProps<T[]>;
@@ -100,7 +103,7 @@ type TypeChipInputProps<T> = {
100
103
  } & TypeInputProps<T>;
101
104
  export type TypeInputTypeMap = {
102
105
  string: (props: TypeSelectInputProps<string>) => ReactNode;
103
- number: (props: TypeSelectInputProps<number>) => ReactNode;
106
+ number: (props: TypeNumberInput) => ReactNode;
104
107
  textarea: (props: TypeInputProps<string>) => ReactNode;
105
108
  date: (props: TypeInputProps<Date | string | null>) => ReactNode;
106
109
  boolean: (props: TypeInputProps<boolean>) => ReactNode;