@elastic/eui 70.1.0 → 70.2.0
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/eui_theme_dark.css +11 -1
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +11 -1
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
- package/es/components/accordion/accordion.a11y.js +35 -0
- package/es/components/card/card.js +13 -31
- package/es/components/card/card.styles.js +15 -3
- package/es/components/card/card_select/card_select.styles.js +4 -4
- package/es/components/card/checkable_card/checkable_card.js +3 -2
- package/es/components/context_menu/context_menu_panel.a11y.js +34 -0
- package/es/components/datagrid/controls/data_grid_toolbar.js +6 -2
- package/es/components/datagrid/controls/index.js +1 -0
- package/es/components/datagrid/controls/keyboard_shortcuts.js +191 -0
- package/es/components/datagrid/data_grid.js +12 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +22 -4
- package/es/components/selectable/selectable.a11y.js +118 -0
- package/es/components/selectable/selectable.js +9 -6
- package/es/components/tabs/tab.js +7 -3
- package/es/components/tabs/tab.styles.js +29 -16
- package/es/components/tabs/tabbed_content/tabbed_content.js +1 -1
- package/es/components/tabs/tabs.js +3 -3
- package/es/components/tabs/tabs.styles.js +2 -4
- package/es/services/string/to_initials.js +1 -1
- package/eui.d.ts +208 -164
- package/i18ntokens.json +438 -6
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
- package/lib/components/accordion/accordion.a11y.js +44 -0
- package/lib/components/card/card.js +14 -33
- package/lib/components/card/card.styles.js +15 -3
- package/lib/components/card/card_select/card_select.styles.js +4 -4
- package/lib/components/card/checkable_card/checkable_card.js +3 -2
- package/lib/components/context_menu/context_menu_panel.a11y.js +42 -0
- package/lib/components/datagrid/controls/data_grid_toolbar.js +7 -2
- package/lib/components/datagrid/controls/index.js +8 -0
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +208 -0
- package/lib/components/datagrid/data_grid.js +11 -1
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +22 -4
- package/lib/components/selectable/selectable.a11y.js +122 -0
- package/lib/components/selectable/selectable.js +9 -6
- package/lib/components/tabs/tab.js +7 -3
- package/lib/components/tabs/tab.styles.js +29 -16
- package/lib/components/tabs/tabbed_content/tabbed_content.js +1 -1
- package/lib/components/tabs/tabs.js +3 -3
- package/lib/components/tabs/tabs.styles.js +1 -3
- package/lib/services/string/to_initials.js +1 -1
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
- package/optimize/es/components/accordion/accordion.a11y.js +35 -0
- package/optimize/es/components/card/card.js +12 -30
- package/optimize/es/components/card/card.styles.js +15 -3
- package/optimize/es/components/card/card_select/card_select.styles.js +4 -4
- package/optimize/es/components/card/checkable_card/checkable_card.js +3 -2
- package/optimize/es/components/context_menu/context_menu_panel.a11y.js +34 -0
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +6 -2
- package/optimize/es/components/datagrid/controls/index.js +1 -0
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +181 -0
- package/optimize/es/components/datagrid/data_grid.js +6 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +12 -4
- package/optimize/es/components/selectable/selectable.a11y.js +107 -0
- package/optimize/es/components/selectable/selectable.js +9 -6
- package/optimize/es/components/tabs/tab.js +7 -3
- package/optimize/es/components/tabs/tab.styles.js +29 -16
- package/optimize/es/components/tabs/tabs.js +3 -3
- package/optimize/es/components/tabs/tabs.styles.js +2 -4
- package/optimize/es/services/string/to_initials.js +1 -1
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
- package/optimize/lib/components/accordion/accordion.a11y.js +44 -0
- package/optimize/lib/components/card/card.js +13 -32
- package/optimize/lib/components/card/card.styles.js +15 -3
- package/optimize/lib/components/card/card_select/card_select.styles.js +4 -4
- package/optimize/lib/components/card/checkable_card/checkable_card.js +3 -2
- package/optimize/lib/components/context_menu/context_menu_panel.a11y.js +42 -0
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +7 -2
- package/optimize/lib/components/datagrid/controls/index.js +8 -0
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +207 -0
- package/optimize/lib/components/datagrid/data_grid.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +12 -4
- package/optimize/lib/components/selectable/selectable.a11y.js +122 -0
- package/optimize/lib/components/selectable/selectable.js +9 -6
- package/optimize/lib/components/tabs/tab.js +7 -3
- package/optimize/lib/components/tabs/tab.styles.js +29 -16
- package/optimize/lib/components/tabs/tabs.js +3 -3
- package/optimize/lib/components/tabs/tabs.styles.js +1 -3
- package/optimize/lib/services/string/to_initials.js +1 -1
- package/package.json +3 -2
- package/src/components/datagrid/_index.scss +1 -0
- package/src/components/datagrid/controls/_data_grid_keyboard_shortcuts.scss +17 -0
- package/src/components/modal/_modal.scss +3 -1
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
- package/test-env/components/accordion/accordion.a11y.js +44 -0
- package/test-env/components/card/card.js +14 -33
- package/test-env/components/card/card.styles.js +15 -3
- package/test-env/components/card/card_select/card_select.styles.js +4 -4
- package/test-env/components/card/checkable_card/checkable_card.js +3 -2
- package/test-env/components/context_menu/context_menu_panel.a11y.js +42 -0
- package/test-env/components/datagrid/controls/data_grid_toolbar.js +7 -2
- package/test-env/components/datagrid/controls/index.js +8 -0
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +207 -0
- package/test-env/components/datagrid/data_grid.js +11 -1
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +22 -4
- package/test-env/components/selectable/selectable.a11y.js +122 -0
- package/test-env/components/selectable/selectable.js +9 -6
- package/test-env/components/tabs/tab.js +7 -3
- package/test-env/components/tabs/tab.styles.js +29 -16
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +1 -1
- package/test-env/components/tabs/tabs.js +3 -3
- package/test-env/components/tabs/tabs.styles.js +1 -3
- package/test-env/services/string/to_initials.js +1 -1
package/i18ntokens.json
CHANGED
|
@@ -1583,17 +1583,449 @@
|
|
|
1583
1583
|
},
|
|
1584
1584
|
"filepath": "src/components/datagrid/controls/fullscreen_selector.tsx"
|
|
1585
1585
|
},
|
|
1586
|
+
{
|
|
1587
|
+
"token": "euiKeyboardShortcuts.title",
|
|
1588
|
+
"defString": "Keyboard shortcuts",
|
|
1589
|
+
"highlighting": "string",
|
|
1590
|
+
"loc": {
|
|
1591
|
+
"start": {
|
|
1592
|
+
"line": 24,
|
|
1593
|
+
"column": 16
|
|
1594
|
+
},
|
|
1595
|
+
"end": {
|
|
1596
|
+
"line": 24,
|
|
1597
|
+
"column": 78
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"token": "euiKeyboardShortcuts.upArrowTitle",
|
|
1604
|
+
"defString": "Up arrow",
|
|
1605
|
+
"highlighting": "string",
|
|
1606
|
+
"loc": {
|
|
1607
|
+
"start": {
|
|
1608
|
+
"line": 61,
|
|
1609
|
+
"column": 20
|
|
1610
|
+
},
|
|
1611
|
+
"end": {
|
|
1612
|
+
"line": 64,
|
|
1613
|
+
"column": 22
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"token": "euiKeyboardShortcuts.upArrowDescription",
|
|
1620
|
+
"defString": "Move one cell up",
|
|
1621
|
+
"highlighting": "string",
|
|
1622
|
+
"loc": {
|
|
1623
|
+
"start": {
|
|
1624
|
+
"line": 68,
|
|
1625
|
+
"column": 18
|
|
1626
|
+
},
|
|
1627
|
+
"end": {
|
|
1628
|
+
"line": 71,
|
|
1629
|
+
"column": 20
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"token": "euiKeyboardShortcuts.downArrowTitle",
|
|
1636
|
+
"defString": "Down arrow",
|
|
1637
|
+
"highlighting": "string",
|
|
1638
|
+
"loc": {
|
|
1639
|
+
"start": {
|
|
1640
|
+
"line": 77,
|
|
1641
|
+
"column": 20
|
|
1642
|
+
},
|
|
1643
|
+
"end": {
|
|
1644
|
+
"line": 80,
|
|
1645
|
+
"column": 22
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"token": "euiKeyboardShortcuts.downArrowDescription",
|
|
1652
|
+
"defString": "Move one cell down",
|
|
1653
|
+
"highlighting": "string",
|
|
1654
|
+
"loc": {
|
|
1655
|
+
"start": {
|
|
1656
|
+
"line": 84,
|
|
1657
|
+
"column": 18
|
|
1658
|
+
},
|
|
1659
|
+
"end": {
|
|
1660
|
+
"line": 87,
|
|
1661
|
+
"column": 20
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"token": "euiKeyboardShortcuts.rightArrowTitle",
|
|
1668
|
+
"defString": "Right arrow",
|
|
1669
|
+
"highlighting": "string",
|
|
1670
|
+
"loc": {
|
|
1671
|
+
"start": {
|
|
1672
|
+
"line": 93,
|
|
1673
|
+
"column": 20
|
|
1674
|
+
},
|
|
1675
|
+
"end": {
|
|
1676
|
+
"line": 96,
|
|
1677
|
+
"column": 22
|
|
1678
|
+
}
|
|
1679
|
+
},
|
|
1680
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"token": "euiKeyboardShortcuts.rightArrowDescription",
|
|
1684
|
+
"defString": "Move one cell right",
|
|
1685
|
+
"highlighting": "string",
|
|
1686
|
+
"loc": {
|
|
1687
|
+
"start": {
|
|
1688
|
+
"line": 100,
|
|
1689
|
+
"column": 18
|
|
1690
|
+
},
|
|
1691
|
+
"end": {
|
|
1692
|
+
"line": 103,
|
|
1693
|
+
"column": 20
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"token": "euiKeyboardShortcuts.leftArrowTitle",
|
|
1700
|
+
"defString": "Left arrow",
|
|
1701
|
+
"highlighting": "string",
|
|
1702
|
+
"loc": {
|
|
1703
|
+
"start": {
|
|
1704
|
+
"line": 109,
|
|
1705
|
+
"column": 20
|
|
1706
|
+
},
|
|
1707
|
+
"end": {
|
|
1708
|
+
"line": 112,
|
|
1709
|
+
"column": 22
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"token": "euiKeyboardShortcuts.leftArrowDescription",
|
|
1716
|
+
"defString": "Move one cell left",
|
|
1717
|
+
"highlighting": "string",
|
|
1718
|
+
"loc": {
|
|
1719
|
+
"start": {
|
|
1720
|
+
"line": 116,
|
|
1721
|
+
"column": 18
|
|
1722
|
+
},
|
|
1723
|
+
"end": {
|
|
1724
|
+
"line": 119,
|
|
1725
|
+
"column": 20
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1728
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"token": "euiKeyboardShortcuts.homeTitle",
|
|
1732
|
+
"defString": "Home",
|
|
1733
|
+
"highlighting": "string",
|
|
1734
|
+
"loc": {
|
|
1735
|
+
"start": {
|
|
1736
|
+
"line": 125,
|
|
1737
|
+
"column": 20
|
|
1738
|
+
},
|
|
1739
|
+
"end": {
|
|
1740
|
+
"line": 128,
|
|
1741
|
+
"column": 22
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"token": "euiKeyboardShortcuts.homeDescription",
|
|
1748
|
+
"defString": "Move to the first cell of the current row",
|
|
1749
|
+
"highlighting": "string",
|
|
1750
|
+
"loc": {
|
|
1751
|
+
"start": {
|
|
1752
|
+
"line": 132,
|
|
1753
|
+
"column": 18
|
|
1754
|
+
},
|
|
1755
|
+
"end": {
|
|
1756
|
+
"line": 135,
|
|
1757
|
+
"column": 20
|
|
1758
|
+
}
|
|
1759
|
+
},
|
|
1760
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"token": "euiKeyboardShortcuts.endTitle",
|
|
1764
|
+
"defString": "End",
|
|
1765
|
+
"highlighting": "string",
|
|
1766
|
+
"loc": {
|
|
1767
|
+
"start": {
|
|
1768
|
+
"line": 141,
|
|
1769
|
+
"column": 20
|
|
1770
|
+
},
|
|
1771
|
+
"end": {
|
|
1772
|
+
"line": 144,
|
|
1773
|
+
"column": 22
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"token": "euiKeyboardShortcuts.endDescription",
|
|
1780
|
+
"defString": "Move to the last cell of the current row",
|
|
1781
|
+
"highlighting": "string",
|
|
1782
|
+
"loc": {
|
|
1783
|
+
"start": {
|
|
1784
|
+
"line": 148,
|
|
1785
|
+
"column": 18
|
|
1786
|
+
},
|
|
1787
|
+
"end": {
|
|
1788
|
+
"line": 151,
|
|
1789
|
+
"column": 20
|
|
1790
|
+
}
|
|
1791
|
+
},
|
|
1792
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"token": "euiKeyboardShortcuts.ctrl",
|
|
1796
|
+
"defString": "Ctrl",
|
|
1797
|
+
"highlighting": "string",
|
|
1798
|
+
"loc": {
|
|
1799
|
+
"start": {
|
|
1800
|
+
"line": 158,
|
|
1801
|
+
"column": 22
|
|
1802
|
+
},
|
|
1803
|
+
"end": {
|
|
1804
|
+
"line": 161,
|
|
1805
|
+
"column": 24
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"token": "euiKeyboardShortcuts.homeTitle",
|
|
1812
|
+
"defString": "Home",
|
|
1813
|
+
"highlighting": "string",
|
|
1814
|
+
"loc": {
|
|
1815
|
+
"start": {
|
|
1816
|
+
"line": 164,
|
|
1817
|
+
"column": 22
|
|
1818
|
+
},
|
|
1819
|
+
"end": {
|
|
1820
|
+
"line": 167,
|
|
1821
|
+
"column": 24
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"token": "euiKeyboardShortcuts.ctrlHomeDescription",
|
|
1828
|
+
"defString": "Move to the first cell of the current page",
|
|
1829
|
+
"highlighting": "string",
|
|
1830
|
+
"loc": {
|
|
1831
|
+
"start": {
|
|
1832
|
+
"line": 172,
|
|
1833
|
+
"column": 18
|
|
1834
|
+
},
|
|
1835
|
+
"end": {
|
|
1836
|
+
"line": 175,
|
|
1837
|
+
"column": 20
|
|
1838
|
+
}
|
|
1839
|
+
},
|
|
1840
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"token": "euiKeyboardShortcuts.ctrl",
|
|
1844
|
+
"defString": "Ctrl",
|
|
1845
|
+
"highlighting": "string",
|
|
1846
|
+
"loc": {
|
|
1847
|
+
"start": {
|
|
1848
|
+
"line": 182,
|
|
1849
|
+
"column": 22
|
|
1850
|
+
},
|
|
1851
|
+
"end": {
|
|
1852
|
+
"line": 185,
|
|
1853
|
+
"column": 24
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1856
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"token": "euiKeyboardShortcuts.endTitle",
|
|
1860
|
+
"defString": "End",
|
|
1861
|
+
"highlighting": "string",
|
|
1862
|
+
"loc": {
|
|
1863
|
+
"start": {
|
|
1864
|
+
"line": 188,
|
|
1865
|
+
"column": 22
|
|
1866
|
+
},
|
|
1867
|
+
"end": {
|
|
1868
|
+
"line": 191,
|
|
1869
|
+
"column": 24
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"token": "euiKeyboardShortcuts.ctrlEndDescription",
|
|
1876
|
+
"defString": "Move to the last cell of the current page",
|
|
1877
|
+
"highlighting": "string",
|
|
1878
|
+
"loc": {
|
|
1879
|
+
"start": {
|
|
1880
|
+
"line": 196,
|
|
1881
|
+
"column": 18
|
|
1882
|
+
},
|
|
1883
|
+
"end": {
|
|
1884
|
+
"line": 199,
|
|
1885
|
+
"column": 20
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"token": "euiKeyboardShortcuts.pageUpTitle",
|
|
1892
|
+
"defString": "Page Up",
|
|
1893
|
+
"highlighting": "string",
|
|
1894
|
+
"loc": {
|
|
1895
|
+
"start": {
|
|
1896
|
+
"line": 205,
|
|
1897
|
+
"column": 20
|
|
1898
|
+
},
|
|
1899
|
+
"end": {
|
|
1900
|
+
"line": 208,
|
|
1901
|
+
"column": 22
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"token": "euiKeyboardShortcuts.pageUpDescription",
|
|
1908
|
+
"defString": "Go to the last row of the previous page",
|
|
1909
|
+
"highlighting": "string",
|
|
1910
|
+
"loc": {
|
|
1911
|
+
"start": {
|
|
1912
|
+
"line": 212,
|
|
1913
|
+
"column": 18
|
|
1914
|
+
},
|
|
1915
|
+
"end": {
|
|
1916
|
+
"line": 215,
|
|
1917
|
+
"column": 20
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"token": "euiKeyboardShortcuts.pageDownTitle",
|
|
1924
|
+
"defString": "Page Down",
|
|
1925
|
+
"highlighting": "string",
|
|
1926
|
+
"loc": {
|
|
1927
|
+
"start": {
|
|
1928
|
+
"line": 221,
|
|
1929
|
+
"column": 20
|
|
1930
|
+
},
|
|
1931
|
+
"end": {
|
|
1932
|
+
"line": 224,
|
|
1933
|
+
"column": 22
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"token": "euiKeyboardShortcuts.pageDownDescription",
|
|
1940
|
+
"defString": "Go to the first row of the next page",
|
|
1941
|
+
"highlighting": "string",
|
|
1942
|
+
"loc": {
|
|
1943
|
+
"start": {
|
|
1944
|
+
"line": 228,
|
|
1945
|
+
"column": 18
|
|
1946
|
+
},
|
|
1947
|
+
"end": {
|
|
1948
|
+
"line": 231,
|
|
1949
|
+
"column": 20
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"token": "euiKeyboardShortcuts.enterTitle",
|
|
1956
|
+
"defString": "Enter",
|
|
1957
|
+
"highlighting": "string",
|
|
1958
|
+
"loc": {
|
|
1959
|
+
"start": {
|
|
1960
|
+
"line": 237,
|
|
1961
|
+
"column": 20
|
|
1962
|
+
},
|
|
1963
|
+
"end": {
|
|
1964
|
+
"line": 240,
|
|
1965
|
+
"column": 22
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"token": "euiKeyboardShortcuts.enterDescription",
|
|
1972
|
+
"defString": "Open cell details and actions",
|
|
1973
|
+
"highlighting": "string",
|
|
1974
|
+
"loc": {
|
|
1975
|
+
"start": {
|
|
1976
|
+
"line": 244,
|
|
1977
|
+
"column": 18
|
|
1978
|
+
},
|
|
1979
|
+
"end": {
|
|
1980
|
+
"line": 247,
|
|
1981
|
+
"column": 20
|
|
1982
|
+
}
|
|
1983
|
+
},
|
|
1984
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
"token": "euiKeyboardShortcuts.escapeTitle",
|
|
1988
|
+
"defString": "Escape",
|
|
1989
|
+
"highlighting": "string",
|
|
1990
|
+
"loc": {
|
|
1991
|
+
"start": {
|
|
1992
|
+
"line": 253,
|
|
1993
|
+
"column": 20
|
|
1994
|
+
},
|
|
1995
|
+
"end": {
|
|
1996
|
+
"line": 256,
|
|
1997
|
+
"column": 22
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"token": "euiKeyboardShortcuts.escapeDescription",
|
|
2004
|
+
"defString": "Close cell details and actions",
|
|
2005
|
+
"highlighting": "string",
|
|
2006
|
+
"loc": {
|
|
2007
|
+
"start": {
|
|
2008
|
+
"line": 260,
|
|
2009
|
+
"column": 18
|
|
2010
|
+
},
|
|
2011
|
+
"end": {
|
|
2012
|
+
"line": 263,
|
|
2013
|
+
"column": 20
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
2017
|
+
},
|
|
1586
2018
|
{
|
|
1587
2019
|
"token": "euiDataGrid.ariaLabel",
|
|
1588
2020
|
"defString": "{label}; Page {page} of {pageCount}.",
|
|
1589
2021
|
"highlighting": "string",
|
|
1590
2022
|
"loc": {
|
|
1591
2023
|
"start": {
|
|
1592
|
-
"line":
|
|
2024
|
+
"line": 341,
|
|
1593
2025
|
"column": 22
|
|
1594
2026
|
},
|
|
1595
2027
|
"end": {
|
|
1596
|
-
"line":
|
|
2028
|
+
"line": 345,
|
|
1597
2029
|
"column": 5
|
|
1598
2030
|
}
|
|
1599
2031
|
},
|
|
@@ -1605,11 +2037,11 @@
|
|
|
1605
2037
|
"highlighting": "string",
|
|
1606
2038
|
"loc": {
|
|
1607
2039
|
"start": {
|
|
1608
|
-
"line":
|
|
2040
|
+
"line": 346,
|
|
1609
2041
|
"column": 27
|
|
1610
2042
|
},
|
|
1611
2043
|
"end": {
|
|
1612
|
-
"line":
|
|
2044
|
+
"line": 350,
|
|
1613
2045
|
"column": 5
|
|
1614
2046
|
}
|
|
1615
2047
|
},
|
|
@@ -1621,11 +2053,11 @@
|
|
|
1621
2053
|
"highlighting": "string",
|
|
1622
2054
|
"loc": {
|
|
1623
2055
|
"start": {
|
|
1624
|
-
"line":
|
|
2056
|
+
"line": 476,
|
|
1625
2057
|
"column": 18
|
|
1626
2058
|
},
|
|
1627
2059
|
"end": {
|
|
1628
|
-
"line":
|
|
2060
|
+
"line": 479,
|
|
1629
2061
|
"column": 20
|
|
1630
2062
|
}
|
|
1631
2063
|
},
|
|
@@ -44,7 +44,7 @@ EuiScreenReaderOnly.propTypes = {
|
|
|
44
44
|
children: _propTypes.default.element.isRequired,
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* For keyboard navigation, force content to display visually upon focus.
|
|
47
|
+
* For keyboard navigation, force content to display visually upon focus/focus-within.
|
|
48
48
|
*/
|
|
49
49
|
showOnFocus: _propTypes.default.bool,
|
|
50
50
|
className: _propTypes.default.string
|
|
@@ -33,7 +33,7 @@ exports.euiScreenReaderOnly = euiScreenReaderOnly;
|
|
|
33
33
|
|
|
34
34
|
var euiScreenReaderOnlyStyles = function euiScreenReaderOnlyStyles(showOnFocus) {
|
|
35
35
|
return {
|
|
36
|
-
euiScreenReaderOnly: showOnFocus ? /*#__PURE__*/(0, _react.css)("&:not(:focus):not(:active){", euiScreenReaderOnly(), ";};label:euiScreenReaderOnly;") : /*#__PURE__*/(0, _react.css)(euiScreenReaderOnly(), ";label:euiScreenReaderOnly;")
|
|
36
|
+
euiScreenReaderOnly: showOnFocus ? /*#__PURE__*/(0, _react.css)("&:not(:focus):not(:active):not(:focus-within){", euiScreenReaderOnly(), ";};label:euiScreenReaderOnly;") : /*#__PURE__*/(0, _react.css)(euiScreenReaderOnly(), ";label:euiScreenReaderOnly;")
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _index = require("./index");
|
|
6
|
+
|
|
7
|
+
var _panel = require("../../components/panel");
|
|
8
|
+
|
|
9
|
+
var _services = require("../../services");
|
|
10
|
+
|
|
11
|
+
var _react2 = require("@emotion/react");
|
|
12
|
+
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
17
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
18
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
19
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
20
|
+
* Side Public License, v 1.
|
|
21
|
+
*/
|
|
22
|
+
/// <reference types="../../../cypress/support"/>
|
|
23
|
+
var baseProps = {
|
|
24
|
+
buttonContent: 'Click me to toggle',
|
|
25
|
+
id: (0, _services.htmlIdGenerator)()(),
|
|
26
|
+
initialIsOpen: false
|
|
27
|
+
};
|
|
28
|
+
var noArrow = {
|
|
29
|
+
arrowDisplay: 'none'
|
|
30
|
+
};
|
|
31
|
+
var noArrowProps = Object.assign(baseProps, noArrow);
|
|
32
|
+
describe('EuiAccordion', function () {
|
|
33
|
+
describe('Automated accessibility check', function () {
|
|
34
|
+
it('has zero violations when expanded', function () {
|
|
35
|
+
cy.mount((0, _react2.jsx)(_index.EuiAccordion, noArrowProps, (0, _react2.jsx)(_panel.EuiPanel, {
|
|
36
|
+
color: "subdued"
|
|
37
|
+
}, "Any content inside of ", (0, _react2.jsx)("strong", null, "EuiAccordion"), " will appear here. We will include ", (0, _react2.jsx)("a", {
|
|
38
|
+
href: "#"
|
|
39
|
+
}, "a link"), " to confirm focus.")));
|
|
40
|
+
cy.get('button.euiAccordion__button').click();
|
|
41
|
+
cy.checkAxe();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.EuiCard = exports.ALIGNMENTS = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -13,10 +13,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
var _common = require("../common");
|
|
17
|
-
|
|
18
16
|
var _services = require("../../services");
|
|
19
17
|
|
|
18
|
+
var _clone_element = require("../../services/theme/clone_element");
|
|
19
|
+
|
|
20
20
|
var _text = require("../text");
|
|
21
21
|
|
|
22
22
|
var _title = require("../title");
|
|
@@ -58,23 +58,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
58
58
|
|
|
59
59
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
60
60
|
|
|
61
|
-
var
|
|
62
|
-
left: 'euiCard--leftAligned',
|
|
63
|
-
center: 'euiCard--centerAligned',
|
|
64
|
-
right: 'euiCard--rightAligned'
|
|
65
|
-
};
|
|
66
|
-
var ALIGNMENTS = (0, _common.keysOf)(textAlignToClassNameMap);
|
|
61
|
+
var ALIGNMENTS = ['left', 'center', 'right'];
|
|
67
62
|
exports.ALIGNMENTS = ALIGNMENTS;
|
|
68
|
-
var layoutToClassNameMap = {
|
|
69
|
-
vertical: '',
|
|
70
|
-
horizontal: 'euiCard--horizontal'
|
|
71
|
-
};
|
|
72
|
-
var LAYOUT_ALIGNMENTS = (0, _common.keysOf)(layoutToClassNameMap);
|
|
73
|
-
/**
|
|
74
|
-
* Certain props are only allowed when the layout is vertical
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
exports.LAYOUT_ALIGNMENTS = LAYOUT_ALIGNMENTS;
|
|
78
63
|
|
|
79
64
|
var EuiCard = function EuiCard(_ref) {
|
|
80
65
|
var className = _ref.className,
|
|
@@ -110,8 +95,9 @@ var EuiCard = function EuiCard(_ref) {
|
|
|
110
95
|
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
111
96
|
var styles = (0, _card.euiCardStyles)(euiThemeContext, paddingSize);
|
|
112
97
|
var cardStyles = [styles.card.euiCard, // Text alignment should always be left when horizontal
|
|
113
|
-
styles.card.aligned[layout === 'horizontal' ? 'left' : textAlign],
|
|
98
|
+
styles.card.aligned[layout === 'horizontal' ? 'left' : textAlign], isDisabled && styles.card.disabled];
|
|
114
99
|
var contentStyles = [styles.content.euiCard__content, styles.content.layout[layout]];
|
|
100
|
+
var mainStyles = [styles.main.euiCard__main, styles.main.layout[layout]];
|
|
115
101
|
var textStyles = (0, _card.euiCardTextStyles)(euiThemeContext);
|
|
116
102
|
var textCSS = [textStyles.euiCard__text, // Text alignment should always be left when horizontal
|
|
117
103
|
textStyles.aligned[layout === 'horizontal' ? 'left' : textAlign], isClickable && textStyles.interactive, isDisabled && textStyles.disabled];
|
|
@@ -135,15 +121,7 @@ var EuiCard = function EuiCard(_ref) {
|
|
|
135
121
|
}
|
|
136
122
|
}
|
|
137
123
|
|
|
138
|
-
var
|
|
139
|
-
var classes = (0, _classnames.default)('euiCard', textAlignToClassNameMap[textAlign], layoutToClassNameMap[layout], {
|
|
140
|
-
'euiCard--isClickable': isClickable,
|
|
141
|
-
'euiCard--hasBetaBadge': betaBadgeProps === null || betaBadgeProps === void 0 ? void 0 : betaBadgeProps.label,
|
|
142
|
-
'euiCard--hasIcon': icon,
|
|
143
|
-
'euiCard--isSelectable': selectable,
|
|
144
|
-
'euiCard-isSelected': selectable === null || selectable === void 0 ? void 0 : selectable.isSelected,
|
|
145
|
-
'euiCard-isDisabled': isDisabled
|
|
146
|
-
}, selectableColorClass, className);
|
|
124
|
+
var classes = (0, _classnames.default)('euiCard', className);
|
|
147
125
|
var ariaId = (0, _accessibility.useGeneratedHtmlId)();
|
|
148
126
|
var ariaDesc = description ? "".concat(ariaId, "Description") : '';
|
|
149
127
|
/**
|
|
@@ -171,7 +149,7 @@ var EuiCard = function EuiCard(_ref) {
|
|
|
171
149
|
|
|
172
150
|
if (icon) {
|
|
173
151
|
var iconStyles = [styles.icon.euiCard__icon, styles.icon.layout[layout], imageNode && styles.icon.withImage];
|
|
174
|
-
iconNode =
|
|
152
|
+
iconNode = (0, _clone_element.cloneElementWithCss)(icon, {
|
|
175
153
|
className: (0, _classnames.default)(icon.props.className, 'euiCard__icon'),
|
|
176
154
|
css: iconStyles
|
|
177
155
|
});
|
|
@@ -327,14 +305,17 @@ var EuiCard = function EuiCard(_ref) {
|
|
|
327
305
|
hasShadow: isDisabled || display ? false : true,
|
|
328
306
|
hasBorder: display ? false : undefined,
|
|
329
307
|
paddingSize: paddingSize
|
|
330
|
-
}, rest),
|
|
308
|
+
}, rest), (0, _react2.jsx)("div", {
|
|
309
|
+
className: "euiCard__main",
|
|
310
|
+
css: mainStyles
|
|
311
|
+
}, optionalCardTop, (0, _react2.jsx)("div", {
|
|
331
312
|
className: "euiCard__content",
|
|
332
313
|
css: contentStyles
|
|
333
314
|
}, (0, _react2.jsx)(_title.EuiTitle, {
|
|
334
315
|
id: "".concat(ariaId, "Title"),
|
|
335
316
|
className: "euiCard__title",
|
|
336
317
|
size: titleSize
|
|
337
|
-
}, (0, _react2.jsx)(TitleElement, null, theTitle)), optionalDescription, optionalChildren), optionalBetaBadge, optionalFooter, optionalSelectButton);
|
|
318
|
+
}, (0, _react2.jsx)(TitleElement, null, theTitle)), optionalDescription, optionalChildren), optionalBetaBadge, optionalFooter), optionalSelectButton);
|
|
338
319
|
};
|
|
339
320
|
|
|
340
321
|
exports.EuiCard = EuiCard;
|
|
@@ -348,7 +329,7 @@ EuiCard.propTypes = {
|
|
|
348
329
|
/**
|
|
349
330
|
* Changes alignment of the title and description
|
|
350
331
|
*/
|
|
351
|
-
textAlign: _propTypes.default.
|
|
332
|
+
textAlign: _propTypes.default.any,
|
|
352
333
|
|
|
353
334
|
/**
|
|
354
335
|
* Accepts any combination of elements
|
|
@@ -57,6 +57,15 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
|
57
57
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
+
var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
61
|
+
name: "z24364-euiCard__main",
|
|
62
|
+
styles: "display:flex;label:euiCard__main;"
|
|
63
|
+
} : {
|
|
64
|
+
name: "z24364-euiCard__main",
|
|
65
|
+
styles: "display:flex;label:euiCard__main;",
|
|
66
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
67
|
+
};
|
|
68
|
+
|
|
60
69
|
var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize) {
|
|
61
70
|
var euiTheme = euiThemeContext.euiTheme;
|
|
62
71
|
var paddingAmount = (0, _global_styling.euiPaddingSize)(euiThemeContext, paddingSize);
|
|
@@ -64,17 +73,20 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize) {
|
|
|
64
73
|
var halfSpacing = (0, _global_styling.euiPaddingSize)(euiThemeContext, halfPaddingKey);
|
|
65
74
|
return {
|
|
66
75
|
card: {
|
|
67
|
-
euiCard: /*#__PURE__*/(0, _react.css)("display:flex;&:has([class*='euiCard__text'][class*='-interactive']:focus:focus-visible){outline:", euiTheme.focus.width, " solid currentColor;};label:euiCard;"),
|
|
76
|
+
euiCard: /*#__PURE__*/(0, _react.css)("display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;&:has([class*='euiCard__text'][class*='-interactive']:focus:focus-visible){outline:", euiTheme.focus.width, " solid currentColor;};label:euiCard;"),
|
|
68
77
|
aligned: {
|
|
69
78
|
center: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('center'), ";align-items:center;;label:center;"),
|
|
70
79
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";align-items:flex-start;;label:left;"),
|
|
71
80
|
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";align-items:flex-end;;label:right;")
|
|
72
81
|
},
|
|
82
|
+
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;background-color:", (0, _mixins.euiButtonColor)(euiThemeContext, 'disabled'), ";color:", euiTheme.colors.disabledText, ";;label:disabled;")
|
|
83
|
+
},
|
|
84
|
+
main: {
|
|
85
|
+
euiCard__main: _ref6,
|
|
73
86
|
layout: {
|
|
74
87
|
vertical: _ref5,
|
|
75
88
|
horizontal: _ref4
|
|
76
|
-
}
|
|
77
|
-
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;background-color:", (0, _mixins.euiButtonColor)(euiThemeContext, 'disabled'), ";color:", euiTheme.colors.disabledText, ";;label:disabled;")
|
|
89
|
+
}
|
|
78
90
|
},
|
|
79
91
|
content: {
|
|
80
92
|
euiCard__content: _ref3,
|