@webority/ui-react 0.179.0 → 0.180.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.
Files changed (108) hide show
  1. package/dist/canvas-kit/kit.js +143 -143
  2. package/dist/canvas-kit/manifest.json +2479 -106
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppAgenda.js +1 -0
  5. package/dist/components/AppAsyncBlock.js +1 -1
  6. package/dist/components/AppButton.js +1 -1
  7. package/dist/components/AppCalendar.js +1 -1
  8. package/dist/components/AppCalendarViews.js +1 -0
  9. package/dist/components/AppChangeList.js +1 -0
  10. package/dist/components/AppChart.js +1 -1
  11. package/dist/components/AppColorField.js +1 -1
  12. package/dist/components/AppCommandPalette.js +1 -1
  13. package/dist/components/AppDashboardCell.js +1 -1
  14. package/dist/components/AppDashboardGrid.js +1 -1
  15. package/dist/components/AppDashboardHeader.js +1 -0
  16. package/dist/components/AppDataTable.js +1 -1
  17. package/dist/components/AppDatePicker.js +1 -1
  18. package/dist/components/AppDateRangePicker.js +1 -1
  19. package/dist/components/AppDateTimePicker.js +1 -1
  20. package/dist/components/AppDescriptions.js +1 -1
  21. package/dist/components/AppDropdown.js +1 -1
  22. package/dist/components/AppEntryGrid.js +1 -1
  23. package/dist/components/AppFileViewer.js +1 -1
  24. package/dist/components/AppForm.js +1 -1
  25. package/dist/components/AppFormActions.js +1 -1
  26. package/dist/components/AppFormRow.js +1 -1
  27. package/dist/components/AppGantt.js +1 -1
  28. package/dist/components/AppInput.js +1 -1
  29. package/dist/components/AppKanban.js +1 -1
  30. package/dist/components/AppKpiTile.js +1 -1
  31. package/dist/components/AppListCard.js +1 -0
  32. package/dist/components/AppMentionInput.js +1 -1
  33. package/dist/components/AppMiniCalendar.js +1 -0
  34. package/dist/components/AppNotificationCenter.js +1 -1
  35. package/dist/components/AppNumberInput.js +1 -1
  36. package/dist/components/AppOfflineBanner.js +1 -0
  37. package/dist/components/AppOtpInput.js +1 -1
  38. package/dist/components/AppPageHeader.js +1 -1
  39. package/dist/components/AppPhoneNumberInput.js +1 -1
  40. package/dist/components/AppQueueBundle.js +1 -0
  41. package/dist/components/AppResultBlock.js +1 -0
  42. package/dist/components/AppRouteError.js +1 -1
  43. package/dist/components/AppSearch.js +1 -1
  44. package/dist/components/AppSegmented.js +1 -1
  45. package/dist/components/AppSelect.js +1 -1
  46. package/dist/components/AppSettingRow.js +1 -0
  47. package/dist/components/AppSettingSection.js +1 -0
  48. package/dist/components/AppShell.js +1 -1
  49. package/dist/components/AppStepper.js +1 -1
  50. package/dist/components/AppTabs.js +1 -1
  51. package/dist/components/AppTimePicker.js +1 -1
  52. package/dist/components/AppWizard.js +1 -1
  53. package/dist/guidance.json +987 -9
  54. package/dist/lib/formStatusContext.js +1 -0
  55. package/dist/lib/useStickyLayer.js +1 -0
  56. package/dist/types/components/AppAgenda.d.ts +69 -0
  57. package/dist/types/components/AppAsyncBlock.d.ts +5 -0
  58. package/dist/types/components/AppButton.d.ts +9 -0
  59. package/dist/types/components/AppCalendar.d.ts +14 -0
  60. package/dist/types/components/AppCalendarViews.d.ts +69 -0
  61. package/dist/types/components/AppChangeList.d.ts +30 -0
  62. package/dist/types/components/AppChart.d.ts +5 -0
  63. package/dist/types/components/AppColorField.d.ts +2 -0
  64. package/dist/types/components/AppCommandPalette.d.ts +12 -0
  65. package/dist/types/components/AppDashboardCell.d.ts +17 -1
  66. package/dist/types/components/AppDashboardGrid.d.ts +39 -5
  67. package/dist/types/components/AppDashboardHeader.d.ts +21 -0
  68. package/dist/types/components/AppDataTable.d.ts +28 -2
  69. package/dist/types/components/AppDatePicker.d.ts +2 -0
  70. package/dist/types/components/AppDateRangePicker.d.ts +2 -0
  71. package/dist/types/components/AppDescriptions.d.ts +2 -0
  72. package/dist/types/components/AppDropdown.d.ts +2 -2
  73. package/dist/types/components/AppEntryGrid.d.ts +15 -0
  74. package/dist/types/components/AppFileViewer.d.ts +7 -0
  75. package/dist/types/components/AppForm.d.ts +5 -0
  76. package/dist/types/components/AppFormActions.d.ts +28 -4
  77. package/dist/types/components/AppFormRow.d.ts +5 -0
  78. package/dist/types/components/AppGantt.d.ts +10 -2
  79. package/dist/types/components/AppInput.d.ts +5 -0
  80. package/dist/types/components/AppKanban.d.ts +4 -0
  81. package/dist/types/components/AppKpiTile.d.ts +14 -1
  82. package/dist/types/components/AppListCard.d.ts +32 -0
  83. package/dist/types/components/AppMentionInput.d.ts +2 -0
  84. package/dist/types/components/AppMiniCalendar.d.ts +78 -0
  85. package/dist/types/components/AppNotificationCenter.d.ts +20 -0
  86. package/dist/types/components/AppNumberInput.d.ts +7 -0
  87. package/dist/types/components/AppOfflineBanner.d.ts +28 -0
  88. package/dist/types/components/AppOtpInput.d.ts +2 -0
  89. package/dist/types/components/AppPhoneNumberInput.d.ts +7 -0
  90. package/dist/types/components/AppQueueBundle.d.ts +35 -0
  91. package/dist/types/components/AppResultBlock.d.ts +62 -0
  92. package/dist/types/components/AppRouteError.d.ts +76 -4
  93. package/dist/types/components/AppSearch.d.ts +3 -0
  94. package/dist/types/components/AppSegmented.d.ts +14 -0
  95. package/dist/types/components/AppSelect.d.ts +2 -0
  96. package/dist/types/components/AppSettingRow.d.ts +61 -0
  97. package/dist/types/components/AppSettingSection.d.ts +23 -0
  98. package/dist/types/components/AppShell.d.ts +10 -62
  99. package/dist/types/components/AppStepper.d.ts +6 -1
  100. package/dist/types/components/AppTabs.d.ts +5 -0
  101. package/dist/types/components/AppTimePicker.d.ts +2 -0
  102. package/dist/types/components/AppWizard.d.ts +31 -2
  103. package/dist/types/index.d.ts +17 -2
  104. package/dist/types/lib/focusField.d.ts +1 -2
  105. package/dist/types/lib/formStatusContext.d.ts +15 -0
  106. package/dist/types/lib/useStickyLayer.d.ts +7 -0
  107. package/dist/ui-react.js +1 -1
  108. package/package.json +11 -11
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.179.0"
5
+ "version": "0.180.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -271,6 +271,344 @@
271
271
  ]
272
272
  }
273
273
  },
274
+ {
275
+ "name": "AppAgenda",
276
+ "usage": {
277
+ "when": [
278
+ "Events for a span of days, read day by day: leave, shifts, visits, deliveries.",
279
+ "Each day needs its own count, an inline warning, or an add action."
280
+ ],
281
+ "whenNot": [
282
+ {
283
+ "text": "The rows are records to sort, filter or page through.",
284
+ "instead": "AppDataTable"
285
+ },
286
+ {
287
+ "text": "The events sit on a timeline or a month grid a person scrolls.",
288
+ "instead": "AppCalendar"
289
+ },
290
+ {
291
+ "text": "The rows are a history of what happened, by whom, when.",
292
+ "instead": "AppTimeline"
293
+ },
294
+ {
295
+ "text": "There is nothing to show yet.",
296
+ "instead": "AppEmptyState"
297
+ }
298
+ ],
299
+ "do": [
300
+ {
301
+ "title": "Give each day its count and its add action",
302
+ "note": "The count answers how many people are away, and the add action names the day it adds to, so a person can act without leaving the list.",
303
+ "example": [
304
+ {
305
+ "component": "AppAgenda",
306
+ "props": {
307
+ "groups": [
308
+ {
309
+ "date": "2026-11-27",
310
+ "label": "Fri 27 Nov 2026",
311
+ "count": "Away: 3 of 8",
312
+ "items": [
313
+ {
314
+ "id": "a1",
315
+ "title": "Priya Sharma",
316
+ "subtitle": "Annual leave, 2 days",
317
+ "badge": "Approved",
318
+ "avatar": {
319
+ "name": "Priya Sharma"
320
+ }
321
+ },
322
+ {
323
+ "id": "a2",
324
+ "title": "Rahul Mehta",
325
+ "subtitle": "Sick leave",
326
+ "badge": "Approved",
327
+ "avatar": {
328
+ "name": "Rahul Mehta"
329
+ }
330
+ },
331
+ {
332
+ "id": "a3",
333
+ "title": "Asha Rao",
334
+ "subtitle": "Work from Pune",
335
+ "badge": "Pending",
336
+ "avatar": {
337
+ "name": "Asha Rao"
338
+ }
339
+ }
340
+ ],
341
+ "addHref": "/leave/new?date=2026-11-27",
342
+ "addLabel": "Add leave on 27-Nov-2026"
343
+ }
344
+ ]
345
+ }
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "title": "Cap a busy day",
351
+ "note": "Give cap a number so a day with many rows shows the first few and a Show more toggle for the rest.",
352
+ "example": [
353
+ {
354
+ "component": "AppAgenda",
355
+ "props": {
356
+ "cap": 2,
357
+ "groups": [
358
+ {
359
+ "date": "2026-11-28",
360
+ "label": "Sat 28 Nov 2026",
361
+ "count": "Away: 5 of 8",
362
+ "items": [
363
+ {
364
+ "id": "a1",
365
+ "title": "Priya Sharma",
366
+ "subtitle": "Annual leave, 2 days",
367
+ "badge": "Approved",
368
+ "avatar": {
369
+ "name": "Priya Sharma"
370
+ }
371
+ },
372
+ {
373
+ "id": "a2",
374
+ "title": "Rahul Mehta",
375
+ "subtitle": "Sick leave",
376
+ "badge": "Approved",
377
+ "avatar": {
378
+ "name": "Rahul Mehta"
379
+ }
380
+ },
381
+ {
382
+ "id": "a3",
383
+ "title": "Asha Rao",
384
+ "subtitle": "Work from Pune",
385
+ "badge": "Pending",
386
+ "avatar": {
387
+ "name": "Asha Rao"
388
+ }
389
+ },
390
+ {
391
+ "id": "a4",
392
+ "title": "Dev Patel",
393
+ "subtitle": "Annual leave",
394
+ "avatar": {
395
+ "name": "Dev Patel"
396
+ }
397
+ },
398
+ {
399
+ "id": "a5",
400
+ "title": "Nisha Kapoor",
401
+ "subtitle": "Public holiday cover",
402
+ "avatar": {
403
+ "name": "Nisha Kapoor"
404
+ }
405
+ }
406
+ ]
407
+ }
408
+ ]
409
+ }
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "title": "Show a clash as a day warning",
415
+ "note": "A clash is a day-level warning a person has to see, so it goes in flag, not in a row's badge.",
416
+ "example": [
417
+ {
418
+ "component": "AppAgenda",
419
+ "props": {
420
+ "groups": [
421
+ {
422
+ "date": "2026-11-30",
423
+ "label": "Mon 30 Nov 2026",
424
+ "count": "Away: 4 of 8",
425
+ "flag": "Cover is thin: 4 of 8 away.",
426
+ "items": [
427
+ {
428
+ "id": "a1",
429
+ "title": "Priya Sharma",
430
+ "subtitle": "Annual leave, 2 days",
431
+ "badge": "Approved",
432
+ "avatar": {
433
+ "name": "Priya Sharma"
434
+ }
435
+ },
436
+ {
437
+ "id": "a2",
438
+ "title": "Rahul Mehta",
439
+ "subtitle": "Sick leave",
440
+ "badge": "Approved",
441
+ "avatar": {
442
+ "name": "Rahul Mehta"
443
+ }
444
+ },
445
+ {
446
+ "id": "a3",
447
+ "title": "Asha Rao",
448
+ "subtitle": "Work from Pune",
449
+ "badge": "Pending",
450
+ "avatar": {
451
+ "name": "Asha Rao"
452
+ }
453
+ },
454
+ {
455
+ "id": "a4",
456
+ "title": "Dev Patel",
457
+ "subtitle": "Annual leave",
458
+ "avatar": {
459
+ "name": "Dev Patel"
460
+ }
461
+ }
462
+ ]
463
+ }
464
+ ]
465
+ }
466
+ }
467
+ ]
468
+ }
469
+ ],
470
+ "dont": [
471
+ {
472
+ "title": "Give each day its count and its add action",
473
+ "note": "A day with no count or add action leaves a person to work out how many are away and where to add.",
474
+ "example": [
475
+ {
476
+ "component": "AppAgenda",
477
+ "props": {
478
+ "groups": [
479
+ {
480
+ "date": "2026-11-27",
481
+ "label": "Fri 27 Nov 2026",
482
+ "items": [
483
+ {
484
+ "id": "a1",
485
+ "title": "Priya Sharma",
486
+ "subtitle": "Annual leave, 2 days",
487
+ "badge": "Approved",
488
+ "avatar": {
489
+ "name": "Priya Sharma"
490
+ }
491
+ },
492
+ {
493
+ "id": "a2",
494
+ "title": "Rahul Mehta",
495
+ "subtitle": "Sick leave",
496
+ "badge": "Approved",
497
+ "avatar": {
498
+ "name": "Rahul Mehta"
499
+ }
500
+ },
501
+ {
502
+ "id": "a3",
503
+ "title": "Asha Rao",
504
+ "subtitle": "Work from Pune",
505
+ "badge": "Pending",
506
+ "avatar": {
507
+ "name": "Asha Rao"
508
+ }
509
+ }
510
+ ]
511
+ }
512
+ ]
513
+ }
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "title": "Cap a busy day",
519
+ "note": "A day with many rows and no cap pushes the days after it off the screen.",
520
+ "example": [
521
+ {
522
+ "component": "AppAgenda",
523
+ "props": {
524
+ "groups": [
525
+ {
526
+ "date": "2026-11-28",
527
+ "label": "Sat 28 Nov 2026",
528
+ "count": "Away: 5 of 8",
529
+ "items": [
530
+ {
531
+ "id": "a1",
532
+ "title": "Priya Sharma",
533
+ "subtitle": "Annual leave, 2 days",
534
+ "badge": "Approved",
535
+ "avatar": {
536
+ "name": "Priya Sharma"
537
+ }
538
+ },
539
+ {
540
+ "id": "a2",
541
+ "title": "Rahul Mehta",
542
+ "subtitle": "Sick leave",
543
+ "badge": "Approved",
544
+ "avatar": {
545
+ "name": "Rahul Mehta"
546
+ }
547
+ },
548
+ {
549
+ "id": "a3",
550
+ "title": "Asha Rao",
551
+ "subtitle": "Work from Pune",
552
+ "badge": "Pending",
553
+ "avatar": {
554
+ "name": "Asha Rao"
555
+ }
556
+ },
557
+ {
558
+ "id": "a4",
559
+ "title": "Dev Patel",
560
+ "subtitle": "Annual leave",
561
+ "avatar": {
562
+ "name": "Dev Patel"
563
+ }
564
+ },
565
+ {
566
+ "id": "a5",
567
+ "title": "Nisha Kapoor",
568
+ "subtitle": "Public holiday cover",
569
+ "avatar": {
570
+ "name": "Nisha Kapoor"
571
+ }
572
+ }
573
+ ]
574
+ }
575
+ ]
576
+ }
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "title": "Show a clash as a day warning",
582
+ "note": "A clash hidden inside a row's badge is one a person can miss, so it does not belong there.",
583
+ "example": [
584
+ {
585
+ "component": "AppAgenda",
586
+ "props": {
587
+ "groups": [
588
+ {
589
+ "date": "2026-11-30",
590
+ "label": "Mon 30 Nov 2026",
591
+ "items": [
592
+ {
593
+ "id": "x",
594
+ "title": "Cover is thin",
595
+ "badge": "Warning"
596
+ }
597
+ ]
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ ]
603
+ }
604
+ ],
605
+ "a11y": [
606
+ "The agenda is a named region, and each day is a named region under its heading, so a screen reader can move between days.",
607
+ "Show more is a native details and summary: it opens with the keyboard and announces its state, with no script.",
608
+ "Pass onAdd or addHref on a day, never both: the add action is a button or a link, and a day that passes both throws."
609
+ ]
610
+ }
611
+ },
274
612
  {
275
613
  "name": "AppAlert",
276
614
  "usage": {
@@ -1156,6 +1494,64 @@
1156
1494
  ]
1157
1495
  }
1158
1496
  },
1497
+ {
1498
+ "name": "AppCalendarViews",
1499
+ "usage": {
1500
+ "when": [
1501
+ "A person moves through a period of days and switches how its events show: agenda, timeline or month.",
1502
+ "The page has one period to show, and the view is a choice the person makes."
1503
+ ],
1504
+ "whenNot": [
1505
+ {
1506
+ "text": "The page shows one view only, with no switcher.",
1507
+ "instead": "AppCalendar"
1508
+ },
1509
+ {
1510
+ "text": "The rows are records to sort, filter or page through.",
1511
+ "instead": "AppDataTable"
1512
+ }
1513
+ ],
1514
+ "do": [
1515
+ {
1516
+ "title": "Name the period in the header",
1517
+ "note": "The period tells a person which days the view shows, so they can check it before they act.",
1518
+ "example": [
1519
+ {
1520
+ "component": "AppCalendarViews",
1521
+ "props": {
1522
+ "period": "November 2026",
1523
+ "view": "agenda"
1524
+ },
1525
+ "children": [
1526
+ {
1527
+ "component": "p",
1528
+ "children": "Agenda body"
1529
+ }
1530
+ ]
1531
+ }
1532
+ ]
1533
+ }
1534
+ ],
1535
+ "dont": [
1536
+ {
1537
+ "title": "Name the period in the header",
1538
+ "note": "Without a period a person cannot tell which days the view shows.",
1539
+ "example": [
1540
+ {
1541
+ "component": "AppCalendarViews",
1542
+ "props": {
1543
+ "view": "month"
1544
+ }
1545
+ }
1546
+ ]
1547
+ }
1548
+ ],
1549
+ "a11y": [
1550
+ "The view switcher is a group of radio buttons named by the label, so a screen reader hears each view name and which one is chosen.",
1551
+ "Previous, Next and Today are native buttons with their own names."
1552
+ ]
1553
+ }
1554
+ },
1159
1555
  {
1160
1556
  "name": "AppCard",
1161
1557
  "usage": {
@@ -1373,6 +1769,67 @@
1373
1769
  ]
1374
1770
  }
1375
1771
  },
1772
+ {
1773
+ "name": "AppChangeList",
1774
+ "usage": {
1775
+ "when": [
1776
+ "A person is about to save a change and must read what it replaces before confirming.",
1777
+ "A risky change needs its was and now values listed in the confirm dialog or the setting's confirm panel."
1778
+ ],
1779
+ "whenNot": [
1780
+ {
1781
+ "text": "The values are read only and shown as facts about a record.",
1782
+ "instead": "AppDescriptions"
1783
+ },
1784
+ {
1785
+ "text": "The change is confirmed without showing its values.",
1786
+ "instead": "AppConfirmDialog alone"
1787
+ }
1788
+ ],
1789
+ "do": [
1790
+ {
1791
+ "title": "Show both values",
1792
+ "note": "Show the value it was and the value it becomes, so the person can compare them.",
1793
+ "example": [
1794
+ {
1795
+ "component": "AppChangeList",
1796
+ "props": {
1797
+ "items": [
1798
+ {
1799
+ "label": "Invoice prefix",
1800
+ "was": "INV",
1801
+ "now": "BILL"
1802
+ }
1803
+ ]
1804
+ }
1805
+ }
1806
+ ]
1807
+ }
1808
+ ],
1809
+ "dont": [
1810
+ {
1811
+ "title": "Show both values",
1812
+ "note": "A change with no values tells the person nothing about what will change.",
1813
+ "example": [
1814
+ {
1815
+ "component": "AppChangeList",
1816
+ "props": {
1817
+ "items": [
1818
+ {
1819
+ "label": "Invoice prefix"
1820
+ }
1821
+ ]
1822
+ }
1823
+ }
1824
+ ]
1825
+ }
1826
+ ],
1827
+ "a11y": [
1828
+ "Renders an unordered list: each change is one item, its label first, then the was value and the now value.",
1829
+ "The words Was and Now are text, so the change reads the same without colour."
1830
+ ]
1831
+ }
1832
+ },
1376
1833
  {
1377
1834
  "name": "AppChart",
1378
1835
  "usage": {
@@ -2668,7 +3125,8 @@
2668
3125
  "usage": {
2669
3126
  "when": [
2670
3127
  "A page of KPI tiles and chart cards that should line up and stack on a phone.",
2671
- "A layout the page decides, with no drag and drop or saved layouts."
3128
+ "A layout the page decides.",
3129
+ "A layout a person arranges, which the product saves: turn on editable and save layout in onLayoutChange."
2672
3130
  ],
2673
3131
  "whenNot": [
2674
3132
  {
@@ -2688,6 +3146,32 @@
2688
3146
  ]
2689
3147
  }
2690
3148
  },
3149
+ {
3150
+ "name": "AppDashboardHeader",
3151
+ "usage": {
3152
+ "when": [
3153
+ "A dashboard opens with a greeting for the signed-in person, the day and when the figures were last updated.",
3154
+ "A dashboard needs one period control, such as Last 30 days, at the top right of its first line."
3155
+ ],
3156
+ "whenNot": [
3157
+ {
3158
+ "text": "A page title with actions and no greeting or date.",
3159
+ "instead": "AppPageHeader"
3160
+ },
3161
+ {
3162
+ "text": "A period control with no greeting or date above it.",
3163
+ "instead": "AppSegmented"
3164
+ }
3165
+ ],
3166
+ "do": [],
3167
+ "dont": [],
3168
+ "a11y": [
3169
+ "The greeting is the page's main heading.",
3170
+ "The date and the updated time sit in one paragraph after the greeting, as plain text.",
3171
+ "Under 576 px the period control drops onto its own row below the greeting, in the same reading order."
3172
+ ]
3173
+ }
3174
+ },
2691
3175
  {
2692
3176
  "name": "AppDataTable",
2693
3177
  "usage": {
@@ -4060,7 +4544,8 @@
4060
4544
  "when": [
4061
4545
  "A form has action buttons at the end (submit, save, cancel, etc.).",
4062
4546
  "A form is longer than one viewport and needs actions to stay visible (use sticky).",
4063
- "You need consistent button alignment across all forms (trailing, leading, or space-between)."
4547
+ "You need consistent button alignment across all forms (trailing, leading, or space-between).",
4548
+ "A long form in a card needs its actions pinned to the card, with a save state beside them (use sticky surface and saveState)."
4064
4549
  ],
4065
4550
  "whenNot": [
4066
4551
  {
@@ -4081,7 +4566,8 @@
4081
4566
  "a11y": [
4082
4567
  "Renders a plain div with the form-actions class. It adds no role or label, so each button keeps its own accessible name.",
4083
4568
  "The tab order follows the order of the children; align changes only where they sit, not their order.",
4084
- "Extra attributes such as aria-label pass through to the div."
4569
+ "Extra attributes such as aria-label pass through to the div.",
4570
+ "The status slot is a polite live region, so a change of save state or error count is announced without moving focus."
4085
4571
  ]
4086
4572
  }
4087
4573
  },
@@ -5072,6 +5558,52 @@
5072
5558
  ]
5073
5559
  }
5074
5560
  },
5561
+ {
5562
+ "name": "AppListCard",
5563
+ "usage": {
5564
+ "when": [
5565
+ "A page lists records and needs the heading, count, actions and table to look the same as every other list."
5566
+ ],
5567
+ "whenNot": [
5568
+ {
5569
+ "text": "The card groups one object, not a list of records.",
5570
+ "instead": "AppCard"
5571
+ }
5572
+ ],
5573
+ "do": [
5574
+ {
5575
+ "title": "Put the table in the card",
5576
+ "note": "The table runs edge to edge, so the card holds it with no padding.",
5577
+ "example": [
5578
+ {
5579
+ "component": "AppListCard",
5580
+ "props": {
5581
+ "title": "Tickets",
5582
+ "count": 2
5583
+ }
5584
+ }
5585
+ ]
5586
+ }
5587
+ ],
5588
+ "dont": [
5589
+ {
5590
+ "title": "Put the table in the card",
5591
+ "note": "A card inside a list card repeats the frame; use padding md for plain content instead.",
5592
+ "example": [
5593
+ {
5594
+ "component": "AppListCard",
5595
+ "props": {
5596
+ "title": "Notes"
5597
+ }
5598
+ }
5599
+ ]
5600
+ }
5601
+ ],
5602
+ "a11y": [
5603
+ "The count is text inside the heading, so a screen reader reads it with the title."
5604
+ ]
5605
+ }
5606
+ },
5075
5607
  {
5076
5608
  "name": "AppLoadMore",
5077
5609
  "usage": {
@@ -5239,11 +5771,81 @@
5239
5771
  "instead": "AppDataTable"
5240
5772
  }
5241
5773
  ],
5242
- "do": [],
5243
- "dont": [],
5774
+ "do": [],
5775
+ "dont": [],
5776
+ "a11y": [
5777
+ "An item with an href is a real link; an item without one is plain text, so nothing is announced as a link that goes nowhere.",
5778
+ "Label, value and note are plain text in reading order, with no hidden content."
5779
+ ]
5780
+ }
5781
+ },
5782
+ {
5783
+ "name": "AppMiniCalendar",
5784
+ "usage": {
5785
+ "when": [
5786
+ "A page shows an open month navigator beside a list, with days that carry a busy or clash marker.",
5787
+ "The Agenda view's side column of the team calendar."
5788
+ ],
5789
+ "whenNot": [
5790
+ {
5791
+ "text": "A person picks a date from a field, in a popover.",
5792
+ "instead": "AppDatePicker"
5793
+ },
5794
+ {
5795
+ "text": "A full calendar of events.",
5796
+ "instead": "AppCalendar"
5797
+ },
5798
+ {
5799
+ "text": "A range picked by a person.",
5800
+ "instead": "AppDateRangePicker"
5801
+ }
5802
+ ],
5803
+ "do": [
5804
+ {
5805
+ "title": "Put the reason for a marker in its label",
5806
+ "note": "The label is read with the date, so a marker that says only 'busy' tells a screen reader nothing.",
5807
+ "example": [
5808
+ {
5809
+ "component": "AppMiniCalendar",
5810
+ "props": {
5811
+ "month": "2026-11",
5812
+ "markers": [
5813
+ {
5814
+ "date": "2026-11-25",
5815
+ "label": "2 people away"
5816
+ }
5817
+ ]
5818
+ }
5819
+ }
5820
+ ]
5821
+ }
5822
+ ],
5823
+ "dont": [
5824
+ {
5825
+ "title": "Put the reason for a marker in its label",
5826
+ "note": "A marker with only a tone and no label tells a screen reader nothing. A clash is a warning, never a block: show it and leave the day open.",
5827
+ "example": [
5828
+ {
5829
+ "component": "AppMiniCalendar",
5830
+ "props": {
5831
+ "month": "2026-11",
5832
+ "markers": [
5833
+ {
5834
+ "date": "2026-11-27",
5835
+ "tone": "warning"
5836
+ }
5837
+ ]
5838
+ }
5839
+ }
5840
+ ]
5841
+ }
5842
+ ],
5244
5843
  "a11y": [
5245
- "An item with an href is a real link; an item without one is plain text, so nothing is announced as a link that goes nowhere.",
5246
- "Label, value and note are plain text in reading order, with no hidden content."
5844
+ "Each day is a button whose accessible name is the full date, followed by the marker labels.",
5845
+ "The selected day is announced with aria-pressed, and today with aria-current.",
5846
+ "The previous and next month buttons are named from the shared date picker text.",
5847
+ "Arrow keys move between days, Page Up and Page Down move between months, and Home and End go to the start and end of the week row.",
5848
+ "One day is in the tab order: the selected day, else today, else the first day of the month."
5247
5849
  ]
5248
5850
  }
5249
5851
  },
@@ -5561,6 +6163,58 @@
5561
6163
  ]
5562
6164
  }
5563
6165
  },
6166
+ {
6167
+ "name": "AppOfflineBanner",
6168
+ "usage": {
6169
+ "when": [
6170
+ "The connection drops while a person works on a page that shows content already loaded.",
6171
+ "The page should say how old the content on screen is."
6172
+ ],
6173
+ "whenNot": [
6174
+ {
6175
+ "text": "A message after a save or an action that disappears on its own.",
6176
+ "instead": "toast"
6177
+ },
6178
+ {
6179
+ "text": "One part of the page failed to load and the rest still works.",
6180
+ "instead": "AppResultBlock"
6181
+ }
6182
+ ],
6183
+ "do": [
6184
+ {
6185
+ "title": "Say when the content last loaded",
6186
+ "note": "The time tells a person how old the figures are, so they know whether to trust them.",
6187
+ "example": [
6188
+ {
6189
+ "component": "AppOfflineBanner",
6190
+ "props": {
6191
+ "offline": true,
6192
+ "loadedAt": "23:12"
6193
+ }
6194
+ }
6195
+ ]
6196
+ }
6197
+ ],
6198
+ "dont": [
6199
+ {
6200
+ "title": "Say when the content last loaded",
6201
+ "note": "Without a time a person cannot tell how old the figures on screen are.",
6202
+ "example": [
6203
+ {
6204
+ "component": "AppOfflineBanner",
6205
+ "props": {
6206
+ "offline": true
6207
+ }
6208
+ }
6209
+ ]
6210
+ }
6211
+ ],
6212
+ "a11y": [
6213
+ "The banner is a status region, so a screen reader announces going offline and coming back online.",
6214
+ "Check again is a native button with its own name and focus ring."
6215
+ ]
6216
+ }
6217
+ },
5564
6218
  {
5565
6219
  "name": "AppOnboardingChecklist",
5566
6220
  "usage": {
@@ -6296,6 +6950,83 @@
6296
6950
  ]
6297
6951
  }
6298
6952
  },
6953
+ {
6954
+ "name": "AppQueueBundle",
6955
+ "usage": {
6956
+ "when": [
6957
+ "A server has marked a group of requests safe to approve together, and a person checks the list before approving.",
6958
+ "A queue whose product rule defines a safe group, such as one-day leave requests inside the balance."
6959
+ ],
6960
+ "whenNot": [
6961
+ {
6962
+ "text": "Each request must be opened and decided on its own.",
6963
+ "instead": "AppSplitView"
6964
+ },
6965
+ {
6966
+ "text": "The rows are a list to scan or sort, with no group action.",
6967
+ "instead": "AppDataTable"
6968
+ },
6969
+ {
6970
+ "text": "The queue has no safe group, so nothing can be approved together.",
6971
+ "instead": "AppSplitView"
6972
+ }
6973
+ ],
6974
+ "do": [
6975
+ {
6976
+ "title": "Show only the rows the server marked safe",
6977
+ "note": "The page never decides what is safe. Each row arrives with its own status, and only the marked rows belong in the block.",
6978
+ "example": [
6979
+ {
6980
+ "component": "AppQueueBundle",
6981
+ "props": {
6982
+ "title": "2 one-day requests inside the balance",
6983
+ "reason": "One day each, inside the leave balance.",
6984
+ "rows": [
6985
+ {
6986
+ "key": "r1",
6987
+ "primary": "Asha Rao",
6988
+ "secondary": "Mon 3 Nov",
6989
+ "trailing": "1 day"
6990
+ },
6991
+ {
6992
+ "key": "r2",
6993
+ "primary": "Dev Singh",
6994
+ "secondary": "Tue 4 Nov",
6995
+ "trailing": "1 day"
6996
+ }
6997
+ ]
6998
+ }
6999
+ }
7000
+ ]
7001
+ }
7002
+ ],
7003
+ "dont": [
7004
+ {
7005
+ "title": "Show only the rows the server marked safe",
7006
+ "note": "A bundle that approves a request the rule did not clear skips the check the person relies on.",
7007
+ "example": [
7008
+ {
7009
+ "component": "AppQueueBundle",
7010
+ "props": {
7011
+ "title": "5 requests",
7012
+ "rows": [
7013
+ {
7014
+ "key": "x1",
7015
+ "primary": "Unchecked request"
7016
+ }
7017
+ ]
7018
+ }
7019
+ }
7020
+ ]
7021
+ }
7022
+ ],
7023
+ "a11y": [
7024
+ "Each row is a checkbox named by its main line, so a screen reader reads what it approves.",
7025
+ "The progress of a run is a progress bar with its label, so the count is announced as it moves.",
7026
+ "Approve is a native button, reached by the keyboard in order after the list."
7027
+ ]
7028
+ }
7029
+ },
6299
7030
  {
6300
7031
  "name": "AppRadio",
6301
7032
  "usage": {
@@ -6856,6 +7587,71 @@
6856
7587
  ]
6857
7588
  }
6858
7589
  },
7590
+ {
7591
+ "name": "AppResultBlock",
7592
+ "usage": {
7593
+ "when": [
7594
+ "A region of a page fails to load and the rest of the page still works.",
7595
+ "The whole page cannot load and a compact left-aligned message suits the shell better than a centred outcome screen."
7596
+ ],
7597
+ "whenNot": [
7598
+ {
7599
+ "text": "A full-page outcome such as a success, or a 403, 404 or 500 screen.",
7600
+ "instead": "AppResult"
7601
+ },
7602
+ {
7603
+ "text": "A section that has nothing in it yet.",
7604
+ "instead": "AppEmptyState"
7605
+ },
7606
+ {
7607
+ "text": "A short message that disappears on its own.",
7608
+ "instead": "toast"
7609
+ }
7610
+ ],
7611
+ "do": [
7612
+ {
7613
+ "title": "Keep the rest of the page working",
7614
+ "note": "The block replaces only the part that failed. Put it where that part was.",
7615
+ "example": [
7616
+ {
7617
+ "component": "AppResultBlock",
7618
+ "props": {
7619
+ "title": "Could not load the list",
7620
+ "actions": {
7621
+ "component": "AppButton",
7622
+ "props": {
7623
+ "variant": "soft"
7624
+ },
7625
+ "children": "Try again"
7626
+ }
7627
+ }
7628
+ }
7629
+ ]
7630
+ }
7631
+ ],
7632
+ "dont": [
7633
+ {
7634
+ "title": "Keep the rest of the page working",
7635
+ "note": "A block that replaces the whole page hides the parts that still work.",
7636
+ "example": [
7637
+ {
7638
+ "component": "AppResultBlock",
7639
+ "props": {
7640
+ "title": "Could not load the page",
7641
+ "headingLevel": 1
7642
+ },
7643
+ "children": "Check your connection, then try again."
7644
+ }
7645
+ ]
7646
+ }
7647
+ ],
7648
+ "a11y": [
7649
+ "The title is a heading at headingLevel, so a screen reader finds the failed region in the heading list.",
7650
+ "The icon is decorative and hidden from assistive technology.",
7651
+ "The reference copies with one click and announces Copied."
7652
+ ]
7653
+ }
7654
+ },
6859
7655
  {
6860
7656
  "name": "AppRichText",
6861
7657
  "usage": {
@@ -7749,6 +8545,188 @@
7749
8545
  ]
7750
8546
  }
7751
8547
  },
8548
+ {
8549
+ "name": "AppSettingRow",
8550
+ "usage": {
8551
+ "when": [
8552
+ "A product setting is read as a value, and a person changes it in place.",
8553
+ "A change is risky and needs a warning and a typed word before it saves."
8554
+ ],
8555
+ "whenNot": [
8556
+ {
8557
+ "text": "A form of several fields that a person fills in and submits.",
8558
+ "instead": "AppFormSection"
8559
+ },
8560
+ {
8561
+ "text": "The setting is a single on or off switch with no value to read.",
8562
+ "instead": "AppSwitch"
8563
+ }
8564
+ ],
8565
+ "do": [
8566
+ {
8567
+ "title": "Give each setting its current value",
8568
+ "note": "The value reads as text, so a person sees the setting before they open it.",
8569
+ "example": [
8570
+ {
8571
+ "component": "AppSettingRow",
8572
+ "props": {
8573
+ "label": "Invoice numbering",
8574
+ "value": "INV-0042"
8575
+ }
8576
+ }
8577
+ ]
8578
+ },
8579
+ {
8580
+ "title": "Warn before a risky change",
8581
+ "note": "A change that starts or stops writes to a live system opens the warning panel and asks for a typed word.",
8582
+ "example": [
8583
+ {
8584
+ "component": "AppSettingRow",
8585
+ "props": {
8586
+ "label": "Zoho Books writes",
8587
+ "value": "Off",
8588
+ "mode": "edit",
8589
+ "confirm": {
8590
+ "title": "Start writes to Zoho Books?",
8591
+ "changes": [
8592
+ {
8593
+ "label": "Writes",
8594
+ "was": "Off",
8595
+ "now": "On"
8596
+ }
8597
+ ],
8598
+ "actionLabel": "Start writes",
8599
+ "confirmWord": "WRITE"
8600
+ }
8601
+ }
8602
+ }
8603
+ ]
8604
+ },
8605
+ {
8606
+ "title": "Keep a refused save in the row",
8607
+ "note": "A refused save stays in the row, beside the typed value, so the person can correct it where they are.",
8608
+ "example": [
8609
+ {
8610
+ "component": "AppSettingRow",
8611
+ "props": {
8612
+ "label": "Invoice numbering",
8613
+ "value": "INV-0042",
8614
+ "mode": "edit",
8615
+ "error": "That number is already used."
8616
+ }
8617
+ }
8618
+ ]
8619
+ }
8620
+ ],
8621
+ "dont": [
8622
+ {
8623
+ "title": "Give each setting its current value",
8624
+ "note": "A setting with no value leaves a person to guess what it is set to.",
8625
+ "example": [
8626
+ {
8627
+ "component": "AppSettingRow",
8628
+ "props": {
8629
+ "label": "Invoice numbering"
8630
+ }
8631
+ }
8632
+ ]
8633
+ },
8634
+ {
8635
+ "title": "Warn before a risky change",
8636
+ "note": "Without the warning panel a person does not see what they change before it saves.",
8637
+ "example": [
8638
+ {
8639
+ "component": "AppSettingRow",
8640
+ "props": {
8641
+ "label": "Zoho Books writes",
8642
+ "value": "Off",
8643
+ "mode": "edit"
8644
+ }
8645
+ }
8646
+ ]
8647
+ },
8648
+ {
8649
+ "title": "Keep a refused save in the row",
8650
+ "note": "A refused save shown in a toast leaves the row, and the typed value, behind.",
8651
+ "example": [
8652
+ {
8653
+ "component": "AppSettingRow",
8654
+ "props": {
8655
+ "label": "Invoice numbering",
8656
+ "value": "INV-0042",
8657
+ "mode": "edit"
8658
+ }
8659
+ }
8660
+ ]
8661
+ }
8662
+ ],
8663
+ "a11y": [
8664
+ "Edit, Cancel and Save are native buttons; a disabled Edit gives its reason as the tooltip.",
8665
+ "A refused save stays in the row, so the error is read where the person is working."
8666
+ ]
8667
+ }
8668
+ },
8669
+ {
8670
+ "name": "AppSettingSection",
8671
+ "usage": {
8672
+ "when": [
8673
+ "A page groups related settings under one title, such as invoicing or members.",
8674
+ "Each group holds AppSettingRow rows."
8675
+ ],
8676
+ "whenNot": [
8677
+ {
8678
+ "text": "The rows are records to sort or filter.",
8679
+ "instead": "AppDataTable"
8680
+ },
8681
+ {
8682
+ "text": "The page is one form that a person fills in and submits.",
8683
+ "instead": "AppFormSection"
8684
+ }
8685
+ ],
8686
+ "do": [
8687
+ {
8688
+ "title": "Name the group and say what it covers",
8689
+ "note": "The title and the help line let a person find the setting they want.",
8690
+ "example": [
8691
+ {
8692
+ "component": "AppSettingSection",
8693
+ "props": {
8694
+ "title": "Invoicing",
8695
+ "description": "How invoices are numbered and sent"
8696
+ },
8697
+ "children": [
8698
+ {
8699
+ "component": "AppSettingRow",
8700
+ "props": {
8701
+ "label": "Currency",
8702
+ "value": "INR"
8703
+ }
8704
+ }
8705
+ ]
8706
+ }
8707
+ ]
8708
+ }
8709
+ ],
8710
+ "dont": [
8711
+ {
8712
+ "title": "Name the group and say what it covers",
8713
+ "note": "A group with no title gives a person no way to find it.",
8714
+ "example": [
8715
+ {
8716
+ "component": "AppSettingSection",
8717
+ "props": {
8718
+ "description": "How invoices are numbered"
8719
+ }
8720
+ }
8721
+ ]
8722
+ }
8723
+ ],
8724
+ "a11y": [
8725
+ "The title is a heading above the rows, so a screen reader finds each group in the heading list.",
8726
+ "The action sits in the header after the title, reached by the keyboard in order."
8727
+ ]
8728
+ }
8729
+ },
7752
8730
  {
7753
8731
  "name": "AppShell",
7754
8732
  "usage": {
@@ -7780,7 +8758,7 @@
7780
8758
  "a11y": [
7781
8759
  "The sidebar is a nav landmark named by navLabel, the phone tab bar is a nav named by tabBarLabel, a skip link jumps to the content, and the current page carries aria-current.",
7782
8760
  "The collapse, menu and sub-list buttons are named and report aria-expanded; Escape closes the open navigation drawer, and a closed sub-list is inert and hidden from assistive technology.",
7783
- "The account menu button is named with the person's name, the bell is named with its unread count and announces changes in a polite live region, and the topbar search is a combobox with a listbox of suggestions."
8761
+ "The account menu button is named with the person's name, the notification centre is named with its unread count and announces changes in a polite live region, and the topbar search is a combobox with a listbox of suggestions."
7784
8762
  ]
7785
8763
  }
7786
8764
  },