@genesislcap/foundation-ui 14.491.0 → 14.491.1

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.
@@ -1408,11 +1408,42 @@
1408
1408
  },
1409
1409
  {
1410
1410
  "kind": "javascript-module",
1411
- "path": "src/accordion/accordion.styles.ts",
1411
+ "path": "src/_config/index.ts",
1412
+ "declarations": [],
1413
+ "exports": [
1414
+ {
1415
+ "kind": "js",
1416
+ "name": "*",
1417
+ "declaration": {
1418
+ "name": "*",
1419
+ "package": "./styles"
1420
+ }
1421
+ },
1422
+ {
1423
+ "kind": "js",
1424
+ "name": "*",
1425
+ "declaration": {
1426
+ "name": "*",
1427
+ "package": "./tokens"
1428
+ }
1429
+ },
1430
+ {
1431
+ "kind": "js",
1432
+ "name": "*",
1433
+ "declaration": {
1434
+ "name": "*",
1435
+ "package": "./values"
1436
+ }
1437
+ }
1438
+ ]
1439
+ },
1440
+ {
1441
+ "kind": "javascript-module",
1442
+ "path": "src/accordion-item/accordion-item.styles.ts",
1412
1443
  "declarations": [
1413
1444
  {
1414
1445
  "kind": "function",
1415
- "name": "foundationAccordionStyles",
1446
+ "name": "foundationAccordionItemStyles",
1416
1447
  "return": {
1417
1448
  "type": {
1418
1449
  "text": "ElementStyles"
@@ -1437,24 +1468,24 @@
1437
1468
  "exports": [
1438
1469
  {
1439
1470
  "kind": "js",
1440
- "name": "foundationAccordionStyles",
1471
+ "name": "foundationAccordionItemStyles",
1441
1472
  "declaration": {
1442
- "name": "foundationAccordionStyles",
1443
- "module": "src/accordion/accordion.styles.ts"
1473
+ "name": "foundationAccordionItemStyles",
1474
+ "module": "src/accordion-item/accordion-item.styles.ts"
1444
1475
  }
1445
1476
  }
1446
1477
  ]
1447
1478
  },
1448
1479
  {
1449
1480
  "kind": "javascript-module",
1450
- "path": "src/accordion/accordion.template.ts",
1481
+ "path": "src/accordion-item/accordion-item.template.ts",
1451
1482
  "declarations": [
1452
1483
  {
1453
1484
  "kind": "function",
1454
- "name": "foundationAccordionTemplate",
1485
+ "name": "foundationAccordionItemTemplate",
1455
1486
  "return": {
1456
1487
  "type": {
1457
- "text": "ViewTemplate<Accordion>"
1488
+ "text": "ViewTemplate<AccordionItem>"
1458
1489
  }
1459
1490
  },
1460
1491
  "parameters": [
@@ -1476,365 +1507,244 @@
1476
1507
  "exports": [
1477
1508
  {
1478
1509
  "kind": "js",
1479
- "name": "foundationAccordionTemplate",
1510
+ "name": "foundationAccordionItemTemplate",
1480
1511
  "declaration": {
1481
- "name": "foundationAccordionTemplate",
1482
- "module": "src/accordion/accordion.template.ts"
1512
+ "name": "foundationAccordionItemTemplate",
1513
+ "module": "src/accordion-item/accordion-item.template.ts"
1483
1514
  }
1484
1515
  }
1485
1516
  ]
1486
1517
  },
1487
1518
  {
1488
1519
  "kind": "javascript-module",
1489
- "path": "src/accordion/accordion.ts",
1520
+ "path": "src/accordion-item/accordion-item.ts",
1490
1521
  "declarations": [
1491
1522
  {
1492
1523
  "kind": "class",
1493
1524
  "description": "",
1494
- "name": "Accordion",
1525
+ "name": "AccordionItem",
1495
1526
  "superclass": {
1496
- "name": "FASTAccordion",
1497
- "package": "@microsoft/fast-foundation"
1527
+ "name": "FASTAccordionItem",
1528
+ "package": "@microsoft/fast-components"
1498
1529
  },
1499
- "tagName": "%%prefix%%-accordion",
1530
+ "tagName": "%%prefix%%-accordion-item",
1500
1531
  "customElement": true,
1501
1532
  "attributes": [
1502
1533
  {
1503
- "name": "expand-mode",
1534
+ "name": "heading-level",
1504
1535
  "type": {
1505
- "text": "AccordionExpandMode"
1536
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1506
1537
  },
1507
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1508
- "fieldName": "expandmode",
1538
+ "default": "2",
1539
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1540
+ "fieldName": "headinglevel",
1509
1541
  "inheritedFrom": {
1510
- "name": "Accordion",
1511
- "module": "src/accordion/accordion.ts"
1542
+ "name": "AccordionItem",
1543
+ "module": "src/accordion-item/accordion-item.ts"
1544
+ }
1545
+ },
1546
+ {
1547
+ "type": {
1548
+ "text": "boolean"
1549
+ },
1550
+ "default": "false",
1551
+ "description": "Expands or collapses the item.",
1552
+ "fieldName": "expanded",
1553
+ "inheritedFrom": {
1554
+ "name": "AccordionItem",
1555
+ "module": "src/accordion-item/accordion-item.ts"
1556
+ }
1557
+ },
1558
+ {
1559
+ "name": "id",
1560
+ "type": {
1561
+ "text": "string"
1562
+ },
1563
+ "description": "The item ID",
1564
+ "fieldName": "id",
1565
+ "inheritedFrom": {
1566
+ "name": "AccordionItem",
1567
+ "module": "src/accordion-item/accordion-item.ts"
1512
1568
  }
1513
1569
  }
1514
1570
  ],
1515
1571
  "members": [
1516
1572
  {
1517
1573
  "kind": "field",
1518
- "name": "expandmode",
1574
+ "name": "headinglevel",
1519
1575
  "type": {
1520
- "text": "AccordionExpandMode"
1576
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1521
1577
  },
1522
1578
  "privacy": "public",
1523
- "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
1579
+ "default": "2",
1580
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1524
1581
  "inheritedFrom": {
1525
- "name": "Accordion",
1526
- "module": "src/accordion/accordion.ts"
1582
+ "name": "AccordionItem",
1583
+ "module": "src/accordion-item/accordion-item.ts"
1527
1584
  }
1528
1585
  },
1529
1586
  {
1530
1587
  "kind": "field",
1531
- "name": "activeid",
1588
+ "name": "expanded",
1532
1589
  "type": {
1533
- "text": "string | null"
1590
+ "text": "boolean"
1534
1591
  },
1535
- "privacy": "private",
1592
+ "privacy": "public",
1593
+ "default": "false",
1594
+ "description": "Expands or collapses the item.",
1536
1595
  "inheritedFrom": {
1537
- "name": "Accordion",
1538
- "module": "src/accordion/accordion.ts"
1596
+ "name": "AccordionItem",
1597
+ "module": "src/accordion-item/accordion-item.ts"
1539
1598
  }
1540
1599
  },
1541
1600
  {
1542
1601
  "kind": "field",
1543
- "name": "activeItemIndex",
1602
+ "name": "id",
1544
1603
  "type": {
1545
- "text": "number"
1604
+ "text": "string"
1546
1605
  },
1547
- "privacy": "private",
1548
- "default": "0",
1606
+ "privacy": "public",
1607
+ "description": "The item ID",
1549
1608
  "inheritedFrom": {
1550
- "name": "Accordion",
1551
- "module": "src/accordion/accordion.ts"
1609
+ "name": "AccordionItem",
1610
+ "module": "src/accordion-item/accordion-item.ts"
1552
1611
  }
1553
1612
  },
1554
1613
  {
1555
1614
  "kind": "field",
1556
- "name": "accordionIds",
1557
- "type": {
1558
- "text": "Array<string | null>"
1559
- },
1615
+ "name": "change",
1560
1616
  "privacy": "private",
1561
1617
  "inheritedFrom": {
1562
- "name": "Accordion",
1563
- "module": "src/accordion/accordion.ts"
1618
+ "name": "AccordionItem",
1619
+ "module": "src/accordion-item/accordion-item.ts"
1564
1620
  }
1565
1621
  },
1566
1622
  {
1567
1623
  "kind": "field",
1568
- "name": "change",
1624
+ "name": "_presentation",
1625
+ "type": {
1626
+ "text": "ComponentPresentation | null | undefined"
1627
+ },
1569
1628
  "privacy": "private",
1629
+ "default": "void 0",
1570
1630
  "inheritedFrom": {
1571
- "name": "Accordion",
1572
- "module": "src/accordion/accordion.ts"
1631
+ "name": "FoundationElement",
1632
+ "module": "src/foundation-element/foundation-element.ts"
1573
1633
  }
1574
1634
  },
1575
1635
  {
1576
- "kind": "method",
1577
- "name": "findExpandedItem",
1578
- "privacy": "private",
1579
- "return": {
1580
- "type": {
1581
- "text": "AccordionItem | null"
1582
- }
1636
+ "kind": "field",
1637
+ "name": "$presentation",
1638
+ "type": {
1639
+ "text": "ComponentPresentation | null"
1583
1640
  },
1641
+ "privacy": "public",
1642
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1584
1643
  "inheritedFrom": {
1585
- "name": "Accordion",
1586
- "module": "src/accordion/accordion.ts"
1644
+ "name": "FoundationElement",
1645
+ "module": "src/foundation-element/foundation-element.ts"
1587
1646
  }
1588
1647
  },
1589
1648
  {
1590
1649
  "kind": "field",
1591
- "name": "setItems",
1592
- "privacy": "private",
1650
+ "name": "template",
1651
+ "type": {
1652
+ "text": "ElementViewTemplate | void | null"
1653
+ },
1654
+ "privacy": "public",
1655
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1593
1656
  "inheritedFrom": {
1594
- "name": "Accordion",
1595
- "module": "src/accordion/accordion.ts"
1657
+ "name": "FoundationElement",
1658
+ "module": "src/foundation-element/foundation-element.ts"
1596
1659
  }
1597
1660
  },
1598
1661
  {
1599
1662
  "kind": "method",
1600
- "name": "resetItems",
1601
- "privacy": "private",
1663
+ "name": "templateChanged",
1664
+ "privacy": "protected",
1602
1665
  "return": {
1603
1666
  "type": {
1604
1667
  "text": "void"
1605
1668
  }
1606
1669
  },
1607
1670
  "inheritedFrom": {
1608
- "name": "Accordion",
1609
- "module": "src/accordion/accordion.ts"
1610
- }
1611
- },
1612
- {
1613
- "kind": "field",
1614
- "name": "removeItemListeners",
1615
- "privacy": "private",
1616
- "inheritedFrom": {
1617
- "name": "Accordion",
1618
- "module": "src/accordion/accordion.ts"
1671
+ "name": "FoundationElement",
1672
+ "module": "src/foundation-element/foundation-element.ts"
1619
1673
  }
1620
1674
  },
1621
1675
  {
1622
1676
  "kind": "field",
1623
- "name": "activeItemChange",
1624
- "privacy": "private",
1677
+ "name": "styles",
1678
+ "type": {
1679
+ "text": "ElementStyles | void | null"
1680
+ },
1681
+ "privacy": "public",
1682
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1625
1683
  "inheritedFrom": {
1626
- "name": "Accordion",
1627
- "module": "src/accordion/accordion.ts"
1684
+ "name": "FoundationElement",
1685
+ "module": "src/foundation-element/foundation-element.ts"
1628
1686
  }
1629
1687
  },
1630
1688
  {
1631
1689
  "kind": "method",
1632
- "name": "getItemIds",
1633
- "privacy": "private",
1690
+ "name": "stylesChanged",
1691
+ "privacy": "protected",
1634
1692
  "return": {
1635
1693
  "type": {
1636
- "text": "Array<string | null>"
1694
+ "text": "void"
1637
1695
  }
1638
1696
  },
1639
1697
  "inheritedFrom": {
1640
- "name": "Accordion",
1641
- "module": "src/accordion/accordion.ts"
1698
+ "name": "FoundationElement",
1699
+ "module": "src/foundation-element/foundation-element.ts"
1642
1700
  }
1643
1701
  },
1644
1702
  {
1645
1703
  "kind": "method",
1646
- "name": "isSingleExpandMode",
1647
- "privacy": "private",
1704
+ "name": "compose",
1705
+ "privacy": "public",
1706
+ "static": true,
1648
1707
  "return": {
1649
1708
  "type": {
1650
- "text": "boolean"
1709
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1651
1710
  }
1652
1711
  },
1712
+ "parameters": [
1713
+ {
1714
+ "name": "this",
1715
+ "type": {
1716
+ "text": "K"
1717
+ }
1718
+ },
1719
+ {
1720
+ "name": "elementDefinition",
1721
+ "type": {
1722
+ "text": "T"
1723
+ },
1724
+ "description": "The definition of the element to create the registry\nfunction for."
1725
+ }
1726
+ ],
1727
+ "description": "Defines an element registry function with a set of element definition defaults.",
1653
1728
  "inheritedFrom": {
1654
- "name": "Accordion",
1655
- "module": "src/accordion/accordion.ts"
1729
+ "name": "FoundationElement",
1730
+ "module": "src/foundation-element/foundation-element.ts"
1656
1731
  }
1657
- },
1732
+ }
1733
+ ],
1734
+ "events": [
1658
1735
  {
1659
- "kind": "field",
1660
- "name": "handleItemKeyDown",
1661
- "privacy": "private",
1662
- "inheritedFrom": {
1663
- "name": "Accordion",
1664
- "module": "src/accordion/accordion.ts"
1665
- }
1666
- },
1667
- {
1668
- "kind": "field",
1669
- "name": "handleItemFocus",
1670
- "privacy": "private",
1671
- "inheritedFrom": {
1672
- "name": "Accordion",
1673
- "module": "src/accordion/accordion.ts"
1674
- }
1675
- },
1676
- {
1677
- "kind": "method",
1678
- "name": "adjust",
1679
- "privacy": "private",
1680
- "return": {
1681
- "type": {
1682
- "text": "void"
1683
- }
1684
- },
1685
- "parameters": [
1686
- {
1687
- "name": "adjustment",
1688
- "type": {
1689
- "text": "number"
1690
- }
1691
- }
1692
- ],
1693
- "inheritedFrom": {
1694
- "name": "Accordion",
1695
- "module": "src/accordion/accordion.ts"
1696
- }
1697
- },
1698
- {
1699
- "kind": "method",
1700
- "name": "focusItem",
1701
- "privacy": "private",
1702
- "return": {
1703
- "type": {
1704
- "text": "void"
1705
- }
1706
- },
1707
- "inheritedFrom": {
1708
- "name": "Accordion",
1709
- "module": "src/accordion/accordion.ts"
1710
- }
1711
- },
1712
- {
1713
- "kind": "field",
1714
- "name": "_presentation",
1715
- "type": {
1716
- "text": "ComponentPresentation | null | undefined"
1717
- },
1718
- "privacy": "private",
1719
- "default": "void 0",
1720
- "inheritedFrom": {
1721
- "name": "FoundationElement",
1722
- "module": "src/foundation-element/foundation-element.ts"
1723
- }
1724
- },
1725
- {
1726
- "kind": "field",
1727
- "name": "$presentation",
1728
- "type": {
1729
- "text": "ComponentPresentation | null"
1730
- },
1731
- "privacy": "public",
1732
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1733
- "inheritedFrom": {
1734
- "name": "FoundationElement",
1735
- "module": "src/foundation-element/foundation-element.ts"
1736
- }
1737
- },
1738
- {
1739
- "kind": "field",
1740
- "name": "template",
1741
- "type": {
1742
- "text": "ElementViewTemplate | void | null"
1743
- },
1744
- "privacy": "public",
1745
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
1746
- "inheritedFrom": {
1747
- "name": "FoundationElement",
1748
- "module": "src/foundation-element/foundation-element.ts"
1749
- }
1750
- },
1751
- {
1752
- "kind": "method",
1753
- "name": "templateChanged",
1754
- "privacy": "protected",
1755
- "return": {
1756
- "type": {
1757
- "text": "void"
1758
- }
1759
- },
1760
- "inheritedFrom": {
1761
- "name": "FoundationElement",
1762
- "module": "src/foundation-element/foundation-element.ts"
1763
- }
1764
- },
1765
- {
1766
- "kind": "field",
1767
- "name": "styles",
1768
- "type": {
1769
- "text": "ElementStyles | void | null"
1770
- },
1771
- "privacy": "public",
1772
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
1773
- "inheritedFrom": {
1774
- "name": "FoundationElement",
1775
- "module": "src/foundation-element/foundation-element.ts"
1776
- }
1777
- },
1778
- {
1779
- "kind": "method",
1780
- "name": "stylesChanged",
1781
- "privacy": "protected",
1782
- "return": {
1783
- "type": {
1784
- "text": "void"
1785
- }
1786
- },
1787
- "inheritedFrom": {
1788
- "name": "FoundationElement",
1789
- "module": "src/foundation-element/foundation-element.ts"
1790
- }
1791
- },
1792
- {
1793
- "kind": "method",
1794
- "name": "compose",
1795
- "privacy": "public",
1796
- "static": true,
1797
- "return": {
1798
- "type": {
1799
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1800
- }
1801
- },
1802
- "parameters": [
1803
- {
1804
- "name": "this",
1805
- "type": {
1806
- "text": "K"
1807
- }
1808
- },
1809
- {
1810
- "name": "elementDefinition",
1811
- "type": {
1812
- "text": "T"
1813
- },
1814
- "description": "The definition of the element to create the registry\nfunction for."
1815
- }
1816
- ],
1817
- "description": "Defines an element registry function with a set of element definition defaults.",
1818
- "inheritedFrom": {
1819
- "name": "FoundationElement",
1820
- "module": "src/foundation-element/foundation-element.ts"
1821
- }
1822
- }
1823
- ],
1824
- "events": [
1825
- {
1826
- "description": "Fires a custom 'change' event when the active item changes",
1736
+ "description": "Fires a custom 'change' event when the button is invoked",
1827
1737
  "name": "change",
1828
1738
  "inheritedFrom": {
1829
- "name": "Accordion",
1830
- "module": "src/accordion/accordion.ts"
1739
+ "name": "AccordionItem",
1740
+ "module": "src/accordion-item/accordion-item.ts"
1831
1741
  }
1832
1742
  }
1833
1743
  ]
1834
1744
  },
1835
1745
  {
1836
1746
  "kind": "variable",
1837
- "name": "foundationAccordionShadowOptions",
1747
+ "name": "foundationAccordionItemShadowOptions",
1838
1748
  "type": {
1839
1749
  "text": "ShadowRootInit"
1840
1750
  },
@@ -1842,88 +1752,57 @@
1842
1752
  },
1843
1753
  {
1844
1754
  "kind": "variable",
1845
- "name": "defaultAccordionConfig",
1755
+ "name": "defaultAccordionItemConfig",
1846
1756
  "type": {
1847
1757
  "text": "object"
1848
1758
  },
1849
- "default": "{}"
1759
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1850
1760
  },
1851
1761
  {
1852
1762
  "kind": "variable",
1853
- "name": "foundationAccordion",
1854
- "description": "The Foundation Accordion",
1763
+ "name": "foundationAccordionItem",
1764
+ "description": "The Foundation Accordion Item",
1855
1765
  "privacy": "public"
1856
1766
  }
1857
1767
  ],
1858
1768
  "exports": [
1859
1769
  {
1860
1770
  "kind": "js",
1861
- "name": "Accordion",
1862
- "declaration": {
1863
- "name": "Accordion",
1864
- "module": "src/accordion/accordion.ts"
1865
- }
1866
- },
1867
- {
1868
- "kind": "js",
1869
- "name": "foundationAccordionShadowOptions",
1870
- "declaration": {
1871
- "name": "foundationAccordionShadowOptions",
1872
- "module": "src/accordion/accordion.ts"
1873
- }
1874
- },
1875
- {
1876
- "kind": "js",
1877
- "name": "defaultAccordionConfig",
1771
+ "name": "AccordionItem",
1878
1772
  "declaration": {
1879
- "name": "defaultAccordionConfig",
1880
- "module": "src/accordion/accordion.ts"
1773
+ "name": "AccordionItem",
1774
+ "module": "src/accordion-item/accordion-item.ts"
1881
1775
  }
1882
1776
  },
1883
1777
  {
1884
1778
  "kind": "js",
1885
- "name": "foundationAccordion",
1886
- "declaration": {
1887
- "name": "foundationAccordion",
1888
- "module": "src/accordion/accordion.ts"
1889
- }
1890
- }
1891
- ]
1892
- },
1893
- {
1894
- "kind": "javascript-module",
1895
- "path": "src/accordion/index.ts",
1896
- "declarations": [],
1897
- "exports": [
1898
- {
1899
- "kind": "js",
1900
- "name": "*",
1779
+ "name": "foundationAccordionItemShadowOptions",
1901
1780
  "declaration": {
1902
- "name": "*",
1903
- "package": "./accordion.template"
1781
+ "name": "foundationAccordionItemShadowOptions",
1782
+ "module": "src/accordion-item/accordion-item.ts"
1904
1783
  }
1905
1784
  },
1906
1785
  {
1907
1786
  "kind": "js",
1908
- "name": "*",
1787
+ "name": "defaultAccordionItemConfig",
1909
1788
  "declaration": {
1910
- "name": "*",
1911
- "package": "./accordion.styles"
1789
+ "name": "defaultAccordionItemConfig",
1790
+ "module": "src/accordion-item/accordion-item.ts"
1912
1791
  }
1913
1792
  },
1914
1793
  {
1915
1794
  "kind": "js",
1916
- "name": "*",
1795
+ "name": "foundationAccordionItem",
1917
1796
  "declaration": {
1918
- "name": "*",
1919
- "package": "./accordion"
1797
+ "name": "foundationAccordionItem",
1798
+ "module": "src/accordion-item/accordion-item.ts"
1920
1799
  }
1921
1800
  }
1922
1801
  ]
1923
1802
  },
1924
1803
  {
1925
1804
  "kind": "javascript-module",
1926
- "path": "src/_config/index.ts",
1805
+ "path": "src/accordion-item/index.ts",
1927
1806
  "declarations": [],
1928
1807
  "exports": [
1929
1808
  {
@@ -1931,7 +1810,7 @@
1931
1810
  "name": "*",
1932
1811
  "declaration": {
1933
1812
  "name": "*",
1934
- "package": "./styles"
1813
+ "package": "./accordion-item.template"
1935
1814
  }
1936
1815
  },
1937
1816
  {
@@ -1939,7 +1818,7 @@
1939
1818
  "name": "*",
1940
1819
  "declaration": {
1941
1820
  "name": "*",
1942
- "package": "./tokens"
1821
+ "package": "./accordion-item.styles"
1943
1822
  }
1944
1823
  },
1945
1824
  {
@@ -1947,18 +1826,18 @@
1947
1826
  "name": "*",
1948
1827
  "declaration": {
1949
1828
  "name": "*",
1950
- "package": "./values"
1829
+ "package": "./accordion-item"
1951
1830
  }
1952
1831
  }
1953
1832
  ]
1954
1833
  },
1955
1834
  {
1956
1835
  "kind": "javascript-module",
1957
- "path": "src/accordion-item/accordion-item.styles.ts",
1836
+ "path": "src/actions-menu/actions-menu.styles.ts",
1958
1837
  "declarations": [
1959
1838
  {
1960
1839
  "kind": "function",
1961
- "name": "foundationAccordionItemStyles",
1840
+ "name": "actionsMenuBaseStyles",
1962
1841
  "return": {
1963
1842
  "type": {
1964
1843
  "text": "ElementStyles"
@@ -1978,29 +1857,13 @@
1978
1857
  }
1979
1858
  }
1980
1859
  ]
1981
- }
1982
- ],
1983
- "exports": [
1984
- {
1985
- "kind": "js",
1986
- "name": "foundationAccordionItemStyles",
1987
- "declaration": {
1988
- "name": "foundationAccordionItemStyles",
1989
- "module": "src/accordion-item/accordion-item.styles.ts"
1990
- }
1991
- }
1992
- ]
1993
- },
1994
- {
1995
- "kind": "javascript-module",
1996
- "path": "src/accordion-item/accordion-item.template.ts",
1997
- "declarations": [
1860
+ },
1998
1861
  {
1999
1862
  "kind": "function",
2000
- "name": "foundationAccordionItemTemplate",
1863
+ "name": "foundationActionsMenuStyles",
2001
1864
  "return": {
2002
1865
  "type": {
2003
- "text": "ViewTemplate<AccordionItem>"
1866
+ "text": "ElementStyles"
2004
1867
  }
2005
1868
  },
2006
1869
  "parameters": [
@@ -2022,196 +1885,348 @@
2022
1885
  "exports": [
2023
1886
  {
2024
1887
  "kind": "js",
2025
- "name": "foundationAccordionItemTemplate",
1888
+ "name": "actionsMenuBaseStyles",
2026
1889
  "declaration": {
2027
- "name": "foundationAccordionItemTemplate",
2028
- "module": "src/accordion-item/accordion-item.template.ts"
1890
+ "name": "actionsMenuBaseStyles",
1891
+ "module": "src/actions-menu/actions-menu.styles.ts"
1892
+ }
1893
+ },
1894
+ {
1895
+ "kind": "js",
1896
+ "name": "foundationActionsMenuStyles",
1897
+ "declaration": {
1898
+ "name": "foundationActionsMenuStyles",
1899
+ "module": "src/actions-menu/actions-menu.styles.ts"
2029
1900
  }
2030
1901
  }
2031
1902
  ]
2032
1903
  },
2033
1904
  {
2034
1905
  "kind": "javascript-module",
2035
- "path": "src/accordion-item/accordion-item.ts",
1906
+ "path": "src/actions-menu/actions-menu.template.ts",
1907
+ "declarations": [
1908
+ {
1909
+ "kind": "function",
1910
+ "name": "menuTemplate",
1911
+ "parameters": [
1912
+ {
1913
+ "name": "prefix",
1914
+ "type": {
1915
+ "text": "string"
1916
+ }
1917
+ }
1918
+ ]
1919
+ },
1920
+ {
1921
+ "kind": "function",
1922
+ "name": "singleOptionTemplate",
1923
+ "parameters": [
1924
+ {
1925
+ "name": "prefix",
1926
+ "type": {
1927
+ "text": "string"
1928
+ }
1929
+ }
1930
+ ]
1931
+ },
1932
+ {
1933
+ "kind": "variable",
1934
+ "name": "foundationActionsMenuTemplate",
1935
+ "type": {
1936
+ "text": "ViewTemplate<ActionsMenu>"
1937
+ },
1938
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1939
+ }
1940
+ ],
1941
+ "exports": [
1942
+ {
1943
+ "kind": "js",
1944
+ "name": "menuTemplate",
1945
+ "declaration": {
1946
+ "name": "menuTemplate",
1947
+ "module": "src/actions-menu/actions-menu.template.ts"
1948
+ }
1949
+ },
1950
+ {
1951
+ "kind": "js",
1952
+ "name": "singleOptionTemplate",
1953
+ "declaration": {
1954
+ "name": "singleOptionTemplate",
1955
+ "module": "src/actions-menu/actions-menu.template.ts"
1956
+ }
1957
+ },
1958
+ {
1959
+ "kind": "js",
1960
+ "name": "foundationActionsMenuTemplate",
1961
+ "declaration": {
1962
+ "name": "foundationActionsMenuTemplate",
1963
+ "module": "src/actions-menu/actions-menu.template.ts"
1964
+ }
1965
+ }
1966
+ ]
1967
+ },
1968
+ {
1969
+ "kind": "javascript-module",
1970
+ "path": "src/actions-menu/actions-menu.ts",
2036
1971
  "declarations": [
2037
1972
  {
2038
1973
  "kind": "class",
2039
1974
  "description": "",
2040
- "name": "AccordionItem",
2041
- "superclass": {
2042
- "name": "FASTAccordionItem",
2043
- "package": "@microsoft/fast-components"
2044
- },
2045
- "tagName": "%%prefix%%-accordion-item",
2046
- "customElement": true,
2047
- "attributes": [
1975
+ "name": "ActionsMenu",
1976
+ "members": [
2048
1977
  {
2049
- "name": "heading-level",
1978
+ "kind": "field",
1979
+ "name": "actions",
2050
1980
  "type": {
2051
- "text": "1 | 2 | 3 | 4 | 5 | 6"
2052
- },
2053
- "default": "2",
2054
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2055
- "fieldName": "headinglevel",
2056
- "inheritedFrom": {
2057
- "name": "AccordionItem",
2058
- "module": "src/accordion-item/accordion-item.ts"
1981
+ "text": "ActionMenuItem[]"
2059
1982
  }
2060
1983
  },
2061
1984
  {
1985
+ "kind": "field",
1986
+ "name": "isVertical",
2062
1987
  "type": {
2063
1988
  "text": "boolean"
2064
1989
  },
2065
- "default": "false",
2066
- "description": "Expands or collapses the item.",
2067
- "fieldName": "expanded",
2068
- "inheritedFrom": {
2069
- "name": "AccordionItem",
2070
- "module": "src/accordion-item/accordion-item.ts"
2071
- }
1990
+ "default": "false"
2072
1991
  },
2073
- {
2074
- "name": "id",
2075
- "type": {
2076
- "text": "string"
2077
- },
2078
- "description": "The item ID",
2079
- "fieldName": "id",
2080
- "inheritedFrom": {
2081
- "name": "AccordionItem",
2082
- "module": "src/accordion-item/accordion-item.ts"
2083
- }
2084
- }
2085
- ],
2086
- "members": [
2087
1992
  {
2088
1993
  "kind": "field",
2089
- "name": "headinglevel",
1994
+ "name": "addDefaultActions",
2090
1995
  "type": {
2091
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1996
+ "text": "boolean"
2092
1997
  },
2093
- "privacy": "public",
2094
- "default": "2",
2095
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2096
- "inheritedFrom": {
2097
- "name": "AccordionItem",
2098
- "module": "src/accordion-item/accordion-item.ts"
2099
- }
1998
+ "default": "true"
2100
1999
  },
2101
2000
  {
2102
2001
  "kind": "field",
2103
- "name": "expanded",
2002
+ "name": "autoCloseOnAction",
2104
2003
  "type": {
2105
2004
  "text": "boolean"
2106
2005
  },
2107
- "privacy": "public",
2108
- "default": "false",
2109
- "description": "Expands or collapses the item.",
2110
- "inheritedFrom": {
2111
- "name": "AccordionItem",
2112
- "module": "src/accordion-item/accordion-item.ts"
2113
- }
2006
+ "default": "true"
2114
2007
  },
2115
2008
  {
2116
2009
  "kind": "field",
2117
- "name": "id",
2010
+ "name": "classNames",
2118
2011
  "type": {
2119
2012
  "text": "string"
2120
- },
2121
- "privacy": "public",
2122
- "description": "The item ID",
2123
- "inheritedFrom": {
2124
- "name": "AccordionItem",
2125
- "module": "src/accordion-item/accordion-item.ts"
2126
2013
  }
2127
2014
  },
2128
2015
  {
2129
2016
  "kind": "field",
2130
- "name": "change",
2131
- "privacy": "private",
2132
- "inheritedFrom": {
2133
- "name": "AccordionItem",
2134
- "module": "src/accordion-item/accordion-item.ts"
2017
+ "name": "definition",
2018
+ "type": {
2019
+ "text": "any"
2135
2020
  }
2136
2021
  },
2137
2022
  {
2138
2023
  "kind": "field",
2139
- "name": "_presentation",
2024
+ "name": "name",
2140
2025
  "type": {
2141
- "text": "ComponentPresentation | null | undefined"
2026
+ "text": "string"
2142
2027
  },
2143
- "privacy": "private",
2144
- "default": "void 0",
2145
- "inheritedFrom": {
2146
- "name": "FoundationElement",
2147
- "module": "src/foundation-element/foundation-element.ts"
2148
- }
2028
+ "default": "'Actions'"
2149
2029
  },
2150
2030
  {
2151
2031
  "kind": "field",
2152
- "name": "$presentation",
2032
+ "name": "open",
2153
2033
  "type": {
2154
- "text": "ComponentPresentation | null"
2034
+ "text": "boolean"
2155
2035
  },
2156
- "privacy": "public",
2157
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2158
- "inheritedFrom": {
2159
- "name": "FoundationElement",
2160
- "module": "src/foundation-element/foundation-element.ts"
2161
- }
2036
+ "default": "false"
2162
2037
  },
2163
2038
  {
2164
2039
  "kind": "field",
2165
- "name": "template",
2040
+ "name": "buttonAppearance",
2166
2041
  "type": {
2167
- "text": "ElementViewTemplate | void | null"
2168
- },
2169
- "privacy": "public",
2170
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2171
- "inheritedFrom": {
2172
- "name": "FoundationElement",
2173
- "module": "src/foundation-element/foundation-element.ts"
2042
+ "text": "string"
2174
2043
  }
2175
2044
  },
2176
2045
  {
2177
- "kind": "method",
2178
- "name": "templateChanged",
2179
- "privacy": "protected",
2180
- "return": {
2181
- "type": {
2182
- "text": "void"
2183
- }
2046
+ "kind": "field",
2047
+ "name": "hideDisabled",
2048
+ "type": {
2049
+ "text": "boolean"
2184
2050
  },
2185
- "inheritedFrom": {
2186
- "name": "FoundationElement",
2187
- "module": "src/foundation-element/foundation-element.ts"
2188
- }
2051
+ "default": "false"
2189
2052
  },
2190
2053
  {
2191
2054
  "kind": "field",
2192
- "name": "styles",
2055
+ "name": "hideMenuSingleOption",
2193
2056
  "type": {
2194
- "text": "ElementStyles | void | null"
2057
+ "text": "boolean"
2195
2058
  },
2196
- "privacy": "public",
2197
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2198
- "inheritedFrom": {
2199
- "name": "FoundationElement",
2200
- "module": "src/foundation-element/foundation-element.ts"
2059
+ "default": "false"
2060
+ },
2061
+ {
2062
+ "kind": "field",
2063
+ "name": "singleOption",
2064
+ "type": {
2065
+ "text": "ActionMenuItem"
2201
2066
  }
2202
2067
  },
2203
2068
  {
2204
- "kind": "method",
2205
- "name": "stylesChanged",
2206
- "privacy": "protected",
2207
- "return": {
2208
- "type": {
2209
- "text": "void"
2210
- }
2211
- },
2212
- "inheritedFrom": {
2213
- "name": "FoundationElement",
2214
- "module": "src/foundation-element/foundation-element.ts"
2069
+ "kind": "field",
2070
+ "name": "actionsMenu",
2071
+ "type": {
2072
+ "text": "HTMLElement"
2073
+ }
2074
+ },
2075
+ {
2076
+ "kind": "method",
2077
+ "name": "definitionChanged",
2078
+ "privacy": "protected",
2079
+ "parameters": [
2080
+ {
2081
+ "name": "oldValue",
2082
+ "type": {
2083
+ "text": "any"
2084
+ }
2085
+ },
2086
+ {
2087
+ "name": "newValue",
2088
+ "type": {
2089
+ "text": "any"
2090
+ }
2091
+ }
2092
+ ]
2093
+ },
2094
+ {
2095
+ "kind": "method",
2096
+ "name": "openChanged",
2097
+ "privacy": "protected"
2098
+ },
2099
+ {
2100
+ "kind": "method",
2101
+ "name": "toggleActionsMenuVisibility"
2102
+ },
2103
+ {
2104
+ "kind": "method",
2105
+ "name": "onActionMenuItemClick",
2106
+ "parameters": [
2107
+ {
2108
+ "name": "callback",
2109
+ "type": {
2110
+ "text": "(rowData) => void | any"
2111
+ }
2112
+ }
2113
+ ]
2114
+ },
2115
+ {
2116
+ "kind": "field",
2117
+ "name": "allActions",
2118
+ "type": {
2119
+ "text": "ActionMenuItem[]"
2120
+ },
2121
+ "readonly": true
2122
+ },
2123
+ {
2124
+ "kind": "field",
2125
+ "name": "rowData",
2126
+ "readonly": true
2127
+ },
2128
+ {
2129
+ "kind": "method",
2130
+ "name": "getLabel",
2131
+ "parameters": [
2132
+ {
2133
+ "name": "name",
2134
+ "type": {
2135
+ "text": "string | ((rowData: any) => string)"
2136
+ }
2137
+ }
2138
+ ]
2139
+ },
2140
+ {
2141
+ "kind": "method",
2142
+ "name": "getTemplate",
2143
+ "parameters": [
2144
+ {
2145
+ "name": "prefix",
2146
+ "type": {
2147
+ "text": "string"
2148
+ }
2149
+ }
2150
+ ]
2151
+ },
2152
+ {
2153
+ "kind": "field",
2154
+ "name": "_presentation",
2155
+ "type": {
2156
+ "text": "ComponentPresentation | null | undefined"
2157
+ },
2158
+ "privacy": "private",
2159
+ "default": "void 0",
2160
+ "inheritedFrom": {
2161
+ "name": "FoundationElement",
2162
+ "module": "src/foundation-element/foundation-element.ts"
2163
+ }
2164
+ },
2165
+ {
2166
+ "kind": "field",
2167
+ "name": "$presentation",
2168
+ "type": {
2169
+ "text": "ComponentPresentation | null"
2170
+ },
2171
+ "privacy": "public",
2172
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2173
+ "inheritedFrom": {
2174
+ "name": "FoundationElement",
2175
+ "module": "src/foundation-element/foundation-element.ts"
2176
+ }
2177
+ },
2178
+ {
2179
+ "kind": "field",
2180
+ "name": "template",
2181
+ "type": {
2182
+ "text": "ElementViewTemplate | void | null"
2183
+ },
2184
+ "privacy": "public",
2185
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
2186
+ "inheritedFrom": {
2187
+ "name": "FoundationElement",
2188
+ "module": "src/foundation-element/foundation-element.ts"
2189
+ }
2190
+ },
2191
+ {
2192
+ "kind": "method",
2193
+ "name": "templateChanged",
2194
+ "privacy": "protected",
2195
+ "return": {
2196
+ "type": {
2197
+ "text": "void"
2198
+ }
2199
+ },
2200
+ "inheritedFrom": {
2201
+ "name": "FoundationElement",
2202
+ "module": "src/foundation-element/foundation-element.ts"
2203
+ }
2204
+ },
2205
+ {
2206
+ "kind": "field",
2207
+ "name": "styles",
2208
+ "type": {
2209
+ "text": "ElementStyles | void | null"
2210
+ },
2211
+ "privacy": "public",
2212
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
2213
+ "inheritedFrom": {
2214
+ "name": "FoundationElement",
2215
+ "module": "src/foundation-element/foundation-element.ts"
2216
+ }
2217
+ },
2218
+ {
2219
+ "kind": "method",
2220
+ "name": "stylesChanged",
2221
+ "privacy": "protected",
2222
+ "return": {
2223
+ "type": {
2224
+ "text": "void"
2225
+ }
2226
+ },
2227
+ "inheritedFrom": {
2228
+ "name": "FoundationElement",
2229
+ "module": "src/foundation-element/foundation-element.ts"
2215
2230
  }
2216
2231
  },
2217
2232
  {
@@ -2246,78 +2261,107 @@
2246
2261
  }
2247
2262
  }
2248
2263
  ],
2249
- "events": [
2264
+ "attributes": [
2250
2265
  {
2251
- "description": "Fires a custom 'change' event when the button is invoked",
2252
- "name": "change",
2253
- "inheritedFrom": {
2254
- "name": "AccordionItem",
2255
- "module": "src/accordion-item/accordion-item.ts"
2256
- }
2266
+ "name": "is-vertical",
2267
+ "type": {
2268
+ "text": "boolean"
2269
+ },
2270
+ "default": "false",
2271
+ "fieldName": "isVertical"
2272
+ },
2273
+ {
2274
+ "name": "add-default-actions",
2275
+ "type": {
2276
+ "text": "boolean"
2277
+ },
2278
+ "default": "true",
2279
+ "fieldName": "addDefaultActions"
2280
+ },
2281
+ {
2282
+ "name": "auto-close-on-action",
2283
+ "type": {
2284
+ "text": "boolean"
2285
+ },
2286
+ "default": "true",
2287
+ "fieldName": "autoCloseOnAction"
2288
+ },
2289
+ {
2290
+ "name": "name",
2291
+ "type": {
2292
+ "text": "string"
2293
+ },
2294
+ "default": "'Actions'",
2295
+ "fieldName": "name"
2296
+ },
2297
+ {
2298
+ "name": "open",
2299
+ "type": {
2300
+ "text": "boolean"
2301
+ },
2302
+ "default": "false",
2303
+ "fieldName": "open"
2304
+ },
2305
+ {
2306
+ "name": "buttonAppearance",
2307
+ "type": {
2308
+ "text": "string"
2309
+ },
2310
+ "fieldName": "buttonAppearance"
2311
+ },
2312
+ {
2313
+ "name": "hide-disabled",
2314
+ "type": {
2315
+ "text": "boolean"
2316
+ },
2317
+ "default": "false",
2318
+ "fieldName": "hideDisabled"
2319
+ },
2320
+ {
2321
+ "name": "hide-menu-single-option",
2322
+ "type": {
2323
+ "text": "boolean"
2324
+ },
2325
+ "default": "false",
2326
+ "fieldName": "hideMenuSingleOption"
2257
2327
  }
2258
- ]
2259
- },
2260
- {
2261
- "kind": "variable",
2262
- "name": "foundationAccordionItemShadowOptions",
2263
- "type": {
2264
- "text": "ShadowRootInit"
2265
- },
2266
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2267
- },
2268
- {
2269
- "kind": "variable",
2270
- "name": "defaultAccordionItemConfig",
2271
- "type": {
2272
- "text": "object"
2328
+ ],
2329
+ "superclass": {
2330
+ "name": "FoundationElement",
2331
+ "package": "@microsoft/fast-foundation"
2273
2332
  },
2274
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2333
+ "tagName": "%%prefix%%-actions-menu",
2334
+ "customElement": true
2275
2335
  },
2276
2336
  {
2277
2337
  "kind": "variable",
2278
- "name": "foundationAccordionItem",
2279
- "description": "The Foundation Accordion Item",
2338
+ "name": "foundationActionsMenu",
2339
+ "description": "The Foundation Actions Menu",
2280
2340
  "privacy": "public"
2281
2341
  }
2282
2342
  ],
2283
2343
  "exports": [
2284
2344
  {
2285
2345
  "kind": "js",
2286
- "name": "AccordionItem",
2287
- "declaration": {
2288
- "name": "AccordionItem",
2289
- "module": "src/accordion-item/accordion-item.ts"
2290
- }
2291
- },
2292
- {
2293
- "kind": "js",
2294
- "name": "foundationAccordionItemShadowOptions",
2295
- "declaration": {
2296
- "name": "foundationAccordionItemShadowOptions",
2297
- "module": "src/accordion-item/accordion-item.ts"
2298
- }
2299
- },
2300
- {
2301
- "kind": "js",
2302
- "name": "defaultAccordionItemConfig",
2346
+ "name": "ActionsMenu",
2303
2347
  "declaration": {
2304
- "name": "defaultAccordionItemConfig",
2305
- "module": "src/accordion-item/accordion-item.ts"
2348
+ "name": "ActionsMenu",
2349
+ "module": "src/actions-menu/actions-menu.ts"
2306
2350
  }
2307
2351
  },
2308
2352
  {
2309
2353
  "kind": "js",
2310
- "name": "foundationAccordionItem",
2354
+ "name": "foundationActionsMenu",
2311
2355
  "declaration": {
2312
- "name": "foundationAccordionItem",
2313
- "module": "src/accordion-item/accordion-item.ts"
2356
+ "name": "foundationActionsMenu",
2357
+ "module": "src/actions-menu/actions-menu.ts"
2314
2358
  }
2315
2359
  }
2316
2360
  ]
2317
2361
  },
2318
2362
  {
2319
2363
  "kind": "javascript-module",
2320
- "path": "src/accordion-item/index.ts",
2364
+ "path": "src/actions-menu/index.ts",
2321
2365
  "declarations": [],
2322
2366
  "exports": [
2323
2367
  {
@@ -2325,7 +2369,7 @@
2325
2369
  "name": "*",
2326
2370
  "declaration": {
2327
2371
  "name": "*",
2328
- "package": "./accordion-item.template"
2372
+ "package": "./actions-menu.styles"
2329
2373
  }
2330
2374
  },
2331
2375
  {
@@ -2333,7 +2377,7 @@
2333
2377
  "name": "*",
2334
2378
  "declaration": {
2335
2379
  "name": "*",
2336
- "package": "./accordion-item.styles"
2380
+ "package": "./actions-menu.template"
2337
2381
  }
2338
2382
  },
2339
2383
  {
@@ -2341,41 +2385,18 @@
2341
2385
  "name": "*",
2342
2386
  "declaration": {
2343
2387
  "name": "*",
2344
- "package": "./accordion-item"
2388
+ "package": "./actions-menu"
2345
2389
  }
2346
2390
  }
2347
2391
  ]
2348
2392
  },
2349
2393
  {
2350
2394
  "kind": "javascript-module",
2351
- "path": "src/actions-menu/actions-menu.styles.ts",
2395
+ "path": "src/accordion/accordion.styles.ts",
2352
2396
  "declarations": [
2353
2397
  {
2354
2398
  "kind": "function",
2355
- "name": "actionsMenuBaseStyles",
2356
- "return": {
2357
- "type": {
2358
- "text": "ElementStyles"
2359
- }
2360
- },
2361
- "parameters": [
2362
- {
2363
- "name": "context",
2364
- "type": {
2365
- "text": "ElementDefinitionContext"
2366
- }
2367
- },
2368
- {
2369
- "name": "definition",
2370
- "type": {
2371
- "text": "FoundationElementDefinition"
2372
- }
2373
- }
2374
- ]
2375
- },
2376
- {
2377
- "kind": "function",
2378
- "name": "foundationActionsMenuStyles",
2399
+ "name": "foundationAccordionStyles",
2379
2400
  "return": {
2380
2401
  "type": {
2381
2402
  "text": "ElementStyles"
@@ -2395,274 +2416,282 @@
2395
2416
  }
2396
2417
  }
2397
2418
  ]
2398
- }
2399
- ],
2400
- "exports": [
2401
- {
2402
- "kind": "js",
2403
- "name": "actionsMenuBaseStyles",
2404
- "declaration": {
2405
- "name": "actionsMenuBaseStyles",
2406
- "module": "src/actions-menu/actions-menu.styles.ts"
2407
- }
2408
- },
2419
+ }
2420
+ ],
2421
+ "exports": [
2409
2422
  {
2410
2423
  "kind": "js",
2411
- "name": "foundationActionsMenuStyles",
2424
+ "name": "foundationAccordionStyles",
2412
2425
  "declaration": {
2413
- "name": "foundationActionsMenuStyles",
2414
- "module": "src/actions-menu/actions-menu.styles.ts"
2426
+ "name": "foundationAccordionStyles",
2427
+ "module": "src/accordion/accordion.styles.ts"
2415
2428
  }
2416
2429
  }
2417
2430
  ]
2418
2431
  },
2419
2432
  {
2420
2433
  "kind": "javascript-module",
2421
- "path": "src/actions-menu/actions-menu.template.ts",
2434
+ "path": "src/accordion/accordion.template.ts",
2422
2435
  "declarations": [
2423
2436
  {
2424
2437
  "kind": "function",
2425
- "name": "menuTemplate",
2438
+ "name": "foundationAccordionTemplate",
2439
+ "return": {
2440
+ "type": {
2441
+ "text": "ViewTemplate<Accordion>"
2442
+ }
2443
+ },
2426
2444
  "parameters": [
2427
2445
  {
2428
- "name": "prefix",
2446
+ "name": "context",
2429
2447
  "type": {
2430
- "text": "string"
2448
+ "text": "ElementDefinitionContext"
2431
2449
  }
2432
- }
2433
- ]
2434
- },
2435
- {
2436
- "kind": "function",
2437
- "name": "singleOptionTemplate",
2438
- "parameters": [
2450
+ },
2439
2451
  {
2440
- "name": "prefix",
2452
+ "name": "definition",
2441
2453
  "type": {
2442
- "text": "string"
2454
+ "text": "FoundationElementDefinition"
2443
2455
  }
2444
2456
  }
2445
2457
  ]
2446
- },
2447
- {
2448
- "kind": "variable",
2449
- "name": "foundationActionsMenuTemplate",
2450
- "type": {
2451
- "text": "ViewTemplate<ActionsMenu>"
2452
- },
2453
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
2454
2458
  }
2455
2459
  ],
2456
2460
  "exports": [
2457
2461
  {
2458
2462
  "kind": "js",
2459
- "name": "menuTemplate",
2460
- "declaration": {
2461
- "name": "menuTemplate",
2462
- "module": "src/actions-menu/actions-menu.template.ts"
2463
- }
2464
- },
2465
- {
2466
- "kind": "js",
2467
- "name": "singleOptionTemplate",
2468
- "declaration": {
2469
- "name": "singleOptionTemplate",
2470
- "module": "src/actions-menu/actions-menu.template.ts"
2471
- }
2472
- },
2473
- {
2474
- "kind": "js",
2475
- "name": "foundationActionsMenuTemplate",
2463
+ "name": "foundationAccordionTemplate",
2476
2464
  "declaration": {
2477
- "name": "foundationActionsMenuTemplate",
2478
- "module": "src/actions-menu/actions-menu.template.ts"
2465
+ "name": "foundationAccordionTemplate",
2466
+ "module": "src/accordion/accordion.template.ts"
2479
2467
  }
2480
2468
  }
2481
2469
  ]
2482
2470
  },
2483
2471
  {
2484
2472
  "kind": "javascript-module",
2485
- "path": "src/actions-menu/actions-menu.ts",
2473
+ "path": "src/accordion/accordion.ts",
2486
2474
  "declarations": [
2487
2475
  {
2488
2476
  "kind": "class",
2489
2477
  "description": "",
2490
- "name": "ActionsMenu",
2491
- "members": [
2478
+ "name": "Accordion",
2479
+ "superclass": {
2480
+ "name": "FASTAccordion",
2481
+ "package": "@microsoft/fast-foundation"
2482
+ },
2483
+ "tagName": "%%prefix%%-accordion",
2484
+ "customElement": true,
2485
+ "attributes": [
2492
2486
  {
2493
- "kind": "field",
2494
- "name": "actions",
2487
+ "name": "expand-mode",
2495
2488
  "type": {
2496
- "text": "ActionMenuItem[]"
2489
+ "text": "AccordionExpandMode"
2490
+ },
2491
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2492
+ "fieldName": "expandmode",
2493
+ "inheritedFrom": {
2494
+ "name": "Accordion",
2495
+ "module": "src/accordion/accordion.ts"
2497
2496
  }
2498
- },
2497
+ }
2498
+ ],
2499
+ "members": [
2499
2500
  {
2500
2501
  "kind": "field",
2501
- "name": "isVertical",
2502
+ "name": "expandmode",
2502
2503
  "type": {
2503
- "text": "boolean"
2504
+ "text": "AccordionExpandMode"
2504
2505
  },
2505
- "default": "false"
2506
+ "privacy": "public",
2507
+ "description": "Controls the expand mode of the Accordion, either allowing\nsingle or multiple item expansion.",
2508
+ "inheritedFrom": {
2509
+ "name": "Accordion",
2510
+ "module": "src/accordion/accordion.ts"
2511
+ }
2506
2512
  },
2507
2513
  {
2508
2514
  "kind": "field",
2509
- "name": "addDefaultActions",
2515
+ "name": "activeid",
2510
2516
  "type": {
2511
- "text": "boolean"
2517
+ "text": "string | null"
2512
2518
  },
2513
- "default": "true"
2519
+ "privacy": "private",
2520
+ "inheritedFrom": {
2521
+ "name": "Accordion",
2522
+ "module": "src/accordion/accordion.ts"
2523
+ }
2514
2524
  },
2515
2525
  {
2516
2526
  "kind": "field",
2517
- "name": "autoCloseOnAction",
2527
+ "name": "activeItemIndex",
2518
2528
  "type": {
2519
- "text": "boolean"
2529
+ "text": "number"
2520
2530
  },
2521
- "default": "true"
2522
- },
2523
- {
2524
- "kind": "field",
2525
- "name": "classNames",
2526
- "type": {
2527
- "text": "string"
2531
+ "privacy": "private",
2532
+ "default": "0",
2533
+ "inheritedFrom": {
2534
+ "name": "Accordion",
2535
+ "module": "src/accordion/accordion.ts"
2528
2536
  }
2529
2537
  },
2530
2538
  {
2531
2539
  "kind": "field",
2532
- "name": "definition",
2540
+ "name": "accordionIds",
2533
2541
  "type": {
2534
- "text": "any"
2542
+ "text": "Array<string | null>"
2543
+ },
2544
+ "privacy": "private",
2545
+ "inheritedFrom": {
2546
+ "name": "Accordion",
2547
+ "module": "src/accordion/accordion.ts"
2535
2548
  }
2536
2549
  },
2537
2550
  {
2538
2551
  "kind": "field",
2539
- "name": "name",
2540
- "type": {
2541
- "text": "string"
2542
- },
2543
- "default": "'Actions'"
2552
+ "name": "change",
2553
+ "privacy": "private",
2554
+ "inheritedFrom": {
2555
+ "name": "Accordion",
2556
+ "module": "src/accordion/accordion.ts"
2557
+ }
2544
2558
  },
2545
2559
  {
2546
- "kind": "field",
2547
- "name": "open",
2548
- "type": {
2549
- "text": "boolean"
2560
+ "kind": "method",
2561
+ "name": "findExpandedItem",
2562
+ "privacy": "private",
2563
+ "return": {
2564
+ "type": {
2565
+ "text": "AccordionItem | null"
2566
+ }
2550
2567
  },
2551
- "default": "false"
2552
- },
2553
- {
2554
- "kind": "field",
2555
- "name": "buttonAppearance",
2556
- "type": {
2557
- "text": "string"
2568
+ "inheritedFrom": {
2569
+ "name": "Accordion",
2570
+ "module": "src/accordion/accordion.ts"
2558
2571
  }
2559
2572
  },
2560
2573
  {
2561
2574
  "kind": "field",
2562
- "name": "hideDisabled",
2563
- "type": {
2564
- "text": "boolean"
2565
- },
2566
- "default": "false"
2575
+ "name": "setItems",
2576
+ "privacy": "private",
2577
+ "inheritedFrom": {
2578
+ "name": "Accordion",
2579
+ "module": "src/accordion/accordion.ts"
2580
+ }
2567
2581
  },
2568
2582
  {
2569
- "kind": "field",
2570
- "name": "hideMenuSingleOption",
2571
- "type": {
2572
- "text": "boolean"
2583
+ "kind": "method",
2584
+ "name": "resetItems",
2585
+ "privacy": "private",
2586
+ "return": {
2587
+ "type": {
2588
+ "text": "void"
2589
+ }
2573
2590
  },
2574
- "default": "false"
2591
+ "inheritedFrom": {
2592
+ "name": "Accordion",
2593
+ "module": "src/accordion/accordion.ts"
2594
+ }
2575
2595
  },
2576
2596
  {
2577
2597
  "kind": "field",
2578
- "name": "singleOption",
2579
- "type": {
2580
- "text": "ActionMenuItem"
2598
+ "name": "removeItemListeners",
2599
+ "privacy": "private",
2600
+ "inheritedFrom": {
2601
+ "name": "Accordion",
2602
+ "module": "src/accordion/accordion.ts"
2581
2603
  }
2582
2604
  },
2583
2605
  {
2584
2606
  "kind": "field",
2585
- "name": "actionsMenu",
2586
- "type": {
2587
- "text": "HTMLElement"
2607
+ "name": "activeItemChange",
2608
+ "privacy": "private",
2609
+ "inheritedFrom": {
2610
+ "name": "Accordion",
2611
+ "module": "src/accordion/accordion.ts"
2588
2612
  }
2589
2613
  },
2590
2614
  {
2591
2615
  "kind": "method",
2592
- "name": "definitionChanged",
2593
- "privacy": "protected",
2594
- "parameters": [
2595
- {
2596
- "name": "oldValue",
2597
- "type": {
2598
- "text": "any"
2599
- }
2600
- },
2601
- {
2602
- "name": "newValue",
2603
- "type": {
2604
- "text": "any"
2605
- }
2616
+ "name": "getItemIds",
2617
+ "privacy": "private",
2618
+ "return": {
2619
+ "type": {
2620
+ "text": "Array<string | null>"
2606
2621
  }
2607
- ]
2608
- },
2609
- {
2610
- "kind": "method",
2611
- "name": "openChanged",
2612
- "privacy": "protected"
2613
- },
2614
- {
2615
- "kind": "method",
2616
- "name": "toggleActionsMenuVisibility"
2617
- },
2618
- {
2619
- "kind": "method",
2620
- "name": "onActionMenuItemClick",
2621
- "parameters": [
2622
- {
2623
- "name": "callback",
2624
- "type": {
2625
- "text": "(rowData) => void | any"
2626
- }
2622
+ },
2623
+ "inheritedFrom": {
2624
+ "name": "Accordion",
2625
+ "module": "src/accordion/accordion.ts"
2626
+ }
2627
+ },
2628
+ {
2629
+ "kind": "method",
2630
+ "name": "isSingleExpandMode",
2631
+ "privacy": "private",
2632
+ "return": {
2633
+ "type": {
2634
+ "text": "boolean"
2627
2635
  }
2628
- ]
2636
+ },
2637
+ "inheritedFrom": {
2638
+ "name": "Accordion",
2639
+ "module": "src/accordion/accordion.ts"
2640
+ }
2629
2641
  },
2630
2642
  {
2631
2643
  "kind": "field",
2632
- "name": "allActions",
2633
- "type": {
2634
- "text": "ActionMenuItem[]"
2635
- },
2636
- "readonly": true
2644
+ "name": "handleItemKeyDown",
2645
+ "privacy": "private",
2646
+ "inheritedFrom": {
2647
+ "name": "Accordion",
2648
+ "module": "src/accordion/accordion.ts"
2649
+ }
2637
2650
  },
2638
2651
  {
2639
2652
  "kind": "field",
2640
- "name": "rowData",
2641
- "readonly": true
2653
+ "name": "handleItemFocus",
2654
+ "privacy": "private",
2655
+ "inheritedFrom": {
2656
+ "name": "Accordion",
2657
+ "module": "src/accordion/accordion.ts"
2658
+ }
2642
2659
  },
2643
2660
  {
2644
2661
  "kind": "method",
2645
- "name": "getLabel",
2662
+ "name": "adjust",
2663
+ "privacy": "private",
2664
+ "return": {
2665
+ "type": {
2666
+ "text": "void"
2667
+ }
2668
+ },
2646
2669
  "parameters": [
2647
2670
  {
2648
- "name": "name",
2671
+ "name": "adjustment",
2649
2672
  "type": {
2650
- "text": "string | ((rowData: any) => string)"
2673
+ "text": "number"
2651
2674
  }
2652
2675
  }
2653
- ]
2676
+ ],
2677
+ "inheritedFrom": {
2678
+ "name": "Accordion",
2679
+ "module": "src/accordion/accordion.ts"
2680
+ }
2654
2681
  },
2655
2682
  {
2656
2683
  "kind": "method",
2657
- "name": "getTemplate",
2658
- "parameters": [
2659
- {
2660
- "name": "prefix",
2661
- "type": {
2662
- "text": "string"
2663
- }
2684
+ "name": "focusItem",
2685
+ "privacy": "private",
2686
+ "return": {
2687
+ "type": {
2688
+ "text": "void"
2664
2689
  }
2665
- ]
2690
+ },
2691
+ "inheritedFrom": {
2692
+ "name": "Accordion",
2693
+ "module": "src/accordion/accordion.ts"
2694
+ }
2666
2695
  },
2667
2696
  {
2668
2697
  "kind": "field",
@@ -2776,107 +2805,78 @@
2776
2805
  }
2777
2806
  }
2778
2807
  ],
2779
- "attributes": [
2780
- {
2781
- "name": "is-vertical",
2782
- "type": {
2783
- "text": "boolean"
2784
- },
2785
- "default": "false",
2786
- "fieldName": "isVertical"
2787
- },
2788
- {
2789
- "name": "add-default-actions",
2790
- "type": {
2791
- "text": "boolean"
2792
- },
2793
- "default": "true",
2794
- "fieldName": "addDefaultActions"
2795
- },
2796
- {
2797
- "name": "auto-close-on-action",
2798
- "type": {
2799
- "text": "boolean"
2800
- },
2801
- "default": "true",
2802
- "fieldName": "autoCloseOnAction"
2803
- },
2804
- {
2805
- "name": "name",
2806
- "type": {
2807
- "text": "string"
2808
- },
2809
- "default": "'Actions'",
2810
- "fieldName": "name"
2811
- },
2812
- {
2813
- "name": "open",
2814
- "type": {
2815
- "text": "boolean"
2816
- },
2817
- "default": "false",
2818
- "fieldName": "open"
2819
- },
2820
- {
2821
- "name": "buttonAppearance",
2822
- "type": {
2823
- "text": "string"
2824
- },
2825
- "fieldName": "buttonAppearance"
2826
- },
2827
- {
2828
- "name": "hide-disabled",
2829
- "type": {
2830
- "text": "boolean"
2831
- },
2832
- "default": "false",
2833
- "fieldName": "hideDisabled"
2834
- },
2808
+ "events": [
2835
2809
  {
2836
- "name": "hide-menu-single-option",
2837
- "type": {
2838
- "text": "boolean"
2839
- },
2840
- "default": "false",
2841
- "fieldName": "hideMenuSingleOption"
2810
+ "description": "Fires a custom 'change' event when the active item changes",
2811
+ "name": "change",
2812
+ "inheritedFrom": {
2813
+ "name": "Accordion",
2814
+ "module": "src/accordion/accordion.ts"
2815
+ }
2842
2816
  }
2843
- ],
2844
- "superclass": {
2845
- "name": "FoundationElement",
2846
- "package": "@microsoft/fast-foundation"
2817
+ ]
2818
+ },
2819
+ {
2820
+ "kind": "variable",
2821
+ "name": "foundationAccordionShadowOptions",
2822
+ "type": {
2823
+ "text": "ShadowRootInit"
2847
2824
  },
2848
- "tagName": "%%prefix%%-actions-menu",
2849
- "customElement": true
2825
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2850
2826
  },
2851
2827
  {
2852
2828
  "kind": "variable",
2853
- "name": "foundationActionsMenu",
2854
- "description": "The Foundation Actions Menu",
2829
+ "name": "defaultAccordionConfig",
2830
+ "type": {
2831
+ "text": "object"
2832
+ },
2833
+ "default": "{}"
2834
+ },
2835
+ {
2836
+ "kind": "variable",
2837
+ "name": "foundationAccordion",
2838
+ "description": "The Foundation Accordion",
2855
2839
  "privacy": "public"
2856
2840
  }
2857
2841
  ],
2858
2842
  "exports": [
2859
2843
  {
2860
2844
  "kind": "js",
2861
- "name": "ActionsMenu",
2845
+ "name": "Accordion",
2862
2846
  "declaration": {
2863
- "name": "ActionsMenu",
2864
- "module": "src/actions-menu/actions-menu.ts"
2847
+ "name": "Accordion",
2848
+ "module": "src/accordion/accordion.ts"
2865
2849
  }
2866
2850
  },
2867
2851
  {
2868
2852
  "kind": "js",
2869
- "name": "foundationActionsMenu",
2853
+ "name": "foundationAccordionShadowOptions",
2870
2854
  "declaration": {
2871
- "name": "foundationActionsMenu",
2872
- "module": "src/actions-menu/actions-menu.ts"
2855
+ "name": "foundationAccordionShadowOptions",
2856
+ "module": "src/accordion/accordion.ts"
2857
+ }
2858
+ },
2859
+ {
2860
+ "kind": "js",
2861
+ "name": "defaultAccordionConfig",
2862
+ "declaration": {
2863
+ "name": "defaultAccordionConfig",
2864
+ "module": "src/accordion/accordion.ts"
2865
+ }
2866
+ },
2867
+ {
2868
+ "kind": "js",
2869
+ "name": "foundationAccordion",
2870
+ "declaration": {
2871
+ "name": "foundationAccordion",
2872
+ "module": "src/accordion/accordion.ts"
2873
2873
  }
2874
2874
  }
2875
2875
  ]
2876
2876
  },
2877
2877
  {
2878
2878
  "kind": "javascript-module",
2879
- "path": "src/actions-menu/index.ts",
2879
+ "path": "src/accordion/index.ts",
2880
2880
  "declarations": [],
2881
2881
  "exports": [
2882
2882
  {
@@ -2884,7 +2884,7 @@
2884
2884
  "name": "*",
2885
2885
  "declaration": {
2886
2886
  "name": "*",
2887
- "package": "./actions-menu.styles"
2887
+ "package": "./accordion.template"
2888
2888
  }
2889
2889
  },
2890
2890
  {
@@ -2892,7 +2892,7 @@
2892
2892
  "name": "*",
2893
2893
  "declaration": {
2894
2894
  "name": "*",
2895
- "package": "./actions-menu.template"
2895
+ "package": "./accordion.styles"
2896
2896
  }
2897
2897
  },
2898
2898
  {
@@ -2900,7 +2900,7 @@
2900
2900
  "name": "*",
2901
2901
  "declaration": {
2902
2902
  "name": "*",
2903
- "package": "./actions-menu"
2903
+ "package": "./accordion"
2904
2904
  }
2905
2905
  }
2906
2906
  ]
@@ -6075,11 +6075,11 @@
6075
6075
  },
6076
6076
  {
6077
6077
  "kind": "javascript-module",
6078
- "path": "src/badge/badge.styles.ts",
6078
+ "path": "src/avatar/avatar.styles.ts",
6079
6079
  "declarations": [
6080
6080
  {
6081
6081
  "kind": "function",
6082
- "name": "foundationBadgeStyles",
6082
+ "name": "foundationAvatarStyles",
6083
6083
  "return": {
6084
6084
  "type": {
6085
6085
  "text": "ElementStyles"
@@ -6104,24 +6104,24 @@
6104
6104
  "exports": [
6105
6105
  {
6106
6106
  "kind": "js",
6107
- "name": "foundationBadgeStyles",
6107
+ "name": "foundationAvatarStyles",
6108
6108
  "declaration": {
6109
- "name": "foundationBadgeStyles",
6110
- "module": "src/badge/badge.styles.ts"
6109
+ "name": "foundationAvatarStyles",
6110
+ "module": "src/avatar/avatar.styles.ts"
6111
6111
  }
6112
6112
  }
6113
6113
  ]
6114
6114
  },
6115
6115
  {
6116
6116
  "kind": "javascript-module",
6117
- "path": "src/badge/badge.template.ts",
6117
+ "path": "src/avatar/avatar.template.ts",
6118
6118
  "declarations": [
6119
6119
  {
6120
6120
  "kind": "function",
6121
- "name": "foundationBadgeTemplate",
6121
+ "name": "foundationAvatarTemplate",
6122
6122
  "return": {
6123
6123
  "type": {
6124
- "text": "ViewTemplate<Badge>"
6124
+ "text": "ViewTemplate<Avatar>"
6125
6125
  }
6126
6126
  },
6127
6127
  "parameters": [
@@ -6138,32 +6138,45 @@
6138
6138
  }
6139
6139
  }
6140
6140
  ]
6141
+ },
6142
+ {
6143
+ "kind": "variable",
6144
+ "name": "media",
6145
+ "default": "html<Avatar>`\n ${when(\n (x) => x.imgSrc,\n html<Avatar>`\n <img src=\"${(x) => x.imgSrc}\" alt=\"${(x) => x.alt}\" slot=\"media\" class=\"media\" part=\"media\" />\n `,\n )}\n`"
6141
6146
  }
6142
6147
  ],
6143
6148
  "exports": [
6144
6149
  {
6145
6150
  "kind": "js",
6146
- "name": "foundationBadgeTemplate",
6151
+ "name": "foundationAvatarTemplate",
6147
6152
  "declaration": {
6148
- "name": "foundationBadgeTemplate",
6149
- "module": "src/badge/badge.template.ts"
6153
+ "name": "foundationAvatarTemplate",
6154
+ "module": "src/avatar/avatar.template.ts"
6155
+ }
6156
+ },
6157
+ {
6158
+ "kind": "js",
6159
+ "name": "media",
6160
+ "declaration": {
6161
+ "name": "media",
6162
+ "module": "src/avatar/avatar.template.ts"
6150
6163
  }
6151
6164
  }
6152
6165
  ]
6153
6166
  },
6154
6167
  {
6155
6168
  "kind": "javascript-module",
6156
- "path": "src/badge/badge.ts",
6169
+ "path": "src/avatar/avatar.ts",
6157
6170
  "declarations": [
6158
6171
  {
6159
6172
  "kind": "class",
6160
6173
  "description": "",
6161
- "name": "Badge",
6174
+ "name": "Avatar",
6162
6175
  "superclass": {
6163
- "name": "FASTBadge",
6176
+ "name": "FASTAvatar",
6164
6177
  "package": "@microsoft/fast-components"
6165
6178
  },
6166
- "tagName": "%%prefix%%-badge",
6179
+ "tagName": "%%prefix%%-avatar",
6167
6180
  "customElement": true,
6168
6181
  "attributes": [
6169
6182
  {
@@ -6171,34 +6184,47 @@
6171
6184
  "type": {
6172
6185
  "text": "string"
6173
6186
  },
6174
- "description": "Indicates the badge should have a filled style.",
6187
+ "description": "Indicates the Avatar should have a color fill.",
6175
6188
  "fieldName": "fill",
6176
6189
  "inheritedFrom": {
6177
- "name": "Badge",
6178
- "module": "src/badge/badge.ts"
6190
+ "name": "Avatar",
6191
+ "module": "src/avatar/avatar.ts"
6192
+ }
6193
+ },
6194
+ {
6195
+ "name": "color",
6196
+ "type": {
6197
+ "text": "string"
6198
+ },
6199
+ "description": "Indicates the Avatar should have a text color.",
6200
+ "fieldName": "color",
6201
+ "inheritedFrom": {
6202
+ "name": "Avatar",
6203
+ "module": "src/avatar/avatar.ts"
6179
6204
  }
6180
6205
  },
6181
6206
  {
6182
- "name": "color",
6207
+ "name": "link",
6183
6208
  "type": {
6184
6209
  "text": "string"
6185
6210
  },
6186
- "description": "Indicates the badge should have a filled style.",
6187
- "fieldName": "color",
6211
+ "description": "Indicates the Avatar should have url link",
6212
+ "fieldName": "link",
6188
6213
  "inheritedFrom": {
6189
- "name": "Badge",
6190
- "module": "src/badge/badge.ts"
6214
+ "name": "Avatar",
6215
+ "module": "src/avatar/avatar.ts"
6191
6216
  }
6192
6217
  },
6193
6218
  {
6219
+ "name": "shape",
6194
6220
  "type": {
6195
- "text": "boolean"
6221
+ "text": "AvatarShape"
6196
6222
  },
6197
- "description": "Indicates the element should be circular",
6198
- "fieldName": "circular",
6223
+ "description": "Indicates the Avatar shape should be. By default it will be set to \"circle\".",
6224
+ "fieldName": "shape",
6199
6225
  "inheritedFrom": {
6200
- "name": "Badge",
6201
- "module": "src/badge/badge.ts"
6226
+ "name": "Avatar",
6227
+ "module": "src/avatar/avatar.ts"
6202
6228
  }
6203
6229
  }
6204
6230
  ],
@@ -6210,10 +6236,10 @@
6210
6236
  "text": "string"
6211
6237
  },
6212
6238
  "privacy": "public",
6213
- "description": "Indicates the badge should have a filled style.",
6239
+ "description": "Indicates the Avatar should have a color fill.",
6214
6240
  "inheritedFrom": {
6215
- "name": "Badge",
6216
- "module": "src/badge/badge.ts"
6241
+ "name": "Avatar",
6242
+ "module": "src/avatar/avatar.ts"
6217
6243
  }
6218
6244
  },
6219
6245
  {
@@ -6223,32 +6249,36 @@
6223
6249
  "text": "string"
6224
6250
  },
6225
6251
  "privacy": "public",
6226
- "description": "Indicates the badge should have a filled style.",
6252
+ "description": "Indicates the Avatar should have a text color.",
6227
6253
  "inheritedFrom": {
6228
- "name": "Badge",
6229
- "module": "src/badge/badge.ts"
6254
+ "name": "Avatar",
6255
+ "module": "src/avatar/avatar.ts"
6230
6256
  }
6231
6257
  },
6232
6258
  {
6233
6259
  "kind": "field",
6234
- "name": "circular",
6260
+ "name": "link",
6235
6261
  "type": {
6236
- "text": "boolean"
6262
+ "text": "string"
6237
6263
  },
6238
6264
  "privacy": "public",
6239
- "description": "Indicates the element should be circular",
6265
+ "description": "Indicates the Avatar should have url link",
6240
6266
  "inheritedFrom": {
6241
- "name": "Badge",
6242
- "module": "src/badge/badge.ts"
6267
+ "name": "Avatar",
6268
+ "module": "src/avatar/avatar.ts"
6243
6269
  }
6244
6270
  },
6245
6271
  {
6246
6272
  "kind": "field",
6247
- "name": "generateBadgeStyle",
6273
+ "name": "shape",
6274
+ "type": {
6275
+ "text": "AvatarShape"
6276
+ },
6248
6277
  "privacy": "public",
6278
+ "description": "Indicates the Avatar shape should be. By default it will be set to \"circle\".",
6249
6279
  "inheritedFrom": {
6250
- "name": "Badge",
6251
- "module": "src/badge/badge.ts"
6280
+ "name": "Avatar",
6281
+ "module": "src/avatar/avatar.ts"
6252
6282
  }
6253
6283
  },
6254
6284
  {
@@ -6366,65 +6396,65 @@
6366
6396
  },
6367
6397
  {
6368
6398
  "kind": "variable",
6369
- "name": "foundationBadgeShadowOptions",
6399
+ "name": "foundationAvatarShadowOptions",
6370
6400
  "type": {
6371
6401
  "text": "ShadowRootInit"
6372
6402
  },
6373
- "default": "undefined"
6403
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
6374
6404
  },
6375
6405
  {
6376
6406
  "kind": "variable",
6377
- "name": "defaultBadgeConfig",
6407
+ "name": "defaultAvatarConfig",
6378
6408
  "type": {
6379
6409
  "text": "object"
6380
6410
  },
6381
- "default": "{}"
6411
+ "default": "{\n media: mediaTemplate,\n}"
6382
6412
  },
6383
6413
  {
6384
6414
  "kind": "variable",
6385
- "name": "foundationBadge",
6386
- "description": "The Foundation Badge",
6415
+ "name": "foundationAvatar",
6416
+ "description": "The Foundation Avatar",
6387
6417
  "privacy": "public"
6388
6418
  }
6389
6419
  ],
6390
6420
  "exports": [
6391
6421
  {
6392
6422
  "kind": "js",
6393
- "name": "Badge",
6423
+ "name": "Avatar",
6394
6424
  "declaration": {
6395
- "name": "Badge",
6396
- "module": "src/badge/badge.ts"
6425
+ "name": "Avatar",
6426
+ "module": "src/avatar/avatar.ts"
6397
6427
  }
6398
6428
  },
6399
6429
  {
6400
6430
  "kind": "js",
6401
- "name": "foundationBadgeShadowOptions",
6431
+ "name": "foundationAvatarShadowOptions",
6402
6432
  "declaration": {
6403
- "name": "foundationBadgeShadowOptions",
6404
- "module": "src/badge/badge.ts"
6433
+ "name": "foundationAvatarShadowOptions",
6434
+ "module": "src/avatar/avatar.ts"
6405
6435
  }
6406
6436
  },
6407
6437
  {
6408
6438
  "kind": "js",
6409
- "name": "defaultBadgeConfig",
6439
+ "name": "defaultAvatarConfig",
6410
6440
  "declaration": {
6411
- "name": "defaultBadgeConfig",
6412
- "module": "src/badge/badge.ts"
6441
+ "name": "defaultAvatarConfig",
6442
+ "module": "src/avatar/avatar.ts"
6413
6443
  }
6414
6444
  },
6415
6445
  {
6416
6446
  "kind": "js",
6417
- "name": "foundationBadge",
6447
+ "name": "foundationAvatar",
6418
6448
  "declaration": {
6419
- "name": "foundationBadge",
6420
- "module": "src/badge/badge.ts"
6449
+ "name": "foundationAvatar",
6450
+ "module": "src/avatar/avatar.ts"
6421
6451
  }
6422
6452
  }
6423
6453
  ]
6424
6454
  },
6425
6455
  {
6426
6456
  "kind": "javascript-module",
6427
- "path": "src/badge/index.ts",
6457
+ "path": "src/avatar/index.ts",
6428
6458
  "declarations": [],
6429
6459
  "exports": [
6430
6460
  {
@@ -6432,7 +6462,7 @@
6432
6462
  "name": "*",
6433
6463
  "declaration": {
6434
6464
  "name": "*",
6435
- "package": "./badge.template"
6465
+ "package": "./avatar.template"
6436
6466
  }
6437
6467
  },
6438
6468
  {
@@ -6440,7 +6470,7 @@
6440
6470
  "name": "*",
6441
6471
  "declaration": {
6442
6472
  "name": "*",
6443
- "package": "./badge.styles"
6473
+ "package": "./avatar.styles"
6444
6474
  }
6445
6475
  },
6446
6476
  {
@@ -6448,18 +6478,18 @@
6448
6478
  "name": "*",
6449
6479
  "declaration": {
6450
6480
  "name": "*",
6451
- "package": "./badge"
6481
+ "package": "./avatar"
6452
6482
  }
6453
6483
  }
6454
6484
  ]
6455
6485
  },
6456
6486
  {
6457
6487
  "kind": "javascript-module",
6458
- "path": "src/avatar/avatar.styles.ts",
6488
+ "path": "src/badge/badge.styles.ts",
6459
6489
  "declarations": [
6460
6490
  {
6461
6491
  "kind": "function",
6462
- "name": "foundationAvatarStyles",
6492
+ "name": "foundationBadgeStyles",
6463
6493
  "return": {
6464
6494
  "type": {
6465
6495
  "text": "ElementStyles"
@@ -6484,24 +6514,24 @@
6484
6514
  "exports": [
6485
6515
  {
6486
6516
  "kind": "js",
6487
- "name": "foundationAvatarStyles",
6517
+ "name": "foundationBadgeStyles",
6488
6518
  "declaration": {
6489
- "name": "foundationAvatarStyles",
6490
- "module": "src/avatar/avatar.styles.ts"
6519
+ "name": "foundationBadgeStyles",
6520
+ "module": "src/badge/badge.styles.ts"
6491
6521
  }
6492
6522
  }
6493
6523
  ]
6494
6524
  },
6495
6525
  {
6496
6526
  "kind": "javascript-module",
6497
- "path": "src/avatar/avatar.template.ts",
6527
+ "path": "src/badge/badge.template.ts",
6498
6528
  "declarations": [
6499
6529
  {
6500
6530
  "kind": "function",
6501
- "name": "foundationAvatarTemplate",
6531
+ "name": "foundationBadgeTemplate",
6502
6532
  "return": {
6503
6533
  "type": {
6504
- "text": "ViewTemplate<Avatar>"
6534
+ "text": "ViewTemplate<Badge>"
6505
6535
  }
6506
6536
  },
6507
6537
  "parameters": [
@@ -6518,45 +6548,32 @@
6518
6548
  }
6519
6549
  }
6520
6550
  ]
6521
- },
6522
- {
6523
- "kind": "variable",
6524
- "name": "media",
6525
- "default": "html<Avatar>`\n ${when(\n (x) => x.imgSrc,\n html<Avatar>`\n <img src=\"${(x) => x.imgSrc}\" alt=\"${(x) => x.alt}\" slot=\"media\" class=\"media\" part=\"media\" />\n `,\n )}\n`"
6526
6551
  }
6527
6552
  ],
6528
6553
  "exports": [
6529
6554
  {
6530
6555
  "kind": "js",
6531
- "name": "foundationAvatarTemplate",
6532
- "declaration": {
6533
- "name": "foundationAvatarTemplate",
6534
- "module": "src/avatar/avatar.template.ts"
6535
- }
6536
- },
6537
- {
6538
- "kind": "js",
6539
- "name": "media",
6556
+ "name": "foundationBadgeTemplate",
6540
6557
  "declaration": {
6541
- "name": "media",
6542
- "module": "src/avatar/avatar.template.ts"
6558
+ "name": "foundationBadgeTemplate",
6559
+ "module": "src/badge/badge.template.ts"
6543
6560
  }
6544
6561
  }
6545
6562
  ]
6546
6563
  },
6547
6564
  {
6548
6565
  "kind": "javascript-module",
6549
- "path": "src/avatar/avatar.ts",
6566
+ "path": "src/badge/badge.ts",
6550
6567
  "declarations": [
6551
6568
  {
6552
6569
  "kind": "class",
6553
6570
  "description": "",
6554
- "name": "Avatar",
6571
+ "name": "Badge",
6555
6572
  "superclass": {
6556
- "name": "FASTAvatar",
6573
+ "name": "FASTBadge",
6557
6574
  "package": "@microsoft/fast-components"
6558
6575
  },
6559
- "tagName": "%%prefix%%-avatar",
6576
+ "tagName": "%%prefix%%-badge",
6560
6577
  "customElement": true,
6561
6578
  "attributes": [
6562
6579
  {
@@ -6564,11 +6581,11 @@
6564
6581
  "type": {
6565
6582
  "text": "string"
6566
6583
  },
6567
- "description": "Indicates the Avatar should have a color fill.",
6584
+ "description": "Indicates the badge should have a filled style.",
6568
6585
  "fieldName": "fill",
6569
6586
  "inheritedFrom": {
6570
- "name": "Avatar",
6571
- "module": "src/avatar/avatar.ts"
6587
+ "name": "Badge",
6588
+ "module": "src/badge/badge.ts"
6572
6589
  }
6573
6590
  },
6574
6591
  {
@@ -6576,35 +6593,22 @@
6576
6593
  "type": {
6577
6594
  "text": "string"
6578
6595
  },
6579
- "description": "Indicates the Avatar should have a text color.",
6596
+ "description": "Indicates the badge should have a filled style.",
6580
6597
  "fieldName": "color",
6581
6598
  "inheritedFrom": {
6582
- "name": "Avatar",
6583
- "module": "src/avatar/avatar.ts"
6584
- }
6585
- },
6586
- {
6587
- "name": "link",
6588
- "type": {
6589
- "text": "string"
6590
- },
6591
- "description": "Indicates the Avatar should have url link",
6592
- "fieldName": "link",
6593
- "inheritedFrom": {
6594
- "name": "Avatar",
6595
- "module": "src/avatar/avatar.ts"
6599
+ "name": "Badge",
6600
+ "module": "src/badge/badge.ts"
6596
6601
  }
6597
6602
  },
6598
6603
  {
6599
- "name": "shape",
6600
6604
  "type": {
6601
- "text": "AvatarShape"
6605
+ "text": "boolean"
6602
6606
  },
6603
- "description": "Indicates the Avatar shape should be. By default it will be set to \"circle\".",
6604
- "fieldName": "shape",
6607
+ "description": "Indicates the element should be circular",
6608
+ "fieldName": "circular",
6605
6609
  "inheritedFrom": {
6606
- "name": "Avatar",
6607
- "module": "src/avatar/avatar.ts"
6610
+ "name": "Badge",
6611
+ "module": "src/badge/badge.ts"
6608
6612
  }
6609
6613
  }
6610
6614
  ],
@@ -6616,10 +6620,10 @@
6616
6620
  "text": "string"
6617
6621
  },
6618
6622
  "privacy": "public",
6619
- "description": "Indicates the Avatar should have a color fill.",
6623
+ "description": "Indicates the badge should have a filled style.",
6620
6624
  "inheritedFrom": {
6621
- "name": "Avatar",
6622
- "module": "src/avatar/avatar.ts"
6625
+ "name": "Badge",
6626
+ "module": "src/badge/badge.ts"
6623
6627
  }
6624
6628
  },
6625
6629
  {
@@ -6629,36 +6633,32 @@
6629
6633
  "text": "string"
6630
6634
  },
6631
6635
  "privacy": "public",
6632
- "description": "Indicates the Avatar should have a text color.",
6636
+ "description": "Indicates the badge should have a filled style.",
6633
6637
  "inheritedFrom": {
6634
- "name": "Avatar",
6635
- "module": "src/avatar/avatar.ts"
6638
+ "name": "Badge",
6639
+ "module": "src/badge/badge.ts"
6636
6640
  }
6637
6641
  },
6638
6642
  {
6639
6643
  "kind": "field",
6640
- "name": "link",
6644
+ "name": "circular",
6641
6645
  "type": {
6642
- "text": "string"
6646
+ "text": "boolean"
6643
6647
  },
6644
6648
  "privacy": "public",
6645
- "description": "Indicates the Avatar should have url link",
6649
+ "description": "Indicates the element should be circular",
6646
6650
  "inheritedFrom": {
6647
- "name": "Avatar",
6648
- "module": "src/avatar/avatar.ts"
6651
+ "name": "Badge",
6652
+ "module": "src/badge/badge.ts"
6649
6653
  }
6650
6654
  },
6651
6655
  {
6652
6656
  "kind": "field",
6653
- "name": "shape",
6654
- "type": {
6655
- "text": "AvatarShape"
6656
- },
6657
+ "name": "generateBadgeStyle",
6657
6658
  "privacy": "public",
6658
- "description": "Indicates the Avatar shape should be. By default it will be set to \"circle\".",
6659
6659
  "inheritedFrom": {
6660
- "name": "Avatar",
6661
- "module": "src/avatar/avatar.ts"
6660
+ "name": "Badge",
6661
+ "module": "src/badge/badge.ts"
6662
6662
  }
6663
6663
  },
6664
6664
  {
@@ -6776,65 +6776,65 @@
6776
6776
  },
6777
6777
  {
6778
6778
  "kind": "variable",
6779
- "name": "foundationAvatarShadowOptions",
6779
+ "name": "foundationBadgeShadowOptions",
6780
6780
  "type": {
6781
6781
  "text": "ShadowRootInit"
6782
6782
  },
6783
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
6783
+ "default": "undefined"
6784
6784
  },
6785
6785
  {
6786
6786
  "kind": "variable",
6787
- "name": "defaultAvatarConfig",
6787
+ "name": "defaultBadgeConfig",
6788
6788
  "type": {
6789
6789
  "text": "object"
6790
6790
  },
6791
- "default": "{\n media: mediaTemplate,\n}"
6791
+ "default": "{}"
6792
6792
  },
6793
6793
  {
6794
6794
  "kind": "variable",
6795
- "name": "foundationAvatar",
6796
- "description": "The Foundation Avatar",
6795
+ "name": "foundationBadge",
6796
+ "description": "The Foundation Badge",
6797
6797
  "privacy": "public"
6798
6798
  }
6799
6799
  ],
6800
6800
  "exports": [
6801
6801
  {
6802
6802
  "kind": "js",
6803
- "name": "Avatar",
6803
+ "name": "Badge",
6804
6804
  "declaration": {
6805
- "name": "Avatar",
6806
- "module": "src/avatar/avatar.ts"
6805
+ "name": "Badge",
6806
+ "module": "src/badge/badge.ts"
6807
6807
  }
6808
6808
  },
6809
6809
  {
6810
6810
  "kind": "js",
6811
- "name": "foundationAvatarShadowOptions",
6811
+ "name": "foundationBadgeShadowOptions",
6812
6812
  "declaration": {
6813
- "name": "foundationAvatarShadowOptions",
6814
- "module": "src/avatar/avatar.ts"
6813
+ "name": "foundationBadgeShadowOptions",
6814
+ "module": "src/badge/badge.ts"
6815
6815
  }
6816
6816
  },
6817
6817
  {
6818
6818
  "kind": "js",
6819
- "name": "defaultAvatarConfig",
6819
+ "name": "defaultBadgeConfig",
6820
6820
  "declaration": {
6821
- "name": "defaultAvatarConfig",
6822
- "module": "src/avatar/avatar.ts"
6821
+ "name": "defaultBadgeConfig",
6822
+ "module": "src/badge/badge.ts"
6823
6823
  }
6824
6824
  },
6825
6825
  {
6826
6826
  "kind": "js",
6827
- "name": "foundationAvatar",
6827
+ "name": "foundationBadge",
6828
6828
  "declaration": {
6829
- "name": "foundationAvatar",
6830
- "module": "src/avatar/avatar.ts"
6829
+ "name": "foundationBadge",
6830
+ "module": "src/badge/badge.ts"
6831
6831
  }
6832
6832
  }
6833
6833
  ]
6834
6834
  },
6835
6835
  {
6836
6836
  "kind": "javascript-module",
6837
- "path": "src/avatar/index.ts",
6837
+ "path": "src/badge/index.ts",
6838
6838
  "declarations": [],
6839
6839
  "exports": [
6840
6840
  {
@@ -6842,7 +6842,7 @@
6842
6842
  "name": "*",
6843
6843
  "declaration": {
6844
6844
  "name": "*",
6845
- "package": "./avatar.template"
6845
+ "package": "./badge.template"
6846
6846
  }
6847
6847
  },
6848
6848
  {
@@ -6850,7 +6850,7 @@
6850
6850
  "name": "*",
6851
6851
  "declaration": {
6852
6852
  "name": "*",
6853
- "package": "./avatar.styles"
6853
+ "package": "./badge.styles"
6854
6854
  }
6855
6855
  },
6856
6856
  {
@@ -6858,7 +6858,7 @@
6858
6858
  "name": "*",
6859
6859
  "declaration": {
6860
6860
  "name": "*",
6861
- "package": "./avatar"
6861
+ "package": "./badge"
6862
6862
  }
6863
6863
  }
6864
6864
  ]