@atom63/ui-foundation 0.1.1-beta.2 → 0.1.1-beta.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/dist/index.d.ts +319 -1
- package/dist/index.js +1176 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1355,6 +1355,1143 @@ function getCrossRendererContract(id) {
|
|
|
1355
1355
|
return contract;
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
|
+
// src/a11y/accordion.ts
|
|
1359
|
+
function expanded(at, value) {
|
|
1360
|
+
return { target: { part: "header", at }, attribute: "aria-expanded", equals: value };
|
|
1361
|
+
}
|
|
1362
|
+
var accordionPattern = {
|
|
1363
|
+
id: "accordion",
|
|
1364
|
+
name: "Accordion",
|
|
1365
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/accordion/",
|
|
1366
|
+
options: { collapse: ["collapsible", "keep-one"], expand: ["single", "multiple"] },
|
|
1367
|
+
parts: {
|
|
1368
|
+
heading: {
|
|
1369
|
+
description: "The heading, with an aria-level, that wraps each header button.",
|
|
1370
|
+
multiple: true,
|
|
1371
|
+
name: "required",
|
|
1372
|
+
role: "heading"
|
|
1373
|
+
},
|
|
1374
|
+
header: {
|
|
1375
|
+
description: "The header buttons, each titled by the section name.",
|
|
1376
|
+
multiple: true,
|
|
1377
|
+
name: "required",
|
|
1378
|
+
role: "button"
|
|
1379
|
+
},
|
|
1380
|
+
panel: {
|
|
1381
|
+
description: "The expanded panel, a region labelled by its header button.",
|
|
1382
|
+
name: "required",
|
|
1383
|
+
role: "region"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
tree: [
|
|
1387
|
+
{ part: "heading", children: [{ part: "header", states: ["expanded"] }] },
|
|
1388
|
+
{ part: "panel" }
|
|
1389
|
+
],
|
|
1390
|
+
structure: [
|
|
1391
|
+
{
|
|
1392
|
+
id: "header-expanded-state",
|
|
1393
|
+
requirement: "required",
|
|
1394
|
+
rule: "Every header button has aria-expanded: true when its panel is visible, false when it is hidden.",
|
|
1395
|
+
target: { part: "header" },
|
|
1396
|
+
attribute: "aria-expanded",
|
|
1397
|
+
equals: ["true", "false"]
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
id: "header-controls-panel",
|
|
1401
|
+
requirement: "required",
|
|
1402
|
+
rule: "Every header button has aria-controls referring to the element that holds its panel.",
|
|
1403
|
+
target: { part: "header" },
|
|
1404
|
+
attribute: "aria-controls"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
id: "expanded-header-controls-panel",
|
|
1408
|
+
requirement: "required",
|
|
1409
|
+
rule: "The header button of the expanded panel has aria-controls referring to that panel.",
|
|
1410
|
+
target: { part: "header", at: "first" },
|
|
1411
|
+
attribute: "aria-controls",
|
|
1412
|
+
references: "panel"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
id: "panel-labelled-by-header",
|
|
1416
|
+
requirement: "optional",
|
|
1417
|
+
rule: "A panel with the region role has aria-labelledby referring to its header button.",
|
|
1418
|
+
target: { part: "panel" },
|
|
1419
|
+
attribute: "aria-labelledby",
|
|
1420
|
+
references: "header"
|
|
1421
|
+
}
|
|
1422
|
+
],
|
|
1423
|
+
keyboard: [
|
|
1424
|
+
{
|
|
1425
|
+
id: "enter-expands",
|
|
1426
|
+
key: "Enter",
|
|
1427
|
+
keys: "{Enter}",
|
|
1428
|
+
requirement: "required",
|
|
1429
|
+
given: { focus: { part: "header", at: 1 }, attributes: [expanded(1, "false")] },
|
|
1430
|
+
result: "On the header of a collapsed panel, expands the panel.",
|
|
1431
|
+
then: { focus: { part: "header", at: 1 }, attributes: [expanded(1, "true")] }
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
id: "space-expands",
|
|
1435
|
+
key: "Space",
|
|
1436
|
+
keys: "{ }",
|
|
1437
|
+
requirement: "required",
|
|
1438
|
+
given: { focus: { part: "header", at: 1 }, attributes: [expanded(1, "false")] },
|
|
1439
|
+
result: "On the header of a collapsed panel, expands the panel.",
|
|
1440
|
+
then: { focus: { part: "header", at: 1 }, attributes: [expanded(1, "true")] }
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
id: "enter-collapses-other",
|
|
1444
|
+
key: "Enter",
|
|
1445
|
+
keys: "{Enter}",
|
|
1446
|
+
requirement: "required",
|
|
1447
|
+
when: { expand: "single" },
|
|
1448
|
+
given: { focus: { part: "header", at: 1 }, attributes: [expanded("first", "true")] },
|
|
1449
|
+
result: "When only one panel can be expanded, expanding a panel collapses the one that was open.",
|
|
1450
|
+
then: { attributes: [expanded(1, "true"), expanded("first", "false")] }
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
id: "enter-keeps-other",
|
|
1454
|
+
key: "Enter",
|
|
1455
|
+
keys: "{Enter}",
|
|
1456
|
+
requirement: "required",
|
|
1457
|
+
when: { expand: "multiple" },
|
|
1458
|
+
given: { focus: { part: "header", at: 1 }, attributes: [expanded("first", "true")] },
|
|
1459
|
+
result: "When several panels can be expanded, expanding a panel leaves the open one expanded.",
|
|
1460
|
+
then: { attributes: [expanded(1, "true"), expanded("first", "true")] }
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
id: "enter-collapses",
|
|
1464
|
+
key: "Enter",
|
|
1465
|
+
keys: "{Enter}",
|
|
1466
|
+
requirement: "required",
|
|
1467
|
+
when: { collapse: "collapsible" },
|
|
1468
|
+
given: { focus: { part: "header", at: "first" }, attributes: [expanded("first", "true")] },
|
|
1469
|
+
result: "On the header of an expanded panel, collapses the panel.",
|
|
1470
|
+
then: { focus: { part: "header", at: "first" }, attributes: [expanded("first", "false")] }
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
id: "space-collapses",
|
|
1474
|
+
key: "Space",
|
|
1475
|
+
keys: "{ }",
|
|
1476
|
+
requirement: "required",
|
|
1477
|
+
when: { collapse: "collapsible" },
|
|
1478
|
+
given: { focus: { part: "header", at: "first" }, attributes: [expanded("first", "true")] },
|
|
1479
|
+
result: "On the header of an expanded panel, collapses the panel.",
|
|
1480
|
+
then: { focus: { part: "header", at: "first" }, attributes: [expanded("first", "false")] }
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
id: "enter-keeps-open",
|
|
1484
|
+
key: "Enter",
|
|
1485
|
+
keys: "{Enter}",
|
|
1486
|
+
requirement: "required",
|
|
1487
|
+
when: { collapse: "keep-one" },
|
|
1488
|
+
given: { focus: { part: "header", at: "first" }, attributes: [expanded("first", "true")] },
|
|
1489
|
+
result: "On the header of the one expanded panel, the panel stays expanded.",
|
|
1490
|
+
then: {
|
|
1491
|
+
focus: { part: "header", at: "first" },
|
|
1492
|
+
attributes: [
|
|
1493
|
+
expanded("first", "true"),
|
|
1494
|
+
{ target: { part: "header", at: "first" }, attribute: "aria-disabled", equals: "true" }
|
|
1495
|
+
]
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
id: "tab-next-header",
|
|
1500
|
+
key: "Tab",
|
|
1501
|
+
keys: "{Tab}",
|
|
1502
|
+
requirement: "required",
|
|
1503
|
+
given: { focus: { part: "header", at: 1 }, attributes: [expanded(1, "false")] },
|
|
1504
|
+
result: "Moves focus to the next focusable element: past a collapsed panel, the next header.",
|
|
1505
|
+
then: { focus: { part: "header", at: 2 } }
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
id: "shift-tab-previous-header",
|
|
1509
|
+
key: "Shift + Tab",
|
|
1510
|
+
keys: "{Shift>}{Tab}{/Shift}",
|
|
1511
|
+
requirement: "required",
|
|
1512
|
+
given: { focus: { part: "header", at: 2 }, attributes: [expanded(1, "false")] },
|
|
1513
|
+
result: "Moves focus to the previous focusable element: past a collapsed panel, the previous header.",
|
|
1514
|
+
then: { focus: { part: "header", at: 1 } }
|
|
1515
|
+
}
|
|
1516
|
+
]
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1519
|
+
// src/a11y/dialog.ts
|
|
1520
|
+
function modalDialogKeyboard(dialog) {
|
|
1521
|
+
return [
|
|
1522
|
+
{
|
|
1523
|
+
id: "open-moves-focus-inside",
|
|
1524
|
+
key: "Enter",
|
|
1525
|
+
keys: "{Enter}",
|
|
1526
|
+
requirement: "required",
|
|
1527
|
+
given: { open: false, focus: { part: "trigger" } },
|
|
1528
|
+
result: "Activating the trigger opens the dialog and moves focus to an element inside it.",
|
|
1529
|
+
then: { open: true, focus: { inside: dialog } }
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
id: "tab-wraps",
|
|
1533
|
+
key: "Tab",
|
|
1534
|
+
keys: "{Tab}",
|
|
1535
|
+
requirement: "required",
|
|
1536
|
+
given: { open: true, focus: { part: dialog, tabbable: "last" } },
|
|
1537
|
+
result: "Tab on the last tabbable element moves focus to the first one: focus stays inside.",
|
|
1538
|
+
then: { open: true, focus: { part: dialog, tabbable: "first" } }
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
id: "shift-tab-wraps",
|
|
1542
|
+
key: "Shift + Tab",
|
|
1543
|
+
keys: "{Shift>}{Tab}{/Shift}",
|
|
1544
|
+
requirement: "required",
|
|
1545
|
+
given: { open: true, focus: { part: dialog, tabbable: "first" } },
|
|
1546
|
+
result: "Shift + Tab on the first tabbable element moves focus to the last one.",
|
|
1547
|
+
then: { open: true, focus: { part: dialog, tabbable: "last" } }
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
id: "escape-closes",
|
|
1551
|
+
key: "Escape",
|
|
1552
|
+
keys: "{Escape}",
|
|
1553
|
+
requirement: "required",
|
|
1554
|
+
given: { open: true, focus: { inside: dialog } },
|
|
1555
|
+
result: "Escape closes the dialog and returns focus to the element that opened it.",
|
|
1556
|
+
then: { open: false, focus: { part: "trigger" } }
|
|
1557
|
+
}
|
|
1558
|
+
];
|
|
1559
|
+
}
|
|
1560
|
+
var dialogModalPattern = {
|
|
1561
|
+
id: "dialog-modal",
|
|
1562
|
+
name: "Dialog (Modal)",
|
|
1563
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/",
|
|
1564
|
+
parts: {
|
|
1565
|
+
trigger: {
|
|
1566
|
+
description: "The element that opens the dialog and gets focus back when it closes.",
|
|
1567
|
+
name: "required",
|
|
1568
|
+
role: "button"
|
|
1569
|
+
},
|
|
1570
|
+
dialog: {
|
|
1571
|
+
description: "The dialog container; every element of the dialog is inside it.",
|
|
1572
|
+
name: "required",
|
|
1573
|
+
role: "dialog",
|
|
1574
|
+
whileOpen: true
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
popup: "dialog",
|
|
1578
|
+
opener: { part: "trigger", keys: "{Enter}" },
|
|
1579
|
+
tree: [{ part: "dialog" }],
|
|
1580
|
+
structure: [
|
|
1581
|
+
{
|
|
1582
|
+
id: "dialog-is-modal",
|
|
1583
|
+
requirement: "required",
|
|
1584
|
+
rule: "The dialog container has aria-modal set to true.",
|
|
1585
|
+
target: { part: "dialog" },
|
|
1586
|
+
attribute: "aria-modal",
|
|
1587
|
+
equals: "true"
|
|
1588
|
+
}
|
|
1589
|
+
],
|
|
1590
|
+
keyboard: modalDialogKeyboard("dialog")
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
// src/a11y/alert-dialog.ts
|
|
1594
|
+
var alertDialogPattern = {
|
|
1595
|
+
id: "alertdialog",
|
|
1596
|
+
name: "Alert and Message Dialogs",
|
|
1597
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/",
|
|
1598
|
+
parts: {
|
|
1599
|
+
trigger: {
|
|
1600
|
+
description: "The element that opens the alert dialog and gets focus back when it closes.",
|
|
1601
|
+
name: "required",
|
|
1602
|
+
role: "button"
|
|
1603
|
+
},
|
|
1604
|
+
dialog: {
|
|
1605
|
+
description: "The alert dialog container; every element of the dialog is inside it.",
|
|
1606
|
+
name: "required",
|
|
1607
|
+
role: "alertdialog",
|
|
1608
|
+
whileOpen: true
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
popup: "dialog",
|
|
1612
|
+
opener: { part: "trigger", keys: "{Enter}" },
|
|
1613
|
+
tree: [{ part: "dialog" }],
|
|
1614
|
+
structure: [
|
|
1615
|
+
{
|
|
1616
|
+
id: "dialog-is-modal",
|
|
1617
|
+
requirement: "required",
|
|
1618
|
+
rule: "The alert dialog container has aria-modal set to true.",
|
|
1619
|
+
target: { part: "dialog" },
|
|
1620
|
+
attribute: "aria-modal",
|
|
1621
|
+
equals: "true"
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
id: "dialog-describes-message",
|
|
1625
|
+
requirement: "required",
|
|
1626
|
+
rule: "aria-describedby refers to the element that holds the alert message.",
|
|
1627
|
+
target: { part: "dialog" },
|
|
1628
|
+
attribute: "aria-describedby",
|
|
1629
|
+
resolves: true
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1632
|
+
keyboard: modalDialogKeyboard("dialog")
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
// src/a11y/checkbox.ts
|
|
1636
|
+
function checked(value) {
|
|
1637
|
+
return { target: { part: "checkbox", at: "first" }, attribute: "aria-checked", equals: value };
|
|
1638
|
+
}
|
|
1639
|
+
var checkboxPattern = {
|
|
1640
|
+
id: "checkbox",
|
|
1641
|
+
name: "Checkbox",
|
|
1642
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/",
|
|
1643
|
+
parts: {
|
|
1644
|
+
checkbox: {
|
|
1645
|
+
description: "The checkbox, labelled by its content, by aria-labelledby or by aria-label.",
|
|
1646
|
+
name: "required",
|
|
1647
|
+
role: "checkbox"
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
tree: [{ part: "checkbox", states: ["checked"] }],
|
|
1651
|
+
structure: [
|
|
1652
|
+
{
|
|
1653
|
+
id: "checkbox-checked-state",
|
|
1654
|
+
requirement: "required",
|
|
1655
|
+
rule: "The checkbox has aria-checked set to true when checked, false when not checked and mixed when partially checked.",
|
|
1656
|
+
target: { part: "checkbox" },
|
|
1657
|
+
attribute: "aria-checked",
|
|
1658
|
+
equals: ["true", "false", "mixed"]
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
keyboard: [
|
|
1662
|
+
{
|
|
1663
|
+
id: "space-toggles",
|
|
1664
|
+
key: "Space",
|
|
1665
|
+
keys: "{ }",
|
|
1666
|
+
requirement: "required",
|
|
1667
|
+
given: { focus: { part: "checkbox", at: "first" }, attributes: [checked("true")] },
|
|
1668
|
+
result: "Changes the state of the checkbox.",
|
|
1669
|
+
then: { focus: { part: "checkbox", at: "first" }, attributes: [checked("false")] }
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
// src/a11y/combobox-select-only.ts
|
|
1675
|
+
var EXPANDED = {
|
|
1676
|
+
target: { part: "combobox" },
|
|
1677
|
+
attribute: "aria-expanded",
|
|
1678
|
+
equals: "true"
|
|
1679
|
+
};
|
|
1680
|
+
var COLLAPSED = { ...EXPANDED, equals: "false" };
|
|
1681
|
+
function selected(at) {
|
|
1682
|
+
return { target: { part: "option", at }, attribute: "aria-selected", equals: "true" };
|
|
1683
|
+
}
|
|
1684
|
+
var comboboxSelectOnlyPattern = {
|
|
1685
|
+
id: "combobox-select-only",
|
|
1686
|
+
name: "Select-Only Combobox",
|
|
1687
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/",
|
|
1688
|
+
parts: {
|
|
1689
|
+
combobox: {
|
|
1690
|
+
description: "The element that shows the value and opens the listbox, labelled by a label, aria-labelledby or aria-label.",
|
|
1691
|
+
name: "required",
|
|
1692
|
+
role: "combobox"
|
|
1693
|
+
},
|
|
1694
|
+
listbox: {
|
|
1695
|
+
description: "The popup that lists the options.",
|
|
1696
|
+
name: "none",
|
|
1697
|
+
role: "listbox",
|
|
1698
|
+
whileOpen: true
|
|
1699
|
+
},
|
|
1700
|
+
option: {
|
|
1701
|
+
description: "The options of the listbox, each named by its text.",
|
|
1702
|
+
multiple: true,
|
|
1703
|
+
name: "required",
|
|
1704
|
+
role: "option",
|
|
1705
|
+
whileOpen: true,
|
|
1706
|
+
within: "listbox"
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
popup: "listbox",
|
|
1710
|
+
opener: { part: "combobox", keys: "{Enter}" },
|
|
1711
|
+
tree: [
|
|
1712
|
+
{ part: "combobox", states: ["expanded"] },
|
|
1713
|
+
{ part: "listbox", children: [{ part: "option", states: ["selected"] }] }
|
|
1714
|
+
],
|
|
1715
|
+
structure: [
|
|
1716
|
+
{
|
|
1717
|
+
id: "combobox-expanded",
|
|
1718
|
+
requirement: "required",
|
|
1719
|
+
rule: "While the listbox is displayed, the combobox has aria-expanded set to true.",
|
|
1720
|
+
...EXPANDED
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
id: "combobox-controls-listbox",
|
|
1724
|
+
requirement: "required",
|
|
1725
|
+
rule: "The combobox has aria-controls referring to the listbox.",
|
|
1726
|
+
target: { part: "combobox" },
|
|
1727
|
+
attribute: "aria-controls",
|
|
1728
|
+
references: "listbox"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
id: "combobox-has-popup",
|
|
1732
|
+
requirement: "optional",
|
|
1733
|
+
rule: "The combobox may set aria-haspopup to listbox, its implicit value.",
|
|
1734
|
+
target: { part: "combobox" },
|
|
1735
|
+
attribute: "aria-haspopup",
|
|
1736
|
+
equals: "listbox"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
id: "combobox-active-descendant",
|
|
1740
|
+
requirement: "required",
|
|
1741
|
+
rule: "While an option has visual focus, DOM focus stays on the combobox and its aria-activedescendant refers to that option.",
|
|
1742
|
+
target: { part: "combobox" },
|
|
1743
|
+
attribute: "aria-activedescendant",
|
|
1744
|
+
references: "option"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
id: "option-selected",
|
|
1748
|
+
requirement: "required",
|
|
1749
|
+
rule: "The selected option has aria-selected set to true.",
|
|
1750
|
+
target: { part: "option", at: "selected" },
|
|
1751
|
+
attribute: "aria-selected",
|
|
1752
|
+
equals: "true"
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
keyboard: [
|
|
1756
|
+
{
|
|
1757
|
+
id: "enter-opens",
|
|
1758
|
+
key: "Enter",
|
|
1759
|
+
keys: "{Enter}",
|
|
1760
|
+
requirement: "required",
|
|
1761
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1762
|
+
result: "Opens the listbox without changing the selection; visual focus is on the selected option.",
|
|
1763
|
+
then: {
|
|
1764
|
+
open: true,
|
|
1765
|
+
focus: { part: "option", at: "selected" },
|
|
1766
|
+
attributes: [EXPANDED, selected("first")]
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
id: "space-opens",
|
|
1771
|
+
key: "Space",
|
|
1772
|
+
keys: "{ }",
|
|
1773
|
+
requirement: "required",
|
|
1774
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1775
|
+
result: "Opens the listbox without changing the selection; visual focus is on the selected option.",
|
|
1776
|
+
then: {
|
|
1777
|
+
open: true,
|
|
1778
|
+
focus: { part: "option", at: "selected" },
|
|
1779
|
+
attributes: [EXPANDED, selected("first")]
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
id: "down-arrow-opens",
|
|
1784
|
+
key: "Down Arrow",
|
|
1785
|
+
keys: "{ArrowDown}",
|
|
1786
|
+
requirement: "required",
|
|
1787
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1788
|
+
result: "Opens the listbox without changing the selection; visual focus is on the selected option.",
|
|
1789
|
+
then: {
|
|
1790
|
+
open: true,
|
|
1791
|
+
focus: { part: "option", at: "selected" },
|
|
1792
|
+
attributes: [EXPANDED, selected("first")]
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
id: "alt-down-arrow-opens",
|
|
1797
|
+
key: "Alt + Down Arrow",
|
|
1798
|
+
keys: "{Alt>}{ArrowDown}{/Alt}",
|
|
1799
|
+
requirement: "optional",
|
|
1800
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1801
|
+
result: "Opens the listbox without changing the selection.",
|
|
1802
|
+
then: { open: true, attributes: [EXPANDED, selected("first")] }
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
id: "up-arrow-opens",
|
|
1806
|
+
key: "Up Arrow",
|
|
1807
|
+
keys: "{ArrowUp}",
|
|
1808
|
+
requirement: "optional",
|
|
1809
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1810
|
+
result: "Opens the listbox and moves visual focus to the first option.",
|
|
1811
|
+
then: { open: true, focus: { part: "option", at: "first" } }
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
id: "home-opens-at-first",
|
|
1815
|
+
key: "Home",
|
|
1816
|
+
keys: "{Home}",
|
|
1817
|
+
requirement: "optional",
|
|
1818
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1819
|
+
result: "Opens the listbox and moves visual focus to the first option.",
|
|
1820
|
+
then: { open: true, focus: { part: "option", at: "first" } }
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
id: "end-opens-at-last",
|
|
1824
|
+
key: "End",
|
|
1825
|
+
keys: "{End}",
|
|
1826
|
+
requirement: "optional",
|
|
1827
|
+
given: { open: false, focus: { part: "combobox" } },
|
|
1828
|
+
result: "Opens the listbox and moves visual focus to the last option.",
|
|
1829
|
+
then: { open: true, focus: { part: "option", at: "last" } }
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
id: "down-arrow-next",
|
|
1833
|
+
key: "Down Arrow",
|
|
1834
|
+
keys: "{ArrowDown}",
|
|
1835
|
+
requirement: "required",
|
|
1836
|
+
given: { open: true, focus: { part: "option", at: "first" } },
|
|
1837
|
+
result: "Moves visual focus to the next option.",
|
|
1838
|
+
then: { open: true, focus: { part: "option", at: 1 } }
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
id: "down-arrow-stops",
|
|
1842
|
+
key: "Down Arrow",
|
|
1843
|
+
keys: "{ArrowDown}",
|
|
1844
|
+
requirement: "required",
|
|
1845
|
+
given: { open: true, focus: { part: "option", at: "last" } },
|
|
1846
|
+
result: "On the last option, visual focus does not move.",
|
|
1847
|
+
then: { open: true, focus: { part: "option", at: "last" } }
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
id: "up-arrow-previous",
|
|
1851
|
+
key: "Up Arrow",
|
|
1852
|
+
keys: "{ArrowUp}",
|
|
1853
|
+
requirement: "required",
|
|
1854
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1855
|
+
result: "Moves visual focus to the previous option.",
|
|
1856
|
+
then: { open: true, focus: { part: "option", at: "first" } }
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
id: "up-arrow-stops",
|
|
1860
|
+
key: "Up Arrow",
|
|
1861
|
+
keys: "{ArrowUp}",
|
|
1862
|
+
requirement: "required",
|
|
1863
|
+
given: { open: true, focus: { part: "option", at: "first" } },
|
|
1864
|
+
result: "On the first option, visual focus does not move.",
|
|
1865
|
+
then: { open: true, focus: { part: "option", at: "first" } }
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
id: "home-first",
|
|
1869
|
+
key: "Home",
|
|
1870
|
+
keys: "{Home}",
|
|
1871
|
+
requirement: "optional",
|
|
1872
|
+
given: { open: true, focus: { part: "option", at: "last" } },
|
|
1873
|
+
result: "Moves visual focus to the first option.",
|
|
1874
|
+
then: { open: true, focus: { part: "option", at: "first" } }
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
id: "end-last",
|
|
1878
|
+
key: "End",
|
|
1879
|
+
keys: "{End}",
|
|
1880
|
+
requirement: "optional",
|
|
1881
|
+
given: { open: true, focus: { part: "option", at: "first" } },
|
|
1882
|
+
result: "Moves visual focus to the last option.",
|
|
1883
|
+
then: { open: true, focus: { part: "option", at: "last" } }
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
id: "enter-selects",
|
|
1887
|
+
key: "Enter",
|
|
1888
|
+
keys: "{Enter}",
|
|
1889
|
+
requirement: "required",
|
|
1890
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1891
|
+
result: "Selects the focused option, closes the listbox and returns focus to the combobox.",
|
|
1892
|
+
then: { open: false, focus: { part: "combobox" }, attributes: [COLLAPSED, selected(1)] }
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
id: "space-selects",
|
|
1896
|
+
key: "Space",
|
|
1897
|
+
keys: "{ }",
|
|
1898
|
+
requirement: "required",
|
|
1899
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1900
|
+
result: "Selects the focused option, closes the listbox and returns focus to the combobox.",
|
|
1901
|
+
then: { open: false, focus: { part: "combobox" }, attributes: [COLLAPSED, selected(1)] }
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
id: "alt-up-arrow-selects",
|
|
1905
|
+
key: "Alt + Up Arrow",
|
|
1906
|
+
keys: "{Alt>}{ArrowUp}{/Alt}",
|
|
1907
|
+
requirement: "optional",
|
|
1908
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1909
|
+
result: "Selects the focused option, closes the listbox and returns focus to the combobox.",
|
|
1910
|
+
then: { open: false, focus: { part: "combobox" }, attributes: [COLLAPSED, selected(1)] }
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
id: "tab-selects",
|
|
1914
|
+
key: "Tab",
|
|
1915
|
+
keys: "{Tab}",
|
|
1916
|
+
requirement: "required",
|
|
1917
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1918
|
+
result: "Selects the focused option and closes the listbox.",
|
|
1919
|
+
then: { open: false, attributes: [COLLAPSED, selected(1)] }
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
id: "escape-closes",
|
|
1923
|
+
key: "Escape",
|
|
1924
|
+
keys: "{Escape}",
|
|
1925
|
+
requirement: "required",
|
|
1926
|
+
given: { open: true, focus: { part: "option", at: 1 } },
|
|
1927
|
+
result: "Closes the listbox without changing the selection and returns focus to the combobox.",
|
|
1928
|
+
then: {
|
|
1929
|
+
open: false,
|
|
1930
|
+
focus: { part: "combobox" },
|
|
1931
|
+
attributes: [COLLAPSED, selected("first")]
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
]
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
// src/a11y/menu.ts
|
|
1938
|
+
var TRIGGER_EXPANDED = {
|
|
1939
|
+
target: { part: "trigger" },
|
|
1940
|
+
attribute: "aria-expanded",
|
|
1941
|
+
equals: "true"
|
|
1942
|
+
};
|
|
1943
|
+
var TRIGGER_COLLAPSED = { ...TRIGGER_EXPANDED, equals: "false" };
|
|
1944
|
+
var menuButtonPattern = {
|
|
1945
|
+
id: "menu-button",
|
|
1946
|
+
name: "Menu Button",
|
|
1947
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/",
|
|
1948
|
+
options: { wrap: ["wrap", "stop"] },
|
|
1949
|
+
parts: {
|
|
1950
|
+
trigger: {
|
|
1951
|
+
description: "The button that opens the menu.",
|
|
1952
|
+
name: "required",
|
|
1953
|
+
role: "button"
|
|
1954
|
+
},
|
|
1955
|
+
menu: {
|
|
1956
|
+
description: "The menu, labelled by the button that controls it or by aria-label.",
|
|
1957
|
+
name: "required",
|
|
1958
|
+
role: "menu",
|
|
1959
|
+
whileOpen: true
|
|
1960
|
+
},
|
|
1961
|
+
item: {
|
|
1962
|
+
description: "The items of the menu.",
|
|
1963
|
+
multiple: true,
|
|
1964
|
+
name: "required",
|
|
1965
|
+
role: "menuitem",
|
|
1966
|
+
whileOpen: true,
|
|
1967
|
+
within: "menu"
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
popup: "menu",
|
|
1971
|
+
opener: { part: "trigger", keys: "{Enter}" },
|
|
1972
|
+
tree: [{ part: "menu", children: [{ part: "item" }] }],
|
|
1973
|
+
structure: [
|
|
1974
|
+
{
|
|
1975
|
+
id: "trigger-has-popup",
|
|
1976
|
+
requirement: "required",
|
|
1977
|
+
rule: "The button has aria-haspopup set to menu or true.",
|
|
1978
|
+
target: { part: "trigger" },
|
|
1979
|
+
attribute: "aria-haspopup",
|
|
1980
|
+
equals: ["menu", "true"]
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
id: "trigger-expanded",
|
|
1984
|
+
requirement: "required",
|
|
1985
|
+
rule: "While the menu is displayed, the button has aria-expanded set to true.",
|
|
1986
|
+
...TRIGGER_EXPANDED
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
id: "trigger-controls-menu",
|
|
1990
|
+
requirement: "optional",
|
|
1991
|
+
rule: "The button may have aria-controls referring to the menu.",
|
|
1992
|
+
target: { part: "trigger" },
|
|
1993
|
+
attribute: "aria-controls",
|
|
1994
|
+
references: "menu"
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
keyboard: [
|
|
1998
|
+
{
|
|
1999
|
+
id: "enter-opens",
|
|
2000
|
+
key: "Enter",
|
|
2001
|
+
keys: "{Enter}",
|
|
2002
|
+
requirement: "required",
|
|
2003
|
+
given: { open: false, focus: { part: "trigger" } },
|
|
2004
|
+
result: "Opens the menu and moves focus to the first item.",
|
|
2005
|
+
then: { open: true, focus: { part: "item", at: "first" }, attributes: [TRIGGER_EXPANDED] }
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
id: "space-opens",
|
|
2009
|
+
key: "Space",
|
|
2010
|
+
keys: "{ }",
|
|
2011
|
+
requirement: "required",
|
|
2012
|
+
given: { open: false, focus: { part: "trigger" } },
|
|
2013
|
+
result: "Opens the menu and moves focus to the first item.",
|
|
2014
|
+
then: { open: true, focus: { part: "item", at: "first" }, attributes: [TRIGGER_EXPANDED] }
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
id: "down-arrow-opens",
|
|
2018
|
+
key: "Down Arrow",
|
|
2019
|
+
keys: "{ArrowDown}",
|
|
2020
|
+
requirement: "optional",
|
|
2021
|
+
given: { open: false, focus: { part: "trigger" } },
|
|
2022
|
+
result: "Opens the menu and moves focus to the first item.",
|
|
2023
|
+
then: { open: true, focus: { part: "item", at: "first" } }
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
id: "up-arrow-opens-at-last",
|
|
2027
|
+
key: "Up Arrow",
|
|
2028
|
+
keys: "{ArrowUp}",
|
|
2029
|
+
requirement: "optional",
|
|
2030
|
+
given: { open: false, focus: { part: "trigger" } },
|
|
2031
|
+
result: "Opens the menu and moves focus to the last item.",
|
|
2032
|
+
then: { open: true, focus: { part: "item", at: "last" } }
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
id: "down-arrow-next",
|
|
2036
|
+
key: "Down Arrow",
|
|
2037
|
+
keys: "{ArrowDown}",
|
|
2038
|
+
requirement: "required",
|
|
2039
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2040
|
+
result: "Moves focus to the next item.",
|
|
2041
|
+
then: { open: true, focus: { part: "item", at: 1 } }
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
id: "down-arrow-wraps",
|
|
2045
|
+
key: "Down Arrow",
|
|
2046
|
+
keys: "{ArrowDown}",
|
|
2047
|
+
requirement: "optional",
|
|
2048
|
+
when: { wrap: "wrap" },
|
|
2049
|
+
given: { open: true, focus: { part: "item", at: "last" } },
|
|
2050
|
+
result: "On the last item, moves focus to the first item.",
|
|
2051
|
+
then: { open: true, focus: { part: "item", at: "first" } }
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
id: "down-arrow-stops",
|
|
2055
|
+
key: "Down Arrow",
|
|
2056
|
+
keys: "{ArrowDown}",
|
|
2057
|
+
requirement: "optional",
|
|
2058
|
+
when: { wrap: "stop" },
|
|
2059
|
+
given: { open: true, focus: { part: "item", at: "last" } },
|
|
2060
|
+
result: "On the last item, focus stays on the last item.",
|
|
2061
|
+
then: { open: true, focus: { part: "item", at: "last" } }
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
id: "up-arrow-previous",
|
|
2065
|
+
key: "Up Arrow",
|
|
2066
|
+
keys: "{ArrowUp}",
|
|
2067
|
+
requirement: "required",
|
|
2068
|
+
given: { open: true, focus: { part: "item", at: 1 } },
|
|
2069
|
+
result: "Moves focus to the previous item.",
|
|
2070
|
+
then: { open: true, focus: { part: "item", at: "first" } }
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
id: "up-arrow-wraps",
|
|
2074
|
+
key: "Up Arrow",
|
|
2075
|
+
keys: "{ArrowUp}",
|
|
2076
|
+
requirement: "optional",
|
|
2077
|
+
when: { wrap: "wrap" },
|
|
2078
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2079
|
+
result: "On the first item, moves focus to the last item.",
|
|
2080
|
+
then: { open: true, focus: { part: "item", at: "last" } }
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
id: "up-arrow-stops",
|
|
2084
|
+
key: "Up Arrow",
|
|
2085
|
+
keys: "{ArrowUp}",
|
|
2086
|
+
requirement: "optional",
|
|
2087
|
+
when: { wrap: "stop" },
|
|
2088
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2089
|
+
result: "On the first item, focus stays on the first item.",
|
|
2090
|
+
then: { open: true, focus: { part: "item", at: "first" } }
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
id: "home-first",
|
|
2094
|
+
key: "Home",
|
|
2095
|
+
keys: "{Home}",
|
|
2096
|
+
requirement: "optional",
|
|
2097
|
+
given: { open: true, focus: { part: "item", at: "last" } },
|
|
2098
|
+
result: "Moves focus to the first item.",
|
|
2099
|
+
then: { open: true, focus: { part: "item", at: "first" } }
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
id: "end-last",
|
|
2103
|
+
key: "End",
|
|
2104
|
+
keys: "{End}",
|
|
2105
|
+
requirement: "optional",
|
|
2106
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2107
|
+
result: "Moves focus to the last item.",
|
|
2108
|
+
then: { open: true, focus: { part: "item", at: "last" } }
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
id: "enter-activates",
|
|
2112
|
+
key: "Enter",
|
|
2113
|
+
keys: "{Enter}",
|
|
2114
|
+
requirement: "required",
|
|
2115
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2116
|
+
result: "Activates the item and closes the menu.",
|
|
2117
|
+
then: { open: false }
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
id: "escape-closes",
|
|
2121
|
+
key: "Escape",
|
|
2122
|
+
keys: "{Escape}",
|
|
2123
|
+
requirement: "required",
|
|
2124
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2125
|
+
result: "Closes the menu and returns focus to the button that opened it.",
|
|
2126
|
+
then: { open: false, focus: { part: "trigger" }, attributes: [TRIGGER_COLLAPSED] }
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
id: "tab-closes",
|
|
2130
|
+
key: "Tab",
|
|
2131
|
+
keys: "{Tab}",
|
|
2132
|
+
requirement: "required",
|
|
2133
|
+
given: { open: true, focus: { part: "item", at: "first" } },
|
|
2134
|
+
result: "Moves focus out of the menu and closes it.",
|
|
2135
|
+
then: { open: false }
|
|
2136
|
+
}
|
|
2137
|
+
]
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
// src/a11y/radio.ts
|
|
2141
|
+
function checked2(at) {
|
|
2142
|
+
return { target: { part: "radio", at }, attribute: "aria-checked", equals: "true" };
|
|
2143
|
+
}
|
|
2144
|
+
function arrow(id, key, keys, from, to, result) {
|
|
2145
|
+
return {
|
|
2146
|
+
id,
|
|
2147
|
+
key,
|
|
2148
|
+
keys,
|
|
2149
|
+
requirement: "required",
|
|
2150
|
+
given: { focus: { part: "radio", at: from } },
|
|
2151
|
+
result,
|
|
2152
|
+
then: {
|
|
2153
|
+
focus: { part: "radio", at: to },
|
|
2154
|
+
attributes: [checked2(to), { ...checked2(from), equals: "false" }]
|
|
2155
|
+
}
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
var radioPattern = {
|
|
2159
|
+
id: "radio",
|
|
2160
|
+
name: "Radio Group",
|
|
2161
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/radio/",
|
|
2162
|
+
parts: {
|
|
2163
|
+
radiogroup: {
|
|
2164
|
+
description: "The container of the radios, labelled by aria-labelledby or aria-label.",
|
|
2165
|
+
name: "required",
|
|
2166
|
+
role: "radiogroup"
|
|
2167
|
+
},
|
|
2168
|
+
radio: {
|
|
2169
|
+
description: "The radios, each labelled by its content, by aria-labelledby or by aria-label.",
|
|
2170
|
+
multiple: true,
|
|
2171
|
+
name: "required",
|
|
2172
|
+
role: "radio",
|
|
2173
|
+
within: "radiogroup"
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
tree: [{ part: "radiogroup", children: [{ part: "radio", states: ["checked"] }] }],
|
|
2177
|
+
structure: [
|
|
2178
|
+
{
|
|
2179
|
+
id: "radio-checked-state",
|
|
2180
|
+
requirement: "required",
|
|
2181
|
+
rule: "Every radio has aria-checked: true on the checked radio, false on the others.",
|
|
2182
|
+
target: { part: "radio" },
|
|
2183
|
+
attribute: "aria-checked",
|
|
2184
|
+
equals: ["true", "false"]
|
|
2185
|
+
}
|
|
2186
|
+
],
|
|
2187
|
+
keyboard: [
|
|
2188
|
+
{
|
|
2189
|
+
id: "tab-enters-at-checked",
|
|
2190
|
+
key: "Tab",
|
|
2191
|
+
keys: "{Tab}",
|
|
2192
|
+
requirement: "required",
|
|
2193
|
+
given: { focus: "page-start", attributes: [checked2(1)] },
|
|
2194
|
+
result: "When focus moves into the group, it lands on the checked radio.",
|
|
2195
|
+
then: { focus: { part: "radio", at: "checked" } }
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
id: "space-checks",
|
|
2199
|
+
key: "Space",
|
|
2200
|
+
keys: "{ }",
|
|
2201
|
+
requirement: "required",
|
|
2202
|
+
given: {
|
|
2203
|
+
focus: { part: "radio", at: "first" },
|
|
2204
|
+
attributes: [{ ...checked2("first"), equals: "false" }]
|
|
2205
|
+
},
|
|
2206
|
+
result: "Checks the focused radio if it is not already checked.",
|
|
2207
|
+
then: { focus: { part: "radio", at: "first" }, attributes: [checked2("first")] }
|
|
2208
|
+
},
|
|
2209
|
+
arrow(
|
|
2210
|
+
"down-arrow-next",
|
|
2211
|
+
"Down Arrow",
|
|
2212
|
+
"{ArrowDown}",
|
|
2213
|
+
1,
|
|
2214
|
+
2,
|
|
2215
|
+
"Moves focus to the next radio, unchecks the previous one and checks the new one."
|
|
2216
|
+
),
|
|
2217
|
+
arrow(
|
|
2218
|
+
"right-arrow-next",
|
|
2219
|
+
"Right Arrow",
|
|
2220
|
+
"{ArrowRight}",
|
|
2221
|
+
1,
|
|
2222
|
+
2,
|
|
2223
|
+
"Moves focus to the next radio, unchecks the previous one and checks the new one."
|
|
2224
|
+
),
|
|
2225
|
+
arrow(
|
|
2226
|
+
"down-arrow-wraps",
|
|
2227
|
+
"Down Arrow",
|
|
2228
|
+
"{ArrowDown}",
|
|
2229
|
+
"last",
|
|
2230
|
+
"first",
|
|
2231
|
+
"On the last radio, moves focus to the first radio and checks it."
|
|
2232
|
+
),
|
|
2233
|
+
arrow(
|
|
2234
|
+
"up-arrow-previous",
|
|
2235
|
+
"Up Arrow",
|
|
2236
|
+
"{ArrowUp}",
|
|
2237
|
+
1,
|
|
2238
|
+
"first",
|
|
2239
|
+
"Moves focus to the previous radio, unchecks the previous one and checks the new one."
|
|
2240
|
+
),
|
|
2241
|
+
arrow(
|
|
2242
|
+
"left-arrow-previous",
|
|
2243
|
+
"Left Arrow",
|
|
2244
|
+
"{ArrowLeft}",
|
|
2245
|
+
1,
|
|
2246
|
+
"first",
|
|
2247
|
+
"Moves focus to the previous radio, unchecks the previous one and checks the new one."
|
|
2248
|
+
),
|
|
2249
|
+
arrow(
|
|
2250
|
+
"up-arrow-wraps",
|
|
2251
|
+
"Up Arrow",
|
|
2252
|
+
"{ArrowUp}",
|
|
2253
|
+
"first",
|
|
2254
|
+
"last",
|
|
2255
|
+
"On the first radio, moves focus to the last radio and checks it."
|
|
2256
|
+
)
|
|
2257
|
+
]
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
// src/a11y/switch.ts
|
|
2261
|
+
function checked3(value) {
|
|
2262
|
+
return { target: { part: "switch", at: "first" }, attribute: "aria-checked", equals: value };
|
|
2263
|
+
}
|
|
2264
|
+
var switchPattern = {
|
|
2265
|
+
id: "switch",
|
|
2266
|
+
name: "Switch",
|
|
2267
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/switch/",
|
|
2268
|
+
parts: {
|
|
2269
|
+
switch: {
|
|
2270
|
+
description: "The switch, labelled by its content, by aria-labelledby or by aria-label.",
|
|
2271
|
+
name: "required",
|
|
2272
|
+
role: "switch"
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
tree: [{ part: "switch", states: ["checked"] }],
|
|
2276
|
+
structure: [
|
|
2277
|
+
{
|
|
2278
|
+
id: "switch-checked-state",
|
|
2279
|
+
requirement: "required",
|
|
2280
|
+
rule: "The switch has aria-checked set to true when on and to false when off.",
|
|
2281
|
+
target: { part: "switch" },
|
|
2282
|
+
attribute: "aria-checked",
|
|
2283
|
+
equals: ["true", "false"]
|
|
2284
|
+
}
|
|
2285
|
+
],
|
|
2286
|
+
keyboard: [
|
|
2287
|
+
{
|
|
2288
|
+
id: "space-toggles",
|
|
2289
|
+
key: "Space",
|
|
2290
|
+
keys: "{ }",
|
|
2291
|
+
requirement: "required",
|
|
2292
|
+
given: { focus: { part: "switch", at: "first" }, attributes: [checked3("true")] },
|
|
2293
|
+
result: "Changes the state of the switch.",
|
|
2294
|
+
then: { focus: { part: "switch", at: "first" }, attributes: [checked3("false")] }
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
id: "enter-toggles",
|
|
2298
|
+
key: "Enter",
|
|
2299
|
+
keys: "{Enter}",
|
|
2300
|
+
requirement: "optional",
|
|
2301
|
+
given: { focus: { part: "switch", at: "first" }, attributes: [checked3("true")] },
|
|
2302
|
+
result: "Changes the state of the switch.",
|
|
2303
|
+
then: { focus: { part: "switch", at: "first" }, attributes: [checked3("false")] }
|
|
2304
|
+
}
|
|
2305
|
+
]
|
|
2306
|
+
};
|
|
2307
|
+
|
|
2308
|
+
// src/a11y/tabs.ts
|
|
2309
|
+
function selected2(at) {
|
|
2310
|
+
return { target: { part: "tab", at }, attribute: "aria-selected", equals: "true" };
|
|
2311
|
+
}
|
|
2312
|
+
var tabsPattern = {
|
|
2313
|
+
id: "tabs",
|
|
2314
|
+
name: "Tabs",
|
|
2315
|
+
source: "https://www.w3.org/WAI/ARIA/apg/patterns/tabs/",
|
|
2316
|
+
options: { activation: ["automatic", "manual"] },
|
|
2317
|
+
parts: {
|
|
2318
|
+
tablist: {
|
|
2319
|
+
description: "The container of the tabs, labelled by aria-labelledby or aria-label.",
|
|
2320
|
+
name: "required",
|
|
2321
|
+
role: "tablist"
|
|
2322
|
+
},
|
|
2323
|
+
tab: {
|
|
2324
|
+
description: "The tabs, each the label of one panel.",
|
|
2325
|
+
multiple: true,
|
|
2326
|
+
name: "required",
|
|
2327
|
+
role: "tab",
|
|
2328
|
+
within: "tablist"
|
|
2329
|
+
},
|
|
2330
|
+
panel: {
|
|
2331
|
+
description: "The panel of the selected tab, labelled by that tab.",
|
|
2332
|
+
name: "required",
|
|
2333
|
+
role: "tabpanel"
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
tree: [{ part: "tablist", children: [{ part: "tab", states: ["selected"] }] }, { part: "panel" }],
|
|
2337
|
+
structure: [
|
|
2338
|
+
{
|
|
2339
|
+
id: "tab-selection-state",
|
|
2340
|
+
requirement: "required",
|
|
2341
|
+
rule: "Every tab has aria-selected: true on the selected tab, false on the others.",
|
|
2342
|
+
target: { part: "tab" },
|
|
2343
|
+
attribute: "aria-selected",
|
|
2344
|
+
equals: ["true", "false"]
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
id: "tab-controls-panel",
|
|
2348
|
+
requirement: "required",
|
|
2349
|
+
rule: "Each tab has aria-controls referring to its panel.",
|
|
2350
|
+
target: { part: "tab", at: "selected" },
|
|
2351
|
+
attribute: "aria-controls",
|
|
2352
|
+
references: "panel"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
id: "panel-labelled-by-tab",
|
|
2356
|
+
requirement: "required",
|
|
2357
|
+
rule: "Each panel has aria-labelledby referring to its tab.",
|
|
2358
|
+
target: { part: "panel" },
|
|
2359
|
+
attribute: "aria-labelledby",
|
|
2360
|
+
references: "tab"
|
|
2361
|
+
}
|
|
2362
|
+
],
|
|
2363
|
+
keyboard: [
|
|
2364
|
+
{
|
|
2365
|
+
id: "tab-enters-at-selected",
|
|
2366
|
+
key: "Tab",
|
|
2367
|
+
keys: "{Tab}",
|
|
2368
|
+
requirement: "required",
|
|
2369
|
+
given: { focus: "page-start" },
|
|
2370
|
+
result: "When focus moves into the tab list, it lands on the selected tab.",
|
|
2371
|
+
then: { focus: { part: "tab", at: "selected" } }
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
id: "tab-leaves-to-panel",
|
|
2375
|
+
key: "Tab",
|
|
2376
|
+
keys: "{Tab}",
|
|
2377
|
+
requirement: "required",
|
|
2378
|
+
given: { focus: { part: "tab", at: "selected" } },
|
|
2379
|
+
result: "From the tab list, Tab moves focus to the next element in the page: the panel.",
|
|
2380
|
+
then: { focus: { part: "panel" } }
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
id: "right-arrow-next",
|
|
2384
|
+
key: "Right Arrow",
|
|
2385
|
+
keys: "{ArrowRight}",
|
|
2386
|
+
requirement: "required",
|
|
2387
|
+
given: { focus: { part: "tab", at: "first" }, attributes: [selected2("first")] },
|
|
2388
|
+
result: "Moves focus to the next tab.",
|
|
2389
|
+
then: { focus: { part: "tab", at: 1 } }
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
id: "right-arrow-selects",
|
|
2393
|
+
key: "Right Arrow",
|
|
2394
|
+
keys: "{ArrowRight}",
|
|
2395
|
+
requirement: "required",
|
|
2396
|
+
when: { activation: "automatic" },
|
|
2397
|
+
given: { focus: { part: "tab", at: "first" }, attributes: [selected2("first")] },
|
|
2398
|
+
result: "With automatic activation, the tab that receives focus is selected.",
|
|
2399
|
+
then: { focus: { part: "tab", at: 1 }, attributes: [selected2(1)] }
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
id: "right-arrow-keeps-selection",
|
|
2403
|
+
key: "Right Arrow",
|
|
2404
|
+
keys: "{ArrowRight}",
|
|
2405
|
+
requirement: "required",
|
|
2406
|
+
when: { activation: "manual" },
|
|
2407
|
+
given: { focus: { part: "tab", at: "first" }, attributes: [selected2("first")] },
|
|
2408
|
+
result: "With manual activation, moving focus does not change the selected tab.",
|
|
2409
|
+
then: { focus: { part: "tab", at: 1 }, attributes: [selected2("first")] }
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
id: "right-arrow-wraps",
|
|
2413
|
+
key: "Right Arrow",
|
|
2414
|
+
keys: "{ArrowRight}",
|
|
2415
|
+
requirement: "required",
|
|
2416
|
+
given: { focus: { part: "tab", at: "last" } },
|
|
2417
|
+
result: "On the last tab, moves focus to the first tab.",
|
|
2418
|
+
then: { focus: { part: "tab", at: "first" } }
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
id: "left-arrow-previous",
|
|
2422
|
+
key: "Left Arrow",
|
|
2423
|
+
keys: "{ArrowLeft}",
|
|
2424
|
+
requirement: "required",
|
|
2425
|
+
given: { focus: { part: "tab", at: 1 } },
|
|
2426
|
+
result: "Moves focus to the previous tab.",
|
|
2427
|
+
then: { focus: { part: "tab", at: "first" } }
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
id: "left-arrow-wraps",
|
|
2431
|
+
key: "Left Arrow",
|
|
2432
|
+
keys: "{ArrowLeft}",
|
|
2433
|
+
requirement: "required",
|
|
2434
|
+
given: { focus: { part: "tab", at: "first" } },
|
|
2435
|
+
result: "On the first tab, moves focus to the last tab.",
|
|
2436
|
+
then: { focus: { part: "tab", at: "last" } }
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
id: "home-first",
|
|
2440
|
+
key: "Home",
|
|
2441
|
+
keys: "{Home}",
|
|
2442
|
+
requirement: "optional",
|
|
2443
|
+
given: { focus: { part: "tab", at: "last" } },
|
|
2444
|
+
result: "Moves focus to the first tab.",
|
|
2445
|
+
then: { focus: { part: "tab", at: "first" } }
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
id: "end-last",
|
|
2449
|
+
key: "End",
|
|
2450
|
+
keys: "{End}",
|
|
2451
|
+
requirement: "optional",
|
|
2452
|
+
given: { focus: { part: "tab", at: "first" } },
|
|
2453
|
+
result: "Moves focus to the last tab.",
|
|
2454
|
+
then: { focus: { part: "tab", at: "last" } }
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
id: "enter-selects",
|
|
2458
|
+
key: "Enter",
|
|
2459
|
+
keys: "{Enter}",
|
|
2460
|
+
requirement: "required",
|
|
2461
|
+
when: { activation: "manual" },
|
|
2462
|
+
given: { focus: { part: "tab", at: 1 }, attributes: [selected2("first")] },
|
|
2463
|
+
result: "Selects the focused tab and shows its panel.",
|
|
2464
|
+
then: { focus: { part: "tab", at: 1 }, attributes: [selected2(1)] }
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
id: "space-selects",
|
|
2468
|
+
key: "Space",
|
|
2469
|
+
keys: "{ }",
|
|
2470
|
+
requirement: "required",
|
|
2471
|
+
when: { activation: "manual" },
|
|
2472
|
+
given: { focus: { part: "tab", at: 1 }, attributes: [selected2("first")] },
|
|
2473
|
+
result: "Selects the focused tab and shows its panel.",
|
|
2474
|
+
then: { focus: { part: "tab", at: 1 }, attributes: [selected2(1)] }
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
};
|
|
2478
|
+
|
|
2479
|
+
// src/a11y/index.ts
|
|
2480
|
+
var a11yPatterns = {
|
|
2481
|
+
accordion: accordionPattern,
|
|
2482
|
+
alertdialog: alertDialogPattern,
|
|
2483
|
+
checkbox: checkboxPattern,
|
|
2484
|
+
"combobox-select-only": comboboxSelectOnlyPattern,
|
|
2485
|
+
"dialog-modal": dialogModalPattern,
|
|
2486
|
+
"menu-button": menuButtonPattern,
|
|
2487
|
+
radio: radioPattern,
|
|
2488
|
+
switch: switchPattern,
|
|
2489
|
+
tabs: tabsPattern
|
|
2490
|
+
};
|
|
2491
|
+
function getA11yPattern(id) {
|
|
2492
|
+
return a11yPatterns[id];
|
|
2493
|
+
}
|
|
2494
|
+
|
|
1358
2495
|
// src/components/animated-check/animated-check-contract.ts
|
|
1359
2496
|
var animatedCheckVariants = ["animated", "static"];
|
|
1360
2497
|
var animatedCheckStates = ["mounting", "drawn", "reduced-motion"];
|
|
@@ -1443,6 +2580,10 @@ var accordionVisualArchetypes = [
|
|
|
1443
2580
|
"trigger"
|
|
1444
2581
|
];
|
|
1445
2582
|
var accordionContract = {
|
|
2583
|
+
accessibility: {
|
|
2584
|
+
pattern: "accordion",
|
|
2585
|
+
options: { collapse: "collapsible", expand: "single" }
|
|
2586
|
+
},
|
|
1446
2587
|
defaultIconVariant: "chevron",
|
|
1447
2588
|
iconVariants: accordionIconVariants,
|
|
1448
2589
|
slots: accordionSlots,
|
|
@@ -1534,6 +2675,7 @@ var alertDialogVisualArchetypes = [
|
|
|
1534
2675
|
"action"
|
|
1535
2676
|
];
|
|
1536
2677
|
var alertDialogContract = {
|
|
2678
|
+
accessibility: { pattern: "alertdialog" },
|
|
1537
2679
|
defaultFooterVariant: "default",
|
|
1538
2680
|
defaultSize: "default",
|
|
1539
2681
|
defaultVariant: "default",
|
|
@@ -1809,6 +2951,7 @@ var checkboxStates = [
|
|
|
1809
2951
|
var checkboxSlots = ["checkbox", "checkbox-indicator"];
|
|
1810
2952
|
var checkboxVisualArchetypes = ["choice"];
|
|
1811
2953
|
var checkboxContract = {
|
|
2954
|
+
accessibility: { pattern: "checkbox" },
|
|
1812
2955
|
defaultSize: "md",
|
|
1813
2956
|
sizes: checkboxSizes,
|
|
1814
2957
|
states: checkboxStates,
|
|
@@ -1984,6 +3127,9 @@ var dialogVisualArchetypes = [
|
|
|
1984
3127
|
"action"
|
|
1985
3128
|
];
|
|
1986
3129
|
var dialogContract = {
|
|
3130
|
+
accessibility: {
|
|
3131
|
+
pattern: "dialog-modal"
|
|
3132
|
+
},
|
|
1987
3133
|
defaultFooterVariant: "default",
|
|
1988
3134
|
defaultMobilePlacement: "bottom",
|
|
1989
3135
|
defaultSize: "default",
|
|
@@ -2083,6 +3229,7 @@ var dropdownMenuVisualArchetypes = [
|
|
|
2083
3229
|
"choice"
|
|
2084
3230
|
];
|
|
2085
3231
|
var dropdownMenuContract = {
|
|
3232
|
+
accessibility: { pattern: "menu-button", options: { wrap: "wrap" } },
|
|
2086
3233
|
defaultItemVariant: "default",
|
|
2087
3234
|
itemVariants: dropdownMenuItemVariants,
|
|
2088
3235
|
slots: dropdownMenuSlots,
|
|
@@ -2618,6 +3765,7 @@ var radioStates = ["unchecked", "checked", "focus-visible", "disabled", "invalid
|
|
|
2618
3765
|
var radioSlots = ["radio-group", "radio", "radio-indicator"];
|
|
2619
3766
|
var radioVisualArchetypes = ["choice"];
|
|
2620
3767
|
var radioContract = {
|
|
3768
|
+
accessibility: { pattern: "radio" },
|
|
2621
3769
|
defaultSize: "md",
|
|
2622
3770
|
sizes: radioSizes,
|
|
2623
3771
|
states: radioStates,
|
|
@@ -2796,6 +3944,31 @@ var selectVisualArchetypes = [
|
|
|
2796
3944
|
"menu"
|
|
2797
3945
|
];
|
|
2798
3946
|
var selectContract = {
|
|
3947
|
+
accessibility: {
|
|
3948
|
+
pattern: "combobox-select-only",
|
|
3949
|
+
knownGaps: [
|
|
3950
|
+
{
|
|
3951
|
+
check: "combobox-active-descendant",
|
|
3952
|
+
reason: "Base UI Select moves DOM focus onto the options instead of keeping it on the combobox with aria-activedescendant, and has no option to change it. The APG Combobox pattern requires DOM focus to stay on the combobox (https://www.w3.org/WAI/ARIA/apg/patterns/combobox/), so this is a gap, not a variant. Screen readers still announce the focused option."
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
check: "home-opens-at-first",
|
|
3956
|
+
reason: "Base UI Select 1.6.0 does not open the listbox on Home; only Enter, Space and the arrow keys open it. See docs/design-system/audits/base-ui-issue-drafts.md."
|
|
3957
|
+
},
|
|
3958
|
+
{
|
|
3959
|
+
check: "end-opens-at-last",
|
|
3960
|
+
reason: "Base UI Select 1.6.0 does not open the listbox on End; only Enter, Space and the arrow keys open it. See docs/design-system/audits/base-ui-issue-drafts.md."
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
check: "alt-up-arrow-selects",
|
|
3964
|
+
reason: "Base UI Select 1.6.0 treats Alt + Up Arrow as Up Arrow: it moves the highlight and keeps the listbox open. See docs/design-system/audits/base-ui-issue-drafts.md."
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
check: "tab-selects",
|
|
3968
|
+
reason: "Base UI Select 1.6.0 closes the listbox on Tab without selecting the highlighted option. See docs/design-system/audits/base-ui-issue-drafts.md."
|
|
3969
|
+
}
|
|
3970
|
+
]
|
|
3971
|
+
},
|
|
2799
3972
|
defaultSize: "md",
|
|
2800
3973
|
sizes: selectSizes,
|
|
2801
3974
|
slots: selectSlots,
|
|
@@ -3004,6 +4177,7 @@ var switchStates = ["off", "on", "hover", "pressed", "focus-visible", "disabled"
|
|
|
3004
4177
|
var switchSlots = ["switch", "switch-thumb"];
|
|
3005
4178
|
var switchVisualArchetypes = ["choice"];
|
|
3006
4179
|
var switchContract = {
|
|
4180
|
+
accessibility: { pattern: "switch" },
|
|
3007
4181
|
defaultSize: "md",
|
|
3008
4182
|
sizes: switchSizes,
|
|
3009
4183
|
slots: switchSlots,
|
|
@@ -3046,6 +4220,7 @@ var tabsVisualArchetypes = [
|
|
|
3046
4220
|
"surface"
|
|
3047
4221
|
];
|
|
3048
4222
|
var tabsContract = {
|
|
4223
|
+
accessibility: { pattern: "tabs", options: { activation: "manual" } },
|
|
3049
4224
|
defaultVariant: "default",
|
|
3050
4225
|
defaultSize: "default",
|
|
3051
4226
|
variants: tabsVariants,
|
|
@@ -3244,6 +4419,6 @@ var defaultUIEnvironment = {
|
|
|
3244
4419
|
theme: personalizationAxes.theme.default
|
|
3245
4420
|
};
|
|
3246
4421
|
|
|
3247
|
-
export { accordionContract, accordionIconVariants, accordionSlots, accordionStates, accordionVisualArchetypes, alertContract, alertDialogContract, alertDialogFooterVariants, alertDialogSizes, alertDialogSlots, alertDialogStates, alertDialogVariants, alertDialogVisualArchetypes, alertSlots, alertVariants, alertVisualArchetypes, animatedCheckContract, animatedCheckSlots, animatedCheckStates, animatedCheckVariants, animatedCheckVisualArchetypes, autocompleteContract, autocompleteSizes, autocompleteSlots, autocompleteStates, autocompleteVisualArchetypes, avatarCompositions, avatarContract, avatarSizes, avatarSlots, avatarStates, avatarVisualArchetypes, badgeContract, badgePaletteVariants, badgeSemanticVariants, badgeSizes, badgeSlots, badgeSolidVariants, badgeStates, badgeVariants, badgeVisualArchetypes, brands, breadcrumbCompositions, breadcrumbContract, breadcrumbSlots, breadcrumbStates, breadcrumbVisualArchetypes, buttonContract, buttonGroupContract, buttonGroupOrientations, buttonGroupSizes, buttonGroupSlots, buttonGroupStates, buttonGroupVisualArchetypes, buttonSizes, buttonSlots, buttonStates, buttonTokenSlots, buttonVariants, buttonVisualArchetypes, calendarContract, calendarSelectionModes, calendarSlots, calendarStates, calendarVisualArchetypes, cardContentPaddings, cardContract, cardLineClamps, cardPaddings, cardSlots, cardStates, cardVariants, cardVisualArchetypes, carouselContract, carouselOrientations, carouselSlots, carouselStates, carouselVisualArchetypes, checkboxContract, checkboxSizes, checkboxSlots, checkboxStates, checkboxVisualArchetypes, collapsibleContract, collapsibleSlots, collapsibleStates, collapsibleVisualArchetypes, commandContract, commandSlots, commandStates, commandVisualArchetypes, connectedPanelAligns, connectedPanelContract, connectedPanelSlots, connectedPanelStates, connectedPanelVisualArchetypes, contextMenuContract, contextMenuSlots, contextMenuStates, contextMenuVisualArchetypes, copyButtonContract, copyButtonSizePairs, copyButtonSizes, copyButtonSlots, copyButtonStates, copyButtonVariants, copyButtonVisualArchetypes, crossRendererContracts, defaultUIEnvironment, densities, designLanguages, destinationKinds, destinationLinkContract, destinationLinkSlots, destinationLinkStates, destinationLinkVisualArchetypes, dialogContract, dialogFooterVariants, dialogMobilePlacements, dialogSizes, dialogSlots, dialogStates, dialogVisualArchetypes, drawerContract, drawerDirections, drawerFooterVariants, drawerSlots, drawerStates, drawerVisualArchetypes, dropdownMenuContract, dropdownMenuItemVariants, dropdownMenuSlots, dropdownMenuStates, dropdownMenuVisualArchetypes, emptyContract, emptyMediaVariants, emptySlots, emptyStates, emptyVisualArchetypes, feedbackStateContract, feedbackStateKinds, feedbackStateSizes, feedbackStateSlots, feedbackStateStates, feedbackStateVisualArchetypes, fieldContract, fieldLegendVariants, fieldOrientations, fieldSlots, fieldStates, fieldVisualArchetypes, fonts, formContract, formSlots, formStates, formVisualArchetypes, frameBorders, frameContract, framePanelSurfaces, framePresets, frameSlots, frameStates, frameTrays, frameVariants, frameVisualArchetypes, getCrossRendererContract, hoverCardContract, hoverCardSlots, hoverCardStates, hoverCardVisualArchetypes, iconThemes, inputContract, inputGroupAligns, inputGroupContract, inputGroupSlots, inputGroupVisualArchetypes, inputOTPContract, inputOTPSlots, inputOTPStates, inputOTPVisualArchetypes, inputSizes, inputSlots, inputStates, inputTokenSlots, inputVisualArchetypes, inputs, itemContract, itemMediaVariants, itemSizes, itemSlots, itemStates, itemVariants, itemVisualArchetypes, kbdContract, kbdSizes, kbdSlots, kbdStates, kbdVisualArchetypes, labelContract, labelSlots, labelStates, labelVisualArchetypes, loadMoreTriggerContract, loadMoreTriggerSlots, loadMoreTriggerStates, loadMoreTriggerVariants, loadMoreTriggerVisualArchetypes, marqueeContract, marqueeOrientations, marqueeSlots, marqueeStates, marqueeVisualArchetypes, menuContract, menuItemVariants, menuSlots, menuStates, menuTones, menuVisualArchetypes, menubarContract, menubarSlots, menubarStates, menubarVisualArchetypes, modes, navigationMenuContract, navigationMenuSlots, navigationMenuStates, navigationMenuVisualArchetypes, osSystems, paginationContract, paginationSlots, paginationStates, paginationVisualArchetypes, panelSettingButtonContract, panelSettingButtonSlots, panelSettingButtonStates, panelSettingButtonVisualArchetypes, personalizationAxes, popoverContract, popoverSlots, popoverStates, popoverVisualArchetypes, portalContainerContract, portalContainerStates, portalContainerTargets, portalContainerVisualArchetypes, previewCardContract, previewCardSlots, previewCardStates, previewCardVisualArchetypes, progressContract, progressSlots, progressStates, progressVisualArchetypes, radii, radioContract, radioSizes, radioSlots, radioStates, radioVisualArchetypes, resizableContract, resizableOrientations, resizableSlots, resizableStates, resizableVariants, resizableVisualArchetypes, resolveFrameChrome, scrollAreaContract, scrollAreaOptions, scrollAreaOrientations, scrollAreaSlots, scrollAreaStates, scrollAreaVisualArchetypes, scrollableListContract, scrollableListLayouts, scrollableListOptions, scrollableListSlots, scrollableListStates, scrollableListVisualArchetypes, searchFieldContract, searchFieldSlots, searchFieldStates, searchFieldVisualArchetypes, segmentedControlContract, segmentedControlSizes, segmentedControlSlots, segmentedControlStates, segmentedControlTones, segmentedControlVariants, segmentedControlVisualArchetypes, selectContract, selectSizes, selectSlots, selectStates, selectTokenSlots, selectVisualArchetypes, selectionTokenSlots, separatorContract, separatorModes, separatorOrientations, separatorSlots, separatorVariants, separatorVisualArchetypes, sheetContract, sheetFooterVariants, sheetSides, sheetSlots, sheetStates, sheetVariants, sheetVisualArchetypes, sidebarCollapsibles, sidebarContract, sidebarMenuButtonSizes, sidebarMenuButtonVariants, sidebarMenuSubButtonSizes, sidebarNavTreeContract, sidebarNavTreeParts, sidebarNavTreeStates, sidebarNavTreeVisualArchetypes, sidebarSides, sidebarSlots, sidebarStates, sidebarVariants, sidebarVisualArchetypes, skeletonContract, skeletonSlots, skeletonStates, skeletonVisualArchetypes, sliderContract, sliderModes, sliderOrientations, sliderSlots, sliderStates, sliderVisualArchetypes, spinnerContract, spinnerSlots, spinnerStates, spinnerVisualArchetypes, surfaces, switchContract, switchSizes, switchSlots, switchStates, switchVisualArchetypes, tableContract, tableSlots, tableStates, tableVariants, tableVisualArchetypes, tabsContract, tabsOrientations, tabsSizes, tabsSlots, tabsStates, tabsVariants, tabsVisualArchetypes, textTickerContract, textTickerSlots, textTickerStates, textTickerVariants, textTickerVisualArchetypes, textareaContract, textareaSizes, textareaSlots, textareaStates, textareaTokenSlots, textareaVisualArchetypes, themes, toasterContract, toasterSlots, toasterStates, toasterTones, toasterVisualArchetypes, toggleContract, toggleGroupContract, toggleGroupOrientations, toggleGroupSelectionModes, toggleGroupSlots, toggleGroupStates, toggleGroupTokenSlots, toggleGroupVisualArchetypes, toggleSizes, toggleSlots, toggleStates, toggleTokenSlots, toggleTones, toggleVisualArchetypes, tooltipAlignments, tooltipContract, tooltipSides, tooltipSlots, tooltipStates, tooltipTokenSlots, tooltipVisualArchetypes, typeScales, visualArchetypeIds, visualArchetypes };
|
|
4422
|
+
export { a11yPatterns, accordionContract, accordionIconVariants, accordionPattern, accordionSlots, accordionStates, accordionVisualArchetypes, alertContract, alertDialogContract, alertDialogFooterVariants, alertDialogPattern, alertDialogSizes, alertDialogSlots, alertDialogStates, alertDialogVariants, alertDialogVisualArchetypes, alertSlots, alertVariants, alertVisualArchetypes, animatedCheckContract, animatedCheckSlots, animatedCheckStates, animatedCheckVariants, animatedCheckVisualArchetypes, autocompleteContract, autocompleteSizes, autocompleteSlots, autocompleteStates, autocompleteVisualArchetypes, avatarCompositions, avatarContract, avatarSizes, avatarSlots, avatarStates, avatarVisualArchetypes, badgeContract, badgePaletteVariants, badgeSemanticVariants, badgeSizes, badgeSlots, badgeSolidVariants, badgeStates, badgeVariants, badgeVisualArchetypes, brands, breadcrumbCompositions, breadcrumbContract, breadcrumbSlots, breadcrumbStates, breadcrumbVisualArchetypes, buttonContract, buttonGroupContract, buttonGroupOrientations, buttonGroupSizes, buttonGroupSlots, buttonGroupStates, buttonGroupVisualArchetypes, buttonSizes, buttonSlots, buttonStates, buttonTokenSlots, buttonVariants, buttonVisualArchetypes, calendarContract, calendarSelectionModes, calendarSlots, calendarStates, calendarVisualArchetypes, cardContentPaddings, cardContract, cardLineClamps, cardPaddings, cardSlots, cardStates, cardVariants, cardVisualArchetypes, carouselContract, carouselOrientations, carouselSlots, carouselStates, carouselVisualArchetypes, checkboxContract, checkboxPattern, checkboxSizes, checkboxSlots, checkboxStates, checkboxVisualArchetypes, collapsibleContract, collapsibleSlots, collapsibleStates, collapsibleVisualArchetypes, comboboxSelectOnlyPattern, commandContract, commandSlots, commandStates, commandVisualArchetypes, connectedPanelAligns, connectedPanelContract, connectedPanelSlots, connectedPanelStates, connectedPanelVisualArchetypes, contextMenuContract, contextMenuSlots, contextMenuStates, contextMenuVisualArchetypes, copyButtonContract, copyButtonSizePairs, copyButtonSizes, copyButtonSlots, copyButtonStates, copyButtonVariants, copyButtonVisualArchetypes, crossRendererContracts, defaultUIEnvironment, densities, designLanguages, destinationKinds, destinationLinkContract, destinationLinkSlots, destinationLinkStates, destinationLinkVisualArchetypes, dialogContract, dialogFooterVariants, dialogMobilePlacements, dialogModalPattern, dialogSizes, dialogSlots, dialogStates, dialogVisualArchetypes, drawerContract, drawerDirections, drawerFooterVariants, drawerSlots, drawerStates, drawerVisualArchetypes, dropdownMenuContract, dropdownMenuItemVariants, dropdownMenuSlots, dropdownMenuStates, dropdownMenuVisualArchetypes, emptyContract, emptyMediaVariants, emptySlots, emptyStates, emptyVisualArchetypes, feedbackStateContract, feedbackStateKinds, feedbackStateSizes, feedbackStateSlots, feedbackStateStates, feedbackStateVisualArchetypes, fieldContract, fieldLegendVariants, fieldOrientations, fieldSlots, fieldStates, fieldVisualArchetypes, fonts, formContract, formSlots, formStates, formVisualArchetypes, frameBorders, frameContract, framePanelSurfaces, framePresets, frameSlots, frameStates, frameTrays, frameVariants, frameVisualArchetypes, getA11yPattern, getCrossRendererContract, hoverCardContract, hoverCardSlots, hoverCardStates, hoverCardVisualArchetypes, iconThemes, inputContract, inputGroupAligns, inputGroupContract, inputGroupSlots, inputGroupVisualArchetypes, inputOTPContract, inputOTPSlots, inputOTPStates, inputOTPVisualArchetypes, inputSizes, inputSlots, inputStates, inputTokenSlots, inputVisualArchetypes, inputs, itemContract, itemMediaVariants, itemSizes, itemSlots, itemStates, itemVariants, itemVisualArchetypes, kbdContract, kbdSizes, kbdSlots, kbdStates, kbdVisualArchetypes, labelContract, labelSlots, labelStates, labelVisualArchetypes, loadMoreTriggerContract, loadMoreTriggerSlots, loadMoreTriggerStates, loadMoreTriggerVariants, loadMoreTriggerVisualArchetypes, marqueeContract, marqueeOrientations, marqueeSlots, marqueeStates, marqueeVisualArchetypes, menuButtonPattern, menuContract, menuItemVariants, menuSlots, menuStates, menuTones, menuVisualArchetypes, menubarContract, menubarSlots, menubarStates, menubarVisualArchetypes, modes, navigationMenuContract, navigationMenuSlots, navigationMenuStates, navigationMenuVisualArchetypes, osSystems, paginationContract, paginationSlots, paginationStates, paginationVisualArchetypes, panelSettingButtonContract, panelSettingButtonSlots, panelSettingButtonStates, panelSettingButtonVisualArchetypes, personalizationAxes, popoverContract, popoverSlots, popoverStates, popoverVisualArchetypes, portalContainerContract, portalContainerStates, portalContainerTargets, portalContainerVisualArchetypes, previewCardContract, previewCardSlots, previewCardStates, previewCardVisualArchetypes, progressContract, progressSlots, progressStates, progressVisualArchetypes, radii, radioContract, radioPattern, radioSizes, radioSlots, radioStates, radioVisualArchetypes, resizableContract, resizableOrientations, resizableSlots, resizableStates, resizableVariants, resizableVisualArchetypes, resolveFrameChrome, scrollAreaContract, scrollAreaOptions, scrollAreaOrientations, scrollAreaSlots, scrollAreaStates, scrollAreaVisualArchetypes, scrollableListContract, scrollableListLayouts, scrollableListOptions, scrollableListSlots, scrollableListStates, scrollableListVisualArchetypes, searchFieldContract, searchFieldSlots, searchFieldStates, searchFieldVisualArchetypes, segmentedControlContract, segmentedControlSizes, segmentedControlSlots, segmentedControlStates, segmentedControlTones, segmentedControlVariants, segmentedControlVisualArchetypes, selectContract, selectSizes, selectSlots, selectStates, selectTokenSlots, selectVisualArchetypes, selectionTokenSlots, separatorContract, separatorModes, separatorOrientations, separatorSlots, separatorVariants, separatorVisualArchetypes, sheetContract, sheetFooterVariants, sheetSides, sheetSlots, sheetStates, sheetVariants, sheetVisualArchetypes, sidebarCollapsibles, sidebarContract, sidebarMenuButtonSizes, sidebarMenuButtonVariants, sidebarMenuSubButtonSizes, sidebarNavTreeContract, sidebarNavTreeParts, sidebarNavTreeStates, sidebarNavTreeVisualArchetypes, sidebarSides, sidebarSlots, sidebarStates, sidebarVariants, sidebarVisualArchetypes, skeletonContract, skeletonSlots, skeletonStates, skeletonVisualArchetypes, sliderContract, sliderModes, sliderOrientations, sliderSlots, sliderStates, sliderVisualArchetypes, spinnerContract, spinnerSlots, spinnerStates, spinnerVisualArchetypes, surfaces, switchContract, switchPattern, switchSizes, switchSlots, switchStates, switchVisualArchetypes, tableContract, tableSlots, tableStates, tableVariants, tableVisualArchetypes, tabsContract, tabsOrientations, tabsPattern, tabsSizes, tabsSlots, tabsStates, tabsVariants, tabsVisualArchetypes, textTickerContract, textTickerSlots, textTickerStates, textTickerVariants, textTickerVisualArchetypes, textareaContract, textareaSizes, textareaSlots, textareaStates, textareaTokenSlots, textareaVisualArchetypes, themes, toasterContract, toasterSlots, toasterStates, toasterTones, toasterVisualArchetypes, toggleContract, toggleGroupContract, toggleGroupOrientations, toggleGroupSelectionModes, toggleGroupSlots, toggleGroupStates, toggleGroupTokenSlots, toggleGroupVisualArchetypes, toggleSizes, toggleSlots, toggleStates, toggleTokenSlots, toggleTones, toggleVisualArchetypes, tooltipAlignments, tooltipContract, tooltipSides, tooltipSlots, tooltipStates, tooltipTokenSlots, tooltipVisualArchetypes, typeScales, visualArchetypeIds, visualArchetypes };
|
|
3248
4423
|
//# sourceMappingURL=index.js.map
|
|
3249
4424
|
//# sourceMappingURL=index.js.map
|