oziko-ui-kit 0.0.65 → 0.0.67
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { TypeBaseInputProps } from "../base-input/BaseInput";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
+
import { TypeRelationSelect } from "./relation-select/RelationSelect";
|
|
3
4
|
import { TypeFluidContainer } from "../fluid-container/FluidContainer";
|
|
4
5
|
import { TypeLabeledValue } from "../../../index.export";
|
|
5
6
|
export type RelationType = "onetoone" | "onetomany";
|
|
@@ -8,13 +9,14 @@ export type TypeRelationInput<T = TypeLabeledValue> = {
|
|
|
8
9
|
description?: string;
|
|
9
10
|
value?: T | T[];
|
|
10
11
|
onChange?: (value: T[]) => void;
|
|
11
|
-
selectProps?: TypeFluidContainer;
|
|
12
|
+
selectProps?: TypeRelationSelect & TypeFluidContainer;
|
|
12
13
|
inputContainerClassName?: string;
|
|
13
14
|
getOptions: () => Promise<TypeLabeledValue[]>;
|
|
14
15
|
loadMoreOptions: () => Promise<TypeLabeledValue[]>;
|
|
15
16
|
searchOptions: (value: string) => Promise<TypeLabeledValue[]>;
|
|
16
17
|
totalOptionsLength: number;
|
|
17
18
|
multiple?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
externalDropdownRef?: React.RefObject<HTMLDivElement>;
|
|
20
|
+
} & Omit<TypeBaseInputProps, "children">;
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(<T extends TypeLabeledValue>({ label, description, value, onChange, selectProps, inputContainerClassName, getOptions, loadMoreOptions, searchOptions, totalOptionsLength, multiple, externalDropdownRef, ...props }: TypeRelationInput<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
20
22
|
export default _default;
|