You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
The label text length should be limited to one line with additional info in ( ) The value should be in one line too.
334
+
Keep statistics concise so the label and value both only take up one line. Always keep these in a Carousel for a good mobile experience
333
335
334
336
The high stress level status statistic order from left to right.
335
337
336
338
```jsx
337
339
import { Carousel } from'@Domain/Layouts';
338
340
import { Statistic } from'@Domain/Formats';
339
341
340
-
<>
341
-
<Carousel>
342
-
<Carousel.Tile>
343
-
<Statistic
344
-
title='Overdue'
345
-
value='2'
346
-
/>
347
-
</Carousel.Tile>
348
-
<Carousel.Tile>
349
-
<Statistic
350
-
title='Expiring Soon'
351
-
value='1'
352
-
/>
353
-
</Carousel.Tile>
354
-
<Carousel.Tile>
355
-
<Statistic
356
-
title='Missing End Dates'
357
-
value='3'
358
-
/>
359
-
</Carousel.Tile>
360
-
</Carousel>
361
-
<Carousel>
362
-
<Carousel.Tile>
363
-
<Statistic
364
-
title='Total Session'
365
-
value='25'
366
-
/>
367
-
</Carousel.Tile>
368
-
<Carousel.Tile>
369
-
<Statistic
370
-
title='Total Hours'
371
-
value='211'
372
-
/>
373
-
</Carousel.Tile>
374
-
<Carousel.Tile>
375
-
<Statistic
376
-
title='Total Cost (AUD)'
377
-
prefix='AUD'
378
-
value='54,118.00'
379
-
/>
380
-
</Carousel.Tile>
381
-
<Carousel.Tile>
382
-
<Statistic
383
-
title='Total Cost (DZD)'
384
-
prefix='DZD'
385
-
value='99.00'
386
-
/>
387
-
</Carousel.Tile>
388
-
</Carousel>
389
-
</>
342
+
<Carousel>
343
+
<Carousel.Tile>
344
+
<Statistic
345
+
title='Overdue'
346
+
value='2'
347
+
/>
348
+
</Carousel.Tile>
349
+
<Carousel.Tile>
350
+
<Statistic
351
+
title='Expiring Soon'
352
+
value='1'
353
+
/>
354
+
</Carousel.Tile>
355
+
<Carousel.Tile>
356
+
<Statistic
357
+
title='Missing End Dates'
358
+
value='3'
359
+
/>
360
+
</Carousel.Tile>
361
+
</Carousel>
362
+
363
+
```
364
+
365
+
```jsx
366
+
import { Carousel } from'@Domain/Layouts';
367
+
import { Statistic } from'@Domain/Formats';
368
+
369
+
<Carousel>
370
+
<Carousel.Tile>
371
+
<Statistic
372
+
title='Total Session'
373
+
value='25'
374
+
/>
375
+
</Carousel.Tile>
376
+
<Carousel.Tile>
377
+
<Statistic
378
+
title='Total Hours'
379
+
value='211'
380
+
/>
381
+
</Carousel.Tile>
382
+
<Carousel.Tile>
383
+
<Statistic
384
+
title='Total Cost (AUD)'
385
+
prefix='AUD'
386
+
value='54,118.00'
387
+
/>
388
+
</Carousel.Tile>
389
+
<Carousel.Tile>
390
+
<Statistic
391
+
title='Total Cost (DZD)'
392
+
prefix='DZD'
393
+
value='99.00'
394
+
/>
395
+
</Carousel.Tile>
396
+
</Carousel>
390
397
```
391
398
392
399
393
400
### Pagination section
394
-
All list should have [Pagination](/#/Interaction/Pagination)when the page is customer facing
401
+
Lists of user generated data that are expected to have more than a page of data should always have [Pagination](/#/Interaction/Pagination)functionality
395
402
It should be hidden when there is no record (also no result when filtering)
396
403
397
404
```jsx
@@ -434,28 +441,30 @@ import { Variables } from '@Common';
434
441
```
435
442
436
443
### Loading state
437
-
List section (from top to bottom): filter and sort section, statistics tile, cards, pagination with sLarge spacing 24px in between
444
+
The following values will typically work for most content, but depending on the size of your content they may need minor adjustments.
438
445
439
-
Filter and sort section goes together as a 40px height skeleton
440
-
Statistics tile would depend on the number of tile would the list have (It would be depend on minimum number of tile so it would not include the optional ones)
441
-
The skeleton would be 200 x 90 with 8 margin in between Cards section skeleton would have three cards only and the skeleton height would depend on the card height on that page
446
+
Filter Section: sLarge spacing height
447
+
sLarge spacing between section
448
+
Statistics: 200px wide | 90px height | sXSmall spacing between each tile skeletons
449
+
sLarge spacing between section
450
+
Cards: Match your actual card height | sXSmall spacing between each card skeletons
442
451
443
-
Pagination section would not have a skeleton for it
452
+
No skeleton for pagination bar
453
+
454
+
Only display the minimum number of Statistics/Cards that the page can load with. If it always has 6 Statistics, then show 6 skeletons. For lists of Cards, display as many as a full page of results (typically 10) unless the content is unlikely to reach a full page of results.
0 commit comments