@webority/ui-react 0.130.1 → 0.130.2

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 (29) hide show
  1. package/dist/canvas-kit/kit.js +972 -483
  2. package/dist/canvas-kit/manifest.json +600 -100
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppTooltip.js +1 -1
  5. package/dist/guidance.json +568 -68
  6. package/dist/types/components/AppAutocomplete.d.ts +2 -2
  7. package/dist/types/components/AppCheckbox.d.ts +1 -1
  8. package/dist/types/components/AppCountrySelect.d.ts +1 -1
  9. package/dist/types/components/AppDatePicker.d.ts +1 -1
  10. package/dist/types/components/AppDateRangePicker.d.ts +1 -1
  11. package/dist/types/components/AppDropZone.d.ts +2 -2
  12. package/dist/types/components/AppDropdown.d.ts +1 -1
  13. package/dist/types/components/AppFileAttachment.d.ts +3 -3
  14. package/dist/types/components/AppFilePicker.d.ts +2 -2
  15. package/dist/types/components/AppImagePicker.d.ts +2 -2
  16. package/dist/types/components/AppInput.d.ts +2 -2
  17. package/dist/types/components/AppMentionInput.d.ts +1 -1
  18. package/dist/types/components/AppNumberInput.d.ts +1 -1
  19. package/dist/types/components/AppOtpInput.d.ts +1 -1
  20. package/dist/types/components/AppPhoneNumberInput.d.ts +2 -2
  21. package/dist/types/components/AppRadio.d.ts +1 -1
  22. package/dist/types/components/AppRadioGroup.d.ts +1 -1
  23. package/dist/types/components/AppScoreScale.d.ts +1 -1
  24. package/dist/types/components/AppSearch.d.ts +1 -1
  25. package/dist/types/components/AppSelect.d.ts +1 -1
  26. package/dist/types/components/AppTagInput.d.ts +1 -1
  27. package/dist/types/components/AppTextarea.d.ts +2 -2
  28. package/dist/types/components/AppTimePicker.d.ts +1 -1
  29. package/package.json +7 -7
@@ -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.2"
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
  }
@@ -7688,6 +7837,7 @@
7688
7837
  ],
7689
7838
  "do": [
7690
7839
  {
7840
+ "title": "Say when a table is empty",
7691
7841
  "note": "An explicit empty message tells the user the list is genuinely empty, not broken.",
7692
7842
  "example": [
7693
7843
  {
@@ -7718,6 +7868,7 @@
7718
7868
  ],
7719
7869
  "dont": [
7720
7870
  {
7871
+ "title": "Say when a table is empty",
7721
7872
  "note": "A blank table with no message reads as a bug, because the user cannot tell empty from failed.",
7722
7873
  "example": [
7723
7874
  {
@@ -7835,7 +7986,7 @@
7835
7986
  "name": "helperText",
7836
7987
  "type": "string",
7837
7988
  "required": false,
7838
- "description": "Help text shown under the control."
7989
+ "description": "Helper text shown under the control."
7839
7990
  },
7840
7991
  {
7841
7992
  "name": "id",
@@ -7956,6 +8107,7 @@
7956
8107
  ],
7957
8108
  "do": [
7958
8109
  {
8110
+ "title": "Give the date a visible label",
7959
8111
  "note": "A visible label above the field. The user knows what the date is for before opening it.",
7960
8112
  "example": [
7961
8113
  {
@@ -7969,6 +8121,7 @@
7969
8121
  ]
7970
8122
  },
7971
8123
  {
8124
+ "title": "Set min and max bounds",
7972
8125
  "note": "min / max stop invalid dates at the source, so the user can only pick a real one.",
7973
8126
  "example": [
7974
8127
  {
@@ -7984,6 +8137,7 @@
7984
8137
  ],
7985
8138
  "dont": [
7986
8139
  {
8140
+ "title": "Give the date a visible label",
7987
8141
  "note": "Only a placeholder as the label, which vanishes the moment a date is picked.",
7988
8142
  "example": [
7989
8143
  {
@@ -7996,6 +8150,7 @@
7996
8150
  ]
7997
8151
  },
7998
8152
  {
8153
+ "title": "Set min and max bounds",
7999
8154
  "note": "No bounds, then reject the date after submit. Constrain up front instead.",
8000
8155
  "example": [
8001
8156
  {
@@ -8009,7 +8164,7 @@
8009
8164
  ],
8010
8165
  "a11y": [
8011
8166
  "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.",
8167
+ "Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8013
8168
  "Required and disabled are set as native attributes on the control."
8014
8169
  ]
8015
8170
  }
@@ -8113,7 +8268,7 @@
8113
8268
  "name": "helperText",
8114
8269
  "type": "string",
8115
8270
  "required": false,
8116
- "description": "Help text shown under the control."
8271
+ "description": "Helper text shown under the control."
8117
8272
  },
8118
8273
  {
8119
8274
  "name": "id",
@@ -8244,7 +8399,7 @@
8244
8399
  "dont": [],
8245
8400
  "a11y": [
8246
8401
  "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.",
8402
+ "Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.",
8248
8403
  "Required and disabled are set as native attributes on the control."
8249
8404
  ]
8250
8405
  }
@@ -8395,6 +8550,7 @@
8395
8550
  ],
8396
8551
  "do": [
8397
8552
  {
8553
+ "title": "Name each value",
8398
8554
  "note": "Specific, concise labels (no generic \"Info\") and clear values.",
8399
8555
  "example": [
8400
8556
  {
@@ -8417,6 +8573,7 @@
8417
8573
  ],
8418
8574
  "dont": [
8419
8575
  {
8576
+ "title": "Name each value",
8420
8577
  "note": "Generic labels like \"Data 1\" and ellipsis placeholders carry no meaning.",
8421
8578
  "example": [
8422
8579
  {
@@ -8500,6 +8657,7 @@
8500
8657
  ],
8501
8658
  "do": [
8502
8659
  {
8660
+ "title": "Beside the list it details",
8503
8661
  "note": "The pane sits beside the list it details. Escape inside it calls onClose.",
8504
8662
  "example": [
8505
8663
  {
@@ -8520,6 +8678,7 @@
8520
8678
  ],
8521
8679
  "dont": [
8522
8680
  {
8681
+ "title": "Beside the list it details",
8523
8682
  "note": "Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.",
8524
8683
  "example": [
8525
8684
  {
@@ -8839,13 +8998,13 @@
8839
8998
  "name": "maxSizeMb",
8840
8999
  "type": "number",
8841
9000
  "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."
9001
+ "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
9002
  },
8844
9003
  {
8845
9004
  "name": "maxSizeText",
8846
9005
  "type": "string",
8847
9006
  "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.",
9007
+ "description": "The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
8849
9008
  "default": "up to {size} MB"
8850
9009
  },
8851
9010
  {
@@ -8883,7 +9042,7 @@
8883
9042
  "dont": [],
8884
9043
  "a11y": [
8885
9044
  "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.",
9045
+ "The input is described by the helper text, or by the error when one shows, through aria-describedby.",
8887
9046
  "A disabled zone sets aria-disabled, disables the input and ignores drops."
8888
9047
  ]
8889
9048
  }
@@ -9061,7 +9220,7 @@
9061
9220
  "name": "trigger",
9062
9221
  "type": "node",
9063
9222
  "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."
9223
+ "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
9224
  }
9066
9225
  ],
9067
9226
  "itemsTakeAction": [
@@ -9095,6 +9254,7 @@
9095
9254
  ],
9096
9255
  "do": [
9097
9256
  {
9257
+ "title": "Put the destructive item last",
9098
9258
  "note": "Overflow actions collapse into one trigger, with the destructive one marked danger and placed last.",
9099
9259
  "example": [
9100
9260
  {
@@ -9125,6 +9285,7 @@
9125
9285
  ]
9126
9286
  },
9127
9287
  {
9288
+ "title": "Keep the menu short and clear",
9128
9289
  "note": "A short, scannable list of clearly worded actions.",
9129
9290
  "example": [
9130
9291
  {
@@ -9149,6 +9310,7 @@
9149
9310
  ],
9150
9311
  "dont": [
9151
9312
  {
9313
+ "title": "Put the destructive item last",
9152
9314
  "note": "Delete sits first and unmarked, so it looks like every other item and is the easiest to hit by mistake.",
9153
9315
  "example": [
9154
9316
  {
@@ -9178,6 +9340,7 @@
9178
9340
  ]
9179
9341
  },
9180
9342
  {
9343
+ "title": "Keep the menu short and clear",
9181
9344
  "note": "A menu with nine items becomes a wall to read. Group or split it, or promote the common ones out.",
9182
9345
  "example": [
9183
9346
  {
@@ -9465,6 +9628,7 @@
9465
9628
  ],
9466
9629
  "do": [
9467
9630
  {
9631
+ "title": "Offer a next step",
9468
9632
  "note": "Names what's missing, explains why it matters, and offers the exact action to fix it.",
9469
9633
  "example": [
9470
9634
  {
@@ -9485,6 +9649,7 @@
9485
9649
  ]
9486
9650
  },
9487
9651
  {
9652
+ "title": "Explain a search with no matches",
9488
9653
  "note": "A search-empty explains the specific query and suggests how to get results.",
9489
9654
  "example": [
9490
9655
  {
@@ -9496,10 +9661,25 @@
9496
9661
  }
9497
9662
  }
9498
9663
  ]
9664
+ },
9665
+ {
9666
+ "title": "Keep the description specific",
9667
+ "note": "A description that says what the empty state means helps the user, where filler only pads the space.",
9668
+ "example": [
9669
+ {
9670
+ "component": "AppEmptyState",
9671
+ "props": {
9672
+ "icon": "inbox",
9673
+ "title": "No requests this week",
9674
+ "description": "Requests you raise appear here once they are submitted."
9675
+ }
9676
+ }
9677
+ ]
9499
9678
  }
9500
9679
  ],
9501
9680
  "dont": [
9502
9681
  {
9682
+ "title": "Offer a next step",
9503
9683
  "note": "A bare \"Empty\" with no guidance and no action leaves the user stuck at a dead end.",
9504
9684
  "example": [
9505
9685
  {
@@ -9512,6 +9692,20 @@
9512
9692
  ]
9513
9693
  },
9514
9694
  {
9695
+ "title": "Explain a search with no matches",
9696
+ "note": "A bare \"No results\" with no reason and no way forward leaves the user unsure whether to change the search or the data.",
9697
+ "example": [
9698
+ {
9699
+ "component": "AppEmptyState",
9700
+ "props": {
9701
+ "icon": "search",
9702
+ "title": "No results"
9703
+ }
9704
+ }
9705
+ ]
9706
+ },
9707
+ {
9708
+ "title": "Keep the description specific",
9515
9709
  "note": "Repetitive filler text pads the space without helping the user do anything.",
9516
9710
  "example": [
9517
9711
  {
@@ -9587,22 +9781,55 @@
9587
9781
  ],
9588
9782
  "do": [
9589
9783
  {
9784
+ "title": "Clear the error on navigation",
9590
9785
  "note": "Pass resetKeys so moving to another page clears the error.",
9591
9786
  "example": [
9592
9787
  {
9593
9788
  "component": "AppErrorBoundary",
9594
- "props": {}
9789
+ "props": {
9790
+ "resetKeys": [
9791
+ "/projects"
9792
+ ]
9793
+ }
9794
+ }
9795
+ ]
9796
+ },
9797
+ {
9798
+ "title": "Never show the error text",
9799
+ "note": "The default screen shows a plain sentence, so internal details stay private.",
9800
+ "example": [
9801
+ {
9802
+ "component": "AppErrorBoundary",
9803
+ "props": {
9804
+ "homeHref": "/dashboard"
9805
+ }
9595
9806
  }
9596
9807
  ]
9597
9808
  }
9598
9809
  ],
9599
9810
  "dont": [
9600
9811
  {
9601
- "note": "Do not print the caught error in the fallback; it can leak internal details.",
9812
+ "title": "Clear the error on navigation",
9813
+ "note": "Without resetKeys, the error stays on screen after the person moves to another page.",
9814
+ "example": [
9815
+ {
9816
+ "component": "AppErrorBoundary",
9817
+ "props": {
9818
+ "brand": "Projects"
9819
+ }
9820
+ }
9821
+ ]
9822
+ },
9823
+ {
9824
+ "title": "Never show the error text",
9825
+ "note": "It can leak internal details to the person reading the page, so the fallback never shows the error text.",
9602
9826
  "example": [
9603
9827
  {
9604
- "component": "p",
9605
- "children": "TypeError: Cannot read properties of undefined (reading 'map')"
9828
+ "component": "AppCodeBlock",
9829
+ "props": {
9830
+ "code": "TypeError: Cannot read properties of undefined (reading 'map')",
9831
+ "language": "text"
9832
+ }
9606
9833
  }
9607
9834
  ]
9608
9835
  }
@@ -9707,7 +9934,7 @@
9707
9934
  "name": "accept",
9708
9935
  "type": "string",
9709
9936
  "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."
9937
+ "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
9938
  },
9712
9939
  {
9713
9940
  "name": "browseLabel",
@@ -9746,7 +9973,7 @@
9746
9973
  "name": "maxSizeMb",
9747
9974
  "type": "number",
9748
9975
  "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."
9976
+ "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
9977
  },
9751
9978
  {
9752
9979
  "name": "maxSizeText",
@@ -9814,7 +10041,7 @@
9814
10041
  "name": "validate",
9815
10042
  "type": "boolean",
9816
10043
  "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.",
10044
+ "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
10045
  "default": true
9819
10046
  },
9820
10047
  {
@@ -9853,6 +10080,7 @@
9853
10080
  ],
9854
10081
  "do": [
9855
10082
  {
10083
+ "title": "Name the row and limit types",
9856
10084
  "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
10085
  "example": [
9858
10086
  {
@@ -9866,6 +10094,7 @@
9866
10094
  ]
9867
10095
  },
9868
10096
  {
10097
+ "title": "Make a required file's requirement visible",
9869
10098
  "note": "Surface a submit-time requirement with a message below the row, in the field's error style.",
9870
10099
  "example": [
9871
10100
  {
@@ -9880,6 +10109,7 @@
9880
10109
  ],
9881
10110
  "dont": [
9882
10111
  {
10112
+ "title": "Name the row and limit types",
9883
10113
  "note": "A bare \"Attach\" label with no constraints leaves the user unsure what belongs here or what the field accepts.",
9884
10114
  "example": [
9885
10115
  {
@@ -9891,6 +10121,7 @@
9891
10121
  ]
9892
10122
  },
9893
10123
  {
10124
+ "title": "Make a required file's requirement visible",
9894
10125
  "note": "Marking a genuinely required attachment \"optional\" mis-signals that it can be skipped.",
9895
10126
  "example": [
9896
10127
  {
@@ -10039,13 +10270,13 @@
10039
10270
  "name": "maxSizeMb",
10040
10271
  "type": "number",
10041
10272
  "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."
10273
+ "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
10274
  },
10044
10275
  {
10045
10276
  "name": "maxSizeText",
10046
10277
  "type": "string",
10047
10278
  "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.",
10279
+ "description": "The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.",
10049
10280
  "default": "up to {size} MB"
10050
10281
  },
10051
10282
  {
@@ -10154,6 +10385,7 @@
10154
10385
  ],
10155
10386
  "do": [
10156
10387
  {
10388
+ "title": "Give the field a specific label",
10157
10389
  "note": "Give the field a specific label, \"Structure photo\" rather than \"Upload\", so the user knows what image belongs here.",
10158
10390
  "example": [
10159
10391
  {
@@ -10165,6 +10397,7 @@
10165
10397
  ]
10166
10398
  },
10167
10399
  {
10400
+ "title": "Show validation beside the field",
10168
10401
  "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
10402
  "example": [
10170
10403
  {
@@ -10180,7 +10413,8 @@
10180
10413
  ],
10181
10414
  "dont": [
10182
10415
  {
10183
- "note": "A vague \"File\" label leaves the user guessing what to drop, and mixes with the format hint already in the zone.",
10416
+ "title": "Give the field a specific label",
10417
+ "note": "A vague \"File\" label leaves the user guessing what to drop, and mixes with the format line already in the zone.",
10184
10418
  "example": [
10185
10419
  {
10186
10420
  "component": "AppFilePicker",
@@ -10191,6 +10425,7 @@
10191
10425
  ]
10192
10426
  },
10193
10427
  {
10428
+ "title": "Show validation beside the field",
10194
10429
  "note": "A required field with no message on submit leaves the user unsure why the form will not save.",
10195
10430
  "example": [
10196
10431
  {
@@ -10205,7 +10440,7 @@
10205
10440
  ],
10206
10441
  "a11y": [
10207
10442
  "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.",
10443
+ "A shown error or helper text is linked to the file input through aria-describedby.",
10209
10444
  "While loading, the control is marked aria-busy and a spinner with the status role named Loading shows.",
10210
10445
  "In single mode the preview has a button to change the file and a separate remove button, each with an accessible name."
10211
10446
  ]
@@ -11281,6 +11516,7 @@
11281
11516
  ],
11282
11517
  "do": [
11283
11518
  {
11519
+ "title": "Reinforce a text label",
11284
11520
  "note": "The icon reinforces a clear text label: it supports the word and does not replace it.",
11285
11521
  "example": [
11286
11522
  {
@@ -11299,6 +11535,7 @@
11299
11535
  ]
11300
11536
  },
11301
11537
  {
11538
+ "title": "Match the text size",
11302
11539
  "note": "AppIcon size matches the text it sits beside, so the baseline stays clean.",
11303
11540
  "example": [
11304
11541
  {
@@ -11324,6 +11561,7 @@
11324
11561
  ],
11325
11562
  "dont": [
11326
11563
  {
11564
+ "title": "Reinforce a text label",
11327
11565
  "note": "Hand-written icon markup in app code bypasses the shared name map and drifts.",
11328
11566
  "example": [
11329
11567
  {
@@ -11345,6 +11583,7 @@
11345
11583
  ]
11346
11584
  },
11347
11585
  {
11586
+ "title": "Match the text size",
11348
11587
  "note": "A glyph far larger than its label unbalances the row and pulls the eye away from the words.",
11349
11588
  "example": [
11350
11589
  {
@@ -11497,7 +11736,7 @@
11497
11736
  "name": "helperText",
11498
11737
  "type": "string",
11499
11738
  "required": false,
11500
- "description": "Help text under the picker. An error replaces it."
11739
+ "description": "Helper text under the picker. An error replaces it."
11501
11740
  },
11502
11741
  {
11503
11742
  "name": "kind",
@@ -11525,7 +11764,7 @@
11525
11764
  "stacked"
11526
11765
  ],
11527
11766
  "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.",
11767
+ "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
11768
  "default": "stacked"
11530
11769
  },
11531
11770
  {
@@ -11729,6 +11968,7 @@
11729
11968
  ],
11730
11969
  "do": [
11731
11970
  {
11971
+ "title": "Name the action the overlay performs",
11732
11972
  "note": "Set an overlay label that names the thing, such as \"Change logo\", so the hover affordance says exactly what happens.",
11733
11973
  "example": [
11734
11974
  {
@@ -11741,6 +11981,7 @@
11741
11981
  ]
11742
11982
  },
11743
11983
  {
11984
+ "title": "Label and size the picker",
11744
11985
  "note": "Say what a good photo is. People crop better when they know.",
11745
11986
  "example": [
11746
11987
  {
@@ -11757,6 +11998,7 @@
11757
11998
  ],
11758
11999
  "dont": [
11759
12000
  {
12001
+ "title": "Name the action the overlay performs",
11760
12002
  "note": "A generic \"Click\" overlay tells the user how to interact but not what the action does.",
11761
12003
  "example": [
11762
12004
  {
@@ -11769,6 +12011,7 @@
11769
12011
  ]
11770
12012
  },
11771
12013
  {
12014
+ "title": "Label and size the picker",
11772
12015
  "note": "A tiny, disabled avatar picker with no label. Nobody can tell it sets their photo.",
11773
12016
  "example": [
11774
12017
  {
@@ -11786,7 +12029,7 @@
11786
12029
  "a11y": [
11787
12030
  "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
12031
  "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.",
12032
+ "The helper text or the error is tied to the upload control with aria-describedby, and an error wins over helper text.",
11790
12033
  "The buttons look sits out of the tab order and the Upload button beside it is the keyboard path to the same action."
11791
12034
  ]
11792
12035
  }
@@ -11852,8 +12095,8 @@
11852
12095
  "instead": "AppAlert"
11853
12096
  },
11854
12097
  {
11855
- "text": "It is a permanent hint under a field the user should always read.",
11856
- "instead": "the hint prop on AppInput"
12098
+ "text": "It is a permanent helper text under a field the user should always read.",
12099
+ "instead": "the helperText prop on AppInput"
11857
12100
  },
11858
12101
  {
11859
12102
  "text": "You would otherwise expose the text via a native title=\"\".",
@@ -11866,6 +12109,7 @@
11866
12109
  ],
11867
12110
  "do": [
11868
12111
  {
12112
+ "title": "Ask the question in the label",
11869
12113
  "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
12114
  "example": [
11871
12115
  {
@@ -11887,6 +12131,7 @@
11887
12131
  ]
11888
12132
  },
11889
12133
  {
12134
+ "title": "Attach the tip to its term",
11890
12135
  "note": "Attach the tip to the exact term it explains, inline with the label, so the “?” sits where the question arises.",
11891
12136
  "example": [
11892
12137
  {
@@ -11910,6 +12155,7 @@
11910
12155
  ],
11911
12156
  "dont": [
11912
12157
  {
12158
+ "title": "Ask the question in the label",
11913
12159
  "note": "A vague “info” label and a wall of text overload a tip: move long explanations into a linked doc.",
11914
12160
  "example": [
11915
12161
  {
@@ -11931,6 +12177,7 @@
11931
12177
  ]
11932
12178
  },
11933
12179
  {
12180
+ "title": "Attach the tip to its term",
11934
12181
  "note": "Burying the explanation elsewhere (or omitting it) forces the user to leave the field to understand it.",
11935
12182
  "example": [
11936
12183
  {
@@ -12156,7 +12403,7 @@
12156
12403
  "name": "helperText",
12157
12404
  "type": "string",
12158
12405
  "required": false,
12159
- "description": "Help text under the field. An error replaces it while both are set."
12406
+ "description": "Helper text under the field. An error replaces it while both are set."
12160
12407
  },
12161
12408
  {
12162
12409
  "name": "hidePasswordLabel",
@@ -12355,7 +12602,7 @@
12355
12602
  "top"
12356
12603
  ],
12357
12604
  "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.",
12605
+ "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
12606
  "default": "auto"
12360
12607
  },
12361
12608
  {
@@ -12444,7 +12691,7 @@
12444
12691
  "usage": {
12445
12692
  "when": [
12446
12693
  "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.",
12694
+ "You want the shared field treatment: label, helper text, error, and required marking.",
12448
12695
  "A specific type (email, number, tel) should drive the keyboard and native validation."
12449
12696
  ],
12450
12697
  "whenNot": [
@@ -12467,6 +12714,7 @@
12467
12714
  ],
12468
12715
  "do": [
12469
12716
  {
12717
+ "title": "A visible label, not a placeholder",
12470
12718
  "note": "A visible label stays put while the user types and is read by screen readers.",
12471
12719
  "example": [
12472
12720
  {
@@ -12481,6 +12729,7 @@
12481
12729
  ]
12482
12730
  },
12483
12731
  {
12732
+ "title": "Use the right input type",
12484
12733
  "note": "type=\"email\" brings the right keyboard and native validation for free.",
12485
12734
  "example": [
12486
12735
  {
@@ -12495,6 +12744,7 @@
12495
12744
  ]
12496
12745
  },
12497
12746
  {
12747
+ "title": "Say exactly what is wrong",
12498
12748
  "note": "A specific error tells the user exactly what to change.",
12499
12749
  "example": [
12500
12750
  {
@@ -12511,6 +12761,7 @@
12511
12761
  ],
12512
12762
  "dont": [
12513
12763
  {
12764
+ "title": "A visible label, not a placeholder",
12514
12765
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
12515
12766
  "example": [
12516
12767
  {
@@ -12523,6 +12774,7 @@
12523
12774
  ]
12524
12775
  },
12525
12776
  {
12777
+ "title": "Use the right input type",
12526
12778
  "note": "A plain text type misses the email keyboard and validation the browser could give.",
12527
12779
  "example": [
12528
12780
  {
@@ -12537,6 +12789,7 @@
12537
12789
  ]
12538
12790
  },
12539
12791
  {
12792
+ "title": "Say exactly what is wrong",
12540
12793
  "note": "Invalid leaves them guessing what is actually wrong.",
12541
12794
  "example": [
12542
12795
  {
@@ -12552,7 +12805,7 @@
12552
12805
  }
12553
12806
  ],
12554
12807
  "a11y": [
12555
- "The control carries aria-invalid, and aria-describedby points at the error or the hint.",
12808
+ "The control carries aria-invalid, and aria-describedby points at the error or the helper text.",
12556
12809
  "The clear button is named Clear and is hidden while the field is empty.",
12557
12810
  "The password reveal button is named Show password or Hide password, and the checklist sits in a polite live region.",
12558
12811
  "The right-icon button is named by rightIconLabel, or by the icon name when none is given.",
@@ -12923,7 +13176,7 @@
12923
13176
  "source": "@webority/ui-react",
12924
13177
  "usage": {
12925
13178
  "when": [
12926
- "Naming a key in help text, a hint or an empty state.",
13179
+ "Naming a key in help text, in a field's helper text or in an empty state.",
12927
13180
  "A legend or a guide that lists keys."
12928
13181
  ],
12929
13182
  "whenNot": [
@@ -13166,6 +13419,7 @@
13166
13419
  ],
13167
13420
  "do": [
13168
13421
  {
13422
+ "title": "Name the measure and comparison",
13169
13423
  "note": "Name what is measured and say what the delta compares against. “vs last week” is what makes 12 meaningful.",
13170
13424
  "example": [
13171
13425
  {
@@ -13182,6 +13436,7 @@
13182
13436
  ],
13183
13437
  "dont": [
13184
13438
  {
13439
+ "title": "Name the measure and comparison",
13185
13440
  "note": "“Count” of what? “+4” since when? The reader cannot act on either without going to look somewhere else.",
13186
13441
  "example": [
13187
13442
  {
@@ -13659,6 +13914,7 @@
13659
13914
  ],
13660
13915
  "do": [
13661
13916
  {
13917
+ "title": "Name the destination",
13662
13918
  "note": "One clear animation and a descriptive label. The link reads as a link and says where it goes.",
13663
13919
  "example": [
13664
13920
  {
@@ -13674,6 +13930,7 @@
13674
13930
  ],
13675
13931
  "dont": [
13676
13932
  {
13933
+ "title": "Name the destination",
13677
13934
  "note": "“Click here” tells the reader nothing. Name the destination so the link explains where it goes.",
13678
13935
  "example": [
13679
13936
  {
@@ -13897,7 +14154,7 @@
13897
14154
  "name": "placeholder",
13898
14155
  "type": "string",
13899
14156
  "required": false,
13900
- "description": "Hint text shown while the box is empty."
14157
+ "description": "Placeholder text shown while the box is empty."
13901
14158
  },
13902
14159
  {
13903
14160
  "name": "readOnly",
@@ -13961,7 +14218,7 @@
13961
14218
  "dont": [],
13962
14219
  "a11y": [
13963
14220
  "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.",
14221
+ "The helper text or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.",
13965
14222
  "In the list, Up and Down choose, Enter or Tab mention and Escape closes it. Backspace just after a mention removes it whole."
13966
14223
  ]
13967
14224
  }
@@ -14085,6 +14342,7 @@
14085
14342
  ],
14086
14343
  "do": [
14087
14344
  {
14345
+ "title": "Use meters for measurements, not tasks",
14088
14346
  "note": "Real thresholds that mean something operationally, so the auto-tone is trustworthy.",
14089
14347
  "example": [
14090
14348
  {
@@ -14103,6 +14361,7 @@
14103
14361
  ],
14104
14362
  "dont": [
14105
14363
  {
14364
+ "title": "Use meters for measurements, not tasks",
14106
14365
  "note": "A task advancing toward completion is not a measurement: that is AppProgress, not AppMeter.",
14107
14366
  "example": [
14108
14367
  {
@@ -14398,6 +14657,7 @@
14398
14657
  ],
14399
14658
  "do": [
14400
14659
  {
14660
+ "title": "One trigger, one dialog",
14401
14661
  "note": "A clear trigger opens a single-purpose dialog; open/onClose stay controlled so Escape and the backdrop always work.",
14402
14662
  "example": [
14403
14663
  {
@@ -14407,6 +14667,7 @@
14407
14667
  ]
14408
14668
  },
14409
14669
  {
14670
+ "title": "One primary action in the footer",
14410
14671
  "note": "A footer that pairs a secondary Cancel with one primary confirm: the eye knows the main action.",
14411
14672
  "example": [
14412
14673
  {
@@ -14433,6 +14694,7 @@
14433
14694
  ],
14434
14695
  "dont": [
14435
14696
  {
14697
+ "title": "One trigger, one dialog",
14436
14698
  "note": "A modal with no onClose traps the user: the backdrop and Escape have nothing to call.",
14437
14699
  "example": [
14438
14700
  {
@@ -14445,6 +14707,7 @@
14445
14707
  ]
14446
14708
  },
14447
14709
  {
14710
+ "title": "One primary action in the footer",
14448
14711
  "note": "Three competing primaries in the footer leave the user unsure which one commits.",
14449
14712
  "example": [
14450
14713
  {
@@ -14723,6 +14986,7 @@
14723
14986
  ],
14724
14987
  "do": [
14725
14988
  {
14989
+ "title": "Several picks as chips, not checkboxes",
14726
14990
  "note": "Many related values in one compact control; the current picks read back as chips.",
14727
14991
  "example": [
14728
14992
  {
@@ -14775,6 +15039,7 @@
14775
15039
  ]
14776
15040
  },
14777
15041
  {
15042
+ "title": "Make long lists searchable",
14778
15043
  "note": "A searchable checklist keeps a long list usable: the user filters instead of scrolling.",
14779
15044
  "example": [
14780
15045
  {
@@ -14821,10 +15086,59 @@
14821
15086
  }
14822
15087
  }
14823
15088
  ]
15089
+ },
15090
+ {
15091
+ "title": "Single values use single-select",
15092
+ "note": "One value can apply here, so a single-select dropdown says so; a multiselect invites over-picking.",
15093
+ "example": [
15094
+ {
15095
+ "component": "AppSelect",
15096
+ "props": {
15097
+ "label": "Primary standard",
15098
+ "name": "standard",
15099
+ "value": "iec-62305",
15100
+ "options": [
15101
+ {
15102
+ "value": "risk-assessment",
15103
+ "label": "Risk assessment"
15104
+ },
15105
+ {
15106
+ "value": "lightning-protection",
15107
+ "label": "Lightning protection"
15108
+ },
15109
+ {
15110
+ "value": "surge-protection",
15111
+ "label": "Surge protection"
15112
+ },
15113
+ {
15114
+ "value": "earthing",
15115
+ "label": "Earthing"
15116
+ },
15117
+ {
15118
+ "value": "bonding",
15119
+ "label": "Bonding"
15120
+ },
15121
+ {
15122
+ "value": "site-survey",
15123
+ "label": "Site survey"
15124
+ },
15125
+ {
15126
+ "value": "iec-62305",
15127
+ "label": "IEC 62305"
15128
+ },
15129
+ {
15130
+ "value": "reporting",
15131
+ "label": "Reporting"
15132
+ }
15133
+ ]
15134
+ }
15135
+ }
15136
+ ]
14824
15137
  }
14825
15138
  ],
14826
15139
  "dont": [
14827
15140
  {
15141
+ "title": "Several picks as chips, not checkboxes",
14828
15142
  "note": "A wall of checkboxes for the same multi-pick is slower to scan and hides the total selection.",
14829
15143
  "example": [
14830
15144
  {
@@ -14873,6 +15187,57 @@
14873
15187
  ]
14874
15188
  },
14875
15189
  {
15190
+ "title": "Make long lists searchable",
15191
+ "note": "With search off, the user scrolls the whole list to find one option, so a long list needs a search box.",
15192
+ "example": [
15193
+ {
15194
+ "component": "AppMultiSelect",
15195
+ "props": {
15196
+ "label": "Tags",
15197
+ "name": "tags-unsearchable",
15198
+ "searchable": false,
15199
+ "values": [],
15200
+ "placeholder": "Select tags…",
15201
+ "options": [
15202
+ {
15203
+ "value": "risk-assessment",
15204
+ "label": "Risk assessment"
15205
+ },
15206
+ {
15207
+ "value": "lightning-protection",
15208
+ "label": "Lightning protection"
15209
+ },
15210
+ {
15211
+ "value": "surge-protection",
15212
+ "label": "Surge protection"
15213
+ },
15214
+ {
15215
+ "value": "earthing",
15216
+ "label": "Earthing"
15217
+ },
15218
+ {
15219
+ "value": "bonding",
15220
+ "label": "Bonding"
15221
+ },
15222
+ {
15223
+ "value": "site-survey",
15224
+ "label": "Site survey"
15225
+ },
15226
+ {
15227
+ "value": "iec-62305",
15228
+ "label": "IEC 62305"
15229
+ },
15230
+ {
15231
+ "value": "reporting",
15232
+ "label": "Reporting"
15233
+ }
15234
+ ]
15235
+ }
15236
+ }
15237
+ ]
15238
+ },
15239
+ {
15240
+ "title": "Single values use single-select",
14876
15241
  "note": "Only one value can ever apply here: a single-select dropdown says so; a multiselect invites over-picking.",
14877
15242
  "example": [
14878
15243
  {
@@ -14923,7 +15288,7 @@
14923
15288
  }
14924
15289
  ],
14925
15290
  "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.",
15291
+ "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
15292
  "A node label is read as its text: the option, the chip and the chip's remove button are named from it.",
14928
15293
  "Each chosen value is a removable chip, so the selection is readable without opening the menu."
14929
15294
  ]
@@ -15358,7 +15723,7 @@
15358
15723
  "name": "helperText",
15359
15724
  "type": "string",
15360
15725
  "required": false,
15361
- "description": "Help text under the field, linked to the input for screen readers."
15726
+ "description": "Helper text under the field, linked to the input for screen readers."
15362
15727
  },
15363
15728
  {
15364
15729
  "name": "id",
@@ -15693,7 +16058,7 @@
15693
16058
  "name": "helperText",
15694
16059
  "type": "string",
15695
16060
  "required": false,
15696
- "description": "Help text under the code. It is hidden while an error is shown."
16061
+ "description": "Helper text under the code. It is hidden while an error is shown."
15697
16062
  },
15698
16063
  {
15699
16064
  "name": "id",
@@ -15809,6 +16174,7 @@
15809
16174
  ],
15810
16175
  "do": [
15811
16176
  {
16177
+ "title": "One field for the whole code",
15812
16178
  "note": "One labelled field, six boxes drawn underneath. Autofill, paste and a screen reader all work.",
15813
16179
  "example": [
15814
16180
  {
@@ -15822,6 +16188,7 @@
15822
16188
  ],
15823
16189
  "dont": [
15824
16190
  {
16191
+ "title": "One field for the whole code",
15825
16192
  "note": "Six inputs: the OS drops the whole SMS code into box one, and a screen reader announces six unlabelled boxes.",
15826
16193
  "example": [
15827
16194
  {
@@ -16092,6 +16459,7 @@
16092
16459
  ],
16093
16460
  "do": [
16094
16461
  {
16462
+ "title": "One primary page action",
16095
16463
  "note": "One clear title, a context subtitle, and the single page-level action on the right.",
16096
16464
  "example": [
16097
16465
  {
@@ -16111,6 +16479,7 @@
16111
16479
  ]
16112
16480
  },
16113
16481
  {
16482
+ "title": "Keep the subtitle short and useful",
16114
16483
  "note": "The subtitle carries useful state: what this is and when it changed.",
16115
16484
  "example": [
16116
16485
  {
@@ -16125,6 +16494,7 @@
16125
16494
  ],
16126
16495
  "dont": [
16127
16496
  {
16497
+ "title": "One primary page action",
16128
16498
  "note": "A pile of equal-weight buttons hides the primary action. Keep secondary ones in a menu.",
16129
16499
  "example": [
16130
16500
  {
@@ -16172,6 +16542,7 @@
16172
16542
  ]
16173
16543
  },
16174
16544
  {
16545
+ "title": "Keep the subtitle short and useful",
16175
16546
  "note": "A sentence-long subtitle reads as body copy, not a heading. Keep it to a phrase.",
16176
16547
  "example": [
16177
16548
  {
@@ -16251,7 +16622,7 @@
16251
16622
  "name": "helperText",
16252
16623
  "type": "string",
16253
16624
  "required": false,
16254
- "description": "Help text under the field. The error replaces it while one is shown."
16625
+ "description": "Helper text under the field. The error replaces it while one is shown."
16255
16626
  },
16256
16627
  {
16257
16628
  "name": "id",
@@ -16303,7 +16674,7 @@
16303
16674
  "name": "placeholder",
16304
16675
  "type": "string",
16305
16676
  "required": false,
16306
- "description": "Hint text in the empty field. Left unset, the control hints with the country's example number."
16677
+ "description": "Placeholder text in the empty field. Left unset, the control shows the country's example number."
16307
16678
  },
16308
16679
  {
16309
16680
  "name": "readOnly",
@@ -16381,6 +16752,7 @@
16381
16752
  ],
16382
16753
  "do": [
16383
16754
  {
16755
+ "title": "Default the country",
16384
16756
  "note": "Default the country to the one most users will pick: fewer taps for the common case.",
16385
16757
  "example": [
16386
16758
  {
@@ -16394,6 +16766,7 @@
16394
16766
  ]
16395
16767
  },
16396
16768
  {
16769
+ "title": "Show the error under the field",
16397
16770
  "note": "Surface validation inline with error, right under the field the user must fix.",
16398
16771
  "example": [
16399
16772
  {
@@ -16410,6 +16783,7 @@
16410
16783
  ],
16411
16784
  "dont": [
16412
16785
  {
16786
+ "title": "Default the country",
16413
16787
  "note": "No label and no sensible default country: the user guesses what to enter and where.",
16414
16788
  "example": [
16415
16789
  {
@@ -16422,6 +16796,7 @@
16422
16796
  ]
16423
16797
  },
16424
16798
  {
16799
+ "title": "Show the error under the field",
16425
16800
  "note": "Required with no error feedback: the user submits and is bounced with no clue why.",
16426
16801
  "example": [
16427
16802
  {
@@ -16437,7 +16812,7 @@
16437
16812
  ],
16438
16813
  "a11y": [
16439
16814
  "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.",
16815
+ "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
16816
  "An error sets aria-invalid on the control, and required adds the required mark and marks the control required."
16442
16817
  ]
16443
16818
  }
@@ -16548,6 +16923,7 @@
16548
16923
  ],
16549
16924
  "do": [
16550
16925
  {
16926
+ "title": "Keep the panel short",
16551
16927
  "note": "A short, scannable panel: a few lines the user can read without scrolling.",
16552
16928
  "example": [
16553
16929
  {
@@ -16583,6 +16959,7 @@
16583
16959
  ],
16584
16960
  "dont": [
16585
16961
  {
16962
+ "title": "Keep the panel short",
16586
16963
  "note": "A multi-field form crammed into a popover has nowhere to show validation and no backdrop to hold focus. Use AppModal instead.",
16587
16964
  "example": [
16588
16965
  {
@@ -16757,6 +17134,7 @@
16757
17134
  ],
16758
17135
  "do": [
16759
17136
  {
17137
+ "title": "Unit, audience and every feature listed",
16760
17138
  "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
17139
  "example": [
16762
17140
  {
@@ -16789,6 +17167,7 @@
16789
17167
  ],
16790
17168
  "dont": [
16791
17169
  {
17170
+ "title": "Unit, audience and every feature listed",
16792
17171
  "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
17172
  "example": [
16794
17173
  {
@@ -16931,6 +17310,7 @@
16931
17310
  ],
16932
17311
  "do": [
16933
17312
  {
17313
+ "title": "Real amounts, not fake progress",
16934
17314
  "note": "A real value with a label that states the actual amount, not just a bare percentage.",
16935
17315
  "example": [
16936
17316
  {
@@ -16948,6 +17328,7 @@
16948
17328
  ],
16949
17329
  "dont": [
16950
17330
  {
17331
+ "title": "Real amounts, not fake progress",
16951
17332
  "note": "A progress bar pinned at 100% (or any fixed value) to fake a spinner. That is AppSpinner's job.",
16952
17333
  "example": [
16953
17334
  {
@@ -17022,6 +17403,7 @@
17022
17403
  ],
17023
17404
  "do": [
17024
17405
  {
17406
+ "title": "Clear title and room to scan",
17025
17407
  "note": "Enough room around it, and a title that says what scanning does.",
17026
17408
  "example": [
17027
17409
  {
@@ -17037,6 +17419,7 @@
17037
17419
  ],
17038
17420
  "dont": [
17039
17421
  {
17422
+ "title": "Clear title and room to scan",
17040
17423
  "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
17424
  "example": [
17042
17425
  {
@@ -17090,7 +17473,7 @@
17090
17473
  "name": "error",
17091
17474
  "type": "string",
17092
17475
  "required": false,
17093
- "description": "Error message, rendered below the control. Replaces the hint."
17476
+ "description": "Error message, rendered below the control. Replaces the helper text."
17094
17477
  },
17095
17478
  {
17096
17479
  "name": "help",
@@ -17191,6 +17574,7 @@
17191
17574
  ],
17192
17575
  "do": [
17193
17576
  {
17577
+ "title": "Two to five options, all visible",
17194
17578
  "note": "2 to 5 exclusive options, all on screen. The user compares every choice without opening anything.",
17195
17579
  "example": [
17196
17580
  {
@@ -17218,6 +17602,7 @@
17218
17602
  ]
17219
17603
  },
17220
17604
  {
17605
+ "title": "Radios for one answer, not checkboxes",
17221
17606
  "note": "Radios enforce a single answer. Exactly one can ever be selected.",
17222
17607
  "example": [
17223
17608
  {
@@ -17247,6 +17632,7 @@
17247
17632
  ],
17248
17633
  "dont": [
17249
17634
  {
17635
+ "title": "Two to five options, all visible",
17250
17636
  "note": "Past about five options a radio list sprawls and is hard to scan. A dropdown holds it in one line.",
17251
17637
  "example": [
17252
17638
  {
@@ -17309,6 +17695,7 @@
17309
17695
  ]
17310
17696
  },
17311
17697
  {
17698
+ "title": "Radios for one answer, not checkboxes",
17312
17699
  "note": "Checkboxes let the user tick several, the wrong control for a single exclusive choice.",
17313
17700
  "example": [
17314
17701
  {
@@ -17370,7 +17757,7 @@
17370
17757
  "name": "error",
17371
17758
  "type": "string",
17372
17759
  "required": false,
17373
- "description": "Error message below the group. Replaces the hint."
17760
+ "description": "Error message below the group. Replaces the helper text."
17374
17761
  },
17375
17762
  {
17376
17763
  "name": "fieldClassName",
@@ -17533,7 +17920,7 @@
17533
17920
  "when": [
17534
17921
  "Two to five exclusive options, and the reader should see all of them before choosing.",
17535
17922
  "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."
17923
+ "You need helper text, an error or a required mark on the group as a whole."
17537
17924
  ],
17538
17925
  "whenNot": [
17539
17926
  {
@@ -17558,7 +17945,7 @@
17558
17945
  "a11y": [
17559
17946
  "The group is a radiogroup named by its label, so a screen reader announces the label as the group's name.",
17560
17947
  "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."
17948
+ "Helper text or an error is linked to the group through aria-describedby."
17562
17949
  ]
17563
17950
  }
17564
17951
  },
@@ -17996,6 +18383,7 @@
17996
18383
  ],
17997
18384
  "do": [
17998
18385
  {
18386
+ "title": "Name the actions and number rows",
17999
18387
  "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
18388
  "example": [
18001
18389
  {
@@ -18017,6 +18405,7 @@
18017
18405
  ],
18018
18406
  "dont": [
18019
18407
  {
18408
+ "title": "Name the actions and number rows",
18020
18409
  "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
18410
  "example": [
18022
18411
  {
@@ -18068,6 +18457,7 @@
18068
18457
  ],
18069
18458
  "do": [
18070
18459
  {
18460
+ "title": "One mark beside the label",
18071
18461
  "note": "One asterisk flush against its label, using the shared mark.",
18072
18462
  "example": [
18073
18463
  {
@@ -18085,6 +18475,7 @@
18085
18475
  ]
18086
18476
  },
18087
18477
  {
18478
+ "title": "Let the field own the mark",
18088
18479
  "note": "Let the field own the mark via required.",
18089
18480
  "example": [
18090
18481
  {
@@ -18099,6 +18490,7 @@
18099
18490
  ],
18100
18491
  "dont": [
18101
18492
  {
18493
+ "title": "One mark beside the label",
18102
18494
  "note": "A hand-rolled star drifts in colour and spacing from every library field.",
18103
18495
  "example": [
18104
18496
  {
@@ -18120,6 +18512,7 @@
18120
18512
  ]
18121
18513
  },
18122
18514
  {
18515
+ "title": "Let the field own the mark",
18123
18516
  "note": "A star typed into the label of a required field doubles the mark: the field already draws one.",
18124
18517
  "example": [
18125
18518
  {
@@ -18359,6 +18752,7 @@
18359
18752
  ],
18360
18753
  "do": [
18361
18754
  {
18755
+ "title": "Link text that names the resource",
18362
18756
  "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
18757
  "example": [
18364
18758
  {
@@ -18375,6 +18769,7 @@
18375
18769
  ],
18376
18770
  "dont": [
18377
18771
  {
18772
+ "title": "Link text that names the resource",
18378
18773
  "note": "\"Click here\" twice tells the reader nothing about the destination, and it is what a screen reader announces as the link name.",
18379
18774
  "example": [
18380
18775
  {
@@ -18644,6 +19039,7 @@
18644
19039
  ],
18645
19040
  "do": [
18646
19041
  {
19042
+ "title": "Keep a visible label",
18647
19043
  "note": "A visible label stays put while the user types and is read by screen readers.",
18648
19044
  "example": [
18649
19045
  {
@@ -18659,6 +19055,7 @@
18659
19055
  ],
18660
19056
  "dont": [
18661
19057
  {
19058
+ "title": "Keep a visible label",
18662
19059
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
18663
19060
  "example": [
18664
19061
  {
@@ -18894,6 +19291,7 @@
18894
19291
  ],
18895
19292
  "do": [
18896
19293
  {
19294
+ "title": "Plain sentence, not the raw error",
18897
19295
  "note": "A plain sentence and a way forward. The error details go to the logs.",
18898
19296
  "example": [
18899
19297
  {
@@ -18908,11 +19306,15 @@
18908
19306
  ],
18909
19307
  "dont": [
18910
19308
  {
19309
+ "title": "Plain sentence, not the raw error",
18911
19310
  "note": "The raw error tells the person nothing they can act on, and can leak internal details.",
18912
19311
  "example": [
18913
19312
  {
18914
- "component": "p",
18915
- "children": "TypeError: Cannot read properties of undefined (reading 'map')"
19313
+ "component": "AppCodeBlock",
19314
+ "props": {
19315
+ "code": "TypeError: Cannot read properties of undefined (reading 'map')",
19316
+ "language": "text"
19317
+ }
18916
19318
  }
18917
19319
  ]
18918
19320
  }
@@ -18973,6 +19375,7 @@
18973
19375
  ],
18974
19376
  "do": [
18975
19377
  {
19378
+ "title": "Wait for the save before flipping",
18976
19379
  "note": "The row keeps its saved state. The switch shows the next state only after the save resolves.",
18977
19380
  "example": [
18978
19381
  {
@@ -18990,6 +19393,7 @@
18990
19393
  ],
18991
19394
  "dont": [
18992
19395
  {
19396
+ "title": "Wait for the save before flipping",
18993
19397
  "note": "A page-level switch in a row has no busy state, so a second flip can race the first save.",
18994
19398
  "example": [
18995
19399
  {
@@ -19057,7 +19461,7 @@
19057
19461
  "name": "id",
19058
19462
  "type": "string",
19059
19463
  "required": false,
19060
- "description": "The id of the radio group; the label, hint and error ids derive from it. Generated when omitted."
19464
+ "description": "The id of the radio group; the label, helper text and error ids derive from it. Generated when omitted."
19061
19465
  },
19062
19466
  {
19063
19467
  "name": "label",
@@ -19133,7 +19537,7 @@
19133
19537
  "a11y": [
19134
19538
  "The scale is a radio group named by its label, or named Score when there is no label.",
19135
19539
  "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."
19540
+ "Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid."
19137
19541
  ]
19138
19542
  }
19139
19543
  },
@@ -19250,7 +19654,7 @@
19250
19654
  "name": "placeholder",
19251
19655
  "type": "string",
19252
19656
  "required": false,
19253
- "description": "Hint text shown while the field is empty.",
19657
+ "description": "Placeholder text shown while the field is empty.",
19254
19658
  "default": "Search…"
19255
19659
  },
19256
19660
  {
@@ -19303,6 +19707,7 @@
19303
19707
  ],
19304
19708
  "do": [
19305
19709
  {
19710
+ "title": "Name what the search covers",
19306
19711
  "note": "A placeholder that names what is being searched sets the right expectation.",
19307
19712
  "example": [
19308
19713
  {
@@ -19319,6 +19724,7 @@
19319
19724
  ]
19320
19725
  },
19321
19726
  {
19727
+ "title": "Clear to reset the list",
19322
19728
  "note": "With a value present, the clear (×) lets the user reset to the full list in one click.",
19323
19729
  "example": [
19324
19730
  {
@@ -19337,6 +19743,7 @@
19337
19743
  ],
19338
19744
  "dont": [
19339
19745
  {
19746
+ "title": "Name what the search covers",
19340
19747
  "note": "A vague 'Type here' doesn't say what the box searches.",
19341
19748
  "example": [
19342
19749
  {
@@ -19353,6 +19760,7 @@
19353
19760
  ]
19354
19761
  },
19355
19762
  {
19763
+ "title": "Clear to reset the list",
19356
19764
  "note": "A raw input with a magnifier drawn on top has no clear control and drifts from the theme.",
19357
19765
  "example": [
19358
19766
  {
@@ -20617,6 +21025,7 @@
20617
21025
  ],
20618
21026
  "do": [
20619
21027
  {
21028
+ "title": "Short, parallel labels",
20620
21029
  "note": "Short, parallel labels of similar length, so the pills are balanced and the row reads as one control.",
20621
21030
  "example": [
20622
21031
  {
@@ -20648,6 +21057,7 @@
20648
21057
  ],
20649
21058
  "dont": [
20650
21059
  {
21060
+ "title": "Short, parallel labels",
20651
21061
  "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
21062
  "example": [
20653
21063
  {
@@ -20764,7 +21174,7 @@
20764
21174
  "name": "helperText",
20765
21175
  "type": "string",
20766
21176
  "required": false,
20767
- "description": "Help text shown under the field when there is no error."
21177
+ "description": "Helper text shown under the field when there is no error."
20768
21178
  },
20769
21179
  {
20770
21180
  "name": "icon",
@@ -20948,6 +21358,7 @@
20948
21358
  ],
20949
21359
  "do": [
20950
21360
  {
21361
+ "title": "Searchable past ten options",
20951
21362
  "note": "Past ~10 options, searchable turns a long scroll into a quick type-to-find.",
20952
21363
  "example": [
20953
21364
  {
@@ -20981,6 +21392,7 @@
20981
21392
  ]
20982
21393
  },
20983
21394
  {
21395
+ "title": "A label and a placeholder",
20984
21396
  "note": "A label names the field and the placeholder tells the user what to pick.",
20985
21397
  "example": [
20986
21398
  {
@@ -21012,6 +21424,7 @@
21012
21424
  ]
21013
21425
  },
21014
21426
  {
21427
+ "title": "A specific error",
21015
21428
  "note": "A specific error says which choice is missing and why it matters.",
21016
21429
  "example": [
21017
21430
  {
@@ -21046,6 +21459,7 @@
21046
21459
  ],
21047
21460
  "dont": [
21048
21461
  {
21462
+ "title": "Searchable past ten options",
21049
21463
  "note": "A long, unsearchable list forces the user to scroll and scan every time.",
21050
21464
  "example": [
21051
21465
  {
@@ -21077,6 +21491,7 @@
21077
21491
  ]
21078
21492
  },
21079
21493
  {
21494
+ "title": "A label and a placeholder",
21080
21495
  "note": "No label and a bare 'Select' leave the field's purpose unclear.",
21081
21496
  "example": [
21082
21497
  {
@@ -21107,6 +21522,7 @@
21107
21522
  ]
21108
21523
  },
21109
21524
  {
21525
+ "title": "A specific error",
21110
21526
  "note": "'Required' just repeats the asterisk without helping.",
21111
21527
  "example": [
21112
21528
  {
@@ -21141,7 +21557,7 @@
21141
21557
  ],
21142
21558
  "a11y": [
21143
21559
  "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.",
21560
+ "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
21561
  "required and disabled are passed to the control, and required also draws a required mark in the label."
21146
21562
  ]
21147
21563
  }
@@ -22304,6 +22720,7 @@
22304
22720
  ],
22305
22721
  "do": [
22306
22722
  {
22723
+ "title": "Echo the layout that is loading",
22307
22724
  "note": "A few bars that echo the real layout, a heading over two body lines. The eye reads it as \"content, loading\".",
22308
22725
  "example": [
22309
22726
  {
@@ -22335,6 +22752,7 @@
22335
22752
  ]
22336
22753
  },
22337
22754
  {
22755
+ "title": "Match table columns while loading",
22338
22756
  "note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
22339
22757
  "example": [
22340
22758
  {
@@ -22359,6 +22777,7 @@
22359
22777
  ],
22360
22778
  "dont": [
22361
22779
  {
22780
+ "title": "Echo the layout that is loading",
22362
22781
  "note": "One giant block tells the user nothing about what's coming and reflows hard when the real, smaller content lands.",
22363
22782
  "example": [
22364
22783
  {
@@ -22371,6 +22790,7 @@
22371
22790
  ]
22372
22791
  },
22373
22792
  {
22793
+ "title": "Match table columns while loading",
22374
22794
  "note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
22375
22795
  "example": [
22376
22796
  {
@@ -22502,6 +22922,7 @@
22502
22922
  ],
22503
22923
  "do": [
22504
22924
  {
22925
+ "title": "Match skeleton columns to the table",
22505
22926
  "note": "Table skeletons use the same column count as the loaded table, so headers and widths never shift.",
22506
22927
  "example": [
22507
22928
  {
@@ -22526,6 +22947,7 @@
22526
22947
  ],
22527
22948
  "dont": [
22528
22949
  {
22950
+ "title": "Match skeleton columns to the table",
22529
22951
  "note": "Two loose bars where a table is loading leaves the columns to snap into place on arrival.",
22530
22952
  "example": [
22531
22953
  {
@@ -22795,7 +23217,7 @@
22795
23217
  "dont": [],
22796
23218
  "a11y": [
22797
23219
  "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.",
23220
+ "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
23221
  "A required slider shows a required mark beside its label and carries the required attribute."
22800
23222
  ]
22801
23223
  }
@@ -23098,6 +23520,7 @@
23098
23520
  ],
23099
23521
  "do": [
23100
23522
  {
23523
+ "title": "Name what is loading",
23101
23524
  "note": "A label that says what is happening, sized to sit inline with the thing it belongs to.",
23102
23525
  "example": [
23103
23526
  {
@@ -23112,6 +23535,7 @@
23112
23535
  ],
23113
23536
  "dont": [
23114
23537
  {
23538
+ "title": "Name what is loading",
23115
23539
  "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
23540
  "example": [
23117
23541
  {
@@ -23734,6 +24158,7 @@
23734
24158
  ],
23735
24159
  "do": [
23736
24160
  {
24161
+ "title": "Mark the open list item",
23737
24162
  "note": "One item is open and marked in the list, so it is clear what the pane shows.",
23738
24163
  "example": [
23739
24164
  {
@@ -23770,6 +24195,7 @@
23770
24195
  ]
23771
24196
  },
23772
24197
  {
24198
+ "title": "One line of context per item",
23773
24199
  "note": "Items carry a title and one line of context; the detail waits in the pane.",
23774
24200
  "example": [
23775
24201
  {
@@ -23809,6 +24235,7 @@
23809
24235
  ],
23810
24236
  "dont": [
23811
24237
  {
24238
+ "title": "Mark the open list item",
23812
24239
  "note": "A pane with content but no open item: nothing in the list says which item it belongs to.",
23813
24240
  "example": [
23814
24241
  {
@@ -23845,6 +24272,7 @@
23845
24272
  ]
23846
24273
  },
23847
24274
  {
24275
+ "title": "One line of context per item",
23848
24276
  "note": "Packing the detail into the list makes every item tall and the queue slow to scan.",
23849
24277
  "example": [
23850
24278
  {
@@ -23960,6 +24388,7 @@
23960
24388
  ],
23961
24389
  "do": [
23962
24390
  {
24391
+ "title": "One consistent tone per status",
23963
24392
  "note": "Each status maps to a consistent, meaningful tone: the colour reinforces the word.",
23964
24393
  "example": [
23965
24394
  {
@@ -23986,6 +24415,7 @@
23986
24415
  ]
23987
24416
  },
23988
24417
  {
24418
+ "title": "Pill holds one or two words",
23989
24419
  "note": "A single, concise status word, instantly scannable.",
23990
24420
  "example": [
23991
24421
  {
@@ -24000,6 +24430,7 @@
24000
24430
  ],
24001
24431
  "dont": [
24002
24432
  {
24433
+ "title": "One consistent tone per status",
24003
24434
  "note": "One tone for every status throws away the signal: the colour tells the user nothing.",
24004
24435
  "example": [
24005
24436
  {
@@ -24026,6 +24457,7 @@
24026
24457
  ]
24027
24458
  },
24028
24459
  {
24460
+ "title": "Pill holds one or two words",
24029
24461
  "note": "A pill is not a place for a sentence: keep the status to a word or two and explain elsewhere.",
24030
24462
  "example": [
24031
24463
  {
@@ -24225,6 +24657,7 @@
24225
24657
  ],
24226
24658
  "do": [
24227
24659
  {
24660
+ "title": "Name each step by its action",
24228
24661
  "note": "Label each step with the action it performs, and mark exactly one step active. Three to five steps is the readable range.",
24229
24662
  "example": [
24230
24663
  {
@@ -24253,6 +24686,7 @@
24253
24686
  ],
24254
24687
  "dont": [
24255
24688
  {
24689
+ "title": "Name each step by its action",
24256
24690
  "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
24691
  "example": [
24258
24692
  {
@@ -24427,6 +24861,7 @@
24427
24861
  ],
24428
24862
  "do": [
24429
24863
  {
24864
+ "title": "Use a switch for instant settings",
24430
24865
  "note": "An on/off setting that applies right away. The switch reads as a live control.",
24431
24866
  "example": [
24432
24867
  {
@@ -24442,6 +24877,7 @@
24442
24877
  ]
24443
24878
  },
24444
24879
  {
24880
+ "title": "Caption every switch",
24445
24881
  "note": "Each switch is captioned, so the user knows exactly what it controls and its current state.",
24446
24882
  "example": [
24447
24883
  {
@@ -24462,6 +24898,7 @@
24462
24898
  ],
24463
24899
  "dont": [
24464
24900
  {
24901
+ "title": "Use a switch for instant settings",
24465
24902
  "note": "A checkbox reads as a form field to submit later, the wrong signal for an instant toggle.",
24466
24903
  "example": [
24467
24904
  {
@@ -24474,6 +24911,7 @@
24474
24911
  ]
24475
24912
  },
24476
24913
  {
24914
+ "title": "Caption every switch",
24477
24915
  "note": "A bare switch with no caption leaves the user guessing what it turns on.",
24478
24916
  "example": [
24479
24917
  {
@@ -24664,6 +25102,7 @@
24664
25102
  ],
24665
25103
  "do": [
24666
25104
  {
25105
+ "title": "Show the page and the total",
24667
25106
  "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
25107
  "example": [
24669
25108
  {
@@ -24677,6 +25116,7 @@
24677
25116
  ]
24678
25117
  },
24679
25118
  {
25119
+ "title": "Sit the pager under its table",
24680
25120
  "note": "The pager sits flush under the table it controls, so the two read as one visual unit.",
24681
25121
  "example": [
24682
25122
  {
@@ -24739,6 +25179,7 @@
24739
25179
  ],
24740
25180
  "dont": [
24741
25181
  {
25182
+ "title": "Show the page and the total",
24742
25183
  "note": "Bare prev/next buttons with no page readout hide how big the list is or where the user stands.",
24743
25184
  "example": [
24744
25185
  {
@@ -24768,6 +25209,7 @@
24768
25209
  ]
24769
25210
  },
24770
25211
  {
25212
+ "title": "Sit the pager under its table",
24771
25213
  "note": "A pager floating above its table breaks the expected footer placement and reads as disconnected.",
24772
25214
  "example": [
24773
25215
  {
@@ -24943,6 +25385,7 @@
24943
25385
  ],
24944
25386
  "do": [
24945
25387
  {
25388
+ "title": "Show bulk actions only when selected",
24946
25389
  "note": "Bulk actions appear only while rows are selected, with the count and a way out.",
24947
25390
  "example": [
24948
25391
  {
@@ -24963,6 +25406,7 @@
24963
25406
  ]
24964
25407
  },
24965
25408
  {
25409
+ "title": "Filters left, search and actions right",
24966
25410
  "note": "Filters narrow the rows on the left; search and actions sit on the right.",
24967
25411
  "example": [
24968
25412
  {
@@ -25026,6 +25470,7 @@
25026
25470
  ],
25027
25471
  "dont": [
25028
25472
  {
25473
+ "title": "Show bulk actions only when selected",
25029
25474
  "note": "A row of always-visible, disabled bulk buttons takes space and explains nothing until something is selected.",
25030
25475
  "example": [
25031
25476
  {
@@ -25057,6 +25502,7 @@
25057
25502
  ]
25058
25503
  },
25059
25504
  {
25505
+ "title": "Filters left, search and actions right",
25060
25506
  "note": "Search first and filters last, scattered with no shared strip: the eye has no fixed place to look.",
25061
25507
  "example": [
25062
25508
  {
@@ -25355,6 +25801,7 @@
25355
25801
  ],
25356
25802
  "do": [
25357
25803
  {
25804
+ "title": "Short labels for peer views",
25358
25805
  "note": "A few short, peer labels: the user sees every view at a glance.",
25359
25806
  "example": [
25360
25807
  {
@@ -25381,6 +25828,7 @@
25381
25828
  ]
25382
25829
  },
25383
25830
  {
25831
+ "title": "Tabs switch views, never steps",
25384
25832
  "note": "A count on a filter tab tells the user how much is behind it before they click.",
25385
25833
  "example": [
25386
25834
  {
@@ -25407,6 +25855,7 @@
25407
25855
  ],
25408
25856
  "dont": [
25409
25857
  {
25858
+ "title": "Short labels for peer views",
25410
25859
  "note": "Sentence-long labels break the scannable rhythm a tab strip depends on.",
25411
25860
  "example": [
25412
25861
  {
@@ -25433,6 +25882,7 @@
25433
25882
  ]
25434
25883
  },
25435
25884
  {
25885
+ "title": "Tabs switch views, never steps",
25436
25886
  "note": "Fitted pills read as a segmented control. Do not use them for sequential steps; that is a stepper.",
25437
25887
  "example": [
25438
25888
  {
@@ -25538,7 +25988,7 @@
25538
25988
  "name": "helperText",
25539
25989
  "type": "string",
25540
25990
  "required": false,
25541
- "description": "Help text under the field."
25991
+ "description": "Helper text under the field."
25542
25992
  },
25543
25993
  {
25544
25994
  "name": "id",
@@ -25654,6 +26104,7 @@
25654
26104
  ],
25655
26105
  "do": [
25656
26106
  {
26107
+ "title": "Name the keys in helper text",
25657
26108
  "note": "Helper text that names the commit keys (Enter and comma) tells the user how to add a tag without trial and error.",
25658
26109
  "example": [
25659
26110
  {
@@ -25670,6 +26121,26 @@
25670
26121
  ]
25671
26122
  },
25672
26123
  {
26124
+ "title": "Free text, not a fixed list",
26125
+ "note": "Use AppSelect or AppMultiSelect when the choices are a fixed set.",
26126
+ "example": [
26127
+ {
26128
+ "component": "AppMultiSelect",
26129
+ "props": {
26130
+ "label": "Categories",
26131
+ "name": "categories",
26132
+ "options": [
26133
+ {
26134
+ "value": "css",
26135
+ "label": "CSS"
26136
+ }
26137
+ ]
26138
+ }
26139
+ }
26140
+ ]
26141
+ },
26142
+ {
26143
+ "title": "Placeholder that names paste",
25673
26144
  "note": "A placeholder that mentions paste tells the user they can drop a whole list in at once.",
25674
26145
  "example": [
25675
26146
  {
@@ -25684,6 +26155,7 @@
25684
26155
  ],
25685
26156
  "dont": [
25686
26157
  {
26158
+ "title": "Name the keys in helper text",
25687
26159
  "note": "No helper text at all: a first-time user may not discover that Enter or comma commits a tag.",
25688
26160
  "example": [
25689
26161
  {
@@ -25699,6 +26171,7 @@
25699
26171
  ]
25700
26172
  },
25701
26173
  {
26174
+ "title": "Free text, not a fixed list",
25702
26175
  "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
26176
  "example": [
25704
26177
  {
@@ -25718,6 +26191,19 @@
25718
26191
  }
25719
26192
  }
25720
26193
  ]
26194
+ },
26195
+ {
26196
+ "title": "Placeholder that names paste",
26197
+ "note": "A placeholder that only says what to type hides that a whole pasted list splits into tags.",
26198
+ "example": [
26199
+ {
26200
+ "component": "AppTagInput",
26201
+ "props": {
26202
+ "label": "Recipients",
26203
+ "placeholder": "Add a recipient"
26204
+ }
26205
+ }
26206
+ ]
25721
26207
  }
25722
26208
  ],
25723
26209
  "a11y": [
@@ -25764,7 +26250,7 @@
25764
26250
  "name": "error",
25765
26251
  "type": "string",
25766
26252
  "required": false,
25767
- "description": "An error message. It replaces the hint and marks the field invalid."
26253
+ "description": "An error message. It replaces the helper text and marks the field invalid."
25768
26254
  },
25769
26255
  {
25770
26256
  "name": "fieldClassName",
@@ -25790,7 +26276,7 @@
25790
26276
  "name": "helperText",
25791
26277
  "type": "string",
25792
26278
  "required": false,
25793
- "description": "Help text under the field."
26279
+ "description": "Helper text under the field."
25794
26280
  },
25795
26281
  {
25796
26282
  "name": "id",
@@ -25903,7 +26389,7 @@
25903
26389
  "usage": {
25904
26390
  "when": [
25905
26391
  "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.",
26392
+ "You want the same labelled treatment (helper text, error, required) as the rest of the form, for a longer answer.",
25907
26393
  "The user might write a few words or a few paragraphs and you can't predict which."
25908
26394
  ],
25909
26395
  "whenNot": [
@@ -25922,6 +26408,7 @@
25922
26408
  ],
25923
26409
  "do": [
25924
26410
  {
26411
+ "title": "Keep a visible label",
25925
26412
  "note": "A visible label stays put while the user types and is read by screen readers.",
25926
26413
  "example": [
25927
26414
  {
@@ -25935,6 +26422,7 @@
25935
26422
  ]
25936
26423
  },
25937
26424
  {
26425
+ "title": "Match the height to the answer",
25938
26426
  "note": "A height that matches the expected answer keeps the form compact and scannable.",
25939
26427
  "example": [
25940
26428
  {
@@ -25949,6 +26437,7 @@
25949
26437
  ]
25950
26438
  },
25951
26439
  {
26440
+ "title": "Say exactly what to change",
25952
26441
  "note": "A specific error tells the user exactly what to change.",
25953
26442
  "example": [
25954
26443
  {
@@ -25965,6 +26454,7 @@
25965
26454
  ],
25966
26455
  "dont": [
25967
26456
  {
26457
+ "title": "Keep a visible label",
25968
26458
  "note": "A placeholder used as the label vanishes on the first keystroke and fails accessibility.",
25969
26459
  "example": [
25970
26460
  {
@@ -25977,6 +26467,7 @@
25977
26467
  ]
25978
26468
  },
25979
26469
  {
26470
+ "title": "Match the height to the answer",
25980
26471
  "note": "An oversized box wastes space and signals 'write an essay' when you wanted a sentence.",
25981
26472
  "example": [
25982
26473
  {
@@ -25991,6 +26482,7 @@
25991
26482
  ]
25992
26483
  },
25993
26484
  {
26485
+ "title": "Say exactly what to change",
25994
26486
  "note": "'Invalid' leaves them guessing what is actually wrong.",
25995
26487
  "example": [
25996
26488
  {
@@ -26008,7 +26500,7 @@
26008
26500
  "a11y": [
26009
26501
  "The label is tied to the field with a for and id pair, and a generated id is used when none is given.",
26010
26502
  "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.",
26503
+ "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
26504
  "The info tip beside the label is named by helpLabel."
26013
26505
  ]
26014
26506
  }
@@ -26229,7 +26721,7 @@
26229
26721
  "name": "helperText",
26230
26722
  "type": "string",
26231
26723
  "required": false,
26232
- "description": "Help text under the field."
26724
+ "description": "Helper text under the field."
26233
26725
  },
26234
26726
  {
26235
26727
  "name": "id",
@@ -26560,6 +27052,7 @@
26560
27052
  ],
26561
27053
  "do": [
26562
27054
  {
27055
+ "title": "Record what happened, by whom, when",
26563
27056
  "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
27057
  "example": [
26565
27058
  {
@@ -26583,6 +27076,7 @@
26583
27076
  ],
26584
27077
  "dont": [
26585
27078
  {
27079
+ "title": "Record what happened, by whom, when",
26586
27080
  "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
27081
  "example": [
26588
27082
  {
@@ -27476,6 +27970,7 @@
27476
27970
  ],
27477
27971
  "do": [
27478
27972
  {
27973
+ "title": "Let people choose when to reload",
27479
27974
  "note": "Tell the person and let them choose when to reload.",
27480
27975
  "example": [
27481
27976
  {
@@ -27487,6 +27982,7 @@
27487
27982
  ],
27488
27983
  "dont": [
27489
27984
  {
27985
+ "title": "Let people choose when to reload",
27490
27986
  "note": "A forced reload throws away what the person was typing.",
27491
27987
  "example": [
27492
27988
  {
@@ -28093,6 +28589,7 @@
28093
28589
  ],
28094
28590
  "do": [
28095
28591
  {
28592
+ "title": "Name the current workspace",
28096
28593
  "note": "The current workspace is named on the trigger, ticked in the list, and settings are one row away.",
28097
28594
  "example": [
28098
28595
  {
@@ -28137,6 +28634,7 @@
28137
28634
  ]
28138
28635
  },
28139
28636
  {
28637
+ "title": "Filter only a long list",
28140
28638
  "note": "Eight workspaces get a filter box, so finding one is typing rather than scrolling.",
28141
28639
  "example": [
28142
28640
  {
@@ -28186,6 +28684,7 @@
28186
28684
  ],
28187
28685
  "dont": [
28188
28686
  {
28687
+ "title": "Name the current workspace",
28189
28688
  "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
28689
  "example": [
28191
28690
  {
@@ -28213,6 +28712,7 @@
28213
28712
  ]
28214
28713
  },
28215
28714
  {
28715
+ "title": "Filter only a long list",
28216
28716
  "note": "Three workspaces behind a search box: a control to skip past on the way to something already visible.",
28217
28717
  "example": [
28218
28718
  {