@edvisor/product-language 0.11.78 → 0.11.80
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.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Slot } from '@helpers';
|
|
3
|
+
interface IAutocompleteInputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
trigger?: string | string[];
|
|
8
|
+
options?: string[] | Record<string, string[]>;
|
|
9
|
+
requestOnlyIfNoOptions?: boolean;
|
|
10
|
+
onRequestOptions?: (trigger: string) => void;
|
|
11
|
+
matchAny?: boolean;
|
|
12
|
+
maxOptions?: number;
|
|
13
|
+
minChars?: number;
|
|
14
|
+
offsetX?: number;
|
|
15
|
+
offsetY?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
invalid?: boolean;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
labelPosition?: string;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare class IconSlot extends Slot {
|
|
27
|
+
}
|
|
28
|
+
declare class ControlsSlot extends Slot {
|
|
29
|
+
}
|
|
30
|
+
export declare type AutocompleteInputSlots = {
|
|
31
|
+
Icon: typeof IconSlot;
|
|
32
|
+
Controls: typeof ControlsSlot;
|
|
33
|
+
};
|
|
34
|
+
export declare const AutocompleteInput: React.ForwardRefExoticComponent<IAutocompleteInputProps & React.RefAttributes<HTMLTextAreaElement>> & {
|
|
35
|
+
Icon: typeof IconSlot;
|
|
36
|
+
Controls: typeof ControlsSlot;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './autocomplete-input';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edvisor/product-language",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.80",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Edvisor.io product-language components",
|
|
6
6
|
"repository": "https://github.com/edvisor-io/front-end/",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@radix-ui/react-toast": "^1.1.4",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
|
+
"react-autocomplete-input": "^1.0.31",
|
|
26
27
|
"react-compound-slider": "^3.4.0",
|
|
27
28
|
"react-multi-date-picker": "^3.3.4",
|
|
28
29
|
"react-select-v5": "npm:react-select@^5.10.2",
|