@scbt-ecom/ui 0.26.0 → 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.
@@ -31,4 +31,5 @@ export declare const defaultClassNames: {
31
31
  selected: string;
32
32
  range_outer: string;
33
33
  range_middle: string;
34
+ day: string;
34
35
  };
@@ -40,7 +40,7 @@ export declare const Controlled: {
40
40
  }) => import("react/jsx-runtime").JSX.Element;
41
41
  SelectControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, helperText, size, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('@headlessui/react').ComboboxProps<import('..').SelectItemOption, boolean, "li">, "onChange" | "className" | "multiple" | "by" | "virtual"> & {
42
42
  label: string;
43
- isMulti: boolean;
43
+ isMulti?: boolean | undefined;
44
44
  invalid?: boolean;
45
45
  isSearchable?: boolean;
46
46
  options: import('..').SelectItemOption[];
@@ -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
  } & {
@@ -34,7 +34,7 @@ export declare const Uncontrolled: {
34
34
  } & import('react').RefAttributes<HTMLInputElement>>;
35
35
  SelectBase: import('react').ForwardRefExoticComponent<Omit<import('@headlessui/react').ComboboxProps<import('./select').SelectItemOption, boolean, "li">, "onChange" | "className" | "multiple" | "by" | "virtual"> & {
36
36
  label: string;
37
- isMulti: boolean;
37
+ isMulti?: boolean | undefined;
38
38
  invalid?: boolean;
39
39
  isSearchable?: boolean;
40
40
  options: import('./select').SelectItemOption[];
@@ -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' | 'virtual' | 'className'> & {
18
+ export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectItemOption, Multi, 'li'>, 'multiple' | 'onChange' | 'by' | 'className' | 'virtual'> & {
19
19
  /**
20
20
  * Отображаемый лейбл
21
21
  */
@@ -23,7 +23,7 @@ export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectIt
23
23
  /**
24
24
  * Поддержка множественного выбора
25
25
  */
26
- isMulti: Multi;
26
+ isMulti?: Multi;
27
27
  /**
28
28
  * Пометить поле как не валидное
29
29
  */
@@ -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
  /**
@@ -77,7 +81,7 @@ export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<
77
81
  /**
78
82
  * Поддержка множественного выбора
79
83
  */
80
- isMulti: boolean;
84
+ isMulti?: boolean | undefined;
81
85
  /**
82
86
  * Пометить поле как не валидное
83
87
  */
@@ -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: ({ option, classes, displayValue, isMulti, motionProps, ...props }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
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 {};