@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.
Files changed (148) hide show
  1. package/dist/eui_charts_theme.js +9 -8
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +11 -41
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +11 -41
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/accordion/accordion.js +34 -9
  8. package/es/components/accordion/accordion.styles.js +29 -9
  9. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
  10. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
  11. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
  12. package/es/components/datagrid/controls/keyboard_shortcuts.js +1 -0
  13. package/es/components/description_list/description_list.js +40 -3
  14. package/es/components/flyout/flyout.styles.js +1 -1
  15. package/es/components/header/header.js +120 -25
  16. package/es/components/header/header.styles.js +1 -1
  17. package/es/components/index.js +1 -0
  18. package/es/components/markdown_editor/markdown_format.styles.js +3 -6
  19. package/es/components/overlay_mask/overlay_mask.styles.js +1 -1
  20. package/es/components/page/page_sidebar/page_sidebar.js +2 -4
  21. package/es/components/page_template/page_template.js +4 -31
  22. package/es/components/text/text.styles.js +3 -6
  23. package/es/components/text_truncate/index.js +10 -0
  24. package/es/components/text_truncate/text_truncate.js +232 -0
  25. package/es/components/text_truncate/text_truncate.styles.js +49 -0
  26. package/es/components/text_truncate/utils.js +348 -0
  27. package/es/global_styling/functions/typography.js +8 -8
  28. package/es/global_styling/variables/typography.js +1 -1
  29. package/es/services/theme/context.js +3 -1
  30. package/es/services/theme/hooks.js +19 -1
  31. package/es/services/theme/index.js +1 -1
  32. package/es/services/theme/provider.js +37 -8
  33. package/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  34. package/eui.d.ts +282 -24
  35. package/i18ntokens.json +112 -112
  36. package/lib/components/accordion/accordion.js +33 -8
  37. package/lib/components/accordion/accordion.styles.js +31 -10
  38. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
  39. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
  40. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
  41. package/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -0
  42. package/lib/components/description_list/description_list.js +39 -3
  43. package/lib/components/flyout/flyout.styles.js +1 -1
  44. package/lib/components/header/header.js +120 -23
  45. package/lib/components/header/header.styles.js +1 -1
  46. package/lib/components/index.js +11 -0
  47. package/lib/components/markdown_editor/markdown_format.styles.js +3 -6
  48. package/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
  49. package/lib/components/page/page_sidebar/page_sidebar.js +2 -4
  50. package/lib/components/page_template/page_template.js +2 -29
  51. package/lib/components/text/text.styles.js +3 -6
  52. package/lib/components/text_truncate/index.js +25 -0
  53. package/lib/components/text_truncate/text_truncate.js +242 -0
  54. package/lib/components/text_truncate/text_truncate.styles.js +54 -0
  55. package/lib/components/text_truncate/utils.js +352 -0
  56. package/lib/global_styling/functions/typography.js +8 -8
  57. package/lib/global_styling/variables/typography.js +3 -3
  58. package/lib/services/theme/context.js +3 -1
  59. package/lib/services/theme/hooks.js +21 -2
  60. package/lib/services/theme/index.js +6 -0
  61. package/lib/services/theme/provider.js +62 -35
  62. package/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  63. package/optimize/es/components/accordion/accordion.js +19 -7
  64. package/optimize/es/components/accordion/accordion.styles.js +29 -9
  65. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +5 -26
  66. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
  67. package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +1 -0
  68. package/optimize/es/components/description_list/description_list.js +22 -2
  69. package/optimize/es/components/flyout/flyout.styles.js +1 -1
  70. package/optimize/es/components/header/header.js +75 -25
  71. package/optimize/es/components/header/header.styles.js +1 -1
  72. package/optimize/es/components/index.js +1 -0
  73. package/optimize/es/components/markdown_editor/markdown_format.styles.js +3 -6
  74. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -1
  75. package/optimize/es/components/page/page_sidebar/page_sidebar.js +2 -4
  76. package/optimize/es/components/page_template/page_template.js +4 -26
  77. package/optimize/es/components/text/text.styles.js +3 -6
  78. package/optimize/es/components/text_truncate/index.js +10 -0
  79. package/optimize/es/components/text_truncate/text_truncate.js +148 -0
  80. package/optimize/es/components/text_truncate/text_truncate.styles.js +49 -0
  81. package/optimize/es/components/text_truncate/utils.js +337 -0
  82. package/optimize/es/global_styling/functions/typography.js +8 -8
  83. package/optimize/es/global_styling/variables/typography.js +1 -1
  84. package/optimize/es/services/theme/context.js +3 -1
  85. package/optimize/es/services/theme/hooks.js +19 -1
  86. package/optimize/es/services/theme/index.js +1 -1
  87. package/optimize/es/services/theme/provider.js +37 -8
  88. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  89. package/optimize/lib/components/accordion/accordion.js +18 -6
  90. package/optimize/lib/components/accordion/accordion.styles.js +31 -10
  91. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +5 -26
  92. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
  93. package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -0
  94. package/optimize/lib/components/description_list/description_list.js +22 -2
  95. package/optimize/lib/components/flyout/flyout.styles.js +1 -1
  96. package/optimize/lib/components/header/header.js +77 -24
  97. package/optimize/lib/components/header/header.styles.js +1 -1
  98. package/optimize/lib/components/index.js +11 -0
  99. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +3 -6
  100. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -1
  101. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +2 -4
  102. package/optimize/lib/components/page_template/page_template.js +2 -24
  103. package/optimize/lib/components/text/text.styles.js +3 -6
  104. package/optimize/lib/components/text_truncate/index.js +25 -0
  105. package/optimize/lib/components/text_truncate/text_truncate.js +158 -0
  106. package/optimize/lib/components/text_truncate/text_truncate.styles.js +54 -0
  107. package/optimize/lib/components/text_truncate/utils.js +342 -0
  108. package/optimize/lib/global_styling/functions/typography.js +8 -8
  109. package/optimize/lib/global_styling/variables/typography.js +3 -3
  110. package/optimize/lib/services/theme/context.js +3 -1
  111. package/optimize/lib/services/theme/hooks.js +21 -2
  112. package/optimize/lib/services/theme/index.js +6 -0
  113. package/optimize/lib/services/theme/provider.js +62 -35
  114. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  115. package/package.json +1 -1
  116. package/src/components/datagrid/_data_grid.scss +13 -2
  117. package/src/components/datagrid/controls/_data_grid_keyboard_shortcuts.scss +1 -7
  118. package/src/components/index.scss +0 -1
  119. package/src/global_styling/mixins/_header.scss +2 -0
  120. package/test-env/components/accordion/accordion.js +28 -8
  121. package/test-env/components/accordion/accordion.styles.js +31 -10
  122. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +10 -2
  123. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +10 -26
  124. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +10 -1
  125. package/test-env/components/datagrid/controls/keyboard_shortcuts.js +1 -0
  126. package/test-env/components/description_list/description_list.js +37 -3
  127. package/test-env/components/flyout/flyout.styles.js +1 -1
  128. package/test-env/components/header/header.js +113 -23
  129. package/test-env/components/header/header.styles.js +1 -1
  130. package/test-env/components/index.js +11 -0
  131. package/test-env/components/markdown_editor/markdown_format.styles.js +3 -6
  132. package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -1
  133. package/test-env/components/page/page_sidebar/page_sidebar.js +2 -4
  134. package/test-env/components/page_template/page_template.js +2 -24
  135. package/test-env/components/text/text.styles.js +3 -6
  136. package/test-env/components/text_truncate/index.js +25 -0
  137. package/test-env/components/text_truncate/text_truncate.js +236 -0
  138. package/test-env/components/text_truncate/text_truncate.styles.js +54 -0
  139. package/test-env/components/text_truncate/utils.js +342 -0
  140. package/test-env/global_styling/functions/typography.js +8 -8
  141. package/test-env/global_styling/variables/typography.js +3 -3
  142. package/test-env/services/theme/context.js +3 -1
  143. package/test-env/services/theme/hooks.js +21 -2
  144. package/test-env/services/theme/index.js +6 -0
  145. package/test-env/services/theme/provider.js +62 -35
  146. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  147. package/src/components/accordion/_accordion_form.scss +0 -40
  148. 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": 408,
8
+ "line": 439,
9
9
  "column": 16,
10
- "index": 12163
10
+ "index": 13187
11
11
  },
12
12
  "end": {
13
- "line": 408,
13
+ "line": 439,
14
14
  "column": 76,
15
- "index": 12223
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": 170,
440
+ "line": 152,
441
441
  "column": 27,
442
- "index": 5493
442
+ "index": 5056
443
443
  },
444
444
  "end": {
445
- "line": 173,
445
+ "line": 155,
446
446
  "column": 3,
447
- "index": 5563
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": 60,
1916
+ "line": 61,
1917
1917
  "column": 20,
1918
- "index": 2080
1918
+ "index": 2114
1919
1919
  },
1920
1920
  "end": {
1921
- "line": 63,
1921
+ "line": 64,
1922
1922
  "column": 22,
1923
- "index": 2216
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": 67,
1934
+ "line": 68,
1935
1935
  "column": 18,
1936
- "index": 2310
1936
+ "index": 2344
1937
1937
  },
1938
1938
  "end": {
1939
- "line": 70,
1939
+ "line": 71,
1940
1940
  "column": 20,
1941
- "index": 2454
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": 76,
1952
+ "line": 77,
1953
1953
  "column": 20,
1954
- "index": 2576
1954
+ "index": 2610
1955
1955
  },
1956
1956
  "end": {
1957
- "line": 79,
1957
+ "line": 80,
1958
1958
  "column": 22,
1959
- "index": 2716
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": 83,
1970
+ "line": 84,
1971
1971
  "column": 18,
1972
- "index": 2810
1972
+ "index": 2844
1973
1973
  },
1974
1974
  "end": {
1975
- "line": 86,
1975
+ "line": 87,
1976
1976
  "column": 20,
1977
- "index": 2958
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": 92,
1988
+ "line": 93,
1989
1989
  "column": 20,
1990
- "index": 3080
1990
+ "index": 3114
1991
1991
  },
1992
1992
  "end": {
1993
- "line": 95,
1993
+ "line": 96,
1994
1994
  "column": 22,
1995
- "index": 3222
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": 99,
2006
+ "line": 100,
2007
2007
  "column": 18,
2008
- "index": 3316
2008
+ "index": 3350
2009
2009
  },
2010
2010
  "end": {
2011
- "line": 102,
2011
+ "line": 103,
2012
2012
  "column": 20,
2013
- "index": 3466
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": 108,
2024
+ "line": 109,
2025
2025
  "column": 20,
2026
- "index": 3588
2026
+ "index": 3622
2027
2027
  },
2028
2028
  "end": {
2029
- "line": 111,
2029
+ "line": 112,
2030
2030
  "column": 22,
2031
- "index": 3728
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": 115,
2042
+ "line": 116,
2043
2043
  "column": 18,
2044
- "index": 3822
2044
+ "index": 3856
2045
2045
  },
2046
2046
  "end": {
2047
- "line": 118,
2047
+ "line": 119,
2048
2048
  "column": 20,
2049
- "index": 3970
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": 124,
2060
+ "line": 125,
2061
2061
  "column": 20,
2062
- "index": 4092
2062
+ "index": 4126
2063
2063
  },
2064
2064
  "end": {
2065
- "line": 127,
2065
+ "line": 128,
2066
2066
  "column": 22,
2067
- "index": 4221
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": 131,
2078
+ "line": 132,
2079
2079
  "column": 18,
2080
- "index": 4315
2080
+ "index": 4349
2081
2081
  },
2082
2082
  "end": {
2083
- "line": 134,
2083
+ "line": 135,
2084
2084
  "column": 20,
2085
- "index": 4481
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": 140,
2096
+ "line": 141,
2097
2097
  "column": 20,
2098
- "index": 4603
2098
+ "index": 4637
2099
2099
  },
2100
2100
  "end": {
2101
- "line": 143,
2101
+ "line": 144,
2102
2102
  "column": 22,
2103
- "index": 4730
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": 147,
2114
+ "line": 148,
2115
2115
  "column": 18,
2116
- "index": 4824
2116
+ "index": 4858
2117
2117
  },
2118
2118
  "end": {
2119
- "line": 150,
2119
+ "line": 151,
2120
2120
  "column": 20,
2121
- "index": 4988
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": 157,
2132
+ "line": 158,
2133
2133
  "column": 22,
2134
- "index": 5135
2134
+ "index": 5169
2135
2135
  },
2136
2136
  "end": {
2137
- "line": 160,
2137
+ "line": 161,
2138
2138
  "column": 24,
2139
- "index": 5265
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": 163,
2150
+ "line": 164,
2151
2151
  "column": 22,
2152
- "index": 5346
2152
+ "index": 5380
2153
2153
  },
2154
2154
  "end": {
2155
- "line": 166,
2155
+ "line": 167,
2156
2156
  "column": 24,
2157
- "index": 5481
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": 171,
2168
+ "line": 172,
2169
2169
  "column": 18,
2170
- "index": 5599
2170
+ "index": 5633
2171
2171
  },
2172
2172
  "end": {
2173
- "line": 174,
2173
+ "line": 175,
2174
2174
  "column": 20,
2175
- "index": 5770
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": 181,
2186
+ "line": 182,
2187
2187
  "column": 22,
2188
- "index": 5917
2188
+ "index": 5951
2189
2189
  },
2190
2190
  "end": {
2191
- "line": 184,
2191
+ "line": 185,
2192
2192
  "column": 24,
2193
- "index": 6047
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": 187,
2204
+ "line": 188,
2205
2205
  "column": 22,
2206
- "index": 6128
2206
+ "index": 6162
2207
2207
  },
2208
2208
  "end": {
2209
- "line": 190,
2209
+ "line": 191,
2210
2210
  "column": 24,
2211
- "index": 6261
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": 195,
2222
+ "line": 196,
2223
2223
  "column": 18,
2224
- "index": 6379
2224
+ "index": 6413
2225
2225
  },
2226
2226
  "end": {
2227
- "line": 198,
2227
+ "line": 199,
2228
2228
  "column": 20,
2229
- "index": 6548
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": 204,
2240
+ "line": 205,
2241
2241
  "column": 20,
2242
- "index": 6670
2242
+ "index": 6704
2243
2243
  },
2244
2244
  "end": {
2245
- "line": 207,
2245
+ "line": 208,
2246
2246
  "column": 22,
2247
- "index": 6804
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": 211,
2258
+ "line": 212,
2259
2259
  "column": 18,
2260
- "index": 6898
2260
+ "index": 6932
2261
2261
  },
2262
2262
  "end": {
2263
- "line": 214,
2263
+ "line": 215,
2264
2264
  "column": 20,
2265
- "index": 7064
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": 220,
2276
+ "line": 221,
2277
2277
  "column": 20,
2278
- "index": 7186
2278
+ "index": 7220
2279
2279
  },
2280
2280
  "end": {
2281
- "line": 223,
2281
+ "line": 224,
2282
2282
  "column": 22,
2283
- "index": 7324
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": 227,
2294
+ "line": 228,
2295
2295
  "column": 18,
2296
- "index": 7418
2296
+ "index": 7452
2297
2297
  },
2298
2298
  "end": {
2299
- "line": 230,
2299
+ "line": 231,
2300
2300
  "column": 20,
2301
- "index": 7583
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": 236,
2312
+ "line": 237,
2313
2313
  "column": 20,
2314
- "index": 7705
2314
+ "index": 7739
2315
2315
  },
2316
2316
  "end": {
2317
- "line": 239,
2317
+ "line": 240,
2318
2318
  "column": 22,
2319
- "index": 7836
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": 243,
2330
+ "line": 244,
2331
2331
  "column": 18,
2332
- "index": 7930
2332
+ "index": 7964
2333
2333
  },
2334
2334
  "end": {
2335
- "line": 246,
2335
+ "line": 247,
2336
2336
  "column": 20,
2337
- "index": 8085
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": 252,
2348
+ "line": 253,
2349
2349
  "column": 20,
2350
- "index": 8207
2350
+ "index": 8241
2351
2351
  },
2352
2352
  "end": {
2353
- "line": 255,
2353
+ "line": 256,
2354
2354
  "column": 22,
2355
- "index": 8340
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": 259,
2366
+ "line": 260,
2367
2367
  "column": 18,
2368
- "index": 8434
2368
+ "index": 8468
2369
2369
  },
2370
2370
  "end": {
2371
- "line": 262,
2371
+ "line": 263,
2372
2372
  "column": 20,
2373
- "index": 8591
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
- buttonProps = _this$props3.buttonProps,
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, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className);
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, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.css];
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 === null || buttonProps === void 0 ? void 0 : buttonProps.id) !== null && _buttonProps$id !== void 0 ? _buttonProps$id : this.generatedId;
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
  */