@webority/ui-react 0.130.1 → 0.130.3

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 (39) hide show
  1. package/dist/canvas-kit/kit.js +16157 -15623
  2. package/dist/canvas-kit/manifest.json +610 -102
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppDataTable.js +1 -1
  5. package/dist/components/AppMarkdown.js +1 -1
  6. package/dist/components/AppTooltip.js +1 -1
  7. package/dist/components/iconCatalogNames.g.js +1 -1
  8. package/dist/components/iconGlyphs.g.js +1 -1
  9. package/dist/components/iconVariants.g.js +1 -1
  10. package/dist/guidance.json +568 -68
  11. package/dist/markdown-core/dist/links.js +1 -1
  12. package/dist/types/components/AppAutocomplete.d.ts +2 -2
  13. package/dist/types/components/AppCheckbox.d.ts +1 -1
  14. package/dist/types/components/AppCountrySelect.d.ts +1 -1
  15. package/dist/types/components/AppDataTable.d.ts +3 -2
  16. package/dist/types/components/AppDatePicker.d.ts +1 -1
  17. package/dist/types/components/AppDateRangePicker.d.ts +1 -1
  18. package/dist/types/components/AppDropZone.d.ts +2 -2
  19. package/dist/types/components/AppDropdown.d.ts +1 -1
  20. package/dist/types/components/AppFileAttachment.d.ts +3 -3
  21. package/dist/types/components/AppFilePicker.d.ts +2 -2
  22. package/dist/types/components/AppImagePicker.d.ts +2 -2
  23. package/dist/types/components/AppInput.d.ts +2 -2
  24. package/dist/types/components/AppMarkdown.d.ts +8 -3
  25. package/dist/types/components/AppMentionInput.d.ts +1 -1
  26. package/dist/types/components/AppNumberInput.d.ts +1 -1
  27. package/dist/types/components/AppOtpInput.d.ts +1 -1
  28. package/dist/types/components/AppPhoneNumberInput.d.ts +2 -2
  29. package/dist/types/components/AppRadio.d.ts +1 -1
  30. package/dist/types/components/AppRadioGroup.d.ts +1 -1
  31. package/dist/types/components/AppScoreScale.d.ts +1 -1
  32. package/dist/types/components/AppSearch.d.ts +1 -1
  33. package/dist/types/components/AppSelect.d.ts +1 -1
  34. package/dist/types/components/AppTagInput.d.ts +1 -1
  35. package/dist/types/components/AppTextarea.d.ts +2 -2
  36. package/dist/types/components/AppTimePicker.d.ts +1 -1
  37. package/dist/types/components/iconGlyphs.g.d.ts +1 -0
  38. package/dist/types/components/iconVariants.g.d.ts +5 -0
  39. package/package.json +9 -9
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.130.1"
5
+ "version": "0.130.3"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Web",
@@ -113,12 +113,13 @@
113
113
  "instead": "plain sections with headings"
114
114
  },
115
115
  {
116
- "text": "It is one short hint attached to a field label.",
116
+ "text": "It is a short helper text attached to a field label.",
117
117
  "instead": "AppInfoTip"
118
118
  }
119
119
  ],
120
120
  "do": [
121
121
  {
122
+ "title": "Titles that name what is inside",
122
123
  "note": "Write the title as the question or the thing the reader is looking for. They are scanning titles, not content.",
123
124
  "example": [
124
125
  {
@@ -138,6 +139,7 @@
138
139
  ],
139
140
  "dont": [
140
141
  {
142
+ "title": "Titles that name what is inside",
141
143
  "note": "\"More information\" says nothing about what is inside, so the reader has to open every pane to find what they want.",
142
144
  "example": [
143
145
  {
@@ -252,6 +254,7 @@
252
254
  ],
253
255
  "do": [
254
256
  {
257
+ "title": "Offer switching only with several accounts",
255
258
  "note": "The current account is ticked, and each other account is one row to switch to.",
256
259
  "example": [
257
260
  {
@@ -277,6 +280,7 @@
277
280
  ],
278
281
  "dont": [
279
282
  {
283
+ "title": "Offer switching only with several accounts",
280
284
  "note": "A list of one account. There is nothing to switch to, so the section does not earn its place.",
281
285
  "example": [
282
286
  {
@@ -443,6 +447,7 @@
443
447
  ],
444
448
  "do": [
445
449
  {
450
+ "title": "Collapse the extra actions",
446
451
  "note": "When a row has more than two or three actions, collapse the extras behind a single \"more\" trigger.",
447
452
  "example": [
448
453
  {
@@ -455,6 +460,7 @@
455
460
  ]
456
461
  },
457
462
  {
463
+ "title": "Use a conventional glyph",
458
464
  "note": "A recognisable, conventional glyph. A trash can reads as \"delete\" with no thinking.",
459
465
  "example": [
460
466
  {
@@ -469,6 +475,7 @@
469
475
  ],
470
476
  "dont": [
471
477
  {
478
+ "title": "Collapse the extra actions",
472
479
  "note": "Five icons crammed in a row is a guessing game, with too many targets to scan at a glance.",
473
480
  "example": [
474
481
  {
@@ -510,6 +517,7 @@
510
517
  ]
511
518
  },
512
519
  {
520
+ "title": "Use a conventional glyph",
513
521
  "note": "An obscure glyph for a common action makes the user hover and hope. Stick to the conventional icon.",
514
522
  "example": [
515
523
  {
@@ -688,6 +696,7 @@
688
696
  ],
689
697
  "do": [
690
698
  {
699
+ "title": "Match the tone to the message",
691
700
  "note": "Match the tone to intent and say what to do next. A danger alert names the problem and the recovery.",
692
701
  "example": [
693
702
  {
@@ -700,6 +709,7 @@
700
709
  ]
701
710
  },
702
711
  {
712
+ "title": "Use info for a neutral notice",
703
713
  "note": "A neutral, informational notice uses the info tone: calm, not alarming.",
704
714
  "example": [
705
715
  {
@@ -714,6 +724,7 @@
714
724
  ],
715
725
  "dont": [
716
726
  {
727
+ "title": "Match the tone to the message",
717
728
  "note": "A success (green) tone on an error message contradicts the words. The colour lies about what happened.",
718
729
  "example": [
719
730
  {
@@ -726,6 +737,7 @@
726
737
  ]
727
738
  },
728
739
  {
740
+ "title": "Use info for a neutral notice",
729
741
  "note": "A warning (amber) tone on a purely informational message implies a problem that is not there.",
730
742
  "example": [
731
743
  {
@@ -836,6 +848,7 @@
836
848
  ],
837
849
  "do": [
838
850
  {
851
+ "title": "Shape the skeleton like the content",
839
852
  "note": "A skeleton shaped like the content that is coming. The layout does not jump on arrival.",
840
853
  "example": [
841
854
  {
@@ -865,10 +878,44 @@
865
878
  "children": "content"
866
879
  }
867
880
  ]
881
+ },
882
+ {
883
+ "title": "Use the shared loading state",
884
+ "note": "The shared loading state owns the loading, error and empty handling, so each screen does not hand-roll its own.",
885
+ "example": [
886
+ {
887
+ "component": "AppAsyncBlock",
888
+ "props": {
889
+ "loading": true
890
+ },
891
+ "children": "content"
892
+ }
893
+ ]
868
894
  }
869
895
  ],
870
896
  "dont": [
871
897
  {
898
+ "title": "Shape the skeleton like the content",
899
+ "note": "A single tall block that matches no part of the content makes the layout jump when the data arrives.",
900
+ "example": [
901
+ {
902
+ "component": "AppAsyncBlock",
903
+ "props": {
904
+ "loading": true,
905
+ "skeleton": {
906
+ "component": "AppSkeleton",
907
+ "props": {
908
+ "width": "100%",
909
+ "height": 300
910
+ }
911
+ }
912
+ },
913
+ "children": "content"
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ "title": "Use the shared loading state",
872
919
  "note": "A bare \"loading…\" string hand-rolled per screen is inconsistent, and it skips the shared empty and error handling entirely.",
873
920
  "example": [
874
921
  {
@@ -1032,7 +1079,7 @@
1032
1079
  "name": "helperText",
1033
1080
  "type": "string",
1034
1081
  "required": false,
1035
- "description": "A hint shown under the field when there is no error."
1082
+ "description": "Helper text shown under the field when there is no error."
1036
1083
  },
1037
1084
  {
1038
1085
  "name": "id",
@@ -1121,7 +1168,7 @@
1121
1168
  "name": "placeholder",
1122
1169
  "type": "string",
1123
1170
  "required": false,
1124
- "description": "Hint text shown in the empty field.",
1171
+ "description": "Placeholder text shown in the empty field.",
1125
1172
  "default": "Search…"
1126
1173
  },
1127
1174
  {
@@ -1204,6 +1251,7 @@
1204
1251
  ],
1205
1252
  "do": [
1206
1253
  {
1254
+ "title": "Autocomplete for long lists only",
1207
1255
  "note": "A long list users know by name. Type-to-find lands them on the right row in one or two keystrokes.",
1208
1256
  "example": [
1209
1257
  {
@@ -1260,6 +1308,7 @@
1260
1308
  ]
1261
1309
  },
1262
1310
  {
1311
+ "title": "Radios for a handful of options",
1263
1312
  "note": "For a handful of exclusive options, radios show every choice at once. No typing, no dropdown.",
1264
1313
  "example": [
1265
1314
  {
@@ -1289,6 +1338,23 @@
1289
1338
  ],
1290
1339
  "dont": [
1291
1340
  {
1341
+ "title": "Autocomplete for long lists only",
1342
+ "note": "Reserve the remote search for genuinely large or server-side lists, where loadOptions fetches only matches.",
1343
+ "example": [
1344
+ {
1345
+ "component": "AppAutocomplete",
1346
+ "props": {
1347
+ "label": "City (remote)",
1348
+ "name": "city-remote",
1349
+ "placeholder": "Type to search…",
1350
+ "minChars": 1,
1351
+ "helperText": "Debounced search with a loading spinner."
1352
+ }
1353
+ }
1354
+ ]
1355
+ },
1356
+ {
1357
+ "title": "Radios for a handful of options",
1292
1358
  "note": "Three fixed options do not need a search box. The field is heavier than the choice.",
1293
1359
  "example": [
1294
1360
  {
@@ -1313,26 +1379,11 @@
1313
1379
  }
1314
1380
  }
1315
1381
  ]
1316
- },
1317
- {
1318
- "note": "Reserve the remote search for genuinely large or server-side lists, where loadOptions fetches only matches.",
1319
- "example": [
1320
- {
1321
- "component": "AppAutocomplete",
1322
- "props": {
1323
- "label": "City (remote)",
1324
- "name": "city-remote",
1325
- "placeholder": "Type to search…",
1326
- "minChars": 1,
1327
- "helperText": "Debounced search with a loading spinner."
1328
- }
1329
- }
1330
- ]
1331
1382
  }
1332
1383
  ],
1333
1384
  "a11y": [
1334
1385
  "A text label is the accessible name of the control, because the label element cannot name the custom element.",
1335
- "aria-invalid is set when there is an error, and aria-describedby points at the error message, or at the hint when there is no error.",
1386
+ "aria-invalid is set when there is an error, and aria-describedby points at the error message, or at the helper text when there is no error.",
1336
1387
  "Required adds the required mark to the label and the required attribute to the control."
1337
1388
  ]
1338
1389
  }
@@ -1509,6 +1560,7 @@
1509
1560
  ],
1510
1561
  "do": [
1511
1562
  {
1563
+ "title": "Always pass a name",
1512
1564
  "note": "A name is always supplied, so the avatar shows meaningful initials and correct alt text.",
1513
1565
  "example": [
1514
1566
  {
@@ -1520,6 +1572,7 @@
1520
1572
  ]
1521
1573
  },
1522
1574
  {
1575
+ "title": "Beside the name it shows",
1523
1576
  "note": "The avatar sits next to the name it represents, so identity reads as one unit.",
1524
1577
  "example": [
1525
1578
  {
@@ -1545,10 +1598,24 @@
1545
1598
  ]
1546
1599
  }
1547
1600
  ]
1601
+ },
1602
+ {
1603
+ "title": "Use AppAvatar, not a plain image",
1604
+ "note": "AppAvatar keeps the shared shape and falls back to initials when the photo is missing.",
1605
+ "example": [
1606
+ {
1607
+ "component": "AppAvatar",
1608
+ "props": {
1609
+ "name": "Ravi Kumar",
1610
+ "tone": "auto"
1611
+ }
1612
+ }
1613
+ ]
1548
1614
  }
1549
1615
  ],
1550
1616
  "dont": [
1551
1617
  {
1618
+ "title": "Always pass a name",
1552
1619
  "note": "With no name and no photo the avatar can only render a bare question mark, which is useless to the eye and to a screen reader.",
1553
1620
  "example": [
1554
1621
  {
@@ -1557,6 +1624,19 @@
1557
1624
  ]
1558
1625
  },
1559
1626
  {
1627
+ "title": "Beside the name it shows",
1628
+ "note": "On its own the avatar names no one, so the reader cannot tell whose row it is.",
1629
+ "example": [
1630
+ {
1631
+ "component": "AppAvatar",
1632
+ "props": {
1633
+ "name": "Ravi Kumar"
1634
+ }
1635
+ }
1636
+ ]
1637
+ },
1638
+ {
1639
+ "title": "Use AppAvatar, not a plain image",
1560
1640
  "note": "A hand-rolled round <img> drifts from the shared avatar shape and skips the initials fallback.",
1561
1641
  "example": [
1562
1642
  {
@@ -1737,6 +1817,7 @@
1737
1817
  ],
1738
1818
  "do": [
1739
1819
  {
1820
+ "title": "Keep badge text to a word or a number",
1740
1821
  "note": "A short count attached to its label. The badge reads instantly.",
1741
1822
  "example": [
1742
1823
  {
@@ -1758,6 +1839,7 @@
1758
1839
  ]
1759
1840
  },
1760
1841
  {
1842
+ "title": "Use one tone for one tag",
1761
1843
  "note": "A neutral New tag in one intentional tone.",
1762
1844
  "example": [
1763
1845
  {
@@ -1772,6 +1854,7 @@
1772
1854
  ],
1773
1855
  "dont": [
1774
1856
  {
1857
+ "title": "Keep badge text to a word or a number",
1775
1858
  "note": "A sentence in a badge is the wrong tool. Badges hold a word or a number, not prose.",
1776
1859
  "example": [
1777
1860
  {
@@ -1784,6 +1867,7 @@
1784
1867
  ]
1785
1868
  },
1786
1869
  {
1870
+ "title": "Use one tone for one tag",
1787
1871
  "note": "The same label in three tones invents meaning that is not there. One tag, one tone.",
1788
1872
  "example": [
1789
1873
  {
@@ -1894,6 +1978,7 @@
1894
1978
  ],
1895
1979
  "do": [
1896
1980
  {
1981
+ "title": "Banner only for page-wide notices",
1897
1982
  "note": "A page-wide, time-bound notice every visitor needs to see, with a tone that matches its urgency.",
1898
1983
  "example": [
1899
1984
  {
@@ -1909,6 +1994,7 @@
1909
1994
  ],
1910
1995
  "dont": [
1911
1996
  {
1997
+ "title": "Banner only for page-wide notices",
1912
1998
  "note": "A field-level validation message belongs next to the field, not full-bleed across the page. That is AppAlert's job.",
1913
1999
  "example": [
1914
2000
  {
@@ -2005,6 +2091,7 @@
2005
2091
  ],
2006
2092
  "do": [
2007
2093
  {
2094
+ "title": "Current page as plain text",
2008
2095
  "note": "Short labels, a real link on every ancestor, and the current page as plain text.",
2009
2096
  "example": [
2010
2097
  {
@@ -2031,6 +2118,7 @@
2031
2118
  ],
2032
2119
  "dont": [
2033
2120
  {
2121
+ "title": "Current page as plain text",
2034
2122
  "note": "The current page still looks like the others. AppBreadcrumbs already prevents this by ignoring href on the last item, so this shape only happens if you fight the component.",
2035
2123
  "example": [
2036
2124
  {
@@ -2284,6 +2372,7 @@
2284
2372
  ],
2285
2373
  "do": [
2286
2374
  {
2375
+ "title": "One primary action per group",
2287
2376
  "note": "One clear primary action, supported by a secondary. The eye knows where to go.",
2288
2377
  "example": [
2289
2378
  {
@@ -2303,6 +2392,7 @@
2303
2392
  ]
2304
2393
  },
2305
2394
  {
2395
+ "title": "Name destructive actions specifically",
2306
2396
  "note": "Destructive actions use danger and name the object: \"Delete project\", not \"OK\".",
2307
2397
  "example": [
2308
2398
  {
@@ -2315,6 +2405,7 @@
2315
2405
  ]
2316
2406
  },
2317
2407
  {
2408
+ "title": "Start labels with an action verb",
2318
2409
  "note": "Action-first verb + optional reinforcing icon. The label says exactly what happens.",
2319
2410
  "example": [
2320
2411
  {
@@ -2335,6 +2426,7 @@
2335
2426
  ],
2336
2427
  "dont": [
2337
2428
  {
2429
+ "title": "One primary action per group",
2338
2430
  "note": "Two primaries compete for attention, so neither reads as the main action.",
2339
2431
  "example": [
2340
2432
  {
@@ -2354,6 +2446,7 @@
2354
2446
  ]
2355
2447
  },
2356
2448
  {
2449
+ "title": "Name destructive actions specifically",
2357
2450
  "note": "A vague \"Submit\" in the default variant hides that this deletes data.",
2358
2451
  "example": [
2359
2452
  {
@@ -2366,6 +2459,7 @@
2366
2459
  ]
2367
2460
  },
2368
2461
  {
2462
+ "title": "Start labels with an action verb",
2369
2463
  "note": "A noun-only label leaves the user guessing what the button does.",
2370
2464
  "example": [
2371
2465
  {
@@ -2869,6 +2963,7 @@
2869
2963
  ],
2870
2964
  "do": [
2871
2965
  {
2966
+ "title": "One titled subject per card",
2872
2967
  "note": "One titled card, one coherent subject: the header tells the user what this block is.",
2873
2968
  "example": [
2874
2969
  {
@@ -2889,6 +2984,7 @@
2889
2984
  ]
2890
2985
  },
2891
2986
  {
2987
+ "title": "Use body={false} for a table",
2892
2988
  "note": "A table uses body={false} so its rows sit flush to the card edges.",
2893
2989
  "example": [
2894
2990
  {
@@ -2930,6 +3026,7 @@
2930
3026
  ],
2931
3027
  "dont": [
2932
3028
  {
3029
+ "title": "One titled subject per card",
2933
3030
  "note": "Three unrelated facts crammed into one untitled card, so none of them stands out.",
2934
3031
  "example": [
2935
3032
  {
@@ -2961,6 +3058,7 @@
2961
3058
  ]
2962
3059
  },
2963
3060
  {
3061
+ "title": "Use body={false} for a table",
2964
3062
  "note": "The default body padding leaves an awkward inset gap around a full-width table.",
2965
3063
  "example": [
2966
3064
  {
@@ -3779,7 +3877,7 @@
3779
3877
  "name": "error",
3780
3878
  "type": "string",
3781
3879
  "required": false,
3782
- "description": "Error message, rendered below the control. Replaces the hint."
3880
+ "description": "Error message, rendered below the control. Replaces the helper text."
3783
3881
  },
3784
3882
  {
3785
3883
  "name": "help",
@@ -3883,6 +3981,7 @@
3883
3981
  ],
3884
3982
  "do": [
3885
3983
  {
3984
+ "title": "Independent options each get a checkbox",
3886
3985
  "note": "Independent settings: each checkbox toggles on its own, any combination allowed.",
3887
3986
  "example": [
3888
3987
  {
@@ -3916,6 +4015,7 @@
3916
4015
  ]
3917
4016
  },
3918
4017
  {
4018
+ "title": "Checkboxes, not switches, for saved forms",
3919
4019
  "note": "A clear, specific label states exactly what opting in means.",
3920
4020
  "example": [
3921
4021
  {
@@ -3929,32 +4029,30 @@
3929
4029
  ],
3930
4030
  "dont": [
3931
4031
  {
3932
- "note": "Switches imply an instant, saved effect; on a form that submits on Save, checkboxes set the right expectation.",
4032
+ "title": "Independent options each get a checkbox",
4033
+ "note": "Radios force a single choice, so independent yes/no options each need their own checkbox.",
3933
4034
  "example": [
3934
4035
  {
3935
4036
  "component": "div",
3936
4037
  "props": {
3937
- "className": "d-flex flex-column gap-2"
4038
+ "className": "wui-control-group"
3938
4039
  },
3939
4040
  "children": [
3940
4041
  {
3941
- "component": "AppSwitch",
4042
+ "component": "AppRadio",
3942
4043
  "props": {
3943
4044
  "label": "Weekly digest",
4045
+ "name": "prefs-bad",
4046
+ "value": "digest",
3944
4047
  "defaultChecked": true
3945
4048
  }
3946
4049
  },
3947
4050
  {
3948
- "component": "AppSwitch",
3949
- "props": {
3950
- "label": "Product updates"
3951
- }
3952
- },
3953
- {
3954
- "component": "AppSwitch",
4051
+ "component": "AppRadio",
3955
4052
  "props": {
3956
4053
  "label": "Security alerts",
3957
- "defaultChecked": true
4054
+ "name": "prefs-bad",
4055
+ "value": "security"
3958
4056
  }
3959
4057
  }
3960
4058
  ]
@@ -3962,29 +4060,33 @@
3962
4060
  ]
3963
4061
  },
3964
4062
  {
3965
- "note": "Radios force a single choice, so independent yes/no options each need their own checkbox.",
4063
+ "title": "Checkboxes, not switches, for saved forms",
4064
+ "note": "Switches imply an instant, saved effect; on a form that submits on Save, checkboxes set the right expectation.",
3966
4065
  "example": [
3967
4066
  {
3968
4067
  "component": "div",
3969
4068
  "props": {
3970
- "className": "wui-control-group"
4069
+ "className": "d-flex flex-column gap-2"
3971
4070
  },
3972
4071
  "children": [
3973
4072
  {
3974
- "component": "AppRadio",
4073
+ "component": "AppSwitch",
3975
4074
  "props": {
3976
4075
  "label": "Weekly digest",
3977
- "name": "prefs-bad",
3978
- "value": "digest",
3979
4076
  "defaultChecked": true
3980
4077
  }
3981
4078
  },
3982
4079
  {
3983
- "component": "AppRadio",
4080
+ "component": "AppSwitch",
4081
+ "props": {
4082
+ "label": "Product updates"
4083
+ }
4084
+ },
4085
+ {
4086
+ "component": "AppSwitch",
3984
4087
  "props": {
3985
4088
  "label": "Security alerts",
3986
- "name": "prefs-bad",
3987
- "value": "security"
4089
+ "defaultChecked": true
3988
4090
  }
3989
4091
  }
3990
4092
  ]
@@ -3994,7 +4096,7 @@
3994
4096
  ],
3995
4097
  "a11y": [
3996
4098
  "The label is linked to the input by id, so a click on the label text ticks the box.",
3997
- "The error or the hint is linked to the input with aria-describedby, and an error sets aria-invalid to true.",
4099
+ "The error or the helper text is linked to the input with aria-describedby, and an error sets aria-invalid to true.",
3998
4100
  "An id is generated when none is given, so the label link always works."
3999
4101
  ]
4000
4102
  }
@@ -4110,6 +4212,7 @@
4110
4212
  ],
4111
4213
  "do": [
4112
4214
  {
4215
+ "title": "Show applied filters as removable chips",
4113
4216
  "note": "Removable chips for applied filters: the user sees exactly what is active and can clear each one.",
4114
4217
  "example": [
4115
4218
  {
@@ -4133,6 +4236,7 @@
4133
4236
  ]
4134
4237
  },
4135
4238
  {
4239
+ "title": "One clear tone and a glyph",
4136
4240
  "note": "One clear tone and a reinforcing glyph: the chip reads at a glance.",
4137
4241
  "example": [
4138
4242
  {
@@ -4144,10 +4248,36 @@
4144
4248
  }
4145
4249
  }
4146
4250
  ]
4251
+ },
4252
+ {
4253
+ "title": "Keep chip text short",
4254
+ "note": "A short label reads as a token at a glance.",
4255
+ "example": [
4256
+ {
4257
+ "component": "AppChip",
4258
+ "props": {
4259
+ "label": "Draft"
4260
+ }
4261
+ }
4262
+ ]
4147
4263
  }
4148
4264
  ],
4149
4265
  "dont": [
4150
4266
  {
4267
+ "title": "Show applied filters as removable chips",
4268
+ "note": "A disabled chip cannot be cleared, so the user has no way to remove the filter from the chip.",
4269
+ "example": [
4270
+ {
4271
+ "component": "AppChip",
4272
+ "props": {
4273
+ "label": "Lightning",
4274
+ "disabled": true
4275
+ }
4276
+ }
4277
+ ]
4278
+ },
4279
+ {
4280
+ "title": "One clear tone and a glyph",
4151
4281
  "note": "Three tones on three peer filters invent meaning that isn’t there: keep peers one tone.",
4152
4282
  "example": [
4153
4283
  {
@@ -4174,6 +4304,7 @@
4174
4304
  ]
4175
4305
  },
4176
4306
  {
4307
+ "title": "Keep chip text short",
4177
4308
  "note": "A sentence in a chip defeats the point: a chip is a token, not a paragraph.",
4178
4309
  "example": [
4179
4310
  {
@@ -4454,6 +4585,7 @@
4454
4585
  ],
4455
4586
  "do": [
4456
4587
  {
4588
+ "title": "A short title and one line",
4457
4589
  "note": "A short title and a one-line description. The card reads instantly.",
4458
4590
  "example": [
4459
4591
  {
@@ -4495,6 +4627,7 @@
4495
4627
  ]
4496
4628
  },
4497
4629
  {
4630
+ "title": "One visual style per group",
4498
4631
  "note": "One visual style across the group: all icon cards, or all image cards.",
4499
4632
  "example": [
4500
4633
  {
@@ -4538,6 +4671,7 @@
4538
4671
  ],
4539
4672
  "dont": [
4540
4673
  {
4674
+ "title": "A short title and one line",
4541
4675
  "note": "A paragraph stuffed into a card. If it needs this much text, it needs a different control.",
4542
4676
  "example": [
4543
4677
  {
@@ -4557,6 +4691,7 @@
4557
4691
  ]
4558
4692
  },
4559
4693
  {
4694
+ "title": "One visual style per group",
4560
4695
  "note": "Mixing an icon card with an image card in one group makes the set feel broken.",
4561
4696
  "example": [
4562
4697
  {
@@ -4741,6 +4876,7 @@
4741
4876
  ],
4742
4877
  "do": [
4743
4878
  {
4879
+ "title": "A few short pills",
4744
4880
  "note": "A few short, scannable pills; the user sees every option and toggles at a glance.",
4745
4881
  "example": [
4746
4882
  {
@@ -4766,6 +4902,7 @@
4766
4902
  ]
4767
4903
  },
4768
4904
  {
4905
+ "title": "Drive checked from state",
4769
4906
  "note": "checked reflects real selection state that your onChange updates; a proper control.",
4770
4907
  "example": [
4771
4908
  {
@@ -4783,6 +4920,7 @@
4783
4920
  ],
4784
4921
  "dont": [
4785
4922
  {
4923
+ "title": "A few short pills",
4786
4924
  "note": "A sentence crammed into a chip. Long labels belong in a select or a checkbox list.",
4787
4925
  "example": [
4788
4926
  {
@@ -4798,6 +4936,7 @@
4798
4936
  ]
4799
4937
  },
4800
4938
  {
4939
+ "title": "Drive checked from state",
4801
4940
  "note": "A chip used to fire an action. Actions are buttons; a chip should hold a choice.",
4802
4941
  "example": [
4803
4942
  {
@@ -5088,6 +5227,7 @@
5088
5227
  ],
5089
5228
  "do": [
5090
5229
  {
5230
+ "title": "Say what the colour affects",
5091
5231
  "note": "Says what the colour affects. A user picking blind cannot tell whether they are about to change one button or the whole portal.",
5092
5232
  "example": [
5093
5233
  {
@@ -5103,7 +5243,8 @@
5103
5243
  ],
5104
5244
  "dont": [
5105
5245
  {
5106
- "note": "“Colour” of what? And with no hint, the user has to save and go looking to find out what changed.",
5246
+ "title": "Say what the colour affects",
5247
+ "note": "“Colour” of what? And with no helper text, the user has to save and go looking to find out what changed.",
5107
5248
  "example": [
5108
5249
  {
5109
5250
  "component": "AppColorField",
@@ -5118,7 +5259,7 @@
5118
5259
  "a11y": [
5119
5260
  "The hex text box is the labelled control and the field that posts; the label points at it and the required mark follows the label.",
5120
5261
  "The swatch has its own accessible name, the label followed by colour picker (or Colour when there is no label), and is skipped by the tab key.",
5121
- "An error sets the text box invalid and describes it with the error text; without an error, the hint describes it."
5262
+ "An error sets the text box invalid and describes it with the error text; without an error, the helper text describes it."
5122
5263
  ]
5123
5264
  }
5124
5265
  },
@@ -5200,6 +5341,7 @@
5200
5341
  ],
5201
5342
  "do": [
5202
5343
  {
5344
+ "title": "One Columns button in the toolbar",
5203
5345
  "note": "One Columns button in the toolbar actions, beside search and export.",
5204
5346
  "example": [
5205
5347
  {
@@ -5238,6 +5380,7 @@
5238
5380
  ],
5239
5381
  "dont": [
5240
5382
  {
5383
+ "title": "One Columns button in the toolbar",
5241
5384
  "note": "A permanent row of checkboxes takes space above the table and pushes the data down.",
5242
5385
  "example": [
5243
5386
  {
@@ -6270,6 +6413,7 @@
6270
6413
  ],
6271
6414
  "do": [
6272
6415
  {
6416
+ "title": "Booleans as ticks, plain row labels",
6273
6417
  "note": "Every row appears for every column, so the reader can read across. The row label names the capability in the customer’s words.",
6274
6418
  "example": [
6275
6419
  {
@@ -6305,6 +6449,7 @@
6305
6449
  ],
6306
6450
  "dont": [
6307
6451
  {
6452
+ "title": "Booleans as ticks, plain row labels",
6308
6453
  "note": "Two highlighted columns both tint, so no option reads as the recommendation; internal jargon in the row label; and hand-typed dashes and Y instead of booleans lose the tick's shape cue.",
6309
6454
  "example": [
6310
6455
  {
@@ -6527,6 +6672,7 @@
6527
6672
  ],
6528
6673
  "do": [
6529
6674
  {
6675
+ "title": "Name the verb and use danger",
6530
6676
  "note": "The danger tone + a verb-labelled button (\"Delete\") makes the weight and the outcome of the action clear.",
6531
6677
  "example": [
6532
6678
  {
@@ -6539,6 +6685,7 @@
6539
6685
  ]
6540
6686
  },
6541
6687
  {
6688
+ "title": "Typed name only for irreversible actions",
6542
6689
  "note": "For an account-wide wipe, confirmPhrase forces the user to type the name, so there are no accidental clicks.",
6543
6690
  "example": [
6544
6691
  {
@@ -6553,6 +6700,7 @@
6553
6700
  ],
6554
6701
  "dont": [
6555
6702
  {
6703
+ "title": "Name the verb and use danger",
6556
6704
  "note": "A neutral \"OK\" on a destructive confirm hides what pressing it actually does.",
6557
6705
  "example": [
6558
6706
  {
@@ -6562,6 +6710,7 @@
6562
6710
  ]
6563
6711
  },
6564
6712
  {
6713
+ "title": "Typed name only for irreversible actions",
6565
6714
  "note": "Gating a reversible archive behind a typed phrase is friction with no payoff, so save it for the irreversible.",
6566
6715
  "example": [
6567
6716
  {
@@ -7133,7 +7282,7 @@
7133
7282
  "name": "helperText",
7134
7283
  "type": "string",
7135
7284
  "required": false,
7136
- "description": "Help text shown under the field when there is no error."
7285
+ "description": "Helper text shown under the field when there is no error."
7137
7286
  },
7138
7287
  {
7139
7288
  "name": "id",
@@ -7241,7 +7390,7 @@
7241
7390
  "dont": [],
7242
7391
  "a11y": [
7243
7392
  "The visible label is the control's accessible name, unless an aria-label or aria-labelledby is passed, and it is tied to the control through its id.",
7244
- "An error sets aria-invalid on the control and is linked to it with aria-describedby; the hint is linked the same way when there is no error.",
7393
+ "An error sets aria-invalid on the control and is linked to it with aria-describedby; the helper text is linked the same way when there is no error.",
7245
7394
  "A required field marks the label with the required mark and sets required on the control."
7246
7395
  ]
7247
7396
  }
@@ -7430,6 +7579,12 @@
7430
7579
  "required": false,
7431
7580
  "description": "Keeps the column in view at the start or end while the table scrolls sideways."
7432
7581
  },
7582
+ {
7583
+ "name": "rowHeader",
7584
+ "type": "boolean",
7585
+ "required": false,
7586
+ "description": "The cell names the row: it draws as a th with scope row. Default off."
7587
+ },
7433
7588
  {
7434
7589
  "name": "sortable",
7435
7590
  "type": "boolean",
@@ -7444,7 +7599,7 @@
7444
7599
  }
7445
7600
  ],
7446
7601
  "required": true,
7447
- "description": "The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align and grow."
7602
+ "description": "The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader."
7448
7603
  },
7449
7604
  {
7450
7605
  "name": "density",
@@ -7688,6 +7843,7 @@
7688
7843
  ],
7689
7844
  "do": [
7690
7845
  {
7846
+ "title": "Say when a table is empty",
7691
7847
  "note": "An explicit empty message tells the user the list is genuinely empty, not broken.",
7692
7848
  "example": [
7693
7849
  {
@@ -7718,6 +7874,7 @@
7718
7874
  ],
7719
7875
  "dont": [
7720
7876
  {
7877
+ "title": "Say when a table is empty",
7721
7878
  "note": "A blank table with no message reads as a bug, because the user cannot tell empty from failed.",
7722
7879
  "example": [
7723
7880
  {
@@ -7835,7 +7992,7 @@
7835
7992
  "name": "helperText",
7836
7993
  "type": "string",
7837
7994
  "required": false,
7838
- "description": "Help text shown under the control."
7995
+ "description": "Helper text shown under the control."
7839
7996
  },
7840
7997
  {
7841
7998
  "name": "id",
@@ -7956,6 +8113,7 @@
7956
8113
  ],
7957
8114
  "do": [
7958
8115
  {
8116
+ "title": "Give the date a visible label",
7959
8117
  "note": "A visible label above the field. The user knows what the date is for before opening it.",
7960
8118
  "example": [
7961
8119
  {
@@ -7969,6 +8127,7 @@
7969
8127
  ]
7970
8128
  },
7971
8129
  {
8130
+ "title": "Set min and max bounds",
7972
8131
  "note": "min / max stop invalid dates at the source, so the user can only pick a real one.",
7973
8132
  "example": [
7974
8133
  {
@@ -7984,6 +8143,7 @@
7984
8143
  ],
7985
8144
  "dont": [
7986
8145
  {
8146
+ "title": "Give the date a visible label",
7987
8147
  "note": "Only a placeholder as the label, which vanishes the moment a date is picked.",
7988
8148
  "example": [
7989
8149
  {
@@ -7996,6 +8156,7 @@
7996
8156
  ]
7997
8157
  },
7998
8158
  {
8159
+ "title": "Set min and max bounds",
7999
8160
  "note": "No bounds, then reject the date after submit. Constrain up front instead.",
8000
8161
  "example": [
8001
8162
  {
@@ -8009,7 +8170,7 @@
8009
8170
  ],
8010
8171
  "a11y": [
8011
8172
  "The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
8012
- "Hint or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8173
+ "Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8013
8174
  "Required and disabled are set as native attributes on the control."
8014
8175
  ]
8015
8176
  }
@@ -8113,7 +8274,7 @@
8113
8274
  "name": "helperText",
8114
8275
  "type": "string",
8115
8276
  "required": false,
8116
- "description": "Help text shown under the control."
8277
+ "description": "Helper text shown under the control."
8117
8278
  },
8118
8279
  {
8119
8280
  "name": "id",
@@ -8244,7 +8405,7 @@
8244
8405
  "dont": [],
8245
8406
  "a11y": [
8246
8407
  "The field label names the control through aria-label when it is a string, and ariaLabel overrides it.",
8247
- "Hint or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8408
+ "Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8248
8409
  "Required and disabled are set as native attributes on the control."
8249
8410
  ]
8250
8411
  }
@@ -8395,6 +8556,7 @@
8395
8556
  ],
8396
8557
  "do": [
8397
8558
  {
8559
+ "title": "Name each value",
8398
8560
  "note": "Specific, concise labels (no generic \"Info\") and clear values.",
8399
8561
  "example": [
8400
8562
  {
@@ -8417,6 +8579,7 @@
8417
8579
  ],
8418
8580
  "dont": [
8419
8581
  {
8582
+ "title": "Name each value",
8420
8583
  "note": "Generic labels like \"Data 1\" and ellipsis placeholders carry no meaning.",
8421
8584
  "example": [
8422
8585
  {
@@ -8500,6 +8663,7 @@
8500
8663
  ],
8501
8664
  "do": [
8502
8665
  {
8666
+ "title": "Beside the list it details",
8503
8667
  "note": "The pane sits beside the list it details. Escape inside it calls onClose.",
8504
8668
  "example": [
8505
8669
  {
@@ -8520,6 +8684,7 @@
8520
8684
  ],
8521
8685
  "dont": [
8522
8686
  {
8687
+ "title": "Beside the list it details",
8523
8688
  "note": "Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.",
8524
8689
  "example": [
8525
8690
  {
@@ -8839,13 +9004,13 @@
8839
9004
  "name": "maxSizeMb",
8840
9005
  "type": "number",
8841
9006
  "required": false,
8842
- "description": "Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the hint names no size."
9007
+ "description": "Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the format line names no size."
8843
9008
  },
8844
9009
  {
8845
9010
  "name": "maxSizeText",
8846
9011
  "type": "string",
8847
9012
  "required": false,
8848
- "description": "The size cap in the hint; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
9013
+ "description": "The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
8849
9014
  "default": "up to {size} MB"
8850
9015
  },
8851
9016
  {
@@ -8883,7 +9048,7 @@
8883
9048
  "dont": [],
8884
9049
  "a11y": [
8885
9050
  "The zone is a label bound to a visually hidden native file input, so keyboard and screen reader users reach the same file chooser as a click.",
8886
- "The input is described by the hint, or by the error when one shows, through aria-describedby.",
9051
+ "The input is described by the helper text, or by the error when one shows, through aria-describedby.",
8887
9052
  "A disabled zone sets aria-disabled, disables the input and ignores drops."
8888
9053
  ]
8889
9054
  }
@@ -9061,7 +9226,7 @@
9061
9226
  "name": "trigger",
9062
9227
  "type": "node",
9063
9228
  "required": false,
9064
- "description": "A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard behavior and accessible role."
9229
+ "description": "A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard behaviour and accessible role."
9065
9230
  }
9066
9231
  ],
9067
9232
  "itemsTakeAction": [
@@ -9095,6 +9260,7 @@
9095
9260
  ],
9096
9261
  "do": [
9097
9262
  {
9263
+ "title": "Put the destructive item last",
9098
9264
  "note": "Overflow actions collapse into one trigger, with the destructive one marked danger and placed last.",
9099
9265
  "example": [
9100
9266
  {
@@ -9125,6 +9291,7 @@
9125
9291
  ]
9126
9292
  },
9127
9293
  {
9294
+ "title": "Keep the menu short and clear",
9128
9295
  "note": "A short, scannable list of clearly worded actions.",
9129
9296
  "example": [
9130
9297
  {
@@ -9149,6 +9316,7 @@
9149
9316
  ],
9150
9317
  "dont": [
9151
9318
  {
9319
+ "title": "Put the destructive item last",
9152
9320
  "note": "Delete sits first and unmarked, so it looks like every other item and is the easiest to hit by mistake.",
9153
9321
  "example": [
9154
9322
  {
@@ -9178,6 +9346,7 @@
9178
9346
  ]
9179
9347
  },
9180
9348
  {
9349
+ "title": "Keep the menu short and clear",
9181
9350
  "note": "A menu with nine items becomes a wall to read. Group or split it, or promote the common ones out.",
9182
9351
  "example": [
9183
9352
  {
@@ -9465,6 +9634,7 @@
9465
9634
  ],
9466
9635
  "do": [
9467
9636
  {
9637
+ "title": "Offer a next step",
9468
9638
  "note": "Names what's missing, explains why it matters, and offers the exact action to fix it.",
9469
9639
  "example": [
9470
9640
  {
@@ -9485,6 +9655,7 @@
9485
9655
  ]
9486
9656
  },
9487
9657
  {
9658
+ "title": "Explain a search with no matches",
9488
9659
  "note": "A search-empty explains the specific query and suggests how to get results.",
9489
9660
  "example": [
9490
9661
  {
@@ -9496,10 +9667,25 @@
9496
9667
  }
9497
9668
  }
9498
9669
  ]
9670
+ },
9671
+ {
9672
+ "title": "Keep the description specific",
9673
+ "note": "A description that says what the empty state means helps the user, where filler only pads the space.",
9674
+ "example": [
9675
+ {
9676
+ "component": "AppEmptyState",
9677
+ "props": {
9678
+ "icon": "inbox",
9679
+ "title": "No requests this week",
9680
+ "description": "Requests you raise appear here once they are submitted."
9681
+ }
9682
+ }
9683
+ ]
9499
9684
  }
9500
9685
  ],
9501
9686
  "dont": [
9502
9687
  {
9688
+ "title": "Offer a next step",
9503
9689
  "note": "A bare \"Empty\" with no guidance and no action leaves the user stuck at a dead end.",
9504
9690
  "example": [
9505
9691
  {
@@ -9512,6 +9698,20 @@
9512
9698
  ]
9513
9699
  },
9514
9700
  {
9701
+ "title": "Explain a search with no matches",
9702
+ "note": "A bare \"No results\" with no reason and no way forward leaves the user unsure whether to change the search or the data.",
9703
+ "example": [
9704
+ {
9705
+ "component": "AppEmptyState",
9706
+ "props": {
9707
+ "icon": "search",
9708
+ "title": "No results"
9709
+ }
9710
+ }
9711
+ ]
9712
+ },
9713
+ {
9714
+ "title": "Keep the description specific",
9515
9715
  "note": "Repetitive filler text pads the space without helping the user do anything.",
9516
9716
  "example": [
9517
9717
  {
@@ -9587,22 +9787,55 @@
9587
9787
  ],
9588
9788
  "do": [
9589
9789
  {
9790
+ "title": "Clear the error on navigation",
9590
9791
  "note": "Pass resetKeys so moving to another page clears the error.",
9591
9792
  "example": [
9592
9793
  {
9593
9794
  "component": "AppErrorBoundary",
9594
- "props": {}
9795
+ "props": {
9796
+ "resetKeys": [
9797
+ "/projects"
9798
+ ]
9799
+ }
9800
+ }
9801
+ ]
9802
+ },
9803
+ {
9804
+ "title": "Never show the error text",
9805
+ "note": "The default screen shows a plain sentence, so internal details stay private.",
9806
+ "example": [
9807
+ {
9808
+ "component": "AppErrorBoundary",
9809
+ "props": {
9810
+ "homeHref": "/dashboard"
9811
+ }
9595
9812
  }
9596
9813
  ]
9597
9814
  }
9598
9815
  ],
9599
9816
  "dont": [
9600
9817
  {
9601
- "note": "Do not print the caught error in the fallback; it can leak internal details.",
9818
+ "title": "Clear the error on navigation",
9819
+ "note": "Without resetKeys, the error stays on screen after the person moves to another page.",
9820
+ "example": [
9821
+ {
9822
+ "component": "AppErrorBoundary",
9823
+ "props": {
9824
+ "brand": "Projects"
9825
+ }
9826
+ }
9827
+ ]
9828
+ },
9829
+ {
9830
+ "title": "Never show the error text",
9831
+ "note": "It can leak internal details to the person reading the page, so the fallback never shows the error text.",
9602
9832
  "example": [
9603
9833
  {
9604
- "component": "p",
9605
- "children": "TypeError: Cannot read properties of undefined (reading 'map')"
9834
+ "component": "AppCodeBlock",
9835
+ "props": {
9836
+ "code": "TypeError: Cannot read properties of undefined (reading 'map')",
9837
+ "language": "text"
9838
+ }
9606
9839
  }
9607
9840
  ]
9608
9841
  }
@@ -9707,7 +9940,7 @@
9707
9940
  "name": "accept",
9708
9941
  "type": "string",
9709
9942
  "required": false,
9710
- "description": "The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the hint then names no types."
9943
+ "description": "The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the format line then names no types."
9711
9944
  },
9712
9945
  {
9713
9946
  "name": "browseLabel",
@@ -9746,7 +9979,7 @@
9746
9979
  "name": "maxSizeMb",
9747
9980
  "type": "number",
9748
9981
  "required": false,
9749
- "description": "The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the hint names no size."
9982
+ "description": "The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size."
9750
9983
  },
9751
9984
  {
9752
9985
  "name": "maxSizeText",
@@ -9814,7 +10047,7 @@
9814
10047
  "name": "validate",
9815
10048
  "type": "boolean",
9816
10049
  "required": false,
9817
- "description": "Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the hint text.",
10050
+ "description": "Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the format line.",
9818
10051
  "default": true
9819
10052
  },
9820
10053
  {
@@ -9853,6 +10086,7 @@
9853
10086
  ],
9854
10087
  "do": [
9855
10088
  {
10089
+ "title": "Name the row and limit types",
9856
10090
  "note": "Give the row a specific label and restrict the accepted types, so the user knows what belongs here and what is allowed before they pick.",
9857
10091
  "example": [
9858
10092
  {
@@ -9866,6 +10100,7 @@
9866
10100
  ]
9867
10101
  },
9868
10102
  {
10103
+ "title": "Make a required file's requirement visible",
9869
10104
  "note": "Surface a submit-time requirement with a message below the row, in the field's error style.",
9870
10105
  "example": [
9871
10106
  {
@@ -9880,6 +10115,7 @@
9880
10115
  ],
9881
10116
  "dont": [
9882
10117
  {
10118
+ "title": "Name the row and limit types",
9883
10119
  "note": "A bare \"Attach\" label with no constraints leaves the user unsure what belongs here or what the field accepts.",
9884
10120
  "example": [
9885
10121
  {
@@ -9891,6 +10127,7 @@
9891
10127
  ]
9892
10128
  },
9893
10129
  {
10130
+ "title": "Make a required file's requirement visible",
9894
10131
  "note": "Marking a genuinely required attachment \"optional\" mis-signals that it can be skipped.",
9895
10132
  "example": [
9896
10133
  {
@@ -10039,13 +10276,13 @@
10039
10276
  "name": "maxSizeMb",
10040
10277
  "type": "number",
10041
10278
  "required": false,
10042
- "description": "The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the hint names no size."
10279
+ "description": "The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size."
10043
10280
  },
10044
10281
  {
10045
10282
  "name": "maxSizeText",
10046
10283
  "type": "string",
10047
10284
  "required": false,
10048
- "description": "The size cap in the hint; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
10285
+ "description": "The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
10049
10286
  "default": "up to {size} MB"
10050
10287
  },
10051
10288
  {
@@ -10154,6 +10391,7 @@
10154
10391
  ],
10155
10392
  "do": [
10156
10393
  {
10394
+ "title": "Give the field a specific label",
10157
10395
  "note": "Give the field a specific label, \"Structure photo\" rather than \"Upload\", so the user knows what image belongs here.",
10158
10396
  "example": [
10159
10397
  {
@@ -10165,6 +10403,7 @@
10165
10403
  ]
10166
10404
  },
10167
10405
  {
10406
+ "title": "Show validation beside the field",
10168
10407
  "note": "Surface validation with a message below the zone, in the field's own error style, so the eye lands on it next to the control.",
10169
10408
  "example": [
10170
10409
  {
@@ -10180,7 +10419,8 @@
10180
10419
  ],
10181
10420
  "dont": [
10182
10421
  {
10183
- "note": "A vague \"File\" label leaves the user guessing what to drop, and mixes with the format hint already in the zone.",
10422
+ "title": "Give the field a specific label",
10423
+ "note": "A vague \"File\" label leaves the user guessing what to drop, and mixes with the format line already in the zone.",
10184
10424
  "example": [
10185
10425
  {
10186
10426
  "component": "AppFilePicker",
@@ -10191,6 +10431,7 @@
10191
10431
  ]
10192
10432
  },
10193
10433
  {
10434
+ "title": "Show validation beside the field",
10194
10435
  "note": "A required field with no message on submit leaves the user unsure why the form will not save.",
10195
10436
  "example": [
10196
10437
  {
@@ -10205,7 +10446,7 @@
10205
10446
  ],
10206
10447
  "a11y": [
10207
10448
  "The label is tied to the file input, and the dropzone is a label for the same input, so the zone opens the picker by click or keyboard.",
10208
- "A shown error or hint is linked to the file input through aria-describedby.",
10449
+ "A shown error or helper text is linked to the file input through aria-describedby.",
10209
10450
  "While loading, the control is marked aria-busy and a spinner with the status role named Loading shows.",
10210
10451
  "In single mode the preview has a button to change the file and a separate remove button, each with an accessible name."
10211
10452
  ]
@@ -11281,6 +11522,7 @@
11281
11522
  ],
11282
11523
  "do": [
11283
11524
  {
11525
+ "title": "Reinforce a text label",
11284
11526
  "note": "The icon reinforces a clear text label: it supports the word and does not replace it.",
11285
11527
  "example": [
11286
11528
  {
@@ -11299,6 +11541,7 @@
11299
11541
  ]
11300
11542
  },
11301
11543
  {
11544
+ "title": "Match the text size",
11302
11545
  "note": "AppIcon size matches the text it sits beside, so the baseline stays clean.",
11303
11546
  "example": [
11304
11547
  {
@@ -11324,6 +11567,7 @@
11324
11567
  ],
11325
11568
  "dont": [
11326
11569
  {
11570
+ "title": "Reinforce a text label",
11327
11571
  "note": "Hand-written icon markup in app code bypasses the shared name map and drifts.",
11328
11572
  "example": [
11329
11573
  {
@@ -11345,6 +11589,7 @@
11345
11589
  ]
11346
11590
  },
11347
11591
  {
11592
+ "title": "Match the text size",
11348
11593
  "note": "A glyph far larger than its label unbalances the row and pulls the eye away from the words.",
11349
11594
  "example": [
11350
11595
  {
@@ -11497,7 +11742,7 @@
11497
11742
  "name": "helperText",
11498
11743
  "type": "string",
11499
11744
  "required": false,
11500
- "description": "Help text under the picker. An error replaces it."
11745
+ "description": "Helper text under the picker. An error replaces it."
11501
11746
  },
11502
11747
  {
11503
11748
  "name": "kind",
@@ -11525,7 +11770,7 @@
11525
11770
  "stacked"
11526
11771
  ],
11527
11772
  "required": false,
11528
- "description": "Stacked is the ring with the hint below. Inline puts the ring on the left with a title, subtitle and hint column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.",
11773
+ "description": "Stacked is the ring with the helper text below. Inline puts the ring on the left with a title, subtitle and helper text column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.",
11529
11774
  "default": "stacked"
11530
11775
  },
11531
11776
  {
@@ -11729,6 +11974,7 @@
11729
11974
  ],
11730
11975
  "do": [
11731
11976
  {
11977
+ "title": "Name the action the overlay performs",
11732
11978
  "note": "Set an overlay label that names the thing, such as \"Change logo\", so the hover affordance says exactly what happens.",
11733
11979
  "example": [
11734
11980
  {
@@ -11741,6 +11987,7 @@
11741
11987
  ]
11742
11988
  },
11743
11989
  {
11990
+ "title": "Label and size the picker",
11744
11991
  "note": "Say what a good photo is. People crop better when they know.",
11745
11992
  "example": [
11746
11993
  {
@@ -11757,6 +12004,7 @@
11757
12004
  ],
11758
12005
  "dont": [
11759
12006
  {
12007
+ "title": "Name the action the overlay performs",
11760
12008
  "note": "A generic \"Click\" overlay tells the user how to interact but not what the action does.",
11761
12009
  "example": [
11762
12010
  {
@@ -11769,6 +12017,7 @@
11769
12017
  ]
11770
12018
  },
11771
12019
  {
12020
+ "title": "Label and size the picker",
11772
12021
  "note": "A tiny, disabled avatar picker with no label. Nobody can tell it sets their photo.",
11773
12022
  "example": [
11774
12023
  {
@@ -11786,7 +12035,7 @@
11786
12035
  "a11y": [
11787
12036
  "The upload control is named by ariaLabel, else by Upload photo for the overlay and by the action's words (Choose or Change photo) for buttons. It is disabled and marked busy while loading.",
11788
12037
  "The remove control is its own button named by removeLabel, and it stays hidden until there is an image to remove.",
11789
- "The hint or the error is tied to the upload control with aria-describedby, and an error wins over the hint.",
12038
+ "The helper text or the error is tied to the upload control with aria-describedby, and an error wins over helper text.",
11790
12039
  "The buttons look sits out of the tab order and the Upload button beside it is the keyboard path to the same action."
11791
12040
  ]
11792
12041
  }
@@ -11852,8 +12101,8 @@
11852
12101
  "instead": "AppAlert"
11853
12102
  },
11854
12103
  {
11855
- "text": "It is a permanent hint under a field the user should always read.",
11856
- "instead": "the hint prop on AppInput"
12104
+ "text": "It is a permanent helper text under a field the user should always read.",
12105
+ "instead": "the helperText prop on AppInput"
11857
12106
  },
11858
12107
  {
11859
12108
  "text": "You would otherwise expose the text via a native title=\"\".",
@@ -11866,6 +12115,7 @@
11866
12115
  ],
11867
12116
  "do": [
11868
12117
  {
12118
+ "title": "Ask the question in the label",
11869
12119
  "note": "Give the tip a descriptive label (a real question) so it’s clear what the “?” explains, and keep the body to a sentence.",
11870
12120
  "example": [
11871
12121
  {
@@ -11887,6 +12137,7 @@
11887
12137
  ]
11888
12138
  },
11889
12139
  {
12140
+ "title": "Attach the tip to its term",
11890
12141
  "note": "Attach the tip to the exact term it explains, inline with the label, so the “?” sits where the question arises.",
11891
12142
  "example": [
11892
12143
  {
@@ -11910,6 +12161,7 @@
11910
12161
  ],
11911
12162
  "dont": [
11912
12163
  {
12164
+ "title": "Ask the question in the label",
11913
12165
  "note": "A vague “info” label and a wall of text overload a tip: move long explanations into a linked doc.",
11914
12166
  "example": [
11915
12167
  {
@@ -11931,6 +12183,7 @@
11931
12183
  ]
11932
12184
  },
11933
12185
  {
12186
+ "title": "Attach the tip to its term",
11934
12187
  "note": "Burying the explanation elsewhere (or omitting it) forces the user to leave the field to understand it.",
11935
12188
  "example": [
11936
12189
  {
@@ -12156,7 +12409,7 @@
12156
12409
  "name": "helperText",
12157
12410
  "type": "string",
12158
12411
  "required": false,
12159
- "description": "Help text under the field. An error replaces it while both are set."
12412
+ "description": "Helper text under the field. An error replaces it while both are set."
12160
12413
  },
12161
12414
  {
12162
12415
  "name": "hidePasswordLabel",
@@ -12355,7 +12608,7 @@
12355
12608
  "top"
12356
12609
  ],
12357
12610
  "required": false,
12358
- "description": "The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the hint.",
12611
+ "description": "The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the helper text.",
12359
12612
  "default": "auto"
12360
12613
  },
12361
12614
  {
@@ -12444,7 +12697,7 @@
12444
12697
  "usage": {
12445
12698
  "when": [
12446
12699
  "The user enters a single line of text or a number: name, email, amount, reference.",
12447
- "You want the shared field treatment: label, hint, error, and required marking.",
12700
+ "You want the shared field treatment: label, helper text, error, and required marking.",
12448
12701
  "A specific type (email, number, tel) should drive the keyboard and native validation."
12449
12702
  ],
12450
12703
  "whenNot": [
@@ -12467,6 +12720,7 @@
12467
12720
  ],
12468
12721
  "do": [
12469
12722
  {
12723
+ "title": "A visible label, not a placeholder",
12470
12724
  "note": "A visible label stays put while the user types and is read by screen readers.",
12471
12725
  "example": [
12472
12726
  {
@@ -12481,6 +12735,7 @@
12481
12735
  ]
12482
12736
  },
12483
12737
  {
12738
+ "title": "Use the right input type",
12484
12739
  "note": "type=\"email\" brings the right keyboard and native validation for free.",
12485
12740
  "example": [
12486
12741
  {
@@ -12495,6 +12750,7 @@
12495
12750
  ]
12496
12751
  },
12497
12752
  {
12753
+ "title": "Say exactly what is wrong",
12498
12754
  "note": "A specific error tells the user exactly what to change.",
12499
12755
  "example": [
12500
12756
  {
@@ -12511,6 +12767,7 @@
12511
12767
  ],
12512
12768
  "dont": [
12513
12769
  {
12770
+ "title": "A visible label, not a placeholder",
12514
12771
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
12515
12772
  "example": [
12516
12773
  {
@@ -12523,6 +12780,7 @@
12523
12780
  ]
12524
12781
  },
12525
12782
  {
12783
+ "title": "Use the right input type",
12526
12784
  "note": "A plain text type misses the email keyboard and validation the browser could give.",
12527
12785
  "example": [
12528
12786
  {
@@ -12537,6 +12795,7 @@
12537
12795
  ]
12538
12796
  },
12539
12797
  {
12798
+ "title": "Say exactly what is wrong",
12540
12799
  "note": "Invalid leaves them guessing what is actually wrong.",
12541
12800
  "example": [
12542
12801
  {
@@ -12552,7 +12811,7 @@
12552
12811
  }
12553
12812
  ],
12554
12813
  "a11y": [
12555
- "The control carries aria-invalid, and aria-describedby points at the error or the hint.",
12814
+ "The control carries aria-invalid, and aria-describedby points at the error or the helper text.",
12556
12815
  "The clear button is named Clear and is hidden while the field is empty.",
12557
12816
  "The password reveal button is named Show password or Hide password, and the checklist sits in a polite live region.",
12558
12817
  "The right-icon button is named by rightIconLabel, or by the icon name when none is given.",
@@ -12923,7 +13182,7 @@
12923
13182
  "source": "@webority/ui-react",
12924
13183
  "usage": {
12925
13184
  "when": [
12926
- "Naming a key in help text, a hint or an empty state.",
13185
+ "Naming a key in help text, in a field's helper text or in an empty state.",
12927
13186
  "A legend or a guide that lists keys."
12928
13187
  ],
12929
13188
  "whenNot": [
@@ -13166,6 +13425,7 @@
13166
13425
  ],
13167
13426
  "do": [
13168
13427
  {
13428
+ "title": "Name the measure and comparison",
13169
13429
  "note": "Name what is measured and say what the delta compares against. “vs last week” is what makes 12 meaningful.",
13170
13430
  "example": [
13171
13431
  {
@@ -13182,6 +13442,7 @@
13182
13442
  ],
13183
13443
  "dont": [
13184
13444
  {
13445
+ "title": "Name the measure and comparison",
13185
13446
  "note": "“Count” of what? “+4” since when? The reader cannot act on either without going to look somewhere else.",
13186
13447
  "example": [
13187
13448
  {
@@ -13659,6 +13920,7 @@
13659
13920
  ],
13660
13921
  "do": [
13661
13922
  {
13923
+ "title": "Name the destination",
13662
13924
  "note": "One clear animation and a descriptive label. The link reads as a link and says where it goes.",
13663
13925
  "example": [
13664
13926
  {
@@ -13674,6 +13936,7 @@
13674
13936
  ],
13675
13937
  "dont": [
13676
13938
  {
13939
+ "title": "Name the destination",
13677
13940
  "note": "“Click here” tells the reader nothing. Name the destination so the link explains where it goes.",
13678
13941
  "example": [
13679
13942
  {
@@ -13722,10 +13985,11 @@
13722
13985
  "type": "enum",
13723
13986
  "enum": [
13724
13987
  "app",
13988
+ "page",
13725
13989
  "web"
13726
13990
  ],
13727
13991
  "required": false,
13728
- "description": "App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab.",
13992
+ "description": "App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab. Page also opens a relative address and a web address on this site, in the same tab, and asks resolveLink for every address; an absolute web address it returns opens in a new tab when it leaves this site.",
13729
13993
  "default": "web"
13730
13994
  },
13731
13995
  {
@@ -13897,7 +14161,7 @@
13897
14161
  "name": "placeholder",
13898
14162
  "type": "string",
13899
14163
  "required": false,
13900
- "description": "Hint text shown while the box is empty."
14164
+ "description": "Placeholder text shown while the box is empty."
13901
14165
  },
13902
14166
  {
13903
14167
  "name": "readOnly",
@@ -13961,7 +14225,7 @@
13961
14225
  "dont": [],
13962
14226
  "a11y": [
13963
14227
  "The label points at the text box, whose id is the element id plus -text, so the label names it.",
13964
- "The hint or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.",
14228
+ "The helper text or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.",
13965
14229
  "In the list, Up and Down choose, Enter or Tab mention and Escape closes it. Backspace just after a mention removes it whole."
13966
14230
  ]
13967
14231
  }
@@ -14085,6 +14349,7 @@
14085
14349
  ],
14086
14350
  "do": [
14087
14351
  {
14352
+ "title": "Use meters for measurements, not tasks",
14088
14353
  "note": "Real thresholds that mean something operationally, so the auto-tone is trustworthy.",
14089
14354
  "example": [
14090
14355
  {
@@ -14103,6 +14368,7 @@
14103
14368
  ],
14104
14369
  "dont": [
14105
14370
  {
14371
+ "title": "Use meters for measurements, not tasks",
14106
14372
  "note": "A task advancing toward completion is not a measurement: that is AppProgress, not AppMeter.",
14107
14373
  "example": [
14108
14374
  {
@@ -14398,6 +14664,7 @@
14398
14664
  ],
14399
14665
  "do": [
14400
14666
  {
14667
+ "title": "One trigger, one dialog",
14401
14668
  "note": "A clear trigger opens a single-purpose dialog; open/onClose stay controlled so Escape and the backdrop always work.",
14402
14669
  "example": [
14403
14670
  {
@@ -14407,6 +14674,7 @@
14407
14674
  ]
14408
14675
  },
14409
14676
  {
14677
+ "title": "One primary action in the footer",
14410
14678
  "note": "A footer that pairs a secondary Cancel with one primary confirm: the eye knows the main action.",
14411
14679
  "example": [
14412
14680
  {
@@ -14433,6 +14701,7 @@
14433
14701
  ],
14434
14702
  "dont": [
14435
14703
  {
14704
+ "title": "One trigger, one dialog",
14436
14705
  "note": "A modal with no onClose traps the user: the backdrop and Escape have nothing to call.",
14437
14706
  "example": [
14438
14707
  {
@@ -14445,6 +14714,7 @@
14445
14714
  ]
14446
14715
  },
14447
14716
  {
14717
+ "title": "One primary action in the footer",
14448
14718
  "note": "Three competing primaries in the footer leave the user unsure which one commits.",
14449
14719
  "example": [
14450
14720
  {
@@ -14723,6 +14993,7 @@
14723
14993
  ],
14724
14994
  "do": [
14725
14995
  {
14996
+ "title": "Several picks as chips, not checkboxes",
14726
14997
  "note": "Many related values in one compact control; the current picks read back as chips.",
14727
14998
  "example": [
14728
14999
  {
@@ -14775,6 +15046,7 @@
14775
15046
  ]
14776
15047
  },
14777
15048
  {
15049
+ "title": "Make long lists searchable",
14778
15050
  "note": "A searchable checklist keeps a long list usable: the user filters instead of scrolling.",
14779
15051
  "example": [
14780
15052
  {
@@ -14821,10 +15093,59 @@
14821
15093
  }
14822
15094
  }
14823
15095
  ]
15096
+ },
15097
+ {
15098
+ "title": "Single values use single-select",
15099
+ "note": "One value can apply here, so a single-select dropdown says so; a multiselect invites over-picking.",
15100
+ "example": [
15101
+ {
15102
+ "component": "AppSelect",
15103
+ "props": {
15104
+ "label": "Primary standard",
15105
+ "name": "standard",
15106
+ "value": "iec-62305",
15107
+ "options": [
15108
+ {
15109
+ "value": "risk-assessment",
15110
+ "label": "Risk assessment"
15111
+ },
15112
+ {
15113
+ "value": "lightning-protection",
15114
+ "label": "Lightning protection"
15115
+ },
15116
+ {
15117
+ "value": "surge-protection",
15118
+ "label": "Surge protection"
15119
+ },
15120
+ {
15121
+ "value": "earthing",
15122
+ "label": "Earthing"
15123
+ },
15124
+ {
15125
+ "value": "bonding",
15126
+ "label": "Bonding"
15127
+ },
15128
+ {
15129
+ "value": "site-survey",
15130
+ "label": "Site survey"
15131
+ },
15132
+ {
15133
+ "value": "iec-62305",
15134
+ "label": "IEC 62305"
15135
+ },
15136
+ {
15137
+ "value": "reporting",
15138
+ "label": "Reporting"
15139
+ }
15140
+ ]
15141
+ }
15142
+ }
15143
+ ]
14824
15144
  }
14825
15145
  ],
14826
15146
  "dont": [
14827
15147
  {
15148
+ "title": "Several picks as chips, not checkboxes",
14828
15149
  "note": "A wall of checkboxes for the same multi-pick is slower to scan and hides the total selection.",
14829
15150
  "example": [
14830
15151
  {
@@ -14873,6 +15194,57 @@
14873
15194
  ]
14874
15195
  },
14875
15196
  {
15197
+ "title": "Make long lists searchable",
15198
+ "note": "With search off, the user scrolls the whole list to find one option, so a long list needs a search box.",
15199
+ "example": [
15200
+ {
15201
+ "component": "AppMultiSelect",
15202
+ "props": {
15203
+ "label": "Tags",
15204
+ "name": "tags-unsearchable",
15205
+ "searchable": false,
15206
+ "values": [],
15207
+ "placeholder": "Select tags…",
15208
+ "options": [
15209
+ {
15210
+ "value": "risk-assessment",
15211
+ "label": "Risk assessment"
15212
+ },
15213
+ {
15214
+ "value": "lightning-protection",
15215
+ "label": "Lightning protection"
15216
+ },
15217
+ {
15218
+ "value": "surge-protection",
15219
+ "label": "Surge protection"
15220
+ },
15221
+ {
15222
+ "value": "earthing",
15223
+ "label": "Earthing"
15224
+ },
15225
+ {
15226
+ "value": "bonding",
15227
+ "label": "Bonding"
15228
+ },
15229
+ {
15230
+ "value": "site-survey",
15231
+ "label": "Site survey"
15232
+ },
15233
+ {
15234
+ "value": "iec-62305",
15235
+ "label": "IEC 62305"
15236
+ },
15237
+ {
15238
+ "value": "reporting",
15239
+ "label": "Reporting"
15240
+ }
15241
+ ]
15242
+ }
15243
+ }
15244
+ ]
15245
+ },
15246
+ {
15247
+ "title": "Single values use single-select",
14876
15248
  "note": "Only one value can ever apply here: a single-select dropdown says so; a multiselect invites over-picking.",
14877
15249
  "example": [
14878
15250
  {
@@ -14923,7 +15295,7 @@
14923
15295
  }
14924
15296
  ],
14925
15297
  "a11y": [
14926
- "The control takes its accessible name from a text label, is described by its hint or its error, and is marked invalid while it has an error.",
15298
+ "The control takes its accessible name from a text label, is described by its helper text or its error, and is marked invalid while it has an error.",
14927
15299
  "A node label is read as its text: the option, the chip and the chip's remove button are named from it.",
14928
15300
  "Each chosen value is a removable chip, so the selection is readable without opening the menu."
14929
15301
  ]
@@ -15358,7 +15730,7 @@
15358
15730
  "name": "helperText",
15359
15731
  "type": "string",
15360
15732
  "required": false,
15361
- "description": "Help text under the field, linked to the input for screen readers."
15733
+ "description": "Helper text under the field, linked to the input for screen readers."
15362
15734
  },
15363
15735
  {
15364
15736
  "name": "id",
@@ -15693,7 +16065,7 @@
15693
16065
  "name": "helperText",
15694
16066
  "type": "string",
15695
16067
  "required": false,
15696
- "description": "Help text under the code. It is hidden while an error is shown."
16068
+ "description": "Helper text under the code. It is hidden while an error is shown."
15697
16069
  },
15698
16070
  {
15699
16071
  "name": "id",
@@ -15809,6 +16181,7 @@
15809
16181
  ],
15810
16182
  "do": [
15811
16183
  {
16184
+ "title": "One field for the whole code",
15812
16185
  "note": "One labelled field, six boxes drawn underneath. Autofill, paste and a screen reader all work.",
15813
16186
  "example": [
15814
16187
  {
@@ -15822,6 +16195,7 @@
15822
16195
  ],
15823
16196
  "dont": [
15824
16197
  {
16198
+ "title": "One field for the whole code",
15825
16199
  "note": "Six inputs: the OS drops the whole SMS code into box one, and a screen reader announces six unlabelled boxes.",
15826
16200
  "example": [
15827
16201
  {
@@ -16092,6 +16466,7 @@
16092
16466
  ],
16093
16467
  "do": [
16094
16468
  {
16469
+ "title": "One primary page action",
16095
16470
  "note": "One clear title, a context subtitle, and the single page-level action on the right.",
16096
16471
  "example": [
16097
16472
  {
@@ -16111,6 +16486,7 @@
16111
16486
  ]
16112
16487
  },
16113
16488
  {
16489
+ "title": "Keep the subtitle short and useful",
16114
16490
  "note": "The subtitle carries useful state: what this is and when it changed.",
16115
16491
  "example": [
16116
16492
  {
@@ -16125,6 +16501,7 @@
16125
16501
  ],
16126
16502
  "dont": [
16127
16503
  {
16504
+ "title": "One primary page action",
16128
16505
  "note": "A pile of equal-weight buttons hides the primary action. Keep secondary ones in a menu.",
16129
16506
  "example": [
16130
16507
  {
@@ -16172,6 +16549,7 @@
16172
16549
  ]
16173
16550
  },
16174
16551
  {
16552
+ "title": "Keep the subtitle short and useful",
16175
16553
  "note": "A sentence-long subtitle reads as body copy, not a heading. Keep it to a phrase.",
16176
16554
  "example": [
16177
16555
  {
@@ -16251,7 +16629,7 @@
16251
16629
  "name": "helperText",
16252
16630
  "type": "string",
16253
16631
  "required": false,
16254
- "description": "Help text under the field. The error replaces it while one is shown."
16632
+ "description": "Helper text under the field. The error replaces it while one is shown."
16255
16633
  },
16256
16634
  {
16257
16635
  "name": "id",
@@ -16303,7 +16681,7 @@
16303
16681
  "name": "placeholder",
16304
16682
  "type": "string",
16305
16683
  "required": false,
16306
- "description": "Hint text in the empty field. Left unset, the control hints with the country's example number."
16684
+ "description": "Placeholder text in the empty field. Left unset, the control shows the country's example number."
16307
16685
  },
16308
16686
  {
16309
16687
  "name": "readOnly",
@@ -16381,6 +16759,7 @@
16381
16759
  ],
16382
16760
  "do": [
16383
16761
  {
16762
+ "title": "Default the country",
16384
16763
  "note": "Default the country to the one most users will pick: fewer taps for the common case.",
16385
16764
  "example": [
16386
16765
  {
@@ -16394,6 +16773,7 @@
16394
16773
  ]
16395
16774
  },
16396
16775
  {
16776
+ "title": "Show the error under the field",
16397
16777
  "note": "Surface validation inline with error, right under the field the user must fix.",
16398
16778
  "example": [
16399
16779
  {
@@ -16410,6 +16790,7 @@
16410
16790
  ],
16411
16791
  "dont": [
16412
16792
  {
16793
+ "title": "Default the country",
16413
16794
  "note": "No label and no sensible default country: the user guesses what to enter and where.",
16414
16795
  "example": [
16415
16796
  {
@@ -16422,6 +16803,7 @@
16422
16803
  ]
16423
16804
  },
16424
16805
  {
16806
+ "title": "Show the error under the field",
16425
16807
  "note": "Required with no error feedback: the user submits and is bounced with no clue why.",
16426
16808
  "example": [
16427
16809
  {
@@ -16437,7 +16819,7 @@
16437
16819
  ],
16438
16820
  "a11y": [
16439
16821
  "The label is a real label tied to the field by id, and a text label is also passed to the phone control as its accessible name.",
16440
- "An error or hint is linked to the field with aria-describedby, and the hint gives way to the error while one shows.",
16822
+ "An error or helper text is linked to the field with aria-describedby, and the helper text gives way to the error while one shows.",
16441
16823
  "An error sets aria-invalid on the control, and required adds the required mark and marks the control required."
16442
16824
  ]
16443
16825
  }
@@ -16548,6 +16930,7 @@
16548
16930
  ],
16549
16931
  "do": [
16550
16932
  {
16933
+ "title": "Keep the panel short",
16551
16934
  "note": "A short, scannable panel: a few lines the user can read without scrolling.",
16552
16935
  "example": [
16553
16936
  {
@@ -16583,6 +16966,7 @@
16583
16966
  ],
16584
16967
  "dont": [
16585
16968
  {
16969
+ "title": "Keep the panel short",
16586
16970
  "note": "A multi-field form crammed into a popover has nowhere to show validation and no backdrop to hold focus. Use AppModal instead.",
16587
16971
  "example": [
16588
16972
  {
@@ -16757,6 +17141,7 @@
16757
17141
  ],
16758
17142
  "do": [
16759
17143
  {
17144
+ "title": "Unit, audience and every feature listed",
16760
17145
  "note": "A unit so the price is unambiguous, a tagline saying who it is for, excluded features kept in the list, and a CTA naming the tier.",
16761
17146
  "example": [
16762
17147
  {
@@ -16789,6 +17174,7 @@
16789
17174
  ],
16790
17175
  "dont": [
16791
17176
  {
17177
+ "title": "Unit, audience and every feature listed",
16792
17178
  "note": "“1499”: of what, per what? No tagline, the excluded feature dropped so rows no longer align, and “Click here” tells the reader nothing about what they are committing to.",
16793
17179
  "example": [
16794
17180
  {
@@ -16931,6 +17317,7 @@
16931
17317
  ],
16932
17318
  "do": [
16933
17319
  {
17320
+ "title": "Real amounts, not fake progress",
16934
17321
  "note": "A real value with a label that states the actual amount, not just a bare percentage.",
16935
17322
  "example": [
16936
17323
  {
@@ -16948,6 +17335,7 @@
16948
17335
  ],
16949
17336
  "dont": [
16950
17337
  {
17338
+ "title": "Real amounts, not fake progress",
16951
17339
  "note": "A progress bar pinned at 100% (or any fixed value) to fake a spinner. That is AppSpinner's job.",
16952
17340
  "example": [
16953
17341
  {
@@ -17022,6 +17410,7 @@
17022
17410
  ],
17023
17411
  "do": [
17024
17412
  {
17413
+ "title": "Clear title and room to scan",
17025
17414
  "note": "Enough room around it, and a title that says what scanning does.",
17026
17415
  "example": [
17027
17416
  {
@@ -17037,6 +17426,7 @@
17037
17426
  ],
17038
17427
  "dont": [
17039
17428
  {
17429
+ "title": "Clear title and room to scan",
17040
17430
  "note": "A long value squeezed into a small box. The squares are too small to scan, and part of the code is cut off.",
17041
17431
  "example": [
17042
17432
  {
@@ -17090,7 +17480,7 @@
17090
17480
  "name": "error",
17091
17481
  "type": "string",
17092
17482
  "required": false,
17093
- "description": "Error message, rendered below the control. Replaces the hint."
17483
+ "description": "Error message, rendered below the control. Replaces the helper text."
17094
17484
  },
17095
17485
  {
17096
17486
  "name": "help",
@@ -17191,6 +17581,7 @@
17191
17581
  ],
17192
17582
  "do": [
17193
17583
  {
17584
+ "title": "Two to five options, all visible",
17194
17585
  "note": "2 to 5 exclusive options, all on screen. The user compares every choice without opening anything.",
17195
17586
  "example": [
17196
17587
  {
@@ -17218,6 +17609,7 @@
17218
17609
  ]
17219
17610
  },
17220
17611
  {
17612
+ "title": "Radios for one answer, not checkboxes",
17221
17613
  "note": "Radios enforce a single answer. Exactly one can ever be selected.",
17222
17614
  "example": [
17223
17615
  {
@@ -17247,6 +17639,7 @@
17247
17639
  ],
17248
17640
  "dont": [
17249
17641
  {
17642
+ "title": "Two to five options, all visible",
17250
17643
  "note": "Past about five options a radio list sprawls and is hard to scan. A dropdown holds it in one line.",
17251
17644
  "example": [
17252
17645
  {
@@ -17309,6 +17702,7 @@
17309
17702
  ]
17310
17703
  },
17311
17704
  {
17705
+ "title": "Radios for one answer, not checkboxes",
17312
17706
  "note": "Checkboxes let the user tick several, the wrong control for a single exclusive choice.",
17313
17707
  "example": [
17314
17708
  {
@@ -17370,7 +17764,7 @@
17370
17764
  "name": "error",
17371
17765
  "type": "string",
17372
17766
  "required": false,
17373
- "description": "Error message below the group. Replaces the hint."
17767
+ "description": "Error message below the group. Replaces the helper text."
17374
17768
  },
17375
17769
  {
17376
17770
  "name": "fieldClassName",
@@ -17533,7 +17927,7 @@
17533
17927
  "when": [
17534
17928
  "Two to five exclusive options, and the reader should see all of them before choosing.",
17535
17929
  "The choice is a field in a form that sits in the same grid as the other fields.",
17536
- "You need a hint, an error or a required mark on the group as a whole."
17930
+ "You need helper text, an error or a required mark on the group as a whole."
17537
17931
  ],
17538
17932
  "whenNot": [
17539
17933
  {
@@ -17558,7 +17952,7 @@
17558
17952
  "a11y": [
17559
17953
  "The group is a radiogroup named by its label, so a screen reader announces the label as the group's name.",
17560
17954
  "Each option's label is bound to its radio through htmlFor, so a click on the text selects it.",
17561
- "A hint or an error is linked to the group through aria-describedby."
17955
+ "Helper text or an error is linked to the group through aria-describedby."
17562
17956
  ]
17563
17957
  }
17564
17958
  },
@@ -17996,6 +18390,7 @@
17996
18390
  ],
17997
18391
  "do": [
17998
18392
  {
18393
+ "title": "Name the actions and number rows",
17999
18394
  "note": "Specific add and remove labels (\"Add contact\"), a minimum so the form cannot reach an unsubmittable state, and numbered rows validation can point at.",
18000
18395
  "example": [
18001
18396
  {
@@ -18017,6 +18412,7 @@
18017
18412
  ],
18018
18413
  "dont": [
18019
18414
  {
18415
+ "title": "Name the actions and number rows",
18020
18416
  "note": "A generic \"Add another\", no remove control at all, and no numbering, so \"Row 2 email is invalid\" has nothing to point at.",
18021
18417
  "example": [
18022
18418
  {
@@ -18068,6 +18464,7 @@
18068
18464
  ],
18069
18465
  "do": [
18070
18466
  {
18467
+ "title": "One mark beside the label",
18071
18468
  "note": "One asterisk flush against its label, using the shared mark.",
18072
18469
  "example": [
18073
18470
  {
@@ -18085,6 +18482,7 @@
18085
18482
  ]
18086
18483
  },
18087
18484
  {
18485
+ "title": "Let the field own the mark",
18088
18486
  "note": "Let the field own the mark via required.",
18089
18487
  "example": [
18090
18488
  {
@@ -18099,6 +18497,7 @@
18099
18497
  ],
18100
18498
  "dont": [
18101
18499
  {
18500
+ "title": "One mark beside the label",
18102
18501
  "note": "A hand-rolled star drifts in colour and spacing from every library field.",
18103
18502
  "example": [
18104
18503
  {
@@ -18120,6 +18519,7 @@
18120
18519
  ]
18121
18520
  },
18122
18521
  {
18522
+ "title": "Let the field own the mark",
18123
18523
  "note": "A star typed into the label of a required field doubles the mark: the field already draws one.",
18124
18524
  "example": [
18125
18525
  {
@@ -18359,6 +18759,7 @@
18359
18759
  ],
18360
18760
  "do": [
18361
18761
  {
18762
+ "title": "Link text that names the resource",
18362
18763
  "note": "The title names the resource, the text says the format and what to do with it, and the icon matches the action (a download).",
18363
18764
  "example": [
18364
18765
  {
@@ -18375,6 +18776,7 @@
18375
18776
  ],
18376
18777
  "dont": [
18377
18778
  {
18779
+ "title": "Link text that names the resource",
18378
18780
  "note": "\"Click here\" twice tells the reader nothing about the destination, and it is what a screen reader announces as the link name.",
18379
18781
  "example": [
18380
18782
  {
@@ -18644,6 +19046,7 @@
18644
19046
  ],
18645
19047
  "do": [
18646
19048
  {
19049
+ "title": "Keep a visible label",
18647
19050
  "note": "A visible label stays put while the user types and is read by screen readers.",
18648
19051
  "example": [
18649
19052
  {
@@ -18659,6 +19062,7 @@
18659
19062
  ],
18660
19063
  "dont": [
18661
19064
  {
19065
+ "title": "Keep a visible label",
18662
19066
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
18663
19067
  "example": [
18664
19068
  {
@@ -18894,6 +19298,7 @@
18894
19298
  ],
18895
19299
  "do": [
18896
19300
  {
19301
+ "title": "Plain sentence, not the raw error",
18897
19302
  "note": "A plain sentence and a way forward. The error details go to the logs.",
18898
19303
  "example": [
18899
19304
  {
@@ -18908,11 +19313,15 @@
18908
19313
  ],
18909
19314
  "dont": [
18910
19315
  {
19316
+ "title": "Plain sentence, not the raw error",
18911
19317
  "note": "The raw error tells the person nothing they can act on, and can leak internal details.",
18912
19318
  "example": [
18913
19319
  {
18914
- "component": "p",
18915
- "children": "TypeError: Cannot read properties of undefined (reading 'map')"
19320
+ "component": "AppCodeBlock",
19321
+ "props": {
19322
+ "code": "TypeError: Cannot read properties of undefined (reading 'map')",
19323
+ "language": "text"
19324
+ }
18916
19325
  }
18917
19326
  ]
18918
19327
  }
@@ -18973,6 +19382,7 @@
18973
19382
  ],
18974
19383
  "do": [
18975
19384
  {
19385
+ "title": "Wait for the save before flipping",
18976
19386
  "note": "The row keeps its saved state. The switch shows the next state only after the save resolves.",
18977
19387
  "example": [
18978
19388
  {
@@ -18990,6 +19400,7 @@
18990
19400
  ],
18991
19401
  "dont": [
18992
19402
  {
19403
+ "title": "Wait for the save before flipping",
18993
19404
  "note": "A page-level switch in a row has no busy state, so a second flip can race the first save.",
18994
19405
  "example": [
18995
19406
  {
@@ -19057,7 +19468,7 @@
19057
19468
  "name": "id",
19058
19469
  "type": "string",
19059
19470
  "required": false,
19060
- "description": "The id of the radio group; the label, hint and error ids derive from it. Generated when omitted."
19471
+ "description": "The id of the radio group; the label, helper text and error ids derive from it. Generated when omitted."
19061
19472
  },
19062
19473
  {
19063
19474
  "name": "label",
@@ -19133,7 +19544,7 @@
19133
19544
  "a11y": [
19134
19545
  "The scale is a radio group named by its label, or named Score when there is no label.",
19135
19546
  "Each value is a native radio sharing one name, so the arrow keys move and choose and the group posts with its form.",
19136
- "A hint or an error is linked through aria-describedby, and an error also sets aria-invalid."
19547
+ "Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid."
19137
19548
  ]
19138
19549
  }
19139
19550
  },
@@ -19250,7 +19661,7 @@
19250
19661
  "name": "placeholder",
19251
19662
  "type": "string",
19252
19663
  "required": false,
19253
- "description": "Hint text shown while the field is empty.",
19664
+ "description": "Placeholder text shown while the field is empty.",
19254
19665
  "default": "Search…"
19255
19666
  },
19256
19667
  {
@@ -19303,6 +19714,7 @@
19303
19714
  ],
19304
19715
  "do": [
19305
19716
  {
19717
+ "title": "Name what the search covers",
19306
19718
  "note": "A placeholder that names what is being searched sets the right expectation.",
19307
19719
  "example": [
19308
19720
  {
@@ -19319,6 +19731,7 @@
19319
19731
  ]
19320
19732
  },
19321
19733
  {
19734
+ "title": "Clear to reset the list",
19322
19735
  "note": "With a value present, the clear (×) lets the user reset to the full list in one click.",
19323
19736
  "example": [
19324
19737
  {
@@ -19337,6 +19750,7 @@
19337
19750
  ],
19338
19751
  "dont": [
19339
19752
  {
19753
+ "title": "Name what the search covers",
19340
19754
  "note": "A vague 'Type here' doesn't say what the box searches.",
19341
19755
  "example": [
19342
19756
  {
@@ -19353,6 +19767,7 @@
19353
19767
  ]
19354
19768
  },
19355
19769
  {
19770
+ "title": "Clear to reset the list",
19356
19771
  "note": "A raw input with a magnifier drawn on top has no clear control and drifts from the theme.",
19357
19772
  "example": [
19358
19773
  {
@@ -20617,6 +21032,7 @@
20617
21032
  ],
20618
21033
  "do": [
20619
21034
  {
21035
+ "title": "Short, parallel labels",
20620
21036
  "note": "Short, parallel labels of similar length, so the pills are balanced and the row reads as one control.",
20621
21037
  "example": [
20622
21038
  {
@@ -20648,6 +21064,7 @@
20648
21064
  ],
20649
21065
  "dont": [
20650
21066
  {
21067
+ "title": "Short, parallel labels",
20651
21068
  "note": "Wildly uneven labels make one pill swamp the other and push the control past its container. If a label needs a sentence, the choice needs radios.",
20652
21069
  "example": [
20653
21070
  {
@@ -20764,7 +21181,7 @@
20764
21181
  "name": "helperText",
20765
21182
  "type": "string",
20766
21183
  "required": false,
20767
- "description": "Help text shown under the field when there is no error."
21184
+ "description": "Helper text shown under the field when there is no error."
20768
21185
  },
20769
21186
  {
20770
21187
  "name": "icon",
@@ -20948,6 +21365,7 @@
20948
21365
  ],
20949
21366
  "do": [
20950
21367
  {
21368
+ "title": "Searchable past ten options",
20951
21369
  "note": "Past ~10 options, searchable turns a long scroll into a quick type-to-find.",
20952
21370
  "example": [
20953
21371
  {
@@ -20981,6 +21399,7 @@
20981
21399
  ]
20982
21400
  },
20983
21401
  {
21402
+ "title": "A label and a placeholder",
20984
21403
  "note": "A label names the field and the placeholder tells the user what to pick.",
20985
21404
  "example": [
20986
21405
  {
@@ -21012,6 +21431,7 @@
21012
21431
  ]
21013
21432
  },
21014
21433
  {
21434
+ "title": "A specific error",
21015
21435
  "note": "A specific error says which choice is missing and why it matters.",
21016
21436
  "example": [
21017
21437
  {
@@ -21046,6 +21466,7 @@
21046
21466
  ],
21047
21467
  "dont": [
21048
21468
  {
21469
+ "title": "Searchable past ten options",
21049
21470
  "note": "A long, unsearchable list forces the user to scroll and scan every time.",
21050
21471
  "example": [
21051
21472
  {
@@ -21077,6 +21498,7 @@
21077
21498
  ]
21078
21499
  },
21079
21500
  {
21501
+ "title": "A label and a placeholder",
21080
21502
  "note": "No label and a bare 'Select' leave the field's purpose unclear.",
21081
21503
  "example": [
21082
21504
  {
@@ -21107,6 +21529,7 @@
21107
21529
  ]
21108
21530
  },
21109
21531
  {
21532
+ "title": "A specific error",
21110
21533
  "note": "'Required' just repeats the asterisk without helping.",
21111
21534
  "example": [
21112
21535
  {
@@ -21141,7 +21564,7 @@
21141
21564
  ],
21142
21565
  "a11y": [
21143
21566
  "The visible label is the control's accessible name; a select with no visible label takes aria-label or aria-labelledby from the caller.",
21144
- "An error sets aria-invalid on the control and is linked by aria-describedby, as is the hint when there is no error.",
21567
+ "An error sets aria-invalid on the control and is linked by aria-describedby, as is the helper text when there is no error.",
21145
21568
  "required and disabled are passed to the control, and required also draws a required mark in the label."
21146
21569
  ]
21147
21570
  }
@@ -22304,6 +22727,7 @@
22304
22727
  ],
22305
22728
  "do": [
22306
22729
  {
22730
+ "title": "Echo the layout that is loading",
22307
22731
  "note": "A few bars that echo the real layout, a heading over two body lines. The eye reads it as \"content, loading\".",
22308
22732
  "example": [
22309
22733
  {
@@ -22335,6 +22759,7 @@
22335
22759
  ]
22336
22760
  },
22337
22761
  {
22762
+ "title": "Match table columns while loading",
22338
22763
  "note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
22339
22764
  "example": [
22340
22765
  {
@@ -22359,6 +22784,7 @@
22359
22784
  ],
22360
22785
  "dont": [
22361
22786
  {
22787
+ "title": "Echo the layout that is loading",
22362
22788
  "note": "One giant block tells the user nothing about what's coming and reflows hard when the real, smaller content lands.",
22363
22789
  "example": [
22364
22790
  {
@@ -22371,6 +22797,7 @@
22371
22797
  ]
22372
22798
  },
22373
22799
  {
22800
+ "title": "Match table columns while loading",
22374
22801
  "note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
22375
22802
  "example": [
22376
22803
  {
@@ -22502,6 +22929,7 @@
22502
22929
  ],
22503
22930
  "do": [
22504
22931
  {
22932
+ "title": "Match skeleton columns to the table",
22505
22933
  "note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
22506
22934
  "example": [
22507
22935
  {
@@ -22526,6 +22954,7 @@
22526
22954
  ],
22527
22955
  "dont": [
22528
22956
  {
22957
+ "title": "Match skeleton columns to the table",
22529
22958
  "note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
22530
22959
  "example": [
22531
22960
  {
@@ -22795,7 +23224,7 @@
22795
23224
  "dont": [],
22796
23225
  "a11y": [
22797
23226
  "The visible label is tied to the control by id, and the control takes its accessible name from a text label or from ariaLabel.",
22798
- "aria-describedby points at the error text, or at the hint when there is no error, and an error also sets aria-invalid.",
23227
+ "aria-describedby points at the error text, or at the helper text when there is no error, and an error also sets aria-invalid.",
22799
23228
  "A required slider shows a required mark beside its label and carries the required attribute."
22800
23229
  ]
22801
23230
  }
@@ -23098,6 +23527,7 @@
23098
23527
  ],
23099
23528
  "do": [
23100
23529
  {
23530
+ "title": "Name what is loading",
23101
23531
  "note": "A label that says what is happening, sized to sit inline with the thing it belongs to.",
23102
23532
  "example": [
23103
23533
  {
@@ -23112,6 +23542,7 @@
23112
23542
  ],
23113
23543
  "dont": [
23114
23544
  {
23545
+ "title": "Name what is loading",
23115
23546
  "note": "A lone spinner filling a content area: no indication of what is loading, no idea how long, and the layout will jump when the real content arrives.",
23116
23547
  "example": [
23117
23548
  {
@@ -23734,6 +24165,7 @@
23734
24165
  ],
23735
24166
  "do": [
23736
24167
  {
24168
+ "title": "Mark the open list item",
23737
24169
  "note": "One item is open and marked in the list, so it is clear what the pane shows.",
23738
24170
  "example": [
23739
24171
  {
@@ -23770,6 +24202,7 @@
23770
24202
  ]
23771
24203
  },
23772
24204
  {
24205
+ "title": "One line of context per item",
23773
24206
  "note": "Items carry a title and one line of context; the detail waits in the pane.",
23774
24207
  "example": [
23775
24208
  {
@@ -23809,6 +24242,7 @@
23809
24242
  ],
23810
24243
  "dont": [
23811
24244
  {
24245
+ "title": "Mark the open list item",
23812
24246
  "note": "A pane with content but no open item: nothing in the list says which item it belongs to.",
23813
24247
  "example": [
23814
24248
  {
@@ -23845,6 +24279,7 @@
23845
24279
  ]
23846
24280
  },
23847
24281
  {
24282
+ "title": "One line of context per item",
23848
24283
  "note": "Packing the detail into the list makes every item tall and the queue slow to scan.",
23849
24284
  "example": [
23850
24285
  {
@@ -23960,6 +24395,7 @@
23960
24395
  ],
23961
24396
  "do": [
23962
24397
  {
24398
+ "title": "One consistent tone per status",
23963
24399
  "note": "Each status maps to a consistent, meaningful tone: the colour reinforces the word.",
23964
24400
  "example": [
23965
24401
  {
@@ -23986,6 +24422,7 @@
23986
24422
  ]
23987
24423
  },
23988
24424
  {
24425
+ "title": "Pill holds one or two words",
23989
24426
  "note": "A single, concise status word, instantly scannable.",
23990
24427
  "example": [
23991
24428
  {
@@ -24000,6 +24437,7 @@
24000
24437
  ],
24001
24438
  "dont": [
24002
24439
  {
24440
+ "title": "One consistent tone per status",
24003
24441
  "note": "One tone for every status throws away the signal: the colour tells the user nothing.",
24004
24442
  "example": [
24005
24443
  {
@@ -24026,6 +24464,7 @@
24026
24464
  ]
24027
24465
  },
24028
24466
  {
24467
+ "title": "Pill holds one or two words",
24029
24468
  "note": "A pill is not a place for a sentence: keep the status to a word or two and explain elsewhere.",
24030
24469
  "example": [
24031
24470
  {
@@ -24225,6 +24664,7 @@
24225
24664
  ],
24226
24665
  "do": [
24227
24666
  {
24667
+ "title": "Name each step by its action",
24228
24668
  "note": "Label each step with the action it performs, and mark exactly one step active. Three to five steps is the readable range.",
24229
24669
  "example": [
24230
24670
  {
@@ -24253,6 +24693,7 @@
24253
24693
  ],
24254
24694
  "dont": [
24255
24695
  {
24696
+ "title": "Name each step by its action",
24256
24697
  "note": "The label \"Step 2\" adds nothing: the circle already says 2. The label is the only place that can tell the user what the step is for.",
24257
24698
  "example": [
24258
24699
  {
@@ -24427,6 +24868,7 @@
24427
24868
  ],
24428
24869
  "do": [
24429
24870
  {
24871
+ "title": "Use a switch for instant settings",
24430
24872
  "note": "An on/off setting that applies right away. The switch reads as a live control.",
24431
24873
  "example": [
24432
24874
  {
@@ -24442,6 +24884,7 @@
24442
24884
  ]
24443
24885
  },
24444
24886
  {
24887
+ "title": "Caption every switch",
24445
24888
  "note": "Each switch is captioned, so the user knows exactly what it controls and its current state.",
24446
24889
  "example": [
24447
24890
  {
@@ -24462,6 +24905,7 @@
24462
24905
  ],
24463
24906
  "dont": [
24464
24907
  {
24908
+ "title": "Use a switch for instant settings",
24465
24909
  "note": "A checkbox reads as a form field to submit later, the wrong signal for an instant toggle.",
24466
24910
  "example": [
24467
24911
  {
@@ -24474,6 +24918,7 @@
24474
24918
  ]
24475
24919
  },
24476
24920
  {
24921
+ "title": "Caption every switch",
24477
24922
  "note": "A bare switch with no caption leaves the user guessing what it turns on.",
24478
24923
  "example": [
24479
24924
  {
@@ -24664,6 +25109,7 @@
24664
25109
  ],
24665
25110
  "do": [
24666
25111
  {
25112
+ "title": "Show the page and the total",
24667
25113
  "note": "The page buttons show the current page and how many there are, so the user always knows where they are in the list.",
24668
25114
  "example": [
24669
25115
  {
@@ -24677,6 +25123,7 @@
24677
25123
  ]
24678
25124
  },
24679
25125
  {
25126
+ "title": "Sit the pager under its table",
24680
25127
  "note": "The pager sits flush under the table it controls, so the two read as one visual unit.",
24681
25128
  "example": [
24682
25129
  {
@@ -24739,6 +25186,7 @@
24739
25186
  ],
24740
25187
  "dont": [
24741
25188
  {
25189
+ "title": "Show the page and the total",
24742
25190
  "note": "Bare prev/next buttons with no page readout hide how big the list is or where the user stands.",
24743
25191
  "example": [
24744
25192
  {
@@ -24768,6 +25216,7 @@
24768
25216
  ]
24769
25217
  },
24770
25218
  {
25219
+ "title": "Sit the pager under its table",
24771
25220
  "note": "A pager floating above its table breaks the expected footer placement and reads as disconnected.",
24772
25221
  "example": [
24773
25222
  {
@@ -24943,6 +25392,7 @@
24943
25392
  ],
24944
25393
  "do": [
24945
25394
  {
25395
+ "title": "Show bulk actions only when selected",
24946
25396
  "note": "Bulk actions appear only while rows are selected, with the count and a way out.",
24947
25397
  "example": [
24948
25398
  {
@@ -24963,6 +25413,7 @@
24963
25413
  ]
24964
25414
  },
24965
25415
  {
25416
+ "title": "Filters left, search and actions right",
24966
25417
  "note": "Filters narrow the rows on the left; search and actions sit on the right.",
24967
25418
  "example": [
24968
25419
  {
@@ -25026,6 +25477,7 @@
25026
25477
  ],
25027
25478
  "dont": [
25028
25479
  {
25480
+ "title": "Show bulk actions only when selected",
25029
25481
  "note": "A row of always-visible, disabled bulk buttons takes space and explains nothing until something is selected.",
25030
25482
  "example": [
25031
25483
  {
@@ -25057,6 +25509,7 @@
25057
25509
  ]
25058
25510
  },
25059
25511
  {
25512
+ "title": "Filters left, search and actions right",
25060
25513
  "note": "Search first and filters last, scattered with no shared strip: the eye has no fixed place to look.",
25061
25514
  "example": [
25062
25515
  {
@@ -25355,6 +25808,7 @@
25355
25808
  ],
25356
25809
  "do": [
25357
25810
  {
25811
+ "title": "Short labels for peer views",
25358
25812
  "note": "A few short, peer labels: the user sees every view at a glance.",
25359
25813
  "example": [
25360
25814
  {
@@ -25381,6 +25835,7 @@
25381
25835
  ]
25382
25836
  },
25383
25837
  {
25838
+ "title": "Tabs switch views, never steps",
25384
25839
  "note": "A count on a filter tab tells the user how much is behind it before they click.",
25385
25840
  "example": [
25386
25841
  {
@@ -25407,6 +25862,7 @@
25407
25862
  ],
25408
25863
  "dont": [
25409
25864
  {
25865
+ "title": "Short labels for peer views",
25410
25866
  "note": "Sentence-long labels break the scannable rhythm a tab strip depends on.",
25411
25867
  "example": [
25412
25868
  {
@@ -25433,6 +25889,7 @@
25433
25889
  ]
25434
25890
  },
25435
25891
  {
25892
+ "title": "Tabs switch views, never steps",
25436
25893
  "note": "Fitted pills read as a segmented control. Do not use them for sequential steps; that is a stepper.",
25437
25894
  "example": [
25438
25895
  {
@@ -25538,7 +25995,7 @@
25538
25995
  "name": "helperText",
25539
25996
  "type": "string",
25540
25997
  "required": false,
25541
- "description": "Help text under the field."
25998
+ "description": "Helper text under the field."
25542
25999
  },
25543
26000
  {
25544
26001
  "name": "id",
@@ -25654,6 +26111,7 @@
25654
26111
  ],
25655
26112
  "do": [
25656
26113
  {
26114
+ "title": "Name the keys in helper text",
25657
26115
  "note": "Helper text that names the commit keys (Enter and comma) tells the user how to add a tag without trial and error.",
25658
26116
  "example": [
25659
26117
  {
@@ -25670,6 +26128,26 @@
25670
26128
  ]
25671
26129
  },
25672
26130
  {
26131
+ "title": "Free text, not a fixed list",
26132
+ "note": "Use AppSelect or AppMultiSelect when the choices are a fixed set.",
26133
+ "example": [
26134
+ {
26135
+ "component": "AppMultiSelect",
26136
+ "props": {
26137
+ "label": "Categories",
26138
+ "name": "categories",
26139
+ "options": [
26140
+ {
26141
+ "value": "css",
26142
+ "label": "CSS"
26143
+ }
26144
+ ]
26145
+ }
26146
+ }
26147
+ ]
26148
+ },
26149
+ {
26150
+ "title": "Placeholder that names paste",
25673
26151
  "note": "A placeholder that mentions paste tells the user they can drop a whole list in at once.",
25674
26152
  "example": [
25675
26153
  {
@@ -25684,6 +26162,7 @@
25684
26162
  ],
25685
26163
  "dont": [
25686
26164
  {
26165
+ "title": "Name the keys in helper text",
25687
26166
  "note": "No helper text at all: a first-time user may not discover that Enter or comma commits a tag.",
25688
26167
  "example": [
25689
26168
  {
@@ -25699,6 +26178,7 @@
25699
26178
  ]
25700
26179
  },
25701
26180
  {
26181
+ "title": "Free text, not a fixed list",
25702
26182
  "note": "A fixed, known set of options belongs in AppSelect or AppMultiSelect: a tag input invites free text where a picker would be faster and less error-prone.",
25703
26183
  "example": [
25704
26184
  {
@@ -25718,6 +26198,19 @@
25718
26198
  }
25719
26199
  }
25720
26200
  ]
26201
+ },
26202
+ {
26203
+ "title": "Placeholder that names paste",
26204
+ "note": "A placeholder that only says what to type hides that a whole pasted list splits into tags.",
26205
+ "example": [
26206
+ {
26207
+ "component": "AppTagInput",
26208
+ "props": {
26209
+ "label": "Recipients",
26210
+ "placeholder": "Add a recipient"
26211
+ }
26212
+ }
26213
+ ]
25721
26214
  }
25722
26215
  ],
25723
26216
  "a11y": [
@@ -25764,7 +26257,7 @@
25764
26257
  "name": "error",
25765
26258
  "type": "string",
25766
26259
  "required": false,
25767
- "description": "An error message. It replaces the hint and marks the field invalid."
26260
+ "description": "An error message. It replaces the helper text and marks the field invalid."
25768
26261
  },
25769
26262
  {
25770
26263
  "name": "fieldClassName",
@@ -25790,7 +26283,7 @@
25790
26283
  "name": "helperText",
25791
26284
  "type": "string",
25792
26285
  "required": false,
25793
- "description": "Help text under the field."
26286
+ "description": "Helper text under the field."
25794
26287
  },
25795
26288
  {
25796
26289
  "name": "id",
@@ -25903,7 +26396,7 @@
25903
26396
  "usage": {
25904
26397
  "when": [
25905
26398
  "The value is free-form text that can run past a single line: a note, description, comment, or address block.",
25906
- "You want the same labelled treatment (hint, error, required) as the rest of the form, for a longer answer.",
26399
+ "You want the same labelled treatment (helper text, error, required) as the rest of the form, for a longer answer.",
25907
26400
  "The user might write a few words or a few paragraphs and you can't predict which."
25908
26401
  ],
25909
26402
  "whenNot": [
@@ -25922,6 +26415,7 @@
25922
26415
  ],
25923
26416
  "do": [
25924
26417
  {
26418
+ "title": "Keep a visible label",
25925
26419
  "note": "A visible label stays put while the user types and is read by screen readers.",
25926
26420
  "example": [
25927
26421
  {
@@ -25935,6 +26429,7 @@
25935
26429
  ]
25936
26430
  },
25937
26431
  {
26432
+ "title": "Match the height to the answer",
25938
26433
  "note": "A height that matches the expected answer keeps the form compact and scannable.",
25939
26434
  "example": [
25940
26435
  {
@@ -25949,6 +26444,7 @@
25949
26444
  ]
25950
26445
  },
25951
26446
  {
26447
+ "title": "Say exactly what to change",
25952
26448
  "note": "A specific error tells the user exactly what to change.",
25953
26449
  "example": [
25954
26450
  {
@@ -25965,6 +26461,7 @@
25965
26461
  ],
25966
26462
  "dont": [
25967
26463
  {
26464
+ "title": "Keep a visible label",
25968
26465
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
25969
26466
  "example": [
25970
26467
  {
@@ -25977,6 +26474,7 @@
25977
26474
  ]
25978
26475
  },
25979
26476
  {
26477
+ "title": "Match the height to the answer",
25980
26478
  "note": "An oversized box wastes space and signals 'write an essay' when you wanted a sentence.",
25981
26479
  "example": [
25982
26480
  {
@@ -25991,6 +26489,7 @@
25991
26489
  ]
25992
26490
  },
25993
26491
  {
26492
+ "title": "Say exactly what to change",
25994
26493
  "note": "'Invalid' leaves them guessing what is actually wrong.",
25995
26494
  "example": [
25996
26495
  {
@@ -26008,7 +26507,7 @@
26008
26507
  "a11y": [
26009
26508
  "The label is tied to the field with a for and id pair, and a generated id is used when none is given.",
26010
26509
  "The field carries the native required attribute as well as the visible required mark.",
26011
- "aria-invalid is set from error, and aria-describedby points at the error text, or at the hint when there is no error.",
26510
+ "aria-invalid is set from error, and aria-describedby points at the error text, or at the helper text when there is no error.",
26012
26511
  "The info tip beside the label is named by helpLabel."
26013
26512
  ]
26014
26513
  }
@@ -26229,7 +26728,7 @@
26229
26728
  "name": "helperText",
26230
26729
  "type": "string",
26231
26730
  "required": false,
26232
- "description": "Help text under the field."
26731
+ "description": "Helper text under the field."
26233
26732
  },
26234
26733
  {
26235
26734
  "name": "id",
@@ -26560,6 +27059,7 @@
26560
27059
  ],
26561
27060
  "do": [
26562
27061
  {
27062
+ "title": "Record what happened, by whom, when",
26563
27063
  "note": "Title in the past tense saying what happened, plus the actor and an absolute timestamp: the three things an audit reader is looking for.",
26564
27064
  "example": [
26565
27065
  {
@@ -26583,6 +27083,7 @@
26583
27083
  ],
26584
27084
  "dont": [
26585
27085
  {
27086
+ "title": "Record what happened, by whom, when",
26586
27087
  "note": "'Status changed' to what, by whom? And '2 days ago' cannot be cross-referenced against anything, so an audit trail needs absolute times.",
26587
27088
  "example": [
26588
27089
  {
@@ -27476,6 +27977,7 @@
27476
27977
  ],
27477
27978
  "do": [
27478
27979
  {
27980
+ "title": "Let people choose when to reload",
27479
27981
  "note": "Tell the person and let them choose when to reload.",
27480
27982
  "example": [
27481
27983
  {
@@ -27487,6 +27989,7 @@
27487
27989
  ],
27488
27990
  "dont": [
27489
27991
  {
27992
+ "title": "Let people choose when to reload",
27490
27993
  "note": "A forced reload throws away what the person was typing.",
27491
27994
  "example": [
27492
27995
  {
@@ -28093,6 +28596,7 @@
28093
28596
  ],
28094
28597
  "do": [
28095
28598
  {
28599
+ "title": "Name the current workspace",
28096
28600
  "note": "The current workspace is named on the trigger, ticked in the list, and settings are one row away.",
28097
28601
  "example": [
28098
28602
  {
@@ -28137,6 +28641,7 @@
28137
28641
  ]
28138
28642
  },
28139
28643
  {
28644
+ "title": "Filter only a long list",
28140
28645
  "note": "Eight workspaces get a filter box, so finding one is typing rather than scrolling.",
28141
28646
  "example": [
28142
28647
  {
@@ -28186,6 +28691,7 @@
28186
28691
  ],
28187
28692
  "dont": [
28188
28693
  {
28694
+ "title": "Name the current workspace",
28189
28695
  "note": "A compact trigger in a full-width sidebar hides the workspace name, the one thing the control exists to show. Save it for a collapsed rail.",
28190
28696
  "example": [
28191
28697
  {
@@ -28213,6 +28719,7 @@
28213
28719
  ]
28214
28720
  },
28215
28721
  {
28722
+ "title": "Filter only a long list",
28216
28723
  "note": "Three workspaces behind a search box: a control to skip past on the way to something already visible.",
28217
28724
  "example": [
28218
28725
  {
@@ -30090,6 +30597,7 @@
30090
30597
  "the-graph",
30091
30598
  "theta",
30092
30599
  "thorchain",
30600
+ "thumbs-down",
30093
30601
  "thumbs-up",
30094
30602
  "tick-circle",
30095
30603
  "tick-square",