@elastic/eui 88.0.0 → 88.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_charts_theme.js +9 -8
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +11 -41
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +11 -41
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.js +34 -9
- package/es/components/accordion/accordion.styles.js +29 -9
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
- package/es/components/datagrid/controls/keyboard_shortcuts.js +1 -0
- package/es/components/description_list/description_list.js +40 -3
- package/es/components/flyout/flyout.styles.js +1 -1
- package/es/components/header/header.js +120 -25
- package/es/components/header/header.styles.js +1 -1
- package/es/components/index.js +1 -0
- package/es/components/markdown_editor/markdown_format.styles.js +3 -6
- package/es/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/es/components/page/page_sidebar/page_sidebar.js +2 -4
- package/es/components/page_template/page_template.js +4 -31
- package/es/components/text/text.styles.js +3 -6
- package/es/components/text_truncate/index.js +10 -0
- package/es/components/text_truncate/text_truncate.js +232 -0
- package/es/components/text_truncate/text_truncate.styles.js +49 -0
- package/es/components/text_truncate/utils.js +348 -0
- package/es/global_styling/functions/typography.js +8 -8
- package/es/global_styling/variables/typography.js +1 -1
- package/es/services/theme/context.js +3 -1
- package/es/services/theme/hooks.js +19 -1
- package/es/services/theme/index.js +1 -1
- package/es/services/theme/provider.js +37 -8
- package/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
- package/eui.d.ts +282 -24
- package/i18ntokens.json +112 -112
- package/lib/components/accordion/accordion.js +33 -8
- package/lib/components/accordion/accordion.styles.js +31 -10
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -0
- package/lib/components/description_list/description_list.js +39 -3
- package/lib/components/flyout/flyout.styles.js +1 -1
- package/lib/components/header/header.js +120 -23
- package/lib/components/header/header.styles.js +1 -1
- package/lib/components/index.js +11 -0
- package/lib/components/markdown_editor/markdown_format.styles.js +3 -6
- package/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +2 -4
- package/lib/components/page_template/page_template.js +2 -29
- package/lib/components/text/text.styles.js +3 -6
- package/lib/components/text_truncate/index.js +25 -0
- package/lib/components/text_truncate/text_truncate.js +242 -0
- package/lib/components/text_truncate/text_truncate.styles.js +54 -0
- package/lib/components/text_truncate/utils.js +352 -0
- package/lib/global_styling/functions/typography.js +8 -8
- package/lib/global_styling/variables/typography.js +3 -3
- package/lib/services/theme/context.js +3 -1
- package/lib/services/theme/hooks.js +21 -2
- package/lib/services/theme/index.js +6 -0
- package/lib/services/theme/provider.js +62 -35
- package/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
- package/optimize/es/components/accordion/accordion.js +19 -7
- package/optimize/es/components/accordion/accordion.styles.js +29 -9
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +5 -26
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +1 -0
- package/optimize/es/components/description_list/description_list.js +22 -2
- package/optimize/es/components/flyout/flyout.styles.js +1 -1
- package/optimize/es/components/header/header.js +75 -25
- package/optimize/es/components/header/header.styles.js +1 -1
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +3 -6
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +2 -4
- package/optimize/es/components/page_template/page_template.js +4 -26
- package/optimize/es/components/text/text.styles.js +3 -6
- package/optimize/es/components/text_truncate/index.js +10 -0
- package/optimize/es/components/text_truncate/text_truncate.js +148 -0
- package/optimize/es/components/text_truncate/text_truncate.styles.js +49 -0
- package/optimize/es/components/text_truncate/utils.js +337 -0
- package/optimize/es/global_styling/functions/typography.js +8 -8
- package/optimize/es/global_styling/variables/typography.js +1 -1
- package/optimize/es/services/theme/context.js +3 -1
- package/optimize/es/services/theme/hooks.js +19 -1
- package/optimize/es/services/theme/index.js +1 -1
- package/optimize/es/services/theme/provider.js +37 -8
- package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
- package/optimize/lib/components/accordion/accordion.js +18 -6
- package/optimize/lib/components/accordion/accordion.styles.js +31 -10
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +5 -26
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -0
- package/optimize/lib/components/description_list/description_list.js +22 -2
- package/optimize/lib/components/flyout/flyout.styles.js +1 -1
- package/optimize/lib/components/header/header.js +77 -24
- package/optimize/lib/components/header/header.styles.js +1 -1
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +3 -6
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +2 -4
- package/optimize/lib/components/page_template/page_template.js +2 -24
- package/optimize/lib/components/text/text.styles.js +3 -6
- package/optimize/lib/components/text_truncate/index.js +25 -0
- package/optimize/lib/components/text_truncate/text_truncate.js +158 -0
- package/optimize/lib/components/text_truncate/text_truncate.styles.js +54 -0
- package/optimize/lib/components/text_truncate/utils.js +342 -0
- package/optimize/lib/global_styling/functions/typography.js +8 -8
- package/optimize/lib/global_styling/variables/typography.js +3 -3
- package/optimize/lib/services/theme/context.js +3 -1
- package/optimize/lib/services/theme/hooks.js +21 -2
- package/optimize/lib/services/theme/index.js +6 -0
- package/optimize/lib/services/theme/provider.js +62 -35
- package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
- package/package.json +1 -1
- package/src/components/datagrid/_data_grid.scss +13 -2
- package/src/components/datagrid/controls/_data_grid_keyboard_shortcuts.scss +1 -7
- package/src/components/index.scss +0 -1
- package/src/global_styling/mixins/_header.scss +2 -0
- package/test-env/components/accordion/accordion.js +28 -8
- package/test-env/components/accordion/accordion.styles.js +31 -10
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +1 -0
- package/test-env/components/description_list/description_list.js +37 -3
- package/test-env/components/flyout/flyout.styles.js +1 -1
- package/test-env/components/header/header.js +113 -23
- package/test-env/components/header/header.styles.js +1 -1
- package/test-env/components/index.js +11 -0
- package/test-env/components/markdown_editor/markdown_format.styles.js +3 -6
- package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +2 -4
- package/test-env/components/page_template/page_template.js +2 -24
- package/test-env/components/text/text.styles.js +3 -6
- package/test-env/components/text_truncate/index.js +25 -0
- package/test-env/components/text_truncate/text_truncate.js +236 -0
- package/test-env/components/text_truncate/text_truncate.styles.js +54 -0
- package/test-env/components/text_truncate/utils.js +342 -0
- package/test-env/global_styling/functions/typography.js +8 -8
- package/test-env/global_styling/variables/typography.js +3 -3
- package/test-env/services/theme/context.js +3 -1
- package/test-env/services/theme/hooks.js +21 -2
- package/test-env/services/theme/index.js +6 -0
- package/test-env/services/theme/provider.js +62 -35
- package/test-env/themes/amsterdam/global_styling/variables/_typography.js +1 -0
- package/src/components/accordion/_accordion_form.scss +0 -40
- package/src/components/accordion/_index.scss +0 -1
package/i18ntokens.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"highlighting": "string",
|
|
6
6
|
"loc": {
|
|
7
7
|
"start": {
|
|
8
|
-
"line":
|
|
8
|
+
"line": 439,
|
|
9
9
|
"column": 16,
|
|
10
|
-
"index":
|
|
10
|
+
"index": 13187
|
|
11
11
|
},
|
|
12
12
|
"end": {
|
|
13
|
-
"line":
|
|
13
|
+
"line": 439,
|
|
14
14
|
"column": 76,
|
|
15
|
-
"index":
|
|
15
|
+
"index": 13247
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"filepath": "src/components/accordion/accordion.tsx"
|
|
@@ -437,14 +437,14 @@
|
|
|
437
437
|
"highlighting": "string",
|
|
438
438
|
"loc": {
|
|
439
439
|
"start": {
|
|
440
|
-
"line":
|
|
440
|
+
"line": 152,
|
|
441
441
|
"column": 27,
|
|
442
|
-
"index":
|
|
442
|
+
"index": 5056
|
|
443
443
|
},
|
|
444
444
|
"end": {
|
|
445
|
-
"line":
|
|
445
|
+
"line": 155,
|
|
446
446
|
"column": 3,
|
|
447
|
-
"index":
|
|
447
|
+
"index": 5126
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
"filepath": "src/components/collapsible_nav_beta/collapsible_nav_beta.tsx"
|
|
@@ -1913,14 +1913,14 @@
|
|
|
1913
1913
|
"highlighting": "string",
|
|
1914
1914
|
"loc": {
|
|
1915
1915
|
"start": {
|
|
1916
|
-
"line":
|
|
1916
|
+
"line": 61,
|
|
1917
1917
|
"column": 20,
|
|
1918
|
-
"index":
|
|
1918
|
+
"index": 2114
|
|
1919
1919
|
},
|
|
1920
1920
|
"end": {
|
|
1921
|
-
"line":
|
|
1921
|
+
"line": 64,
|
|
1922
1922
|
"column": 22,
|
|
1923
|
-
"index":
|
|
1923
|
+
"index": 2250
|
|
1924
1924
|
}
|
|
1925
1925
|
},
|
|
1926
1926
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -1931,14 +1931,14 @@
|
|
|
1931
1931
|
"highlighting": "string",
|
|
1932
1932
|
"loc": {
|
|
1933
1933
|
"start": {
|
|
1934
|
-
"line":
|
|
1934
|
+
"line": 68,
|
|
1935
1935
|
"column": 18,
|
|
1936
|
-
"index":
|
|
1936
|
+
"index": 2344
|
|
1937
1937
|
},
|
|
1938
1938
|
"end": {
|
|
1939
|
-
"line":
|
|
1939
|
+
"line": 71,
|
|
1940
1940
|
"column": 20,
|
|
1941
|
-
"index":
|
|
1941
|
+
"index": 2488
|
|
1942
1942
|
}
|
|
1943
1943
|
},
|
|
1944
1944
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -1949,14 +1949,14 @@
|
|
|
1949
1949
|
"highlighting": "string",
|
|
1950
1950
|
"loc": {
|
|
1951
1951
|
"start": {
|
|
1952
|
-
"line":
|
|
1952
|
+
"line": 77,
|
|
1953
1953
|
"column": 20,
|
|
1954
|
-
"index":
|
|
1954
|
+
"index": 2610
|
|
1955
1955
|
},
|
|
1956
1956
|
"end": {
|
|
1957
|
-
"line":
|
|
1957
|
+
"line": 80,
|
|
1958
1958
|
"column": 22,
|
|
1959
|
-
"index":
|
|
1959
|
+
"index": 2750
|
|
1960
1960
|
}
|
|
1961
1961
|
},
|
|
1962
1962
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -1967,14 +1967,14 @@
|
|
|
1967
1967
|
"highlighting": "string",
|
|
1968
1968
|
"loc": {
|
|
1969
1969
|
"start": {
|
|
1970
|
-
"line":
|
|
1970
|
+
"line": 84,
|
|
1971
1971
|
"column": 18,
|
|
1972
|
-
"index":
|
|
1972
|
+
"index": 2844
|
|
1973
1973
|
},
|
|
1974
1974
|
"end": {
|
|
1975
|
-
"line":
|
|
1975
|
+
"line": 87,
|
|
1976
1976
|
"column": 20,
|
|
1977
|
-
"index":
|
|
1977
|
+
"index": 2992
|
|
1978
1978
|
}
|
|
1979
1979
|
},
|
|
1980
1980
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -1985,14 +1985,14 @@
|
|
|
1985
1985
|
"highlighting": "string",
|
|
1986
1986
|
"loc": {
|
|
1987
1987
|
"start": {
|
|
1988
|
-
"line":
|
|
1988
|
+
"line": 93,
|
|
1989
1989
|
"column": 20,
|
|
1990
|
-
"index":
|
|
1990
|
+
"index": 3114
|
|
1991
1991
|
},
|
|
1992
1992
|
"end": {
|
|
1993
|
-
"line":
|
|
1993
|
+
"line": 96,
|
|
1994
1994
|
"column": 22,
|
|
1995
|
-
"index":
|
|
1995
|
+
"index": 3256
|
|
1996
1996
|
}
|
|
1997
1997
|
},
|
|
1998
1998
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2003,14 +2003,14 @@
|
|
|
2003
2003
|
"highlighting": "string",
|
|
2004
2004
|
"loc": {
|
|
2005
2005
|
"start": {
|
|
2006
|
-
"line":
|
|
2006
|
+
"line": 100,
|
|
2007
2007
|
"column": 18,
|
|
2008
|
-
"index":
|
|
2008
|
+
"index": 3350
|
|
2009
2009
|
},
|
|
2010
2010
|
"end": {
|
|
2011
|
-
"line":
|
|
2011
|
+
"line": 103,
|
|
2012
2012
|
"column": 20,
|
|
2013
|
-
"index":
|
|
2013
|
+
"index": 3500
|
|
2014
2014
|
}
|
|
2015
2015
|
},
|
|
2016
2016
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2021,14 +2021,14 @@
|
|
|
2021
2021
|
"highlighting": "string",
|
|
2022
2022
|
"loc": {
|
|
2023
2023
|
"start": {
|
|
2024
|
-
"line":
|
|
2024
|
+
"line": 109,
|
|
2025
2025
|
"column": 20,
|
|
2026
|
-
"index":
|
|
2026
|
+
"index": 3622
|
|
2027
2027
|
},
|
|
2028
2028
|
"end": {
|
|
2029
|
-
"line":
|
|
2029
|
+
"line": 112,
|
|
2030
2030
|
"column": 22,
|
|
2031
|
-
"index":
|
|
2031
|
+
"index": 3762
|
|
2032
2032
|
}
|
|
2033
2033
|
},
|
|
2034
2034
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2039,14 +2039,14 @@
|
|
|
2039
2039
|
"highlighting": "string",
|
|
2040
2040
|
"loc": {
|
|
2041
2041
|
"start": {
|
|
2042
|
-
"line":
|
|
2042
|
+
"line": 116,
|
|
2043
2043
|
"column": 18,
|
|
2044
|
-
"index":
|
|
2044
|
+
"index": 3856
|
|
2045
2045
|
},
|
|
2046
2046
|
"end": {
|
|
2047
|
-
"line":
|
|
2047
|
+
"line": 119,
|
|
2048
2048
|
"column": 20,
|
|
2049
|
-
"index":
|
|
2049
|
+
"index": 4004
|
|
2050
2050
|
}
|
|
2051
2051
|
},
|
|
2052
2052
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2057,14 +2057,14 @@
|
|
|
2057
2057
|
"highlighting": "string",
|
|
2058
2058
|
"loc": {
|
|
2059
2059
|
"start": {
|
|
2060
|
-
"line":
|
|
2060
|
+
"line": 125,
|
|
2061
2061
|
"column": 20,
|
|
2062
|
-
"index":
|
|
2062
|
+
"index": 4126
|
|
2063
2063
|
},
|
|
2064
2064
|
"end": {
|
|
2065
|
-
"line":
|
|
2065
|
+
"line": 128,
|
|
2066
2066
|
"column": 22,
|
|
2067
|
-
"index":
|
|
2067
|
+
"index": 4255
|
|
2068
2068
|
}
|
|
2069
2069
|
},
|
|
2070
2070
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2075,14 +2075,14 @@
|
|
|
2075
2075
|
"highlighting": "string",
|
|
2076
2076
|
"loc": {
|
|
2077
2077
|
"start": {
|
|
2078
|
-
"line":
|
|
2078
|
+
"line": 132,
|
|
2079
2079
|
"column": 18,
|
|
2080
|
-
"index":
|
|
2080
|
+
"index": 4349
|
|
2081
2081
|
},
|
|
2082
2082
|
"end": {
|
|
2083
|
-
"line":
|
|
2083
|
+
"line": 135,
|
|
2084
2084
|
"column": 20,
|
|
2085
|
-
"index":
|
|
2085
|
+
"index": 4515
|
|
2086
2086
|
}
|
|
2087
2087
|
},
|
|
2088
2088
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2093,14 +2093,14 @@
|
|
|
2093
2093
|
"highlighting": "string",
|
|
2094
2094
|
"loc": {
|
|
2095
2095
|
"start": {
|
|
2096
|
-
"line":
|
|
2096
|
+
"line": 141,
|
|
2097
2097
|
"column": 20,
|
|
2098
|
-
"index":
|
|
2098
|
+
"index": 4637
|
|
2099
2099
|
},
|
|
2100
2100
|
"end": {
|
|
2101
|
-
"line":
|
|
2101
|
+
"line": 144,
|
|
2102
2102
|
"column": 22,
|
|
2103
|
-
"index":
|
|
2103
|
+
"index": 4764
|
|
2104
2104
|
}
|
|
2105
2105
|
},
|
|
2106
2106
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2111,14 +2111,14 @@
|
|
|
2111
2111
|
"highlighting": "string",
|
|
2112
2112
|
"loc": {
|
|
2113
2113
|
"start": {
|
|
2114
|
-
"line":
|
|
2114
|
+
"line": 148,
|
|
2115
2115
|
"column": 18,
|
|
2116
|
-
"index":
|
|
2116
|
+
"index": 4858
|
|
2117
2117
|
},
|
|
2118
2118
|
"end": {
|
|
2119
|
-
"line":
|
|
2119
|
+
"line": 151,
|
|
2120
2120
|
"column": 20,
|
|
2121
|
-
"index":
|
|
2121
|
+
"index": 5022
|
|
2122
2122
|
}
|
|
2123
2123
|
},
|
|
2124
2124
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2129,14 +2129,14 @@
|
|
|
2129
2129
|
"highlighting": "string",
|
|
2130
2130
|
"loc": {
|
|
2131
2131
|
"start": {
|
|
2132
|
-
"line":
|
|
2132
|
+
"line": 158,
|
|
2133
2133
|
"column": 22,
|
|
2134
|
-
"index":
|
|
2134
|
+
"index": 5169
|
|
2135
2135
|
},
|
|
2136
2136
|
"end": {
|
|
2137
|
-
"line":
|
|
2137
|
+
"line": 161,
|
|
2138
2138
|
"column": 24,
|
|
2139
|
-
"index":
|
|
2139
|
+
"index": 5299
|
|
2140
2140
|
}
|
|
2141
2141
|
},
|
|
2142
2142
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2147,14 +2147,14 @@
|
|
|
2147
2147
|
"highlighting": "string",
|
|
2148
2148
|
"loc": {
|
|
2149
2149
|
"start": {
|
|
2150
|
-
"line":
|
|
2150
|
+
"line": 164,
|
|
2151
2151
|
"column": 22,
|
|
2152
|
-
"index":
|
|
2152
|
+
"index": 5380
|
|
2153
2153
|
},
|
|
2154
2154
|
"end": {
|
|
2155
|
-
"line":
|
|
2155
|
+
"line": 167,
|
|
2156
2156
|
"column": 24,
|
|
2157
|
-
"index":
|
|
2157
|
+
"index": 5515
|
|
2158
2158
|
}
|
|
2159
2159
|
},
|
|
2160
2160
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2165,14 +2165,14 @@
|
|
|
2165
2165
|
"highlighting": "string",
|
|
2166
2166
|
"loc": {
|
|
2167
2167
|
"start": {
|
|
2168
|
-
"line":
|
|
2168
|
+
"line": 172,
|
|
2169
2169
|
"column": 18,
|
|
2170
|
-
"index":
|
|
2170
|
+
"index": 5633
|
|
2171
2171
|
},
|
|
2172
2172
|
"end": {
|
|
2173
|
-
"line":
|
|
2173
|
+
"line": 175,
|
|
2174
2174
|
"column": 20,
|
|
2175
|
-
"index":
|
|
2175
|
+
"index": 5804
|
|
2176
2176
|
}
|
|
2177
2177
|
},
|
|
2178
2178
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2183,14 +2183,14 @@
|
|
|
2183
2183
|
"highlighting": "string",
|
|
2184
2184
|
"loc": {
|
|
2185
2185
|
"start": {
|
|
2186
|
-
"line":
|
|
2186
|
+
"line": 182,
|
|
2187
2187
|
"column": 22,
|
|
2188
|
-
"index":
|
|
2188
|
+
"index": 5951
|
|
2189
2189
|
},
|
|
2190
2190
|
"end": {
|
|
2191
|
-
"line":
|
|
2191
|
+
"line": 185,
|
|
2192
2192
|
"column": 24,
|
|
2193
|
-
"index":
|
|
2193
|
+
"index": 6081
|
|
2194
2194
|
}
|
|
2195
2195
|
},
|
|
2196
2196
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2201,14 +2201,14 @@
|
|
|
2201
2201
|
"highlighting": "string",
|
|
2202
2202
|
"loc": {
|
|
2203
2203
|
"start": {
|
|
2204
|
-
"line":
|
|
2204
|
+
"line": 188,
|
|
2205
2205
|
"column": 22,
|
|
2206
|
-
"index":
|
|
2206
|
+
"index": 6162
|
|
2207
2207
|
},
|
|
2208
2208
|
"end": {
|
|
2209
|
-
"line":
|
|
2209
|
+
"line": 191,
|
|
2210
2210
|
"column": 24,
|
|
2211
|
-
"index":
|
|
2211
|
+
"index": 6295
|
|
2212
2212
|
}
|
|
2213
2213
|
},
|
|
2214
2214
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2219,14 +2219,14 @@
|
|
|
2219
2219
|
"highlighting": "string",
|
|
2220
2220
|
"loc": {
|
|
2221
2221
|
"start": {
|
|
2222
|
-
"line":
|
|
2222
|
+
"line": 196,
|
|
2223
2223
|
"column": 18,
|
|
2224
|
-
"index":
|
|
2224
|
+
"index": 6413
|
|
2225
2225
|
},
|
|
2226
2226
|
"end": {
|
|
2227
|
-
"line":
|
|
2227
|
+
"line": 199,
|
|
2228
2228
|
"column": 20,
|
|
2229
|
-
"index":
|
|
2229
|
+
"index": 6582
|
|
2230
2230
|
}
|
|
2231
2231
|
},
|
|
2232
2232
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2237,14 +2237,14 @@
|
|
|
2237
2237
|
"highlighting": "string",
|
|
2238
2238
|
"loc": {
|
|
2239
2239
|
"start": {
|
|
2240
|
-
"line":
|
|
2240
|
+
"line": 205,
|
|
2241
2241
|
"column": 20,
|
|
2242
|
-
"index":
|
|
2242
|
+
"index": 6704
|
|
2243
2243
|
},
|
|
2244
2244
|
"end": {
|
|
2245
|
-
"line":
|
|
2245
|
+
"line": 208,
|
|
2246
2246
|
"column": 22,
|
|
2247
|
-
"index":
|
|
2247
|
+
"index": 6838
|
|
2248
2248
|
}
|
|
2249
2249
|
},
|
|
2250
2250
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2255,14 +2255,14 @@
|
|
|
2255
2255
|
"highlighting": "string",
|
|
2256
2256
|
"loc": {
|
|
2257
2257
|
"start": {
|
|
2258
|
-
"line":
|
|
2258
|
+
"line": 212,
|
|
2259
2259
|
"column": 18,
|
|
2260
|
-
"index":
|
|
2260
|
+
"index": 6932
|
|
2261
2261
|
},
|
|
2262
2262
|
"end": {
|
|
2263
|
-
"line":
|
|
2263
|
+
"line": 215,
|
|
2264
2264
|
"column": 20,
|
|
2265
|
-
"index":
|
|
2265
|
+
"index": 7098
|
|
2266
2266
|
}
|
|
2267
2267
|
},
|
|
2268
2268
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2273,14 +2273,14 @@
|
|
|
2273
2273
|
"highlighting": "string",
|
|
2274
2274
|
"loc": {
|
|
2275
2275
|
"start": {
|
|
2276
|
-
"line":
|
|
2276
|
+
"line": 221,
|
|
2277
2277
|
"column": 20,
|
|
2278
|
-
"index":
|
|
2278
|
+
"index": 7220
|
|
2279
2279
|
},
|
|
2280
2280
|
"end": {
|
|
2281
|
-
"line":
|
|
2281
|
+
"line": 224,
|
|
2282
2282
|
"column": 22,
|
|
2283
|
-
"index":
|
|
2283
|
+
"index": 7358
|
|
2284
2284
|
}
|
|
2285
2285
|
},
|
|
2286
2286
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2291,14 +2291,14 @@
|
|
|
2291
2291
|
"highlighting": "string",
|
|
2292
2292
|
"loc": {
|
|
2293
2293
|
"start": {
|
|
2294
|
-
"line":
|
|
2294
|
+
"line": 228,
|
|
2295
2295
|
"column": 18,
|
|
2296
|
-
"index":
|
|
2296
|
+
"index": 7452
|
|
2297
2297
|
},
|
|
2298
2298
|
"end": {
|
|
2299
|
-
"line":
|
|
2299
|
+
"line": 231,
|
|
2300
2300
|
"column": 20,
|
|
2301
|
-
"index":
|
|
2301
|
+
"index": 7617
|
|
2302
2302
|
}
|
|
2303
2303
|
},
|
|
2304
2304
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2309,14 +2309,14 @@
|
|
|
2309
2309
|
"highlighting": "string",
|
|
2310
2310
|
"loc": {
|
|
2311
2311
|
"start": {
|
|
2312
|
-
"line":
|
|
2312
|
+
"line": 237,
|
|
2313
2313
|
"column": 20,
|
|
2314
|
-
"index":
|
|
2314
|
+
"index": 7739
|
|
2315
2315
|
},
|
|
2316
2316
|
"end": {
|
|
2317
|
-
"line":
|
|
2317
|
+
"line": 240,
|
|
2318
2318
|
"column": 22,
|
|
2319
|
-
"index":
|
|
2319
|
+
"index": 7870
|
|
2320
2320
|
}
|
|
2321
2321
|
},
|
|
2322
2322
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2327,14 +2327,14 @@
|
|
|
2327
2327
|
"highlighting": "string",
|
|
2328
2328
|
"loc": {
|
|
2329
2329
|
"start": {
|
|
2330
|
-
"line":
|
|
2330
|
+
"line": 244,
|
|
2331
2331
|
"column": 18,
|
|
2332
|
-
"index":
|
|
2332
|
+
"index": 7964
|
|
2333
2333
|
},
|
|
2334
2334
|
"end": {
|
|
2335
|
-
"line":
|
|
2335
|
+
"line": 247,
|
|
2336
2336
|
"column": 20,
|
|
2337
|
-
"index":
|
|
2337
|
+
"index": 8119
|
|
2338
2338
|
}
|
|
2339
2339
|
},
|
|
2340
2340
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2345,14 +2345,14 @@
|
|
|
2345
2345
|
"highlighting": "string",
|
|
2346
2346
|
"loc": {
|
|
2347
2347
|
"start": {
|
|
2348
|
-
"line":
|
|
2348
|
+
"line": 253,
|
|
2349
2349
|
"column": 20,
|
|
2350
|
-
"index":
|
|
2350
|
+
"index": 8241
|
|
2351
2351
|
},
|
|
2352
2352
|
"end": {
|
|
2353
|
-
"line":
|
|
2353
|
+
"line": 256,
|
|
2354
2354
|
"column": 22,
|
|
2355
|
-
"index":
|
|
2355
|
+
"index": 8374
|
|
2356
2356
|
}
|
|
2357
2357
|
},
|
|
2358
2358
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -2363,14 +2363,14 @@
|
|
|
2363
2363
|
"highlighting": "string",
|
|
2364
2364
|
"loc": {
|
|
2365
2365
|
"start": {
|
|
2366
|
-
"line":
|
|
2366
|
+
"line": 260,
|
|
2367
2367
|
"column": 18,
|
|
2368
|
-
"index":
|
|
2368
|
+
"index": 8468
|
|
2369
2369
|
},
|
|
2370
2370
|
"end": {
|
|
2371
|
-
"line":
|
|
2371
|
+
"line": 263,
|
|
2372
2372
|
"column": 20,
|
|
2373
|
-
"index":
|
|
2373
|
+
"index": 8625
|
|
2374
2374
|
}
|
|
2375
2375
|
},
|
|
2376
2376
|
"filepath": "src/components/datagrid/controls/keyboard_shortcuts.tsx"
|
|
@@ -17,12 +17,19 @@ var _button = require("../button");
|
|
|
17
17
|
var _accordion = require("./accordion.styles");
|
|
18
18
|
var _global_styling = require("../../global_styling");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _excluded = ["children", "buttonContent", "className", "id", "element", "buttonClassName", "buttonContentClassName", "extraAction", "paddingSize", "initialIsOpen", "arrowDisplay", "forceState", "isLoading", "isLoadingMessage", "isDisabled", "buttonProps", "buttonElement", "arrowProps", "theme"]
|
|
20
|
+
var _excluded = ["children", "buttonContent", "className", "id", "element", "buttonClassName", "buttonContentClassName", "extraAction", "paddingSize", "borders", "initialIsOpen", "arrowDisplay", "forceState", "isLoading", "isLoadingMessage", "isDisabled", "buttonProps", "buttonElement", "arrowProps", "theme"],
|
|
21
|
+
_excluded2 = ["paddingSize", "className", "css"];
|
|
21
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
25
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
26
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
28
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
30
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
31
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
32
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
26
33
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
34
|
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; }
|
|
28
35
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -171,18 +178,24 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
171
178
|
buttonContentClassName = _this$props3.buttonContentClassName,
|
|
172
179
|
extraAction = _this$props3.extraAction,
|
|
173
180
|
paddingSize = _this$props3.paddingSize,
|
|
181
|
+
borders = _this$props3.borders,
|
|
174
182
|
initialIsOpen = _this$props3.initialIsOpen,
|
|
175
183
|
arrowDisplay = _this$props3.arrowDisplay,
|
|
176
184
|
forceState = _this$props3.forceState,
|
|
177
185
|
isLoading = _this$props3.isLoading,
|
|
178
186
|
isLoadingMessage = _this$props3.isLoadingMessage,
|
|
179
187
|
isDisabled = _this$props3.isDisabled,
|
|
180
|
-
|
|
188
|
+
_buttonProps = _this$props3.buttonProps,
|
|
181
189
|
_this$props3$buttonEl = _this$props3.buttonElement,
|
|
182
190
|
_ButtonElement = _this$props3$buttonEl === void 0 ? 'button' : _this$props3$buttonEl,
|
|
183
191
|
arrowProps = _this$props3.arrowProps,
|
|
184
192
|
theme = _this$props3.theme,
|
|
185
193
|
rest = _objectWithoutProperties(_this$props3, _excluded);
|
|
194
|
+
var _ref = _buttonProps || {},
|
|
195
|
+
buttonPaddingSize = _ref.paddingSize,
|
|
196
|
+
buttonPropsClassName = _ref.className,
|
|
197
|
+
buttonPropsCss = _ref.css,
|
|
198
|
+
buttonProps = _objectWithoutProperties(_ref, _excluded2);
|
|
186
199
|
|
|
187
200
|
// Force button element to be a legend if the element is a fieldset
|
|
188
201
|
var ButtonElement = Element === 'fieldset' ? 'legend' : _ButtonElement;
|
|
@@ -193,10 +206,12 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
193
206
|
var classes = (0, _classnames.default)('euiAccordion', {
|
|
194
207
|
'euiAccordion-isOpen': this.isOpen
|
|
195
208
|
}, className);
|
|
209
|
+
var styles = (0, _accordion.euiAccordionStyles)(theme);
|
|
210
|
+
var cssStyles = [styles.euiAccordion, borders !== 'none' && styles.borders.borders, borders !== 'none' && styles.borders[borders]];
|
|
196
211
|
var childrenClasses = (0, _classnames.default)('euiAccordion__children', {
|
|
197
212
|
'euiAccordion__children-isLoading': isLoading
|
|
198
213
|
});
|
|
199
|
-
var buttonClasses = (0, _classnames.default)('euiAccordion__button', buttonClassName,
|
|
214
|
+
var buttonClasses = (0, _classnames.default)('euiAccordion__button', buttonClassName, buttonPropsClassName);
|
|
200
215
|
var buttonContentClasses = (0, _classnames.default)('euiAccordion__buttonContent', buttonContentClassName);
|
|
201
216
|
var iconButtonClasses = (0, _classnames.default)('euiAccordion__iconButton', {
|
|
202
217
|
'euiAccordion__iconButton-isOpen': this.isOpen,
|
|
@@ -205,7 +220,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
205
220
|
|
|
206
221
|
// Emotion styles
|
|
207
222
|
var buttonStyles = (0, _accordion.euiAccordionButtonStyles)(theme);
|
|
208
|
-
var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled,
|
|
223
|
+
var cssButtonStyles = [buttonStyles.euiAccordion__button, isDisabled && buttonStyles.disabled].concat(_toConsumableArray(buttonPaddingSize ? [buttonStyles[buttonPaddingSize], arrowDisplay === 'left' && buttonStyles.arrowLeft, arrowDisplay === 'right' && buttonStyles.arrowRight] : []), [buttonPropsCss]);
|
|
209
224
|
var childrenStyles = (0, _accordion.euiAccordionChildrenStyles)(theme);
|
|
210
225
|
var cssChildrenStyles = [childrenStyles.euiAccordion__children, isLoading && childrenStyles.isLoading, paddingSize && paddingSize !== 'none' && childrenStyles[paddingSize]];
|
|
211
226
|
var childWrapperStyles = (0, _accordion.euiAccordionChildWrapperStyles)(theme);
|
|
@@ -219,7 +234,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
219
234
|
var triggerWrapperStyles = (0, _accordion.euiAccordionTriggerWrapperStyles)();
|
|
220
235
|
var cssTriggerWrapperStyles = [triggerWrapperStyles.euiAccordion__triggerWrapper];
|
|
221
236
|
var iconButton;
|
|
222
|
-
var buttonId = (_buttonProps$id = buttonProps
|
|
237
|
+
var buttonId = (_buttonProps$id = buttonProps.id) !== null && _buttonProps$id !== void 0 ? _buttonProps$id : this.generatedId;
|
|
223
238
|
if (_arrowDisplay !== 'none') {
|
|
224
239
|
iconButton = (0, _react2.jsx)(_button.EuiButtonIcon, _extends({
|
|
225
240
|
color: "text"
|
|
@@ -271,7 +286,8 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
271
286
|
className: buttonContentClasses
|
|
272
287
|
}, buttonContent));
|
|
273
288
|
return (0, _react2.jsx)(Element, _extends({
|
|
274
|
-
className: classes
|
|
289
|
+
className: classes,
|
|
290
|
+
css: cssStyles
|
|
275
291
|
}, rest), (0, _react2.jsx)("div", {
|
|
276
292
|
className: "euiAccordion__triggerWrapper",
|
|
277
293
|
css: cssTriggerWrapperStyles
|
|
@@ -303,6 +319,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
303
319
|
exports.EuiAccordionClass = EuiAccordionClass;
|
|
304
320
|
_defineProperty(EuiAccordionClass, "defaultProps", {
|
|
305
321
|
initialIsOpen: false,
|
|
322
|
+
borders: 'none',
|
|
306
323
|
paddingSize: 'none',
|
|
307
324
|
arrowDisplay: 'left',
|
|
308
325
|
isLoading: false,
|
|
@@ -327,13 +344,17 @@ EuiAccordionClass.propTypes = {
|
|
|
327
344
|
*/
|
|
328
345
|
buttonClassName: _propTypes.default.string,
|
|
329
346
|
/**
|
|
330
|
-
* Apply more props to the triggering button
|
|
347
|
+
* Apply more props to the triggering button.
|
|
348
|
+
*
|
|
349
|
+
* Includes optional `paddingSize` prop which allows sizes of `s`, `m`, or `l`.
|
|
350
|
+
* Note: Padding will not be present on the side closest to the accordion arrow.
|
|
331
351
|
*/
|
|
332
352
|
buttonProps: _propTypes.default.shape({
|
|
333
353
|
className: _propTypes.default.string,
|
|
334
354
|
"aria-label": _propTypes.default.string,
|
|
335
355
|
"data-test-subj": _propTypes.default.string,
|
|
336
|
-
css: _propTypes.default.any
|
|
356
|
+
css: _propTypes.default.any,
|
|
357
|
+
paddingSize: _propTypes.default.oneOf(["s", "m", "l"])
|
|
337
358
|
}),
|
|
338
359
|
/**
|
|
339
360
|
* Class that will apply to the trigger content for the accordion.
|
|
@@ -372,6 +393,10 @@ EuiAccordionClass.propTypes = {
|
|
|
372
393
|
* Placement of the arrow indicator, or 'none' to hide it.
|
|
373
394
|
*/
|
|
374
395
|
arrowDisplay: _propTypes.default.oneOf(["left", "right", "none"]),
|
|
396
|
+
/**
|
|
397
|
+
* Optional border styling. Defaults to 'none'.
|
|
398
|
+
*/
|
|
399
|
+
borders: _propTypes.default.oneOf(["horizontal", "all", "none"]),
|
|
375
400
|
/**
|
|
376
401
|
* Control the opening of accordion via prop
|
|
377
402
|
*/
|