@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
@@ -1,25 +0,0 @@
1
- /**
2
- * 1. Focused state overrides invalid state.
3
- * 2. Disabled state overrides pointer.
4
- */
5
- .euiFormLabel {
6
- @include euiFormLabel;
7
- display: inline-block;
8
- transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
9
-
10
- &.euiFormLabel-isInvalid {
11
- color: $euiColorDanger; /* 1 */
12
- }
13
-
14
- &.euiFormLabel-isFocused {
15
- color: $euiColorPrimary; /* 1 */
16
- }
17
-
18
- &[for] {
19
- cursor: pointer; /* 2 */
20
- }
21
-
22
- &[for].euiFormLabel-isDisabled {
23
- cursor: default; /* 2 */
24
- }
25
- }
@@ -1 +0,0 @@
1
- @import 'form_label';
@@ -1,102 +0,0 @@
1
- /**
2
- * 1. Coerce inline form elements to behave as block-level elements.
3
- * 2. For inline forms, we need to add margin if the label doesn't exist.
4
- */
5
- .euiFormRow {
6
- display: flex; /* 1 */
7
- flex-direction: column; /* 1 */
8
- max-width: $euiFormMaxWidth;
9
-
10
- + .euiFormRow,
11
- + .euiButton {
12
- margin-top: $euiSize;
13
- }
14
- }
15
-
16
- .euiFormRow--fullWidth {
17
- max-width: 100%;
18
- }
19
-
20
- .euiFormRow--hasEmptyLabelSpace {
21
- margin-top: $euiSize + $euiSizeXS; /* 2 */
22
- // the following ensure that contents that aren't inherently the same height
23
- // as inputs will align to the vertical center
24
- min-height: $euiFormControlHeight;
25
- padding-bottom: 0;
26
- justify-content: center;
27
- }
28
-
29
- .euiFormRow__labelWrapper {
30
- display: flex;
31
- flex-wrap: wrap;
32
- justify-content: space-between;
33
- margin-bottom: $euiSizeXS;
34
- }
35
-
36
- .euiFormRow--horizontal {
37
- flex-direction: row;
38
- align-items: stretch;
39
-
40
- .euiFormRow__label {
41
- hyphens: auto;
42
- }
43
-
44
- .euiFormRow__labelWrapper {
45
- display: block;
46
- line-height: $euiFormControlCompressedHeight - 1px; // The 1px less helps the alignment of the text baseline
47
- width: calc(33% - #{$euiSizeS});
48
- margin-right: $euiSizeS;
49
- margin-bottom: 0;
50
- }
51
-
52
- .euiFormRow__fieldWrapper {
53
- width: 67%;
54
- }
55
-
56
- + .euiFormRow--horizontal {
57
- margin-top: $euiSizeS;
58
- }
59
-
60
- + .euiFormRow--horizontal.euiFormRow--hasSwitch {
61
- margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
62
- }
63
-
64
- // TODO: Address nesting during Emotion conversion, if possible
65
- // stylelint-disable max-nesting-depth
66
- &.euiFormRow--hasSwitch {
67
- .euiFormRow__labelWrapper {
68
- line-height: $euiSwitchHeight - 1px; // The 1px less helps the alignment of the text baseline
69
- width: auto;
70
- min-width: calc(33% - #{$euiSizeS});
71
- }
72
-
73
- .euiFormRow__fieldWrapper {
74
- width: auto;
75
-
76
- .euiSwitch--compressed {
77
- margin-top: $euiSizeXS / 2; // Better vertical alignment of a compressed switch to the horizontal label
78
- }
79
- }
80
-
81
- + .euiFormRow--horizontal {
82
- margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
83
- }
84
- }
85
- // stylelint-enable max-nesting-depth
86
- }
87
-
88
- .euiFormRow__fieldWrapperDisplayOnly {
89
- min-height: $euiFormControlHeight;
90
- display: flex;
91
- align-items: center;
92
- }
93
-
94
- .euiFormRow--compressed {
95
- &.euiFormRow--hasEmptyLabelSpace {
96
- min-height: $euiFormControlCompressedHeight;
97
- }
98
-
99
- .euiFormRow__fieldWrapperDisplayOnly {
100
- min-height: $euiFormControlCompressedHeight;
101
- }
102
- }
@@ -1 +0,0 @@
1
- @import 'form_row';
@@ -1 +0,0 @@
1
- @import 'radio';
@@ -1,87 +0,0 @@
1
- // TODO: Address nesting during Emotion conversion, if possible
2
- // stylelint-disable max-nesting-depth
3
-
4
- /**
5
- * 1. Float above the visual radio and match its dimension, so that when users try to click it
6
- * they actually click this input.
7
- */
8
-
9
- .euiRadio {
10
- position: relative;
11
-
12
- // Set a top offset for the real input and faux input to align better with the text
13
- $topOffset: (($euiSizeL - $euiRadioSize) / 2) - 1px;
14
-
15
- .euiRadio__input {
16
- @include size($euiRadioSize);
17
- top: $topOffset;
18
- cursor: pointer;
19
- position: absolute; /* 1 */
20
- opacity: 0; /* 1 */
21
- z-index: 1; /* 1 */
22
-
23
- ~ .euiRadio__label {
24
- display: inline-block;
25
- padding-left: ($euiRadioSize * 1.5);
26
- line-height: $euiSizeL;
27
- font-size: $euiFontSizeS;
28
- position: relative;
29
- z-index: 2;
30
- cursor: pointer;
31
- }
32
-
33
- + .euiRadio__circle {
34
- @include euiCustomControl($type: 'round', $size: $euiRadioSize);
35
-
36
- display: inline-block;
37
- position: absolute;
38
- left: 0;
39
- top: $topOffset;
40
- }
41
-
42
- &:checked {
43
- + .euiRadio__circle {
44
- @include euiCustomControlSelected($type: 'dot');
45
- }
46
- }
47
-
48
- &[disabled] {
49
- cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
50
-
51
- ~ .euiRadio__label {
52
- color: $euiFormControlDisabledColor;
53
- cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
54
- }
55
-
56
- + .euiRadio__circle {
57
- @include euiCustomControlDisabled;
58
- }
59
- }
60
-
61
- &:checked[disabled] {
62
- + .euiRadio__circle {
63
- @include euiCustomControlDisabled($type: 'dot');
64
- }
65
- }
66
-
67
- &:focus {
68
- + .euiRadio__circle {
69
- @include euiCustomControlFocused;
70
- }
71
- }
72
- }
73
-
74
- &.euiRadio--noLabel {
75
- min-height: $euiRadioSize;
76
- min-width: $euiRadioSize;
77
-
78
- .euiRadio__input,
79
- .euiRadio__circle {
80
- top: 0;
81
- }
82
-
83
- .euiRadio__input {
84
- margin: 0;
85
- }
86
- }
87
- }
@@ -1 +0,0 @@
1
- @import 'switch';
@@ -1,212 +0,0 @@
1
- // TODO: Address nesting during Emotion conversion, if possible
2
- // stylelint-disable max-nesting-depth
3
-
4
- .euiSwitch {
5
- $euiSwitchOffDisabledColor: lightOrDarkTheme(transparentize($euiColorLightShade, .5), transparentize($euiColorDarkShade, .4));
6
- $euiSwitchDisabledThumbColor: lightOrDarkTheme(transparentize($euiColorDarkShade, .5), $euiColorDarkShade);
7
-
8
- position: relative;
9
- display: inline-flex;
10
- align-items: flex-start;
11
- min-height: $euiSwitchHeight;
12
-
13
- .euiSwitch__label {
14
- cursor: pointer;
15
- padding-left: $euiSizeS;
16
- line-height: $euiSwitchHeight;
17
- font-size: $euiFontSizeS;
18
- vertical-align: middle;
19
- display: inline-block;
20
- }
21
-
22
- .euiSwitch__button {
23
- flex-shrink: 0; // ensures the button doesn't lose width because of a long label
24
- line-height: 0; // ensures button takes height of switch inside
25
-
26
- &:focus .euiSwitch__track {
27
- @include euiCustomControlFocused;
28
- }
29
-
30
- &[aria-checked='false'] {
31
- .euiSwitch__body {
32
- background-color: $euiSwitchOffColor;
33
- }
34
-
35
- // When input is not checked, we shift around the positioning of the thumb and the icon
36
- .euiSwitch__thumb { // move the thumb left
37
- left: 0;
38
- }
39
-
40
- .euiSwitch__icon { // move the icon right
41
- right: -$euiSizeS;
42
-
43
- &.euiSwitch__icon--checked {
44
- right: auto;
45
- left: -($euiSwitchWidth - ($euiSwitchThumbSize / 2));
46
- }
47
- }
48
- }
49
-
50
- &:disabled {
51
- &:hover,
52
- ~ .euiSwitch__label:hover {
53
- cursor: not-allowed;
54
- }
55
-
56
- .euiSwitch__body {
57
- background-color: $euiSwitchOffDisabledColor;
58
- }
59
-
60
- .euiSwitch__thumb {
61
- background-color: rgba(0,0,0,0);
62
- border-color: $euiSwitchDisabledThumbColor;
63
- box-shadow: none;
64
- }
65
-
66
- .euiSwitch__icon {
67
- fill: $euiColorDarkShade;
68
- }
69
-
70
- + .euiSwitch__label {
71
- color: $euiFormControlDisabledColor;
72
- }
73
- }
74
- }
75
-
76
- .euiSwitch__body {
77
- pointer-events: none;
78
- width: $euiSwitchWidth;
79
- height: $euiSwitchHeight;
80
- background-color: $euiColorPrimary;
81
- display: inline-block;
82
- position: relative;
83
- border-radius: $euiSwitchHeight;
84
- vertical-align: middle;
85
- }
86
-
87
- .euiSwitch__thumb {
88
- @include euiCustomControl($type: 'round', $size: $euiSwitchThumbSize);
89
-
90
- position: absolute;
91
- display: inline-block;
92
- left: $euiSwitchWidth - $euiSwitchThumbSize;
93
- transition: border-color $euiAnimSpeedNormal $euiAnimSlightBounce, background-color $euiAnimSpeedNormal $euiAnimSlightBounce, left $euiAnimSpeedNormal $euiAnimSlightBounce, transform $euiAnimSpeedNormal $euiAnimSlightBounce;
94
- }
95
-
96
- .euiSwitch__track {
97
- position: absolute;
98
- left: 0;
99
- top: 0;
100
- right: 0;
101
- bottom: 0;
102
- overflow: hidden;
103
- border-radius: $euiSwitchHeight;
104
- }
105
-
106
- .euiSwitch__icon {
107
- position: absolute;
108
- right: -($euiSwitchWidth - ($euiSwitchThumbSize / 2));
109
- top: ($euiSwitchHeight - $euiSwitchIconHeight) / 2;
110
- bottom: 0;
111
- width: $euiSwitchWidth - ($euiSwitchThumbSize / 2) + $euiSizeS;
112
- height: $euiSwitchIconHeight;
113
- transition: left $euiAnimSpeedNormal $euiAnimSlightBounce, right $euiAnimSpeedNormal $euiAnimSlightBounce;
114
- fill: $euiColorEmptyShade;
115
- }
116
-
117
- .euiSwitch__icon--checked {
118
- right: auto;
119
- left: -$euiSizeS;
120
- fill: $euiColorEmptyShade;
121
- }
122
-
123
- &:hover .euiSwitch__button {
124
- &:not(:disabled) .euiSwitch__thumb {
125
- transform: scale(1.05);
126
- }
127
-
128
- &:active .euiSwitch__thumb {
129
- transform: scale(.95);
130
- }
131
- }
132
-
133
- // Compressed switches operate very similar to the normal versions, but are smaller, contain no icon signifiers
134
- &.euiSwitch--compressed {
135
- min-height: $euiSwitchHeightCompressed;
136
-
137
- .euiSwitch__label {
138
- line-height: $euiSwitchHeightCompressed;
139
- }
140
-
141
- .euiSwitch__body {
142
- width: $euiSwitchWidthCompressed;
143
- height: $euiSwitchHeightCompressed;
144
- border-radius: $euiSwitchHeightCompressed;
145
- }
146
-
147
- .euiSwitch__thumb {
148
- @include euiCustomControl($type: 'round', $size: ($euiSwitchThumbSizeCompressed) - 2px);
149
-
150
- left: ($euiSwitchWidthCompressed) - (($euiSwitchThumbSizeCompressed) - 2px) - 1px;
151
- top: 1px;
152
- transition: border-color $euiAnimSpeedNormal $euiAnimSlightBounce, background-color $euiAnimSpeedNormal $euiAnimSlightBounce, left $euiAnimSpeedNormal $euiAnimSlightBounce, transform $euiAnimSpeedNormal $euiAnimSlightBounce;
153
- }
154
-
155
- .euiSwitch__track {
156
- border-radius: $euiSwitchHeightCompressed;
157
- }
158
- }
159
-
160
- // Mini styling is similar to compressed, but even smaller. It's undocumented because it has very specific uses.
161
- &.euiSwitch--mini {
162
- min-height: $euiSwitchHeightMini;
163
-
164
- .euiSwitch__label {
165
- line-height: $euiSwitchHeightMini;
166
- font-size: $euiFontSizeXS;
167
- }
168
-
169
- .euiSwitch__body {
170
- width: $euiSwitchWidthMini;
171
- height: $euiSwitchHeightMini;
172
- border-radius: $euiSwitchHeightMini;
173
- }
174
-
175
- .euiSwitch__thumb {
176
- @include euiCustomControl($type: 'round', $size: ($euiSwitchThumbSizeMini) - 2px);
177
-
178
- left: ($euiSwitchWidthMini) - (($euiSwitchThumbSizeMini) - 2px) - 1px;
179
- top: 1px;
180
- transition: border-color $euiAnimSpeedNormal $euiAnimSlightBounce, background-color $euiAnimSpeedNormal $euiAnimSlightBounce, left $euiAnimSpeedNormal $euiAnimSlightBounce, transform $euiAnimSpeedNormal $euiAnimSlightBounce;
181
- }
182
-
183
- .euiSwitch__track {
184
- border-radius: $euiSwitchHeightMini;
185
- }
186
- }
187
-
188
- // Compressed and mini switches have some style overlap
189
- &.euiSwitch--compressed,
190
- &.euiSwitch--mini {
191
- .euiSwitch__button[aria-checked='false'] {
192
- .euiSwitch__thumb {
193
- left: 1px;
194
- }
195
- }
196
-
197
- // Compressed and mini switches need slightly darker borders since they don't have icons
198
- .euiSwitch__button[aria-checked='false'],
199
- .euiSwitch__button[aria-checked='true']:disabled {
200
- .euiSwitch__thumb {
201
- border-color: $euiSwitchDisabledThumbColor;
202
- }
203
- }
204
-
205
- // Similar additional treatment needed while checked
206
- .euiSwitch__button[aria-checked='true'] {
207
- .euiSwitch__thumb {
208
- border-color: $euiColorPrimary;
209
- }
210
- }
211
- }
212
- }
@@ -1,17 +0,0 @@
1
- // For using icons as background images (data-uri)
2
- @mixin euiIconBackground($type, $color: $euiColorEmptyShade) {
3
- // stylelint-disable string-quotes
4
- @if variable-exists(type) == false {
5
- @error 'A $type:string must be provided to @mixin euiIconBackground().';
6
- } @else if type-of($color) != color {
7
- @warn "The second parameter must be a valid color type -- got $color:#{type-of($color)} = #{$color}.";
8
- } @else if $type == 'check' {
9
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M.375 2.625L3.375 5.625M3.375 5.625L8.625.375' fill='none' fill-rule='evenodd' stroke='#{hexToRGB($color)}' stroke-linecap='round' stroke-width='1.5' transform='translate(.5 1)'/%3E%3C/svg%3E");
10
- } @else if $type == 'dot' {
11
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Ccircle cx='8' cy='11' r='3' fill='#{hexToRGB($color)}' fill-rule='evenodd' transform='translate(-5 -8)'/%3E%3C/svg%3E");
12
- } @else if $type == 'square' {
13
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Crect width='6' height='6' fill='#{hexToRGB($color)}' fill-rule='evenodd'/%3E%3C/svg%3E");
14
- } @else {
15
- @error "The $type of #{$type} cannot be found.";
16
- }
17
- }
@@ -1,112 +0,0 @@
1
- // TODO: Address nesting during Emotion conversion, if possible
2
- // stylelint-disable max-nesting-depth
3
-
4
- .euiFormControlLayout--group {
5
- border-radius: $euiFormControlBorderRadius;
6
- background-color: $euiFormInputGroupLabelBackground;
7
-
8
- .euiFormControlLayout__prepend:first-child {
9
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'left', $internal: true);
10
-
11
- [class*='euiButton'] {
12
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'left', $internal: true);
13
- }
14
- }
15
-
16
- .euiFormControlLayout__append:last-child {
17
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'right', $internal: true);
18
-
19
- [class*='euiButton'] {
20
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'right', $internal: true);
21
- }
22
- }
23
-
24
- [class*='euiButton']:focus {
25
- @include euiFocusRing(null, 'inner');
26
- }
27
-
28
- .euiToolTipAnchor > .euiIcon {
29
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'right', $internal: true);
30
- }
31
-
32
- .euiToolTipAnchor:first-child [class*='euiButton'] {
33
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'left', $internal: true);
34
- }
35
-
36
- .euiToolTipAnchor:last-child {
37
- [class*='euiButton'],
38
- .euiText {
39
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'right', $internal: true);
40
- }
41
- }
42
-
43
- .euiFormControlLayout__childrenWrapper:nth-child(2) [class*='euiField'],
44
- .euiFormControlLayout__childrenWrapper:nth-child(3) [class*='euiField'] {
45
- border-radius: 0;
46
- }
47
-
48
- .euiFormControlLayout__childrenWrapper:first-child .euiSelect,
49
- .euiFormControlLayout__childrenWrapper:first-child .euiSuperSelectControl,
50
- .euiFormControlLayout__childrenWrapper:first-child [class*='euiField'] {
51
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'left');
52
- }
53
-
54
- .euiFormControlLayout__childrenWrapper:last-child .euiSelect,
55
- .euiFormControlLayout__childrenWrapper:last-child .euiSuperSelectControl,
56
- .euiFormControlLayout__childrenWrapper:last-child [class*='euiField'] {
57
- @include euiFormControlSideBorderRadius($euiFormControlBorderRadius, $side: 'right');
58
- }
59
-
60
- &.euiFormControlLayout--compressed {
61
- border-radius: $euiFormControlCompressedBorderRadius;
62
- background-color: $euiFormInputGroupLabelBackground;
63
-
64
- &.euiFormControlLayout--readOnly input {
65
- background-color: $euiFormBackgroundReadOnlyColor;
66
- }
67
-
68
- .euiFormControlLayout__prepend:first-child {
69
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'left', $internal: true);
70
-
71
- [class*='euiButton'] {
72
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'left');
73
- }
74
- }
75
-
76
- .euiFormControlLayout__append:last-child {
77
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'right', $internal: true);
78
-
79
- [class*='euiButton'] {
80
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'right', $internal: true);
81
- }
82
- }
83
-
84
- .euiToolTipAnchor > .euiIcon {
85
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'right', $internal: true);
86
- }
87
-
88
- .euiToolTipAnchor:first-child [class*='euiButton'] {
89
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'left', $internal: true);
90
- }
91
-
92
- .euiToolTipAnchor:last-child [class*='euiButton'],
93
- .euiToolTipAnchor:last-child .euiText {
94
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'right', $internal: true);
95
- }
96
-
97
- .euiFormControlLayout__childrenWrapper:nth-child(2) [class*='euiField'],
98
- .euiFormControlLayout__childrenWrapper:nth-child(3) [class*='euiField'] {
99
- border-radius: 0;
100
- }
101
-
102
- .euiFormControlLayout__childrenWrapper:first-child .euiSelect,
103
- .euiFormControlLayout__childrenWrapper:first-child [class*='euiField'] {
104
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'left', $internal: true);
105
- }
106
-
107
- .euiFormControlLayout__childrenWrapper:last-child .euiSelect,
108
- .euiFormControlLayout__childrenWrapper:last-child [class*='euiField'] {
109
- @include euiFormControlSideBorderRadius($euiFormControlCompressedBorderRadius, $side: 'right', $internal: true);
110
- }
111
- }
112
- }
@@ -1,42 +0,0 @@
1
- // TODO: Address nesting during Emotion conversion, if possible
2
- // stylelint-disable max-nesting-depth
3
-
4
- .euiFormControlLayoutDelimited {
5
- border-radius: $euiFormControlBorderRadius;
6
-
7
- &.euiFormControlLayout--group {
8
- .euiFormControlLayout__childrenWrapper:first-child {
9
- border-radius: $euiFormControlBorderRadius 0 0 $euiFormControlBorderRadius;
10
- }
11
- }
12
-
13
- .euiFormControlLayout__childrenWrapper:only-child {
14
- border-radius: $euiFormControlBorderRadius;
15
- overflow: hidden;
16
- }
17
-
18
- .euiFormControlLayout__prepend + .euiFormControlLayout__childrenWrapper {
19
- &:last-child {
20
- border-radius: 0 $euiFormControlBorderRadius $euiFormControlBorderRadius 0;
21
- }
22
- }
23
-
24
- &.euiFormControlLayout--compressed {
25
- &.euiFormControlLayout--group {
26
- .euiFormControlLayout__childrenWrapper:first-child {
27
- border-radius: $euiFormControlCompressedBorderRadius 0 0 $euiFormControlCompressedBorderRadius;
28
- }
29
- }
30
-
31
- .euiFormControlLayout__childrenWrapper:only-child {
32
- border-radius: $euiFormControlCompressedBorderRadius;
33
- overflow: hidden;
34
- }
35
-
36
- .euiFormControlLayout__prepend + .euiFormControlLayout__childrenWrapper {
37
- &:last-child {
38
- border-radius: 0 $euiFormControlCompressedBorderRadius $euiFormControlCompressedBorderRadius 0;
39
- }
40
- }
41
- }
42
- }
@@ -1,19 +0,0 @@
1
- .euiRadio .euiRadio__input {
2
- &:focus {
3
- @include euiCustomControlFocused('.euiRadio__circle');
4
- }
5
- }
6
-
7
- .euiCheckbox .euiCheckbox__input {
8
- &:focus {
9
- @include euiCustomControlFocused('.euiCheckbox__square');
10
- }
11
- }
12
-
13
- .euiSwitch .euiSwitch__button:focus {
14
- @include euiFocusRing(null, 'outer');
15
-
16
- .euiSwitch__track {
17
- outline: none;
18
- }
19
- }