oziko-ui-kit 0.0.34 → 0.0.35

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.
@@ -3,7 +3,9 @@ import { TypeFlexElement } from "../../../flex-element/FlexElement";
3
3
  export type TypeChipInput = {
4
4
  label?: string[];
5
5
  placeholder?: string;
6
- onChange?: (value: string[]) => void;
6
+ onChange: (value: string[]) => void;
7
+ value: string[];
8
+ allowDuplicateValues?: boolean;
7
9
  } & TypeFlexElement;
8
10
  declare const _default: React.NamedExoticComponent<TypeChipInput>;
9
11
  export default _default;
@@ -15,6 +15,7 @@ export type TypeProperties = {
15
15
  locationType?: string;
16
16
  className?: string;
17
17
  properties?: TypeProperties;
18
+ requires?: string;
18
19
  };
19
20
  };
20
21
  export type TypeValueType = string | number | boolean | string[] | number[] | boolean[] | TypeRepresenterValue | TypeRepresenterValue[];
@@ -44,6 +45,9 @@ export type TypeInputProps<T> = {
44
45
  className?: string;
45
46
  onChange?: ({ key, value }: TypeChangeEvent<T>) => void;
46
47
  };
48
+ export type TypeInputRepresenterError = {
49
+ [key: string]: string | null;
50
+ };
47
51
  type TypeObjectInputProps<T> = {
48
52
  key?: string;
49
53
  properties?: TypeProperties;
@@ -72,13 +76,16 @@ export type TypeInputTypeMap = {
72
76
  richtext: (props: TypeInputProps<string>) => ReactNode;
73
77
  object: (props: TypeObjectInputProps<TypeRepresenterValue>) => ReactNode;
74
78
  array: (props: TypeArrayInputProps<TypeValueType>) => ReactNode;
75
- chip: (props: TypeInputProps<string>) => ReactNode;
79
+ chip: (props: TypeInputProps<string[]>) => ReactNode;
76
80
  };
77
81
  declare const types: TypeInputTypeMap;
78
82
  type TypeUseInputRepresenter = {
79
83
  properties: TypeProperties;
80
84
  value?: TypeValueType | TypeRepresenterValue;
85
+ error?: TypeInputRepresenterError;
81
86
  onChange?: (value: any) => void;
87
+ containerClassName?: string;
88
+ errorClassName?: string;
82
89
  };
83
- declare const useInputRepresenter: ({ properties, value, onChange }: TypeUseInputRepresenter) => import("react/jsx-runtime").JSX.Element[];
90
+ declare const useInputRepresenter: ({ properties, value, error, onChange, containerClassName, errorClassName, }: TypeUseInputRepresenter) => (import("react/jsx-runtime").JSX.Element | null)[];
84
91
  export default useInputRepresenter;