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