@salutejs/plasma-web 1.571.1-canary.1868.14054564913.0 → 1.572.0-canary.1870.14062223595.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/api/plasma-web.api.md +1490 -1488
- package/components/Accordion/Accordion.d.ts +10 -9
- package/components/Attach/Attach.d.ts +159 -158
- package/components/Autocomplete/Autocomplete.d.ts +193 -192
- package/components/Avatar/Avatar.d.ts +47 -46
- package/components/AvatarGroup/AvatarGroup.d.ts +2 -1
- package/components/Badge/Badge.d.ts +41 -40
- package/components/Breadcrumbs/Breadcrumbs.d.ts +4 -3
- package/components/Button/Button.d.ts +36 -35
- package/components/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/components/Cell/Cell.d.ts +20 -19
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Chip/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +953 -953
- package/components/Combobox/Legacy/Combobox.d.ts +37 -36
- package/components/Counter/Counter.d.ts +1 -0
- package/components/DatePicker/DatePicker.d.ts +51 -50
- package/components/Divider/Divider.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +19 -18
- package/components/Dropdown/Dropdown.d.ts +52 -52
- package/components/Dropdown/components/DropdownItem.d.ts +14 -14
- package/components/Dropzone/Dropzone.d.ts +16 -15
- package/components/Editable/Editable.d.ts +1 -0
- package/components/EmptyState/EmptyState.d.ts +1 -0
- package/components/Flow/Flow.d.ts +2 -1
- package/components/Grid/Grid.d.ts +1 -0
- package/components/IconButton/IconButton.d.ts +36 -35
- package/components/Image/Image.d.ts +4 -3
- package/components/Indicator/Indicator.d.ts +1 -0
- package/components/Link/Link.d.ts +1 -0
- package/components/LinkButton/LinkButton.d.ts +9 -8
- package/components/Mask/Mask.d.ts +225 -224
- package/components/Note/Note.d.ts +10 -9
- package/components/NumberFormat/NumberFormat.d.ts +1 -1
- package/components/NumberInput/NumberInput.d.ts +39 -38
- package/components/Pagination/Pagination.d.ts +1 -0
- package/components/Popover/Popover.d.ts +1 -0
- package/components/Price/Price.d.ts +1 -0
- package/components/Progress/Progress.d.ts +1 -0
- package/components/Radiobox/Radiobox.d.ts +1 -1
- package/components/Range/Range.d.ts +106 -105
- package/components/Rating/Rating.d.ts +14 -13
- package/components/Segment/Segment.d.ts +9 -8
- package/components/Select/Select.d.ts +244 -244
- package/components/Sheet/Sheet.d.ts +1 -0
- package/components/Skeleton/Skeleton.d.ts +5 -4
- package/components/Slider/Slider.d.ts +113 -104
- package/components/Steps/Steps.d.ts +1 -0
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Tabs/TabItem.d.ts +14 -14
- package/components/Tabs/Tabs.d.ts +7 -5
- package/components/TextArea/TextArea.d.ts +206 -205
- package/components/TextArea/index.d.ts +4 -4
- package/components/TextField/TextField.d.ts +269 -261
- package/components/TextFieldGroup/TextFieldGroup.d.ts +13 -12
- package/components/Toast/Toast.d.ts +1 -0
- package/components/Tokens/Colors/Colors.styles.d.ts +26 -25
- package/components/Toolbar/Toolbar.d.ts +6 -5
- package/components/Tree/Tree.d.ts +1 -0
- package/components/Typography/Old/index.d.ts +10 -9
- package/components/Typography/Typography.d.ts +52 -51
- package/mixins/index.d.ts +2 -1
- package/package.json +11 -11
- package/temp/plasma-web.api.md +1490 -1488
@@ -43,312 +43,320 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
|
|
43
43
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
44
44
|
};
|
45
45
|
}> & (({
|
46
|
-
size?: string;
|
47
|
-
view?: string;
|
48
|
-
readOnly?: boolean;
|
49
|
-
disabled?: boolean;
|
46
|
+
size?: string | undefined;
|
47
|
+
view?: string | undefined;
|
48
|
+
readOnly?: boolean | undefined;
|
49
|
+
disabled?: boolean | undefined;
|
50
50
|
} & {
|
51
|
-
titleCaption?: ReactNode;
|
52
|
-
leftHelper?: ReactNode;
|
53
|
-
contentLeft?: React.ReactElement;
|
54
|
-
contentRight?: React.ReactElement;
|
55
|
-
textBefore?: string;
|
56
|
-
textAfter?: string;
|
57
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
51
|
+
titleCaption?: React.ReactNode;
|
52
|
+
leftHelper?: React.ReactNode;
|
53
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
54
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
55
|
+
textBefore?: string | undefined;
|
56
|
+
textAfter?: string | undefined;
|
57
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
58
58
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
59
|
-
clear?: boolean;
|
60
|
-
hasDivider?: boolean;
|
59
|
+
clear?: boolean | undefined;
|
60
|
+
hasDivider?: boolean | undefined;
|
61
61
|
} & {
|
62
62
|
hintText: string;
|
63
|
-
hintTrigger?: "hover" | "click";
|
64
|
-
hintView?: string;
|
65
|
-
hintSize?: string;
|
66
|
-
hintTargetIcon?: ReactNode;
|
67
|
-
hintTargetPlacement?: "
|
68
|
-
hintPlacement?: PopoverPlacement |
|
69
|
-
hintHasArrow?: boolean;
|
70
|
-
hintOffset?: [number, number];
|
71
|
-
hintWidth?: string;
|
72
|
-
hintContentLeft?: ReactNode;
|
63
|
+
hintTrigger?: "hover" | "click" | undefined;
|
64
|
+
hintView?: string | undefined;
|
65
|
+
hintSize?: string | undefined;
|
66
|
+
hintTargetIcon?: React.ReactNode;
|
67
|
+
hintTargetPlacement?: "outer" | "inner" | undefined;
|
68
|
+
hintPlacement?: PopoverPlacement | PopoverPlacementBasic[] | undefined;
|
69
|
+
hintHasArrow?: boolean | undefined;
|
70
|
+
hintOffset?: [number, number] | undefined;
|
71
|
+
hintWidth?: string | undefined;
|
72
|
+
hintContentLeft?: React.ReactNode;
|
73
73
|
} & {
|
74
|
-
chips?:
|
75
|
-
onChangeChips?:
|
76
|
-
enumerationType?: "plain";
|
77
|
-
onSearch?: (value: string, event
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
chipView?: never;
|
82
|
-
chipValidator?: never;
|
74
|
+
chips?: undefined;
|
75
|
+
onChangeChips?: undefined;
|
76
|
+
enumerationType?: "plain" | undefined;
|
77
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
78
|
+
chipType?: undefined;
|
79
|
+
chipView?: undefined;
|
80
|
+
chipValidator?: undefined;
|
83
81
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
84
|
-
size?: string;
|
85
|
-
view?: string;
|
86
|
-
readOnly?: boolean;
|
87
|
-
disabled?: boolean;
|
82
|
+
size?: string | undefined;
|
83
|
+
view?: string | undefined;
|
84
|
+
readOnly?: boolean | undefined;
|
85
|
+
disabled?: boolean | undefined;
|
88
86
|
} & {
|
89
|
-
titleCaption?: ReactNode;
|
90
|
-
leftHelper?: ReactNode;
|
91
|
-
contentLeft?: React.ReactElement;
|
92
|
-
contentRight?: React.ReactElement;
|
93
|
-
textBefore?: string;
|
94
|
-
textAfter?: string;
|
95
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
87
|
+
titleCaption?: React.ReactNode;
|
88
|
+
leftHelper?: React.ReactNode;
|
89
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
90
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
91
|
+
textBefore?: string | undefined;
|
92
|
+
textAfter?: string | undefined;
|
93
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
96
94
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
97
|
-
clear?: boolean;
|
98
|
-
hasDivider?: boolean;
|
95
|
+
clear?: boolean | undefined;
|
96
|
+
hasDivider?: boolean | undefined;
|
99
97
|
} & {
|
100
98
|
hintText: string;
|
101
|
-
hintTrigger?: "hover" | "click";
|
102
|
-
hintView?: string;
|
103
|
-
hintSize?: string;
|
104
|
-
hintTargetIcon?: ReactNode;
|
105
|
-
hintTargetPlacement?: "
|
106
|
-
hintPlacement?: PopoverPlacement |
|
107
|
-
hintHasArrow?: boolean;
|
108
|
-
hintOffset?: [number, number];
|
109
|
-
hintWidth?: string;
|
110
|
-
hintContentLeft?: ReactNode;
|
99
|
+
hintTrigger?: "hover" | "click" | undefined;
|
100
|
+
hintView?: string | undefined;
|
101
|
+
hintSize?: string | undefined;
|
102
|
+
hintTargetIcon?: React.ReactNode;
|
103
|
+
hintTargetPlacement?: "outer" | "inner" | undefined;
|
104
|
+
hintPlacement?: PopoverPlacement | PopoverPlacementBasic[] | undefined;
|
105
|
+
hintHasArrow?: boolean | undefined;
|
106
|
+
hintOffset?: [number, number] | undefined;
|
107
|
+
hintWidth?: string | undefined;
|
108
|
+
hintContentLeft?: React.ReactNode;
|
111
109
|
} & {
|
112
110
|
enumerationType: "chip";
|
113
|
-
onSearch?:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
111
|
+
onSearch?: undefined; /**
|
112
|
+
* Вид тултипа
|
113
|
+
*/
|
114
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined; /**
|
115
|
+
* Размер тултипа
|
116
|
+
*/
|
117
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
118
|
+
chipType?: "default" | "text" | undefined;
|
119
|
+
chipView?: string | undefined;
|
120
|
+
chipValidator?: ((value: string) => {
|
121
|
+
view?: string | undefined;
|
122
|
+
}) | undefined;
|
121
123
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
122
|
-
size?: string;
|
123
|
-
view?: string;
|
124
|
-
readOnly?: boolean;
|
125
|
-
disabled?: boolean;
|
124
|
+
size?: string | undefined;
|
125
|
+
view?: string | undefined;
|
126
|
+
readOnly?: boolean | undefined;
|
127
|
+
disabled?: boolean | undefined;
|
126
128
|
} & {
|
127
|
-
titleCaption?: ReactNode;
|
128
|
-
leftHelper?: ReactNode;
|
129
|
-
contentLeft?: React.ReactElement;
|
130
|
-
contentRight?: React.ReactElement;
|
131
|
-
textBefore?: string;
|
132
|
-
textAfter?: string;
|
133
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
129
|
+
titleCaption?: React.ReactNode;
|
130
|
+
leftHelper?: React.ReactNode;
|
131
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
132
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
133
|
+
textBefore?: string | undefined;
|
134
|
+
textAfter?: string | undefined;
|
135
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
134
136
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
135
|
-
clear?: boolean;
|
136
|
-
hasDivider?: boolean;
|
137
|
+
clear?: boolean | undefined;
|
138
|
+
hasDivider?: boolean | undefined;
|
137
139
|
} & {
|
138
|
-
hintTrigger?:
|
139
|
-
hintText?:
|
140
|
-
hintView?:
|
141
|
-
hintSize?:
|
142
|
-
hintTargetIcon?:
|
143
|
-
hintTargetPlacement?:
|
144
|
-
hintPlacement?:
|
145
|
-
hintHasArrow?:
|
146
|
-
hintOffset?:
|
147
|
-
hintWidth?:
|
148
|
-
hintContentLeft?:
|
140
|
+
hintTrigger?: undefined;
|
141
|
+
hintText?: undefined;
|
142
|
+
hintView?: undefined;
|
143
|
+
hintSize?: undefined;
|
144
|
+
hintTargetIcon?: undefined;
|
145
|
+
hintTargetPlacement?: undefined;
|
146
|
+
hintPlacement?: undefined;
|
147
|
+
hintHasArrow?: undefined;
|
148
|
+
hintOffset?: undefined;
|
149
|
+
hintWidth?: undefined;
|
150
|
+
hintContentLeft?: undefined;
|
149
151
|
} & {
|
150
|
-
chips?:
|
151
|
-
onChangeChips?:
|
152
|
-
enumerationType?: "plain";
|
153
|
-
onSearch?: (value: string, event
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
chipView?: never;
|
158
|
-
chipValidator?: never;
|
152
|
+
chips?: undefined;
|
153
|
+
onChangeChips?: undefined;
|
154
|
+
enumerationType?: "plain" | undefined;
|
155
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
156
|
+
chipType?: undefined;
|
157
|
+
chipView?: undefined;
|
158
|
+
chipValidator?: undefined;
|
159
159
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
160
|
-
size?: string;
|
161
|
-
view?: string;
|
162
|
-
readOnly?: boolean;
|
163
|
-
disabled?: boolean;
|
160
|
+
size?: string | undefined;
|
161
|
+
view?: string | undefined;
|
162
|
+
readOnly?: boolean | undefined;
|
163
|
+
disabled?: boolean | undefined;
|
164
164
|
} & {
|
165
|
-
titleCaption?: ReactNode;
|
166
|
-
leftHelper?: ReactNode;
|
167
|
-
contentLeft?: React.ReactElement;
|
168
|
-
contentRight?: React.ReactElement;
|
169
|
-
textBefore?: string;
|
170
|
-
textAfter?: string;
|
171
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
165
|
+
titleCaption?: React.ReactNode;
|
166
|
+
leftHelper?: React.ReactNode;
|
167
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
168
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
169
|
+
textBefore?: string | undefined;
|
170
|
+
textAfter?: string | undefined;
|
171
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
172
172
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
173
|
-
clear?: boolean;
|
174
|
-
hasDivider?: boolean;
|
173
|
+
clear?: boolean | undefined;
|
174
|
+
hasDivider?: boolean | undefined;
|
175
175
|
} & {
|
176
|
-
hintTrigger?:
|
177
|
-
hintText?:
|
178
|
-
hintView?:
|
179
|
-
hintSize?:
|
180
|
-
hintTargetIcon?:
|
181
|
-
hintTargetPlacement?:
|
182
|
-
hintPlacement?:
|
183
|
-
hintHasArrow?:
|
184
|
-
hintOffset?:
|
185
|
-
hintWidth?:
|
186
|
-
hintContentLeft?:
|
176
|
+
hintTrigger?: undefined;
|
177
|
+
hintText?: undefined;
|
178
|
+
hintView?: undefined;
|
179
|
+
hintSize?: undefined;
|
180
|
+
hintTargetIcon?: undefined;
|
181
|
+
hintTargetPlacement?: undefined;
|
182
|
+
hintPlacement?: undefined;
|
183
|
+
hintHasArrow?: undefined;
|
184
|
+
hintOffset?: undefined;
|
185
|
+
hintWidth?: undefined;
|
186
|
+
hintContentLeft?: undefined;
|
187
187
|
} & {
|
188
188
|
enumerationType: "chip";
|
189
|
-
onSearch?:
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
189
|
+
onSearch?: undefined; /**
|
190
|
+
* Вид тултипа
|
191
|
+
*/
|
192
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined; /**
|
193
|
+
* Размер тултипа
|
194
|
+
*/
|
195
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
196
|
+
chipType?: "default" | "text" | undefined;
|
197
|
+
chipView?: string | undefined;
|
198
|
+
chipValidator?: ((value: string) => {
|
199
|
+
view?: string | undefined;
|
200
|
+
}) | undefined;
|
197
201
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
198
|
-
size?: string;
|
199
|
-
view?: string;
|
200
|
-
readOnly?: boolean;
|
201
|
-
disabled?: boolean;
|
202
|
+
size?: string | undefined;
|
203
|
+
view?: string | undefined;
|
204
|
+
readOnly?: boolean | undefined;
|
205
|
+
disabled?: boolean | undefined;
|
202
206
|
} & {
|
203
|
-
titleCaption?: ReactNode;
|
204
|
-
leftHelper?: ReactNode;
|
205
|
-
contentLeft?: React.ReactElement;
|
206
|
-
contentRight?: React.ReactElement;
|
207
|
-
textBefore?: string;
|
208
|
-
textAfter?: string;
|
209
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
207
|
+
titleCaption?: React.ReactNode;
|
208
|
+
leftHelper?: React.ReactNode;
|
209
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
210
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
211
|
+
textBefore?: string | undefined;
|
212
|
+
textAfter?: string | undefined;
|
213
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
210
214
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
211
|
-
clear?: false;
|
212
|
-
hasDivider?:
|
215
|
+
clear?: false | undefined;
|
216
|
+
hasDivider?: undefined;
|
213
217
|
} & {
|
214
218
|
hintText: string;
|
215
|
-
hintTrigger?: "hover" | "click";
|
216
|
-
hintView?: string;
|
217
|
-
hintSize?: string;
|
218
|
-
hintTargetIcon?: ReactNode;
|
219
|
-
hintTargetPlacement?: "
|
220
|
-
hintPlacement?: PopoverPlacement |
|
221
|
-
hintHasArrow?: boolean;
|
222
|
-
hintOffset?: [number, number];
|
223
|
-
hintWidth?: string;
|
224
|
-
hintContentLeft?: ReactNode;
|
219
|
+
hintTrigger?: "hover" | "click" | undefined;
|
220
|
+
hintView?: string | undefined;
|
221
|
+
hintSize?: string | undefined;
|
222
|
+
hintTargetIcon?: React.ReactNode;
|
223
|
+
hintTargetPlacement?: "outer" | "inner" | undefined;
|
224
|
+
hintPlacement?: PopoverPlacement | PopoverPlacementBasic[] | undefined;
|
225
|
+
hintHasArrow?: boolean | undefined;
|
226
|
+
hintOffset?: [number, number] | undefined;
|
227
|
+
hintWidth?: string | undefined;
|
228
|
+
hintContentLeft?: React.ReactNode;
|
225
229
|
} & {
|
226
|
-
chips?:
|
227
|
-
onChangeChips?:
|
228
|
-
enumerationType?: "plain";
|
229
|
-
onSearch?: (value: string, event
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
chipView?: never;
|
234
|
-
chipValidator?: never;
|
230
|
+
chips?: undefined;
|
231
|
+
onChangeChips?: undefined;
|
232
|
+
enumerationType?: "plain" | undefined;
|
233
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
234
|
+
chipType?: undefined;
|
235
|
+
chipView?: undefined;
|
236
|
+
chipValidator?: undefined;
|
235
237
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
236
|
-
size?: string;
|
237
|
-
view?: string;
|
238
|
-
readOnly?: boolean;
|
239
|
-
disabled?: boolean;
|
238
|
+
size?: string | undefined;
|
239
|
+
view?: string | undefined;
|
240
|
+
readOnly?: boolean | undefined;
|
241
|
+
disabled?: boolean | undefined;
|
240
242
|
} & {
|
241
|
-
titleCaption?: ReactNode;
|
242
|
-
leftHelper?: ReactNode;
|
243
|
-
contentLeft?: React.ReactElement;
|
244
|
-
contentRight?: React.ReactElement;
|
245
|
-
textBefore?: string;
|
246
|
-
textAfter?: string;
|
247
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
243
|
+
titleCaption?: React.ReactNode;
|
244
|
+
leftHelper?: React.ReactNode;
|
245
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
246
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
247
|
+
textBefore?: string | undefined;
|
248
|
+
textAfter?: string | undefined;
|
249
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
248
250
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
249
|
-
clear?: false;
|
250
|
-
hasDivider?:
|
251
|
+
clear?: false | undefined;
|
252
|
+
hasDivider?: undefined;
|
251
253
|
} & {
|
252
254
|
hintText: string;
|
253
|
-
hintTrigger?: "hover" | "click";
|
254
|
-
hintView?: string;
|
255
|
-
hintSize?: string;
|
256
|
-
hintTargetIcon?: ReactNode;
|
257
|
-
hintTargetPlacement?: "
|
258
|
-
hintPlacement?: PopoverPlacement |
|
259
|
-
hintHasArrow?: boolean;
|
260
|
-
hintOffset?: [number, number];
|
261
|
-
hintWidth?: string;
|
262
|
-
hintContentLeft?: ReactNode;
|
255
|
+
hintTrigger?: "hover" | "click" | undefined;
|
256
|
+
hintView?: string | undefined;
|
257
|
+
hintSize?: string | undefined;
|
258
|
+
hintTargetIcon?: React.ReactNode;
|
259
|
+
hintTargetPlacement?: "outer" | "inner" | undefined;
|
260
|
+
hintPlacement?: PopoverPlacement | PopoverPlacementBasic[] | undefined;
|
261
|
+
hintHasArrow?: boolean | undefined;
|
262
|
+
hintOffset?: [number, number] | undefined;
|
263
|
+
hintWidth?: string | undefined;
|
264
|
+
hintContentLeft?: React.ReactNode;
|
263
265
|
} & {
|
264
266
|
enumerationType: "chip";
|
265
|
-
onSearch?:
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
267
|
+
onSearch?: undefined; /**
|
268
|
+
* Вид тултипа
|
269
|
+
*/
|
270
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined; /**
|
271
|
+
* Размер тултипа
|
272
|
+
*/
|
273
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
274
|
+
chipType?: "default" | "text" | undefined;
|
275
|
+
chipView?: string | undefined;
|
276
|
+
chipValidator?: ((value: string) => {
|
277
|
+
view?: string | undefined;
|
278
|
+
}) | undefined;
|
273
279
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
274
|
-
size?: string;
|
275
|
-
view?: string;
|
276
|
-
readOnly?: boolean;
|
277
|
-
disabled?: boolean;
|
280
|
+
size?: string | undefined;
|
281
|
+
view?: string | undefined;
|
282
|
+
readOnly?: boolean | undefined;
|
283
|
+
disabled?: boolean | undefined;
|
278
284
|
} & {
|
279
|
-
titleCaption?: ReactNode;
|
280
|
-
leftHelper?: ReactNode;
|
281
|
-
contentLeft?: React.ReactElement;
|
282
|
-
contentRight?: React.ReactElement;
|
283
|
-
textBefore?: string;
|
284
|
-
textAfter?: string;
|
285
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
285
|
+
titleCaption?: React.ReactNode;
|
286
|
+
leftHelper?: React.ReactNode;
|
287
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
288
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
289
|
+
textBefore?: string | undefined;
|
290
|
+
textAfter?: string | undefined;
|
291
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
286
292
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
287
|
-
clear?: false;
|
288
|
-
hasDivider?:
|
293
|
+
clear?: false | undefined;
|
294
|
+
hasDivider?: undefined;
|
289
295
|
} & {
|
290
|
-
hintTrigger?:
|
291
|
-
hintText?:
|
292
|
-
hintView?:
|
293
|
-
hintSize?:
|
294
|
-
hintTargetIcon?:
|
295
|
-
hintTargetPlacement?:
|
296
|
-
hintPlacement?:
|
297
|
-
hintHasArrow?:
|
298
|
-
hintOffset?:
|
299
|
-
hintWidth?:
|
300
|
-
hintContentLeft?:
|
296
|
+
hintTrigger?: undefined;
|
297
|
+
hintText?: undefined;
|
298
|
+
hintView?: undefined;
|
299
|
+
hintSize?: undefined;
|
300
|
+
hintTargetIcon?: undefined;
|
301
|
+
hintTargetPlacement?: undefined;
|
302
|
+
hintPlacement?: undefined;
|
303
|
+
hintHasArrow?: undefined;
|
304
|
+
hintOffset?: undefined;
|
305
|
+
hintWidth?: undefined;
|
306
|
+
hintContentLeft?: undefined;
|
301
307
|
} & {
|
302
|
-
chips?:
|
303
|
-
onChangeChips?:
|
304
|
-
enumerationType?: "plain";
|
305
|
-
onSearch?: (value: string, event
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
chipView?: never;
|
310
|
-
chipValidator?: never;
|
308
|
+
chips?: undefined;
|
309
|
+
onChangeChips?: undefined;
|
310
|
+
enumerationType?: "plain" | undefined;
|
311
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
312
|
+
chipType?: undefined;
|
313
|
+
chipView?: undefined;
|
314
|
+
chipValidator?: undefined;
|
311
315
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
|
312
|
-
size?: string;
|
313
|
-
view?: string;
|
314
|
-
readOnly?: boolean;
|
315
|
-
disabled?: boolean;
|
316
|
+
size?: string | undefined;
|
317
|
+
view?: string | undefined;
|
318
|
+
readOnly?: boolean | undefined;
|
319
|
+
disabled?: boolean | undefined;
|
316
320
|
} & {
|
317
|
-
titleCaption?: ReactNode;
|
318
|
-
leftHelper?: ReactNode;
|
319
|
-
contentLeft?: React.ReactElement;
|
320
|
-
contentRight?: React.ReactElement;
|
321
|
-
textBefore?: string;
|
322
|
-
textAfter?: string;
|
323
|
-
onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
|
321
|
+
titleCaption?: React.ReactNode;
|
322
|
+
leftHelper?: React.ReactNode;
|
323
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
324
|
+
contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
325
|
+
textBefore?: string | undefined;
|
326
|
+
textAfter?: string | undefined;
|
327
|
+
onSearch?: ((value: string, event?: React.KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
|
324
328
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
325
|
-
clear?: false;
|
326
|
-
hasDivider?:
|
329
|
+
clear?: false | undefined;
|
330
|
+
hasDivider?: undefined;
|
327
331
|
} & {
|
328
|
-
hintTrigger?:
|
329
|
-
hintText?:
|
330
|
-
hintView?:
|
331
|
-
hintSize?:
|
332
|
-
hintTargetIcon?:
|
333
|
-
hintTargetPlacement?:
|
334
|
-
hintPlacement?:
|
335
|
-
hintHasArrow?:
|
336
|
-
hintOffset?:
|
337
|
-
hintWidth?:
|
338
|
-
hintContentLeft?:
|
332
|
+
hintTrigger?: undefined;
|
333
|
+
hintText?: undefined;
|
334
|
+
hintView?: undefined;
|
335
|
+
hintSize?: undefined;
|
336
|
+
hintTargetIcon?: undefined;
|
337
|
+
hintTargetPlacement?: undefined;
|
338
|
+
hintPlacement?: undefined;
|
339
|
+
hintHasArrow?: undefined;
|
340
|
+
hintOffset?: undefined;
|
341
|
+
hintWidth?: undefined;
|
342
|
+
hintContentLeft?: undefined;
|
339
343
|
} & {
|
340
344
|
enumerationType: "chip";
|
341
|
-
onSearch?:
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
345
|
+
onSearch?: undefined; /**
|
346
|
+
* Вид тултипа
|
347
|
+
*/
|
348
|
+
chips?: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined; /**
|
349
|
+
* Размер тултипа
|
350
|
+
*/
|
351
|
+
onChangeChips?: ((value: import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
|
352
|
+
chipType?: "default" | "text" | undefined;
|
353
|
+
chipView?: string | undefined;
|
354
|
+
chipValidator?: ((value: string) => {
|
355
|
+
view?: string | undefined;
|
356
|
+
}) | undefined;
|
349
357
|
} & Omit<import("@salutejs/plasma-new-hope/styled-components").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & React.RefAttributes<HTMLInputElement>))>;
|
350
|
-
type newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;
|
351
|
-
type ClearProps = {
|
358
|
+
declare type newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;
|
359
|
+
declare type ClearProps = {
|
352
360
|
/**
|
353
361
|
* view применяется с clear-токенами
|
354
362
|
*/
|
@@ -367,7 +375,7 @@ type ClearProps = {
|
|
367
375
|
*/
|
368
376
|
hasDivider?: never;
|
369
377
|
};
|
370
|
-
type HintProps = {
|
378
|
+
declare type HintProps = {
|
371
379
|
/**
|
372
380
|
* Текст тултипа
|
373
381
|
*/
|
@@ -423,13 +431,13 @@ type HintProps = {
|
|
423
431
|
hintWidth?: never;
|
424
432
|
hintContentLeft?: never;
|
425
433
|
};
|
426
|
-
type TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {
|
434
|
+
declare type TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {
|
427
435
|
/**
|
428
436
|
* Подсказка для поля ввода.
|
429
437
|
*/
|
430
438
|
helperText?: ReactNode;
|
431
439
|
} & ClearProps & HintProps;
|
432
|
-
export type CustomTextFieldProps = TextFieldProps & Pick<newHopeTextFieldProps, 'enumerationType' | 'chips' | 'chipType' | 'onChangeChips' | 'titleCaption' | 'labelPlacement' | 'keepPlaceholder' | 'required' | 'requiredPlacement' | 'optional' | 'chipView' | 'chipValidator' | 'textBefore' | 'textAfter'>;
|
440
|
+
export declare type CustomTextFieldProps = TextFieldProps & Pick<newHopeTextFieldProps, 'enumerationType' | 'chips' | 'chipType' | 'onChangeChips' | 'titleCaption' | 'labelPlacement' | 'keepPlaceholder' | 'required' | 'requiredPlacement' | 'optional' | 'chipView' | 'chipValidator' | 'textBefore' | 'textAfter'>;
|
433
441
|
/**
|
434
442
|
* Поле ввода текста.
|
435
443
|
*/
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Группа TextField.
|
3
4
|
*/
|
@@ -26,19 +27,19 @@ export declare const TextFieldGroup: import("react").FunctionComponent<import("@
|
|
26
27
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
27
28
|
};
|
28
29
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
29
|
-
orientation?: import("@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types").Orientation;
|
30
|
-
stretching?: "auto" | "filled";
|
31
|
-
size?: string;
|
32
|
-
isCommonTextFieldStyles?: boolean;
|
30
|
+
orientation?: import("@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types").Orientation | undefined;
|
31
|
+
stretching?: ("auto" | "filled") | undefined;
|
32
|
+
size?: string | undefined;
|
33
|
+
isCommonTextFieldStyles?: boolean | undefined;
|
33
34
|
} & {
|
34
|
-
gap?: "none" | "dense";
|
35
|
-
shape?: "segmented";
|
35
|
+
gap?: "none" | "dense" | undefined;
|
36
|
+
shape?: "segmented" | undefined;
|
36
37
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
37
|
-
orientation?: import("@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types").Orientation;
|
38
|
-
stretching?: "auto" | "filled";
|
39
|
-
size?: string;
|
40
|
-
isCommonTextFieldStyles?: boolean;
|
38
|
+
orientation?: import("@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types").Orientation | undefined;
|
39
|
+
stretching?: ("auto" | "filled") | undefined;
|
40
|
+
size?: string | undefined;
|
41
|
+
isCommonTextFieldStyles?: boolean | undefined;
|
41
42
|
} & {
|
42
|
-
gap?: "dense" | "wide";
|
43
|
-
shape?: "default";
|
43
|
+
gap?: "dense" | "wide" | undefined;
|
44
|
+
shape?: "default" | undefined;
|
44
45
|
} & import("react").RefAttributes<HTMLDivElement>))>;
|