@salutejs/sdds-cs 0.328.0-canary.2211.17492872934.0 → 0.328.0-canary.2212.17493177132.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/Autocomplete/Autocomplete.d.ts +117 -124
- package/components/Autocomplete/Autocomplete.js +4 -76
- package/components/Dropdown/Dropdown.d.ts +2 -2
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +4 -76
- package/emotion/es/components/Autocomplete/Autocomplete.js +2 -61
- package/es/components/Autocomplete/Autocomplete.js +2 -61
- package/package.json +3 -3
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
import React, { ComponentProps } from 'react';
|
3
|
-
import { config } from './Autocomplete.config';
|
4
|
-
export declare const AutocompleteComponent: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
1
|
+
export declare const Autocomplete: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
5
2
|
view: {
|
6
3
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
4
|
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -24,33 +21,33 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
24
21
|
readOnly?: boolean;
|
25
22
|
disabled?: boolean;
|
26
23
|
portal?: string | React.RefObject<HTMLElement>;
|
27
|
-
zIndex?:
|
24
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
28
25
|
value?: string;
|
29
26
|
defaultValue?: string;
|
30
|
-
suggestions?: SuggestionItemType[]
|
27
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
31
28
|
threshold?: number;
|
32
|
-
filter?: (
|
33
|
-
onSuggestionSelect?: (
|
29
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
30
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
34
31
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
35
32
|
listMaxHeight?: string;
|
36
33
|
listWidth?: string;
|
37
|
-
renderList?: (
|
38
|
-
renderListEnd?: () =>
|
39
|
-
renderItem?: (
|
40
|
-
beforeList?:
|
41
|
-
afterList?:
|
34
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
35
|
+
renderListEnd?: () => import("react").ReactNode;
|
36
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
37
|
+
beforeList?: import("react").ReactNode;
|
38
|
+
afterList?: import("react").ReactNode;
|
42
39
|
virtual?: boolean;
|
43
40
|
flip?: boolean;
|
44
41
|
size?: string;
|
45
42
|
view?: string;
|
46
43
|
} & Omit<{
|
47
|
-
titleCaption?:
|
48
|
-
leftHelper?:
|
44
|
+
titleCaption?: import("react").ReactNode;
|
45
|
+
leftHelper?: import("react").ReactNode;
|
49
46
|
contentLeft?: React.ReactElement;
|
50
47
|
contentRight?: React.ReactElement;
|
51
48
|
textBefore?: string;
|
52
49
|
textAfter?: string;
|
53
|
-
onSearch?: (value: string, event?:
|
50
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
54
51
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
55
52
|
clear?: boolean;
|
56
53
|
hasDivider?: boolean;
|
@@ -59,53 +56,53 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
59
56
|
hintTrigger?: "hover" | "click";
|
60
57
|
hintView?: string;
|
61
58
|
hintSize?: string;
|
62
|
-
hintTargetIcon?:
|
59
|
+
hintTargetIcon?: import("react").ReactNode;
|
63
60
|
hintTargetPlacement?: "inner" | "outer";
|
64
61
|
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
65
62
|
hintHasArrow?: boolean;
|
66
63
|
hintOffset?: [number, number];
|
67
64
|
hintWidth?: string;
|
68
|
-
hintContentLeft?:
|
65
|
+
hintContentLeft?: import("react").ReactNode;
|
69
66
|
} & {
|
70
67
|
chips?: never;
|
71
68
|
onChangeChips?: never;
|
72
69
|
enumerationType?: "plain";
|
73
|
-
onSearch?: (value: string, event?:
|
70
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
74
71
|
chipType?: never;
|
75
72
|
chipView?: never;
|
76
73
|
chipValidator?: never;
|
77
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
74
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
78
75
|
labelPlacement?: string;
|
79
76
|
readOnly?: boolean;
|
80
77
|
disabled?: boolean;
|
81
78
|
portal?: string | React.RefObject<HTMLElement>;
|
82
|
-
zIndex?:
|
79
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
83
80
|
value?: string;
|
84
81
|
defaultValue?: string;
|
85
|
-
suggestions?: SuggestionItemType[]
|
82
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
86
83
|
threshold?: number;
|
87
|
-
filter?: (
|
88
|
-
onSuggestionSelect?: (
|
84
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
85
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
89
86
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
90
87
|
listMaxHeight?: string;
|
91
88
|
listWidth?: string;
|
92
|
-
renderList?: (
|
93
|
-
renderListEnd?: () =>
|
94
|
-
renderItem?: (
|
95
|
-
beforeList?:
|
96
|
-
afterList?:
|
89
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
90
|
+
renderListEnd?: () => import("react").ReactNode;
|
91
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
92
|
+
beforeList?: import("react").ReactNode;
|
93
|
+
afterList?: import("react").ReactNode;
|
97
94
|
virtual?: boolean;
|
98
95
|
flip?: boolean;
|
99
96
|
size?: string;
|
100
97
|
view?: string;
|
101
98
|
} & Omit<{
|
102
|
-
titleCaption?:
|
103
|
-
leftHelper?:
|
99
|
+
titleCaption?: import("react").ReactNode;
|
100
|
+
leftHelper?: import("react").ReactNode;
|
104
101
|
contentLeft?: React.ReactElement;
|
105
102
|
contentRight?: React.ReactElement;
|
106
103
|
textBefore?: string;
|
107
104
|
textAfter?: string;
|
108
|
-
onSearch?: (value: string, event?:
|
105
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
109
106
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
110
107
|
clear?: boolean;
|
111
108
|
hasDivider?: boolean;
|
@@ -114,13 +111,13 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
114
111
|
hintTrigger?: "hover" | "click";
|
115
112
|
hintView?: string;
|
116
113
|
hintSize?: string;
|
117
|
-
hintTargetIcon?:
|
114
|
+
hintTargetIcon?: import("react").ReactNode;
|
118
115
|
hintTargetPlacement?: "inner" | "outer";
|
119
116
|
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
120
117
|
hintHasArrow?: boolean;
|
121
118
|
hintOffset?: [number, number];
|
122
119
|
hintWidth?: string;
|
123
|
-
hintContentLeft?:
|
120
|
+
hintContentLeft?: import("react").ReactNode;
|
124
121
|
} & {
|
125
122
|
enumerationType: "chip";
|
126
123
|
onSearch?: never;
|
@@ -131,38 +128,38 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
131
128
|
chipValidator?: (value: string) => {
|
132
129
|
view?: string;
|
133
130
|
};
|
134
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
131
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
135
132
|
labelPlacement?: string;
|
136
133
|
readOnly?: boolean;
|
137
134
|
disabled?: boolean;
|
138
135
|
portal?: string | React.RefObject<HTMLElement>;
|
139
|
-
zIndex?:
|
136
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
140
137
|
value?: string;
|
141
138
|
defaultValue?: string;
|
142
|
-
suggestions?: SuggestionItemType[]
|
139
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
143
140
|
threshold?: number;
|
144
|
-
filter?: (
|
145
|
-
onSuggestionSelect?: (
|
141
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
142
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
146
143
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
147
144
|
listMaxHeight?: string;
|
148
145
|
listWidth?: string;
|
149
|
-
renderList?: (
|
150
|
-
renderListEnd?: () =>
|
151
|
-
renderItem?: (
|
152
|
-
beforeList?:
|
153
|
-
afterList?:
|
146
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
147
|
+
renderListEnd?: () => import("react").ReactNode;
|
148
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
149
|
+
beforeList?: import("react").ReactNode;
|
150
|
+
afterList?: import("react").ReactNode;
|
154
151
|
virtual?: boolean;
|
155
152
|
flip?: boolean;
|
156
153
|
size?: string;
|
157
154
|
view?: string;
|
158
155
|
} & Omit<{
|
159
|
-
titleCaption?:
|
160
|
-
leftHelper?:
|
156
|
+
titleCaption?: import("react").ReactNode;
|
157
|
+
leftHelper?: import("react").ReactNode;
|
161
158
|
contentLeft?: React.ReactElement;
|
162
159
|
contentRight?: React.ReactElement;
|
163
160
|
textBefore?: string;
|
164
161
|
textAfter?: string;
|
165
|
-
onSearch?: (value: string, event?:
|
162
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
166
163
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
167
164
|
clear?: boolean;
|
168
165
|
hasDivider?: boolean;
|
@@ -182,42 +179,42 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
182
179
|
chips?: never;
|
183
180
|
onChangeChips?: never;
|
184
181
|
enumerationType?: "plain";
|
185
|
-
onSearch?: (value: string, event?:
|
182
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
186
183
|
chipType?: never;
|
187
184
|
chipView?: never;
|
188
185
|
chipValidator?: never;
|
189
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
186
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
190
187
|
labelPlacement?: string;
|
191
188
|
readOnly?: boolean;
|
192
189
|
disabled?: boolean;
|
193
190
|
portal?: string | React.RefObject<HTMLElement>;
|
194
|
-
zIndex?:
|
191
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
195
192
|
value?: string;
|
196
193
|
defaultValue?: string;
|
197
|
-
suggestions?: SuggestionItemType[]
|
194
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
198
195
|
threshold?: number;
|
199
|
-
filter?: (
|
200
|
-
onSuggestionSelect?: (
|
196
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
197
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
201
198
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
202
199
|
listMaxHeight?: string;
|
203
200
|
listWidth?: string;
|
204
|
-
renderList?: (
|
205
|
-
renderListEnd?: () =>
|
206
|
-
renderItem?: (
|
207
|
-
beforeList?:
|
208
|
-
afterList?:
|
201
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
202
|
+
renderListEnd?: () => import("react").ReactNode;
|
203
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
204
|
+
beforeList?: import("react").ReactNode;
|
205
|
+
afterList?: import("react").ReactNode;
|
209
206
|
virtual?: boolean;
|
210
207
|
flip?: boolean;
|
211
208
|
size?: string;
|
212
209
|
view?: string;
|
213
210
|
} & Omit<{
|
214
|
-
titleCaption?:
|
215
|
-
leftHelper?:
|
211
|
+
titleCaption?: import("react").ReactNode;
|
212
|
+
leftHelper?: import("react").ReactNode;
|
216
213
|
contentLeft?: React.ReactElement;
|
217
214
|
contentRight?: React.ReactElement;
|
218
215
|
textBefore?: string;
|
219
216
|
textAfter?: string;
|
220
|
-
onSearch?: (value: string, event?:
|
217
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
221
218
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
222
219
|
clear?: boolean;
|
223
220
|
hasDivider?: boolean;
|
@@ -243,38 +240,38 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
243
240
|
chipValidator?: (value: string) => {
|
244
241
|
view?: string;
|
245
242
|
};
|
246
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
243
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
247
244
|
labelPlacement?: string;
|
248
245
|
readOnly?: boolean;
|
249
246
|
disabled?: boolean;
|
250
247
|
portal?: string | React.RefObject<HTMLElement>;
|
251
|
-
zIndex?:
|
248
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
252
249
|
value?: string;
|
253
250
|
defaultValue?: string;
|
254
|
-
suggestions?: SuggestionItemType[]
|
251
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
255
252
|
threshold?: number;
|
256
|
-
filter?: (
|
257
|
-
onSuggestionSelect?: (
|
253
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
254
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
258
255
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
259
256
|
listMaxHeight?: string;
|
260
257
|
listWidth?: string;
|
261
|
-
renderList?: (
|
262
|
-
renderListEnd?: () =>
|
263
|
-
renderItem?: (
|
264
|
-
beforeList?:
|
265
|
-
afterList?:
|
258
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
259
|
+
renderListEnd?: () => import("react").ReactNode;
|
260
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
261
|
+
beforeList?: import("react").ReactNode;
|
262
|
+
afterList?: import("react").ReactNode;
|
266
263
|
virtual?: boolean;
|
267
264
|
flip?: boolean;
|
268
265
|
size?: string;
|
269
266
|
view?: string;
|
270
267
|
} & Omit<{
|
271
|
-
titleCaption?:
|
272
|
-
leftHelper?:
|
268
|
+
titleCaption?: import("react").ReactNode;
|
269
|
+
leftHelper?: import("react").ReactNode;
|
273
270
|
contentLeft?: React.ReactElement;
|
274
271
|
contentRight?: React.ReactElement;
|
275
272
|
textBefore?: string;
|
276
273
|
textAfter?: string;
|
277
|
-
onSearch?: (value: string, event?:
|
274
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
278
275
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
279
276
|
clear?: false;
|
280
277
|
hasDivider?: never;
|
@@ -283,53 +280,53 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
283
280
|
hintTrigger?: "hover" | "click";
|
284
281
|
hintView?: string;
|
285
282
|
hintSize?: string;
|
286
|
-
hintTargetIcon?:
|
283
|
+
hintTargetIcon?: import("react").ReactNode;
|
287
284
|
hintTargetPlacement?: "inner" | "outer";
|
288
285
|
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
289
286
|
hintHasArrow?: boolean;
|
290
287
|
hintOffset?: [number, number];
|
291
288
|
hintWidth?: string;
|
292
|
-
hintContentLeft?:
|
289
|
+
hintContentLeft?: import("react").ReactNode;
|
293
290
|
} & {
|
294
291
|
chips?: never;
|
295
292
|
onChangeChips?: never;
|
296
293
|
enumerationType?: "plain";
|
297
|
-
onSearch?: (value: string, event?:
|
294
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
298
295
|
chipType?: never;
|
299
296
|
chipView?: never;
|
300
297
|
chipValidator?: never;
|
301
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
298
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
302
299
|
labelPlacement?: string;
|
303
300
|
readOnly?: boolean;
|
304
301
|
disabled?: boolean;
|
305
302
|
portal?: string | React.RefObject<HTMLElement>;
|
306
|
-
zIndex?:
|
303
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
307
304
|
value?: string;
|
308
305
|
defaultValue?: string;
|
309
|
-
suggestions?: SuggestionItemType[]
|
306
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
310
307
|
threshold?: number;
|
311
|
-
filter?: (
|
312
|
-
onSuggestionSelect?: (
|
308
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
309
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
313
310
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
314
311
|
listMaxHeight?: string;
|
315
312
|
listWidth?: string;
|
316
|
-
renderList?: (
|
317
|
-
renderListEnd?: () =>
|
318
|
-
renderItem?: (
|
319
|
-
beforeList?:
|
320
|
-
afterList?:
|
313
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
314
|
+
renderListEnd?: () => import("react").ReactNode;
|
315
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
316
|
+
beforeList?: import("react").ReactNode;
|
317
|
+
afterList?: import("react").ReactNode;
|
321
318
|
virtual?: boolean;
|
322
319
|
flip?: boolean;
|
323
320
|
size?: string;
|
324
321
|
view?: string;
|
325
322
|
} & Omit<{
|
326
|
-
titleCaption?:
|
327
|
-
leftHelper?:
|
323
|
+
titleCaption?: import("react").ReactNode;
|
324
|
+
leftHelper?: import("react").ReactNode;
|
328
325
|
contentLeft?: React.ReactElement;
|
329
326
|
contentRight?: React.ReactElement;
|
330
327
|
textBefore?: string;
|
331
328
|
textAfter?: string;
|
332
|
-
onSearch?: (value: string, event?:
|
329
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
333
330
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
334
331
|
clear?: false;
|
335
332
|
hasDivider?: never;
|
@@ -338,13 +335,13 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
338
335
|
hintTrigger?: "hover" | "click";
|
339
336
|
hintView?: string;
|
340
337
|
hintSize?: string;
|
341
|
-
hintTargetIcon?:
|
338
|
+
hintTargetIcon?: import("react").ReactNode;
|
342
339
|
hintTargetPlacement?: "inner" | "outer";
|
343
340
|
hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
|
344
341
|
hintHasArrow?: boolean;
|
345
342
|
hintOffset?: [number, number];
|
346
343
|
hintWidth?: string;
|
347
|
-
hintContentLeft?:
|
344
|
+
hintContentLeft?: import("react").ReactNode;
|
348
345
|
} & {
|
349
346
|
enumerationType: "chip";
|
350
347
|
onSearch?: never;
|
@@ -355,38 +352,38 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
355
352
|
chipValidator?: (value: string) => {
|
356
353
|
view?: string;
|
357
354
|
};
|
358
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
355
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
359
356
|
labelPlacement?: string;
|
360
357
|
readOnly?: boolean;
|
361
358
|
disabled?: boolean;
|
362
359
|
portal?: string | React.RefObject<HTMLElement>;
|
363
|
-
zIndex?:
|
360
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
364
361
|
value?: string;
|
365
362
|
defaultValue?: string;
|
366
|
-
suggestions?: SuggestionItemType[]
|
363
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
367
364
|
threshold?: number;
|
368
|
-
filter?: (
|
369
|
-
onSuggestionSelect?: (
|
365
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
366
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
370
367
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
371
368
|
listMaxHeight?: string;
|
372
369
|
listWidth?: string;
|
373
|
-
renderList?: (
|
374
|
-
renderListEnd?: () =>
|
375
|
-
renderItem?: (
|
376
|
-
beforeList?:
|
377
|
-
afterList?:
|
370
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
371
|
+
renderListEnd?: () => import("react").ReactNode;
|
372
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
373
|
+
beforeList?: import("react").ReactNode;
|
374
|
+
afterList?: import("react").ReactNode;
|
378
375
|
virtual?: boolean;
|
379
376
|
flip?: boolean;
|
380
377
|
size?: string;
|
381
378
|
view?: string;
|
382
379
|
} & Omit<{
|
383
|
-
titleCaption?:
|
384
|
-
leftHelper?:
|
380
|
+
titleCaption?: import("react").ReactNode;
|
381
|
+
leftHelper?: import("react").ReactNode;
|
385
382
|
contentLeft?: React.ReactElement;
|
386
383
|
contentRight?: React.ReactElement;
|
387
384
|
textBefore?: string;
|
388
385
|
textAfter?: string;
|
389
|
-
onSearch?: (value: string, event?:
|
386
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
390
387
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
391
388
|
clear?: false;
|
392
389
|
hasDivider?: never;
|
@@ -406,42 +403,42 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
406
403
|
chips?: never;
|
407
404
|
onChangeChips?: never;
|
408
405
|
enumerationType?: "plain";
|
409
|
-
onSearch?: (value: string, event?:
|
406
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
410
407
|
chipType?: never;
|
411
408
|
chipView?: never;
|
412
409
|
chipValidator?: never;
|
413
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
410
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
414
411
|
labelPlacement?: string;
|
415
412
|
readOnly?: boolean;
|
416
413
|
disabled?: boolean;
|
417
414
|
portal?: string | React.RefObject<HTMLElement>;
|
418
|
-
zIndex?:
|
415
|
+
zIndex?: import("react").CSSProperties["zIndex"];
|
419
416
|
value?: string;
|
420
417
|
defaultValue?: string;
|
421
|
-
suggestions?: SuggestionItemType[]
|
418
|
+
suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
|
422
419
|
threshold?: number;
|
423
|
-
filter?: (
|
424
|
-
onSuggestionSelect?: (
|
420
|
+
filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
|
421
|
+
onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
|
425
422
|
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
426
423
|
listMaxHeight?: string;
|
427
424
|
listWidth?: string;
|
428
|
-
renderList?: (
|
429
|
-
renderListEnd?: () =>
|
430
|
-
renderItem?: (
|
431
|
-
beforeList?:
|
432
|
-
afterList?:
|
425
|
+
renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
|
426
|
+
renderListEnd?: () => import("react").ReactNode;
|
427
|
+
renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
|
428
|
+
beforeList?: import("react").ReactNode;
|
429
|
+
afterList?: import("react").ReactNode;
|
433
430
|
virtual?: boolean;
|
434
431
|
flip?: boolean;
|
435
432
|
size?: string;
|
436
433
|
view?: string;
|
437
434
|
} & Omit<{
|
438
|
-
titleCaption?:
|
439
|
-
leftHelper?:
|
435
|
+
titleCaption?: import("react").ReactNode;
|
436
|
+
leftHelper?: import("react").ReactNode;
|
440
437
|
contentLeft?: React.ReactElement;
|
441
438
|
contentRight?: React.ReactElement;
|
442
439
|
textBefore?: string;
|
443
440
|
textAfter?: string;
|
444
|
-
onSearch?: (value: string, event?:
|
441
|
+
onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
445
442
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
446
443
|
clear?: false;
|
447
444
|
hasDivider?: never;
|
@@ -467,8 +464,4 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
467
464
|
chipValidator?: (value: string) => {
|
468
465
|
view?: string;
|
469
466
|
};
|
470
|
-
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<
|
471
|
-
type PropsFromConfig = keyof typeof config['variations'];
|
472
|
-
type Props<T extends SuggestionItemType> = DistributiveOmit<AutocompleteProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof AutocompleteComponent>, PropsFromConfig>;
|
473
|
-
export declare const Autocomplete: <T extends SuggestionItemType>(props: Props<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
|
474
|
-
export {};
|
467
|
+
}, "labelPlacement" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipView" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>))>;
|
@@ -2,85 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
get Autocomplete () {
|
5
|
+
Object.defineProperty(exports, "Autocomplete", {
|
6
|
+
enumerable: true,
|
7
|
+
get: function() {
|
13
8
|
return Autocomplete;
|
14
|
-
},
|
15
|
-
get AutocompleteComponent () {
|
16
|
-
return AutocompleteComponent;
|
17
9
|
}
|
18
10
|
});
|
19
11
|
var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
|
20
|
-
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
21
12
|
var _Autocompleteconfig = require("./Autocomplete.config");
|
22
|
-
function _define_property(obj, key, value) {
|
23
|
-
if (key in obj) {
|
24
|
-
Object.defineProperty(obj, key, {
|
25
|
-
value: value,
|
26
|
-
enumerable: true,
|
27
|
-
configurable: true,
|
28
|
-
writable: true
|
29
|
-
});
|
30
|
-
} else {
|
31
|
-
obj[key] = value;
|
32
|
-
}
|
33
|
-
return obj;
|
34
|
-
}
|
35
|
-
function _interop_require_default(obj) {
|
36
|
-
return obj && obj.__esModule ? obj : {
|
37
|
-
default: obj
|
38
|
-
};
|
39
|
-
}
|
40
|
-
function _object_spread(target) {
|
41
|
-
for(var i = 1; i < arguments.length; i++){
|
42
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
43
|
-
var ownKeys = Object.keys(source);
|
44
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
45
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
46
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
47
|
-
}));
|
48
|
-
}
|
49
|
-
ownKeys.forEach(function(key) {
|
50
|
-
_define_property(target, key, source[key]);
|
51
|
-
});
|
52
|
-
}
|
53
|
-
return target;
|
54
|
-
}
|
55
|
-
function ownKeys(object, enumerableOnly) {
|
56
|
-
var keys = Object.keys(object);
|
57
|
-
if (Object.getOwnPropertySymbols) {
|
58
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
59
|
-
if (enumerableOnly) {
|
60
|
-
symbols = symbols.filter(function(sym) {
|
61
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
62
|
-
});
|
63
|
-
}
|
64
|
-
keys.push.apply(keys, symbols);
|
65
|
-
}
|
66
|
-
return keys;
|
67
|
-
}
|
68
|
-
function _object_spread_props(target, source) {
|
69
|
-
source = source != null ? source : {};
|
70
|
-
if (Object.getOwnPropertyDescriptors) {
|
71
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
72
|
-
} else {
|
73
|
-
ownKeys(Object(source)).forEach(function(key) {
|
74
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
75
|
-
});
|
76
|
-
}
|
77
|
-
return target;
|
78
|
-
}
|
79
13
|
var mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.autocompleteConfig, _Autocompleteconfig.config);
|
80
|
-
var
|
81
|
-
var AutocompleteWithoutRef = function(props, ref) {
|
82
|
-
return /*#__PURE__*/ _react.default.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
|
83
|
-
ref: ref
|
84
|
-
}));
|
85
|
-
};
|
86
|
-
var Autocomplete = (0, _styledcomponents.fixedForwardRef)(AutocompleteWithoutRef);
|
14
|
+
var Autocomplete = (0, _styledcomponents.component)(mergedConfig);
|
@@ -12,7 +12,7 @@ declare const DropdownNewHope: React.FunctionComponent<import("@salutejs/plasma-
|
|
12
12
|
alwaysOpened?: boolean;
|
13
13
|
children?: React.ReactNode;
|
14
14
|
itemRole?: string;
|
15
|
-
onHover?: (index: number) => void;
|
15
|
+
onHover?: ((index: number, item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption) => void) | undefined;
|
16
16
|
onItemSelect?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
|
17
17
|
trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger;
|
18
18
|
openByRightClick?: boolean;
|
@@ -50,7 +50,7 @@ declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewPr
|
|
50
50
|
alwaysOpened?: boolean;
|
51
51
|
children?: React.ReactNode;
|
52
52
|
itemRole?: string;
|
53
|
-
onHover?: (index: number) => void;
|
53
|
+
onHover?: ((index: number, item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption) => void) | undefined;
|
54
54
|
onItemSelect?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
|
55
55
|
trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger;
|
56
56
|
openByRightClick?: boolean;
|
@@ -2,85 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
3
3
|
value: true
|
4
4
|
});
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
get Autocomplete () {
|
5
|
+
Object.defineProperty(exports, "Autocomplete", {
|
6
|
+
enumerable: true,
|
7
|
+
get: function() {
|
13
8
|
return Autocomplete;
|
14
|
-
},
|
15
|
-
get AutocompleteComponent () {
|
16
|
-
return AutocompleteComponent;
|
17
9
|
}
|
18
10
|
});
|
19
11
|
var _emotion = require("@salutejs/plasma-new-hope/emotion");
|
20
|
-
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
21
12
|
var _Autocompleteconfig = require("./Autocomplete.config");
|
22
|
-
function _define_property(obj, key, value) {
|
23
|
-
if (key in obj) {
|
24
|
-
Object.defineProperty(obj, key, {
|
25
|
-
value: value,
|
26
|
-
enumerable: true,
|
27
|
-
configurable: true,
|
28
|
-
writable: true
|
29
|
-
});
|
30
|
-
} else {
|
31
|
-
obj[key] = value;
|
32
|
-
}
|
33
|
-
return obj;
|
34
|
-
}
|
35
|
-
function _interop_require_default(obj) {
|
36
|
-
return obj && obj.__esModule ? obj : {
|
37
|
-
default: obj
|
38
|
-
};
|
39
|
-
}
|
40
|
-
function _object_spread(target) {
|
41
|
-
for(var i = 1; i < arguments.length; i++){
|
42
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
43
|
-
var ownKeys = Object.keys(source);
|
44
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
45
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
46
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
47
|
-
}));
|
48
|
-
}
|
49
|
-
ownKeys.forEach(function(key) {
|
50
|
-
_define_property(target, key, source[key]);
|
51
|
-
});
|
52
|
-
}
|
53
|
-
return target;
|
54
|
-
}
|
55
|
-
function ownKeys(object, enumerableOnly) {
|
56
|
-
var keys = Object.keys(object);
|
57
|
-
if (Object.getOwnPropertySymbols) {
|
58
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
59
|
-
if (enumerableOnly) {
|
60
|
-
symbols = symbols.filter(function(sym) {
|
61
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
62
|
-
});
|
63
|
-
}
|
64
|
-
keys.push.apply(keys, symbols);
|
65
|
-
}
|
66
|
-
return keys;
|
67
|
-
}
|
68
|
-
function _object_spread_props(target, source) {
|
69
|
-
source = source != null ? source : {};
|
70
|
-
if (Object.getOwnPropertyDescriptors) {
|
71
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
72
|
-
} else {
|
73
|
-
ownKeys(Object(source)).forEach(function(key) {
|
74
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
75
|
-
});
|
76
|
-
}
|
77
|
-
return target;
|
78
|
-
}
|
79
13
|
var mergedConfig = (0, _emotion.mergeConfig)(_emotion.autocompleteConfig, _Autocompleteconfig.config);
|
80
|
-
var
|
81
|
-
var AutocompleteWithoutRef = function(props, ref) {
|
82
|
-
return /*#__PURE__*/ _react.default.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
|
83
|
-
ref: ref
|
84
|
-
}));
|
85
|
-
};
|
86
|
-
var Autocomplete = (0, _emotion.fixedForwardRef)(AutocompleteWithoutRef);
|
14
|
+
var Autocomplete = (0, _emotion.component)(mergedConfig);
|
@@ -1,63 +1,4 @@
|
|
1
|
-
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
return obj;
|
13
|
-
}
|
14
|
-
function _object_spread(target) {
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
17
|
-
var ownKeys = Object.keys(source);
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
21
|
-
}));
|
22
|
-
}
|
23
|
-
ownKeys.forEach(function(key) {
|
24
|
-
_define_property(target, key, source[key]);
|
25
|
-
});
|
26
|
-
}
|
27
|
-
return target;
|
28
|
-
}
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
30
|
-
var keys = Object.keys(object);
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
33
|
-
if (enumerableOnly) {
|
34
|
-
symbols = symbols.filter(function(sym) {
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
36
|
-
});
|
37
|
-
}
|
38
|
-
keys.push.apply(keys, symbols);
|
39
|
-
}
|
40
|
-
return keys;
|
41
|
-
}
|
42
|
-
function _object_spread_props(target, source) {
|
43
|
-
source = source != null ? source : {};
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
46
|
-
} else {
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
49
|
-
});
|
50
|
-
}
|
51
|
-
return target;
|
52
|
-
}
|
53
|
-
import { autocompleteConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/emotion';
|
54
|
-
import React from 'react';
|
1
|
+
import { autocompleteConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
55
2
|
import { config } from './Autocomplete.config';
|
56
3
|
var mergedConfig = mergeConfig(autocompleteConfig, config);
|
57
|
-
export var
|
58
|
-
var AutocompleteWithoutRef = function(props, ref) {
|
59
|
-
return /*#__PURE__*/ React.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
|
60
|
-
ref: ref
|
61
|
-
}));
|
62
|
-
};
|
63
|
-
export var Autocomplete = fixedForwardRef(AutocompleteWithoutRef);
|
4
|
+
export var Autocomplete = component(mergedConfig);
|
@@ -1,63 +1,4 @@
|
|
1
|
-
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
return obj;
|
13
|
-
}
|
14
|
-
function _object_spread(target) {
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
17
|
-
var ownKeys = Object.keys(source);
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
21
|
-
}));
|
22
|
-
}
|
23
|
-
ownKeys.forEach(function(key) {
|
24
|
-
_define_property(target, key, source[key]);
|
25
|
-
});
|
26
|
-
}
|
27
|
-
return target;
|
28
|
-
}
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
30
|
-
var keys = Object.keys(object);
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
33
|
-
if (enumerableOnly) {
|
34
|
-
symbols = symbols.filter(function(sym) {
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
36
|
-
});
|
37
|
-
}
|
38
|
-
keys.push.apply(keys, symbols);
|
39
|
-
}
|
40
|
-
return keys;
|
41
|
-
}
|
42
|
-
function _object_spread_props(target, source) {
|
43
|
-
source = source != null ? source : {};
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
46
|
-
} else {
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
49
|
-
});
|
50
|
-
}
|
51
|
-
return target;
|
52
|
-
}
|
53
|
-
import { autocompleteConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
|
54
|
-
import React from 'react';
|
1
|
+
import { autocompleteConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
55
2
|
import { config } from './Autocomplete.config';
|
56
3
|
var mergedConfig = mergeConfig(autocompleteConfig, config);
|
57
|
-
export var
|
58
|
-
var AutocompleteWithoutRef = function(props, ref) {
|
59
|
-
return /*#__PURE__*/ React.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
|
60
|
-
ref: ref
|
61
|
-
}));
|
62
|
-
};
|
63
|
-
export var Autocomplete = fixedForwardRef(AutocompleteWithoutRef);
|
4
|
+
export var Autocomplete = component(mergedConfig);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.328.0-canary.
|
3
|
+
"version": "0.328.0-canary.2212.17493177132.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS CS web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"directory": "packages/sdds-cs"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@salutejs/plasma-new-hope": "0.336.0-canary.
|
33
|
+
"@salutejs/plasma-new-hope": "0.336.0-canary.2212.17493177132.0",
|
34
34
|
"@salutejs/sdds-themes": "0.47.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "b67d110f07ba268a5100c52eb0953737fe702d30"
|
127
127
|
}
|