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