@salutejs/plasma-web 1.584.0-canary.2006.15341327171.0 → 1.584.0-canary.2006.15550430455.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/components/Accordion/Accordion.d.ts +9 -10
- package/components/Attach/Attach.d.ts +158 -159
- package/components/Autocomplete/Autocomplete.d.ts +344 -345
- package/components/Avatar/Avatar.d.ts +46 -47
- package/components/AvatarGroup/AvatarGroup.d.ts +1 -2
- package/components/Badge/Badge.d.ts +40 -41
- package/components/Breadcrumbs/Breadcrumbs.d.ts +3 -4
- package/components/Button/Button.d.ts +35 -36
- package/components/ButtonGroup/ButtonGroup.d.ts +0 -4
- package/components/Carousel/Carousel.d.ts +2 -3
- package/components/Cell/Cell.d.ts +19 -20
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Chip/Chip.d.ts +0 -1
- package/components/ChipGroup/ChipGroup.d.ts +0 -1
- package/components/CodeField/CodeField.d.ts +18 -19
- package/components/Combobox/Combobox.config.js +8 -8
- package/components/Combobox/Combobox.d.ts +977 -953
- package/components/Combobox/Legacy/Combobox.d.ts +36 -37
- package/components/Counter/Counter.d.ts +0 -1
- package/components/DatePicker/DatePicker.d.ts +52 -54
- package/components/Divider/Divider.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +18 -19
- package/components/Dropdown/Dropdown.d.ts +52 -52
- package/components/Dropdown/components/DropdownItem.d.ts +14 -14
- package/components/Dropzone/Dropzone.d.ts +15 -16
- package/components/Editable/Editable.d.ts +0 -1
- package/components/EmptyState/EmptyState.d.ts +0 -1
- package/components/Flow/Flow.d.ts +1 -2
- package/components/Grid/Grid.d.ts +0 -1
- package/components/IconButton/IconButton.d.ts +35 -36
- package/components/Image/Image.d.ts +3 -4
- package/components/Indicator/Indicator.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -1
- package/components/LinkButton/LinkButton.d.ts +8 -9
- package/components/List/List.d.ts +4 -5
- package/components/Mask/Mask.d.ts +224 -225
- package/components/Note/Note.d.ts +11 -12
- package/components/NumberFormat/NumberFormat.d.ts +1 -1
- package/components/NumberInput/NumberInput.d.ts +38 -39
- package/components/Pagination/Pagination.d.ts +0 -1
- package/components/Popover/Popover.d.ts +0 -1
- package/components/Price/Price.d.ts +0 -1
- package/components/Progress/Progress.d.ts +0 -1
- package/components/Radiobox/Radiobox.d.ts +1 -1
- package/components/Range/Range.d.ts +105 -106
- package/components/Rating/Rating.d.ts +13 -14
- package/components/Segment/Segment.d.ts +8 -9
- package/components/Select/Select.config.js +14 -14
- package/components/Select/Select.d.ts +247 -244
- package/components/Sheet/Sheet.d.ts +0 -1
- package/components/Skeleton/Skeleton.d.ts +4 -5
- package/components/Slider/Slider.d.ts +96 -105
- package/components/Steps/Steps.d.ts +0 -1
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Table/Table.config.js +3 -3
- package/components/Table/Table.d.ts +0 -1
- package/components/Tabs/TabItem.d.ts +14 -14
- package/components/Tabs/Tabs.d.ts +5 -7
- package/components/TextArea/TextArea.config.js +4 -4
- package/components/TextArea/TextArea.d.ts +205 -206
- package/components/TextArea/index.d.ts +4 -4
- package/components/TextField/TextField.d.ts +261 -269
- package/components/TextFieldGroup/TextFieldGroup.d.ts +12 -13
- package/components/Toast/Toast.d.ts +0 -1
- package/components/Tokens/Colors/Colors.styles.d.ts +25 -26
- package/components/Tokens/Typography/Typography.styles.d.ts +23 -24
- package/components/Toolbar/Toolbar.d.ts +5 -6
- package/components/Tree/Tree.d.ts +0 -1
- package/components/Typography/Old/index.d.ts +36 -37
- package/components/Typography/Typography.d.ts +204 -205
- package/css/cjs/components/Combobox/Combobox.config.js +1 -1
- package/css/cjs/components/Combobox/Combobox.config.js.map +1 -1
- package/css/cjs/components/Combobox/{Combobox.config_i068pn.css → Combobox.config_16vxdhl.css} +8 -8
- package/css/cjs/components/Combobox/Combobox.css +14 -14
- package/css/cjs/components/Select/Select.config.js +1 -1
- package/css/cjs/components/Select/Select.config.js.map +1 -1
- package/css/{es/components/Select/Select.config_1kk8sph.css → cjs/components/Select/Select.config_14aqv25.css} +14 -14
- package/css/cjs/components/Select/Select.css +23 -23
- package/css/cjs/components/Table/Table.config.js +1 -1
- package/css/cjs/components/Table/Table.config.js.map +1 -1
- package/css/cjs/components/Table/Table.config_11seey5.css +5 -0
- package/css/cjs/components/Table/Table.css +5 -5
- package/css/cjs/components/TextArea/TextArea.config.js +1 -1
- package/css/cjs/components/TextArea/TextArea.config.js.map +1 -1
- package/css/{es/components/TextArea/TextArea.config_si8t6e.css → cjs/components/TextArea/TextArea.config_ww37fs.css} +4 -4
- package/css/cjs/components/TextArea/TextArea.css +14 -14
- package/css/cjs/index.css +59 -59
- package/css/es/components/Combobox/Combobox.config.js +1 -1
- package/css/es/components/Combobox/Combobox.config.js.map +1 -1
- package/css/es/components/Combobox/{Combobox.config_i068pn.css → Combobox.config_16vxdhl.css} +8 -8
- package/css/es/components/Combobox/Combobox.css +14 -14
- package/css/es/components/Select/Select.config.js +1 -1
- package/css/es/components/Select/Select.config.js.map +1 -1
- package/css/{cjs/components/Select/Select.config_1kk8sph.css → es/components/Select/Select.config_14aqv25.css} +14 -14
- package/css/es/components/Select/Select.css +23 -23
- package/css/es/components/Table/Table.config.js +1 -1
- package/css/es/components/Table/Table.config.js.map +1 -1
- package/css/es/components/Table/Table.config_11seey5.css +5 -0
- package/css/es/components/Table/Table.css +5 -5
- package/css/es/components/TextArea/TextArea.config.js +1 -1
- package/css/es/components/TextArea/TextArea.config.js.map +1 -1
- package/css/{cjs/components/TextArea/TextArea.config_si8t6e.css → es/components/TextArea/TextArea.config_ww37fs.css} +4 -4
- package/css/es/components/TextArea/TextArea.css +14 -14
- package/css/es/index.css +59 -59
- package/es/components/Combobox/Combobox.config.js +8 -8
- package/es/components/Select/Select.config.js +14 -14
- package/es/components/Table/Table.config.js +3 -3
- package/es/components/TextArea/TextArea.config.js +4 -4
- package/mixins/index.d.ts +1 -2
- package/package.json +11 -11
- package/css/cjs/components/Table/Table.config_lk2ssy.css +0 -5
- package/css/es/components/Table/Table.config_lk2ssy.css +0 -5
@@ -35,1282 +35,1306 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
35
35
|
};
|
36
36
|
}> & (({
|
37
37
|
items: ComboboxItemOption[];
|
38
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
39
|
-
placeholder?: string
|
40
|
-
helperText?: string
|
41
|
-
contentLeft?: React.ReactElement
|
42
|
-
textBefore?: string
|
43
|
-
textAfter?: string
|
44
|
-
variant?: "normal" | "tight"
|
45
|
-
zIndex?:
|
46
|
-
listOverflow?:
|
47
|
-
listMaxHeight?:
|
48
|
-
listWidth?:
|
49
|
-
portal?: string | React.RefObject<HTMLElement
|
38
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
39
|
+
placeholder?: string;
|
40
|
+
helperText?: string;
|
41
|
+
contentLeft?: React.ReactElement;
|
42
|
+
textBefore?: string;
|
43
|
+
textAfter?: string;
|
44
|
+
variant?: "normal" | "tight";
|
45
|
+
zIndex?: React.CSSProperties["zIndex"];
|
46
|
+
listOverflow?: React.CSSProperties["overflow"];
|
47
|
+
listMaxHeight?: React.CSSProperties["height"];
|
48
|
+
listWidth?: React.CSSProperties["width"];
|
49
|
+
portal?: string | React.RefObject<HTMLElement>;
|
50
50
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
51
51
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
52
|
-
closeAfterSelect?: boolean
|
53
|
-
onChangeValue?: (
|
54
|
-
onScroll?: (
|
55
|
-
onToggle?: (
|
52
|
+
closeAfterSelect?: boolean;
|
53
|
+
onChangeValue?: (value: string) => void;
|
54
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
55
|
+
onToggle?: (isOpen: boolean) => void;
|
56
56
|
beforeList?: React.ReactNode;
|
57
57
|
afterList?: React.ReactNode;
|
58
|
-
virtual?: boolean
|
59
|
-
size?: string
|
60
|
-
view?: string
|
61
|
-
emptyStateDescription?: string
|
62
|
-
listHeight?:
|
58
|
+
virtual?: boolean;
|
59
|
+
size?: string;
|
60
|
+
view?: string;
|
61
|
+
emptyStateDescription?: string;
|
62
|
+
listHeight?: React.CSSProperties["height"];
|
63
63
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
64
|
-
readOnly?: boolean
|
65
|
-
disabled?: true
|
66
|
-
alwaysOpened?: false
|
64
|
+
readOnly?: boolean;
|
65
|
+
disabled?: true;
|
66
|
+
alwaysOpened?: false;
|
67
67
|
} & {
|
68
68
|
name: string;
|
69
|
-
onChange?: React.ChangeEventHandler
|
69
|
+
onChange?: React.ChangeEventHandler;
|
70
70
|
} & {
|
71
|
-
multiple?: false
|
72
|
-
defaultValue?: string
|
73
|
-
value?:
|
74
|
-
isTargetAmount?:
|
75
|
-
targetAmount?:
|
76
|
-
renderValue?:
|
71
|
+
multiple?: false;
|
72
|
+
defaultValue?: string;
|
73
|
+
value?: never;
|
74
|
+
isTargetAmount?: never | false;
|
75
|
+
targetAmount?: never;
|
76
|
+
renderValue?: never;
|
77
|
+
selectAllOptions?: never;
|
77
78
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
78
79
|
hintText: string;
|
79
|
-
hintTrigger?: "hover" | "click"
|
80
|
-
hintView?: string
|
81
|
-
hintSize?: string
|
80
|
+
hintTrigger?: "hover" | "click";
|
81
|
+
hintView?: string;
|
82
|
+
hintSize?: string;
|
82
83
|
hintTargetIcon?: React.ReactNode;
|
83
|
-
hintTargetPlacement?: "
|
84
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
85
|
-
hintHasArrow?: boolean
|
86
|
-
hintOffset?: [number, number]
|
87
|
-
hintWidth?: string
|
84
|
+
hintTargetPlacement?: "inner" | "outer";
|
85
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
86
|
+
hintHasArrow?: boolean;
|
87
|
+
hintOffset?: [number, number];
|
88
|
+
hintWidth?: string;
|
88
89
|
hintContentLeft?: React.ReactNode;
|
89
90
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
90
91
|
items: ComboboxItemOption[];
|
91
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
92
|
-
placeholder?: string
|
93
|
-
helperText?: string
|
94
|
-
contentLeft?: React.ReactElement
|
95
|
-
textBefore?: string
|
96
|
-
textAfter?: string
|
97
|
-
variant?: "normal" | "tight"
|
98
|
-
zIndex?:
|
99
|
-
listOverflow?:
|
100
|
-
listMaxHeight?:
|
101
|
-
listWidth?:
|
102
|
-
portal?: string | React.RefObject<HTMLElement
|
92
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
93
|
+
placeholder?: string;
|
94
|
+
helperText?: string;
|
95
|
+
contentLeft?: React.ReactElement;
|
96
|
+
textBefore?: string;
|
97
|
+
textAfter?: string;
|
98
|
+
variant?: "normal" | "tight";
|
99
|
+
zIndex?: React.CSSProperties["zIndex"];
|
100
|
+
listOverflow?: React.CSSProperties["overflow"];
|
101
|
+
listMaxHeight?: React.CSSProperties["height"];
|
102
|
+
listWidth?: React.CSSProperties["width"];
|
103
|
+
portal?: string | React.RefObject<HTMLElement>;
|
103
104
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
104
105
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
105
|
-
closeAfterSelect?: boolean
|
106
|
-
onChangeValue?: (
|
107
|
-
onScroll?: (
|
108
|
-
onToggle?: (
|
106
|
+
closeAfterSelect?: boolean;
|
107
|
+
onChangeValue?: (value: string) => void;
|
108
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
109
|
+
onToggle?: (isOpen: boolean) => void;
|
109
110
|
beforeList?: React.ReactNode;
|
110
111
|
afterList?: React.ReactNode;
|
111
|
-
virtual?: boolean
|
112
|
-
size?: string
|
113
|
-
view?: string
|
114
|
-
emptyStateDescription?: string
|
115
|
-
listHeight?:
|
112
|
+
virtual?: boolean;
|
113
|
+
size?: string;
|
114
|
+
view?: string;
|
115
|
+
emptyStateDescription?: string;
|
116
|
+
listHeight?: React.CSSProperties["height"];
|
116
117
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
117
|
-
readOnly?: boolean
|
118
|
-
disabled?: true
|
119
|
-
alwaysOpened?: false
|
118
|
+
readOnly?: boolean;
|
119
|
+
disabled?: true;
|
120
|
+
alwaysOpened?: false;
|
120
121
|
} & {
|
121
122
|
name: string;
|
122
|
-
onChange?: React.ChangeEventHandler
|
123
|
+
onChange?: React.ChangeEventHandler;
|
123
124
|
} & {
|
124
|
-
multiple?: false
|
125
|
-
defaultValue?: string
|
126
|
-
value?:
|
127
|
-
isTargetAmount?:
|
128
|
-
targetAmount?:
|
129
|
-
renderValue?:
|
125
|
+
multiple?: false;
|
126
|
+
defaultValue?: string;
|
127
|
+
value?: never;
|
128
|
+
isTargetAmount?: never | false;
|
129
|
+
targetAmount?: never;
|
130
|
+
renderValue?: never;
|
131
|
+
selectAllOptions?: never;
|
130
132
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
131
|
-
hintTrigger?:
|
132
|
-
hintText?:
|
133
|
-
hintView?:
|
134
|
-
hintSize?:
|
135
|
-
hintTargetIcon?:
|
136
|
-
hintTargetPlacement?:
|
137
|
-
hintPlacement?:
|
138
|
-
hintHasArrow?:
|
139
|
-
hintOffset?:
|
140
|
-
hintWidth?:
|
141
|
-
hintContentLeft?:
|
133
|
+
hintTrigger?: never;
|
134
|
+
hintText?: never;
|
135
|
+
hintView?: never;
|
136
|
+
hintSize?: never;
|
137
|
+
hintTargetIcon?: never;
|
138
|
+
hintTargetPlacement?: never;
|
139
|
+
hintPlacement?: never;
|
140
|
+
hintHasArrow?: never;
|
141
|
+
hintOffset?: never;
|
142
|
+
hintWidth?: never;
|
143
|
+
hintContentLeft?: never;
|
142
144
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
143
145
|
items: ComboboxItemOption[];
|
144
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
145
|
-
placeholder?: string
|
146
|
-
helperText?: string
|
147
|
-
contentLeft?: React.ReactElement
|
148
|
-
textBefore?: string
|
149
|
-
textAfter?: string
|
150
|
-
variant?: "normal" | "tight"
|
151
|
-
zIndex?:
|
152
|
-
listOverflow?:
|
153
|
-
listMaxHeight?:
|
154
|
-
listWidth?:
|
155
|
-
portal?: string | React.RefObject<HTMLElement
|
146
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
147
|
+
placeholder?: string;
|
148
|
+
helperText?: string;
|
149
|
+
contentLeft?: React.ReactElement;
|
150
|
+
textBefore?: string;
|
151
|
+
textAfter?: string;
|
152
|
+
variant?: "normal" | "tight";
|
153
|
+
zIndex?: React.CSSProperties["zIndex"];
|
154
|
+
listOverflow?: React.CSSProperties["overflow"];
|
155
|
+
listMaxHeight?: React.CSSProperties["height"];
|
156
|
+
listWidth?: React.CSSProperties["width"];
|
157
|
+
portal?: string | React.RefObject<HTMLElement>;
|
156
158
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
157
159
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
158
|
-
closeAfterSelect?: boolean
|
159
|
-
onChangeValue?: (
|
160
|
-
onScroll?: (
|
161
|
-
onToggle?: (
|
160
|
+
closeAfterSelect?: boolean;
|
161
|
+
onChangeValue?: (value: string) => void;
|
162
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
163
|
+
onToggle?: (isOpen: boolean) => void;
|
162
164
|
beforeList?: React.ReactNode;
|
163
165
|
afterList?: React.ReactNode;
|
164
|
-
virtual?: boolean
|
165
|
-
size?: string
|
166
|
-
view?: string
|
167
|
-
emptyStateDescription?: string
|
168
|
-
listHeight?:
|
166
|
+
virtual?: boolean;
|
167
|
+
size?: string;
|
168
|
+
view?: string;
|
169
|
+
emptyStateDescription?: string;
|
170
|
+
listHeight?: React.CSSProperties["height"];
|
169
171
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
170
|
-
readOnly?: boolean
|
171
|
-
disabled?: true
|
172
|
-
alwaysOpened?: false
|
172
|
+
readOnly?: boolean;
|
173
|
+
disabled?: true;
|
174
|
+
alwaysOpened?: false;
|
173
175
|
} & {
|
174
|
-
name?:
|
175
|
-
defaultValue?:
|
176
|
+
name?: never;
|
177
|
+
defaultValue?: never;
|
176
178
|
} & {
|
177
|
-
multiple?: false
|
178
|
-
value?: string
|
179
|
+
multiple?: false;
|
180
|
+
value?: string;
|
179
181
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
180
|
-
isTargetAmount?:
|
181
|
-
targetAmount?:
|
182
|
-
renderValue?:
|
182
|
+
isTargetAmount?: never | false;
|
183
|
+
targetAmount?: never;
|
184
|
+
renderValue?: never;
|
185
|
+
selectAllOptions?: never;
|
183
186
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
184
187
|
hintText: string;
|
185
|
-
hintTrigger?: "hover" | "click"
|
186
|
-
hintView?: string
|
187
|
-
hintSize?: string
|
188
|
+
hintTrigger?: "hover" | "click";
|
189
|
+
hintView?: string;
|
190
|
+
hintSize?: string;
|
188
191
|
hintTargetIcon?: React.ReactNode;
|
189
|
-
hintTargetPlacement?: "
|
190
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
191
|
-
hintHasArrow?: boolean
|
192
|
-
hintOffset?: [number, number]
|
193
|
-
hintWidth?: string
|
192
|
+
hintTargetPlacement?: "inner" | "outer";
|
193
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
194
|
+
hintHasArrow?: boolean;
|
195
|
+
hintOffset?: [number, number];
|
196
|
+
hintWidth?: string;
|
194
197
|
hintContentLeft?: React.ReactNode;
|
195
198
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
196
199
|
items: ComboboxItemOption[];
|
197
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
198
|
-
placeholder?: string
|
199
|
-
helperText?: string
|
200
|
-
contentLeft?: React.ReactElement
|
201
|
-
textBefore?: string
|
202
|
-
textAfter?: string
|
203
|
-
variant?: "normal" | "tight"
|
204
|
-
zIndex?:
|
205
|
-
listOverflow?:
|
206
|
-
listMaxHeight?:
|
207
|
-
listWidth?:
|
208
|
-
portal?: string | React.RefObject<HTMLElement
|
200
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
201
|
+
placeholder?: string;
|
202
|
+
helperText?: string;
|
203
|
+
contentLeft?: React.ReactElement;
|
204
|
+
textBefore?: string;
|
205
|
+
textAfter?: string;
|
206
|
+
variant?: "normal" | "tight";
|
207
|
+
zIndex?: React.CSSProperties["zIndex"];
|
208
|
+
listOverflow?: React.CSSProperties["overflow"];
|
209
|
+
listMaxHeight?: React.CSSProperties["height"];
|
210
|
+
listWidth?: React.CSSProperties["width"];
|
211
|
+
portal?: string | React.RefObject<HTMLElement>;
|
209
212
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
210
213
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
211
|
-
closeAfterSelect?: boolean
|
212
|
-
onChangeValue?: (
|
213
|
-
onScroll?: (
|
214
|
-
onToggle?: (
|
214
|
+
closeAfterSelect?: boolean;
|
215
|
+
onChangeValue?: (value: string) => void;
|
216
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
217
|
+
onToggle?: (isOpen: boolean) => void;
|
215
218
|
beforeList?: React.ReactNode;
|
216
219
|
afterList?: React.ReactNode;
|
217
|
-
virtual?: boolean
|
218
|
-
size?: string
|
219
|
-
view?: string
|
220
|
-
emptyStateDescription?: string
|
221
|
-
listHeight?:
|
220
|
+
virtual?: boolean;
|
221
|
+
size?: string;
|
222
|
+
view?: string;
|
223
|
+
emptyStateDescription?: string;
|
224
|
+
listHeight?: React.CSSProperties["height"];
|
222
225
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
223
|
-
readOnly?: boolean
|
224
|
-
disabled?: true
|
225
|
-
alwaysOpened?: false
|
226
|
+
readOnly?: boolean;
|
227
|
+
disabled?: true;
|
228
|
+
alwaysOpened?: false;
|
226
229
|
} & {
|
227
|
-
name?:
|
228
|
-
defaultValue?:
|
230
|
+
name?: never;
|
231
|
+
defaultValue?: never;
|
229
232
|
} & {
|
230
|
-
multiple?: false
|
231
|
-
value?: string
|
233
|
+
multiple?: false;
|
234
|
+
value?: string;
|
232
235
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
233
|
-
isTargetAmount?:
|
234
|
-
targetAmount?:
|
235
|
-
renderValue?:
|
236
|
+
isTargetAmount?: never | false;
|
237
|
+
targetAmount?: never;
|
238
|
+
renderValue?: never;
|
239
|
+
selectAllOptions?: never;
|
236
240
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
237
|
-
hintTrigger?:
|
238
|
-
hintText?:
|
239
|
-
hintView?:
|
240
|
-
hintSize?:
|
241
|
-
hintTargetIcon?:
|
242
|
-
hintTargetPlacement?:
|
243
|
-
hintPlacement?:
|
244
|
-
hintHasArrow?:
|
245
|
-
hintOffset?:
|
246
|
-
hintWidth?:
|
247
|
-
hintContentLeft?:
|
241
|
+
hintTrigger?: never;
|
242
|
+
hintText?: never;
|
243
|
+
hintView?: never;
|
244
|
+
hintSize?: never;
|
245
|
+
hintTargetIcon?: never;
|
246
|
+
hintTargetPlacement?: never;
|
247
|
+
hintPlacement?: never;
|
248
|
+
hintHasArrow?: never;
|
249
|
+
hintOffset?: never;
|
250
|
+
hintWidth?: never;
|
251
|
+
hintContentLeft?: never;
|
248
252
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
249
253
|
items: ComboboxItemOption[];
|
250
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
251
|
-
placeholder?: string
|
252
|
-
helperText?: string
|
253
|
-
contentLeft?: React.ReactElement
|
254
|
-
textBefore?: string
|
255
|
-
textAfter?: string
|
256
|
-
variant?: "normal" | "tight"
|
257
|
-
zIndex?:
|
258
|
-
listOverflow?:
|
259
|
-
listMaxHeight?:
|
260
|
-
listWidth?:
|
261
|
-
portal?: string | React.RefObject<HTMLElement
|
254
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
255
|
+
placeholder?: string;
|
256
|
+
helperText?: string;
|
257
|
+
contentLeft?: React.ReactElement;
|
258
|
+
textBefore?: string;
|
259
|
+
textAfter?: string;
|
260
|
+
variant?: "normal" | "tight";
|
261
|
+
zIndex?: React.CSSProperties["zIndex"];
|
262
|
+
listOverflow?: React.CSSProperties["overflow"];
|
263
|
+
listMaxHeight?: React.CSSProperties["height"];
|
264
|
+
listWidth?: React.CSSProperties["width"];
|
265
|
+
portal?: string | React.RefObject<HTMLElement>;
|
262
266
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
263
267
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
264
|
-
closeAfterSelect?: boolean
|
265
|
-
onChangeValue?: (
|
266
|
-
onScroll?: (
|
267
|
-
onToggle?: (
|
268
|
+
closeAfterSelect?: boolean;
|
269
|
+
onChangeValue?: (value: string) => void;
|
270
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
271
|
+
onToggle?: (isOpen: boolean) => void;
|
268
272
|
beforeList?: React.ReactNode;
|
269
273
|
afterList?: React.ReactNode;
|
270
|
-
virtual?: boolean
|
271
|
-
size?: string
|
272
|
-
view?: string
|
273
|
-
emptyStateDescription?: string
|
274
|
-
listHeight?:
|
274
|
+
virtual?: boolean;
|
275
|
+
size?: string;
|
276
|
+
view?: string;
|
277
|
+
emptyStateDescription?: string;
|
278
|
+
listHeight?: React.CSSProperties["height"];
|
275
279
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
276
|
-
readOnly?: boolean
|
277
|
-
disabled?: true
|
278
|
-
alwaysOpened?: false
|
280
|
+
readOnly?: boolean;
|
281
|
+
disabled?: true;
|
282
|
+
alwaysOpened?: false;
|
279
283
|
} & {
|
280
|
-
name?:
|
281
|
-
defaultValue?:
|
284
|
+
name?: never;
|
285
|
+
defaultValue?: never;
|
282
286
|
} & {
|
283
287
|
multiple: true;
|
284
|
-
value?: string[]
|
288
|
+
value?: string[];
|
285
289
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
286
|
-
isTargetAmount?: true
|
287
|
-
targetAmount?: number
|
290
|
+
isTargetAmount?: true;
|
291
|
+
targetAmount?: number;
|
288
292
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
293
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
289
294
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
290
295
|
hintText: string;
|
291
|
-
hintTrigger?: "hover" | "click"
|
292
|
-
hintView?: string
|
293
|
-
hintSize?: string
|
296
|
+
hintTrigger?: "hover" | "click";
|
297
|
+
hintView?: string;
|
298
|
+
hintSize?: string;
|
294
299
|
hintTargetIcon?: React.ReactNode;
|
295
|
-
hintTargetPlacement?: "
|
296
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
297
|
-
hintHasArrow?: boolean
|
298
|
-
hintOffset?: [number, number]
|
299
|
-
hintWidth?: string
|
300
|
+
hintTargetPlacement?: "inner" | "outer";
|
301
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
302
|
+
hintHasArrow?: boolean;
|
303
|
+
hintOffset?: [number, number];
|
304
|
+
hintWidth?: string;
|
300
305
|
hintContentLeft?: React.ReactNode;
|
301
306
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
302
307
|
items: ComboboxItemOption[];
|
303
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
304
|
-
placeholder?: string
|
305
|
-
helperText?: string
|
306
|
-
contentLeft?: React.ReactElement
|
307
|
-
textBefore?: string
|
308
|
-
textAfter?: string
|
309
|
-
variant?: "normal" | "tight"
|
310
|
-
zIndex?:
|
311
|
-
listOverflow?:
|
312
|
-
listMaxHeight?:
|
313
|
-
listWidth?:
|
314
|
-
portal?: string | React.RefObject<HTMLElement
|
308
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
309
|
+
placeholder?: string;
|
310
|
+
helperText?: string;
|
311
|
+
contentLeft?: React.ReactElement;
|
312
|
+
textBefore?: string;
|
313
|
+
textAfter?: string;
|
314
|
+
variant?: "normal" | "tight";
|
315
|
+
zIndex?: React.CSSProperties["zIndex"];
|
316
|
+
listOverflow?: React.CSSProperties["overflow"];
|
317
|
+
listMaxHeight?: React.CSSProperties["height"];
|
318
|
+
listWidth?: React.CSSProperties["width"];
|
319
|
+
portal?: string | React.RefObject<HTMLElement>;
|
315
320
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
316
321
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
317
|
-
closeAfterSelect?: boolean
|
318
|
-
onChangeValue?: (
|
319
|
-
onScroll?: (
|
320
|
-
onToggle?: (
|
322
|
+
closeAfterSelect?: boolean;
|
323
|
+
onChangeValue?: (value: string) => void;
|
324
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
325
|
+
onToggle?: (isOpen: boolean) => void;
|
321
326
|
beforeList?: React.ReactNode;
|
322
327
|
afterList?: React.ReactNode;
|
323
|
-
virtual?: boolean
|
324
|
-
size?: string
|
325
|
-
view?: string
|
326
|
-
emptyStateDescription?: string
|
327
|
-
listHeight?:
|
328
|
+
virtual?: boolean;
|
329
|
+
size?: string;
|
330
|
+
view?: string;
|
331
|
+
emptyStateDescription?: string;
|
332
|
+
listHeight?: React.CSSProperties["height"];
|
328
333
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
329
|
-
readOnly?: boolean
|
330
|
-
disabled?: true
|
331
|
-
alwaysOpened?: false
|
334
|
+
readOnly?: boolean;
|
335
|
+
disabled?: true;
|
336
|
+
alwaysOpened?: false;
|
332
337
|
} & {
|
333
|
-
name?:
|
334
|
-
defaultValue?:
|
338
|
+
name?: never;
|
339
|
+
defaultValue?: never;
|
335
340
|
} & {
|
336
341
|
multiple: true;
|
337
|
-
value?: string[]
|
342
|
+
value?: string[];
|
338
343
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
339
|
-
isTargetAmount?: true
|
340
|
-
targetAmount?: number
|
344
|
+
isTargetAmount?: true;
|
345
|
+
targetAmount?: number;
|
341
346
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
347
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
342
348
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
343
|
-
hintTrigger?:
|
344
|
-
hintText?:
|
345
|
-
hintView?:
|
346
|
-
hintSize?:
|
347
|
-
hintTargetIcon?:
|
348
|
-
hintTargetPlacement?:
|
349
|
-
hintPlacement?:
|
350
|
-
hintHasArrow?:
|
351
|
-
hintOffset?:
|
352
|
-
hintWidth?:
|
353
|
-
hintContentLeft?:
|
349
|
+
hintTrigger?: never;
|
350
|
+
hintText?: never;
|
351
|
+
hintView?: never;
|
352
|
+
hintSize?: never;
|
353
|
+
hintTargetIcon?: never;
|
354
|
+
hintTargetPlacement?: never;
|
355
|
+
hintPlacement?: never;
|
356
|
+
hintHasArrow?: never;
|
357
|
+
hintOffset?: never;
|
358
|
+
hintWidth?: never;
|
359
|
+
hintContentLeft?: never;
|
354
360
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
355
361
|
items: ComboboxItemOption[];
|
356
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
357
|
-
placeholder?: string
|
358
|
-
helperText?: string
|
359
|
-
contentLeft?: React.ReactElement
|
360
|
-
textBefore?: string
|
361
|
-
textAfter?: string
|
362
|
-
variant?: "normal" | "tight"
|
363
|
-
zIndex?:
|
364
|
-
listOverflow?:
|
365
|
-
listMaxHeight?:
|
366
|
-
listWidth?:
|
367
|
-
portal?: string | React.RefObject<HTMLElement
|
362
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
363
|
+
placeholder?: string;
|
364
|
+
helperText?: string;
|
365
|
+
contentLeft?: React.ReactElement;
|
366
|
+
textBefore?: string;
|
367
|
+
textAfter?: string;
|
368
|
+
variant?: "normal" | "tight";
|
369
|
+
zIndex?: React.CSSProperties["zIndex"];
|
370
|
+
listOverflow?: React.CSSProperties["overflow"];
|
371
|
+
listMaxHeight?: React.CSSProperties["height"];
|
372
|
+
listWidth?: React.CSSProperties["width"];
|
373
|
+
portal?: string | React.RefObject<HTMLElement>;
|
368
374
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
369
375
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
370
|
-
closeAfterSelect?: boolean
|
371
|
-
onChangeValue?: (
|
372
|
-
onScroll?: (
|
373
|
-
onToggle?: (
|
376
|
+
closeAfterSelect?: boolean;
|
377
|
+
onChangeValue?: (value: string) => void;
|
378
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
379
|
+
onToggle?: (isOpen: boolean) => void;
|
374
380
|
beforeList?: React.ReactNode;
|
375
381
|
afterList?: React.ReactNode;
|
376
|
-
virtual?: boolean
|
377
|
-
size?: string
|
378
|
-
view?: string
|
379
|
-
emptyStateDescription?: string
|
380
|
-
listHeight?:
|
382
|
+
virtual?: boolean;
|
383
|
+
size?: string;
|
384
|
+
view?: string;
|
385
|
+
emptyStateDescription?: string;
|
386
|
+
listHeight?: React.CSSProperties["height"];
|
381
387
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
382
|
-
readOnly?: boolean
|
383
|
-
disabled?: true
|
384
|
-
alwaysOpened?: false
|
388
|
+
readOnly?: boolean;
|
389
|
+
disabled?: true;
|
390
|
+
alwaysOpened?: false;
|
385
391
|
} & {
|
386
392
|
name: string;
|
387
|
-
onChange?: React.ChangeEventHandler
|
393
|
+
onChange?: React.ChangeEventHandler;
|
388
394
|
} & {
|
389
395
|
multiple: true;
|
390
|
-
defaultValue?: string[]
|
391
|
-
value?:
|
392
|
-
isTargetAmount?: true
|
393
|
-
targetAmount?: number
|
396
|
+
defaultValue?: string[];
|
397
|
+
value?: never;
|
398
|
+
isTargetAmount?: true;
|
399
|
+
targetAmount?: number;
|
394
400
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
401
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
395
402
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
396
403
|
hintText: string;
|
397
|
-
hintTrigger?: "hover" | "click"
|
398
|
-
hintView?: string
|
399
|
-
hintSize?: string
|
404
|
+
hintTrigger?: "hover" | "click";
|
405
|
+
hintView?: string;
|
406
|
+
hintSize?: string;
|
400
407
|
hintTargetIcon?: React.ReactNode;
|
401
|
-
hintTargetPlacement?: "
|
402
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
403
|
-
hintHasArrow?: boolean
|
404
|
-
hintOffset?: [number, number]
|
405
|
-
hintWidth?: string
|
408
|
+
hintTargetPlacement?: "inner" | "outer";
|
409
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
410
|
+
hintHasArrow?: boolean;
|
411
|
+
hintOffset?: [number, number];
|
412
|
+
hintWidth?: string;
|
406
413
|
hintContentLeft?: React.ReactNode;
|
407
414
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
408
415
|
items: ComboboxItemOption[];
|
409
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
410
|
-
placeholder?: string
|
411
|
-
helperText?: string
|
412
|
-
contentLeft?: React.ReactElement
|
413
|
-
textBefore?: string
|
414
|
-
textAfter?: string
|
415
|
-
variant?: "normal" | "tight"
|
416
|
-
zIndex?:
|
417
|
-
listOverflow?:
|
418
|
-
listMaxHeight?:
|
419
|
-
listWidth?:
|
420
|
-
portal?: string | React.RefObject<HTMLElement
|
416
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
417
|
+
placeholder?: string;
|
418
|
+
helperText?: string;
|
419
|
+
contentLeft?: React.ReactElement;
|
420
|
+
textBefore?: string;
|
421
|
+
textAfter?: string;
|
422
|
+
variant?: "normal" | "tight";
|
423
|
+
zIndex?: React.CSSProperties["zIndex"];
|
424
|
+
listOverflow?: React.CSSProperties["overflow"];
|
425
|
+
listMaxHeight?: React.CSSProperties["height"];
|
426
|
+
listWidth?: React.CSSProperties["width"];
|
427
|
+
portal?: string | React.RefObject<HTMLElement>;
|
421
428
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
422
429
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
423
|
-
closeAfterSelect?: boolean
|
424
|
-
onChangeValue?: (
|
425
|
-
onScroll?: (
|
426
|
-
onToggle?: (
|
430
|
+
closeAfterSelect?: boolean;
|
431
|
+
onChangeValue?: (value: string) => void;
|
432
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
433
|
+
onToggle?: (isOpen: boolean) => void;
|
427
434
|
beforeList?: React.ReactNode;
|
428
435
|
afterList?: React.ReactNode;
|
429
|
-
virtual?: boolean
|
430
|
-
size?: string
|
431
|
-
view?: string
|
432
|
-
emptyStateDescription?: string
|
433
|
-
listHeight?:
|
436
|
+
virtual?: boolean;
|
437
|
+
size?: string;
|
438
|
+
view?: string;
|
439
|
+
emptyStateDescription?: string;
|
440
|
+
listHeight?: React.CSSProperties["height"];
|
434
441
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
435
|
-
readOnly?: boolean
|
436
|
-
disabled?: true
|
437
|
-
alwaysOpened?: false
|
442
|
+
readOnly?: boolean;
|
443
|
+
disabled?: true;
|
444
|
+
alwaysOpened?: false;
|
438
445
|
} & {
|
439
446
|
name: string;
|
440
|
-
onChange?: React.ChangeEventHandler
|
447
|
+
onChange?: React.ChangeEventHandler;
|
441
448
|
} & {
|
442
449
|
multiple: true;
|
443
|
-
defaultValue?: string[]
|
444
|
-
value?:
|
445
|
-
isTargetAmount?: true
|
446
|
-
targetAmount?: number
|
450
|
+
defaultValue?: string[];
|
451
|
+
value?: never;
|
452
|
+
isTargetAmount?: true;
|
453
|
+
targetAmount?: number;
|
447
454
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
455
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
448
456
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
449
|
-
hintTrigger?:
|
450
|
-
hintText?:
|
451
|
-
hintView?:
|
452
|
-
hintSize?:
|
453
|
-
hintTargetIcon?:
|
454
|
-
hintTargetPlacement?:
|
455
|
-
hintPlacement?:
|
456
|
-
hintHasArrow?:
|
457
|
-
hintOffset?:
|
458
|
-
hintWidth?:
|
459
|
-
hintContentLeft?:
|
457
|
+
hintTrigger?: never;
|
458
|
+
hintText?: never;
|
459
|
+
hintView?: never;
|
460
|
+
hintSize?: never;
|
461
|
+
hintTargetIcon?: never;
|
462
|
+
hintTargetPlacement?: never;
|
463
|
+
hintPlacement?: never;
|
464
|
+
hintHasArrow?: never;
|
465
|
+
hintOffset?: never;
|
466
|
+
hintWidth?: never;
|
467
|
+
hintContentLeft?: never;
|
460
468
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
461
469
|
items: ComboboxItemOption[];
|
462
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
463
|
-
placeholder?: string
|
464
|
-
helperText?: string
|
465
|
-
contentLeft?: React.ReactElement
|
466
|
-
textBefore?: string
|
467
|
-
textAfter?: string
|
468
|
-
variant?: "normal" | "tight"
|
469
|
-
zIndex?:
|
470
|
-
listOverflow?:
|
471
|
-
listMaxHeight?:
|
472
|
-
listWidth?:
|
473
|
-
portal?: string | React.RefObject<HTMLElement
|
470
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
471
|
+
placeholder?: string;
|
472
|
+
helperText?: string;
|
473
|
+
contentLeft?: React.ReactElement;
|
474
|
+
textBefore?: string;
|
475
|
+
textAfter?: string;
|
476
|
+
variant?: "normal" | "tight";
|
477
|
+
zIndex?: React.CSSProperties["zIndex"];
|
478
|
+
listOverflow?: React.CSSProperties["overflow"];
|
479
|
+
listMaxHeight?: React.CSSProperties["height"];
|
480
|
+
listWidth?: React.CSSProperties["width"];
|
481
|
+
portal?: string | React.RefObject<HTMLElement>;
|
474
482
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
475
483
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
476
|
-
closeAfterSelect?: boolean
|
477
|
-
onChangeValue?: (
|
478
|
-
onScroll?: (
|
479
|
-
onToggle?: (
|
484
|
+
closeAfterSelect?: boolean;
|
485
|
+
onChangeValue?: (value: string) => void;
|
486
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
487
|
+
onToggle?: (isOpen: boolean) => void;
|
480
488
|
beforeList?: React.ReactNode;
|
481
489
|
afterList?: React.ReactNode;
|
482
|
-
virtual?: boolean
|
483
|
-
size?: string
|
484
|
-
view?: string
|
485
|
-
emptyStateDescription?: string
|
486
|
-
listHeight?:
|
490
|
+
virtual?: boolean;
|
491
|
+
size?: string;
|
492
|
+
view?: string;
|
493
|
+
emptyStateDescription?: string;
|
494
|
+
listHeight?: React.CSSProperties["height"];
|
487
495
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
488
|
-
readOnly?: true
|
489
|
-
disabled?: boolean
|
490
|
-
alwaysOpened?: false
|
496
|
+
readOnly?: true;
|
497
|
+
disabled?: boolean;
|
498
|
+
alwaysOpened?: false;
|
491
499
|
} & {
|
492
500
|
name: string;
|
493
|
-
onChange?: React.ChangeEventHandler
|
501
|
+
onChange?: React.ChangeEventHandler;
|
494
502
|
} & {
|
495
|
-
multiple?: false
|
496
|
-
defaultValue?: string
|
497
|
-
value?:
|
498
|
-
isTargetAmount?:
|
499
|
-
targetAmount?:
|
500
|
-
renderValue?:
|
503
|
+
multiple?: false;
|
504
|
+
defaultValue?: string;
|
505
|
+
value?: never;
|
506
|
+
isTargetAmount?: never | false;
|
507
|
+
targetAmount?: never;
|
508
|
+
renderValue?: never;
|
509
|
+
selectAllOptions?: never;
|
501
510
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
502
511
|
hintText: string;
|
503
|
-
hintTrigger?: "hover" | "click"
|
504
|
-
hintView?: string
|
505
|
-
hintSize?: string
|
512
|
+
hintTrigger?: "hover" | "click";
|
513
|
+
hintView?: string;
|
514
|
+
hintSize?: string;
|
506
515
|
hintTargetIcon?: React.ReactNode;
|
507
|
-
hintTargetPlacement?: "
|
508
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
509
|
-
hintHasArrow?: boolean
|
510
|
-
hintOffset?: [number, number]
|
511
|
-
hintWidth?: string
|
516
|
+
hintTargetPlacement?: "inner" | "outer";
|
517
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
518
|
+
hintHasArrow?: boolean;
|
519
|
+
hintOffset?: [number, number];
|
520
|
+
hintWidth?: string;
|
512
521
|
hintContentLeft?: React.ReactNode;
|
513
522
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
514
523
|
items: ComboboxItemOption[];
|
515
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
516
|
-
placeholder?: string
|
517
|
-
helperText?: string
|
518
|
-
contentLeft?: React.ReactElement
|
519
|
-
textBefore?: string
|
520
|
-
textAfter?: string
|
521
|
-
variant?: "normal" | "tight"
|
522
|
-
zIndex?:
|
523
|
-
listOverflow?:
|
524
|
-
listMaxHeight?:
|
525
|
-
listWidth?:
|
526
|
-
portal?: string | React.RefObject<HTMLElement
|
524
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
525
|
+
placeholder?: string;
|
526
|
+
helperText?: string;
|
527
|
+
contentLeft?: React.ReactElement;
|
528
|
+
textBefore?: string;
|
529
|
+
textAfter?: string;
|
530
|
+
variant?: "normal" | "tight";
|
531
|
+
zIndex?: React.CSSProperties["zIndex"];
|
532
|
+
listOverflow?: React.CSSProperties["overflow"];
|
533
|
+
listMaxHeight?: React.CSSProperties["height"];
|
534
|
+
listWidth?: React.CSSProperties["width"];
|
535
|
+
portal?: string | React.RefObject<HTMLElement>;
|
527
536
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
528
537
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
529
|
-
closeAfterSelect?: boolean
|
530
|
-
onChangeValue?: (
|
531
|
-
onScroll?: (
|
532
|
-
onToggle?: (
|
538
|
+
closeAfterSelect?: boolean;
|
539
|
+
onChangeValue?: (value: string) => void;
|
540
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
541
|
+
onToggle?: (isOpen: boolean) => void;
|
533
542
|
beforeList?: React.ReactNode;
|
534
543
|
afterList?: React.ReactNode;
|
535
|
-
virtual?: boolean
|
536
|
-
size?: string
|
537
|
-
view?: string
|
538
|
-
emptyStateDescription?: string
|
539
|
-
listHeight?:
|
544
|
+
virtual?: boolean;
|
545
|
+
size?: string;
|
546
|
+
view?: string;
|
547
|
+
emptyStateDescription?: string;
|
548
|
+
listHeight?: React.CSSProperties["height"];
|
540
549
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
541
|
-
readOnly?: true
|
542
|
-
disabled?: boolean
|
543
|
-
alwaysOpened?: false
|
550
|
+
readOnly?: true;
|
551
|
+
disabled?: boolean;
|
552
|
+
alwaysOpened?: false;
|
544
553
|
} & {
|
545
554
|
name: string;
|
546
|
-
onChange?: React.ChangeEventHandler
|
555
|
+
onChange?: React.ChangeEventHandler;
|
547
556
|
} & {
|
548
|
-
multiple?: false
|
549
|
-
defaultValue?: string
|
550
|
-
value?:
|
551
|
-
isTargetAmount?:
|
552
|
-
targetAmount?:
|
553
|
-
renderValue?:
|
557
|
+
multiple?: false;
|
558
|
+
defaultValue?: string;
|
559
|
+
value?: never;
|
560
|
+
isTargetAmount?: never | false;
|
561
|
+
targetAmount?: never;
|
562
|
+
renderValue?: never;
|
563
|
+
selectAllOptions?: never;
|
554
564
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
555
|
-
hintTrigger?:
|
556
|
-
hintText?:
|
557
|
-
hintView?:
|
558
|
-
hintSize?:
|
559
|
-
hintTargetIcon?:
|
560
|
-
hintTargetPlacement?:
|
561
|
-
hintPlacement?:
|
562
|
-
hintHasArrow?:
|
563
|
-
hintOffset?:
|
564
|
-
hintWidth?:
|
565
|
-
hintContentLeft?:
|
565
|
+
hintTrigger?: never;
|
566
|
+
hintText?: never;
|
567
|
+
hintView?: never;
|
568
|
+
hintSize?: never;
|
569
|
+
hintTargetIcon?: never;
|
570
|
+
hintTargetPlacement?: never;
|
571
|
+
hintPlacement?: never;
|
572
|
+
hintHasArrow?: never;
|
573
|
+
hintOffset?: never;
|
574
|
+
hintWidth?: never;
|
575
|
+
hintContentLeft?: never;
|
566
576
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
567
577
|
items: ComboboxItemOption[];
|
568
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
569
|
-
placeholder?: string
|
570
|
-
helperText?: string
|
571
|
-
contentLeft?: React.ReactElement
|
572
|
-
textBefore?: string
|
573
|
-
textAfter?: string
|
574
|
-
variant?: "normal" | "tight"
|
575
|
-
zIndex?:
|
576
|
-
listOverflow?:
|
577
|
-
listMaxHeight?:
|
578
|
-
listWidth?:
|
579
|
-
portal?: string | React.RefObject<HTMLElement
|
578
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
579
|
+
placeholder?: string;
|
580
|
+
helperText?: string;
|
581
|
+
contentLeft?: React.ReactElement;
|
582
|
+
textBefore?: string;
|
583
|
+
textAfter?: string;
|
584
|
+
variant?: "normal" | "tight";
|
585
|
+
zIndex?: React.CSSProperties["zIndex"];
|
586
|
+
listOverflow?: React.CSSProperties["overflow"];
|
587
|
+
listMaxHeight?: React.CSSProperties["height"];
|
588
|
+
listWidth?: React.CSSProperties["width"];
|
589
|
+
portal?: string | React.RefObject<HTMLElement>;
|
580
590
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
581
591
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
582
|
-
closeAfterSelect?: boolean
|
583
|
-
onChangeValue?: (
|
584
|
-
onScroll?: (
|
585
|
-
onToggle?: (
|
592
|
+
closeAfterSelect?: boolean;
|
593
|
+
onChangeValue?: (value: string) => void;
|
594
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
595
|
+
onToggle?: (isOpen: boolean) => void;
|
586
596
|
beforeList?: React.ReactNode;
|
587
597
|
afterList?: React.ReactNode;
|
588
|
-
virtual?: boolean
|
589
|
-
size?: string
|
590
|
-
view?: string
|
591
|
-
emptyStateDescription?: string
|
592
|
-
listHeight?:
|
598
|
+
virtual?: boolean;
|
599
|
+
size?: string;
|
600
|
+
view?: string;
|
601
|
+
emptyStateDescription?: string;
|
602
|
+
listHeight?: React.CSSProperties["height"];
|
593
603
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
594
|
-
readOnly?: true
|
595
|
-
disabled?: boolean
|
596
|
-
alwaysOpened?: false
|
604
|
+
readOnly?: true;
|
605
|
+
disabled?: boolean;
|
606
|
+
alwaysOpened?: false;
|
597
607
|
} & {
|
598
|
-
name?:
|
599
|
-
defaultValue?:
|
608
|
+
name?: never;
|
609
|
+
defaultValue?: never;
|
600
610
|
} & {
|
601
|
-
multiple?: false
|
602
|
-
value?: string
|
611
|
+
multiple?: false;
|
612
|
+
value?: string;
|
603
613
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
604
|
-
isTargetAmount?:
|
605
|
-
targetAmount?:
|
606
|
-
renderValue?:
|
614
|
+
isTargetAmount?: never | false;
|
615
|
+
targetAmount?: never;
|
616
|
+
renderValue?: never;
|
617
|
+
selectAllOptions?: never;
|
607
618
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
608
619
|
hintText: string;
|
609
|
-
hintTrigger?: "hover" | "click"
|
610
|
-
hintView?: string
|
611
|
-
hintSize?: string
|
620
|
+
hintTrigger?: "hover" | "click";
|
621
|
+
hintView?: string;
|
622
|
+
hintSize?: string;
|
612
623
|
hintTargetIcon?: React.ReactNode;
|
613
|
-
hintTargetPlacement?: "
|
614
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
615
|
-
hintHasArrow?: boolean
|
616
|
-
hintOffset?: [number, number]
|
617
|
-
hintWidth?: string
|
624
|
+
hintTargetPlacement?: "inner" | "outer";
|
625
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
626
|
+
hintHasArrow?: boolean;
|
627
|
+
hintOffset?: [number, number];
|
628
|
+
hintWidth?: string;
|
618
629
|
hintContentLeft?: React.ReactNode;
|
619
630
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
620
631
|
items: ComboboxItemOption[];
|
621
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
622
|
-
placeholder?: string
|
623
|
-
helperText?: string
|
624
|
-
contentLeft?: React.ReactElement
|
625
|
-
textBefore?: string
|
626
|
-
textAfter?: string
|
627
|
-
variant?: "normal" | "tight"
|
628
|
-
zIndex?:
|
629
|
-
listOverflow?:
|
630
|
-
listMaxHeight?:
|
631
|
-
listWidth?:
|
632
|
-
portal?: string | React.RefObject<HTMLElement
|
632
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
633
|
+
placeholder?: string;
|
634
|
+
helperText?: string;
|
635
|
+
contentLeft?: React.ReactElement;
|
636
|
+
textBefore?: string;
|
637
|
+
textAfter?: string;
|
638
|
+
variant?: "normal" | "tight";
|
639
|
+
zIndex?: React.CSSProperties["zIndex"];
|
640
|
+
listOverflow?: React.CSSProperties["overflow"];
|
641
|
+
listMaxHeight?: React.CSSProperties["height"];
|
642
|
+
listWidth?: React.CSSProperties["width"];
|
643
|
+
portal?: string | React.RefObject<HTMLElement>;
|
633
644
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
634
645
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
635
|
-
closeAfterSelect?: boolean
|
636
|
-
onChangeValue?: (
|
637
|
-
onScroll?: (
|
638
|
-
onToggle?: (
|
646
|
+
closeAfterSelect?: boolean;
|
647
|
+
onChangeValue?: (value: string) => void;
|
648
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
649
|
+
onToggle?: (isOpen: boolean) => void;
|
639
650
|
beforeList?: React.ReactNode;
|
640
651
|
afterList?: React.ReactNode;
|
641
|
-
virtual?: boolean
|
642
|
-
size?: string
|
643
|
-
view?: string
|
644
|
-
emptyStateDescription?: string
|
645
|
-
listHeight?:
|
652
|
+
virtual?: boolean;
|
653
|
+
size?: string;
|
654
|
+
view?: string;
|
655
|
+
emptyStateDescription?: string;
|
656
|
+
listHeight?: React.CSSProperties["height"];
|
646
657
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
647
|
-
readOnly?: true
|
648
|
-
disabled?: boolean
|
649
|
-
alwaysOpened?: false
|
658
|
+
readOnly?: true;
|
659
|
+
disabled?: boolean;
|
660
|
+
alwaysOpened?: false;
|
650
661
|
} & {
|
651
|
-
name?:
|
652
|
-
defaultValue?:
|
662
|
+
name?: never;
|
663
|
+
defaultValue?: never;
|
653
664
|
} & {
|
654
|
-
multiple?: false
|
655
|
-
value?: string
|
665
|
+
multiple?: false;
|
666
|
+
value?: string;
|
656
667
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
657
|
-
isTargetAmount?:
|
658
|
-
targetAmount?:
|
659
|
-
renderValue?:
|
668
|
+
isTargetAmount?: never | false;
|
669
|
+
targetAmount?: never;
|
670
|
+
renderValue?: never;
|
671
|
+
selectAllOptions?: never;
|
660
672
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
661
|
-
hintTrigger?:
|
662
|
-
hintText?:
|
663
|
-
hintView?:
|
664
|
-
hintSize?:
|
665
|
-
hintTargetIcon?:
|
666
|
-
hintTargetPlacement?:
|
667
|
-
hintPlacement?:
|
668
|
-
hintHasArrow?:
|
669
|
-
hintOffset?:
|
670
|
-
hintWidth?:
|
671
|
-
hintContentLeft?:
|
673
|
+
hintTrigger?: never;
|
674
|
+
hintText?: never;
|
675
|
+
hintView?: never;
|
676
|
+
hintSize?: never;
|
677
|
+
hintTargetIcon?: never;
|
678
|
+
hintTargetPlacement?: never;
|
679
|
+
hintPlacement?: never;
|
680
|
+
hintHasArrow?: never;
|
681
|
+
hintOffset?: never;
|
682
|
+
hintWidth?: never;
|
683
|
+
hintContentLeft?: never;
|
672
684
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
673
685
|
items: ComboboxItemOption[];
|
674
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
675
|
-
placeholder?: string
|
676
|
-
helperText?: string
|
677
|
-
contentLeft?: React.ReactElement
|
678
|
-
textBefore?: string
|
679
|
-
textAfter?: string
|
680
|
-
variant?: "normal" | "tight"
|
681
|
-
zIndex?:
|
682
|
-
listOverflow?:
|
683
|
-
listMaxHeight?:
|
684
|
-
listWidth?:
|
685
|
-
portal?: string | React.RefObject<HTMLElement
|
686
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
687
|
+
placeholder?: string;
|
688
|
+
helperText?: string;
|
689
|
+
contentLeft?: React.ReactElement;
|
690
|
+
textBefore?: string;
|
691
|
+
textAfter?: string;
|
692
|
+
variant?: "normal" | "tight";
|
693
|
+
zIndex?: React.CSSProperties["zIndex"];
|
694
|
+
listOverflow?: React.CSSProperties["overflow"];
|
695
|
+
listMaxHeight?: React.CSSProperties["height"];
|
696
|
+
listWidth?: React.CSSProperties["width"];
|
697
|
+
portal?: string | React.RefObject<HTMLElement>;
|
686
698
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
687
699
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
688
|
-
closeAfterSelect?: boolean
|
689
|
-
onChangeValue?: (
|
690
|
-
onScroll?: (
|
691
|
-
onToggle?: (
|
700
|
+
closeAfterSelect?: boolean;
|
701
|
+
onChangeValue?: (value: string) => void;
|
702
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
703
|
+
onToggle?: (isOpen: boolean) => void;
|
692
704
|
beforeList?: React.ReactNode;
|
693
705
|
afterList?: React.ReactNode;
|
694
|
-
virtual?: boolean
|
695
|
-
size?: string
|
696
|
-
view?: string
|
697
|
-
emptyStateDescription?: string
|
698
|
-
listHeight?:
|
706
|
+
virtual?: boolean;
|
707
|
+
size?: string;
|
708
|
+
view?: string;
|
709
|
+
emptyStateDescription?: string;
|
710
|
+
listHeight?: React.CSSProperties["height"];
|
699
711
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
700
|
-
readOnly?: true
|
701
|
-
disabled?: boolean
|
702
|
-
alwaysOpened?: false
|
712
|
+
readOnly?: true;
|
713
|
+
disabled?: boolean;
|
714
|
+
alwaysOpened?: false;
|
703
715
|
} & {
|
704
|
-
name?:
|
705
|
-
defaultValue?:
|
716
|
+
name?: never;
|
717
|
+
defaultValue?: never;
|
706
718
|
} & {
|
707
719
|
multiple: true;
|
708
|
-
value?: string[]
|
720
|
+
value?: string[];
|
709
721
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
710
|
-
isTargetAmount?: true
|
711
|
-
targetAmount?: number
|
722
|
+
isTargetAmount?: true;
|
723
|
+
targetAmount?: number;
|
712
724
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
725
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
713
726
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
714
727
|
hintText: string;
|
715
|
-
hintTrigger?: "hover" | "click"
|
716
|
-
hintView?: string
|
717
|
-
hintSize?: string
|
728
|
+
hintTrigger?: "hover" | "click";
|
729
|
+
hintView?: string;
|
730
|
+
hintSize?: string;
|
718
731
|
hintTargetIcon?: React.ReactNode;
|
719
|
-
hintTargetPlacement?: "
|
720
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
721
|
-
hintHasArrow?: boolean
|
722
|
-
hintOffset?: [number, number]
|
723
|
-
hintWidth?: string
|
732
|
+
hintTargetPlacement?: "inner" | "outer";
|
733
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
734
|
+
hintHasArrow?: boolean;
|
735
|
+
hintOffset?: [number, number];
|
736
|
+
hintWidth?: string;
|
724
737
|
hintContentLeft?: React.ReactNode;
|
725
738
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
726
739
|
items: ComboboxItemOption[];
|
727
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
728
|
-
placeholder?: string
|
729
|
-
helperText?: string
|
730
|
-
contentLeft?: React.ReactElement
|
731
|
-
textBefore?: string
|
732
|
-
textAfter?: string
|
733
|
-
variant?: "normal" | "tight"
|
734
|
-
zIndex?:
|
735
|
-
listOverflow?:
|
736
|
-
listMaxHeight?:
|
737
|
-
listWidth?:
|
738
|
-
portal?: string | React.RefObject<HTMLElement
|
740
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
741
|
+
placeholder?: string;
|
742
|
+
helperText?: string;
|
743
|
+
contentLeft?: React.ReactElement;
|
744
|
+
textBefore?: string;
|
745
|
+
textAfter?: string;
|
746
|
+
variant?: "normal" | "tight";
|
747
|
+
zIndex?: React.CSSProperties["zIndex"];
|
748
|
+
listOverflow?: React.CSSProperties["overflow"];
|
749
|
+
listMaxHeight?: React.CSSProperties["height"];
|
750
|
+
listWidth?: React.CSSProperties["width"];
|
751
|
+
portal?: string | React.RefObject<HTMLElement>;
|
739
752
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
740
753
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
741
|
-
closeAfterSelect?: boolean
|
742
|
-
onChangeValue?: (
|
743
|
-
onScroll?: (
|
744
|
-
onToggle?: (
|
754
|
+
closeAfterSelect?: boolean;
|
755
|
+
onChangeValue?: (value: string) => void;
|
756
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
757
|
+
onToggle?: (isOpen: boolean) => void;
|
745
758
|
beforeList?: React.ReactNode;
|
746
759
|
afterList?: React.ReactNode;
|
747
|
-
virtual?: boolean
|
748
|
-
size?: string
|
749
|
-
view?: string
|
750
|
-
emptyStateDescription?: string
|
751
|
-
listHeight?:
|
760
|
+
virtual?: boolean;
|
761
|
+
size?: string;
|
762
|
+
view?: string;
|
763
|
+
emptyStateDescription?: string;
|
764
|
+
listHeight?: React.CSSProperties["height"];
|
752
765
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
753
|
-
readOnly?: true
|
754
|
-
disabled?: boolean
|
755
|
-
alwaysOpened?: false
|
766
|
+
readOnly?: true;
|
767
|
+
disabled?: boolean;
|
768
|
+
alwaysOpened?: false;
|
756
769
|
} & {
|
757
|
-
name?:
|
758
|
-
defaultValue?:
|
770
|
+
name?: never;
|
771
|
+
defaultValue?: never;
|
759
772
|
} & {
|
760
773
|
multiple: true;
|
761
|
-
value?: string[]
|
774
|
+
value?: string[];
|
762
775
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
763
|
-
isTargetAmount?: true
|
764
|
-
targetAmount?: number
|
776
|
+
isTargetAmount?: true;
|
777
|
+
targetAmount?: number;
|
765
778
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
779
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
766
780
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
767
|
-
hintTrigger?:
|
768
|
-
hintText?:
|
769
|
-
hintView?:
|
770
|
-
hintSize?:
|
771
|
-
hintTargetIcon?:
|
772
|
-
hintTargetPlacement?:
|
773
|
-
hintPlacement?:
|
774
|
-
hintHasArrow?:
|
775
|
-
hintOffset?:
|
776
|
-
hintWidth?:
|
777
|
-
hintContentLeft?:
|
781
|
+
hintTrigger?: never;
|
782
|
+
hintText?: never;
|
783
|
+
hintView?: never;
|
784
|
+
hintSize?: never;
|
785
|
+
hintTargetIcon?: never;
|
786
|
+
hintTargetPlacement?: never;
|
787
|
+
hintPlacement?: never;
|
788
|
+
hintHasArrow?: never;
|
789
|
+
hintOffset?: never;
|
790
|
+
hintWidth?: never;
|
791
|
+
hintContentLeft?: never;
|
778
792
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
779
793
|
items: ComboboxItemOption[];
|
780
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
781
|
-
placeholder?: string
|
782
|
-
helperText?: string
|
783
|
-
contentLeft?: React.ReactElement
|
784
|
-
textBefore?: string
|
785
|
-
textAfter?: string
|
786
|
-
variant?: "normal" | "tight"
|
787
|
-
zIndex?:
|
788
|
-
listOverflow?:
|
789
|
-
listMaxHeight?:
|
790
|
-
listWidth?:
|
791
|
-
portal?: string | React.RefObject<HTMLElement
|
794
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
795
|
+
placeholder?: string;
|
796
|
+
helperText?: string;
|
797
|
+
contentLeft?: React.ReactElement;
|
798
|
+
textBefore?: string;
|
799
|
+
textAfter?: string;
|
800
|
+
variant?: "normal" | "tight";
|
801
|
+
zIndex?: React.CSSProperties["zIndex"];
|
802
|
+
listOverflow?: React.CSSProperties["overflow"];
|
803
|
+
listMaxHeight?: React.CSSProperties["height"];
|
804
|
+
listWidth?: React.CSSProperties["width"];
|
805
|
+
portal?: string | React.RefObject<HTMLElement>;
|
792
806
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
793
807
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
794
|
-
closeAfterSelect?: boolean
|
795
|
-
onChangeValue?: (
|
796
|
-
onScroll?: (
|
797
|
-
onToggle?: (
|
808
|
+
closeAfterSelect?: boolean;
|
809
|
+
onChangeValue?: (value: string) => void;
|
810
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
811
|
+
onToggle?: (isOpen: boolean) => void;
|
798
812
|
beforeList?: React.ReactNode;
|
799
813
|
afterList?: React.ReactNode;
|
800
|
-
virtual?: boolean
|
801
|
-
size?: string
|
802
|
-
view?: string
|
803
|
-
emptyStateDescription?: string
|
804
|
-
listHeight?:
|
814
|
+
virtual?: boolean;
|
815
|
+
size?: string;
|
816
|
+
view?: string;
|
817
|
+
emptyStateDescription?: string;
|
818
|
+
listHeight?: React.CSSProperties["height"];
|
805
819
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
806
|
-
readOnly?: true
|
807
|
-
disabled?: boolean
|
808
|
-
alwaysOpened?: false
|
820
|
+
readOnly?: true;
|
821
|
+
disabled?: boolean;
|
822
|
+
alwaysOpened?: false;
|
809
823
|
} & {
|
810
824
|
name: string;
|
811
|
-
onChange?: React.ChangeEventHandler
|
825
|
+
onChange?: React.ChangeEventHandler;
|
812
826
|
} & {
|
813
827
|
multiple: true;
|
814
|
-
defaultValue?: string[]
|
815
|
-
value?:
|
816
|
-
isTargetAmount?: true
|
817
|
-
targetAmount?: number
|
828
|
+
defaultValue?: string[];
|
829
|
+
value?: never;
|
830
|
+
isTargetAmount?: true;
|
831
|
+
targetAmount?: number;
|
818
832
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
833
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
819
834
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
820
835
|
hintText: string;
|
821
|
-
hintTrigger?: "hover" | "click"
|
822
|
-
hintView?: string
|
823
|
-
hintSize?: string
|
836
|
+
hintTrigger?: "hover" | "click";
|
837
|
+
hintView?: string;
|
838
|
+
hintSize?: string;
|
824
839
|
hintTargetIcon?: React.ReactNode;
|
825
|
-
hintTargetPlacement?: "
|
826
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
827
|
-
hintHasArrow?: boolean
|
828
|
-
hintOffset?: [number, number]
|
829
|
-
hintWidth?: string
|
840
|
+
hintTargetPlacement?: "inner" | "outer";
|
841
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
842
|
+
hintHasArrow?: boolean;
|
843
|
+
hintOffset?: [number, number];
|
844
|
+
hintWidth?: string;
|
830
845
|
hintContentLeft?: React.ReactNode;
|
831
846
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
832
847
|
items: ComboboxItemOption[];
|
833
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
834
|
-
placeholder?: string
|
835
|
-
helperText?: string
|
836
|
-
contentLeft?: React.ReactElement
|
837
|
-
textBefore?: string
|
838
|
-
textAfter?: string
|
839
|
-
variant?: "normal" | "tight"
|
840
|
-
zIndex?:
|
841
|
-
listOverflow?:
|
842
|
-
listMaxHeight?:
|
843
|
-
listWidth?:
|
844
|
-
portal?: string | React.RefObject<HTMLElement
|
848
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
849
|
+
placeholder?: string;
|
850
|
+
helperText?: string;
|
851
|
+
contentLeft?: React.ReactElement;
|
852
|
+
textBefore?: string;
|
853
|
+
textAfter?: string;
|
854
|
+
variant?: "normal" | "tight";
|
855
|
+
zIndex?: React.CSSProperties["zIndex"];
|
856
|
+
listOverflow?: React.CSSProperties["overflow"];
|
857
|
+
listMaxHeight?: React.CSSProperties["height"];
|
858
|
+
listWidth?: React.CSSProperties["width"];
|
859
|
+
portal?: string | React.RefObject<HTMLElement>;
|
845
860
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
846
861
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
847
|
-
closeAfterSelect?: boolean
|
848
|
-
onChangeValue?: (
|
849
|
-
onScroll?: (
|
850
|
-
onToggle?: (
|
862
|
+
closeAfterSelect?: boolean;
|
863
|
+
onChangeValue?: (value: string) => void;
|
864
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
865
|
+
onToggle?: (isOpen: boolean) => void;
|
851
866
|
beforeList?: React.ReactNode;
|
852
867
|
afterList?: React.ReactNode;
|
853
|
-
virtual?: boolean
|
854
|
-
size?: string
|
855
|
-
view?: string
|
856
|
-
emptyStateDescription?: string
|
857
|
-
listHeight?:
|
868
|
+
virtual?: boolean;
|
869
|
+
size?: string;
|
870
|
+
view?: string;
|
871
|
+
emptyStateDescription?: string;
|
872
|
+
listHeight?: React.CSSProperties["height"];
|
858
873
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
859
|
-
readOnly?: true
|
860
|
-
disabled?: boolean
|
861
|
-
alwaysOpened?: false
|
874
|
+
readOnly?: true;
|
875
|
+
disabled?: boolean;
|
876
|
+
alwaysOpened?: false;
|
862
877
|
} & {
|
863
878
|
name: string;
|
864
|
-
onChange?: React.ChangeEventHandler
|
879
|
+
onChange?: React.ChangeEventHandler;
|
865
880
|
} & {
|
866
881
|
multiple: true;
|
867
|
-
defaultValue?: string[]
|
868
|
-
value?:
|
869
|
-
isTargetAmount?: true
|
870
|
-
targetAmount?: number
|
882
|
+
defaultValue?: string[];
|
883
|
+
value?: never;
|
884
|
+
isTargetAmount?: true;
|
885
|
+
targetAmount?: number;
|
871
886
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
887
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
872
888
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
873
|
-
hintTrigger?:
|
874
|
-
hintText?:
|
875
|
-
hintView?:
|
876
|
-
hintSize?:
|
877
|
-
hintTargetIcon?:
|
878
|
-
hintTargetPlacement?:
|
879
|
-
hintPlacement?:
|
880
|
-
hintHasArrow?:
|
881
|
-
hintOffset?:
|
882
|
-
hintWidth?:
|
883
|
-
hintContentLeft?:
|
889
|
+
hintTrigger?: never;
|
890
|
+
hintText?: never;
|
891
|
+
hintView?: never;
|
892
|
+
hintSize?: never;
|
893
|
+
hintTargetIcon?: never;
|
894
|
+
hintTargetPlacement?: never;
|
895
|
+
hintPlacement?: never;
|
896
|
+
hintHasArrow?: never;
|
897
|
+
hintOffset?: never;
|
898
|
+
hintWidth?: never;
|
899
|
+
hintContentLeft?: never;
|
884
900
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
885
901
|
items: ComboboxItemOption[];
|
886
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
887
|
-
placeholder?: string
|
888
|
-
helperText?: string
|
889
|
-
contentLeft?: React.ReactElement
|
890
|
-
textBefore?: string
|
891
|
-
textAfter?: string
|
892
|
-
variant?: "normal" | "tight"
|
893
|
-
zIndex?:
|
894
|
-
listOverflow?:
|
895
|
-
listMaxHeight?:
|
896
|
-
listWidth?:
|
897
|
-
portal?: string | React.RefObject<HTMLElement
|
902
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
903
|
+
placeholder?: string;
|
904
|
+
helperText?: string;
|
905
|
+
contentLeft?: React.ReactElement;
|
906
|
+
textBefore?: string;
|
907
|
+
textAfter?: string;
|
908
|
+
variant?: "normal" | "tight";
|
909
|
+
zIndex?: React.CSSProperties["zIndex"];
|
910
|
+
listOverflow?: React.CSSProperties["overflow"];
|
911
|
+
listMaxHeight?: React.CSSProperties["height"];
|
912
|
+
listWidth?: React.CSSProperties["width"];
|
913
|
+
portal?: string | React.RefObject<HTMLElement>;
|
898
914
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
899
915
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
900
|
-
closeAfterSelect?: boolean
|
901
|
-
onChangeValue?: (
|
902
|
-
onScroll?: (
|
903
|
-
onToggle?: (
|
916
|
+
closeAfterSelect?: boolean;
|
917
|
+
onChangeValue?: (value: string) => void;
|
918
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
919
|
+
onToggle?: (isOpen: boolean) => void;
|
904
920
|
beforeList?: React.ReactNode;
|
905
921
|
afterList?: React.ReactNode;
|
906
|
-
virtual?: boolean
|
907
|
-
size?: string
|
908
|
-
view?: string
|
909
|
-
emptyStateDescription?: string
|
910
|
-
listHeight?:
|
922
|
+
virtual?: boolean;
|
923
|
+
size?: string;
|
924
|
+
view?: string;
|
925
|
+
emptyStateDescription?: string;
|
926
|
+
listHeight?: React.CSSProperties["height"];
|
911
927
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
912
|
-
readOnly?: false
|
913
|
-
disabled?: false
|
914
|
-
alwaysOpened?: true
|
928
|
+
readOnly?: false;
|
929
|
+
disabled?: false;
|
930
|
+
alwaysOpened?: true;
|
915
931
|
} & {
|
916
932
|
name: string;
|
917
|
-
onChange?: React.ChangeEventHandler
|
933
|
+
onChange?: React.ChangeEventHandler;
|
918
934
|
} & {
|
919
|
-
multiple?: false
|
920
|
-
defaultValue?: string
|
921
|
-
value?:
|
922
|
-
isTargetAmount?:
|
923
|
-
targetAmount?:
|
924
|
-
renderValue?:
|
935
|
+
multiple?: false;
|
936
|
+
defaultValue?: string;
|
937
|
+
value?: never;
|
938
|
+
isTargetAmount?: never | false;
|
939
|
+
targetAmount?: never;
|
940
|
+
renderValue?: never;
|
941
|
+
selectAllOptions?: never;
|
925
942
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
926
943
|
hintText: string;
|
927
|
-
hintTrigger?: "hover" | "click"
|
928
|
-
hintView?: string
|
929
|
-
hintSize?: string
|
944
|
+
hintTrigger?: "hover" | "click";
|
945
|
+
hintView?: string;
|
946
|
+
hintSize?: string;
|
930
947
|
hintTargetIcon?: React.ReactNode;
|
931
|
-
hintTargetPlacement?: "
|
932
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
933
|
-
hintHasArrow?: boolean
|
934
|
-
hintOffset?: [number, number]
|
935
|
-
hintWidth?: string
|
948
|
+
hintTargetPlacement?: "inner" | "outer";
|
949
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
950
|
+
hintHasArrow?: boolean;
|
951
|
+
hintOffset?: [number, number];
|
952
|
+
hintWidth?: string;
|
936
953
|
hintContentLeft?: React.ReactNode;
|
937
954
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
938
955
|
items: ComboboxItemOption[];
|
939
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
940
|
-
placeholder?: string
|
941
|
-
helperText?: string
|
942
|
-
contentLeft?: React.ReactElement
|
943
|
-
textBefore?: string
|
944
|
-
textAfter?: string
|
945
|
-
variant?: "normal" | "tight"
|
946
|
-
zIndex?:
|
947
|
-
listOverflow?:
|
948
|
-
listMaxHeight?:
|
949
|
-
listWidth?:
|
950
|
-
portal?: string | React.RefObject<HTMLElement
|
956
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
957
|
+
placeholder?: string;
|
958
|
+
helperText?: string;
|
959
|
+
contentLeft?: React.ReactElement;
|
960
|
+
textBefore?: string;
|
961
|
+
textAfter?: string;
|
962
|
+
variant?: "normal" | "tight";
|
963
|
+
zIndex?: React.CSSProperties["zIndex"];
|
964
|
+
listOverflow?: React.CSSProperties["overflow"];
|
965
|
+
listMaxHeight?: React.CSSProperties["height"];
|
966
|
+
listWidth?: React.CSSProperties["width"];
|
967
|
+
portal?: string | React.RefObject<HTMLElement>;
|
951
968
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
952
969
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
953
|
-
closeAfterSelect?: boolean
|
954
|
-
onChangeValue?: (
|
955
|
-
onScroll?: (
|
956
|
-
onToggle?: (
|
970
|
+
closeAfterSelect?: boolean;
|
971
|
+
onChangeValue?: (value: string) => void;
|
972
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
973
|
+
onToggle?: (isOpen: boolean) => void;
|
957
974
|
beforeList?: React.ReactNode;
|
958
975
|
afterList?: React.ReactNode;
|
959
|
-
virtual?: boolean
|
960
|
-
size?: string
|
961
|
-
view?: string
|
962
|
-
emptyStateDescription?: string
|
963
|
-
listHeight?:
|
976
|
+
virtual?: boolean;
|
977
|
+
size?: string;
|
978
|
+
view?: string;
|
979
|
+
emptyStateDescription?: string;
|
980
|
+
listHeight?: React.CSSProperties["height"];
|
964
981
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
965
|
-
readOnly?: false
|
966
|
-
disabled?: false
|
967
|
-
alwaysOpened?: true
|
982
|
+
readOnly?: false;
|
983
|
+
disabled?: false;
|
984
|
+
alwaysOpened?: true;
|
968
985
|
} & {
|
969
986
|
name: string;
|
970
|
-
onChange?: React.ChangeEventHandler
|
987
|
+
onChange?: React.ChangeEventHandler;
|
971
988
|
} & {
|
972
|
-
multiple?: false
|
973
|
-
defaultValue?: string
|
974
|
-
value?:
|
975
|
-
isTargetAmount?:
|
976
|
-
targetAmount?:
|
977
|
-
renderValue?:
|
989
|
+
multiple?: false;
|
990
|
+
defaultValue?: string;
|
991
|
+
value?: never;
|
992
|
+
isTargetAmount?: never | false;
|
993
|
+
targetAmount?: never;
|
994
|
+
renderValue?: never;
|
995
|
+
selectAllOptions?: never;
|
978
996
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
979
|
-
hintTrigger?:
|
980
|
-
hintText?:
|
981
|
-
hintView?:
|
982
|
-
hintSize?:
|
983
|
-
hintTargetIcon?:
|
984
|
-
hintTargetPlacement?:
|
985
|
-
hintPlacement?:
|
986
|
-
hintHasArrow?:
|
987
|
-
hintOffset?:
|
988
|
-
hintWidth?:
|
989
|
-
hintContentLeft?:
|
997
|
+
hintTrigger?: never;
|
998
|
+
hintText?: never;
|
999
|
+
hintView?: never;
|
1000
|
+
hintSize?: never;
|
1001
|
+
hintTargetIcon?: never;
|
1002
|
+
hintTargetPlacement?: never;
|
1003
|
+
hintPlacement?: never;
|
1004
|
+
hintHasArrow?: never;
|
1005
|
+
hintOffset?: never;
|
1006
|
+
hintWidth?: never;
|
1007
|
+
hintContentLeft?: never;
|
990
1008
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
991
1009
|
items: ComboboxItemOption[];
|
992
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
993
|
-
placeholder?: string
|
994
|
-
helperText?: string
|
995
|
-
contentLeft?: React.ReactElement
|
996
|
-
textBefore?: string
|
997
|
-
textAfter?: string
|
998
|
-
variant?: "normal" | "tight"
|
999
|
-
zIndex?:
|
1000
|
-
listOverflow?:
|
1001
|
-
listMaxHeight?:
|
1002
|
-
listWidth?:
|
1003
|
-
portal?: string | React.RefObject<HTMLElement
|
1010
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1011
|
+
placeholder?: string;
|
1012
|
+
helperText?: string;
|
1013
|
+
contentLeft?: React.ReactElement;
|
1014
|
+
textBefore?: string;
|
1015
|
+
textAfter?: string;
|
1016
|
+
variant?: "normal" | "tight";
|
1017
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1018
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1019
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1020
|
+
listWidth?: React.CSSProperties["width"];
|
1021
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1004
1022
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1005
1023
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1006
|
-
closeAfterSelect?: boolean
|
1007
|
-
onChangeValue?: (
|
1008
|
-
onScroll?: (
|
1009
|
-
onToggle?: (
|
1024
|
+
closeAfterSelect?: boolean;
|
1025
|
+
onChangeValue?: (value: string) => void;
|
1026
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1027
|
+
onToggle?: (isOpen: boolean) => void;
|
1010
1028
|
beforeList?: React.ReactNode;
|
1011
1029
|
afterList?: React.ReactNode;
|
1012
|
-
virtual?: boolean
|
1013
|
-
size?: string
|
1014
|
-
view?: string
|
1015
|
-
emptyStateDescription?: string
|
1016
|
-
listHeight?:
|
1030
|
+
virtual?: boolean;
|
1031
|
+
size?: string;
|
1032
|
+
view?: string;
|
1033
|
+
emptyStateDescription?: string;
|
1034
|
+
listHeight?: React.CSSProperties["height"];
|
1017
1035
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1018
|
-
readOnly?: false
|
1019
|
-
disabled?: false
|
1020
|
-
alwaysOpened?: true
|
1036
|
+
readOnly?: false;
|
1037
|
+
disabled?: false;
|
1038
|
+
alwaysOpened?: true;
|
1021
1039
|
} & {
|
1022
|
-
name?:
|
1023
|
-
defaultValue?:
|
1040
|
+
name?: never;
|
1041
|
+
defaultValue?: never;
|
1024
1042
|
} & {
|
1025
|
-
multiple?: false
|
1026
|
-
value?: string
|
1043
|
+
multiple?: false;
|
1044
|
+
value?: string;
|
1027
1045
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1028
|
-
isTargetAmount?:
|
1029
|
-
targetAmount?:
|
1030
|
-
renderValue?:
|
1046
|
+
isTargetAmount?: never | false;
|
1047
|
+
targetAmount?: never;
|
1048
|
+
renderValue?: never;
|
1049
|
+
selectAllOptions?: never;
|
1031
1050
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1032
1051
|
hintText: string;
|
1033
|
-
hintTrigger?: "hover" | "click"
|
1034
|
-
hintView?: string
|
1035
|
-
hintSize?: string
|
1052
|
+
hintTrigger?: "hover" | "click";
|
1053
|
+
hintView?: string;
|
1054
|
+
hintSize?: string;
|
1036
1055
|
hintTargetIcon?: React.ReactNode;
|
1037
|
-
hintTargetPlacement?: "
|
1038
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
1039
|
-
hintHasArrow?: boolean
|
1040
|
-
hintOffset?: [number, number]
|
1041
|
-
hintWidth?: string
|
1056
|
+
hintTargetPlacement?: "inner" | "outer";
|
1057
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
1058
|
+
hintHasArrow?: boolean;
|
1059
|
+
hintOffset?: [number, number];
|
1060
|
+
hintWidth?: string;
|
1042
1061
|
hintContentLeft?: React.ReactNode;
|
1043
1062
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
1044
1063
|
items: ComboboxItemOption[];
|
1045
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
1046
|
-
placeholder?: string
|
1047
|
-
helperText?: string
|
1048
|
-
contentLeft?: React.ReactElement
|
1049
|
-
textBefore?: string
|
1050
|
-
textAfter?: string
|
1051
|
-
variant?: "normal" | "tight"
|
1052
|
-
zIndex?:
|
1053
|
-
listOverflow?:
|
1054
|
-
listMaxHeight?:
|
1055
|
-
listWidth?:
|
1056
|
-
portal?: string | React.RefObject<HTMLElement
|
1064
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1065
|
+
placeholder?: string;
|
1066
|
+
helperText?: string;
|
1067
|
+
contentLeft?: React.ReactElement;
|
1068
|
+
textBefore?: string;
|
1069
|
+
textAfter?: string;
|
1070
|
+
variant?: "normal" | "tight";
|
1071
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1072
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1073
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1074
|
+
listWidth?: React.CSSProperties["width"];
|
1075
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1057
1076
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1058
1077
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1059
|
-
closeAfterSelect?: boolean
|
1060
|
-
onChangeValue?: (
|
1061
|
-
onScroll?: (
|
1062
|
-
onToggle?: (
|
1078
|
+
closeAfterSelect?: boolean;
|
1079
|
+
onChangeValue?: (value: string) => void;
|
1080
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1081
|
+
onToggle?: (isOpen: boolean) => void;
|
1063
1082
|
beforeList?: React.ReactNode;
|
1064
1083
|
afterList?: React.ReactNode;
|
1065
|
-
virtual?: boolean
|
1066
|
-
size?: string
|
1067
|
-
view?: string
|
1068
|
-
emptyStateDescription?: string
|
1069
|
-
listHeight?:
|
1084
|
+
virtual?: boolean;
|
1085
|
+
size?: string;
|
1086
|
+
view?: string;
|
1087
|
+
emptyStateDescription?: string;
|
1088
|
+
listHeight?: React.CSSProperties["height"];
|
1070
1089
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1071
|
-
readOnly?: false
|
1072
|
-
disabled?: false
|
1073
|
-
alwaysOpened?: true
|
1090
|
+
readOnly?: false;
|
1091
|
+
disabled?: false;
|
1092
|
+
alwaysOpened?: true;
|
1074
1093
|
} & {
|
1075
|
-
name?:
|
1076
|
-
defaultValue?:
|
1094
|
+
name?: never;
|
1095
|
+
defaultValue?: never;
|
1077
1096
|
} & {
|
1078
|
-
multiple?: false
|
1079
|
-
value?: string
|
1097
|
+
multiple?: false;
|
1098
|
+
value?: string;
|
1080
1099
|
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1081
|
-
isTargetAmount?:
|
1082
|
-
targetAmount?:
|
1083
|
-
renderValue?:
|
1100
|
+
isTargetAmount?: never | false;
|
1101
|
+
targetAmount?: never;
|
1102
|
+
renderValue?: never;
|
1103
|
+
selectAllOptions?: never;
|
1084
1104
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1085
|
-
hintTrigger?:
|
1086
|
-
hintText?:
|
1087
|
-
hintView?:
|
1088
|
-
hintSize?:
|
1089
|
-
hintTargetIcon?:
|
1090
|
-
hintTargetPlacement?:
|
1091
|
-
hintPlacement?:
|
1092
|
-
hintHasArrow?:
|
1093
|
-
hintOffset?:
|
1094
|
-
hintWidth?:
|
1095
|
-
hintContentLeft?:
|
1105
|
+
hintTrigger?: never;
|
1106
|
+
hintText?: never;
|
1107
|
+
hintView?: never;
|
1108
|
+
hintSize?: never;
|
1109
|
+
hintTargetIcon?: never;
|
1110
|
+
hintTargetPlacement?: never;
|
1111
|
+
hintPlacement?: never;
|
1112
|
+
hintHasArrow?: never;
|
1113
|
+
hintOffset?: never;
|
1114
|
+
hintWidth?: never;
|
1115
|
+
hintContentLeft?: never;
|
1096
1116
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
1097
1117
|
items: ComboboxItemOption[];
|
1098
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
1099
|
-
placeholder?: string
|
1100
|
-
helperText?: string
|
1101
|
-
contentLeft?: React.ReactElement
|
1102
|
-
textBefore?: string
|
1103
|
-
textAfter?: string
|
1104
|
-
variant?: "normal" | "tight"
|
1105
|
-
zIndex?:
|
1106
|
-
listOverflow?:
|
1107
|
-
listMaxHeight?:
|
1108
|
-
listWidth?:
|
1109
|
-
portal?: string | React.RefObject<HTMLElement
|
1118
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1119
|
+
placeholder?: string;
|
1120
|
+
helperText?: string;
|
1121
|
+
contentLeft?: React.ReactElement;
|
1122
|
+
textBefore?: string;
|
1123
|
+
textAfter?: string;
|
1124
|
+
variant?: "normal" | "tight";
|
1125
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1126
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1127
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1128
|
+
listWidth?: React.CSSProperties["width"];
|
1129
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1110
1130
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1111
1131
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1112
|
-
closeAfterSelect?: boolean
|
1113
|
-
onChangeValue?: (
|
1114
|
-
onScroll?: (
|
1115
|
-
onToggle?: (
|
1132
|
+
closeAfterSelect?: boolean;
|
1133
|
+
onChangeValue?: (value: string) => void;
|
1134
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1135
|
+
onToggle?: (isOpen: boolean) => void;
|
1116
1136
|
beforeList?: React.ReactNode;
|
1117
1137
|
afterList?: React.ReactNode;
|
1118
|
-
virtual?: boolean
|
1119
|
-
size?: string
|
1120
|
-
view?: string
|
1121
|
-
emptyStateDescription?: string
|
1122
|
-
listHeight?:
|
1138
|
+
virtual?: boolean;
|
1139
|
+
size?: string;
|
1140
|
+
view?: string;
|
1141
|
+
emptyStateDescription?: string;
|
1142
|
+
listHeight?: React.CSSProperties["height"];
|
1123
1143
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1124
|
-
readOnly?: false
|
1125
|
-
disabled?: false
|
1126
|
-
alwaysOpened?: true
|
1144
|
+
readOnly?: false;
|
1145
|
+
disabled?: false;
|
1146
|
+
alwaysOpened?: true;
|
1127
1147
|
} & {
|
1128
|
-
name?:
|
1129
|
-
defaultValue?:
|
1148
|
+
name?: never;
|
1149
|
+
defaultValue?: never;
|
1130
1150
|
} & {
|
1131
1151
|
multiple: true;
|
1132
|
-
value?: string[]
|
1152
|
+
value?: string[];
|
1133
1153
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1134
|
-
isTargetAmount?: true
|
1135
|
-
targetAmount?: number
|
1154
|
+
isTargetAmount?: true;
|
1155
|
+
targetAmount?: number;
|
1136
1156
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1157
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
1137
1158
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1138
1159
|
hintText: string;
|
1139
|
-
hintTrigger?: "hover" | "click"
|
1140
|
-
hintView?: string
|
1141
|
-
hintSize?: string
|
1160
|
+
hintTrigger?: "hover" | "click";
|
1161
|
+
hintView?: string;
|
1162
|
+
hintSize?: string;
|
1142
1163
|
hintTargetIcon?: React.ReactNode;
|
1143
|
-
hintTargetPlacement?: "
|
1144
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
1145
|
-
hintHasArrow?: boolean
|
1146
|
-
hintOffset?: [number, number]
|
1147
|
-
hintWidth?: string
|
1164
|
+
hintTargetPlacement?: "inner" | "outer";
|
1165
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
1166
|
+
hintHasArrow?: boolean;
|
1167
|
+
hintOffset?: [number, number];
|
1168
|
+
hintWidth?: string;
|
1148
1169
|
hintContentLeft?: React.ReactNode;
|
1149
1170
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
1150
1171
|
items: ComboboxItemOption[];
|
1151
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
1152
|
-
placeholder?: string
|
1153
|
-
helperText?: string
|
1154
|
-
contentLeft?: React.ReactElement
|
1155
|
-
textBefore?: string
|
1156
|
-
textAfter?: string
|
1157
|
-
variant?: "normal" | "tight"
|
1158
|
-
zIndex?:
|
1159
|
-
listOverflow?:
|
1160
|
-
listMaxHeight?:
|
1161
|
-
listWidth?:
|
1162
|
-
portal?: string | React.RefObject<HTMLElement
|
1172
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1173
|
+
placeholder?: string;
|
1174
|
+
helperText?: string;
|
1175
|
+
contentLeft?: React.ReactElement;
|
1176
|
+
textBefore?: string;
|
1177
|
+
textAfter?: string;
|
1178
|
+
variant?: "normal" | "tight";
|
1179
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1180
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1181
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1182
|
+
listWidth?: React.CSSProperties["width"];
|
1183
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1163
1184
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1164
1185
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1165
|
-
closeAfterSelect?: boolean
|
1166
|
-
onChangeValue?: (
|
1167
|
-
onScroll?: (
|
1168
|
-
onToggle?: (
|
1186
|
+
closeAfterSelect?: boolean;
|
1187
|
+
onChangeValue?: (value: string) => void;
|
1188
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1189
|
+
onToggle?: (isOpen: boolean) => void;
|
1169
1190
|
beforeList?: React.ReactNode;
|
1170
1191
|
afterList?: React.ReactNode;
|
1171
|
-
virtual?: boolean
|
1172
|
-
size?: string
|
1173
|
-
view?: string
|
1174
|
-
emptyStateDescription?: string
|
1175
|
-
listHeight?:
|
1192
|
+
virtual?: boolean;
|
1193
|
+
size?: string;
|
1194
|
+
view?: string;
|
1195
|
+
emptyStateDescription?: string;
|
1196
|
+
listHeight?: React.CSSProperties["height"];
|
1176
1197
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1177
|
-
readOnly?: false
|
1178
|
-
disabled?: false
|
1179
|
-
alwaysOpened?: true
|
1198
|
+
readOnly?: false;
|
1199
|
+
disabled?: false;
|
1200
|
+
alwaysOpened?: true;
|
1180
1201
|
} & {
|
1181
|
-
name?:
|
1182
|
-
defaultValue?:
|
1202
|
+
name?: never;
|
1203
|
+
defaultValue?: never;
|
1183
1204
|
} & {
|
1184
1205
|
multiple: true;
|
1185
|
-
value?: string[]
|
1206
|
+
value?: string[];
|
1186
1207
|
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1187
|
-
isTargetAmount?: true
|
1188
|
-
targetAmount?: number
|
1208
|
+
isTargetAmount?: true;
|
1209
|
+
targetAmount?: number;
|
1189
1210
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1211
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
1190
1212
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1191
|
-
hintTrigger?:
|
1192
|
-
hintText?:
|
1193
|
-
hintView?:
|
1194
|
-
hintSize?:
|
1195
|
-
hintTargetIcon?:
|
1196
|
-
hintTargetPlacement?:
|
1197
|
-
hintPlacement?:
|
1198
|
-
hintHasArrow?:
|
1199
|
-
hintOffset?:
|
1200
|
-
hintWidth?:
|
1201
|
-
hintContentLeft?:
|
1213
|
+
hintTrigger?: never;
|
1214
|
+
hintText?: never;
|
1215
|
+
hintView?: never;
|
1216
|
+
hintSize?: never;
|
1217
|
+
hintTargetIcon?: never;
|
1218
|
+
hintTargetPlacement?: never;
|
1219
|
+
hintPlacement?: never;
|
1220
|
+
hintHasArrow?: never;
|
1221
|
+
hintOffset?: never;
|
1222
|
+
hintWidth?: never;
|
1223
|
+
hintContentLeft?: never;
|
1202
1224
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
1203
1225
|
items: ComboboxItemOption[];
|
1204
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
1205
|
-
placeholder?: string
|
1206
|
-
helperText?: string
|
1207
|
-
contentLeft?: React.ReactElement
|
1208
|
-
textBefore?: string
|
1209
|
-
textAfter?: string
|
1210
|
-
variant?: "normal" | "tight"
|
1211
|
-
zIndex?:
|
1212
|
-
listOverflow?:
|
1213
|
-
listMaxHeight?:
|
1214
|
-
listWidth?:
|
1215
|
-
portal?: string | React.RefObject<HTMLElement
|
1226
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1227
|
+
placeholder?: string;
|
1228
|
+
helperText?: string;
|
1229
|
+
contentLeft?: React.ReactElement;
|
1230
|
+
textBefore?: string;
|
1231
|
+
textAfter?: string;
|
1232
|
+
variant?: "normal" | "tight";
|
1233
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1234
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1235
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1236
|
+
listWidth?: React.CSSProperties["width"];
|
1237
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1216
1238
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1217
1239
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1218
|
-
closeAfterSelect?: boolean
|
1219
|
-
onChangeValue?: (
|
1220
|
-
onScroll?: (
|
1221
|
-
onToggle?: (
|
1240
|
+
closeAfterSelect?: boolean;
|
1241
|
+
onChangeValue?: (value: string) => void;
|
1242
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1243
|
+
onToggle?: (isOpen: boolean) => void;
|
1222
1244
|
beforeList?: React.ReactNode;
|
1223
1245
|
afterList?: React.ReactNode;
|
1224
|
-
virtual?: boolean
|
1225
|
-
size?: string
|
1226
|
-
view?: string
|
1227
|
-
emptyStateDescription?: string
|
1228
|
-
listHeight?:
|
1246
|
+
virtual?: boolean;
|
1247
|
+
size?: string;
|
1248
|
+
view?: string;
|
1249
|
+
emptyStateDescription?: string;
|
1250
|
+
listHeight?: React.CSSProperties["height"];
|
1229
1251
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1230
|
-
readOnly?: false
|
1231
|
-
disabled?: false
|
1232
|
-
alwaysOpened?: true
|
1252
|
+
readOnly?: false;
|
1253
|
+
disabled?: false;
|
1254
|
+
alwaysOpened?: true;
|
1233
1255
|
} & {
|
1234
1256
|
name: string;
|
1235
|
-
onChange?: React.ChangeEventHandler
|
1257
|
+
onChange?: React.ChangeEventHandler;
|
1236
1258
|
} & {
|
1237
1259
|
multiple: true;
|
1238
|
-
defaultValue?: string[]
|
1239
|
-
value?:
|
1240
|
-
isTargetAmount?: true
|
1241
|
-
targetAmount?: number
|
1260
|
+
defaultValue?: string[];
|
1261
|
+
value?: never;
|
1262
|
+
isTargetAmount?: true;
|
1263
|
+
targetAmount?: number;
|
1242
1264
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1265
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
1243
1266
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1244
1267
|
hintText: string;
|
1245
|
-
hintTrigger?: "hover" | "click"
|
1246
|
-
hintView?: string
|
1247
|
-
hintSize?: string
|
1268
|
+
hintTrigger?: "hover" | "click";
|
1269
|
+
hintView?: string;
|
1270
|
+
hintSize?: string;
|
1248
1271
|
hintTargetIcon?: React.ReactNode;
|
1249
|
-
hintTargetPlacement?: "
|
1250
|
-
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic
|
1251
|
-
hintHasArrow?: boolean
|
1252
|
-
hintOffset?: [number, number]
|
1253
|
-
hintWidth?: string
|
1272
|
+
hintTargetPlacement?: "inner" | "outer";
|
1273
|
+
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
1274
|
+
hintHasArrow?: boolean;
|
1275
|
+
hintOffset?: [number, number];
|
1276
|
+
hintWidth?: string;
|
1254
1277
|
hintContentLeft?: React.ReactNode;
|
1255
1278
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>) | ({
|
1256
1279
|
items: ComboboxItemOption[];
|
1257
|
-
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement
|
1258
|
-
placeholder?: string
|
1259
|
-
helperText?: string
|
1260
|
-
contentLeft?: React.ReactElement
|
1261
|
-
textBefore?: string
|
1262
|
-
textAfter?: string
|
1263
|
-
variant?: "normal" | "tight"
|
1264
|
-
zIndex?:
|
1265
|
-
listOverflow?:
|
1266
|
-
listMaxHeight?:
|
1267
|
-
listWidth?:
|
1268
|
-
portal?: string | React.RefObject<HTMLElement
|
1280
|
+
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement;
|
1281
|
+
placeholder?: string;
|
1282
|
+
helperText?: string;
|
1283
|
+
contentLeft?: React.ReactElement;
|
1284
|
+
textBefore?: string;
|
1285
|
+
textAfter?: string;
|
1286
|
+
variant?: "normal" | "tight";
|
1287
|
+
zIndex?: React.CSSProperties["zIndex"];
|
1288
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1289
|
+
listMaxHeight?: React.CSSProperties["height"];
|
1290
|
+
listWidth?: React.CSSProperties["width"];
|
1291
|
+
portal?: string | React.RefObject<HTMLElement>;
|
1269
1292
|
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1270
1293
|
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1271
|
-
closeAfterSelect?: boolean
|
1272
|
-
onChangeValue?: (
|
1273
|
-
onScroll?: (
|
1274
|
-
onToggle?: (
|
1294
|
+
closeAfterSelect?: boolean;
|
1295
|
+
onChangeValue?: (value: string) => void;
|
1296
|
+
onScroll?: (e: React.UIEvent<HTMLUListElement>) => void;
|
1297
|
+
onToggle?: (isOpen: boolean) => void;
|
1275
1298
|
beforeList?: React.ReactNode;
|
1276
1299
|
afterList?: React.ReactNode;
|
1277
|
-
virtual?: boolean
|
1278
|
-
size?: string
|
1279
|
-
view?: string
|
1280
|
-
emptyStateDescription?: string
|
1281
|
-
listHeight?:
|
1300
|
+
virtual?: boolean;
|
1301
|
+
size?: string;
|
1302
|
+
view?: string;
|
1303
|
+
emptyStateDescription?: string;
|
1304
|
+
listHeight?: React.CSSProperties["height"];
|
1282
1305
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1283
|
-
readOnly?: false
|
1284
|
-
disabled?: false
|
1285
|
-
alwaysOpened?: true
|
1306
|
+
readOnly?: false;
|
1307
|
+
disabled?: false;
|
1308
|
+
alwaysOpened?: true;
|
1286
1309
|
} & {
|
1287
1310
|
name: string;
|
1288
|
-
onChange?: React.ChangeEventHandler
|
1311
|
+
onChange?: React.ChangeEventHandler;
|
1289
1312
|
} & {
|
1290
1313
|
multiple: true;
|
1291
|
-
defaultValue?: string[]
|
1292
|
-
value?:
|
1293
|
-
isTargetAmount?: true
|
1294
|
-
targetAmount?: number
|
1314
|
+
defaultValue?: string[];
|
1315
|
+
value?: never;
|
1316
|
+
isTargetAmount?: true;
|
1317
|
+
targetAmount?: number;
|
1295
1318
|
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1319
|
+
selectAllOptions?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").SelectAllProps;
|
1296
1320
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1297
|
-
hintTrigger?:
|
1298
|
-
hintText?:
|
1299
|
-
hintView?:
|
1300
|
-
hintSize?:
|
1301
|
-
hintTargetIcon?:
|
1302
|
-
hintTargetPlacement?:
|
1303
|
-
hintPlacement?:
|
1304
|
-
hintHasArrow?:
|
1305
|
-
hintOffset?:
|
1306
|
-
hintWidth?:
|
1307
|
-
hintContentLeft?:
|
1321
|
+
hintTrigger?: never;
|
1322
|
+
hintText?: never;
|
1323
|
+
hintView?: never;
|
1324
|
+
hintSize?: never;
|
1325
|
+
hintTargetIcon?: never;
|
1326
|
+
hintTargetPlacement?: never;
|
1327
|
+
hintPlacement?: never;
|
1328
|
+
hintHasArrow?: never;
|
1329
|
+
hintOffset?: never;
|
1330
|
+
hintWidth?: never;
|
1331
|
+
hintContentLeft?: never;
|
1308
1332
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "value" | "name"> & React.RefAttributes<HTMLInputElement>))>;
|
1309
|
-
|
1310
|
-
|
1333
|
+
type PropsFromConfig = keyof typeof config['variations'];
|
1334
|
+
type PropsOld = ComponentProps<typeof ComboboxOld> & {
|
1311
1335
|
items?: never;
|
1312
1336
|
};
|
1313
|
-
|
1314
|
-
|
1315
|
-
declare const Combobox: <T extends ComboboxItemOption>(props: CommonProps<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement
|
1337
|
+
type PropsNew<T extends ComboboxItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1338
|
+
type CommonProps<T extends ComboboxItemOption> = PropsOld | PropsNew<T>;
|
1339
|
+
declare const Combobox: <T extends ComboboxItemOption>(props: CommonProps<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
|
1316
1340
|
export { Combobox };
|