forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demos.ts
472 lines (470 loc) · 11.4 KB
/
Demos.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
import * as Examples from './components/demos';
interface DemoInterface {
/** ID for the demo, it will be used to help generate general ids to help with testing */
id: string;
/** The name of the demo */
name: string;
/** Demo component associated with the demo */
componentType: any;
/** Flag if this is the default demo */
isDefault?: boolean;
}
/** Add the name of the demo and it's component here to have them show up in the demo app */
export const Demos: DemoInterface[] = [
{
id: 'about-modal-demo',
name: 'About Modal Demo',
componentType: Examples.AboutModalDemo
},
{
id: 'accordion-demo',
name: 'Accordion Demo',
componentType: Examples.AccordionDemo
},
{
id: 'alert-timeout-close-button-demo',
name: 'Alert Timeout Close Button Demo',
componentType: Examples.AlertTimeoutCloseButtonDemo
},
{
id: 'alert-demo',
name: 'Alert Demo',
componentType: Examples.AlertDemo
},
{
id: 'alert-group-demo',
name: 'Alert Group Demo',
componentType: Examples.AlertGroupDemo
},
{
id: 'alert-group-timeout-from-bottom-demo',
name: 'Alert Group Timeout From Bottom Demo',
componentType: Examples.AlertGroupTimeoutFromBottomDemo
},
{
id: 'back-to-top-demo',
name: 'Back To Top Demo',
componentType: Examples.BackToTopDemo
},
{
id: 'breadcrumb-demo',
name: 'Breadcrumb Demo',
componentType: Examples.BreadcrumbDemo
},
{
id: 'button-demo',
name: 'Button Demo',
componentType: Examples.ButtonDemo
},
{
id: 'card-demo',
name: 'Card Demo',
componentType: Examples.CardDemo
},
{
id: 'chip-demo',
name: 'Chip Demo',
componentType: Examples.ChipDemo
},
{
id: 'chipgroup-demo',
name: 'ChipGroup Demo',
componentType: Examples.ChipGroupDemo
},
{
id: 'chipgroup-default-is-open-demo',
name: 'ChipGroup Default is Open Demo',
componentType: Examples.ChipGroupDefaultIsOpenDemo
},
{
id: 'chipgroup-with-category-demo',
name: 'ChipGroup With Category Demo',
componentType: Examples.ChipWithCategoryGroupDemo
},
{
id: 'chipgroup-with-overflow-chip-event-handler-demo',
name: 'ChipGroup With Overflow Event Handler',
componentType: Examples.ChipGroupWithOverflowChipEventHandler
},
{
id: 'clipboard-copy-demo',
name: 'ClipboardCopy Demo',
componentType: Examples.ClipboardCopyDemo
},
{
id: 'code-editor-demo',
name: 'CodeEditor Demo',
componentType: Examples.CodeEditorDemo
},
{
id: 'data-list-demo',
name: 'Data List Demo',
componentType: Examples.DataListDemo
},
{
id: 'data-list-draggable-demo',
name: 'Data List Draggable Demo',
componentType: Examples.DataListDraggableDemo
},
{
id: 'data-list-compact-demo',
name: 'Data List Compact Demo',
componentType: Examples.DataListCompactDemo
},
{
id: 'date-picker-demo',
name: 'Date Picker Demo',
componentType: Examples.DatePickerDemo
},
{
id: 'description-list-demo',
name: 'Description List Demo',
componentType: Examples.DescriptionListDemo
},
{
id: 'description-list-breakpoints-demo',
name: 'Description List Breakpoints Demo',
componentType: Examples.DescriptionListBreakpointsDemo
},
{
id: 'drawer-demo',
name: 'Drawer Demo',
componentType: Examples.DrawerDemo
},
{
id: 'drawer-resize-demo',
name: 'Drawer Resize Demo',
componentType: Examples.DrawerResizeDemo
},
{
id: 'dropdown-demo',
name: 'Dropdown Demo',
componentType: Examples.DropdownDemo
},
{
id: 'dual-list-selector-basic-demo',
name: 'DualListSelector basic Demo',
componentType: Examples.DualListSelectorBasicDemo
},
{
id: 'dual-list-selector-tree-demo',
name: 'DualListSelector Tree Demo',
componentType: Examples.DualListSelectorTreeDemo
},
{
id: 'dual-list-selector-with-actions-demo',
name: 'DualListSelector with actions Demo',
componentType: Examples.DualListSelectorWithActionsDemo
},
{
id: 'dual-list-selector-deprecated-basic-demo',
name: 'DualListSelector deprecated basic Demo',
componentType: Examples.DualListSelectorDeprecatedBasicDemo
},
{
id: 'dual-list-selector-deprecated-tree-demo',
name: 'DualListSelector deprecated Tree Demo',
componentType: Examples.DualListSelectorDeprecatedTreeDemo
},
{
id: 'dual-list-selector-deprecated-with-actions-demo',
name: 'DualListSelector deprecated with actions Demo',
componentType: Examples.DualListSelectorDeprecatedWithActionsDemo
},
{
id: 'expandable-section-demo',
name: 'Expandable Section Demo',
componentType: Examples.ExpandableSectionDemo
},
{
id: 'expandable-section-truncate-demo',
name: 'Expandable Section Truncate Demo',
componentType: Examples.ExpandableSectionTruncateDemo
},
{
id: 'fileupload-demo',
name: 'FileUpload Demo',
componentType: Examples.FileUploadDemo
},
{
id: 'form-demo',
name: 'Form Demo',
componentType: Examples.FormDemo
},
{
id: 'jump-links-demo',
name: 'Jump Links Demo',
componentType: Examples.JumpLinksDemo
},
{
id: 'input-group-demo',
name: 'Input Group Demo',
componentType: Examples.InputGroupDemo
},
{
id: 'label-demo',
name: 'Label Demo',
componentType: Examples.LabelDemo
},
{
id: 'labelgroup-editable-demo',
name: 'LabelGroup Editable Demo',
componentType: Examples.LabelGroupEditableDemo
},
{
id: 'labelgroup-vertical-demo',
name: 'LabelGroup Vertical Demo',
componentType: Examples.LabelGroupVerticalDemo
},
{
id: 'labelgroup-with-category-demo',
name: 'LabelGroup With Category Demo',
componentType: Examples.LabelGroupWithCategoryDemo
},
{
id: 'login-page-demo',
name: 'Login Page Demo',
componentType: Examples.LoginPageDemo
},
{
id: 'masthead-demo',
name: 'Masthead Demo',
componentType: Examples.MastheadDemo
},
{
id: 'menu-demo',
name: 'Menu Demo',
componentType: Examples.MenuDemo
},
{
id: 'menu-drilldown-demo',
name: 'Menu Drilldown Demo',
componentType: Examples.MenuDrilldownDemo
},
{
id: 'modal-deprecated-demo',
name: 'Modal Demo',
componentType: Examples.ModalDeprecatedDemo
},
{
id: 'modal-demo',
name: 'Modal Demo',
componentType: Examples.ModalDemo
},
{
id: 'nav-demo',
name: 'Nav Demo',
componentType: Examples.NavDemo
},
{
id: 'notification-badge-demo',
name: 'Notification Badge Demo',
componentType: Examples.NotificationBadgeDemo
},
{
id: 'notification-drawer-lightweight-demo',
name: 'Notification Drawer Lightweight Demo',
componentType: Examples.LightweightNotificationDrawerDemo
},
{
id: 'notification-drawer-basic-demo',
name: 'Notification Drawer Basic Demo',
componentType: Examples.BasicNotificationDrawerDemo
},
{
id: 'notification-drawer-groups-demo',
name: 'Notification Drawer Groups Demo',
componentType: Examples.GroupsNotificationDrawerDemo
},
{
id: 'numberInput-demo',
name: 'Number Input Demo',
componentType: Examples.NumberInputDemo
},
{
id: 'overflow-menu-demo',
name: 'Overflow Menu Demo',
componentType: Examples.OverflowMenuDemo
},
{
id: 'page-demo',
name: 'Page Demo',
componentType: Examples.PageDemo
},
{
id: 'page-managed-sidebar-closed-demo',
name: 'Page Managed Sidebar Closed Demo',
componentType: Examples.PageManagedSidebarClosedDemo
},
{
id: 'pagination-demo',
name: 'Pagination Demo',
componentType: Examples.PaginationDemo
},
{
id: 'popover-demo',
name: 'Popover Demo',
componentType: Examples.PopoverDemo
},
{
id: 'radio-demo',
name: 'Radio Demo',
componentType: Examples.RadioDemo
},
{
id: 'search-input-demo',
name: 'Search Input Demo',
componentType: Examples.SearchInputDemo
},
{
id: 'simple-list-demo',
name: 'Simple List Demo',
componentType: Examples.SimpleListDemo
},
{
id: 'slider-demo',
name: 'Slider Demo',
componentType: Examples.SliderDemo
},
{
id: 'switch-demo',
name: 'Switch Demo',
componentType: Examples.SwitchDemo
},
{
id: 'tab-demo',
name: 'Tab Demo',
componentType: Examples.TabDemo
},
{
id: 'tab-expandable-demo',
name: 'Tab Expandable Demo',
componentType: Examples.TabsExpandableDemo
},
{
id: 'tab-uncontrolled-demo',
name: 'Tab Uncontrolled Demo',
componentType: Examples.TabUncontrolledDemo
},
{
id: 'tabs-disabled-demo',
name: 'Tabs Disabled Demo',
componentType: Examples.TabsDisabledDemo
},
{
id: 'tabs-horizontal-overflow-demo',
name: 'Tabs Horizontal Overflow Demo',
componentType: Examples.TabsHorizontalOverflowDemo
},
{
id: 'table-collapsible-demo',
name: 'Table Collapsible Demo',
componentType: Examples.TableCollapsibleDemo
},
{
id: 'table-compound-expandable-demo',
name: 'Table Compound Expandable Demo',
componentType: Examples.TableCompoundExpandableDemo
},
{
id: 'table-editable-demo',
name: 'Table Editable Demo',
componentType: Examples.TableEditableDemo
},
{
id: 'table-editable-compound-expandable-demo',
name: 'Table Editable Compound Expandable Demo',
componentType: Examples.TableEditableCompoundExpandableDemo
},
{
id: 'table-row-wrapper-demo',
name: 'Table Row Wrapper Demo',
componentType: Examples.TableRowWrapperDemo
},
{
id: 'table-row-click-demo',
name: 'Table Row Click Demo',
componentType: Examples.TableRowClickDemo
},
{
id: 'table-selectable-demo',
name: 'Table Selectable Demo',
componentType: Examples.TableSelectableDemo
},
{
id: 'table-simple-actions-demo',
name: 'Table Simple Actions Demo',
componentType: Examples.TableSimpleActionsDemo
},
{
id: 'table-simple-demo',
name: 'Table Simple Demo',
componentType: Examples.TableSimpleDemo
},
{
id: 'table-sortable-demo',
name: 'Table Sortable Demo',
componentType: Examples.TableSortableDemo
},
{
id: 'table-favorites-demo',
name: 'Table Favorites Demo',
componentType: Examples.TableFavoritesDemo
},
{
id: 'table-composable-demo',
name: 'Table Composable Demo',
componentType: Examples.TableComposableDemo
},
{
id: 'tab-string-event-key-demo',
name: 'Tab String Event Key Demo',
componentType: Examples.TabsStringEventKeyDemo
},
{
id: 'text-area',
name: 'Text Area Demo',
componentType: Examples.TextAreaDemo
},
{
id: 'text-input-demo',
name: 'Text Input Demo',
componentType: Examples.TextInputDemo
},
{
id: 'toggle-group-demo',
name: 'Toggle Group Demo',
componentType: Examples.ToggleGroupDemo
},
{
id: 'toolbar-demo',
name: 'Toolbar Demo',
componentType: Examples.ToolbarDemo
},
{
id: 'toolbar-visibility-demo',
name: 'Toolbar Visibility Demo',
componentType: Examples.ToolbarVisibilityDemo
},
{
id: 'tooltip-demo',
name: 'Tooltip Demo',
componentType: Examples.TooltipDemo
},
{
id: 'treeview-demo',
name: 'Tree View Demo',
componentType: Examples.TreeViewDemo
},
{
id: 'wizard-demo',
name: 'Wizard Demo',
componentType: Examples.WizardDemo
},
{
id: 'wizard-deprecated-demo',
name: 'Wizard Deprecated Demo',
componentType: Examples.WizardDeprecatedDemo
}
];
export default Demos;