@salutejs/plasma-sb-utils 0.226.0-next-platform-ai.0 → 0.227.0-dev.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/lib/components/Combobox/Combobox.d.ts +408 -0
- package/lib/components/Combobox/Combobox.js +94 -0
- package/lib/components/Combobox/Combobox.js.map +1 -0
- package/lib/components/Combobox/fixtures.d.ts +42 -0
- package/lib/components/Combobox/fixtures.js +364 -0
- package/lib/components/Combobox/fixtures.js.map +1 -0
- package/lib/components/Combobox/index.d.ts +1 -0
- package/lib/components/Combobox/index.js +2 -0
- package/lib/components/Combobox/index.js.map +1 -0
- package/lib/components/Combobox/meta.d.ts +357 -0
- package/lib/components/Combobox/meta.js +149 -0
- package/lib/components/Combobox/meta.js.map +1 -0
- package/lib/components/Combobox/stories.d.ts +4 -0
- package/lib/components/Combobox/stories.js +109 -0
- package/lib/components/Combobox/stories.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.js +4 -4
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DatePicker/stories.d.ts +4 -2
- package/lib/components/DatePicker/stories.js +18 -5
- package/lib/components/DatePicker/stories.js.map +1 -1
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +24 -0
- package/lib/components/DateTimePicker/DateTimePicker.js +2 -2
- package/lib/components/DateTimePicker/DateTimePicker.js.map +1 -1
- package/lib/components/DateTimePicker/fixtures.d.ts +1 -0
- package/lib/components/DateTimePicker/fixtures.js +1 -0
- package/lib/components/DateTimePicker/fixtures.js.map +1 -1
- package/lib/components/DateTimePicker/meta.d.ts +23 -0
- package/lib/components/DateTimePicker/meta.js +13 -3
- package/lib/components/DateTimePicker/meta.js.map +1 -1
- package/lib/components/DateTimePicker/stories.d.ts +1 -1
- package/lib/components/DateTimePicker/stories.js +8 -3
- package/lib/components/DateTimePicker/stories.js.map +1 -1
- package/lib/components/Dropzone/Dropzone.d.ts +122 -0
- package/lib/components/Dropzone/Dropzone.js +40 -0
- package/lib/components/Dropzone/Dropzone.js.map +1 -0
- package/lib/components/Dropzone/fixtures.d.ts +1 -0
- package/lib/components/Dropzone/fixtures.js +2 -0
- package/lib/components/Dropzone/fixtures.js.map +1 -0
- package/lib/components/Dropzone/index.d.ts +1 -0
- package/lib/components/Dropzone/index.js +2 -0
- package/lib/components/Dropzone/index.js.map +1 -0
- package/lib/components/Dropzone/meta.d.ts +117 -0
- package/lib/components/Dropzone/meta.js +81 -0
- package/lib/components/Dropzone/meta.js.map +1 -0
- package/lib/components/Dropzone/stories.d.ts +1 -0
- package/lib/components/Dropzone/stories.js +36 -0
- package/lib/components/Dropzone/stories.js.map +1 -0
- package/lib/components/InformationWrapper/InformationWrapper.d.ts +270 -0
- package/lib/components/InformationWrapper/InformationWrapper.js +40 -0
- package/lib/components/InformationWrapper/InformationWrapper.js.map +1 -0
- package/lib/components/InformationWrapper/fixtures.d.ts +6 -0
- package/lib/components/InformationWrapper/fixtures.js +21 -0
- package/lib/components/InformationWrapper/fixtures.js.map +1 -0
- package/lib/components/InformationWrapper/index.d.ts +1 -0
- package/lib/components/InformationWrapper/index.js +2 -0
- package/lib/components/InformationWrapper/index.js.map +1 -0
- package/lib/components/InformationWrapper/meta.d.ts +265 -0
- package/lib/components/InformationWrapper/meta.js +118 -0
- package/lib/components/InformationWrapper/meta.js.map +1 -0
- package/lib/components/InformationWrapper/stories.d.ts +1 -0
- package/lib/components/InformationWrapper/stories.js +42 -0
- package/lib/components/InformationWrapper/stories.js.map +1 -0
- package/lib/components/NumberInput/fixtures.js +1 -1
- package/lib/components/NumberInput/fixtures.js.map +1 -1
- package/lib/components/Popover/Popover.d.ts +195 -0
- package/lib/components/Popover/Popover.js +50 -0
- package/lib/components/Popover/Popover.js.map +1 -0
- package/lib/components/Popover/fixtures.d.ts +5 -0
- package/lib/components/Popover/fixtures.js +29 -0
- package/lib/components/Popover/fixtures.js.map +1 -0
- package/lib/components/Popover/index.d.ts +1 -0
- package/lib/components/Popover/index.js +2 -0
- package/lib/components/Popover/index.js.map +1 -0
- package/lib/components/Popover/meta.d.ts +110 -0
- package/lib/components/Popover/meta.js +78 -0
- package/lib/components/Popover/meta.js.map +1 -0
- package/lib/components/Popover/stories.d.ts +80 -0
- package/lib/components/Popover/stories.js +125 -0
- package/lib/components/Popover/stories.js.map +1 -0
- package/lib/components/Progress/Progress.d.ts +159 -0
- package/lib/components/Progress/Progress.js +38 -0
- package/lib/components/Progress/Progress.js.map +1 -0
- package/lib/components/Progress/fixtures.d.ts +5 -0
- package/lib/components/Progress/fixtures.js +6 -0
- package/lib/components/Progress/fixtures.js.map +1 -0
- package/lib/components/Progress/index.d.ts +1 -0
- package/lib/components/Progress/index.js +2 -0
- package/lib/components/Progress/index.js.map +1 -0
- package/lib/components/Progress/meta.d.ts +154 -0
- package/lib/components/Progress/meta.js +87 -0
- package/lib/components/Progress/meta.js.map +1 -0
- package/lib/components/Progress/stories.d.ts +2 -0
- package/lib/components/Progress/stories.js +59 -0
- package/lib/components/Progress/stories.js.map +1 -0
- package/lib/components/Range/Range.d.ts +1 -0
- package/lib/components/Range/Range.js +2 -2
- package/lib/components/Range/Range.js.map +1 -1
- package/lib/components/Range/stories.d.ts +1 -1
- package/lib/components/Range/stories.js +11 -2
- package/lib/components/Range/stories.js.map +1 -1
- package/lib/components/Select/Select.d.ts +1 -0
- package/lib/components/Select/Select.js +4 -4
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/stories.d.ts +5 -3
- package/lib/components/Select/stories.js +10 -7
- package/lib/components/Select/stories.js.map +1 -1
- package/lib/components/Skeleton/Skeleton.d.ts +28 -1
- package/lib/components/Skeleton/stories.d.ts +28 -1
- package/lib/components/Skeleton/stories.js +34 -1
- package/lib/components/Skeleton/stories.js.map +1 -1
- package/lib/components/TextArea/TextArea.d.ts +154 -19
- package/lib/components/TextArea/meta.d.ts +154 -19
- package/lib/components/TextArea/meta.js +92 -141
- package/lib/components/TextArea/meta.js.map +1 -1
- package/lib/components/TextArea/stories.js +8 -9
- package/lib/components/TextArea/stories.js.map +1 -1
- package/lib/components/TextFieldSlider/TextFieldSlider.d.ts +9 -0
- package/lib/components/TextFieldSlider/meta.d.ts +9 -0
- package/lib/components/TextFieldSlider/meta.js +4 -1
- package/lib/components/TextFieldSlider/meta.js.map +1 -1
- package/lib/components/TextFieldSlider/stories.d.ts +1 -1
- package/lib/components/TextFieldSlider/stories.js +13 -4
- package/lib/components/TextFieldSlider/stories.js.map +1 -1
- package/lib/components/TimePicker/TimePicker.d.ts +24 -0
- package/lib/components/TimePicker/TimePicker.js +2 -2
- package/lib/components/TimePicker/TimePicker.js.map +1 -1
- package/lib/components/TimePicker/fixtures.d.ts +1 -0
- package/lib/components/TimePicker/fixtures.js +1 -0
- package/lib/components/TimePicker/fixtures.js.map +1 -1
- package/lib/components/TimePicker/meta.d.ts +23 -0
- package/lib/components/TimePicker/meta.js +13 -3
- package/lib/components/TimePicker/meta.js.map +1 -1
- package/lib/components/TimePicker/stories.d.ts +1 -1
- package/lib/components/TimePicker/stories.js +11 -3
- package/lib/components/TimePicker/stories.js.map +1 -1
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
type CreateStoriesProps = {
|
|
2
|
+
component: any;
|
|
3
|
+
componentConfig: any;
|
|
4
|
+
disablePropsList?: string[];
|
|
5
|
+
defaultArgs?: {};
|
|
6
|
+
};
|
|
7
|
+
export declare const getComboboxStories: (config: CreateStoriesProps) => {
|
|
8
|
+
meta: {
|
|
9
|
+
title: string;
|
|
10
|
+
decorators: import("@storybook/react").Decorator[];
|
|
11
|
+
component: any;
|
|
12
|
+
args: {
|
|
13
|
+
label: string;
|
|
14
|
+
labelPlacement: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
helperText: string;
|
|
17
|
+
size: string;
|
|
18
|
+
view: string;
|
|
19
|
+
enableContentLeft: boolean;
|
|
20
|
+
isTargetAmount: boolean;
|
|
21
|
+
targetAmount: undefined;
|
|
22
|
+
variant: string;
|
|
23
|
+
alwaysOpened: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
readOnly: boolean;
|
|
26
|
+
optional: boolean;
|
|
27
|
+
required: boolean;
|
|
28
|
+
requiredPlacement: string;
|
|
29
|
+
hasRequiredIndicator: boolean;
|
|
30
|
+
hasHint: boolean;
|
|
31
|
+
hintText: string;
|
|
32
|
+
hintTrigger: string;
|
|
33
|
+
hintView: string;
|
|
34
|
+
hintSize: string;
|
|
35
|
+
hintTargetPlacement: string;
|
|
36
|
+
hintPlacement: string;
|
|
37
|
+
hintWidth: string;
|
|
38
|
+
hintHasArrow: boolean;
|
|
39
|
+
emptyStateDescription: string;
|
|
40
|
+
mode: string;
|
|
41
|
+
treeView: boolean;
|
|
42
|
+
arrowPlacement: string;
|
|
43
|
+
singleLine: boolean;
|
|
44
|
+
closeAfterSelect: boolean;
|
|
45
|
+
chipClickArea: string;
|
|
46
|
+
};
|
|
47
|
+
argTypes: {
|
|
48
|
+
size: {
|
|
49
|
+
options: any;
|
|
50
|
+
control: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
table: {
|
|
54
|
+
category: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
view: {
|
|
58
|
+
options: any;
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
table: {
|
|
63
|
+
category: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
labelPlacement: {
|
|
67
|
+
options: string[];
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
table: {
|
|
72
|
+
category: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
variant: {
|
|
76
|
+
options: string[];
|
|
77
|
+
control: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
table: {
|
|
81
|
+
category: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
listWidth: {
|
|
85
|
+
control: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
table: {
|
|
89
|
+
category: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
listMaxHeight: {
|
|
93
|
+
control: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
table: {
|
|
97
|
+
category: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
disabled: {
|
|
101
|
+
control: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
if: {
|
|
105
|
+
arg: string;
|
|
106
|
+
truthy: boolean;
|
|
107
|
+
};
|
|
108
|
+
table: {
|
|
109
|
+
category: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readOnly: {
|
|
113
|
+
control: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
if: {
|
|
117
|
+
arg: string;
|
|
118
|
+
truthy: boolean;
|
|
119
|
+
};
|
|
120
|
+
table: {
|
|
121
|
+
category: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
targetAmount: {
|
|
125
|
+
control: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
if: {
|
|
129
|
+
arg: string;
|
|
130
|
+
truthy: boolean;
|
|
131
|
+
};
|
|
132
|
+
table: {
|
|
133
|
+
category: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
requiredPlacement: {
|
|
137
|
+
options: string[];
|
|
138
|
+
control: {
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
table: {
|
|
142
|
+
category: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
required: {
|
|
146
|
+
control: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
if: {
|
|
150
|
+
arg: string;
|
|
151
|
+
truthy: boolean;
|
|
152
|
+
};
|
|
153
|
+
table: {
|
|
154
|
+
category: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
hasRequiredIndicator: {
|
|
158
|
+
control: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
if: {
|
|
162
|
+
arg: string;
|
|
163
|
+
truthy: boolean;
|
|
164
|
+
};
|
|
165
|
+
table: {
|
|
166
|
+
category: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
optional: {
|
|
170
|
+
control: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
if: {
|
|
174
|
+
arg: string;
|
|
175
|
+
truthy: boolean;
|
|
176
|
+
};
|
|
177
|
+
table: {
|
|
178
|
+
category: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
hintText: {
|
|
182
|
+
control: {
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
if: {
|
|
186
|
+
arg: string;
|
|
187
|
+
truthy: boolean;
|
|
188
|
+
};
|
|
189
|
+
table: {
|
|
190
|
+
category: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
hintView: {
|
|
194
|
+
options: string[];
|
|
195
|
+
control: {
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
if: {
|
|
199
|
+
arg: string;
|
|
200
|
+
truthy: boolean;
|
|
201
|
+
};
|
|
202
|
+
table: {
|
|
203
|
+
category: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
hintSize: {
|
|
207
|
+
options: string[];
|
|
208
|
+
control: {
|
|
209
|
+
type: string;
|
|
210
|
+
};
|
|
211
|
+
if: {
|
|
212
|
+
arg: string;
|
|
213
|
+
truthy: boolean;
|
|
214
|
+
};
|
|
215
|
+
table: {
|
|
216
|
+
category: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
hintTargetPlacement: {
|
|
220
|
+
options: string[];
|
|
221
|
+
control: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
if: {
|
|
225
|
+
arg: string;
|
|
226
|
+
truthy: boolean;
|
|
227
|
+
};
|
|
228
|
+
table: {
|
|
229
|
+
category: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
hintTrigger: {
|
|
233
|
+
options: string[];
|
|
234
|
+
control: {
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
if: {
|
|
238
|
+
arg: string;
|
|
239
|
+
truthy: boolean;
|
|
240
|
+
};
|
|
241
|
+
table: {
|
|
242
|
+
category: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
hintPlacement: {
|
|
246
|
+
options: string[];
|
|
247
|
+
control: {
|
|
248
|
+
type: string;
|
|
249
|
+
};
|
|
250
|
+
if: {
|
|
251
|
+
arg: string;
|
|
252
|
+
truthy: boolean;
|
|
253
|
+
};
|
|
254
|
+
mappers: string[];
|
|
255
|
+
table: {
|
|
256
|
+
category: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
hintHasArrow: {
|
|
260
|
+
control: {
|
|
261
|
+
type: string;
|
|
262
|
+
};
|
|
263
|
+
if: {
|
|
264
|
+
arg: string;
|
|
265
|
+
truthy: boolean;
|
|
266
|
+
};
|
|
267
|
+
table: {
|
|
268
|
+
category: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
hintWidth: {
|
|
272
|
+
control: {
|
|
273
|
+
type: string;
|
|
274
|
+
};
|
|
275
|
+
if: {
|
|
276
|
+
arg: string;
|
|
277
|
+
truthy: boolean;
|
|
278
|
+
};
|
|
279
|
+
table: {
|
|
280
|
+
category: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
emptyStateDescription: {
|
|
284
|
+
control: {
|
|
285
|
+
type: string;
|
|
286
|
+
};
|
|
287
|
+
table: {
|
|
288
|
+
category: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
mode: {
|
|
292
|
+
options: string[];
|
|
293
|
+
control: {
|
|
294
|
+
type: string;
|
|
295
|
+
};
|
|
296
|
+
table: {
|
|
297
|
+
category: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
treeView: {
|
|
301
|
+
control: {
|
|
302
|
+
type: string;
|
|
303
|
+
};
|
|
304
|
+
table: {
|
|
305
|
+
category: string;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
arrowPlacement: {
|
|
309
|
+
options: string[];
|
|
310
|
+
control: {
|
|
311
|
+
type: string;
|
|
312
|
+
};
|
|
313
|
+
if: {
|
|
314
|
+
arg: string;
|
|
315
|
+
truthy: boolean;
|
|
316
|
+
};
|
|
317
|
+
table: {
|
|
318
|
+
category: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
singleLine: {
|
|
322
|
+
control: {
|
|
323
|
+
type: string;
|
|
324
|
+
};
|
|
325
|
+
table: {
|
|
326
|
+
category: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
closeAfterSelect: {
|
|
330
|
+
control: {
|
|
331
|
+
type: string;
|
|
332
|
+
};
|
|
333
|
+
table: {
|
|
334
|
+
category: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
alwaysOpened: {
|
|
338
|
+
control: {
|
|
339
|
+
type: string;
|
|
340
|
+
};
|
|
341
|
+
table: {
|
|
342
|
+
category: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
chipClickArea: {
|
|
346
|
+
options: string[];
|
|
347
|
+
control: {
|
|
348
|
+
type: string;
|
|
349
|
+
};
|
|
350
|
+
table: {
|
|
351
|
+
category: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
Single: {
|
|
357
|
+
render: (args: any) => JSX.Element;
|
|
358
|
+
args: {
|
|
359
|
+
closeAfterSelect: boolean;
|
|
360
|
+
};
|
|
361
|
+
parameters: {
|
|
362
|
+
controls: {
|
|
363
|
+
exclude: string[];
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
Multiple: {
|
|
368
|
+
render: (args: any) => JSX.Element;
|
|
369
|
+
parameters: {
|
|
370
|
+
controls: {
|
|
371
|
+
exclude: string[];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
SelectAll: {
|
|
376
|
+
render: (args: any) => JSX.Element;
|
|
377
|
+
argTypes: {
|
|
378
|
+
selectAllSticky: {
|
|
379
|
+
control: string;
|
|
380
|
+
};
|
|
381
|
+
selectAllLabel: {
|
|
382
|
+
control: string;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
args: {
|
|
386
|
+
selectAllSticky: boolean;
|
|
387
|
+
selectAllLabel: string;
|
|
388
|
+
};
|
|
389
|
+
parameters: {
|
|
390
|
+
controls: {
|
|
391
|
+
include: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
AddItem: {
|
|
396
|
+
render: (args: any) => JSX.Element;
|
|
397
|
+
args: {
|
|
398
|
+
emptyStateDescription: string;
|
|
399
|
+
helperText: string;
|
|
400
|
+
};
|
|
401
|
+
parameters: {
|
|
402
|
+
controls: {
|
|
403
|
+
include: string[];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { getConfigVariations } from '../../helpers';
|
|
25
|
+
import { createMeta } from './meta';
|
|
26
|
+
import { createAddItemStory, createMultipleStory, createSelectAllStory, createSingleStory } from './stories';
|
|
27
|
+
export var getComboboxStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, rest = __rest(config, ["component", "componentConfig"]);
|
|
29
|
+
var comboboxConfig = getConfigVariations(componentConfig);
|
|
30
|
+
var meta = createMeta(__assign({ component: component, componentConfig: comboboxConfig }, rest));
|
|
31
|
+
var SingleStoryComponent = createSingleStory(component);
|
|
32
|
+
var Single = {
|
|
33
|
+
render: function (args) { return React.createElement(SingleStoryComponent, __assign({}, args)); },
|
|
34
|
+
args: {
|
|
35
|
+
closeAfterSelect: true,
|
|
36
|
+
},
|
|
37
|
+
parameters: {
|
|
38
|
+
controls: {
|
|
39
|
+
exclude: ['isTargetAmount', 'targetAmount', 'chipClickArea'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
var MultipleStoryComponent = createMultipleStory(component);
|
|
44
|
+
var Multiple = {
|
|
45
|
+
render: function (args) { return React.createElement(MultipleStoryComponent, __assign({}, args)); },
|
|
46
|
+
parameters: {
|
|
47
|
+
controls: {
|
|
48
|
+
exclude: ['mode'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
var SelectAllStoryComponent = createSelectAllStory(component);
|
|
53
|
+
var SelectAll = {
|
|
54
|
+
render: function (args) { return React.createElement(SelectAllStoryComponent, __assign({}, args)); },
|
|
55
|
+
argTypes: {
|
|
56
|
+
selectAllSticky: {
|
|
57
|
+
control: 'boolean',
|
|
58
|
+
},
|
|
59
|
+
selectAllLabel: {
|
|
60
|
+
control: 'text',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
args: {
|
|
64
|
+
selectAllSticky: false,
|
|
65
|
+
selectAllLabel: 'Выбрать все',
|
|
66
|
+
},
|
|
67
|
+
parameters: {
|
|
68
|
+
controls: {
|
|
69
|
+
include: ['selectAllSticky', 'selectAllLabel'],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
var AddItemStoryComponent = createAddItemStory(component);
|
|
74
|
+
var AddItem = {
|
|
75
|
+
render: function (args) { return React.createElement(AddItemStoryComponent, __assign({}, args)); },
|
|
76
|
+
args: {
|
|
77
|
+
emptyStateDescription: 'Нажмите Enter, чтобы добавить значение в список.',
|
|
78
|
+
helperText: 'Введите новое слово',
|
|
79
|
+
},
|
|
80
|
+
parameters: {
|
|
81
|
+
controls: {
|
|
82
|
+
include: ['helperText', 'emptyStateDescription'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
meta: meta,
|
|
88
|
+
Single: Single,
|
|
89
|
+
Multiple: Multiple,
|
|
90
|
+
SelectAll: SelectAll,
|
|
91
|
+
AddItem: AddItem,
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=Combobox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combobox.js","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAS7G,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,MAA0B;IACjD,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,eAAe,GAAc,MAAM,gBAApB,EAAK,IAAI,UAAK,MAAM,EAAhD,gCAAuC,CAAF,CAAY;IAEvD,IAAM,cAAc,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAE5D,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,cAAc,IAC5B,IAAI,EACT,CAAC;IAEH,IAAM,oBAAoB,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAE1D,IAAM,MAAM,GAAG;QACX,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,oBAAoB,eAAK,IAAI,EAAI,EAAlC,CAAkC;QACzD,IAAI,EAAE;YACF,gBAAgB,EAAE,IAAI;SACzB;QACD,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,OAAO,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,eAAe,CAAC;aAC/D;SACJ;KACJ,CAAC;IAEF,IAAM,sBAAsB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAE9D,IAAM,QAAQ,GAAG;QACb,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,sBAAsB,eAAK,IAAI,EAAI,EAApC,CAAoC;QAC3D,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,OAAO,EAAE,CAAC,MAAM,CAAC;aACpB;SACJ;KACJ,CAAC;IAEF,IAAM,uBAAuB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAEhE,IAAM,SAAS,GAAG;QACd,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,uBAAuB,eAAK,IAAI,EAAI,EAArC,CAAqC;QAC5D,QAAQ,EAAE;YACN,eAAe,EAAE;gBACb,OAAO,EAAE,SAAS;aACrB;YACD,cAAc,EAAE;gBACZ,OAAO,EAAE,MAAM;aAClB;SACJ;QACD,IAAI,EAAE;YACF,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,aAAa;SAChC;QACD,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;aACjD;SACJ;KACJ,CAAC;IAEF,IAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAE5D,IAAM,OAAO,GAAG;QACZ,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,qBAAqB,eAAK,IAAI,EAAI,EAAnC,CAAmC;QAC1D,IAAI,EAAE;YACF,qBAAqB,EAAE,kDAAkD;YACzE,UAAU,EAAE,qBAAqB;SACpC;QACD,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;aACnD;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,UAAA;QACR,SAAS,WAAA;QACT,OAAO,SAAA;KACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const variant: string[];
|
|
2
|
+
export declare const hintTriggers: string[];
|
|
3
|
+
export declare const hintTargetPlacements: string[];
|
|
4
|
+
export declare const hintViews: string[];
|
|
5
|
+
export declare const hintSizes: string[];
|
|
6
|
+
export declare const labelPlacement: string[];
|
|
7
|
+
export declare const placements: string[];
|
|
8
|
+
export declare const mode: string[];
|
|
9
|
+
export declare const chipView: string[];
|
|
10
|
+
export declare const arrowPlacement: string[];
|
|
11
|
+
export declare const chipClickArea: string[];
|
|
12
|
+
export declare const shortListItems: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
export declare const items: ({
|
|
17
|
+
value: string;
|
|
18
|
+
label: string;
|
|
19
|
+
items?: undefined;
|
|
20
|
+
disabled?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
items: {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
items: {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
}[];
|
|
32
|
+
disabled?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
items?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
export declare const flatItems: {
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|