@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
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.euiFormVariables = exports.euiFormMaxWidth = exports.euiFormControlText = exports.euiFormControlStyles = exports.euiFormControlReadOnlyStyles = exports.euiFormControlInvalidStyles = exports.euiFormControlFocusStyles = exports.euiFormControlDisabledStyles = exports.euiFormControlDefaultShadow = exports.euiFormControlAutoFillStyles = exports.euiCustomControl = void 0;
7
+ exports.euiFormVariables = exports.euiFormMaxWidth = exports.euiFormCustomControlVariables = exports.euiFormCustomControlStyles = exports.euiFormControlText = exports.euiFormControlStyles = exports.euiFormControlReadOnlyStyles = exports.euiFormControlInvalidStyles = exports.euiFormControlFocusStyles = exports.euiFormControlDisabledStyles = exports.euiFormControlDefaultShadow = exports.euiFormControlAutoFillStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _services = require("../../services");
10
10
  var _global_styling = require("../../global_styling");
@@ -57,14 +57,7 @@ var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiT
57
57
  controlDisabledColor: euiTheme.colors.mediumShade,
58
58
  controlBoxShadow: '0 0 transparent',
59
59
  controlPlaceholderText: (0, _services.makeHighContrastColor)(euiTheme.colors.subduedText)(backgroundColor),
60
- inputGroupLabelBackground: isColorDark ? (0, _services.shade)(euiTheme.colors.lightShade, 0.15) : (0, _services.tint)(euiTheme.colors.lightShade, 0.5),
61
- inputGroupBorder: 'none'
62
- };
63
-
64
- // Colors - specific to checkboxes, radios, switches, and range thumbs
65
- var customControlColors = {
66
- customControlDisabledIconColor: isColorDark ? (0, _services.shade)(euiTheme.colors.mediumShade, 0.38) : (0, _services.tint)(euiTheme.colors.mediumShade, 0.485),
67
- customControlBorderColor: isColorDark ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.4) : (0, _services.tint)(euiTheme.colors.lightestShade, 0.31)
60
+ appendPrependBackground: isColorDark ? (0, _services.shade)(euiTheme.colors.lightShade, 0.15) : (0, _services.tint)(euiTheme.colors.lightShade, 0.5)
68
61
  };
69
62
  var controlLayout = {
70
63
  controlLayoutGroupInputHeight: (0, _global_styling.mathWithUnits)(controlHeight, function (x) {
@@ -84,7 +77,7 @@ var euiFormVariables = exports.euiFormVariables = function euiFormVariables(euiT
84
77
  xxl: euiTheme.size.xxl
85
78
  }
86
79
  };
87
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), customControlColors), iconSizes), controlLayout), {}, {
80
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), iconSizes), controlLayout), {}, {
88
81
  animationTiming: "".concat(euiTheme.animation.fast, " ease-in")
89
82
  });
90
83
  };
@@ -108,29 +101,6 @@ var euiFormControlStyles = exports.euiFormControlStyles = function euiFormContro
108
101
  autoFill: euiFormControlAutoFillStyles(euiThemeContext)
109
102
  };
110
103
  };
111
- var euiCustomControl = exports.euiCustomControl = function euiCustomControl(euiThemeContext) {
112
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
113
- var euiTheme = euiThemeContext.euiTheme;
114
- var form = euiFormVariables(euiThemeContext);
115
- var type = options.type,
116
- _options$size = options.size,
117
- size = _options$size === void 0 ? euiTheme.size.base : _options$size;
118
- var padddingStyle = '';
119
- var borderRadiusStyle = '';
120
- if (size) {
121
- var borderSize = parseFloat(String(euiTheme.border.width.thin));
122
- var paddingSize = (0, _global_styling.mathWithUnits)(size, function (x) {
123
- return (x - borderSize * 2) / 2;
124
- });
125
- padddingStyle = "padding: ".concat(paddingSize, ";");
126
- }
127
- if (type === 'round') {
128
- borderRadiusStyle = "border-radius: ".concat(size, ";");
129
- } else if (type === 'square') {
130
- borderRadiusStyle = "border-radius: ".concat(form.controlCompressedBorderRadius, ";");
131
- }
132
- return "\n ".concat(padddingStyle, "\n ").concat(borderRadiusStyle, "\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(form.customControlBorderColor, ";\n background: ").concat(euiTheme.colors.emptyShade, " no-repeat center;\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition: background-color ").concat(form.animationTiming, ",\n border-color ").concat(form.animationTiming, ";\n }\n ");
133
- };
134
104
  var euiFormControlText = exports.euiFormControlText = function euiFormControlText(euiThemeContext) {
135
105
  var euiTheme = euiThemeContext.euiTheme;
136
106
  var _euiFontSize = (0, _global_styling.euiFontSize)(euiThemeContext, 's'),
@@ -139,22 +109,37 @@ var euiFormControlText = exports.euiFormControlText = function euiFormControlTex
139
109
  return "\n font-family: ".concat(euiTheme.font.family, ";\n font-size: ").concat(fontSize, ";\n color: ").concat(form.textColor, ";\n\n ").concat(euiPlaceholderPerBrowser("\n color: ".concat(form.controlPlaceholderText, ";\n opacity: 1;\n ")), "\n ");
140
110
  };
141
111
  var euiFormControlDefaultShadow = exports.euiFormControlDefaultShadow = function euiFormControlDefaultShadow(euiThemeContext) {
112
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
113
+ _ref2$withBorder = _ref2.withBorder,
114
+ withBorder = _ref2$withBorder === void 0 ? true : _ref2$withBorder,
115
+ _ref2$withBackground = _ref2.withBackground,
116
+ withBackground = _ref2$withBackground === void 0 ? true : _ref2$withBackground,
117
+ _ref2$withBackgroundC = _ref2.withBackgroundColor,
118
+ withBackgroundColor = _ref2$withBackgroundC === void 0 ? withBackground : _ref2$withBackgroundC,
119
+ _ref2$withBackgroundA = _ref2.withBackgroundAnimation,
120
+ withBackgroundAnimation = _ref2$withBackgroundA === void 0 ? withBackground : _ref2$withBackgroundA;
142
121
  var euiTheme = euiThemeContext.euiTheme;
143
122
  var form = euiFormVariables(euiThemeContext);
144
- return "\n /* We use inset box-shadow instead of border to skip extra hight calculations */\n border: none;\n box-shadow: inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(form.borderColor, ";\n background-color: ").concat(form.backgroundColor, ";\n\n background-repeat: no-repeat;\n background-size: 0% 100%;\n background-image: linear-gradient(to top,\n var(--euiFormControlStateColor),\n var(--euiFormControlStateColor) ").concat(euiTheme.border.width.thick, ",\n transparent ").concat(euiTheme.border.width.thick, ",\n transparent 100%\n );\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition:\n box-shadow ").concat(form.animationTiming, ",\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ");
123
+
124
+ // We use inset box-shadow instead of border to skip extra height calculations
125
+ var border = "\n border: none;\n box-shadow: inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(form.borderColor, ";\n ").trim();
126
+ var backgroundColor = "\n background-color: ".concat(form.backgroundColor, ";\n ").trim();
127
+ var backgroundGradient = "\n background-repeat: no-repeat;\n background-size: 0% 100%;\n background-image: linear-gradient(to top,\n var(--euiFormControlStateColor),\n var(--euiFormControlStateColor) ".concat(euiTheme.border.width.thick, ",\n transparent ").concat(euiTheme.border.width.thick, ",\n transparent 100%\n );\n ").trim();
128
+ var backgroundAnimation = "\n ".concat(_global_styling.euiCanAnimate, " {\n transition:\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ").trim();
129
+ return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ").concat(withBackgroundAnimation ? backgroundAnimation : '', "\n ");
145
130
  };
146
- var euiFormControlFocusStyles = exports.euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref2) {
147
- var euiTheme = _ref2.euiTheme,
148
- colorMode = _ref2.colorMode;
131
+ var euiFormControlFocusStyles = exports.euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref3) {
132
+ var euiTheme = _ref3.euiTheme,
133
+ colorMode = _ref3.colorMode;
149
134
  return "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.emptyShade, 0.4) : euiTheme.colors.emptyShade, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
150
135
  };
151
- var euiFormControlInvalidStyles = exports.euiFormControlInvalidStyles = function euiFormControlInvalidStyles(_ref3) {
152
- var euiTheme = _ref3.euiTheme;
136
+ var euiFormControlInvalidStyles = exports.euiFormControlInvalidStyles = function euiFormControlInvalidStyles(_ref4) {
137
+ var euiTheme = _ref4.euiTheme;
153
138
  return "\n --euiFormControlStateColor: ".concat(euiTheme.colors.danger, ";\n background-size: 100% 100%;\n");
154
139
  };
155
140
  var euiFormControlDisabledStyles = exports.euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
156
141
  var form = euiFormVariables(euiThemeContext);
157
- return "\n color: ".concat(form.controlDisabledColor, ";\n /* Required for Safari */\n -webkit-text-fill-color: ").concat(form.controlDisabledColor, ";\n background-color: ").concat(form.backgroundDisabledColor, ";\n cursor: not-allowed;\n\n ").concat(euiPlaceholderPerBrowser("\n color: ".concat(form.controlDisabledColor, ";\n opacity: 1;\n ")), "\n ");
142
+ return "\n color: ".concat(form.controlDisabledColor, ";\n /* Required for Safari */\n -webkit-text-fill-color: ").concat(form.controlDisabledColor, ";\n background-color: ").concat(form.backgroundDisabledColor, ";\n cursor: not-allowed;\n --euiFormControlStateColor: transparent;\n\n ").concat(euiPlaceholderPerBrowser("\n color: ".concat(form.controlDisabledColor, ";\n opacity: 1;\n ")), "\n ");
158
143
  };
159
144
  var euiFormControlReadOnlyStyles = exports.euiFormControlReadOnlyStyles = function euiFormControlReadOnlyStyles(euiThemeContext) {
160
145
  var form = euiFormVariables(euiThemeContext);
@@ -186,4 +171,67 @@ var euiFormControlAutoFillStyles = exports.euiFormControlAutoFillStyles = functi
186
171
  };
187
172
  var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
188
173
  return "\n &::-webkit-input-placeholder { ".concat(content, " }\n &::-moz-placeholder { ").concat(content, " }\n &:-ms-input-placeholder { ").concat(content, " }\n &:-moz-placeholder { ").concat(content, " }\n &::placeholder { ").concat(content, " }\n");
174
+ };
175
+
176
+ /**
177
+ * Selection custom controls - checkboxes, radios, and switches
178
+ */
179
+
180
+ var euiFormCustomControlVariables = exports.euiFormCustomControlVariables = function euiFormCustomControlVariables(euiThemeContext) {
181
+ var euiTheme = euiThemeContext.euiTheme,
182
+ colorMode = euiThemeContext.colorMode;
183
+ var sizes = {
184
+ control: euiTheme.size.base,
185
+ lineHeight: euiTheme.size.l,
186
+ labelGap: euiTheme.size.s
187
+ };
188
+ var colors = {
189
+ unselected: euiTheme.colors.emptyShade,
190
+ unselectedBorder: colorMode === 'DARK' ? (0, _services.tint)(euiTheme.colors.lightestShade, 0.31) // WCAG AA requirements
191
+ : (0, _services.shade)(euiTheme.colors.lightestShade, 0.4),
192
+ selected: euiTheme.colors.primary,
193
+ selectedIcon: euiTheme.colors.emptyShade,
194
+ disabled: euiTheme.colors.lightShade,
195
+ disabledIcon: euiTheme.colors.darkShade,
196
+ disabledLabel: euiTheme.colors.disabledText // Lighter than formVars.disabledColor because it typically doesn't have as dark a background
197
+ };
198
+ var animation = {
199
+ speed: euiTheme.animation.fast,
200
+ easing: 'ease-in'
201
+ };
202
+ return {
203
+ sizes: sizes,
204
+ colors: colors,
205
+ animation: animation
206
+ };
207
+ };
208
+ var euiFormCustomControlStyles = exports.euiFormCustomControlStyles = function euiFormCustomControlStyles(euiThemeContext) {
209
+ var euiTheme = euiThemeContext.euiTheme;
210
+ var controlVars = euiFormCustomControlVariables(euiThemeContext);
211
+ var centerWithLabel = (0, _global_styling.mathWithUnits)([controlVars.sizes.lineHeight, controlVars.sizes.control], function (x, y) {
212
+ return (x - y) / 2;
213
+ });
214
+ return {
215
+ wrapper: "\n display: flex;\n align-items: flex-start;\n ",
216
+ input: {
217
+ fauxInput: "\n position: relative;\n ".concat((0, _global_styling.logicalCSS)('height', controlVars.sizes.control), "\n ").concat((0, _global_styling.logicalCSS)('width', controlVars.sizes.control), "\n display: flex;\n justify-content: center;\n align-items: center;\n\n &:has(+ label) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', centerWithLabel), "\n }\n\n &:has(input:focus-visible) {\n outline: ").concat(euiTheme.focus.width, " solid ").concat(controlVars.colors.selected, ";\n outline-offset: ").concat(euiTheme.focus.width, ";\n }\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition-property: background-color, color;\n transition-duration: ").concat(controlVars.animation.speed, ";\n transition-timing-function: ").concat(controlVars.animation.easing, ";\n }\n "),
218
+ enabled: {
219
+ selected: "\n color: ".concat(controlVars.colors.selectedIcon, ";\n background-color: ").concat(controlVars.colors.selected, ";\n "),
220
+ unselected: "\n color: transparent;\n background-color: ".concat(controlVars.colors.unselected, ";\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(controlVars.colors.unselectedBorder, ";\n\n &:has(input:focus) {\n border-color: ").concat(controlVars.colors.selected, ";\n }\n ")
221
+ },
222
+ disabled: {
223
+ selected: "\n label: disabled;\n color: ".concat(controlVars.colors.disabledIcon, ";\n background-color: ").concat(controlVars.colors.disabled, ";\n "),
224
+ unselected: "\n label: disabled;\n color: ".concat(controlVars.colors.disabled, ";\n background-color: ").concat(controlVars.colors.disabled, ";\n cursor: not-allowed;\n ")
225
+ },
226
+ // Looks better centered at different zoom levels than just <EuiIcon size="s" />
227
+ icon: "\n transform: scale(0.75);\n ",
228
+ // Hidden input sits on top of the visible element
229
+ hiddenInput: "\n position: absolute;\n inset: 0;\n opacity: 0 !important;\n cursor: pointer;\n\n &:disabled {\n cursor: not-allowed;\n }\n "
230
+ },
231
+ label: {
232
+ label: "\n /* Needs to use padding and not flex gap for extra mouse click area */\n ".concat((0, _global_styling.logicalCSS)('padding-left', controlVars.sizes.labelGap), "\n line-height: ").concat(controlVars.sizes.lineHeight, ";\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";\n "),
233
+ enabled: "\n cursor: pointer;\n ",
234
+ disabled: "\n cursor: not-allowed;\n color: ".concat(controlVars.colors.disabledLabel, ";\n ")
235
+ }
236
+ };
189
237
  };
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.isRightSideIcon = exports.getIconAffordanceStyles = exports.getFormControlClassNameForIconCount = void 0;
7
+ exports.isRightSideIcon = exports.getIconAffordanceStyles = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _form_control_layout_icons = require("./form_control_layout_icons");
10
10
  /*
@@ -15,40 +15,15 @@ var _form_control_layout_icons = require("./form_control_layout_icons");
15
15
  * Side Public License, v 1.
16
16
  */
17
17
 
18
- /**
19
- * The `getFormControlClassNameForIconCount` function helps setup the className appendum
20
- * depending on the form control's current settings/state.
21
- *
22
- * @param icon {boolean} Does it contain a static icon like arrowDown
23
- * @param clear {boolean} Is it currently clearable
24
- * @param isLoading {boolean} Is is currently loading
25
- * @param isInvalid {boolean} It is currently invalid
26
- * @param isDropdown {boolean} It is as dropdown
27
- * @returns {string | undefined} Returns the string to append to the base className of the form control; or `undefined` if all evaluate to false
28
- */
29
-
30
- var getFormControlClassNameForIconCount = exports.getFormControlClassNameForIconCount = function getFormControlClassNameForIconCount(_ref) {
18
+ var isRightSideIcon = exports.isRightSideIcon = function isRightSideIcon(icon) {
19
+ return !!icon && (0, _form_control_layout_icons.isIconShape)(icon) && icon.side === 'right';
20
+ };
21
+ var getIconAffordanceStyles = exports.getIconAffordanceStyles = function getIconAffordanceStyles(_ref) {
31
22
  var icon = _ref.icon,
32
23
  clear = _ref.clear,
33
24
  isLoading = _ref.isLoading,
34
25
  isInvalid = _ref.isInvalid,
35
26
  isDropdown = _ref.isDropdown;
36
- var numIcons = [icon, clear, isInvalid, isLoading, isDropdown].filter(function (item) {
37
- return item === true;
38
- }).length;
39
-
40
- // This className is also specifically used in `src/global_styling/mixins/_form.scss`
41
- return numIcons > 0 ? "euiFormControlLayout--".concat(numIcons, "icons") : undefined;
42
- };
43
- var isRightSideIcon = exports.isRightSideIcon = function isRightSideIcon(icon) {
44
- return !!icon && (0, _form_control_layout_icons.isIconShape)(icon) && icon.side === 'right';
45
- };
46
- var getIconAffordanceStyles = exports.getIconAffordanceStyles = function getIconAffordanceStyles(_ref2) {
47
- var icon = _ref2.icon,
48
- clear = _ref2.clear,
49
- isLoading = _ref2.isLoading,
50
- isInvalid = _ref2.isInvalid,
51
- isDropdown = _ref2.isDropdown;
52
27
  var cssVariables = {
53
28
  '--euiFormControlLeftIconsCount': 0,
54
29
  '--euiFormControlRightIconsCount': 0
@@ -64,9 +39,9 @@ var getIconAffordanceStyles = exports.getIconAffordanceStyles = function getIcon
64
39
  if (isLoading) cssVariables['--euiFormControlRightIconsCount']++;
65
40
  if (isInvalid) cssVariables['--euiFormControlRightIconsCount']++;
66
41
  if (isDropdown) cssVariables['--euiFormControlRightIconsCount']++;
67
- var filtered = Object.entries(cssVariables).filter(function (_ref3) {
68
- var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
69
- count = _ref4[1];
42
+ var filtered = Object.entries(cssVariables).filter(function (_ref2) {
43
+ var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
44
+ count = _ref3[1];
70
45
  return count > 0;
71
46
  });
72
47
  return filtered.length ? Object.fromEntries(filtered) : undefined;
@@ -7,15 +7,19 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.EuiFormControlLayout = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
13
  var _react = _interopRequireWildcard(require("react"));
12
14
  var _classnames = _interopRequireDefault(require("classnames"));
13
- var _num_icons = require("./_num_icons");
14
- var _form_control_layout_icons = require("./form_control_layout_icons");
15
+ var _services = require("../../../services");
15
16
  var _form_label = require("../form_label");
16
17
  var _eui_form_context = require("../eui_form_context");
18
+ var _num_icons = require("./_num_icons");
19
+ var _form_control_layout_icons = require("./form_control_layout_icons");
20
+ var _form_control_layout = require("./form_control_layout.styles");
17
21
  var _react2 = require("@emotion/react");
18
- var _excluded = ["inputId", "className", "children", "icon", "iconsPosition", "clear", "isDropdown", "isLoading", "isInvalid", "isDisabled", "readOnly", "compressed", "prepend", "append", "fullWidth"];
22
+ var _excluded = ["inputId", "className", "children", "icon", "iconsPosition", "clear", "isDropdown", "isLoading", "isInvalid", "isDisabled", "readOnly", "compressed", "prepend", "append", "isDelimited", "wrapperProps", "fullWidth"];
19
23
  /*
20
24
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
21
25
  * or more contributor license agreements. Licensed under the Elastic License
@@ -25,6 +29,8 @@ var _excluded = ["inputId", "className", "children", "icon", "iconsPosition", "c
25
29
  */
26
30
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
27
31
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
32
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28
34
  var EuiFormControlLayout = exports.EuiFormControlLayout = function EuiFormControlLayout(props) {
29
35
  var _useFormContext = (0, _eui_form_context.useFormContext)(),
30
36
  defaultFullWidth = _useFormContext.defaultFullWidth;
@@ -43,16 +49,20 @@ var EuiFormControlLayout = exports.EuiFormControlLayout = function EuiFormContro
43
49
  compressed = props.compressed,
44
50
  prepend = props.prepend,
45
51
  append = props.append,
52
+ isDelimited = props.isDelimited,
53
+ wrapperProps = props.wrapperProps,
46
54
  _props$fullWidth = props.fullWidth,
47
55
  fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
48
56
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
57
+ var isGroup = !!(prepend || append || isDelimited);
49
58
  var classes = (0, _classnames.default)('euiFormControlLayout', {
50
- 'euiFormControlLayout--fullWidth': fullWidth,
51
- 'euiFormControlLayout--compressed': compressed,
52
- 'euiFormControlLayout--readOnly': readOnly,
53
- 'euiFormControlLayout--group': prepend || append,
54
- 'euiFormControlLayout-isDisabled': isDisabled
59
+ 'euiFormControlLayout--group': isGroup && !isDelimited,
60
+ 'euiFormControlLayout-isDisabled': isDisabled,
61
+ 'euiFormControlLayout-readOnly': readOnly
55
62
  }, className);
63
+ var styles = (0, _services.useEuiMemoizedStyles)(_form_control_layout.euiFormControlLayoutStyles);
64
+ var cssStyles = [styles.euiFormControlLayout, compressed ? styles.compressed : styles.uncompressed, fullWidth ? styles.fullWidth : styles.formWidth].concat((0, _toConsumableArray2.default)(isGroup ? [styles.group.group, compressed ? styles.group.compressed : styles.group.uncompressed] : []));
65
+ var childrenWrapperStyles = [styles.children.euiFormControlLayout__childrenWrapper, isGroup && styles.children.inGroup, isGroup && !append && styles.children.prependOnly, isGroup && !prepend && styles.children.appendOnly, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.css];
56
66
  var hasDropdownIcon = !readOnly && !isDisabled && isDropdown;
57
67
  var hasRightIcon = (0, _num_icons.isRightSideIcon)(icon);
58
68
  var hasLeftIcon = icon && !hasRightIcon;
@@ -69,19 +79,23 @@ var EuiFormControlLayout = exports.EuiFormControlLayout = function EuiFormContro
69
79
  });
70
80
  }, [iconsPosition, icon, clear, isInvalid, isLoading, hasDropdownIcon]);
71
81
  return (0, _react2.jsx)("div", (0, _extends2.default)({
82
+ css: cssStyles,
72
83
  className: classes
73
84
  }, rest), (0, _react2.jsx)(EuiFormControlLayoutSideNodes, {
74
85
  side: "prepend",
75
86
  nodes: prepend,
76
- inputId: inputId
77
- }), (0, _react2.jsx)("div", {
78
- className: "euiFormControlLayout__childrenWrapper",
79
- style: iconAffordanceStyles
80
- }, hasLeftIcon && (0, _react2.jsx)(_form_control_layout_icons.EuiFormControlLayoutIcons, {
87
+ inputId: inputId,
88
+ compressed: compressed
89
+ }), (0, _react2.jsx)("div", (0, _extends2.default)({}, wrapperProps, {
90
+ css: childrenWrapperStyles,
91
+ className: (0, _classnames.default)('euiFormControlLayout__childrenWrapper', wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className),
92
+ style: _objectSpread(_objectSpread({}, iconAffordanceStyles), wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.style)
93
+ }), hasLeftIcon && (0, _react2.jsx)(_form_control_layout_icons.EuiFormControlLayoutIcons, {
81
94
  side: "left",
82
95
  icon: icon,
83
96
  iconsPosition: iconsPosition,
84
- compressed: compressed
97
+ compressed: compressed,
98
+ isDisabled: isDisabled
85
99
  }), children, hasRightIcons && (0, _react2.jsx)(_form_control_layout_icons.EuiFormControlLayoutIcons, {
86
100
  side: "right",
87
101
  icon: hasRightIcon ? icon : undefined,
@@ -90,11 +104,13 @@ var EuiFormControlLayout = exports.EuiFormControlLayout = function EuiFormContro
90
104
  clear: clear,
91
105
  isLoading: isLoading,
92
106
  isInvalid: isInvalid,
93
- isDropdown: hasDropdownIcon
107
+ isDropdown: hasDropdownIcon,
108
+ isDisabled: isDisabled
94
109
  })), (0, _react2.jsx)(EuiFormControlLayoutSideNodes, {
95
110
  side: "append",
96
111
  nodes: append,
97
- inputId: inputId
112
+ inputId: inputId,
113
+ compressed: compressed
98
114
  }));
99
115
  };
100
116
 
@@ -104,19 +120,18 @@ var EuiFormControlLayout = exports.EuiFormControlLayout = function EuiFormContro
104
120
  var EuiFormControlLayoutSideNodes = function EuiFormControlLayoutSideNodes(_ref) {
105
121
  var side = _ref.side,
106
122
  nodes = _ref.nodes,
107
- inputId = _ref.inputId;
123
+ inputId = _ref.inputId,
124
+ compressed = _ref.compressed;
108
125
  var className = "euiFormControlLayout__".concat(side);
109
- var renderFormLabel = (0, _react.useCallback)(function (label) {
110
- return (0, _react2.jsx)(_form_label.EuiFormLabel, {
111
- htmlFor: inputId,
112
- className: className
113
- }, label);
114
- }, [inputId, className]);
126
+ var styles = (0, _services.useEuiMemoizedStyles)(_form_control_layout.euiFormControlLayoutSideNodeStyles);
127
+ var cssStyles = [styles.euiFormControlLayout__side, styles[side], compressed ? styles.compressed : styles.uncompressed];
115
128
  if (!nodes) return null;
116
- return (0, _react2.jsx)(_react.default.Fragment, null, _react.default.Children.map(nodes, function (node, index) {
117
- return typeof node === 'string' ? renderFormLabel(node) : /*#__PURE__*/(0, _react.cloneElement)(node, {
118
- className: (0, _classnames.default)(className, node.props.className),
119
- key: index
120
- });
129
+ return (0, _react2.jsx)("div", {
130
+ css: cssStyles,
131
+ className: className
132
+ }, _react.default.Children.map(nodes, function (node) {
133
+ return typeof node === 'string' ? (0, _react2.jsx)(_form_label.EuiFormLabel, {
134
+ htmlFor: inputId
135
+ }, node) : node;
121
136
  }));
122
137
  };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiFormControlLayoutStyles = exports.euiFormControlLayoutSideNodeStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _global_styling = require("../../../global_styling");
9
+ var _form = require("../form.styles");
10
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+ var _ref = process.env.NODE_ENV === "production" ? {
18
+ name: "1w10n1m-inGroup",
19
+ styles: "flex-grow:1;overflow:hidden;label:inGroup;"
20
+ } : {
21
+ name: "1w10n1m-inGroup",
22
+ styles: "flex-grow:1;overflow:hidden;label:inGroup;",
23
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
+ };
25
+ var _ref2 = process.env.NODE_ENV === "production" ? {
26
+ name: "1lbfa6m-euiFormControlLayout__childrenWrapper",
27
+ styles: "position:relative;label:euiFormControlLayout__childrenWrapper;"
28
+ } : {
29
+ name: "1lbfa6m-euiFormControlLayout__childrenWrapper",
30
+ styles: "position:relative;label:euiFormControlLayout__childrenWrapper;",
31
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
32
+ };
33
+ var euiFormControlLayoutStyles = exports.euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiThemeContext) {
34
+ var euiTheme = euiThemeContext.euiTheme;
35
+ var form = (0, _form.euiFormVariables)(euiThemeContext);
36
+ return {
37
+ euiFormControlLayout: /*#__PURE__*/(0, _react.css)(";label:euiFormControlLayout;"),
38
+ // Skip the css`` on the default height to avoid generating a className
39
+ uncompressed: "\n ".concat((0, _global_styling.logicalCSS)('height', form.controlHeight), "\n "),
40
+ compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', form.controlCompressedHeight), ";;label:compressed;"),
41
+ // Skip the css`` on the default width to avoid generating a className
42
+ formWidth: "\n ".concat((0, _global_styling.logicalCSS)('max-width', form.maxWidth), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n "),
43
+ fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
44
+ group: {
45
+ group: /*#__PURE__*/(0, _react.css)("display:flex;align-items:stretch;border:", euiTheme.border.width.thin, " solid ", form.borderColor, ";background-color:", form.backgroundColor, ";overflow:hidden;>*{", (0, _global_styling.logicalCSS)('height', '100%'), ";};label:group;"),
46
+ // Skipping css`` to avoid repeated compressed/uncompressed classNames
47
+ uncompressed: "\n border-radius: ".concat(form.controlBorderRadius, ";\n "),
48
+ compressed: "\n border-radius: ".concat(form.controlCompressedBorderRadius, ";\n ")
49
+ },
50
+ children: {
51
+ euiFormControlLayout__childrenWrapper: _ref2,
52
+ inGroup: _ref,
53
+ prependOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), ";;label:prependOnly;"),
54
+ appendOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), " ", (0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), ";;label:appendOnly;")
55
+ }
56
+ };
57
+ };
58
+ var euiFormControlLayoutSideNodeStyles = exports.euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSideNodeStyles(euiThemeContext) {
59
+ var euiTheme = euiThemeContext.euiTheme;
60
+ var form = (0, _form.euiFormVariables)(euiThemeContext);
61
+ var uncompressedHeight = (0, _global_styling.mathWithUnits)([form.controlHeight, euiTheme.border.width.thin], function (x, y) {
62
+ return x - y * 2;
63
+ });
64
+ var compressedHeight = (0, _global_styling.mathWithUnits)([form.controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
65
+ return x - y * 2;
66
+ });
67
+ var buttons = '*:is(.euiButton, .euiButtonEmpty, .euiButtonIcon)';
68
+ var text = '*:is(.euiFormLabel, .euiText)';
69
+ return {
70
+ euiFormControlLayout__side: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.euiTextTruncate)('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.xs, ";background-color:", form.appendPrependBackground, ";", buttons, "{transform:none!important;&:focus-visible{outline-offset:-", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:not(:has(> ", buttons, ":first-child, > *:first-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), ";}&:not(:has(> ", buttons, ":last-child, > *:last-child > ", buttons, ")){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), ";};label:euiFormControlLayout__side;"),
71
+ append: /*#__PURE__*/(0, _react.css)(";label:append;"),
72
+ prepend: /*#__PURE__*/(0, _react.css)(";label:prepend;"),
73
+ uncompressed: "\n ".concat(text, " {\n ").concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), "\n line-height: ").concat(uncompressedHeight, ";\n }\n\n ").concat(buttons, " {\n ").concat((0, _global_styling.logicalCSS)('height', uncompressedHeight), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat((0, _global_styling.logicalCSS)('width', euiTheme.size.xl), "\n }\n "),
74
+ compressed: /*#__PURE__*/(0, _react.css)(text, "{", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xxs), " line-height:", compressedHeight, ";}", buttons, "{", (0, _global_styling.logicalCSS)('height', compressedHeight), ";}.euiButtonIcon{flex-shrink:0;", (0, _global_styling.logicalCSS)('width', euiTheme.size.xl), ";};label:compressed;")
75
+ };
76
+ };
@@ -4,14 +4,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.SIZES = exports.EuiFormControlLayoutClearButton = void 0;
7
+ exports.EuiFormControlLayoutClearButton = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
- var _common = require("../../common");
12
+ var _services = require("../../../services");
13
13
  var _icon = require("../../icon");
14
14
  var _i18n = require("../../i18n");
15
+ var _form_control_layout_clear_button = require("./form_control_layout_clear_button.styles");
15
16
  var _react2 = require("@emotion/react");
16
17
  var _excluded = ["className", "onClick", "size"];
17
18
  /*
@@ -21,30 +22,26 @@ var _excluded = ["className", "onClick", "size"];
21
22
  * in compliance with, at your election, the Elastic License 2.0 or the Server
22
23
  * Side Public License, v 1.
23
24
  */
24
- var sizeToClassNameMap = {
25
- s: 'euiFormControlLayoutClearButton--small',
26
- m: null
27
- };
28
- var SIZES = exports.SIZES = (0, _common.keysOf)(sizeToClassNameMap);
29
25
  var EuiFormControlLayoutClearButton = exports.EuiFormControlLayoutClearButton = function EuiFormControlLayoutClearButton(_ref) {
30
26
  var className = _ref.className,
31
27
  onClick = _ref.onClick,
32
28
  _ref$size = _ref.size,
33
29
  size = _ref$size === void 0 ? 'm' : _ref$size,
34
30
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
35
- var classes = (0, _classnames.default)('euiFormControlLayoutClearButton', sizeToClassNameMap[size], className);
36
- return (0, _react2.jsx)(_i18n.EuiI18n, {
37
- token: "euiFormControlLayoutClearButton.label",
38
- default: "Clear input"
39
- }, function (label) {
40
- return (0, _react2.jsx)("button", (0, _extends2.default)({
41
- type: "button",
42
- className: classes,
43
- onClick: onClick,
44
- "aria-label": label
45
- }, rest), (0, _react2.jsx)(_icon.EuiIcon, {
46
- className: "euiFormControlLayoutClearButton__icon",
47
- type: "cross"
48
- }));
49
- });
31
+ var classes = (0, _classnames.default)('euiFormControlLayoutClearButton', className);
32
+ var styles = (0, _services.useEuiMemoizedStyles)(_form_control_layout_clear_button.EuiFormControlLayoutClearButtonStyles);
33
+ var iconStyles = [styles.euiFormControlLayoutClearButton__icon, styles.size[size]];
34
+ var ariaLabel = (0, _i18n.useEuiI18n)('euiFormControlLayoutClearButton.label', 'Clear input');
35
+ return (0, _react2.jsx)("button", (0, _extends2.default)({
36
+ type: "button",
37
+ css: styles.euiFormControlLayoutClearButton,
38
+ className: classes,
39
+ onClick: onClick,
40
+ "aria-label": ariaLabel
41
+ }, rest), (0, _react2.jsx)(_icon.EuiIcon, {
42
+ css: iconStyles,
43
+ className: "euiFormControlLayoutClearButton__icon",
44
+ type: "cross",
45
+ size: size
46
+ }));
50
47
  };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EuiFormControlLayoutClearButtonStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ /*
9
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
+ * or more contributor license agreements. Licensed under the Elastic License
11
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
12
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
13
+ * Side Public License, v 1.
14
+ */
15
+
16
+ var EuiFormControlLayoutClearButtonStyles = exports.EuiFormControlLayoutClearButtonStyles = function EuiFormControlLayoutClearButtonStyles(_ref) {
17
+ var euiTheme = _ref.euiTheme,
18
+ colorMode = _ref.colorMode;
19
+ var backgroundColor = colorMode === 'DARK' ? euiTheme.colors.darkShade : euiTheme.colors.mediumShade;
20
+ return {
21
+ euiFormControlLayoutClearButton: /*#__PURE__*/(0, _react.css)("pointer-events:all;background-color:", backgroundColor, ";border-radius:50%;line-height:0;&:disabled{cursor:not-allowed;background-color:", euiTheme.colors.disabled, ";};label:euiFormControlLayoutClearButton;"),
22
+ euiFormControlLayoutClearButton__icon: /*#__PURE__*/(0, _react.css)("transform:scale(0.5);fill:", euiTheme.colors.emptyShade, ";stroke:", euiTheme.colors.emptyShade, ";;label:euiFormControlLayoutClearButton__icon;"),
23
+ size: {
24
+ s: /*#__PURE__*/(0, _react.css)("stroke-width:", euiTheme.size.xs, ";;label:s;"),
25
+ m: /*#__PURE__*/(0, _react.css)("stroke-width:", euiTheme.size.xxs, ";;label:m;")
26
+ }
27
+ };
28
+ };
@@ -8,11 +8,11 @@ exports.EuiFormControlLayoutCustomIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
+ var _react2 = require("@emotion/react");
11
12
  var _classnames = _interopRequireDefault(require("classnames"));
12
13
  var _icon = require("../../icon");
13
- var _react2 = require("@emotion/react");
14
- var _excluded = ["className", "onClick", "type", "iconRef", "size", "color"];
15
- /*
14
+ var _excluded = ["className", "onClick", "type", "iconRef", "size", "color", "disabled"];
15
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
16
16
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
17
17
  * or more contributor license agreements. Licensed under the Elastic License
18
18
  * 2.0 and the Server Side Public License, v 1; you may not use this file except
@@ -26,14 +26,16 @@ var EuiFormControlLayoutCustomIcon = exports.EuiFormControlLayoutCustomIcon = fu
26
26
  iconRef = _ref.iconRef,
27
27
  size = _ref.size,
28
28
  color = _ref.color,
29
+ disabled = _ref.disabled,
29
30
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
30
- var classes = (0, _classnames.default)('euiFormControlLayoutCustomIcon', className, {
31
- 'euiFormControlLayoutCustomIcon--clickable': onClick
32
- });
31
+ var classes = (0, _classnames.default)('euiFormControlLayoutCustomIcon', className);
32
+ var cssStyles = [styles.euiFormControlLayoutCustomIcon, onClick ? styles.clickable : styles.unclickable];
33
33
  if (onClick) {
34
34
  return (0, _react2.jsx)("button", (0, _extends2.default)({
35
35
  type: "button",
36
36
  onClick: onClick,
37
+ disabled: disabled,
38
+ css: cssStyles,
37
39
  className: classes,
38
40
  ref: iconRef
39
41
  }, rest), (0, _react2.jsx)(_icon.EuiIcon, {
@@ -45,6 +47,7 @@ var EuiFormControlLayoutCustomIcon = exports.EuiFormControlLayoutCustomIcon = fu
45
47
  }));
46
48
  }
47
49
  return (0, _react2.jsx)("span", (0, _extends2.default)({
50
+ css: cssStyles,
48
51
  className: classes,
49
52
  ref: iconRef
50
53
  }, rest), (0, _react2.jsx)(_icon.EuiIcon, {
@@ -54,4 +57,24 @@ var EuiFormControlLayoutCustomIcon = exports.EuiFormControlLayoutCustomIcon = fu
54
57
  type: type,
55
58
  color: color
56
59
  }));
60
+ };
61
+ var styles = {
62
+ euiFormControlLayoutCustomIcon: process.env.NODE_ENV === "production" ? {
63
+ name: "7d1ma8-euiFormControlLayoutCustomIcon",
64
+ styles: "font-size:0;label:euiFormControlLayoutCustomIcon;"
65
+ } : {
66
+ name: "7d1ma8-euiFormControlLayoutCustomIcon",
67
+ styles: "font-size:0;label:euiFormControlLayoutCustomIcon;",
68
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
69
+ },
70
+ // Skip css`` here to avoid generating an Emotion className
71
+ unclickable: "\n pointer-events: none;\n ",
72
+ clickable: process.env.NODE_ENV === "production" ? {
73
+ name: "1j8wgxj-clickable",
74
+ styles: "pointer-events:all;&:disabled{cursor:not-allowed;color:currentColor;};label:clickable;"
75
+ } : {
76
+ name: "1j8wgxj-clickable",
77
+ styles: "pointer-events:all;&:disabled{cursor:not-allowed;color:currentColor;};label:clickable;",
78
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
79
+ }
57
80
  };