@ponchia/ui 0.6.0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -4
- package/README.md +1 -1
- package/annotations/index.d.ts.map +1 -1
- package/annotations/index.js +36 -33
- package/behaviors/carousel.d.ts +28 -0
- package/behaviors/carousel.d.ts.map +1 -0
- package/behaviors/carousel.js +3 -0
- package/behaviors/combobox.d.ts +40 -0
- package/behaviors/combobox.d.ts.map +1 -0
- package/behaviors/combobox.js +71 -20
- package/behaviors/command.d.ts +41 -0
- package/behaviors/command.d.ts.map +1 -0
- package/behaviors/command.js +9 -0
- package/behaviors/connectors.d.ts +17 -0
- package/behaviors/connectors.d.ts.map +1 -0
- package/behaviors/connectors.js +3 -0
- package/behaviors/crosshair.d.ts +42 -0
- package/behaviors/crosshair.d.ts.map +1 -0
- package/behaviors/crosshair.js +19 -1
- package/behaviors/dialog.d.ts +20 -0
- package/behaviors/dialog.d.ts.map +1 -0
- package/behaviors/dialog.js +3 -0
- package/behaviors/disclosure.d.ts +10 -0
- package/behaviors/disclosure.d.ts.map +1 -0
- package/behaviors/disclosure.js +3 -0
- package/behaviors/dismissible.d.ts +10 -0
- package/behaviors/dismissible.d.ts.map +1 -0
- package/behaviors/dismissible.js +3 -0
- package/behaviors/forms.d.ts +27 -0
- package/behaviors/forms.d.ts.map +1 -0
- package/behaviors/forms.js +18 -5
- package/behaviors/glyph.d.ts +14 -0
- package/behaviors/glyph.d.ts.map +1 -0
- package/behaviors/glyph.js +24 -0
- package/behaviors/index.d.ts +31 -237
- package/behaviors/index.d.ts.map +1 -0
- package/behaviors/index.js +17 -0
- package/behaviors/inert.d.ts +20 -0
- package/behaviors/inert.d.ts.map +1 -0
- package/behaviors/inert.js +46 -0
- package/behaviors/internal.d.ts +25 -0
- package/behaviors/internal.d.ts.map +1 -0
- package/behaviors/internal.js +30 -1
- package/behaviors/legend.d.ts +35 -0
- package/behaviors/legend.d.ts.map +1 -0
- package/behaviors/legend.js +9 -0
- package/behaviors/menu.d.ts +16 -0
- package/behaviors/menu.d.ts.map +1 -0
- package/behaviors/menu.js +3 -0
- package/behaviors/modal.d.ts +41 -0
- package/behaviors/modal.d.ts.map +1 -0
- package/behaviors/modal.js +124 -0
- package/behaviors/popover.d.ts +28 -0
- package/behaviors/popover.d.ts.map +1 -0
- package/behaviors/popover.js +17 -17
- package/behaviors/spotlight.d.ts +17 -0
- package/behaviors/spotlight.d.ts.map +1 -0
- package/behaviors/spotlight.js +3 -0
- package/behaviors/table.d.ts +36 -0
- package/behaviors/table.d.ts.map +1 -0
- package/behaviors/table.js +48 -8
- package/behaviors/tabs.d.ts +20 -0
- package/behaviors/tabs.d.ts.map +1 -0
- package/behaviors/tabs.js +3 -0
- package/behaviors/theme.d.ts +54 -0
- package/behaviors/theme.d.ts.map +1 -0
- package/behaviors/theme.js +17 -0
- package/behaviors/toast.d.ts +49 -0
- package/behaviors/toast.d.ts.map +1 -0
- package/behaviors/toast.js +34 -2
- package/classes/classes.json +683 -13
- package/classes/index.d.ts +106 -2
- package/classes/index.js +249 -65
- package/connectors/index.d.ts +12 -0
- package/connectors/index.d.ts.map +1 -1
- package/connectors/index.js +23 -2
- package/css/app.css +26 -0
- package/css/bullet.css +108 -0
- package/css/code.css +98 -0
- package/css/content.css +15 -2
- package/css/crosshair.css +7 -7
- package/css/diff.css +153 -0
- package/css/disclosure.css +18 -4
- package/css/dots.css +37 -7
- package/css/feedback.css +39 -7
- package/css/forms.css +71 -3
- package/css/legend.css +5 -2
- package/css/motion.css +79 -14
- package/css/overlay.css +59 -2
- package/css/primitives.css +67 -8
- package/css/report.css +40 -0
- package/css/sidenote.css +67 -0
- package/css/spark.css +62 -0
- package/css/table.css +9 -2
- package/css/term.css +110 -0
- package/css/textref.css +63 -0
- package/css/toc.css +91 -0
- package/css/tokens.css +14 -1
- package/css/tree.css +134 -0
- package/dist/bronto.css +1 -1
- package/dist/css/analytical.css +1 -1
- package/dist/css/app.css +1 -1
- package/dist/css/bullet.css +1 -0
- package/dist/css/code.css +1 -0
- package/dist/css/content.css +1 -1
- package/dist/css/crosshair.css +1 -1
- package/dist/css/diff.css +1 -0
- package/dist/css/disclosure.css +1 -1
- package/dist/css/dots.css +1 -1
- package/dist/css/feedback.css +1 -1
- package/dist/css/forms.css +1 -1
- package/dist/css/legend.css +1 -1
- package/dist/css/motion.css +1 -1
- package/dist/css/overlay.css +1 -1
- package/dist/css/primitives.css +1 -1
- package/dist/css/report.css +1 -1
- package/dist/css/sidenote.css +1 -0
- package/dist/css/spark.css +1 -0
- package/dist/css/table.css +1 -1
- package/dist/css/term.css +1 -0
- package/dist/css/textref.css +1 -0
- package/dist/css/toc.css +1 -0
- package/dist/css/tokens.css +1 -1
- package/dist/css/tree.css +1 -0
- package/docs/annotations.md +39 -0
- package/docs/architecture.md +2 -3
- package/docs/bullet.md +78 -0
- package/docs/code.md +76 -0
- package/docs/d2.md +4 -3
- package/docs/diff.md +146 -0
- package/docs/legends.md +8 -4
- package/docs/mermaid.md +21 -4
- package/docs/reference.md +127 -8
- package/docs/reporting.md +35 -14
- package/docs/sidenote.md +64 -0
- package/docs/spark.md +78 -0
- package/docs/stability.md +1 -0
- package/docs/term.md +81 -0
- package/docs/textref.md +78 -0
- package/docs/theming.md +44 -5
- package/docs/toc.md +83 -0
- package/docs/tree.md +74 -0
- package/docs/usage.md +264 -23
- package/docs/vega.md +22 -3
- package/glyphs/glyphs.js +7 -1
- package/llms.txt +159 -13
- package/package.json +47 -7
- package/qwik/index.d.ts +4 -2
- package/qwik/index.d.ts.map +1 -1
- package/qwik/index.js +10 -0
- package/react/index.d.ts +4 -2
- package/react/index.d.ts.map +1 -1
- package/react/index.js +6 -0
- package/solid/index.d.ts +6 -2
- package/solid/index.d.ts.map +1 -1
- package/solid/index.js +6 -0
package/classes/classes.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "@ponchia/ui class vocabulary as language-neutral data — validate emitted markup without executing the ESM cls map or parsing the .d.ts. Generated from classes/index.js — do not edit by hand; run `npm run classes:json:build`. Drift-checked in CI. `states` is the author-applied `is-*` hooks (runtime/behavior-managed hooks are excluded); `states` + `customProperties` are documented in docs/reference.md and ship outside `cls` by design.",
|
|
2
|
+
"$comment": "@ponchia/ui class vocabulary as language-neutral data — validate emitted markup without executing the ESM cls map or parsing the .d.ts. Generated from classes/index.js — do not edit by hand; run `npm run classes:json:build`. Drift-checked in CI. `groups[].base` is null for a parts-only namespace (no standalone base class — do NOT emit it). A modifier whose name contains `__` (e.g. `ui-spark__bar--pos`) attaches to THAT part, not the base host. `states` is the author-applied `is-*` hooks (runtime/behavior-managed hooks are excluded); `behaviorAttributes` are the `data-bronto-*` wiring hooks the optional behaviors delegate on; `requiredAria` is the role/aria a generator must emit per component. `states` + `customProperties` are documented in docs/reference.md and ship outside `cls` by design.",
|
|
3
3
|
"counts": {
|
|
4
|
-
"classes":
|
|
5
|
-
"groups":
|
|
4
|
+
"classes": 529,
|
|
5
|
+
"groups": 161
|
|
6
6
|
},
|
|
7
7
|
"groups": {
|
|
8
8
|
"ui-accordion": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"parts": [
|
|
27
27
|
"ui-alert__body",
|
|
28
|
-
"ui-
|
|
28
|
+
"ui-alert__close",
|
|
29
29
|
"ui-alert__title"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -220,6 +220,19 @@
|
|
|
220
220
|
"modifiers": [],
|
|
221
221
|
"parts": []
|
|
222
222
|
},
|
|
223
|
+
"ui-bullet": {
|
|
224
|
+
"base": "ui-bullet",
|
|
225
|
+
"modifiers": [
|
|
226
|
+
"ui-bullet__measure--accent",
|
|
227
|
+
"ui-bullet__measure--neg",
|
|
228
|
+
"ui-bullet__measure--pos"
|
|
229
|
+
],
|
|
230
|
+
"parts": [
|
|
231
|
+
"ui-bullet__label",
|
|
232
|
+
"ui-bullet__measure",
|
|
233
|
+
"ui-bullet__target"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
223
236
|
"ui-button": {
|
|
224
237
|
"base": "ui-button",
|
|
225
238
|
"modifiers": [
|
|
@@ -292,6 +305,20 @@
|
|
|
292
305
|
],
|
|
293
306
|
"parts": []
|
|
294
307
|
},
|
|
308
|
+
"ui-code": {
|
|
309
|
+
"base": "ui-code",
|
|
310
|
+
"modifiers": [
|
|
311
|
+
"ui-code--numbered",
|
|
312
|
+
"ui-code__line--add",
|
|
313
|
+
"ui-code__line--hl",
|
|
314
|
+
"ui-code__line--remove"
|
|
315
|
+
],
|
|
316
|
+
"parts": [
|
|
317
|
+
"ui-code__body",
|
|
318
|
+
"ui-code__head",
|
|
319
|
+
"ui-code__line"
|
|
320
|
+
]
|
|
321
|
+
},
|
|
295
322
|
"ui-combobox": {
|
|
296
323
|
"base": "ui-combobox",
|
|
297
324
|
"modifiers": [],
|
|
@@ -367,6 +394,11 @@
|
|
|
367
394
|
"ui-crosshair__line"
|
|
368
395
|
]
|
|
369
396
|
},
|
|
397
|
+
"ui-def": {
|
|
398
|
+
"base": "ui-def",
|
|
399
|
+
"modifiers": [],
|
|
400
|
+
"parts": []
|
|
401
|
+
},
|
|
370
402
|
"ui-delta": {
|
|
371
403
|
"base": "ui-delta",
|
|
372
404
|
"modifiers": [
|
|
@@ -377,6 +409,23 @@
|
|
|
377
409
|
],
|
|
378
410
|
"parts": []
|
|
379
411
|
},
|
|
412
|
+
"ui-diff": {
|
|
413
|
+
"base": "ui-diff",
|
|
414
|
+
"modifiers": [
|
|
415
|
+
"ui-diff--split",
|
|
416
|
+
"ui-diff__row--add",
|
|
417
|
+
"ui-diff__row--context",
|
|
418
|
+
"ui-diff__row--remove"
|
|
419
|
+
],
|
|
420
|
+
"parts": [
|
|
421
|
+
"ui-diff__code",
|
|
422
|
+
"ui-diff__head",
|
|
423
|
+
"ui-diff__hunk",
|
|
424
|
+
"ui-diff__ln",
|
|
425
|
+
"ui-diff__pane",
|
|
426
|
+
"ui-diff__row"
|
|
427
|
+
]
|
|
428
|
+
},
|
|
380
429
|
"ui-display": {
|
|
381
430
|
"base": "ui-display",
|
|
382
431
|
"modifiers": [],
|
|
@@ -487,6 +536,14 @@
|
|
|
487
536
|
"ui-generated__label"
|
|
488
537
|
]
|
|
489
538
|
},
|
|
539
|
+
"ui-glossary": {
|
|
540
|
+
"base": "ui-glossary",
|
|
541
|
+
"modifiers": [],
|
|
542
|
+
"parts": [
|
|
543
|
+
"ui-glossary__def",
|
|
544
|
+
"ui-glossary__term"
|
|
545
|
+
]
|
|
546
|
+
},
|
|
490
547
|
"ui-grid": {
|
|
491
548
|
"base": "ui-grid",
|
|
492
549
|
"modifiers": [],
|
|
@@ -602,6 +659,11 @@
|
|
|
602
659
|
],
|
|
603
660
|
"parts": []
|
|
604
661
|
},
|
|
662
|
+
"ui-marginnote": {
|
|
663
|
+
"base": "ui-marginnote",
|
|
664
|
+
"modifiers": [],
|
|
665
|
+
"parts": []
|
|
666
|
+
},
|
|
605
667
|
"ui-mark": {
|
|
606
668
|
"base": "ui-mark",
|
|
607
669
|
"modifiers": [
|
|
@@ -654,7 +716,10 @@
|
|
|
654
716
|
"ui-meter--warning"
|
|
655
717
|
],
|
|
656
718
|
"parts": [
|
|
657
|
-
"ui-meter__fill"
|
|
719
|
+
"ui-meter__fill",
|
|
720
|
+
"ui-meter__label",
|
|
721
|
+
"ui-meter__row",
|
|
722
|
+
"ui-meter__value"
|
|
658
723
|
]
|
|
659
724
|
},
|
|
660
725
|
"ui-modal": {
|
|
@@ -886,6 +951,13 @@
|
|
|
886
951
|
"modifiers": [],
|
|
887
952
|
"parts": []
|
|
888
953
|
},
|
|
954
|
+
"ui-sidenote": {
|
|
955
|
+
"base": "ui-sidenote",
|
|
956
|
+
"modifiers": [],
|
|
957
|
+
"parts": [
|
|
958
|
+
"ui-sidenote__ref"
|
|
959
|
+
]
|
|
960
|
+
},
|
|
889
961
|
"ui-sitefooter": {
|
|
890
962
|
"base": "ui-sitefooter",
|
|
891
963
|
"modifiers": [],
|
|
@@ -943,6 +1015,17 @@
|
|
|
943
1015
|
"ui-source-list__item"
|
|
944
1016
|
]
|
|
945
1017
|
},
|
|
1018
|
+
"ui-spark": {
|
|
1019
|
+
"base": "ui-spark",
|
|
1020
|
+
"modifiers": [
|
|
1021
|
+
"ui-spark__bar--accent",
|
|
1022
|
+
"ui-spark__bar--neg",
|
|
1023
|
+
"ui-spark__bar--pos"
|
|
1024
|
+
],
|
|
1025
|
+
"parts": [
|
|
1026
|
+
"ui-spark__bar"
|
|
1027
|
+
]
|
|
1028
|
+
},
|
|
946
1029
|
"ui-spinner": {
|
|
947
1030
|
"base": "ui-spinner",
|
|
948
1031
|
"modifiers": [],
|
|
@@ -1063,7 +1146,6 @@
|
|
|
1063
1146
|
"ui-table--comfortable",
|
|
1064
1147
|
"ui-table--dense",
|
|
1065
1148
|
"ui-table--lined",
|
|
1066
|
-
"ui-table--loading",
|
|
1067
1149
|
"ui-table--selectable"
|
|
1068
1150
|
],
|
|
1069
1151
|
"parts": [
|
|
@@ -1075,7 +1157,9 @@
|
|
|
1075
1157
|
},
|
|
1076
1158
|
"ui-table-wrap": {
|
|
1077
1159
|
"base": "ui-table-wrap",
|
|
1078
|
-
"modifiers": [
|
|
1160
|
+
"modifiers": [
|
|
1161
|
+
"ui-table-wrap--loading"
|
|
1162
|
+
],
|
|
1079
1163
|
"parts": []
|
|
1080
1164
|
},
|
|
1081
1165
|
"ui-tabs": {
|
|
@@ -1098,13 +1182,23 @@
|
|
|
1098
1182
|
"modifiers": [],
|
|
1099
1183
|
"parts": []
|
|
1100
1184
|
},
|
|
1185
|
+
"ui-term": {
|
|
1186
|
+
"base": "ui-term",
|
|
1187
|
+
"modifiers": [],
|
|
1188
|
+
"parts": []
|
|
1189
|
+
},
|
|
1101
1190
|
"ui-textarea": {
|
|
1102
1191
|
"base": "ui-textarea",
|
|
1103
1192
|
"modifiers": [],
|
|
1104
1193
|
"parts": []
|
|
1105
1194
|
},
|
|
1195
|
+
"ui-textref": {
|
|
1196
|
+
"base": "ui-textref",
|
|
1197
|
+
"modifiers": [],
|
|
1198
|
+
"parts": []
|
|
1199
|
+
},
|
|
1106
1200
|
"ui-themetoggle": {
|
|
1107
|
-
"base":
|
|
1201
|
+
"base": null,
|
|
1108
1202
|
"modifiers": [],
|
|
1109
1203
|
"parts": [
|
|
1110
1204
|
"ui-themetoggle__button",
|
|
@@ -1143,6 +1237,15 @@
|
|
|
1143
1237
|
],
|
|
1144
1238
|
"parts": []
|
|
1145
1239
|
},
|
|
1240
|
+
"ui-toc": {
|
|
1241
|
+
"base": "ui-toc",
|
|
1242
|
+
"modifiers": [],
|
|
1243
|
+
"parts": [
|
|
1244
|
+
"ui-toc__link",
|
|
1245
|
+
"ui-toc__list",
|
|
1246
|
+
"ui-toc__title"
|
|
1247
|
+
]
|
|
1248
|
+
},
|
|
1146
1249
|
"ui-tool-call": {
|
|
1147
1250
|
"base": "ui-tool-call",
|
|
1148
1251
|
"modifiers": [],
|
|
@@ -1174,6 +1277,16 @@
|
|
|
1174
1277
|
"ui-tour-note__title"
|
|
1175
1278
|
]
|
|
1176
1279
|
},
|
|
1280
|
+
"ui-tree": {
|
|
1281
|
+
"base": "ui-tree",
|
|
1282
|
+
"modifiers": [],
|
|
1283
|
+
"parts": [
|
|
1284
|
+
"ui-tree__branch",
|
|
1285
|
+
"ui-tree__label",
|
|
1286
|
+
"ui-tree__leaf",
|
|
1287
|
+
"ui-tree__summary"
|
|
1288
|
+
]
|
|
1289
|
+
},
|
|
1177
1290
|
"ui-visually-hidden": {
|
|
1178
1291
|
"base": "ui-visually-hidden",
|
|
1179
1292
|
"modifiers": [],
|
|
@@ -1197,7 +1310,7 @@
|
|
|
1197
1310
|
"ui-alert--success",
|
|
1198
1311
|
"ui-alert--warning",
|
|
1199
1312
|
"ui-alert__body",
|
|
1200
|
-
"ui-
|
|
1313
|
+
"ui-alert__close",
|
|
1201
1314
|
"ui-alert__title",
|
|
1202
1315
|
"ui-animate-dot",
|
|
1203
1316
|
"ui-animate-fade",
|
|
@@ -1284,6 +1397,13 @@
|
|
|
1284
1397
|
"ui-breadcrumb__item",
|
|
1285
1398
|
"ui-break-after",
|
|
1286
1399
|
"ui-break-before",
|
|
1400
|
+
"ui-bullet",
|
|
1401
|
+
"ui-bullet__label",
|
|
1402
|
+
"ui-bullet__measure",
|
|
1403
|
+
"ui-bullet__measure--accent",
|
|
1404
|
+
"ui-bullet__measure--neg",
|
|
1405
|
+
"ui-bullet__measure--pos",
|
|
1406
|
+
"ui-bullet__target",
|
|
1287
1407
|
"ui-button",
|
|
1288
1408
|
"ui-button--danger",
|
|
1289
1409
|
"ui-button--ghost",
|
|
@@ -1313,6 +1433,14 @@
|
|
|
1313
1433
|
"ui-citation--chip",
|
|
1314
1434
|
"ui-cluster",
|
|
1315
1435
|
"ui-cluster--between",
|
|
1436
|
+
"ui-code",
|
|
1437
|
+
"ui-code--numbered",
|
|
1438
|
+
"ui-code__body",
|
|
1439
|
+
"ui-code__head",
|
|
1440
|
+
"ui-code__line",
|
|
1441
|
+
"ui-code__line--add",
|
|
1442
|
+
"ui-code__line--hl",
|
|
1443
|
+
"ui-code__line--remove",
|
|
1316
1444
|
"ui-combobox",
|
|
1317
1445
|
"ui-combobox__empty",
|
|
1318
1446
|
"ui-combobox__input",
|
|
@@ -1351,11 +1479,23 @@
|
|
|
1351
1479
|
"ui-crosshair__line",
|
|
1352
1480
|
"ui-crosshair__line--x",
|
|
1353
1481
|
"ui-crosshair__line--y",
|
|
1482
|
+
"ui-def",
|
|
1354
1483
|
"ui-delta",
|
|
1355
1484
|
"ui-delta--down",
|
|
1356
1485
|
"ui-delta--flat",
|
|
1357
1486
|
"ui-delta--invert",
|
|
1358
1487
|
"ui-delta--up",
|
|
1488
|
+
"ui-diff",
|
|
1489
|
+
"ui-diff--split",
|
|
1490
|
+
"ui-diff__code",
|
|
1491
|
+
"ui-diff__head",
|
|
1492
|
+
"ui-diff__hunk",
|
|
1493
|
+
"ui-diff__ln",
|
|
1494
|
+
"ui-diff__pane",
|
|
1495
|
+
"ui-diff__row",
|
|
1496
|
+
"ui-diff__row--add",
|
|
1497
|
+
"ui-diff__row--context",
|
|
1498
|
+
"ui-diff__row--remove",
|
|
1359
1499
|
"ui-display",
|
|
1360
1500
|
"ui-divider",
|
|
1361
1501
|
"ui-dot",
|
|
@@ -1393,6 +1533,9 @@
|
|
|
1393
1533
|
"ui-file",
|
|
1394
1534
|
"ui-generated",
|
|
1395
1535
|
"ui-generated__label",
|
|
1536
|
+
"ui-glossary",
|
|
1537
|
+
"ui-glossary__def",
|
|
1538
|
+
"ui-glossary__term",
|
|
1396
1539
|
"ui-grid",
|
|
1397
1540
|
"ui-hint",
|
|
1398
1541
|
"ui-hint--error",
|
|
@@ -1443,6 +1586,7 @@
|
|
|
1443
1586
|
"ui-link",
|
|
1444
1587
|
"ui-link--arrow",
|
|
1445
1588
|
"ui-link--cta",
|
|
1589
|
+
"ui-marginnote",
|
|
1446
1590
|
"ui-mark",
|
|
1447
1591
|
"ui-mark--accent",
|
|
1448
1592
|
"ui-mark--box",
|
|
@@ -1469,6 +1613,9 @@
|
|
|
1469
1613
|
"ui-meter--success",
|
|
1470
1614
|
"ui-meter--warning",
|
|
1471
1615
|
"ui-meter__fill",
|
|
1616
|
+
"ui-meter__label",
|
|
1617
|
+
"ui-meter__row",
|
|
1618
|
+
"ui-meter__value",
|
|
1472
1619
|
"ui-modal",
|
|
1473
1620
|
"ui-modal--drawer",
|
|
1474
1621
|
"ui-modal__body",
|
|
@@ -1550,6 +1697,8 @@
|
|
|
1550
1697
|
"ui-shortcut",
|
|
1551
1698
|
"ui-shortcut__sep",
|
|
1552
1699
|
"ui-sidebar",
|
|
1700
|
+
"ui-sidenote",
|
|
1701
|
+
"ui-sidenote__ref",
|
|
1553
1702
|
"ui-sitefooter",
|
|
1554
1703
|
"ui-sitefooter__links",
|
|
1555
1704
|
"ui-siteheader",
|
|
@@ -1569,6 +1718,11 @@
|
|
|
1569
1718
|
"ui-source-card__title",
|
|
1570
1719
|
"ui-source-list",
|
|
1571
1720
|
"ui-source-list__item",
|
|
1721
|
+
"ui-spark",
|
|
1722
|
+
"ui-spark__bar",
|
|
1723
|
+
"ui-spark__bar--accent",
|
|
1724
|
+
"ui-spark__bar--neg",
|
|
1725
|
+
"ui-spark__bar--pos",
|
|
1572
1726
|
"ui-spinner",
|
|
1573
1727
|
"ui-spotlight",
|
|
1574
1728
|
"ui-spotlight--ring",
|
|
@@ -1617,9 +1771,9 @@
|
|
|
1617
1771
|
"ui-table--comfortable",
|
|
1618
1772
|
"ui-table--dense",
|
|
1619
1773
|
"ui-table--lined",
|
|
1620
|
-
"ui-table--loading",
|
|
1621
1774
|
"ui-table--selectable",
|
|
1622
1775
|
"ui-table-wrap",
|
|
1776
|
+
"ui-table-wrap--loading",
|
|
1623
1777
|
"ui-table__empty",
|
|
1624
1778
|
"ui-table__select",
|
|
1625
1779
|
"ui-table__sort",
|
|
@@ -1630,7 +1784,9 @@
|
|
|
1630
1784
|
"ui-tag",
|
|
1631
1785
|
"ui-tag--accent",
|
|
1632
1786
|
"ui-tags",
|
|
1787
|
+
"ui-term",
|
|
1633
1788
|
"ui-textarea",
|
|
1789
|
+
"ui-textref",
|
|
1634
1790
|
"ui-themetoggle__button",
|
|
1635
1791
|
"ui-themetoggle__label",
|
|
1636
1792
|
"ui-themetoggle__prefix",
|
|
@@ -1649,6 +1805,10 @@
|
|
|
1649
1805
|
"ui-toast-stack--assertive",
|
|
1650
1806
|
"ui-toast__close",
|
|
1651
1807
|
"ui-toast__title",
|
|
1808
|
+
"ui-toc",
|
|
1809
|
+
"ui-toc__link",
|
|
1810
|
+
"ui-toc__list",
|
|
1811
|
+
"ui-toc__title",
|
|
1652
1812
|
"ui-tool-call",
|
|
1653
1813
|
"ui-tool-call__body",
|
|
1654
1814
|
"ui-tool-call__name",
|
|
@@ -1661,6 +1821,11 @@
|
|
|
1661
1821
|
"ui-tour-note__body",
|
|
1662
1822
|
"ui-tour-note__step",
|
|
1663
1823
|
"ui-tour-note__title",
|
|
1824
|
+
"ui-tree",
|
|
1825
|
+
"ui-tree__branch",
|
|
1826
|
+
"ui-tree__label",
|
|
1827
|
+
"ui-tree__leaf",
|
|
1828
|
+
"ui-tree__summary",
|
|
1664
1829
|
"ui-visually-hidden",
|
|
1665
1830
|
"ui-vt"
|
|
1666
1831
|
],
|
|
@@ -1741,10 +1906,10 @@
|
|
|
1741
1906
|
},
|
|
1742
1907
|
{
|
|
1743
1908
|
"name": "--value",
|
|
1744
|
-
"on": ".ui-
|
|
1909
|
+
"on": ".ui-meter, .ui-progress",
|
|
1745
1910
|
"type": "number 0..100",
|
|
1746
1911
|
"example": "92",
|
|
1747
|
-
"note": "measured value as a
|
|
1912
|
+
"note": "measured value as a UNITLESS number 0..100 (registered <number>, never a %). Set it on the meter/progress host — it inherits to the __fill/__bar. Prefer attrs.meter(value)/attrs.progress(value) from @ponchia/ui/classes, which sets it plus role + aria-valuenow/min/max together."
|
|
1748
1913
|
},
|
|
1749
1914
|
{
|
|
1750
1915
|
"name": "--icon-mask",
|
|
@@ -1776,6 +1941,64 @@
|
|
|
1776
1941
|
"required": true,
|
|
1777
1942
|
"note": "REQUIRED — the view-transition-name; .ui-vt is inert (no transition) without it"
|
|
1778
1943
|
},
|
|
1944
|
+
{
|
|
1945
|
+
"name": "--v",
|
|
1946
|
+
"on": ".ui-spark__bar",
|
|
1947
|
+
"type": "number 0..1",
|
|
1948
|
+
"example": "0.7",
|
|
1949
|
+
"required": true,
|
|
1950
|
+
"note": "REQUIRED — the normalised bar height (0..1). The host normalises; Bronto only paints. A bar with no --v collapses to the 1px floor. Pair every spark with a host-written role=\"img\" + aria-label."
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"name": "--sidenote-width",
|
|
1954
|
+
"on": ".ui-sidenote, .ui-marginnote",
|
|
1955
|
+
"type": "length",
|
|
1956
|
+
"example": "12rem",
|
|
1957
|
+
"note": "width of the floated margin note on wide viewports (default 12rem). The container must reserve a matching inline-end gutter — see docs/sidenote.md."
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"name": "--textref-highlight",
|
|
1961
|
+
"on": ".ui-textref",
|
|
1962
|
+
"type": "color",
|
|
1963
|
+
"example": "var(--accent-soft)",
|
|
1964
|
+
"note": "the ::target-text highlight wash for the matched cited sentence (default var(--accent-soft)). The host builds the #:~:text= href; Bronto owns the paint — see docs/textref.md."
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "--v",
|
|
1968
|
+
"on": ".ui-bullet__measure",
|
|
1969
|
+
"type": "number 0..1",
|
|
1970
|
+
"example": "0.62",
|
|
1971
|
+
"required": true,
|
|
1972
|
+
"note": "REQUIRED — the normalised measure (0..1). The host normalises; Bronto only paints. A measure with no --v collapses to the 2px floor. Pair every bullet with a host-written role=\"img\" + aria-label."
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "--t",
|
|
1976
|
+
"on": ".ui-bullet__target",
|
|
1977
|
+
"type": "number 0..1",
|
|
1978
|
+
"example": "0.9",
|
|
1979
|
+
"note": "the normalised target tick position (0..1). Omit to drop the target mark."
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"name": "--band-lo",
|
|
1983
|
+
"on": ".ui-bullet",
|
|
1984
|
+
"type": "number 0..1",
|
|
1985
|
+
"example": "0.5",
|
|
1986
|
+
"note": "the lower qualitative-band boundary (0..1, default 0.5). Bands are grayscale by Few-design — meaning lives in the required aria-label."
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"name": "--band-hi",
|
|
1990
|
+
"on": ".ui-bullet",
|
|
1991
|
+
"type": "number 0..1",
|
|
1992
|
+
"example": "0.8",
|
|
1993
|
+
"note": "the upper qualitative-band boundary (0..1, default 0.8). Must be ≥ --band-lo."
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"name": "--toc-top",
|
|
1997
|
+
"on": ".ui-toc",
|
|
1998
|
+
"type": "length",
|
|
1999
|
+
"example": "1rem",
|
|
2000
|
+
"note": "the sticky inset from the top of the scroll container (default var(--space-md))."
|
|
2001
|
+
},
|
|
1779
2002
|
{
|
|
1780
2003
|
"name": "--stack-gap",
|
|
1781
2004
|
"on": ".ui-stack",
|
|
@@ -1818,6 +2041,20 @@
|
|
|
1818
2041
|
"example": "50%",
|
|
1819
2042
|
"note": "min width of the main child before the two stack (default 60%)"
|
|
1820
2043
|
},
|
|
2044
|
+
{
|
|
2045
|
+
"name": "--sidebar-gap",
|
|
2046
|
+
"on": ".ui-sidebar",
|
|
2047
|
+
"type": "length",
|
|
2048
|
+
"example": "1.5rem",
|
|
2049
|
+
"note": "gap between the sidebar and the main child (default var(--space-md))"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
"name": "--switcher-gap",
|
|
2053
|
+
"on": ".ui-switcher",
|
|
2054
|
+
"type": "length",
|
|
2055
|
+
"example": "1.5rem",
|
|
2056
|
+
"note": "gap between switcher children in both row and column states (default var(--space-md))"
|
|
2057
|
+
},
|
|
1821
2058
|
{
|
|
1822
2059
|
"name": "--switcher-min",
|
|
1823
2060
|
"on": ".ui-switcher",
|
|
@@ -1844,7 +2081,7 @@
|
|
|
1844
2081
|
"on": ".ui-ratio",
|
|
1845
2082
|
"type": "ratio",
|
|
1846
2083
|
"example": "4 / 3",
|
|
1847
|
-
"note": "intrinsic aspect ratio of the box (default 16 / 9)"
|
|
2084
|
+
"note": "intrinsic aspect ratio of the box (default 16 / 9). Give .ui-ratio EXACTLY ONE child — only :first-child is sized to fill; a second child silently breaks the ratio. For a caption/overlay, position it absolutely inside the single child"
|
|
1848
2085
|
},
|
|
1849
2086
|
{
|
|
1850
2087
|
"name": "--app-rail",
|
|
@@ -1852,6 +2089,439 @@
|
|
|
1852
2089
|
"type": "length",
|
|
1853
2090
|
"example": "16rem",
|
|
1854
2091
|
"note": "width of the app-shell sidebar rail column (default 14rem)"
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
"name": "--container",
|
|
2095
|
+
"on": ".ui-container",
|
|
2096
|
+
"type": "length",
|
|
2097
|
+
"example": "72rem",
|
|
2098
|
+
"note": "max inline width of the default page frame, border-box (default 72rem)"
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"name": "--container-narrow",
|
|
2102
|
+
"on": ".ui-container--narrow",
|
|
2103
|
+
"type": "length",
|
|
2104
|
+
"example": "44rem",
|
|
2105
|
+
"note": "max inline width of the narrow page frame (default 44rem)"
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
"name": "--container-wide",
|
|
2109
|
+
"on": ".ui-container--wide",
|
|
2110
|
+
"type": "length",
|
|
2111
|
+
"example": "82rem",
|
|
2112
|
+
"note": "max inline width of the wide page frame (default 82rem)"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "--av-size",
|
|
2116
|
+
"on": ".ui-avatar",
|
|
2117
|
+
"type": "length",
|
|
2118
|
+
"example": "2.6rem",
|
|
2119
|
+
"note": "avatar box size; the initials font-size derives from it (default 2.2rem; --sm 1.5rem, --lg 3.2rem)"
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"name": "--dotmatrix-cols",
|
|
2123
|
+
"on": ".ui-dotmatrix",
|
|
2124
|
+
"type": "number",
|
|
2125
|
+
"example": "8",
|
|
2126
|
+
"note": "columns in the dot grid — the density knob (default 12)"
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"name": "--dotmatrix-gap",
|
|
2130
|
+
"on": ".ui-dotmatrix",
|
|
2131
|
+
"type": "length",
|
|
2132
|
+
"example": "0.3rem",
|
|
2133
|
+
"note": "gap between dots (default 0.5rem; set 0 with --dotmatrix-dot-radius:0 to fuse the dots)"
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"name": "--dotmatrix-dot",
|
|
2137
|
+
"on": ".ui-dotmatrix",
|
|
2138
|
+
"type": "length",
|
|
2139
|
+
"example": "0.5rem",
|
|
2140
|
+
"note": "fixed dot length for intrinsic sizing (default minmax(0, 1fr) — fluid to the container)"
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
"name": "--dotmatrix-dot-radius",
|
|
2144
|
+
"on": ".ui-dotmatrix",
|
|
2145
|
+
"type": "length",
|
|
2146
|
+
"example": "0",
|
|
2147
|
+
"note": "dot corner radius (default 50% = round; 0 = square pixels)"
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"name": "--dotmatrix-glow",
|
|
2151
|
+
"on": ".ui-dotmatrix",
|
|
2152
|
+
"type": "length",
|
|
2153
|
+
"example": "2px",
|
|
2154
|
+
"note": "phosphor bloom radius around lit cells (default 0 = off)"
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"name": "--dotmatrix-pulse-min",
|
|
2158
|
+
"on": ".ui-dotmatrix",
|
|
2159
|
+
"type": "number",
|
|
2160
|
+
"example": "0.4",
|
|
2161
|
+
"note": "opacity floor the --pulse animation dips to (default 0.55)"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"name": "--dotmatrix-reveal-step",
|
|
2165
|
+
"on": ".ui-dotmatrix",
|
|
2166
|
+
"type": "time",
|
|
2167
|
+
"example": "5ms",
|
|
2168
|
+
"note": "per-cell scan cadence for the reveal animation (default 3ms)"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"name": "--ds-box",
|
|
2172
|
+
"on": ".ui-dotspinner",
|
|
2173
|
+
"type": "length",
|
|
2174
|
+
"example": "2.6rem",
|
|
2175
|
+
"note": "dot-spinner box size (default 1.6rem; the --lg modifier sets 2.6rem)"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"name": "--ds-dot",
|
|
2179
|
+
"on": ".ui-dotspinner",
|
|
2180
|
+
"type": "length",
|
|
2181
|
+
"example": "0.42rem",
|
|
2182
|
+
"note": "dot-spinner dot size (default 0.26rem)"
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
"name": "--crosshair-color",
|
|
2186
|
+
"on": ".ui-crosshair",
|
|
2187
|
+
"type": "color",
|
|
2188
|
+
"example": "var(--accent)",
|
|
2189
|
+
"note": "crosshair rule + badge colour (default var(--accent); the --muted modifier uses --line-strong)"
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"name": "--connector-color",
|
|
2193
|
+
"on": ".ui-connector",
|
|
2194
|
+
"type": "color",
|
|
2195
|
+
"example": "var(--accent)",
|
|
2196
|
+
"note": "leader-line stroke + label colour (default var(--line-strong); the --muted/--accent modifiers reset it)"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"name": "--connector-width",
|
|
2200
|
+
"on": ".ui-connector",
|
|
2201
|
+
"type": "number",
|
|
2202
|
+
"example": "2",
|
|
2203
|
+
"note": "leader-line stroke width (default 1.5)"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"name": "--mark-color",
|
|
2207
|
+
"on": ".ui-mark",
|
|
2208
|
+
"type": "color",
|
|
2209
|
+
"example": "var(--accent)",
|
|
2210
|
+
"note": "hand-drawn mark colour; a tone modifier sets it (no base default — each draw style falls back to --line-strong)"
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
"name": "--spot-pad",
|
|
2214
|
+
"on": ".ui-spotlight",
|
|
2215
|
+
"type": "length",
|
|
2216
|
+
"example": "12px",
|
|
2217
|
+
"note": "padding between the spotlit target and the cutout edge (default 8px)"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "--spot-radius",
|
|
2221
|
+
"on": ".ui-spotlight",
|
|
2222
|
+
"type": "length",
|
|
2223
|
+
"example": "12px",
|
|
2224
|
+
"note": "spotlight cutout corner radius (default var(--radius-md))"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"name": "--spot-backdrop",
|
|
2228
|
+
"on": ".ui-spotlight",
|
|
2229
|
+
"type": "color",
|
|
2230
|
+
"example": "color-mix(in srgb, #000 70%, transparent)",
|
|
2231
|
+
"note": "the dimming backdrop colour outside the cutout (default 55% black)"
|
|
2232
|
+
}
|
|
2233
|
+
],
|
|
2234
|
+
"rootAttributes": [
|
|
2235
|
+
{
|
|
2236
|
+
"name": "data-theme",
|
|
2237
|
+
"on": ":root",
|
|
2238
|
+
"values": [
|
|
2239
|
+
"light",
|
|
2240
|
+
"dark"
|
|
2241
|
+
],
|
|
2242
|
+
"note": "colour theme. Unset follows the OS via prefers-color-scheme; set it to force one."
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"name": "data-density",
|
|
2246
|
+
"on": ":root or any subtree",
|
|
2247
|
+
"values": [
|
|
2248
|
+
"compact",
|
|
2249
|
+
"comfortable"
|
|
2250
|
+
],
|
|
2251
|
+
"note": "spacing-scale preset (the middle scale is the default when unset). Scoped per-subtree, unlike the others."
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"name": "data-surface",
|
|
2255
|
+
"on": ":root",
|
|
2256
|
+
"values": [
|
|
2257
|
+
"oled"
|
|
2258
|
+
],
|
|
2259
|
+
"note": "opt into a true-black surface ramp for OLED. Unset = the standard elevated dark base."
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "data-contrast",
|
|
2263
|
+
"on": ":root",
|
|
2264
|
+
"values": [
|
|
2265
|
+
"high"
|
|
2266
|
+
],
|
|
2267
|
+
"note": "raise contrast of lines/text for low-vision or glare. Unset = the standard ramp."
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
"name": "data-bronto-skin",
|
|
2271
|
+
"on": ":root",
|
|
2272
|
+
"values": [
|
|
2273
|
+
"amber-crt",
|
|
2274
|
+
"phosphor-green",
|
|
2275
|
+
"e-ink"
|
|
2276
|
+
],
|
|
2277
|
+
"note": "opt-in display colorway — requires @ponchia/ui/css/skins.css. Unset (the design target) = the default Nothing aesthetic."
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"name": "--accent",
|
|
2281
|
+
"on": ":root or a theme root",
|
|
2282
|
+
"values": [
|
|
2283
|
+
"<color>"
|
|
2284
|
+
],
|
|
2285
|
+
"note": "the single brand knob; the accent family derives from it. Re-brand at :root/[data-theme] (a subtree override is only a partial re-brand). See docs/theming.md."
|
|
2286
|
+
}
|
|
2287
|
+
],
|
|
2288
|
+
"behaviorAttributes": [
|
|
2289
|
+
{
|
|
2290
|
+
"name": "data-bronto-open",
|
|
2291
|
+
"on": "a trigger (button/link)",
|
|
2292
|
+
"value": "id of the target <dialog>",
|
|
2293
|
+
"behavior": "initDialog",
|
|
2294
|
+
"note": "click calls showModal() on the named <dialog>; focus returns to the trigger on every close path"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "data-bronto-close",
|
|
2298
|
+
"on": "a button inside a <dialog>",
|
|
2299
|
+
"behavior": "initDialog",
|
|
2300
|
+
"note": "click closes the nearest enclosing <dialog>"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"name": "data-bronto-dialog-light",
|
|
2304
|
+
"on": "a <dialog>",
|
|
2305
|
+
"behavior": "initDialog",
|
|
2306
|
+
"note": "opt into backdrop light-dismiss (click the backdrop to close)"
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
"name": "data-bronto-modal",
|
|
2310
|
+
"on": "a controlled (non-<dialog>) .ui-modal overlay",
|
|
2311
|
+
"behavior": "initModal",
|
|
2312
|
+
"note": "inert focus-trap + .is-open toggling for a modal that is not a native <dialog>; needs an accessible name"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"name": "data-bronto-menu",
|
|
2316
|
+
"on": "a native <details> dropdown",
|
|
2317
|
+
"behavior": "initMenu",
|
|
2318
|
+
"note": "adds outside-click / Escape close affordances to a <details>-based .ui-menu"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"name": "data-bronto-popover",
|
|
2322
|
+
"on": "a trigger",
|
|
2323
|
+
"value": "id of the .ui-popover panel",
|
|
2324
|
+
"behavior": "initPopover",
|
|
2325
|
+
"note": "collision-aware NON-modal popover (no focus trap); top-layer via the native popover attr when present, else an .is-open class. Author an accessible name on the panel."
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"name": "data-bronto-command",
|
|
2329
|
+
"on": "a .ui-command palette host wrapping its input",
|
|
2330
|
+
"behavior": "initCommand",
|
|
2331
|
+
"note": "wires the filter input + active-option keyboard model"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"name": "data-bronto-dismiss",
|
|
2335
|
+
"on": "a button",
|
|
2336
|
+
"value": "optional CSS selector of the ancestor to remove",
|
|
2337
|
+
"behavior": "dismissible",
|
|
2338
|
+
"note": "click removes the nearest matching ancestor (or, with no value, the nearest [data-bronto-dismissible])"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"name": "data-bronto-disclosure",
|
|
2342
|
+
"on": "a trigger",
|
|
2343
|
+
"value": "id of the element it toggles",
|
|
2344
|
+
"behavior": "initDisclosure",
|
|
2345
|
+
"note": "toggles the named element + keeps aria-expanded in sync"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"name": "data-bronto-tabs",
|
|
2349
|
+
"on": "a .ui-tabs group host",
|
|
2350
|
+
"behavior": "initTabs",
|
|
2351
|
+
"note": "adds the WAI-ARIA Tabs keyboard model (roving tabindex, Arrow/Home/End, aria-selected, panel hidden sync) over .ui-tab[data-tab] / .ui-tabs__panel[data-panel]. Without it the CSS tabs are mouse-only with no roving focus."
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "data-bronto-theme-toggle",
|
|
2355
|
+
"on": "a .ui-themetoggle__button (or any control)",
|
|
2356
|
+
"value": "optional 'light' | 'dark' to force a specific theme instead of toggling",
|
|
2357
|
+
"behavior": "initThemeToggle",
|
|
2358
|
+
"note": "click toggles or sets data-theme on <html> and persists it; without it the button is inert. Pair with applyStoredTheme() before paint to avoid a flash."
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "data-bronto-validate",
|
|
2362
|
+
"on": "a <form>",
|
|
2363
|
+
"behavior": "initFormValidation",
|
|
2364
|
+
"note": "progressive-enhancement validation: suppresses native bubbles, writes validationMessage into the field error slot, builds the error summary. With JS off the form still validates natively."
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"name": "data-bronto-error",
|
|
2368
|
+
"on": "an empty error slot inside a .ui-field (canonical: <p class=\"ui-hint\" data-bronto-error>)",
|
|
2369
|
+
"behavior": "initFormValidation",
|
|
2370
|
+
"note": "the dedicated per-field error node initFormValidation fills + links via aria-describedby (and unlinks when the field is valid). Preferred over borrowing the .ui-hint help slot."
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"name": "data-bronto-error-summary",
|
|
2374
|
+
"on": "a .ui-error-summary inside the form",
|
|
2375
|
+
"behavior": "initFormValidation",
|
|
2376
|
+
"note": "on an invalid submit, filled with role=alert + tabindex=-1 in-page links to each bad field and focused."
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"name": "data-bronto-combobox",
|
|
2380
|
+
"on": "a .ui-combobox host (wrapping the input + listbox)",
|
|
2381
|
+
"behavior": "initCombobox",
|
|
2382
|
+
"note": "editable combobox with a filtered listbox (APG pattern). The input needs a real accessible name (a placeholder does not count — it warns)."
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "data-bronto-combobox-live",
|
|
2386
|
+
"on": "the [data-bronto-combobox] host",
|
|
2387
|
+
"behavior": "initCombobox",
|
|
2388
|
+
"note": "opt-in: a MutationObserver re-reads option nodes in place for async/replaced results, instead of a full re-init. Off by default."
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "data-bronto-sortable",
|
|
2392
|
+
"on": "a .ui-table <table>",
|
|
2393
|
+
"behavior": "initTableSort",
|
|
2394
|
+
"note": "click a header .ui-table__sort button to sort; numeric columns via data-sort=\"num\" or .is-num cells. Use data-sort-value on a cell for a canonical sort key (accepts a European decimal comma)."
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"name": "data-bronto-select",
|
|
2398
|
+
"on": "a row checkbox inside a [data-bronto-sortable] table",
|
|
2399
|
+
"behavior": "initTableSort",
|
|
2400
|
+
"note": "toggling it sets the row aria-selected and syncs the header select-all state; emits bronto:selectionchange."
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"name": "data-bronto-select-all",
|
|
2404
|
+
"on": "the header checkbox of a [data-bronto-sortable] table",
|
|
2405
|
+
"behavior": "initTableSort",
|
|
2406
|
+
"note": "toggles every [data-bronto-select] row box; goes indeterminate on a partial selection."
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "data-bronto-dismissible",
|
|
2410
|
+
"on": "the ancestor a [data-bronto-dismiss] button removes",
|
|
2411
|
+
"behavior": "dismissible",
|
|
2412
|
+
"note": "marks the default removal target when the dismiss button has no selector value. A cancelable bronto:dismiss fires first."
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
"name": "data-bronto-legend",
|
|
2416
|
+
"on": "a .ui-legend host",
|
|
2417
|
+
"behavior": "initLegend",
|
|
2418
|
+
"note": "each .ui-legend__item is a <button aria-pressed>; clicking flips aria-pressed + .is-inactive and dispatches bronto:legend:toggle { series, active }. The host runs the actual series show/hide."
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"name": "data-bronto-crosshair",
|
|
2422
|
+
"on": "a plot containing a .ui-crosshair overlay",
|
|
2423
|
+
"behavior": "initCrosshair",
|
|
2424
|
+
"note": "tracks the pointer, sets --crosshair-x/y on the overlay, and emits bronto:crosshair:move { x, y, fx, fy }. Reports WHERE the pointer is — it does not map pixels to data."
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"name": "data-bronto-connector",
|
|
2428
|
+
"on": "a .ui-connector SVG overlay",
|
|
2429
|
+
"value": "via child data-from / data-to (element ids), optional data-shape / data-*-side",
|
|
2430
|
+
"behavior": "initConnectors",
|
|
2431
|
+
"note": "draws + keeps leader lines in sync between the referenced elements; re-routes on resize/scroll."
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"name": "data-bronto-spotlight",
|
|
2435
|
+
"on": "a .ui-spotlight overlay",
|
|
2436
|
+
"value": "via data-target (id of the element to highlight)",
|
|
2437
|
+
"behavior": "initSpotlight",
|
|
2438
|
+
"note": "measures the target and sets --spot-x/y/w/h on the overlay, re-placing on resize/scroll. Positioning only — not a tour engine."
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"name": "data-bronto-carousel",
|
|
2442
|
+
"on": "a carousel host containing a .ui-carousel__viewport",
|
|
2443
|
+
"behavior": "initCarousel",
|
|
2444
|
+
"note": "scroll-snap carousel with prev/next + a status counter; the lightbox dialog uses it too."
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "data-bronto-carousel-prev",
|
|
2448
|
+
"on": "a control inside [data-bronto-carousel]",
|
|
2449
|
+
"behavior": "initCarousel",
|
|
2450
|
+
"note": "the previous-slide button."
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"name": "data-bronto-carousel-next",
|
|
2454
|
+
"on": "a control inside [data-bronto-carousel]",
|
|
2455
|
+
"behavior": "initCarousel",
|
|
2456
|
+
"note": "the next-slide button."
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"name": "data-bronto-carousel-loop",
|
|
2460
|
+
"on": "the [data-bronto-carousel] host",
|
|
2461
|
+
"behavior": "initCarousel",
|
|
2462
|
+
"note": "wrap from the last slide back to the first (and vice-versa)."
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"name": "data-bronto-carousel-label",
|
|
2466
|
+
"on": "the [data-bronto-carousel] host",
|
|
2467
|
+
"value": "accessible name for the carousel region",
|
|
2468
|
+
"behavior": "initCarousel",
|
|
2469
|
+
"note": "names the scroll region (defaults to \"Carousel\")."
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"name": "data-bronto-carousel-current",
|
|
2473
|
+
"on": "a .ui-carousel__slide",
|
|
2474
|
+
"behavior": "initCarousel",
|
|
2475
|
+
"note": "marks the slide to start on (defaults to the first)."
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
"name": "data-bronto-glyph",
|
|
2479
|
+
"on": "a placeholder element",
|
|
2480
|
+
"value": "glyph name (see GLYPH_NAMES)",
|
|
2481
|
+
"behavior": "initDotGlyph",
|
|
2482
|
+
"note": "expands into a .ui-dotmatrix dot grid; an unknown name is left untouched + warns."
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"name": "data-bronto-glyph-label",
|
|
2486
|
+
"on": "a [data-bronto-glyph] placeholder",
|
|
2487
|
+
"value": "accessible label",
|
|
2488
|
+
"behavior": "initDotGlyph",
|
|
2489
|
+
"note": "exposes the glyph as role=\"img\" with this name; omit for a decorative (aria-hidden) glyph."
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
"name": "data-bronto-glyph-solid",
|
|
2493
|
+
"on": "a [data-bronto-glyph] placeholder",
|
|
2494
|
+
"behavior": "initDotGlyph",
|
|
2495
|
+
"note": "render a square, gapless pixel glyph (more legible at small sizes) instead of the dot look."
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
"name": "data-bronto-glyph-anim",
|
|
2499
|
+
"on": "a [data-bronto-glyph] placeholder",
|
|
2500
|
+
"value": "'reveal' | 'pulse'",
|
|
2501
|
+
"behavior": "initDotGlyph",
|
|
2502
|
+
"note": "decorative entrance/idle animation (honours prefers-reduced-motion)."
|
|
2503
|
+
}
|
|
2504
|
+
],
|
|
2505
|
+
"requiredAria": [
|
|
2506
|
+
{
|
|
2507
|
+
"on": ".ui-progress",
|
|
2508
|
+
"require": "role=\"progressbar\" + aria-valuenow/min/max (determinate); role=\"progressbar\" + aria-busy=\"true\" and NO aria-valuenow (indeterminate)",
|
|
2509
|
+
"helper": "attrs.progress(value) / attrs.progress()"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"on": ".ui-meter",
|
|
2513
|
+
"require": "role=\"meter\" + aria-valuenow/min/max. Caveat: role=\"meter\" has uneven AT support (notably older Safari/VoiceOver), so do NOT rely on it alone — the visible .ui-meter__label + .ui-meter__value carry the meaning and are the real channel (REQUIRED for a labelled meter)",
|
|
2514
|
+
"helper": "attrs.meter(value)"
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
"on": ".ui-dotbar",
|
|
2518
|
+
"require": "role=\"progressbar\" + aria-valuenow/min/max (determinate); role=\"progressbar\" + aria-busy=\"true\" and NO aria-valuenow (indeterminate). The <i> segments are decorative — mark the host or segments aria-hidden so AT reads the value, not eight empty spans",
|
|
2519
|
+
"helper": "attrs.dotbar(value) / attrs.dotbar()"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
"on": ".ui-error-summary",
|
|
2523
|
+
"require": "role=\"alert\" + tabindex=\"-1\" on the hand-authored summary so it is announced and focusable when validation fails",
|
|
2524
|
+
"helper": "initFormValidation wires this for the dynamic summary; a static summary needs it hand-set"
|
|
1855
2525
|
}
|
|
1856
2526
|
]
|
|
1857
2527
|
}
|