@scbt-ecom/ui 0.26.1 → 0.27.0
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.
- package/dist/shared/ui/formElements/controlled/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +11 -3
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +7 -1
- package/dist/ui.js +3467 -3444
- package/dist/ui.js.map +1 -1
- package/package.json +2 -1
|
@@ -50,6 +50,7 @@ export declare const Controlled: {
|
|
|
50
50
|
onInputChange?: (value: string) => void;
|
|
51
51
|
inputValue?: string;
|
|
52
52
|
attachmentProps?: import('../../../types').DeepPartial<import('../ui').IFieldAttachmentProps>;
|
|
53
|
+
virtual?: boolean;
|
|
53
54
|
filterDisabled?: boolean;
|
|
54
55
|
externalHandlers?: import('../uncontrolled/select/Select').ExternalHandlers;
|
|
55
56
|
} & {
|
|
@@ -44,6 +44,7 @@ export declare const Uncontrolled: {
|
|
|
44
44
|
onInputChange?: (value: string) => void;
|
|
45
45
|
inputValue?: string;
|
|
46
46
|
attachmentProps?: import('../../../types').DeepPartial<import('../ui').IFieldAttachmentProps>;
|
|
47
|
+
virtual?: boolean;
|
|
47
48
|
filterDisabled?: boolean;
|
|
48
49
|
externalHandlers?: import('./select/Select').ExternalHandlers;
|
|
49
50
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -15,7 +15,7 @@ export type ExternalHandlers = {
|
|
|
15
15
|
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
|
|
16
16
|
onInputChange?: (value: string) => void;
|
|
17
17
|
};
|
|
18
|
-
export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectItemOption, Multi, 'li'>, 'multiple' | 'onChange' | 'by' | '
|
|
18
|
+
export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectItemOption, Multi, 'li'>, 'multiple' | 'onChange' | 'by' | 'className' | 'virtual'> & {
|
|
19
19
|
/**
|
|
20
20
|
* Отображаемый лейбл
|
|
21
21
|
*/
|
|
@@ -61,7 +61,11 @@ export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectIt
|
|
|
61
61
|
*/
|
|
62
62
|
attachmentProps?: DeepPartial<FieldAttachmentProps>;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Включение виртуализации списка
|
|
65
|
+
*/
|
|
66
|
+
virtual?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Свойство для выключения фильтрации по поиску
|
|
65
69
|
*/
|
|
66
70
|
filterDisabled?: boolean;
|
|
67
71
|
/**
|
|
@@ -115,7 +119,11 @@ export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<
|
|
|
115
119
|
*/
|
|
116
120
|
attachmentProps?: DeepPartial<FieldAttachmentProps>;
|
|
117
121
|
/**
|
|
118
|
-
*
|
|
122
|
+
* Включение виртуализации списка
|
|
123
|
+
*/
|
|
124
|
+
virtual?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Свойство для выключения фильтрации по поиску
|
|
119
127
|
*/
|
|
120
128
|
filterDisabled?: boolean;
|
|
121
129
|
/**
|
|
@@ -12,5 +12,11 @@ export type SelectItemProps = Omit<ComboboxOptionProps, 'className' | 'value'> &
|
|
|
12
12
|
displayValue?: (option: SelectItemOption) => string;
|
|
13
13
|
motionProps?: React.ComponentPropsWithoutRef<typeof motion.li>;
|
|
14
14
|
};
|
|
15
|
-
export declare const SelectItem: (
|
|
15
|
+
export declare const SelectItem: import('react').ForwardRefExoticComponent<Omit<ComboboxOptionProps, "value" | "className"> & {
|
|
16
|
+
option: SelectItemOption;
|
|
17
|
+
isMulti?: boolean;
|
|
18
|
+
classes?: SelectItemClasses;
|
|
19
|
+
displayValue?: (option: SelectItemOption) => string;
|
|
20
|
+
motionProps?: React.ComponentPropsWithoutRef<typeof motion.li>;
|
|
21
|
+
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
16
22
|
export {};
|