superdesk-ui-framework 3.1.13 → 3.1.15
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/app/img/AvatarDefaultImage.svg +6 -0
- package/app/styles/_avatar.scss +28 -6
- package/app/styles/design-tokens/_new-colors.scss +32 -17
- package/app-typescript/components/Button.tsx +1 -1
- package/app-typescript/components/DatePicker.tsx +18 -2
- package/app-typescript/components/avatar/avatar-group.tsx +2 -1
- package/app-typescript/components/avatar/avatar-image.tsx +1 -1
- package/app-typescript/components/avatar/avatar-placeholder.tsx +0 -1
- package/app-typescript/components/avatar/avatar-wrapper.tsx +14 -2
- package/app-typescript/components/avatar/avatar.tsx +8 -1
- package/dist/components/Avatar.tsx +97 -40
- package/dist/components/Buttons.tsx +5 -3
- package/dist/components/Index.tsx +151 -127
- package/dist/examples.bundle.js +368 -331
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +30 -10
- package/dist/superdesk-ui.bundle.css +55 -20
- package/dist/superdesk-ui.bundle.js +187 -177
- package/examples/pages/components/Avatar.tsx +97 -40
- package/examples/pages/components/Buttons.tsx +5 -3
- package/examples/pages/components/Index.tsx +151 -127
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +30 -10
- package/package.json +1 -1
- package/react/components/Button.js +1 -1
- package/react/components/DatePicker.d.ts +0 -1
- package/react/components/DatePicker.js +9 -1
- package/react/components/avatar/avatar-group.js +2 -2
- package/react/components/avatar/avatar-image.js +1 -1
- package/react/components/avatar/avatar-placeholder.js +1 -1
- package/react/components/avatar/avatar-wrapper.d.ts +4 -1
- package/react/components/avatar/avatar-wrapper.js +4 -2
- package/react/components/avatar/avatar.d.ts +4 -0
- package/react/components/avatar/avatar.js +2 -2
@@ -85,69 +85,102 @@ import { OpacityUtilitiesDoc } from './utilities/OpacityUtilities';
|
|
85
85
|
import { ObjectFitUtilitiesDoc } from './utilities/ObjectFitUtilities';
|
86
86
|
import { ObjectPositionUtilitiesDoc } from './utilities/ObjectPositionUtilities';
|
87
87
|
|
88
|
-
|
88
|
+
|
89
|
+
interface IPages {
|
90
|
+
[group: string]: {
|
91
|
+
name: string;
|
92
|
+
items: {
|
93
|
+
[urlId: string]: {
|
94
|
+
name: string;
|
95
|
+
component: React.ComponentType<any>;
|
96
|
+
}
|
97
|
+
};
|
98
|
+
};
|
99
|
+
}
|
100
|
+
|
101
|
+
const pages: IPages = {
|
89
102
|
basicComponents: {
|
90
103
|
name: 'Basic Components',
|
91
104
|
items: {
|
92
105
|
'buttons': {
|
93
106
|
name: 'Buttons',
|
107
|
+
component: ButtonsDoc,
|
94
108
|
},
|
95
109
|
'icon-buttons': {
|
96
|
-
name: 'Icon Buttons'
|
110
|
+
name: 'Icon Buttons',
|
111
|
+
component: IconButtonDoc,
|
97
112
|
},
|
98
113
|
'button-groups': {
|
99
|
-
name: 'Button Group & Divider'
|
114
|
+
name: 'Button Group & Divider',
|
115
|
+
component: ButtonGroupsDoc,
|
100
116
|
},
|
101
117
|
'labels': {
|
102
118
|
name: 'Labels',
|
119
|
+
component: LabelsDoc,
|
103
120
|
},
|
104
121
|
'icon-labels': {
|
105
|
-
name: 'Icon Labels'
|
122
|
+
name: 'Icon Labels',
|
123
|
+
component: IconLabelDoc,
|
106
124
|
},
|
107
125
|
'badges': {
|
108
126
|
name: 'Badges',
|
127
|
+
component: BadgesDoc,
|
109
128
|
},
|
110
129
|
'alerts': {
|
111
|
-
name: 'Alerts'
|
130
|
+
name: 'Alerts',
|
131
|
+
component: AlertDoc,
|
112
132
|
},
|
113
133
|
'avatar': {
|
114
134
|
name: 'Avatar',
|
135
|
+
component: AvatarDoc,
|
115
136
|
},
|
116
137
|
'tooltips': {
|
117
|
-
name: 'Tooltips'
|
138
|
+
name: 'Tooltips',
|
139
|
+
component: TooltipDoc,
|
118
140
|
},
|
119
141
|
'tags': {
|
120
|
-
name: 'Tags'
|
142
|
+
name: 'Tags',
|
143
|
+
component: TagDoc,
|
121
144
|
},
|
122
145
|
'dropdowns': {
|
123
|
-
name: 'Dropdowns'
|
146
|
+
name: 'Dropdowns',
|
147
|
+
component: DropdownDoc,
|
124
148
|
},
|
125
149
|
'nav-buttons': {
|
126
|
-
name: 'Nav buttons'
|
150
|
+
name: 'Nav buttons',
|
151
|
+
component: NavButtonsDoc,
|
127
152
|
},
|
128
153
|
'toast': {
|
129
|
-
name: 'Toasts'
|
154
|
+
name: 'Toasts',
|
155
|
+
component: ToastsDoc,
|
130
156
|
},
|
131
157
|
'popover': {
|
132
|
-
name: 'Popover'
|
158
|
+
name: 'Popover',
|
159
|
+
component: PopoverDoc,
|
133
160
|
},
|
134
161
|
'modal': {
|
135
|
-
name: 'Modal'
|
162
|
+
name: 'Modal',
|
163
|
+
component: ModalDoc,
|
136
164
|
},
|
137
165
|
'carousel': {
|
138
|
-
name: 'Carousel'
|
166
|
+
name: 'Carousel',
|
167
|
+
component: CarouselDoc,
|
139
168
|
},
|
140
169
|
'menu': {
|
141
170
|
name: 'Menu',
|
171
|
+
component: MenuDocs,
|
142
172
|
},
|
143
173
|
'treemenu': {
|
144
174
|
name: 'TreeMenu',
|
175
|
+
component: TreeMenuDocs,
|
145
176
|
},
|
146
177
|
"drag-handle": {
|
147
|
-
name: 'Drag handle'
|
178
|
+
name: 'Drag handle',
|
179
|
+
component: DragHandleDocs,
|
148
180
|
},
|
149
181
|
"illustration-button": {
|
150
|
-
name: 'Illustration Button'
|
182
|
+
name: 'Illustration Button',
|
183
|
+
component: IllustrationButtonDoc,
|
151
184
|
}
|
152
185
|
}
|
153
186
|
},
|
@@ -155,16 +188,20 @@ const pages = {
|
|
155
188
|
name: "Navigation",
|
156
189
|
items: {
|
157
190
|
'tab': {
|
158
|
-
name: 'Tabs'
|
191
|
+
name: 'Tabs',
|
192
|
+
component: TabsDoc,
|
159
193
|
},
|
160
194
|
'left-navigation': {
|
161
|
-
name: 'Left navigation'
|
195
|
+
name: 'Left navigation',
|
196
|
+
component: LeftNavigationsDoc,
|
162
197
|
},
|
163
|
-
'
|
164
|
-
name: 'Quick navigation bar'
|
198
|
+
'quick-navigation-bar': {
|
199
|
+
name: 'Quick navigation bar',
|
200
|
+
component: QuickNavBarDoc,
|
165
201
|
},
|
166
202
|
'sub-navigation': {
|
167
|
-
name: 'Sub navigation bar'
|
203
|
+
name: 'Sub navigation bar',
|
204
|
+
component: SubNavDoc,
|
168
205
|
},
|
169
206
|
}
|
170
207
|
},
|
@@ -172,16 +209,20 @@ const pages = {
|
|
172
209
|
name: "Containers",
|
173
210
|
items: {
|
174
211
|
'container': {
|
175
|
-
name: 'Container component'
|
212
|
+
name: 'Container component',
|
213
|
+
component: ContainerDoc,
|
176
214
|
},
|
177
215
|
'empty-states': {
|
178
|
-
name: 'Empty states'
|
216
|
+
name: 'Empty states',
|
217
|
+
component: EmptyStateDoc,
|
179
218
|
},
|
180
219
|
'grid-item': {
|
181
|
-
name: 'Grid Item'
|
220
|
+
name: 'Grid Item',
|
221
|
+
component: GridItemDoc,
|
182
222
|
},
|
183
223
|
'panel': {
|
184
|
-
name: 'Panel'
|
224
|
+
name: 'Panel',
|
225
|
+
component: PanelDoc,
|
185
226
|
},
|
186
227
|
}
|
187
228
|
},
|
@@ -189,13 +230,16 @@ const pages = {
|
|
189
230
|
name: "Layout",
|
190
231
|
items: {
|
191
232
|
'content-divider': {
|
192
|
-
name: 'Content Divider'
|
233
|
+
name: 'Content Divider',
|
234
|
+
component: ContentDividerDoc,
|
193
235
|
},
|
194
236
|
"togglebox": {
|
195
|
-
name: "Togglebox"
|
237
|
+
name: "Togglebox",
|
238
|
+
component: ToggleboxDocs,
|
196
239
|
},
|
197
240
|
"resizable-panels": {
|
198
|
-
name: "Resizable panels"
|
241
|
+
name: "Resizable panels",
|
242
|
+
component: ResizablePanelsDoc,
|
199
243
|
},
|
200
244
|
}
|
201
245
|
},
|
@@ -203,10 +247,12 @@ const pages = {
|
|
203
247
|
name: "Text",
|
204
248
|
items: {
|
205
249
|
'heading': {
|
206
|
-
name: 'Heading component'
|
250
|
+
name: 'Heading component',
|
251
|
+
component: HeadingDoc,
|
207
252
|
},
|
208
253
|
'text': {
|
209
|
-
name: 'Text component'
|
254
|
+
name: 'Text component',
|
255
|
+
component: TextDoc,
|
210
256
|
},
|
211
257
|
}
|
212
258
|
},
|
@@ -214,25 +260,32 @@ const pages = {
|
|
214
260
|
name: "Lists",
|
215
261
|
items: {
|
216
262
|
'grid-list': {
|
217
|
-
name: 'Grid List'
|
263
|
+
name: 'Grid List',
|
264
|
+
component: GridListDoc,
|
218
265
|
},
|
219
266
|
'list-items': {
|
220
|
-
name: 'List items'
|
267
|
+
name: 'List items',
|
268
|
+
component: ListItemsDoc,
|
221
269
|
},
|
222
270
|
'simple-list': {
|
223
|
-
name: 'Simple list'
|
271
|
+
name: 'Simple list',
|
272
|
+
component: SimpleListDoc,
|
224
273
|
},
|
225
274
|
'boxed-list': {
|
226
|
-
name: 'Boxed list'
|
275
|
+
name: 'Boxed list',
|
276
|
+
component: BoxedListDoc,
|
227
277
|
},
|
228
278
|
'table-list': {
|
229
|
-
name: 'Table list'
|
279
|
+
name: 'Table list',
|
280
|
+
component: TableListDoc,
|
230
281
|
},
|
231
282
|
'content-list': {
|
232
|
-
name: 'Content list'
|
283
|
+
name: 'Content list',
|
284
|
+
component: ContentListDoc,
|
233
285
|
},
|
234
286
|
'with-pagination': {
|
235
|
-
name: 'With pagination'
|
287
|
+
name: 'With pagination',
|
288
|
+
component: WithPaginationDocs,
|
236
289
|
},
|
237
290
|
}
|
238
291
|
},
|
@@ -241,57 +294,75 @@ const pages = {
|
|
241
294
|
items: {
|
242
295
|
'inputs': {
|
243
296
|
name: 'Inputs',
|
297
|
+
component: InputsDoc,
|
244
298
|
},
|
245
299
|
'autocomplete': {
|
246
300
|
name: 'Autocomplete',
|
301
|
+
component: AutocompleteDoc,
|
247
302
|
},
|
248
303
|
'tag-input': {
|
249
304
|
name: 'Tag Input',
|
305
|
+
component: TagInputDocs,
|
250
306
|
},
|
251
307
|
'select': {
|
252
308
|
name: 'Select',
|
309
|
+
component: SelectsDoc,
|
253
310
|
},
|
254
311
|
'select-grid': {
|
255
312
|
name: 'Select Grid',
|
313
|
+
component: SelectGridDocs,
|
256
314
|
},
|
257
315
|
'select-with-template': {
|
258
316
|
name: 'Select with template',
|
317
|
+
component: SelectWithTemplateDocs,
|
259
318
|
},
|
260
319
|
'with-size-observer': {
|
261
320
|
name: 'With size observer',
|
321
|
+
component: WithSizeObserverDocs,
|
262
322
|
},
|
263
323
|
'multiselect': {
|
264
324
|
name: 'MultiSelect',
|
325
|
+
component: MultiselectDocs,
|
265
326
|
},
|
266
327
|
'treeselect': {
|
267
328
|
name: 'TreeSelect',
|
329
|
+
component: TreeSelectDocs,
|
268
330
|
},
|
269
331
|
'date-picker': {
|
270
332
|
name: 'Date Picker',
|
333
|
+
component: DatePickerDoc,
|
271
334
|
},
|
272
335
|
'time-picker': {
|
273
336
|
name: 'Time Picker',
|
337
|
+
component: TimePickerDoc,
|
274
338
|
},
|
275
339
|
'icon-picker': {
|
276
340
|
name: 'Icon Picker',
|
341
|
+
component: IconPickerDocs,
|
277
342
|
},
|
278
343
|
'duration-input': {
|
279
344
|
name: 'Duration Input',
|
345
|
+
component: DurationInputDoc,
|
280
346
|
},
|
281
347
|
'switch': {
|
282
|
-
name: 'Switch'
|
348
|
+
name: 'Switch',
|
349
|
+
component: SwitchDoc,
|
283
350
|
},
|
284
351
|
'radiogroup': {
|
285
|
-
name: 'RadioGroup'
|
352
|
+
name: 'RadioGroup',
|
353
|
+
component: RadioGroupDoc,
|
286
354
|
},
|
287
355
|
'checkbox': {
|
288
|
-
name: 'Checkbox'
|
356
|
+
name: 'Checkbox',
|
357
|
+
component: CheckboxsDoc,
|
289
358
|
},
|
290
359
|
'dropzone': {
|
291
|
-
name: 'DropZone'
|
360
|
+
name: 'DropZone',
|
361
|
+
component: DropZoneDoc,
|
292
362
|
},
|
293
363
|
'create-button': {
|
294
|
-
name: 'CreateButton'
|
364
|
+
name: 'CreateButton',
|
365
|
+
component: CreateButtonDoc,
|
295
366
|
},
|
296
367
|
}
|
297
368
|
},
|
@@ -300,9 +371,11 @@ const pages = {
|
|
300
371
|
items: {
|
301
372
|
'icon-font': {
|
302
373
|
name: 'Icon font',
|
374
|
+
component: IconFontDoc,
|
303
375
|
},
|
304
376
|
'big-icon-font': {
|
305
|
-
name: 'Big icon font'
|
377
|
+
name: 'Big icon font',
|
378
|
+
component: BigIconFontDoc,
|
306
379
|
}
|
307
380
|
}
|
308
381
|
},
|
@@ -310,45 +383,65 @@ const pages = {
|
|
310
383
|
name: "Utility classes",
|
311
384
|
items: {
|
312
385
|
'border-utilities': {
|
313
|
-
name: 'Border'
|
386
|
+
name: 'Border',
|
387
|
+
component: BorderUtilitiesDoc,
|
314
388
|
},
|
315
389
|
'border-radius-utilities': {
|
316
|
-
name: 'Border Radius'
|
390
|
+
name: 'Border Radius',
|
391
|
+
component: BorderRadiusUtilitiesDoc,
|
317
392
|
},
|
318
393
|
'display-utilities': {
|
319
|
-
name: 'Display'
|
394
|
+
name: 'Display',
|
395
|
+
component: DisplayUtilitiesDoc,
|
320
396
|
},
|
321
397
|
'flex-and-grid-utilities': {
|
322
|
-
name: 'Flex & Grid'
|
398
|
+
name: 'Flex & Grid',
|
399
|
+
component: FlexAndGridUtilitiesDoc,
|
323
400
|
},
|
324
401
|
'object-fit-utilities': {
|
325
|
-
name: 'Object Fit'
|
402
|
+
name: 'Object Fit',
|
403
|
+
component: ObjectFitUtilitiesDoc,
|
326
404
|
},
|
327
405
|
'object-position-utilities': {
|
328
|
-
name: 'Object Position'
|
406
|
+
name: 'Object Position',
|
407
|
+
component: ObjectPositionUtilitiesDoc,
|
329
408
|
},
|
330
409
|
'opacity-utilities': {
|
331
|
-
name: 'Opacity'
|
410
|
+
name: 'Opacity',
|
411
|
+
component: OpacityUtilitiesDoc,
|
332
412
|
},
|
333
413
|
'overflow-utilities': {
|
334
|
-
name: 'Overflow'
|
414
|
+
name: 'Overflow',
|
415
|
+
component: OverflowUtilitiesDoc,
|
335
416
|
},
|
336
417
|
'position-utilities': {
|
337
|
-
name: 'Position'
|
418
|
+
name: 'Position',
|
419
|
+
component: PositionUtilitiesDoc,
|
338
420
|
},
|
339
421
|
'shadow-utilities': {
|
340
|
-
name: 'Shadow'
|
422
|
+
name: 'Shadow',
|
423
|
+
component: ShadowUtilitiesDoc,
|
341
424
|
},
|
342
425
|
'spacing-utilities': {
|
343
426
|
name: 'Spacing',
|
427
|
+
component: SpacingUtilitiesDoc,
|
344
428
|
},
|
345
429
|
'text-utilities': {
|
346
|
-
name: 'Text'
|
347
|
-
|
430
|
+
name: 'Text',
|
431
|
+
component: TextUtilitiesDoc,
|
432
|
+
},
|
348
433
|
}
|
349
434
|
}
|
350
435
|
}
|
351
436
|
|
437
|
+
const routes: Array<{path: string; component: React.ComponentType<any>}> = [];
|
438
|
+
|
439
|
+
for (const group of Object.values(pages)) {
|
440
|
+
for (const [id, value] of Object.entries(group.items)) {
|
441
|
+
routes.push({path: `/components/${id}`, component: value.component});
|
442
|
+
}
|
443
|
+
}
|
444
|
+
|
352
445
|
class ReactDoc extends React.Component {
|
353
446
|
render() {
|
354
447
|
return (
|
@@ -356,79 +449,10 @@ class ReactDoc extends React.Component {
|
|
356
449
|
<ReactNav pages={pages} />
|
357
450
|
<main className="docs-page__content docs-page__container-fluid">
|
358
451
|
<Switch>
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
<Route path="/components/icon-labels" component={IconLabelDoc} />
|
364
|
-
<Route path="/components/badges" component={BadgesDoc} />
|
365
|
-
<Route path="/components/alerts" component={AlertDoc} />
|
366
|
-
<Route path="/components/avatar" component={AvatarDoc} />
|
367
|
-
<Route path="/components/tooltips" component={TooltipDoc} />
|
368
|
-
<Route path="/components/tags" component={TagDoc} />
|
369
|
-
<Route path="/components/inputs" component={InputsDoc} />
|
370
|
-
<Route path="/components/autocomplete" component={AutocompleteDoc} />
|
371
|
-
<Route path="/components/select" component={SelectsDoc} />
|
372
|
-
<Route path="/components/select-with-template" component={SelectWithTemplateDocs} />
|
373
|
-
<Route path="/components/with-size-observer" component={WithSizeObserverDocs} />
|
374
|
-
<Route path="/components/multiselect" component={MultiselectDocs} />
|
375
|
-
<Route path="/components/treeselect" component={TreeSelectDocs} />
|
376
|
-
<Route path="/components/treemenu" component={TreeMenuDocs} />
|
377
|
-
<Route path="/components/duration-input" component={DurationInputDoc} />
|
378
|
-
<Route path="/components/with-pagination" component={WithPaginationDocs} />
|
379
|
-
<Route path="/components/popover" component={PopoverDoc} />
|
380
|
-
<Route path="/components/date-picker" component={DatePickerDoc} />
|
381
|
-
<Route path="/components/time-picker" component={TimePickerDoc} />
|
382
|
-
<Route path="/components/switch" component={SwitchDoc} />
|
383
|
-
<Route path="/components/radiogroup" component={RadioGroupDoc} />
|
384
|
-
<Route path="/components/checkbox" component={CheckboxsDoc} />
|
385
|
-
<Route path="/components/tab" component={TabsDoc} />
|
386
|
-
<Route path="/components/left-navigation" component={LeftNavigationsDoc} />
|
387
|
-
<Route path="/components/Quick-navigation-bar" component={QuickNavBarDoc} />
|
388
|
-
<Route path="/components/nav-buttons" component={NavButtonsDoc} />
|
389
|
-
<Route path="/components/icon-font" component={IconFontDoc} />
|
390
|
-
<Route path="/components/big-icon-font" component={BigIconFontDoc} />
|
391
|
-
<Route path="/components/sub-navigation" component={SubNavDoc} />
|
392
|
-
<Route path="/components/dropdowns" component={DropdownDoc} />
|
393
|
-
<Route path="/components/toast" component={ToastsDoc} />
|
394
|
-
<Route path="/components/drag-handle" component={DragHandleDocs} />
|
395
|
-
<Route path="/components/tag-input" component={TagInputDocs} />
|
396
|
-
<Route path="/components/empty-states" component={EmptyStateDoc} />
|
397
|
-
<Route path="/components/grid-list" component={GridListDoc} />
|
398
|
-
<Route path="/components/grid-item" component={GridItemDoc} />
|
399
|
-
<Route path="/components/modal" component={ModalDoc} />
|
400
|
-
<Route path="/components/carousel" component={CarouselDoc} />
|
401
|
-
<Route path="/components/content-divider" component={ContentDividerDoc} />
|
402
|
-
<Route path="/components/menu" component={MenuDocs} />
|
403
|
-
<Route path="/components/togglebox" component={ToggleboxDocs} />
|
404
|
-
<Route path="/components/list-items" component={ListItemsDoc} />
|
405
|
-
<Route path="/components/panel" component={PanelDoc} />
|
406
|
-
<Route path="/components/select-grid" component={SelectGridDocs} />
|
407
|
-
<Route path="/components/icon-picker" component={IconPickerDocs} />
|
408
|
-
<Route path="/components/simple-list" component={SimpleListDoc} />
|
409
|
-
<Route path="/components/boxed-list" component={BoxedListDoc} />
|
410
|
-
<Route path="/components/table-list" component={TableListDoc} />
|
411
|
-
<Route path="/components/content-list" component={ContentListDoc} />
|
412
|
-
<Route path="/components/heading" component={HeadingDoc} />
|
413
|
-
<Route path="/components/text" component={TextDoc} />
|
414
|
-
<Route path="/components/container" component={ContainerDoc} />
|
415
|
-
<Route path="/components/dropzone" component={DropZoneDoc} />
|
416
|
-
<Route path="/components/create-button" component={CreateButtonDoc} />
|
417
|
-
<Route path="/components/resizable-panels" component={ResizablePanelsDoc} />
|
418
|
-
<Route path="/components/illustration-button" component={IllustrationButtonDoc} />
|
419
|
-
{/* Utilities */}
|
420
|
-
<Route path="/components/spacing-utilities" component={SpacingUtilitiesDoc} />
|
421
|
-
<Route path="/components/text-utilities" component={TextUtilitiesDoc} />
|
422
|
-
<Route path="/components/shadow-utilities" component={ShadowUtilitiesDoc} />
|
423
|
-
<Route path="/components/position-utilities" component={PositionUtilitiesDoc} />
|
424
|
-
<Route path="/components/overflow-utilities" component={OverflowUtilitiesDoc} />
|
425
|
-
<Route path="/components/display-utilities" component={DisplayUtilitiesDoc} />
|
426
|
-
<Route path="/components/flex-and-grid-utilities" component={FlexAndGridUtilitiesDoc} />
|
427
|
-
<Route path="/components/border-radius-utilities" component={BorderRadiusUtilitiesDoc} />
|
428
|
-
<Route path="/components/border-utilities" component={BorderUtilitiesDoc} />
|
429
|
-
<Route path="/components/opacity-utilities" component={OpacityUtilitiesDoc} />
|
430
|
-
<Route path="/components/object-fit-utilities" component={ObjectFitUtilitiesDoc} />
|
431
|
-
<Route path="/components/object-position-utilities" component={ObjectPositionUtilitiesDoc} />
|
452
|
+
{
|
453
|
+
routes.map((route) => <Route key={route.path} path={route.path} component={route.component} />)
|
454
|
+
}
|
455
|
+
|
432
456
|
<Route path="/" component={ReactDefault} />
|
433
457
|
</Switch>
|
434
458
|
</main>
|