@elastic/eui 95.7.0 → 95.8.0-backport.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 (319) hide show
  1. package/dist/eui_theme_dark.css +0 -1163
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -1163
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/combo_box/combo_box_input/combo_box_input.js +2 -1
  6. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +1 -5
  7. package/es/components/datagrid/controls/column_selector.js +1 -2
  8. package/es/components/datagrid/data_grid.a11y.js +2 -2
  9. package/es/components/date_picker/date_picker.js +11 -11
  10. package/es/components/date_picker/date_picker.styles.js +14 -2
  11. package/es/components/date_picker/date_picker_range.js +2 -1
  12. package/es/components/date_picker/date_picker_range.styles.js +17 -2
  13. package/es/components/date_picker/super_date_picker/super_date_picker.js +14 -2
  14. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -4
  15. package/es/components/form/checkbox/checkbox.js +28 -25
  16. package/es/components/form/checkbox/checkbox.styles.js +62 -0
  17. package/es/components/form/described_form_group/described_form_group.js +17 -9
  18. package/es/components/form/described_form_group/described_form_group.styles.js +26 -0
  19. package/es/components/form/field_number/field_number.js +1 -0
  20. package/es/components/form/field_number/field_number.styles.js +2 -1
  21. package/es/components/form/field_password/field_password.js +6 -3
  22. package/es/components/form/field_search/field_search.js +39 -29
  23. package/es/components/form/field_text/field_text.js +1 -0
  24. package/es/components/form/form.js +7 -4
  25. package/es/components/form/form.styles.js +87 -39
  26. package/es/components/form/form_control_layout/_num_icons.js +7 -33
  27. package/es/components/form/form_control_layout/form_control_layout.js +67 -32
  28. package/es/components/form/form_control_layout/form_control_layout.styles.js +72 -0
  29. package/es/components/form/form_control_layout/form_control_layout_clear_button.js +20 -23
  30. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +22 -0
  31. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +30 -5
  32. package/es/components/form/form_control_layout/form_control_layout_delimited.js +37 -7
  33. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +52 -0
  34. package/es/components/form/form_control_layout/form_control_layout_icons.js +33 -13
  35. package/es/components/form/form_control_layout/form_control_layout_icons.styles.js +54 -0
  36. package/es/components/form/form_error_text/form_error_text.js +4 -0
  37. package/es/components/form/form_error_text/form_error_text.styles.js +16 -0
  38. package/es/components/form/form_fieldset/form_legend.js +6 -2
  39. package/es/components/form/form_fieldset/form_legend.styles.js +20 -0
  40. package/es/components/form/form_help_text/form_help_text.js +4 -0
  41. package/es/components/form/form_help_text/form_help_text.styles.js +16 -0
  42. package/es/components/form/form_label/form_label.js +6 -0
  43. package/es/components/form/form_label/form_label.styles.js +38 -0
  44. package/es/components/form/form_row/form_row.js +156 -223
  45. package/es/components/form/form_row/form_row.styles.js +49 -0
  46. package/es/components/form/radio/radio.js +21 -14
  47. package/es/components/form/radio/radio.styles.js +34 -0
  48. package/es/components/form/range/range.styles.js +1 -1
  49. package/es/components/form/range/range_input.styles.js +1 -1
  50. package/es/components/form/range/range_slider.styles.js +1 -4
  51. package/es/components/form/range/range_thumb.styles.js +1 -4
  52. package/es/components/form/switch/switch.js +43 -24
  53. package/es/components/form/switch/switch.styles.js +226 -0
  54. package/es/components/form/text_area/text_area.js +1 -0
  55. package/es/components/form/text_area/text_area.styles.js +1 -1
  56. package/es/components/header/header_links/header_link.js +9 -13
  57. package/es/components/header/header_links/header_links.js +1 -1
  58. package/es/components/header/header_links/header_links.styles.js +1 -1
  59. package/es/services/emotion/clone_element.js +5 -3
  60. package/eui.d.ts +403 -112
  61. package/i18ntokens.json +48 -30
  62. package/lib/components/combo_box/combo_box_input/combo_box_input.js +2 -1
  63. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +1 -5
  64. package/lib/components/datagrid/controls/column_selector.js +1 -2
  65. package/lib/components/datagrid/data_grid.a11y.js +2 -2
  66. package/lib/components/date_picker/date_picker.js +11 -11
  67. package/lib/components/date_picker/date_picker.styles.js +14 -2
  68. package/lib/components/date_picker/date_picker_range.js +2 -1
  69. package/lib/components/date_picker/date_picker_range.styles.js +17 -4
  70. package/lib/components/date_picker/super_date_picker/super_date_picker.js +14 -2
  71. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -4
  72. package/lib/components/form/checkbox/checkbox.js +27 -23
  73. package/lib/components/form/checkbox/checkbox.styles.js +66 -0
  74. package/lib/components/form/described_form_group/described_form_group.js +17 -9
  75. package/lib/components/form/described_form_group/described_form_group.styles.js +32 -0
  76. package/lib/components/form/field_number/field_number.js +1 -0
  77. package/lib/components/form/field_number/field_number.styles.js +2 -1
  78. package/lib/components/form/field_password/field_password.js +6 -3
  79. package/lib/components/form/field_search/field_search.js +39 -29
  80. package/lib/components/form/field_text/field_text.js +1 -0
  81. package/lib/components/form/form.js +6 -3
  82. package/lib/components/form/form.styles.js +88 -40
  83. package/lib/components/form/form_control_layout/_num_icons.js +8 -33
  84. package/lib/components/form/form_control_layout/form_control_layout.js +65 -31
  85. package/lib/components/form/form_control_layout/form_control_layout.styles.js +76 -0
  86. package/lib/components/form/form_control_layout/form_control_layout_clear_button.js +20 -23
  87. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +28 -0
  88. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +34 -11
  89. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +36 -9
  90. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +56 -0
  91. package/lib/components/form/form_control_layout/form_control_layout_icons.js +33 -13
  92. package/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +58 -0
  93. package/lib/components/form/form_error_text/form_error_text.js +4 -0
  94. package/lib/components/form/form_error_text/form_error_text.styles.js +22 -0
  95. package/lib/components/form/form_fieldset/form_legend.js +6 -2
  96. package/lib/components/form/form_fieldset/form_legend.styles.js +26 -0
  97. package/lib/components/form/form_help_text/form_help_text.js +4 -0
  98. package/lib/components/form/form_help_text/form_help_text.styles.js +22 -0
  99. package/lib/components/form/form_label/form_label.js +6 -0
  100. package/lib/components/form/form_label/form_label.styles.js +43 -0
  101. package/lib/components/form/form_row/form_row.js +161 -226
  102. package/lib/components/form/form_row/form_row.styles.js +55 -0
  103. package/lib/components/form/radio/radio.js +21 -14
  104. package/lib/components/form/radio/radio.styles.js +40 -0
  105. package/lib/components/form/range/range.styles.js +1 -1
  106. package/lib/components/form/range/range_input.styles.js +1 -1
  107. package/lib/components/form/range/range_slider.styles.js +1 -4
  108. package/lib/components/form/range/range_thumb.styles.js +1 -4
  109. package/lib/components/form/switch/switch.js +46 -26
  110. package/lib/components/form/switch/switch.styles.js +230 -0
  111. package/lib/components/form/text_area/text_area.js +1 -0
  112. package/lib/components/form/text_area/text_area.styles.js +1 -1
  113. package/lib/components/header/header_links/header_link.js +9 -13
  114. package/lib/components/header/header_links/header_links.js +1 -1
  115. package/lib/components/header/header_links/header_links.styles.js +1 -1
  116. package/lib/services/emotion/clone_element.js +5 -3
  117. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +2 -1
  118. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +1 -5
  119. package/optimize/es/components/datagrid/controls/column_selector.js +1 -2
  120. package/optimize/es/components/datagrid/data_grid.a11y.js +2 -2
  121. package/optimize/es/components/date_picker/date_picker.js +6 -9
  122. package/optimize/es/components/date_picker/date_picker.styles.js +14 -2
  123. package/optimize/es/components/date_picker/date_picker_range.js +2 -1
  124. package/optimize/es/components/date_picker/date_picker_range.styles.js +17 -2
  125. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +13 -2
  126. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -4
  127. package/optimize/es/components/form/checkbox/checkbox.js +28 -25
  128. package/optimize/es/components/form/checkbox/checkbox.styles.js +62 -0
  129. package/optimize/es/components/form/described_form_group/described_form_group.js +17 -9
  130. package/optimize/es/components/form/described_form_group/described_form_group.styles.js +26 -0
  131. package/optimize/es/components/form/field_number/field_number.js +1 -0
  132. package/optimize/es/components/form/field_number/field_number.styles.js +2 -1
  133. package/optimize/es/components/form/field_password/field_password.js +6 -3
  134. package/optimize/es/components/form/field_search/field_search.js +39 -29
  135. package/optimize/es/components/form/field_text/field_text.js +1 -0
  136. package/optimize/es/components/form/form.js +7 -4
  137. package/optimize/es/components/form/form.styles.js +87 -39
  138. package/optimize/es/components/form/form_control_layout/_num_icons.js +7 -33
  139. package/optimize/es/components/form/form_control_layout/form_control_layout.js +44 -29
  140. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +72 -0
  141. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.js +19 -22
  142. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +22 -0
  143. package/optimize/es/components/form/form_control_layout/form_control_layout_custom_icon.js +29 -4
  144. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +34 -7
  145. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +52 -0
  146. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -11
  147. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.styles.js +54 -0
  148. package/optimize/es/components/form/form_error_text/form_error_text.js +4 -0
  149. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +16 -0
  150. package/optimize/es/components/form/form_fieldset/form_legend.js +6 -2
  151. package/optimize/es/components/form/form_fieldset/form_legend.styles.js +20 -0
  152. package/optimize/es/components/form/form_help_text/form_help_text.js +4 -0
  153. package/optimize/es/components/form/form_help_text/form_help_text.styles.js +16 -0
  154. package/optimize/es/components/form/form_label/form_label.js +6 -0
  155. package/optimize/es/components/form/form_label/form_label.styles.js +37 -0
  156. package/optimize/es/components/form/form_row/form_row.js +135 -201
  157. package/optimize/es/components/form/form_row/form_row.styles.js +49 -0
  158. package/optimize/es/components/form/radio/radio.js +21 -14
  159. package/optimize/es/components/form/radio/radio.styles.js +34 -0
  160. package/optimize/es/components/form/range/range.styles.js +1 -1
  161. package/optimize/es/components/form/range/range_input.styles.js +1 -1
  162. package/optimize/es/components/form/range/range_slider.styles.js +1 -4
  163. package/optimize/es/components/form/range/range_thumb.styles.js +1 -4
  164. package/optimize/es/components/form/switch/switch.js +29 -23
  165. package/optimize/es/components/form/switch/switch.styles.js +226 -0
  166. package/optimize/es/components/form/text_area/text_area.js +1 -0
  167. package/optimize/es/components/form/text_area/text_area.styles.js +1 -1
  168. package/optimize/es/components/header/header_links/header_link.js +9 -10
  169. package/optimize/es/components/header/header_links/header_links.js +1 -1
  170. package/optimize/es/components/header/header_links/header_links.styles.js +1 -1
  171. package/optimize/es/services/emotion/clone_element.js +5 -3
  172. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +2 -1
  173. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +1 -5
  174. package/optimize/lib/components/datagrid/controls/column_selector.js +1 -2
  175. package/optimize/lib/components/datagrid/data_grid.a11y.js +2 -2
  176. package/optimize/lib/components/date_picker/date_picker.js +6 -9
  177. package/optimize/lib/components/date_picker/date_picker.styles.js +14 -2
  178. package/optimize/lib/components/date_picker/date_picker_range.js +2 -1
  179. package/optimize/lib/components/date_picker/date_picker_range.styles.js +17 -4
  180. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +13 -2
  181. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -4
  182. package/optimize/lib/components/form/checkbox/checkbox.js +27 -23
  183. package/optimize/lib/components/form/checkbox/checkbox.styles.js +66 -0
  184. package/optimize/lib/components/form/described_form_group/described_form_group.js +17 -9
  185. package/optimize/lib/components/form/described_form_group/described_form_group.styles.js +32 -0
  186. package/optimize/lib/components/form/field_number/field_number.js +1 -0
  187. package/optimize/lib/components/form/field_number/field_number.styles.js +2 -1
  188. package/optimize/lib/components/form/field_password/field_password.js +6 -3
  189. package/optimize/lib/components/form/field_search/field_search.js +39 -29
  190. package/optimize/lib/components/form/field_text/field_text.js +1 -0
  191. package/optimize/lib/components/form/form.js +6 -3
  192. package/optimize/lib/components/form/form.styles.js +88 -40
  193. package/optimize/lib/components/form/form_control_layout/_num_icons.js +8 -33
  194. package/optimize/lib/components/form/form_control_layout/form_control_layout.js +43 -28
  195. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +76 -0
  196. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.js +19 -22
  197. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +28 -0
  198. package/optimize/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +29 -6
  199. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +34 -10
  200. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +56 -0
  201. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +25 -11
  202. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +58 -0
  203. package/optimize/lib/components/form/form_error_text/form_error_text.js +4 -0
  204. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +22 -0
  205. package/optimize/lib/components/form/form_fieldset/form_legend.js +6 -2
  206. package/optimize/lib/components/form/form_fieldset/form_legend.styles.js +26 -0
  207. package/optimize/lib/components/form/form_help_text/form_help_text.js +4 -0
  208. package/optimize/lib/components/form/form_help_text/form_help_text.styles.js +22 -0
  209. package/optimize/lib/components/form/form_label/form_label.js +6 -0
  210. package/optimize/lib/components/form/form_label/form_label.styles.js +43 -0
  211. package/optimize/lib/components/form/form_row/form_row.js +136 -201
  212. package/optimize/lib/components/form/form_row/form_row.styles.js +55 -0
  213. package/optimize/lib/components/form/radio/radio.js +21 -14
  214. package/optimize/lib/components/form/radio/radio.styles.js +40 -0
  215. package/optimize/lib/components/form/range/range.styles.js +1 -1
  216. package/optimize/lib/components/form/range/range_input.styles.js +1 -1
  217. package/optimize/lib/components/form/range/range_slider.styles.js +1 -4
  218. package/optimize/lib/components/form/range/range_thumb.styles.js +1 -4
  219. package/optimize/lib/components/form/switch/switch.js +32 -25
  220. package/optimize/lib/components/form/switch/switch.styles.js +230 -0
  221. package/optimize/lib/components/form/text_area/text_area.js +1 -0
  222. package/optimize/lib/components/form/text_area/text_area.styles.js +1 -1
  223. package/optimize/lib/components/header/header_links/header_link.js +9 -10
  224. package/optimize/lib/components/header/header_links/header_links.js +1 -1
  225. package/optimize/lib/components/header/header_links/header_links.styles.js +1 -1
  226. package/optimize/lib/services/emotion/clone_element.js +5 -3
  227. package/package.json +3 -2
  228. package/src/components/datagrid/controls/_data_grid_toolbar.scss +1 -1
  229. package/src/components/index.scss +0 -1
  230. package/src/global_styling/mixins/_form.scss +0 -99
  231. package/src/global_styling/mixins/_index.scss +0 -1
  232. package/src/global_styling/variables/_form.scss +0 -21
  233. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -1
  234. package/src/themes/amsterdam/overrides/_index.scss +0 -3
  235. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +2 -1
  236. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +1 -5
  237. package/test-env/components/datagrid/controls/column_selector.js +1 -2
  238. package/test-env/components/datagrid/data_grid.a11y.js +2 -2
  239. package/test-env/components/date_picker/date_picker.js +6 -9
  240. package/test-env/components/date_picker/date_picker.styles.js +14 -2
  241. package/test-env/components/date_picker/date_picker_range.js +2 -1
  242. package/test-env/components/date_picker/date_picker_range.styles.js +17 -4
  243. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +13 -2
  244. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -4
  245. package/test-env/components/form/checkbox/checkbox.js +27 -23
  246. package/test-env/components/form/checkbox/checkbox.styles.js +66 -0
  247. package/test-env/components/form/described_form_group/described_form_group.js +17 -9
  248. package/test-env/components/form/described_form_group/described_form_group.styles.js +32 -0
  249. package/test-env/components/form/field_number/field_number.js +1 -0
  250. package/test-env/components/form/field_number/field_number.styles.js +2 -1
  251. package/test-env/components/form/field_password/field_password.js +6 -3
  252. package/test-env/components/form/field_search/field_search.js +39 -29
  253. package/test-env/components/form/field_text/field_text.js +1 -0
  254. package/test-env/components/form/form.js +6 -3
  255. package/test-env/components/form/form.styles.js +88 -40
  256. package/test-env/components/form/form_control_layout/_num_icons.js +8 -33
  257. package/test-env/components/form/form_control_layout/form_control_layout.js +58 -31
  258. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +76 -0
  259. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.js +20 -23
  260. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +28 -0
  261. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +30 -7
  262. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +34 -10
  263. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +56 -0
  264. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +28 -13
  265. package/test-env/components/form/form_control_layout/form_control_layout_icons.styles.js +58 -0
  266. package/test-env/components/form/form_error_text/form_error_text.js +4 -0
  267. package/test-env/components/form/form_error_text/form_error_text.styles.js +22 -0
  268. package/test-env/components/form/form_fieldset/form_legend.js +6 -2
  269. package/test-env/components/form/form_fieldset/form_legend.styles.js +26 -0
  270. package/test-env/components/form/form_help_text/form_help_text.js +4 -0
  271. package/test-env/components/form/form_help_text/form_help_text.styles.js +22 -0
  272. package/test-env/components/form/form_label/form_label.js +6 -0
  273. package/test-env/components/form/form_label/form_label.styles.js +43 -0
  274. package/test-env/components/form/form_row/form_row.js +153 -216
  275. package/test-env/components/form/form_row/form_row.styles.js +55 -0
  276. package/test-env/components/form/radio/radio.js +21 -14
  277. package/test-env/components/form/radio/radio.styles.js +40 -0
  278. package/test-env/components/form/range/range.styles.js +1 -1
  279. package/test-env/components/form/range/range_input.styles.js +1 -1
  280. package/test-env/components/form/range/range_slider.styles.js +1 -4
  281. package/test-env/components/form/range/range_thumb.styles.js +1 -4
  282. package/test-env/components/form/switch/switch.js +41 -26
  283. package/test-env/components/form/switch/switch.styles.js +230 -0
  284. package/test-env/components/form/text_area/text_area.js +1 -0
  285. package/test-env/components/form/text_area/text_area.styles.js +1 -1
  286. package/test-env/components/header/header_links/header_link.js +9 -10
  287. package/test-env/components/header/header_links/header_links.js +1 -1
  288. package/test-env/components/header/header_links/header_links.styles.js +1 -1
  289. package/test-env/services/emotion/clone_element.js +5 -3
  290. package/src/components/form/_form.scss +0 -8
  291. package/src/components/form/_index.scss +0 -11
  292. package/src/components/form/checkbox/_checkbox.scss +0 -115
  293. package/src/components/form/checkbox/_index.scss +0 -1
  294. package/src/components/form/described_form_group/_described_form_group.scss +0 -34
  295. package/src/components/form/described_form_group/_index.scss +0 -1
  296. package/src/components/form/form_control_layout/_form_control_layout.scss +0 -203
  297. package/src/components/form/form_control_layout/_form_control_layout_clear_button.scss +0 -7
  298. package/src/components/form/form_control_layout/_form_control_layout_custom_icon.scss +0 -24
  299. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -67
  300. package/src/components/form/form_control_layout/_form_control_layout_icons.scss +0 -54
  301. package/src/components/form/form_control_layout/_index.scss +0 -5
  302. package/src/components/form/form_error_text/_form_error_text.scss +0 -5
  303. package/src/components/form/form_error_text/_index.scss +0 -1
  304. package/src/components/form/form_fieldset/_form_legend.scss +0 -11
  305. package/src/components/form/form_fieldset/_index.scss +0 -1
  306. package/src/components/form/form_help_text/_form_help_text.scss +0 -5
  307. package/src/components/form/form_help_text/_index.scss +0 -1
  308. package/src/components/form/form_label/_form_label.scss +0 -25
  309. package/src/components/form/form_label/_index.scss +0 -1
  310. package/src/components/form/form_row/_form_row.scss +0 -102
  311. package/src/components/form/form_row/_index.scss +0 -1
  312. package/src/components/form/radio/_index.scss +0 -1
  313. package/src/components/form/radio/_radio.scss +0 -87
  314. package/src/components/form/switch/_index.scss +0 -1
  315. package/src/components/form/switch/_switch.scss +0 -212
  316. package/src/global_styling/mixins/_icons.scss +0 -17
  317. package/src/themes/amsterdam/overrides/_form_control_layout.scss +0 -112
  318. package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +0 -42
  319. package/src/themes/amsterdam/overrides/_form_controls.scss +0 -19
package/eui.d.ts CHANGED
@@ -986,7 +986,7 @@ declare module '@elastic/eui/src/services/emotion/clone_element' {
986
986
  * `css` prop - as a result, we need to use `jsx()` to manually clone the element
987
987
  * See https://github.com/emotion-js/emotion/issues/1404
988
988
  */
989
- export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
989
+ export const cloneElementWithCss: (element: any, props: any, cssOrder?: 'before' | 'after') => React.ReactElement;
990
990
 
991
991
  }
992
992
  declare module '@elastic/eui/src/services/emotion/prefixer' {
@@ -4124,8 +4124,6 @@ declare module '@elastic/eui/src/components/form/form.styles' {
4124
4124
  xl: string;
4125
4125
  xxl: string;
4126
4126
  };
4127
- customControlDisabledIconColor: string;
4128
- customControlBorderColor: string;
4129
4127
  textColor: string;
4130
4128
  backgroundColor: string;
4131
4129
  backgroundDisabledColor: string;
@@ -4134,8 +4132,7 @@ declare module '@elastic/eui/src/components/form/form.styles' {
4134
4132
  controlDisabledColor: string;
4135
4133
  controlBoxShadow: string;
4136
4134
  controlPlaceholderText: string;
4137
- inputGroupLabelBackground: string;
4138
- inputGroupBorder: string;
4135
+ appendPrependBackground: string;
4139
4136
  maxWidth: string;
4140
4137
  controlHeight: string;
4141
4138
  controlCompressedHeight: string;
@@ -4159,17 +4156,62 @@ declare module '@elastic/eui/src/components/form/form.styles' {
4159
4156
  readOnly: string;
4160
4157
  autoFill: string;
4161
4158
  };
4162
- export const euiCustomControl: (euiThemeContext: UseEuiTheme, options?: {
4163
- type?: 'round' | 'square';
4164
- size?: string;
4165
- }) => string;
4166
4159
  export const euiFormControlText: (euiThemeContext: UseEuiTheme) => string;
4167
- export const euiFormControlDefaultShadow: (euiThemeContext: UseEuiTheme) => string;
4160
+ export const euiFormControlDefaultShadow: (euiThemeContext: UseEuiTheme, { withBorder, withBackground, withBackgroundColor, withBackgroundAnimation, }?: {
4161
+ withBorder?: boolean | undefined;
4162
+ withBackground?: boolean | undefined;
4163
+ withBackgroundColor?: boolean | undefined;
4164
+ withBackgroundAnimation?: boolean | undefined;
4165
+ }) => string;
4168
4166
  export const euiFormControlFocusStyles: ({ euiTheme, colorMode, }: UseEuiTheme) => string;
4169
4167
  export const euiFormControlInvalidStyles: ({ euiTheme }: UseEuiTheme) => string;
4170
4168
  export const euiFormControlDisabledStyles: (euiThemeContext: UseEuiTheme) => string;
4171
4169
  export const euiFormControlReadOnlyStyles: (euiThemeContext: UseEuiTheme) => string;
4172
4170
  export const euiFormControlAutoFillStyles: (euiThemeContext: UseEuiTheme) => string;
4171
+ /**
4172
+ * Selection custom controls - checkboxes, radios, and switches
4173
+ */
4174
+ export const euiFormCustomControlVariables: (euiThemeContext: UseEuiTheme) => {
4175
+ sizes: {
4176
+ control: string;
4177
+ lineHeight: string;
4178
+ labelGap: string;
4179
+ };
4180
+ colors: {
4181
+ unselected: string;
4182
+ unselectedBorder: string;
4183
+ selected: string;
4184
+ selectedIcon: string;
4185
+ disabled: string;
4186
+ disabledIcon: string;
4187
+ disabledLabel: string;
4188
+ };
4189
+ animation: {
4190
+ speed: import("csstype").Property.AnimationDuration<string & {}> | undefined;
4191
+ easing: string;
4192
+ };
4193
+ };
4194
+ export const euiFormCustomControlStyles: (euiThemeContext: UseEuiTheme) => {
4195
+ wrapper: string;
4196
+ input: {
4197
+ fauxInput: string;
4198
+ enabled: {
4199
+ selected: string;
4200
+ unselected: string;
4201
+ };
4202
+ disabled: {
4203
+ selected: string;
4204
+ unselected: string;
4205
+ };
4206
+ icon: string;
4207
+ hiddenInput: string;
4208
+ };
4209
+ label: {
4210
+ label: string;
4211
+ enabled: string;
4212
+ disabled: string;
4213
+ };
4214
+ };
4173
4215
 
4174
4216
  }
4175
4217
  declare module '@elastic/eui/src/components/button/button_group/button_group_button.styles' {
@@ -6120,21 +6162,84 @@ declare module '@elastic/eui/src/components/popover' {
6120
6162
  export type { EuiWrappingPopoverProps } from '@elastic/eui/src/components/popover/wrapping_popover';
6121
6163
  export { EuiWrappingPopover } from '@elastic/eui/src/components/popover/wrapping_popover';
6122
6164
 
6165
+ }
6166
+ declare module '@elastic/eui/src/components/form/form_label/form_label.styles' {
6167
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6168
+ export const euiFormLabel: (euiThemeContext: UseEuiTheme) => string;
6169
+ export const euiFormLabelStyles: (euiThemeContext: UseEuiTheme) => {
6170
+ euiFormLabel: import("@emotion/utils").SerializedStyles;
6171
+ notDisabled: string;
6172
+ invalid: import("@emotion/utils").SerializedStyles;
6173
+ focused: import("@emotion/utils").SerializedStyles;
6174
+ };
6175
+
6176
+ }
6177
+ declare module '@elastic/eui/src/components/form/form_label/form_label' {
6178
+ import { FunctionComponent, LabelHTMLAttributes, HTMLAttributes } from 'react';
6179
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
6180
+ interface EuiFormLabelCommonProps {
6181
+ isFocused?: boolean;
6182
+ isInvalid?: boolean;
6183
+ /**
6184
+ * Changes `cursor` to `default`.
6185
+ */
6186
+ isDisabled?: boolean;
6187
+ /**
6188
+ * Default type is a `label` but can be changed to a `legend`
6189
+ * if using inside a `fieldset`.
6190
+ */
6191
+ type?: 'label' | 'legend';
6192
+ }
6193
+ export type _EuiFormLabelProps = {
6194
+ type?: 'label';
6195
+ } & EuiFormLabelCommonProps & CommonProps & LabelHTMLAttributes<HTMLLabelElement>;
6196
+ export type _EuiFormLegendProps = {
6197
+ type: 'legend';
6198
+ } & EuiFormLabelCommonProps & CommonProps & HTMLAttributes<HTMLLegendElement>;
6199
+ export type EuiFormLabelProps = ExclusiveUnion<_EuiFormLabelProps, _EuiFormLegendProps>;
6200
+ export const EuiFormLabel: FunctionComponent<EuiFormLabelProps>;
6201
+ export {};
6202
+
6203
+ }
6204
+ declare module '@elastic/eui/src/components/form/form_label' {
6205
+ export type { EuiFormLabelProps } from '@elastic/eui/src/components/form/form_label/form_label';
6206
+ export { EuiFormLabel } from '@elastic/eui/src/components/form/form_label/form_label';
6207
+
6208
+ }
6209
+ declare module '@elastic/eui/src/components/form/eui_form_context' {
6210
+ import React from 'react';
6211
+ export interface FormContextValue {
6212
+ defaultFullWidth: boolean;
6213
+ }
6214
+ export const FormContext: React.Context<FormContextValue>;
6215
+ export function useFormContext(): FormContextValue;
6216
+
6217
+ }
6218
+ declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button.styles' {
6219
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6220
+ export const EuiFormControlLayoutClearButtonStyles: ({ euiTheme, colorMode, }: UseEuiTheme) => {
6221
+ euiFormControlLayoutClearButton: import("@emotion/utils").SerializedStyles;
6222
+ euiFormControlLayoutClearButton__icon: import("@emotion/utils").SerializedStyles;
6223
+ size: {
6224
+ s: import("@emotion/utils").SerializedStyles;
6225
+ m: import("@emotion/utils").SerializedStyles;
6226
+ };
6227
+ };
6228
+
6123
6229
  }
6124
6230
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button' {
6125
6231
  import { FunctionComponent, ButtonHTMLAttributes } from 'react';
6126
6232
  import { CommonProps } from '@elastic/eui/src/components/common';
6127
- export const SIZES: ("s" | "m")[];
6128
6233
  export type EuiFormControlLayoutClearButtonProps = CommonProps & ButtonHTMLAttributes<HTMLButtonElement> & {
6129
- size?: (typeof SIZES)[number];
6234
+ size?: 's' | 'm';
6130
6235
  };
6131
6236
  export const EuiFormControlLayoutClearButton: FunctionComponent<EuiFormControlLayoutClearButtonProps>;
6132
6237
 
6133
6238
  }
6134
6239
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_custom_icon' {
6135
6240
  import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes } from 'react';
6136
- import { EuiIconProps, IconType } from '@elastic/eui/src/components/icon';
6137
6241
  import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
6242
+ import { EuiIconProps, IconType } from '@elastic/eui/src/components/icon';
6138
6243
  export type EuiFormControlLayoutCustomIconProps = CommonProps & ExclusiveUnion<Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'>, HTMLAttributes<HTMLSpanElement>> & {
6139
6244
  type: IconType;
6140
6245
  size?: EuiIconProps['size'];
@@ -6142,13 +6247,41 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
6142
6247
  };
6143
6248
  export const EuiFormControlLayoutCustomIcon: FunctionComponent<EuiFormControlLayoutCustomIconProps>;
6144
6249
 
6250
+ }
6251
+ declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons.styles' {
6252
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6253
+ export const euiFormControlLayoutIconsStyles: (euiThemeContext: UseEuiTheme) => {
6254
+ euiFormControlLayoutIcons: import("@emotion/utils").SerializedStyles;
6255
+ uncompressed: string;
6256
+ compressed: import("@emotion/utils").SerializedStyles;
6257
+ disabled: import("@emotion/utils").SerializedStyles;
6258
+ position: {
6259
+ absolute: {
6260
+ absolute: import("@emotion/utils").SerializedStyles;
6261
+ uncompressed: {
6262
+ left: import("@emotion/utils").SerializedStyles;
6263
+ right: import("@emotion/utils").SerializedStyles;
6264
+ };
6265
+ compressed: {
6266
+ left: import("@emotion/utils").SerializedStyles;
6267
+ right: import("@emotion/utils").SerializedStyles;
6268
+ };
6269
+ };
6270
+ static: {
6271
+ static: import("@emotion/utils").SerializedStyles;
6272
+ uncompressed: string;
6273
+ compressed: string;
6274
+ };
6275
+ };
6276
+ };
6277
+
6145
6278
  }
6146
6279
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons' {
6147
6280
  import React, { Component } from 'react';
6281
+ import { DistributiveOmit } from '@elastic/eui/src/components/common';
6282
+ import { IconColor, IconType } from '@elastic/eui/src/components/icon';
6148
6283
  import { EuiFormControlLayoutClearButtonProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button';
6149
6284
  import { EuiFormControlLayoutCustomIconProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_custom_icon';
6150
- import { IconColor, IconType } from '@elastic/eui/src/components/icon';
6151
- import { DistributiveOmit } from '@elastic/eui/src/components/common';
6152
6285
  export const ICON_SIDES: readonly ["left", "right"];
6153
6286
  export type IconShape = DistributiveOmit<EuiFormControlLayoutCustomIconProps, 'type' | 'iconRef'> & {
6154
6287
  type: IconType;
@@ -6166,6 +6299,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
6166
6299
  isInvalid?: boolean;
6167
6300
  isDropdown?: boolean;
6168
6301
  compressed?: boolean;
6302
+ isDisabled?: boolean;
6169
6303
  }
6170
6304
  export class EuiFormControlLayoutIcons extends Component<EuiFormControlLayoutIconsProps> {
6171
6305
  render(): React.JSX.Element;
@@ -6179,25 +6313,6 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
6179
6313
  }
6180
6314
  declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
6181
6315
  import { type EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
6182
- /**
6183
- * The `getFormControlClassNameForIconCount` function helps setup the className appendum
6184
- * depending on the form control's current settings/state.
6185
- *
6186
- * @param icon {boolean} Does it contain a static icon like arrowDown
6187
- * @param clear {boolean} Is it currently clearable
6188
- * @param isLoading {boolean} Is is currently loading
6189
- * @param isInvalid {boolean} It is currently invalid
6190
- * @param isDropdown {boolean} It is as dropdown
6191
- * @returns {string | undefined} Returns the string to append to the base className of the form control; or `undefined` if all evaluate to false
6192
- */
6193
- export type _EuiFormControlLayoutNumIcons = {
6194
- icon?: boolean;
6195
- clear?: boolean;
6196
- isLoading?: boolean;
6197
- isInvalid?: boolean;
6198
- isDropdown?: boolean;
6199
- };
6200
- export const getFormControlClassNameForIconCount: ({ icon, clear, isLoading, isInvalid, isDropdown, }: _EuiFormControlLayoutNumIcons) => string | undefined;
6201
6316
  export const isRightSideIcon: (icon?: EuiFormControlLayoutIconsProps['icon']) => boolean;
6202
6317
  export const getIconAffordanceStyles: ({ icon, clear, isLoading, isInvalid, isDropdown, }: {
6203
6318
  icon?: EuiFormControlLayoutIconsProps['icon'];
@@ -6210,51 +6325,39 @@ declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons'
6210
6325
  } | undefined;
6211
6326
 
6212
6327
  }
6213
- declare module '@elastic/eui/src/components/form/form_label/form_label' {
6214
- import { FunctionComponent, LabelHTMLAttributes, HTMLAttributes } from 'react';
6215
- import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
6216
- interface EuiFormLabelCommonProps {
6217
- isFocused?: boolean;
6218
- isInvalid?: boolean;
6219
- /**
6220
- * Changes `cursor` to `default`.
6221
- */
6222
- isDisabled?: boolean;
6223
- /**
6224
- * Default type is a `label` but can be changed to a `legend`
6225
- * if using inside a `fieldset`.
6226
- */
6227
- type?: 'label' | 'legend';
6228
- }
6229
- export type _EuiFormLabelProps = {
6230
- type?: 'label';
6231
- } & EuiFormLabelCommonProps & CommonProps & LabelHTMLAttributes<HTMLLabelElement>;
6232
- export type _EuiFormLegendProps = {
6233
- type: 'legend';
6234
- } & EuiFormLabelCommonProps & CommonProps & HTMLAttributes<HTMLLegendElement>;
6235
- export type EuiFormLabelProps = ExclusiveUnion<_EuiFormLabelProps, _EuiFormLegendProps>;
6236
- export const EuiFormLabel: FunctionComponent<EuiFormLabelProps>;
6237
- export {};
6238
-
6239
- }
6240
- declare module '@elastic/eui/src/components/form/form_label' {
6241
- export type { EuiFormLabelProps } from '@elastic/eui/src/components/form/form_label/form_label';
6242
- export { EuiFormLabel } from '@elastic/eui/src/components/form/form_label/form_label';
6243
-
6244
- }
6245
- declare module '@elastic/eui/src/components/form/eui_form_context' {
6246
- import React from 'react';
6247
- export interface FormContextValue {
6248
- defaultFullWidth: boolean;
6249
- }
6250
- export const FormContext: React.Context<FormContextValue>;
6251
- export function useFormContext(): FormContextValue;
6328
+ declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout.styles' {
6329
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6330
+ export const euiFormControlLayoutStyles: (euiThemeContext: UseEuiTheme) => {
6331
+ euiFormControlLayout: import("@emotion/utils").SerializedStyles;
6332
+ uncompressed: string;
6333
+ compressed: import("@emotion/utils").SerializedStyles;
6334
+ formWidth: string;
6335
+ fullWidth: import("@emotion/utils").SerializedStyles;
6336
+ group: {
6337
+ group: import("@emotion/utils").SerializedStyles;
6338
+ uncompressed: string;
6339
+ compressed: string;
6340
+ };
6341
+ children: {
6342
+ euiFormControlLayout__childrenWrapper: import("@emotion/utils").SerializedStyles;
6343
+ inGroup: import("@emotion/utils").SerializedStyles;
6344
+ prependOnly: import("@emotion/utils").SerializedStyles;
6345
+ appendOnly: import("@emotion/utils").SerializedStyles;
6346
+ };
6347
+ };
6348
+ export const euiFormControlLayoutSideNodeStyles: (euiThemeContext: UseEuiTheme) => {
6349
+ euiFormControlLayout__side: import("@emotion/utils").SerializedStyles;
6350
+ append: import("@emotion/utils").SerializedStyles;
6351
+ prepend: import("@emotion/utils").SerializedStyles;
6352
+ uncompressed: string;
6353
+ compressed: import("@emotion/utils").SerializedStyles;
6354
+ };
6252
6355
 
6253
6356
  }
6254
6357
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout' {
6255
6358
  import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
6256
- import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
6257
- import { CommonProps } from '@elastic/eui/src/components/common'; type StringOrReactElement = string | ReactElement; type PrependAppendType = StringOrReactElement | StringOrReactElement[];
6359
+ import { CommonProps } from '@elastic/eui/src/components/common';
6360
+ import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons'; type StringOrReactElement = string | ReactElement; type PrependAppendType = StringOrReactElement | StringOrReactElement[];
6258
6361
  export type EuiFormControlLayoutProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
6259
6362
  /**
6260
6363
  * Creates an input group with element(s) coming before children.
@@ -6295,10 +6398,31 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
6295
6398
  * Connects the prepend and append labels to the input
6296
6399
  */
6297
6400
  inputId?: string;
6401
+ /**
6402
+ * Allows passing optional additional props to `.euiFormControlLayout__childrenWrapper`
6403
+ */
6404
+ wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
6298
6405
  };
6299
- export const EuiFormControlLayout: FunctionComponent<EuiFormControlLayoutProps>;
6406
+ export const EuiFormControlLayout: FunctionComponent<EuiFormControlLayoutProps & {
6407
+ isDelimited?: boolean;
6408
+ }>;
6300
6409
  export {};
6301
6410
 
6411
+ }
6412
+ declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited.styles' {
6413
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6414
+ export const euiFormControlLayoutDelimitedStyles: (euiThemeContext: UseEuiTheme) => {
6415
+ delimited: import("@emotion/utils").SerializedStyles;
6416
+ disabled: import("@emotion/utils").SerializedStyles;
6417
+ readOnly: import("@emotion/utils").SerializedStyles;
6418
+ childrenWrapper: {
6419
+ delimited: import("@emotion/utils").SerializedStyles;
6420
+ invalid: import("@emotion/utils").SerializedStyles;
6421
+ };
6422
+ };
6423
+ export const euiFormControlLayoutDelimited__delimiter: import("@emotion/utils").SerializedStyles;
6424
+ export const euiFormControlLayoutDelimited__input: import("@emotion/utils").SerializedStyles;
6425
+
6302
6426
  }
6303
6427
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited' {
6304
6428
  import { FunctionComponent, ReactElement, ReactNode } from 'react';
@@ -8887,6 +9011,37 @@ declare module '@elastic/eui/src/components/card/card' {
8887
9011
  export const EuiCard: FunctionComponent<EuiCardProps>;
8888
9012
  export {};
8889
9013
 
9014
+ }
9015
+ declare module '@elastic/eui/src/components/form/checkbox/checkbox.styles' {
9016
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9017
+ export const euiCheckboxStyles: (euiThemeContext: UseEuiTheme) => {
9018
+ euiCheckbox: import("@emotion/utils").SerializedStyles;
9019
+ input: {
9020
+ euiCheckbox__square: import("@emotion/utils").SerializedStyles;
9021
+ enabled: {
9022
+ selected: import("@emotion/utils").SerializedStyles;
9023
+ unselected: import("@emotion/utils").SerializedStyles;
9024
+ };
9025
+ disabled: {
9026
+ selected: import("@emotion/utils").SerializedStyles;
9027
+ unselected: import("@emotion/utils").SerializedStyles;
9028
+ };
9029
+ readOnly: import("@emotion/utils").SerializedStyles;
9030
+ icon: {
9031
+ euiCheckbox__icon: import("@emotion/utils").SerializedStyles;
9032
+ check: import("@emotion/utils").SerializedStyles;
9033
+ indeterminate: import("@emotion/utils").SerializedStyles;
9034
+ };
9035
+ euiCheckbox__input: import("@emotion/utils").SerializedStyles;
9036
+ };
9037
+ label: {
9038
+ euiCheckbox__label: import("@emotion/utils").SerializedStyles;
9039
+ enabled: string;
9040
+ disabled: import("@emotion/utils").SerializedStyles;
9041
+ readOnly: import("@emotion/utils").SerializedStyles;
9042
+ };
9043
+ };
9044
+
8890
9045
  }
8891
9046
  declare module '@elastic/eui/src/components/form/checkbox/checkbox' {
8892
9047
  import { FunctionComponent, ChangeEventHandler, ReactNode, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
@@ -8906,6 +9061,15 @@ declare module '@elastic/eui/src/components/form/checkbox/checkbox' {
8906
9061
  }
8907
9062
  export const EuiCheckbox: FunctionComponent<EuiCheckboxProps>;
8908
9063
 
9064
+ }
9065
+ declare module '@elastic/eui/src/components/form/form_fieldset/form_legend.styles' {
9066
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9067
+ export const euiFormLegendStyles: (euiThemeContext: UseEuiTheme) => {
9068
+ euiFormLegend: import("@emotion/utils").SerializedStyles;
9069
+ uncompressed: string;
9070
+ compressed: import("@emotion/utils").SerializedStyles;
9071
+ };
9072
+
8909
9073
  }
8910
9074
  declare module '@elastic/eui/src/components/form/form_fieldset/form_legend' {
8911
9075
  import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
@@ -8994,6 +9158,18 @@ declare module '@elastic/eui/src/components/form/checkbox' {
8994
9158
  export type { EuiCheckboxGroupProps, EuiCheckboxGroupOption, } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
8995
9159
  export { EuiCheckboxGroup } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
8996
9160
 
9161
+ }
9162
+ declare module '@elastic/eui/src/components/form/described_form_group/described_form_group.styles' {
9163
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9164
+ export const euiDescribedFormGroupStyles: (euiThemeContext: UseEuiTheme) => {
9165
+ euiDescribedFormGroup: import("@emotion/utils").SerializedStyles;
9166
+ formWidth: string;
9167
+ fullWidth: import("@emotion/utils").SerializedStyles;
9168
+ euiDescribedFormGroup__descriptionColumn: import("@emotion/utils").SerializedStyles;
9169
+ euiDescribedFormGroup__description: import("@emotion/utils").SerializedStyles;
9170
+ euiDescribedFormGroup__fields: import("@emotion/utils").SerializedStyles;
9171
+ };
9172
+
8997
9173
  }
8998
9174
  declare module '@elastic/eui/src/components/form/described_form_group/described_form_group' {
8999
9175
  import { FunctionComponent, ReactNode, HTMLAttributes } from 'react';
@@ -9245,8 +9421,8 @@ declare module '@elastic/eui/src/components/form/field_search/field_search.style
9245
9421
  }
9246
9422
  declare module '@elastic/eui/src/components/form/field_search/field_search' {
9247
9423
  import React, { Component, InputHTMLAttributes, KeyboardEvent } from 'react';
9248
- import { CommonProps } from '@elastic/eui/src/components/common';
9249
9424
  import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
9425
+ import { CommonProps } from '@elastic/eui/src/components/common';
9250
9426
  import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
9251
9427
  import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
9252
9428
  export interface EuiFieldSearchProps extends CommonProps, InputHTMLAttributes<HTMLInputElement> {
@@ -9612,6 +9788,13 @@ declare module '@elastic/eui/src/components/form/form' {
9612
9788
  };
9613
9789
  export const EuiForm: React.ForwardRefExoticComponent<EuiFormProps & React.RefAttributes<HTMLElement>>;
9614
9790
 
9791
+ }
9792
+ declare module '@elastic/eui/src/components/form/form_error_text/form_error_text.styles' {
9793
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9794
+ export const euiFormErrorTextStyles: (euiThemeContext: UseEuiTheme) => {
9795
+ euiFormErrorText: import("@emotion/utils").SerializedStyles;
9796
+ };
9797
+
9615
9798
  }
9616
9799
  declare module '@elastic/eui/src/components/form/form_error_text/form_error_text' {
9617
9800
  import { FunctionComponent, HTMLAttributes } from 'react';
@@ -9624,6 +9807,13 @@ declare module '@elastic/eui/src/components/form/form_error_text' {
9624
9807
  export type { EuiFormErrorTextProps } from '@elastic/eui/src/components/form/form_error_text/form_error_text';
9625
9808
  export { EuiFormErrorText } from '@elastic/eui/src/components/form/form_error_text/form_error_text';
9626
9809
 
9810
+ }
9811
+ declare module '@elastic/eui/src/components/form/form_help_text/form_help_text.styles' {
9812
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9813
+ export const euiFormHelpTextStyles: (euiThemeContext: UseEuiTheme) => {
9814
+ euiFormHelpText: import("@emotion/utils").SerializedStyles;
9815
+ };
9816
+
9627
9817
  }
9628
9818
  declare module '@elastic/eui/src/components/form/form_help_text/form_help_text' {
9629
9819
  import { FunctionComponent, HTMLAttributes } from 'react';
@@ -9636,34 +9826,39 @@ declare module '@elastic/eui/src/components/form/form_help_text' {
9636
9826
  export type { EuiFormHelpTextProps } from '@elastic/eui/src/components/form/form_help_text/form_help_text';
9637
9827
  export { EuiFormHelpText } from '@elastic/eui/src/components/form/form_help_text/form_help_text';
9638
9828
 
9829
+ }
9830
+ declare module '@elastic/eui/src/components/form/form_row/form_row.styles' {
9831
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9832
+ export const euiFormRowStyles: (euiThemeContext: UseEuiTheme) => {
9833
+ euiFormRow: import("@emotion/utils").SerializedStyles;
9834
+ formWidth: string;
9835
+ fullWidth: import("@emotion/utils").SerializedStyles;
9836
+ row: string;
9837
+ readonly rowCompressed: string;
9838
+ columnCompressed: import("@emotion/utils").SerializedStyles;
9839
+ readonly columnCompressedSwitch: import("@emotion/utils").SerializedStyles;
9840
+ centerDisplayCss: (compressed: boolean) => string;
9841
+ readonly center: import("@emotion/utils").SerializedStyles;
9842
+ readonly centerCompressed: import("@emotion/utils").SerializedStyles;
9843
+ };
9844
+
9639
9845
  }
9640
9846
  declare module '@elastic/eui/src/components/form/form_row/form_row' {
9641
- import React, { Component, HTMLAttributes, ReactElement, ReactNode } from 'react';
9847
+ import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
9642
9848
  import { ExclusiveUnion, CommonProps } from '@elastic/eui/src/components/common';
9643
- import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context'; const displayToClassNameMap: {
9644
- row: null;
9645
- rowCompressed: string;
9646
- columnCompressed: string;
9647
- center: null;
9648
- centerCompressed: string;
9649
- columnCompressedSwitch: string;
9650
- };
9651
- export const DISPLAYS: ("center" | "row" | "rowCompressed" | "columnCompressed" | "centerCompressed" | "columnCompressedSwitch")[];
9652
- export type EuiFormRowDisplayKeys = keyof typeof displayToClassNameMap;
9653
- interface EuiFormRowState {
9654
- isFocused: boolean;
9655
- id: string;
9656
- } type EuiFormRowCommonProps = CommonProps & {
9849
+ export const DISPLAYS: readonly ["row", "columnCompressed", "center", "centerCompressed", "columnCompressedSwitch", "rowCompressed"];
9850
+ export type EuiFormRowDisplayKeys = (typeof DISPLAYS)[number]; type EuiFormRowCommonProps = CommonProps & {
9657
9851
  /**
9658
- * When `rowCompressed`, just tightens up the spacing;
9659
- * Set to `columnCompressed` if compressed
9660
- * and horizontal layout is needed.
9661
- * Set to `center` or `centerCompressed` to align non-input
9662
- * content better with inline rows.
9663
- * Set to `columnCompressedSwitch` if the form control being passed
9664
- * as the child is a switch.
9852
+ * - `columnCompressed` creates a compressed and horizontal layout
9853
+ * - `columnCompressedSwitch` - **deprecated**, use `columnCompressed` instead
9854
+ * - `center`/`centerCompressed` helps align non-input content better with inline form layouts
9855
+ * - `rowCompressed` - **deprecated**, does not currently affect styling
9665
9856
  */
9666
9857
  display?: EuiFormRowDisplayKeys;
9858
+ /**
9859
+ * Useful for inline form layouts, primarily for content that
9860
+ * needs to be aligned with inputs but does not need a label
9861
+ */
9667
9862
  hasEmptyLabelSpace?: boolean;
9668
9863
  /**
9669
9864
  * Expand to fill 100% of the parent.
@@ -9711,14 +9906,7 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
9711
9906
  labelType?: 'legend';
9712
9907
  } & EuiFormRowCommonProps & Omit<HTMLAttributes<HTMLFieldSetElement>, 'disabled'>;
9713
9908
  export type EuiFormRowProps = ExclusiveUnion<LabelProps, LegendProps>;
9714
- export class EuiFormRow extends Component<EuiFormRowProps, EuiFormRowState> {
9715
- static contextType: React.Context<FormContextValue>;
9716
- static defaultProps: Partial<EuiFormRowProps>;
9717
- state: EuiFormRowState;
9718
- onFocus: (...args: any[]) => void;
9719
- onBlur: (...args: any[]) => void;
9720
- render(): React.JSX.Element;
9721
- }
9909
+ export const EuiFormRow: FunctionComponent<EuiFormRowProps>;
9722
9910
  export {};
9723
9911
 
9724
9912
  }
@@ -9726,6 +9914,31 @@ declare module '@elastic/eui/src/components/form/form_row' {
9726
9914
  export type { EuiFormRowProps } from '@elastic/eui/src/components/form/form_row/form_row';
9727
9915
  export { EuiFormRow } from '@elastic/eui/src/components/form/form_row/form_row';
9728
9916
 
9917
+ }
9918
+ declare module '@elastic/eui/src/components/form/radio/radio.styles' {
9919
+ import { UseEuiTheme } from '@elastic/eui/src/services';
9920
+ export const euiRadioStyles: (euiThemeContext: UseEuiTheme) => {
9921
+ euiRadio: import("@emotion/utils").SerializedStyles;
9922
+ input: {
9923
+ euiRadio__circle: import("@emotion/utils").SerializedStyles;
9924
+ enabled: {
9925
+ selected: import("@emotion/utils").SerializedStyles;
9926
+ unselected: import("@emotion/utils").SerializedStyles;
9927
+ };
9928
+ disabled: {
9929
+ selected: import("@emotion/utils").SerializedStyles;
9930
+ unselected: import("@emotion/utils").SerializedStyles;
9931
+ };
9932
+ euiRadio__icon: import("@emotion/utils").SerializedStyles;
9933
+ euiRadio__input: import("@emotion/utils").SerializedStyles;
9934
+ };
9935
+ label: {
9936
+ euiRadio__label: import("@emotion/utils").SerializedStyles;
9937
+ enabled: string;
9938
+ disabled: import("@emotion/utils").SerializedStyles;
9939
+ };
9940
+ };
9941
+
9729
9942
  }
9730
9943
  declare module '@elastic/eui/src/components/form/radio/radio' {
9731
9944
  import { FunctionComponent, ChangeEventHandler, HTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';
@@ -10498,6 +10711,66 @@ declare module '@elastic/eui/src/components/form/select' {
10498
10711
  export type { EuiSelectProps, EuiSelectOption } from '@elastic/eui/src/components/form/select/select';
10499
10712
  export { EuiSelect } from '@elastic/eui/src/components/form/select/select';
10500
10713
 
10714
+ }
10715
+ declare module '@elastic/eui/src/components/form/switch/switch.styles' {
10716
+ import { UseEuiTheme } from '@elastic/eui/src/services';
10717
+ export const euiSwitchStyles: (euiThemeContext: UseEuiTheme) => {
10718
+ euiSwitch: import("@emotion/utils").SerializedStyles;
10719
+ enabled: string;
10720
+ disabled: import("@emotion/utils").SerializedStyles;
10721
+ button: {
10722
+ euiSwitch__button: import("@emotion/utils").SerializedStyles;
10723
+ uncompressed: string;
10724
+ compressed: import("@emotion/utils").SerializedStyles;
10725
+ mini: import("@emotion/utils").SerializedStyles;
10726
+ };
10727
+ body: {
10728
+ euiSwitch__body: import("@emotion/utils").SerializedStyles;
10729
+ on: import("@emotion/utils").SerializedStyles;
10730
+ off: import("@emotion/utils").SerializedStyles;
10731
+ disabled: {
10732
+ uncompressed: import("@emotion/utils").SerializedStyles;
10733
+ compressed: import("@emotion/utils").SerializedStyles;
10734
+ mini: import("@emotion/utils").SerializedStyles;
10735
+ };
10736
+ };
10737
+ icons: {
10738
+ euiSwitch__icons: import("@emotion/utils").SerializedStyles;
10739
+ on: import("@emotion/utils").SerializedStyles;
10740
+ off: import("@emotion/utils").SerializedStyles;
10741
+ enabled: import("@emotion/utils").SerializedStyles;
10742
+ disabled: import("@emotion/utils").SerializedStyles;
10743
+ };
10744
+ thumb: {
10745
+ euiSwitch__thumb: import("@emotion/utils").SerializedStyles;
10746
+ off: import("@emotion/utils").SerializedStyles;
10747
+ readonly on: {
10748
+ uncompressed: import("@emotion/utils").SerializedStyles;
10749
+ compressed: import("@emotion/utils").SerializedStyles;
10750
+ mini: import("@emotion/utils").SerializedStyles;
10751
+ };
10752
+ enabled: {
10753
+ enabled: string;
10754
+ uncompressed: string;
10755
+ compressed: string;
10756
+ mini: string;
10757
+ };
10758
+ disabled: {
10759
+ disabled: import("@emotion/utils").SerializedStyles;
10760
+ uncompressed: string;
10761
+ compressed: string;
10762
+ mini: string;
10763
+ };
10764
+ };
10765
+ label: {
10766
+ euiSwitch__label: import("@emotion/utils").SerializedStyles;
10767
+ uncompressed: string;
10768
+ compressed: import("@emotion/utils").SerializedStyles;
10769
+ mini: import("@emotion/utils").SerializedStyles;
10770
+ disabled: import("@emotion/utils").SerializedStyles;
10771
+ };
10772
+ };
10773
+
10501
10774
  }
10502
10775
  declare module '@elastic/eui/src/components/form/switch/switch' {
10503
10776
  import React, { ButtonHTMLAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
@@ -10517,13 +10790,22 @@ declare module '@elastic/eui/src/components/form/switch/switch' {
10517
10790
  checked: boolean;
10518
10791
  onChange: (event: EuiSwitchEvent) => void;
10519
10792
  disabled?: boolean;
10793
+ /**
10794
+ * Compressed switches are smaller and contain no icon signifiers
10795
+ */
10520
10796
  compressed?: boolean;
10521
10797
  /**
10522
10798
  * Object of props passed to the label's `<span />`
10523
10799
  */
10524
10800
  labelProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
10525
10801
  };
10526
- export const EuiSwitch: FunctionComponent<EuiSwitchProps>;
10802
+ export const EuiSwitch: FunctionComponent<EuiSwitchProps & {
10803
+ /**
10804
+ * Mini styling is similar to compressed, but even smaller.
10805
+ * It's undocumented because it has very specific uses.
10806
+ */
10807
+ mini?: boolean;
10808
+ }>;
10527
10809
 
10528
10810
  }
10529
10811
  declare module '@elastic/eui/src/components/form/switch' {
@@ -13119,8 +13401,6 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
13119
13401
  formLayout: {
13120
13402
  euiComboBox__formControlLayout: import("@emotion/utils").SerializedStyles;
13121
13403
  multiSelect: import("@emotion/utils").SerializedStyles;
13122
- prependOnly: import("@emotion/utils").SerializedStyles;
13123
- appendOnly: import("@emotion/utils").SerializedStyles;
13124
13404
  };
13125
13405
  };
13126
13406
 
@@ -16272,8 +16552,14 @@ declare module '@elastic/eui/src/components/date_picker/date_picker.styles' {
16272
16552
  import { UseEuiTheme } from '@elastic/eui/src/services';
16273
16553
  export const euiDatePickerStyles: (euiThemeContext: UseEuiTheme) => {
16274
16554
  euiDatePicker: import("@emotion/utils").SerializedStyles;
16275
- inline: import("@emotion/utils").SerializedStyles;
16276
- shadow: import("@emotion/utils").SerializedStyles;
16555
+ inline: {
16556
+ inline: import("@emotion/utils").SerializedStyles;
16557
+ noShadow: string;
16558
+ shadow: import("@emotion/utils").SerializedStyles;
16559
+ invalid: import("@emotion/utils").SerializedStyles;
16560
+ disabled: import("@emotion/utils").SerializedStyles;
16561
+ readOnly: import("@emotion/utils").SerializedStyles;
16562
+ };
16277
16563
  };
16278
16564
 
16279
16565
  }
@@ -17053,6 +17339,10 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range.styles
17053
17339
  responsive: import("@emotion/utils").SerializedStyles;
17054
17340
  responsiveWithTimeSelect: import("@emotion/utils").SerializedStyles;
17055
17341
  shadow: import("@emotion/utils").SerializedStyles;
17342
+ formLayout: {
17343
+ noShadow: import("@emotion/utils").SerializedStyles;
17344
+ shadow: import("@emotion/utils").SerializedStyles;
17345
+ };
17056
17346
  };
17057
17347
 
17058
17348
  }
@@ -30370,6 +30660,7 @@ declare module '@elastic/eui' {
30370
30660
  "euiFlyout.screenReaderFixedHeaders": any;
30371
30661
  "euiFieldPassword.showPassword": any;
30372
30662
  "euiFieldPassword.maskPassword": any;
30663
+ "euiFieldSearch.clearSearchButtonLabel": any;
30373
30664
  "euiFilePicker.promptText": any;
30374
30665
  "euiFilePicker.filesSelected": any;
30375
30666
  "euiFilePicker.removeSelectedAriaLabel": any;