@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
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiHeaderLink = void 0;
|
|
8
|
-
var
|
|
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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _button = require("../../button");
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
|
-
var _excluded = ["isActive", "className"];
|
|
15
|
+
var _excluded = ["isActive", "className", "size"];
|
|
16
16
|
/*
|
|
17
17
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
18
18
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,21 +20,20 @@ var _excluded = ["isActive", "className"];
|
|
|
20
20
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
21
|
* Side Public License, v 1.
|
|
22
22
|
*/
|
|
23
|
-
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; }
|
|
24
|
-
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; }
|
|
25
23
|
var EuiHeaderLink = exports.EuiHeaderLink = function EuiHeaderLink(_ref) {
|
|
26
24
|
var isActive = _ref.isActive,
|
|
27
25
|
className = _ref.className,
|
|
26
|
+
_ref$size = _ref.size,
|
|
27
|
+
size = _ref$size === void 0 ? 's' : _ref$size,
|
|
28
28
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
29
|
var classes = (0, _classnames.default)('euiHeaderLink', {
|
|
30
30
|
'euiHeaderLink-isActive': isActive
|
|
31
31
|
}, className);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
return (0, _react2.jsx)(_button.EuiButtonEmpty, props);
|
|
32
|
+
return (0, _react2.jsx)(_button.EuiButtonEmpty, (0, _extends2.default)({
|
|
33
|
+
className: classes,
|
|
34
|
+
color: isActive ? 'primary' : 'text',
|
|
35
|
+
size: size
|
|
36
|
+
}, rest));
|
|
38
37
|
};
|
|
39
38
|
EuiHeaderLink.propTypes = {
|
|
40
39
|
href: _propTypes.default.string,
|
|
@@ -102,7 +102,7 @@ var EuiHeaderLinks = exports.EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
102
102
|
isOpen: mobileMenuIsOpen,
|
|
103
103
|
anchorPosition: "downRight",
|
|
104
104
|
closePopover: closeMenu,
|
|
105
|
-
panelPaddingSize: "
|
|
105
|
+
panelPaddingSize: "s",
|
|
106
106
|
repositionOnScroll: true
|
|
107
107
|
}, popoverProps), (0, _react2.jsx)("div", {
|
|
108
108
|
className: "euiHeaderLinks__mobileList",
|
|
@@ -40,6 +40,6 @@ var euiHeaderLinksStyles = exports.euiHeaderLinksStyles = function euiHeaderLink
|
|
|
40
40
|
m: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.base, ";;label:m;"),
|
|
41
41
|
l: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.l, ";;label:l;")
|
|
42
42
|
},
|
|
43
|
-
euiHeaderLinks__mobileList: /*#__PURE__*/(0, _react.css)(".euiHeaderLink{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), "
|
|
43
|
+
euiHeaderLinks__mobileList: /*#__PURE__*/(0, _react.css)(".euiHeaderLink{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), "&>.euiButtonEmpty__content{justify-content:flex-start;}};label:euiHeaderLinks__mobileList;")
|
|
44
44
|
};
|
|
45
45
|
};
|
|
@@ -21,14 +21,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
21
21
|
* See https://github.com/emotion-js/emotion/issues/1404
|
|
22
22
|
*/
|
|
23
23
|
var cloneElementWithCss = exports.cloneElementWithCss = function cloneElementWithCss(element, props) {
|
|
24
|
+
var cssOrder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'after';
|
|
24
25
|
var clonedElement = element.props.__EMOTION_TYPE_PLEASE_DO_NOT_USE__ || element.type; // EMOTION_TYPE handles non-React elements (native JSX/HTML nodes)
|
|
25
26
|
|
|
26
|
-
var clonedProps = _objectSpread(_objectSpread({
|
|
27
|
-
key: element.key
|
|
27
|
+
var clonedProps = _objectSpread(_objectSpread(_objectSpread({}, element.key ? {
|
|
28
|
+
key: element.key
|
|
29
|
+
} : {}), {}, {
|
|
28
30
|
ref: element.ref
|
|
29
31
|
}, element.props), props);
|
|
30
32
|
if (props.css || element.props.css) {
|
|
31
|
-
clonedProps.css = [element.props.css, props.css];
|
|
33
|
+
clonedProps.css = cssOrder === 'before' ? [props.css, element.props.css] : [element.props.css, props.css];
|
|
32
34
|
}
|
|
33
35
|
return (0, _react.jsx)(clonedElement, clonedProps);
|
|
34
36
|
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@import 'checkbox/index';
|
|
2
|
-
@import 'described_form_group/index';
|
|
3
|
-
@import 'form';
|
|
4
|
-
@import 'form_control_layout/index';
|
|
5
|
-
@import 'form_error_text/index';
|
|
6
|
-
@import 'form_fieldset/index';
|
|
7
|
-
@import 'form_help_text/index';
|
|
8
|
-
@import 'form_label/index';
|
|
9
|
-
@import 'form_row/index';
|
|
10
|
-
@import 'radio/index';
|
|
11
|
-
@import 'switch/index';
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
-
// stylelint-disable max-nesting-depth
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 1. Float above the visual radio and match its dimension, so that when users try to click it
|
|
6
|
-
* they actually click this input.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
.euiCheckbox {
|
|
10
|
-
position: relative;
|
|
11
|
-
|
|
12
|
-
// Set a top offset for the real input and faux input to align better with the text
|
|
13
|
-
$topOffset: (($euiSizeL - $euiCheckBoxSize) / 2) - 1px;
|
|
14
|
-
|
|
15
|
-
.euiCheckbox__input {
|
|
16
|
-
@include size($euiCheckBoxSize);
|
|
17
|
-
top: $topOffset;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
position: absolute; /* 1 */
|
|
20
|
-
opacity: 0; /* 1 */
|
|
21
|
-
z-index: 1; /* 1 */
|
|
22
|
-
|
|
23
|
-
~ .euiCheckbox__label {
|
|
24
|
-
display: inline-block;
|
|
25
|
-
padding-left: ($euiCheckBoxSize * 1.5);
|
|
26
|
-
line-height: $euiSizeL;
|
|
27
|
-
font-size: $euiFontSizeS;
|
|
28
|
-
position: relative;
|
|
29
|
-
z-index: 2;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
+ .euiCheckbox__square {
|
|
34
|
-
@include euiCustomControl($type: 'square', $size: $euiCheckBoxSize);
|
|
35
|
-
display: inline-block;
|
|
36
|
-
position: absolute;
|
|
37
|
-
left: 0;
|
|
38
|
-
top: $topOffset;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:checked {
|
|
42
|
-
+ .euiCheckbox__square {
|
|
43
|
-
@include euiCustomControlSelected($type: 'check');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:indeterminate {
|
|
48
|
-
+ .euiCheckbox__square {
|
|
49
|
-
@include euiCustomControlSelected($type: 'square');
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus {
|
|
54
|
-
+ .euiCheckbox__square {
|
|
55
|
-
@include euiCustomControlFocused;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Readonly checkboxes are used by EuiMarkdownEditor
|
|
60
|
-
&[readonly] {
|
|
61
|
-
cursor: default !important; // stylelint-disable-line declaration-no-important
|
|
62
|
-
|
|
63
|
-
~ .euiCheckbox__label {
|
|
64
|
-
cursor: default !important; // stylelint-disable-line declaration-no-important
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// maintain the initial color to enforce that clicks are not doing anything
|
|
68
|
-
&:focus {
|
|
69
|
-
+ .euiCheckbox__square {
|
|
70
|
-
outline-color: $euiFormCustomControlBorderColor !important; // stylelint-disable-line declaration-no-important
|
|
71
|
-
border-color: $euiFormCustomControlBorderColor;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&[disabled] {
|
|
77
|
-
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
78
|
-
|
|
79
|
-
~ .euiCheckbox__label {
|
|
80
|
-
color: $euiFormControlDisabledColor;
|
|
81
|
-
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
+ .euiCheckbox__square {
|
|
85
|
-
@include euiCustomControlDisabled;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:checked[disabled] {
|
|
90
|
-
+ .euiCheckbox__square {
|
|
91
|
-
@include euiCustomControlDisabled($type: 'check');
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:indeterminate[disabled] {
|
|
96
|
-
+ .euiCheckbox__square {
|
|
97
|
-
@include euiCustomControlDisabled($type: 'square');
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.euiCheckbox--noLabel {
|
|
103
|
-
min-height: $euiCheckBoxSize;
|
|
104
|
-
min-width: $euiCheckBoxSize;
|
|
105
|
-
|
|
106
|
-
.euiCheckbox__input,
|
|
107
|
-
.euiCheckbox__square {
|
|
108
|
-
top: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.euiCheckbox__input {
|
|
112
|
-
margin: 0;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'checkbox';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.euiDescribedFormGroup {
|
|
2
|
-
max-width: $euiFormMaxWidth * 2;
|
|
3
|
-
|
|
4
|
-
+ * {
|
|
5
|
-
margin-top: $euiSizeL;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&.euiDescribedFormGroup--fullWidth {
|
|
9
|
-
max-width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.euiDescribedFormGroup__description {
|
|
13
|
-
padding-top: $euiSizeS;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.euiDescribedFormGroup__fields {
|
|
17
|
-
min-width: 0; // Needed to support shrinking appropriately with viewport (prevents x-axis content overflow)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.euiDescribedFormGroup__fields > .euiFormRow--hasEmptyLabelSpace:first-child,
|
|
21
|
-
.euiDescribedFormGroup__fields > .euiFormRow:first-child:not(.euiFormRow--hasLabel) {
|
|
22
|
-
// Remove the forced margin
|
|
23
|
-
margin-top: 0;
|
|
24
|
-
|
|
25
|
-
// This fakes out flex into thinking there's text before the input and therefor aligns properly to the baseline
|
|
26
|
-
&::before {
|
|
27
|
-
content: '';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.euiDescribedFormGroup__descriptionColumn {
|
|
33
|
-
min-width: MIN(20rem, 50%);
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'described_form_group';
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
-
// stylelint-disable max-nesting-depth
|
|
3
|
-
|
|
4
|
-
.euiFormControlLayout {
|
|
5
|
-
// Let the height expand as needed
|
|
6
|
-
@include euiFormControlSize($includeAlternates: true);
|
|
7
|
-
|
|
8
|
-
// TODO: Remove this once all form controls are on Emotion/setting padding via CSS variables
|
|
9
|
-
$iconSize: map-get($euiFormControlIconSizes, 'medium');
|
|
10
|
-
$iconPadding: $euiFormControlPadding;
|
|
11
|
-
$marginBetweenIcons: $euiFormControlPadding / 2;
|
|
12
|
-
|
|
13
|
-
// The `.euiFormControlLayout-{num}icons` selector string is also declared in `src/components/form/form_control_layout/_num_icons.test.ts`.
|
|
14
|
-
// It is the same for all form controls so as to lessen the total classes exported,
|
|
15
|
-
// we use a form control layout class on all form controls.
|
|
16
|
-
@for $i from 1 through 5 {
|
|
17
|
-
&--#{$i}icons {
|
|
18
|
-
$paddingOffset: $iconPadding + ($iconSize + $marginBetweenIcons) * $i;
|
|
19
|
-
|
|
20
|
-
--eui-form-control-layout-icons-padding: #{$paddingOffset}; // Set this for flexible usage, e.g. components that need extra specificity
|
|
21
|
-
padding-right: $paddingOffset;
|
|
22
|
-
|
|
23
|
-
&[class*='compressed'] {
|
|
24
|
-
$iconSizeCompressed: map-get($euiFormControlIconSizes, 'small');
|
|
25
|
-
$iconPaddingCompressed: $euiFormControlCompressedPadding;
|
|
26
|
-
$paddingOffset: $iconPaddingCompressed + ($iconSizeCompressed + $marginBetweenIcons) * $i;
|
|
27
|
-
|
|
28
|
-
--eui-form-control-layout-icons-padding: #{$paddingOffset};
|
|
29
|
-
padding-right: $paddingOffset;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.euiFormControlLayout__childrenWrapper {
|
|
36
|
-
position: relative;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 1. Account for inner box-shadow style border
|
|
41
|
-
* 2. Ensure truncation works in children elements
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
.euiFormControlLayout--group {
|
|
45
|
-
// Match just the regular drop shadow of inputs
|
|
46
|
-
@include euiFormControlDefaultShadow;
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: stretch;
|
|
49
|
-
padding: 1px; /* 1 */
|
|
50
|
-
|
|
51
|
-
// Force the stretch of any children so they expand the full height of the control
|
|
52
|
-
> *,
|
|
53
|
-
.euiButtonEmpty,
|
|
54
|
-
.euiText,
|
|
55
|
-
.euiFormLabel,
|
|
56
|
-
.euiButtonIcon {
|
|
57
|
-
height: 100%;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.euiFormControlLayout__childrenWrapper {
|
|
61
|
-
flex-grow: 1;
|
|
62
|
-
overflow: hidden; /* 2 */
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.euiFormControlLayout__prepend,
|
|
66
|
-
.euiFormControlLayout__append {
|
|
67
|
-
@include euiTextTruncate;
|
|
68
|
-
flex-shrink: 0;
|
|
69
|
-
height: 100%;
|
|
70
|
-
border-radius: 0;
|
|
71
|
-
|
|
72
|
-
// ICONS
|
|
73
|
-
|
|
74
|
-
&.euiIcon,
|
|
75
|
-
.euiIcon {
|
|
76
|
-
padding: 0 $euiSizeS;
|
|
77
|
-
width: $euiSizeXL;
|
|
78
|
-
border-radius: 0;
|
|
79
|
-
background-color: $euiFormInputGroupLabelBackground;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.euiButtonIcon,
|
|
83
|
-
&.euiButtonEmpty,
|
|
84
|
-
.euiButtonIcon,
|
|
85
|
-
.euiButtonEmpty {
|
|
86
|
-
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
87
|
-
|
|
88
|
-
// Undo sizing from icons inside buttons
|
|
89
|
-
.euiIcon {
|
|
90
|
-
background: none !important; // stylelint-disable-line declaration-no-important
|
|
91
|
-
padding: 0;
|
|
92
|
-
width: $euiSize;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.euiButtonIcon {
|
|
98
|
-
padding: 0 $euiSizeS;
|
|
99
|
-
width: $euiSizeXL;
|
|
100
|
-
border-radius: 0;
|
|
101
|
-
|
|
102
|
-
&:not(:focus) {
|
|
103
|
-
background-color: $euiFormInputGroupLabelBackground;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:focus-visible {
|
|
107
|
-
outline: 2px solid $euiFocusRingColor;
|
|
108
|
-
outline-offset: -2px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.euiToolTipAnchor > .euiIcon {
|
|
113
|
-
height: 100%;
|
|
114
|
-
background-color: $euiFormInputGroupLabelBackground;
|
|
115
|
-
padding: 0 $euiSizeS;
|
|
116
|
-
width: $euiSizeXL;
|
|
117
|
-
border-radius: 0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
> .euiFormControlLayout__prepend,
|
|
121
|
-
> .euiFormControlLayout__append {
|
|
122
|
-
max-width: 50%; // Make sure max-width only applies to the outer most append/prepend element
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// stylelint-disable declaration-no-important
|
|
126
|
-
// This is the only way to target specific components to override styling
|
|
127
|
-
|
|
128
|
-
// TEXT
|
|
129
|
-
|
|
130
|
-
.euiFormLabel,
|
|
131
|
-
.euiText:not(.euiFormControlLayoutDelimited__delimiter) {
|
|
132
|
-
background-color: $euiFormInputGroupLabelBackground;
|
|
133
|
-
padding: $euiFormControlPadding;
|
|
134
|
-
line-height: $euiSize !important;
|
|
135
|
-
cursor: default !important; // pointer cursor on some form labels but not others is confusing
|
|
136
|
-
|
|
137
|
-
// If the next sibling is not the input, pull it closer to the text to reduce space
|
|
138
|
-
+ *:not(.euiFormControlLayout__childrenWrapper):not(input) {
|
|
139
|
-
margin-left: -$euiFormControlPadding;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// If any child that is not the input has a next sibling that is text, pull it closer to the text to reduce space
|
|
144
|
-
> *:not(.euiFormControlLayout__childrenWrapper) {
|
|
145
|
-
+ .euiFormLabel,
|
|
146
|
-
+ .euiText {
|
|
147
|
-
margin-left: -$euiFormControlPadding;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// BORDERS on buttons only
|
|
152
|
-
|
|
153
|
-
.euiButtonEmpty {
|
|
154
|
-
border-right: $euiFormInputGroupBorder;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Any buttons after the children wrapper or inside any elements after the children wrapper
|
|
158
|
-
// Need to swap border sides
|
|
159
|
-
.euiFormControlLayout__childrenWrapper ~ .euiButtonEmpty,
|
|
160
|
-
.euiFormControlLayout__childrenWrapper ~ * .euiButtonEmpty {
|
|
161
|
-
border-right: none;
|
|
162
|
-
border-left: $euiFormInputGroupBorder;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// Compressed alterations
|
|
166
|
-
|
|
167
|
-
&.euiFormControlLayout--compressed {
|
|
168
|
-
@include euiFormControlDefaultShadow($borderOnly: true);
|
|
169
|
-
border-radius: $euiBorderRadius / 2;
|
|
170
|
-
overflow: hidden; // Keeps backgrounds inside border radius
|
|
171
|
-
|
|
172
|
-
// Padding
|
|
173
|
-
.euiFormLabel,
|
|
174
|
-
.euiText:not(.euiFormControlLayoutDelimited__delimiter) {
|
|
175
|
-
padding: $euiFormControlCompressedPadding;
|
|
176
|
-
|
|
177
|
-
// If the next sibling is not the input, pull it closer to the text to reduce space
|
|
178
|
-
+ *:not(.euiFormControlLayout__childrenWrapper) {
|
|
179
|
-
margin-left: -$euiFormControlCompressedPadding;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// If any child that is not the input has a next sibling that is text, pull it closer to the text to reduce space
|
|
184
|
-
> *:not(.euiFormControlLayout__childrenWrapper) {
|
|
185
|
-
+ .euiFormLabel,
|
|
186
|
-
+ .euiText {
|
|
187
|
-
margin-left: -$euiFormControlCompressedPadding;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// ReadOnly alterations
|
|
193
|
-
&.euiFormControlLayout--readOnly {
|
|
194
|
-
cursor: default;
|
|
195
|
-
background: $euiFormInputGroupLabelBackground;
|
|
196
|
-
border-color: transparent;
|
|
197
|
-
box-shadow: inset 0 0 0 1px $euiFormInputGroupLabelBackground;
|
|
198
|
-
|
|
199
|
-
input {
|
|
200
|
-
background-color: $euiFormBackgroundReadOnlyColor;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
.euiFormControlLayoutClearButton {
|
|
2
|
-
@include euiFormControlLayoutClearIcon('.euiFormControlLayoutClearButton__icon');
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.euiFormControlLayoutClearButton--small {
|
|
6
|
-
@include euiFormControlLayoutClearIcon('.euiFormControlLayoutClearButton__icon', $size: 's');
|
|
7
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.euiFormControlLayoutCustomIcon {
|
|
2
|
-
pointer-events: none;
|
|
3
|
-
font-size: 0; // ensures the icon stays vertically centered
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.euiFormControlLayoutCustomIcon--clickable {
|
|
7
|
-
@include size($euiSize);
|
|
8
|
-
|
|
9
|
-
pointer-events: all;
|
|
10
|
-
|
|
11
|
-
.euiFormControlLayoutCustomIcon__icon {
|
|
12
|
-
vertical-align: baseline;
|
|
13
|
-
transform: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:focus {
|
|
17
|
-
@include euiFocusRing;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:disabled {
|
|
21
|
-
cursor: not-allowed;
|
|
22
|
-
color: $euiFormControlDisabledColor;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
.euiFormControlLayoutDelimited {
|
|
2
|
-
// Match just the regular drop shadow of inputs
|
|
3
|
-
@include euiFormControlDefaultShadow;
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: stretch;
|
|
6
|
-
padding: 1px; /* 1 */
|
|
7
|
-
|
|
8
|
-
> .euiFormControlLayout__childrenWrapper {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
width: 100%;
|
|
12
|
-
background-color: $euiFormBackgroundColor;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Target when the euiFormControlLayout is compressed without specifying the full class name in case it ever changes
|
|
16
|
-
&[class*='--compressed'] {
|
|
17
|
-
@include euiFormControlDefaultShadow($borderOnly: true);
|
|
18
|
-
border-radius: $euiBorderRadius / 2;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Target when the euiFormControlLayout is fullWidth without specifying the full class name in case it ever changes
|
|
22
|
-
&[class*='--fullWidth'] .euiFormControlLayout__childrenWrapper,
|
|
23
|
-
&[class*='--fullWidth'] .euiFormControlLayout__childrenWrapper > *:not(.euiFormControlLayoutDelimited__delimiter):not(.euiFormControlLayoutIcons) {
|
|
24
|
-
width: 100%;
|
|
25
|
-
max-width: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Target when the euiFormControlLayout is disabled without specifying the full class name in case it ever changes
|
|
29
|
-
&[class*='-isDisabled'] {
|
|
30
|
-
@include euiFormControlDisabledStyle;
|
|
31
|
-
|
|
32
|
-
.euiFormControlLayout__childrenWrapper {
|
|
33
|
-
background-color: $euiFormBackgroundDisabledColor;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Target when the euiFormControlLayout is readOnly without specifying the full class name in case it ever changes
|
|
38
|
-
&[class*='--readOnly'] {
|
|
39
|
-
@include euiFormControlReadOnlyStyle;
|
|
40
|
-
|
|
41
|
-
.euiFormControlLayout__childrenWrapper {
|
|
42
|
-
background-color: $euiFormBackgroundReadOnlyColor;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&--isInvalid .euiFormControlLayout__childrenWrapper {
|
|
47
|
-
@include euiFormControlInvalidStyle;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.euiFormControlLayoutDelimited__input {
|
|
52
|
-
// stylelint-disable declaration-no-important
|
|
53
|
-
box-shadow: none !important;
|
|
54
|
-
border-radius: 0 !important;
|
|
55
|
-
// stylelint-enable declaration-no-important
|
|
56
|
-
text-align: center;
|
|
57
|
-
height: 100%;
|
|
58
|
-
min-width: 0; // Fixes FF
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.euiFormControlLayoutDelimited__delimiter {
|
|
62
|
-
align-self: stretch;
|
|
63
|
-
flex-grow: 0;
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
line-height: 1; // Override EuiText line-height
|
|
67
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
.euiFormControlLayoutIcons {
|
|
2
|
-
pointer-events: none;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
|
|
6
|
-
> * + * {
|
|
7
|
-
margin-left: $euiFormControlPadding / 2;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&--absolute {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
left: $euiFormControlPadding;
|
|
15
|
-
|
|
16
|
-
.euiFormControlLayout--compressed & {
|
|
17
|
-
left: $euiFormControlCompressedPadding;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&--static {
|
|
22
|
-
// Absolutely positioning the icons sometimes doesn't work -
|
|
23
|
-
// in the case of delimited inputs, they overlay only one of controls making the layout unbalanced
|
|
24
|
-
position: static;
|
|
25
|
-
height: 100%;
|
|
26
|
-
align-self: stretch;
|
|
27
|
-
flex-grow: 0;
|
|
28
|
-
padding-inline: $euiFormControlPadding;
|
|
29
|
-
|
|
30
|
-
.euiFormControlLayout--compressed & {
|
|
31
|
-
padding-inline: $euiFormControlCompressedPadding;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.euiFormControlLayoutIcons--left {
|
|
37
|
-
z-index: 1; // Ensure the icon is visible above sibling inputs
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.euiFormControlLayoutIcons--right {
|
|
41
|
-
left: auto;
|
|
42
|
-
right: $euiFormControlPadding;
|
|
43
|
-
|
|
44
|
-
.euiFormControlLayout--compressed & {
|
|
45
|
-
left: auto;
|
|
46
|
-
right: $euiFormControlCompressedPadding;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// If the control is disabled, change the color of the icons
|
|
51
|
-
*:disabled + .euiFormControlLayoutIcons {
|
|
52
|
-
cursor: not-allowed;
|
|
53
|
-
color: $euiFormControlDisabledColor;
|
|
54
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'form_error_text';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'form_legend';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'form_help_text';
|