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