@elastic/eui 110.0.0-snapshot.1764684698664 → 110.0.0-snapshot.1764783610243
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/es/components/basic_table/in_memory_table.js +176 -3
- package/es/components/collapsible_nav/collapsible_nav.js +20 -101
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -0
- package/es/components/flyout/_flyout_overlay.js +52 -0
- package/es/components/flyout/_flyout_resize_button.js +32 -0
- package/es/components/flyout/{flyout_resizable.styles.js → _flyout_resize_button.styles.js} +11 -11
- package/es/components/flyout/const.js +42 -0
- package/es/components/flyout/flyout.component.js +481 -0
- package/es/components/flyout/flyout.js +77 -379
- package/es/components/flyout/flyout.styles.js +105 -7
- package/es/components/flyout/flyout_menu.js +241 -0
- package/es/components/flyout/flyout_menu.styles.js +19 -0
- package/{optimize/es/components/flyout/flyout_context.js → es/components/flyout/flyout_menu_context.js} +1 -7
- package/es/components/flyout/flyout_parent_context.js +36 -0
- package/es/components/flyout/flyout_resizable.js +33 -144
- package/es/components/flyout/hooks.js +25 -0
- package/es/components/flyout/index.js +5 -2
- package/es/components/flyout/manager/actions.js +153 -0
- package/es/components/flyout/manager/activity_stage.js +95 -0
- package/es/components/flyout/manager/const.js +56 -0
- package/es/components/flyout/manager/context.js +33 -0
- package/es/components/flyout/manager/flyout_child.js +75 -0
- package/es/components/flyout/manager/flyout_main.js +65 -0
- package/es/components/flyout/manager/flyout_main.styles.js +25 -0
- package/es/components/flyout/manager/flyout_managed.js +227 -0
- package/es/components/flyout/manager/flyout_managed.styles.js +69 -0
- package/es/components/flyout/manager/hooks.js +55 -0
- package/es/components/flyout/manager/index.js +31 -0
- package/es/components/flyout/manager/layout_mode.js +167 -0
- package/es/components/flyout/manager/provider.js +57 -0
- package/es/components/flyout/manager/reducer.js +320 -0
- package/es/components/flyout/manager/selectors.js +116 -0
- package/es/components/flyout/manager/store.js +113 -0
- package/es/components/flyout/manager/validation.js +85 -0
- package/es/components/flyout/use_flyout_resizable.js +149 -0
- package/es/components/flyout/use_flyout_z_index.js +46 -0
- package/es/components/overlay_mask/overlay_mask.js +13 -3
- package/es/components/overlay_mask/overlay_mask.styles.js +11 -2
- package/es/components/provider/provider.js +2 -1
- package/es/components/search_bar/search_bar.js +6 -0
- package/eui.d.ts +1488 -919
- package/i18ntokens.json +577 -523
- package/lib/components/basic_table/in_memory_table.js +177 -2
- package/lib/components/collapsible_nav/collapsible_nav.js +20 -101
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -0
- package/lib/components/flyout/_flyout_overlay.js +59 -0
- package/lib/components/flyout/_flyout_resize_button.js +38 -0
- package/{test-env/components/flyout/flyout_resizable.styles.js → lib/components/flyout/_flyout_resize_button.styles.js} +12 -12
- package/lib/components/flyout/const.js +49 -0
- package/lib/components/flyout/flyout.component.js +488 -0
- package/lib/components/flyout/flyout.js +102 -379
- package/lib/components/flyout/flyout.styles.js +105 -7
- package/lib/components/flyout/flyout_menu.js +243 -0
- package/lib/components/flyout/flyout_menu.styles.js +25 -0
- package/{optimize/lib/components/flyout/flyout_context.js → lib/components/flyout/flyout_menu_context.js} +2 -7
- package/lib/components/flyout/flyout_parent_context.js +43 -0
- package/lib/components/flyout/flyout_resizable.js +36 -147
- package/lib/components/flyout/hooks.js +30 -0
- package/lib/components/flyout/index.js +21 -14
- package/lib/components/flyout/manager/actions.js +159 -0
- package/lib/components/flyout/manager/activity_stage.js +101 -0
- package/lib/components/flyout/manager/const.js +62 -0
- package/lib/components/flyout/manager/context.js +41 -0
- package/lib/components/flyout/manager/flyout_child.js +80 -0
- package/lib/components/flyout/manager/flyout_main.js +70 -0
- package/lib/components/flyout/manager/flyout_main.styles.js +31 -0
- package/lib/components/flyout/manager/flyout_managed.js +233 -0
- package/lib/components/flyout/manager/flyout_managed.styles.js +73 -0
- package/lib/components/flyout/manager/hooks.js +131 -0
- package/lib/components/flyout/manager/index.js +168 -0
- package/lib/components/flyout/manager/layout_mode.js +171 -0
- package/lib/components/flyout/manager/provider.js +63 -0
- package/lib/components/flyout/manager/reducer.js +325 -0
- package/lib/components/flyout/manager/selectors.js +122 -0
- package/lib/components/flyout/manager/store.js +120 -0
- package/lib/components/flyout/manager/validation.js +94 -0
- package/lib/components/flyout/use_flyout_resizable.js +153 -0
- package/lib/components/flyout/use_flyout_z_index.js +51 -0
- package/lib/components/overlay_mask/overlay_mask.js +12 -2
- package/lib/components/overlay_mask/overlay_mask.styles.js +11 -4
- package/lib/components/provider/provider.js +2 -1
- package/lib/components/search_bar/search_bar.js +5 -0
- package/optimize/es/components/basic_table/in_memory_table.js +0 -2
- package/optimize/es/components/collapsible_nav/collapsible_nav.js +1 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -0
- package/optimize/es/components/flyout/_flyout_overlay.js +52 -0
- package/optimize/es/components/flyout/_flyout_resize_button.js +31 -0
- package/optimize/es/components/flyout/{flyout_resizable.styles.js → _flyout_resize_button.styles.js} +11 -11
- package/optimize/es/components/flyout/const.js +42 -0
- package/optimize/es/components/flyout/flyout.component.js +469 -0
- package/optimize/es/components/flyout/flyout.js +53 -349
- package/optimize/es/components/flyout/flyout.styles.js +102 -7
- package/optimize/es/components/flyout/flyout_menu.js +162 -0
- package/optimize/es/components/flyout/flyout_menu.styles.js +19 -0
- package/{es/components/flyout/flyout_context.js → optimize/es/components/flyout/flyout_menu_context.js} +1 -7
- package/optimize/es/components/flyout/flyout_parent_context.js +36 -0
- package/optimize/es/components/flyout/flyout_resizable.js +7 -138
- package/optimize/es/components/flyout/hooks.js +25 -0
- package/optimize/es/components/flyout/index.js +5 -2
- package/optimize/es/components/flyout/manager/actions.js +153 -0
- package/optimize/es/components/flyout/manager/activity_stage.js +95 -0
- package/optimize/es/components/flyout/manager/const.js +56 -0
- package/optimize/es/components/flyout/manager/context.js +33 -0
- package/optimize/es/components/flyout/manager/flyout_child.js +71 -0
- package/optimize/es/components/flyout/manager/flyout_main.js +61 -0
- package/optimize/es/components/flyout/manager/flyout_main.styles.js +25 -0
- package/optimize/es/components/flyout/manager/flyout_managed.js +223 -0
- package/optimize/es/components/flyout/manager/flyout_managed.styles.js +69 -0
- package/optimize/es/components/flyout/manager/hooks.js +55 -0
- package/optimize/es/components/flyout/manager/index.js +31 -0
- package/optimize/es/components/flyout/manager/layout_mode.js +162 -0
- package/optimize/es/components/flyout/manager/provider.js +53 -0
- package/optimize/es/components/flyout/manager/reducer.js +312 -0
- package/optimize/es/components/flyout/manager/selectors.js +116 -0
- package/optimize/es/components/flyout/manager/store.js +113 -0
- package/optimize/es/components/flyout/manager/types.js +1 -0
- package/optimize/es/components/flyout/manager/validation.js +85 -0
- package/optimize/es/components/flyout/types.js +1 -0
- package/optimize/es/components/flyout/use_flyout_resizable.js +144 -0
- package/optimize/es/components/flyout/use_flyout_z_index.js +46 -0
- package/optimize/es/components/overlay_mask/overlay_mask.js +13 -3
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +11 -2
- package/optimize/es/components/provider/provider.js +2 -1
- package/optimize/es/components/search_bar/search_bar.js +6 -0
- package/optimize/lib/components/basic_table/in_memory_table.js +1 -1
- package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -0
- package/optimize/lib/components/flyout/_flyout_overlay.js +62 -0
- package/optimize/lib/components/flyout/_flyout_resize_button.js +37 -0
- package/{lib/components/flyout/flyout_resizable.styles.js → optimize/lib/components/flyout/_flyout_resize_button.styles.js} +12 -12
- package/optimize/lib/components/flyout/const.js +49 -0
- package/optimize/lib/components/flyout/flyout.component.js +477 -0
- package/optimize/lib/components/flyout/flyout.js +77 -349
- package/optimize/lib/components/flyout/flyout.styles.js +102 -7
- package/optimize/lib/components/flyout/flyout_menu.js +168 -0
- package/optimize/lib/components/flyout/flyout_menu.styles.js +25 -0
- package/{lib/components/flyout/flyout_context.js → optimize/lib/components/flyout/flyout_menu_context.js} +2 -7
- package/optimize/lib/components/flyout/flyout_parent_context.js +43 -0
- package/optimize/lib/components/flyout/flyout_resizable.js +9 -139
- package/optimize/lib/components/flyout/hooks.js +30 -0
- package/optimize/lib/components/flyout/index.js +21 -14
- package/optimize/lib/components/flyout/manager/actions.js +159 -0
- package/optimize/lib/components/flyout/manager/activity_stage.js +101 -0
- package/optimize/lib/components/flyout/manager/const.js +62 -0
- package/optimize/lib/components/flyout/manager/context.js +41 -0
- package/optimize/lib/components/flyout/manager/flyout_child.js +76 -0
- package/optimize/lib/components/flyout/manager/flyout_main.js +66 -0
- package/optimize/lib/components/flyout/manager/flyout_main.styles.js +31 -0
- package/optimize/lib/components/flyout/manager/flyout_managed.js +231 -0
- package/optimize/lib/components/flyout/manager/flyout_managed.styles.js +74 -0
- package/optimize/lib/components/flyout/manager/hooks.js +131 -0
- package/optimize/lib/components/flyout/manager/index.js +168 -0
- package/optimize/lib/components/flyout/manager/layout_mode.js +169 -0
- package/optimize/lib/components/flyout/manager/provider.js +61 -0
- package/optimize/lib/components/flyout/manager/reducer.js +318 -0
- package/optimize/lib/components/flyout/manager/selectors.js +122 -0
- package/optimize/lib/components/flyout/manager/store.js +120 -0
- package/optimize/lib/components/flyout/manager/validation.js +94 -0
- package/optimize/lib/components/flyout/types.js +5 -0
- package/optimize/lib/components/flyout/use_flyout_resizable.js +151 -0
- package/optimize/lib/components/flyout/use_flyout_z_index.js +51 -0
- package/optimize/lib/components/overlay_mask/overlay_mask.js +12 -2
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +11 -4
- package/optimize/lib/components/provider/provider.js +2 -1
- package/optimize/lib/components/search_bar/search_bar.js +5 -0
- package/package.json +5 -4
- package/test-env/components/basic_table/in_memory_table.js +177 -2
- package/test-env/components/collapsible_nav/collapsible_nav.js +20 -101
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -0
- package/test-env/components/flyout/_flyout_overlay.js +62 -0
- package/test-env/components/flyout/_flyout_resize_button.js +37 -0
- package/{optimize/lib/components/flyout/flyout_resizable.styles.js → test-env/components/flyout/_flyout_resize_button.styles.js} +12 -12
- package/test-env/components/flyout/const.js +49 -0
- package/test-env/components/flyout/flyout.component.js +477 -0
- package/test-env/components/flyout/flyout.styles.js +102 -7
- package/test-env/components/flyout/flyout_menu.js +241 -0
- package/test-env/components/flyout/flyout_menu.styles.js +25 -0
- package/test-env/components/flyout/{flyout_context.js → flyout_menu_context.js} +2 -7
- package/test-env/components/flyout/flyout_parent_context.js +43 -0
- package/test-env/components/flyout/flyout_resizable.js +35 -139
- package/test-env/components/flyout/hooks.js +30 -0
- package/test-env/components/flyout/index.js +21 -14
- package/test-env/components/flyout/manager/actions.js +159 -0
- package/test-env/components/flyout/manager/activity_stage.js +101 -0
- package/test-env/components/flyout/manager/const.js +62 -0
- package/test-env/components/flyout/manager/context.js +41 -0
- package/test-env/components/flyout/manager/flyout_child.js +76 -0
- package/test-env/components/flyout/manager/flyout_main.js +66 -0
- package/test-env/components/flyout/manager/flyout_main.styles.js +31 -0
- package/test-env/components/flyout/manager/flyout_managed.js +231 -0
- package/test-env/components/flyout/manager/flyout_managed.styles.js +74 -0
- package/test-env/components/flyout/manager/hooks.js +131 -0
- package/test-env/components/flyout/manager/index.js +168 -0
- package/test-env/components/flyout/manager/layout_mode.js +169 -0
- package/test-env/components/flyout/manager/provider.js +61 -0
- package/test-env/components/flyout/manager/reducer.js +318 -0
- package/test-env/components/flyout/manager/selectors.js +122 -0
- package/test-env/components/flyout/manager/store.js +120 -0
- package/test-env/components/flyout/manager/types.js +5 -0
- package/test-env/components/flyout/manager/validation.js +94 -0
- package/test-env/components/flyout/types.js +5 -0
- package/test-env/components/flyout/use_flyout_resizable.js +151 -0
- package/test-env/components/flyout/use_flyout_z_index.js +51 -0
- package/test-env/components/overlay_mask/overlay_mask.js +12 -2
- package/test-env/components/overlay_mask/overlay_mask.styles.js +11 -4
- package/test-env/components/provider/provider.js +2 -1
- package/test-env/components/search_bar/search_bar.js +5 -0
- package/es/components/flyout/flyout_child.js +0 -223
- package/es/components/flyout/flyout_child.styles.js +0 -32
- package/es/components/flyout/flyout_child_manager.js +0 -114
- package/es/components/flyout/sessions/flyout_provider.js +0 -95
- package/es/components/flyout/sessions/flyout_reducer.js +0 -195
- package/es/components/flyout/sessions/index.js +0 -10
- package/es/components/flyout/sessions/use_eui_flyout.js +0 -82
- package/lib/components/flyout/flyout_child.js +0 -231
- package/lib/components/flyout/flyout_child.styles.js +0 -38
- package/lib/components/flyout/flyout_child_manager.js +0 -122
- package/lib/components/flyout/sessions/flyout_provider.js +0 -102
- package/lib/components/flyout/sessions/flyout_reducer.js +0 -202
- package/lib/components/flyout/sessions/index.js +0 -25
- package/lib/components/flyout/sessions/use_eui_flyout.js +0 -88
- package/optimize/es/components/flyout/flyout_child.js +0 -178
- package/optimize/es/components/flyout/flyout_child.styles.js +0 -32
- package/optimize/es/components/flyout/flyout_child_manager.js +0 -100
- package/optimize/es/components/flyout/sessions/flyout_provider.js +0 -90
- package/optimize/es/components/flyout/sessions/flyout_reducer.js +0 -187
- package/optimize/es/components/flyout/sessions/index.js +0 -10
- package/optimize/es/components/flyout/sessions/use_eui_flyout.js +0 -82
- package/optimize/lib/components/flyout/flyout_child.js +0 -186
- package/optimize/lib/components/flyout/flyout_child.styles.js +0 -38
- package/optimize/lib/components/flyout/flyout_child_manager.js +0 -110
- package/optimize/lib/components/flyout/sessions/flyout_provider.js +0 -100
- package/optimize/lib/components/flyout/sessions/flyout_reducer.js +0 -195
- package/optimize/lib/components/flyout/sessions/index.js +0 -25
- package/optimize/lib/components/flyout/sessions/use_eui_flyout.js +0 -88
- package/test-env/components/flyout/flyout_child.js +0 -230
- package/test-env/components/flyout/flyout_child.styles.js +0 -38
- package/test-env/components/flyout/flyout_child_manager.js +0 -119
- package/test-env/components/flyout/sessions/flyout_provider.js +0 -100
- package/test-env/components/flyout/sessions/flyout_reducer.js +0 -195
- package/test-env/components/flyout/sessions/index.js +0 -25
- package/test-env/components/flyout/sessions/use_eui_flyout.js +0 -88
- /package/es/components/flyout/{sessions → manager}/types.js +0 -0
- /package/{optimize/es/components/flyout/sessions → es/components/flyout}/types.js +0 -0
- /package/lib/components/flyout/{sessions → manager}/types.js +0 -0
- /package/{optimize/lib/components/flyout/sessions → lib/components/flyout}/types.js +0 -0
- /package/{test-env/components/flyout/sessions → optimize/lib/components/flyout/manager}/types.js +0 -0
|
@@ -38,8 +38,6 @@ import { EuiSearchBox } from '../search_bar/search_box';
|
|
|
38
38
|
import { EuiSpacer } from '../spacer';
|
|
39
39
|
import { euiTablePaginationDefaults } from '../table/table_pagination';
|
|
40
40
|
import { EuiComponentDefaultsContext } from '../provider/component_defaults';
|
|
41
|
-
|
|
42
|
-
// allows `query: null` in the onChange callback when using `searchFormat="text"`
|
|
43
41
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
44
42
|
function isEuiSearchBarProps(x) {
|
|
45
43
|
return typeof x !== 'boolean';
|
|
@@ -1039,7 +1037,182 @@ EuiInMemoryTable.propTypes = {
|
|
|
1039
1037
|
* ({@link Query} objects are ignored).
|
|
1040
1038
|
*/
|
|
1041
1039
|
search: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.shape({
|
|
1042
|
-
onChange: PropTypes.func
|
|
1040
|
+
onChange: PropTypes.func,
|
|
1041
|
+
/**
|
|
1042
|
+
* The initial query the bar will hold when first mounted
|
|
1043
|
+
*/
|
|
1044
|
+
defaultQuery: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
1045
|
+
/**
|
|
1046
|
+
* If you wish to use the search bar as a controlled component, continuously pass the query via this prop.
|
|
1047
|
+
*/
|
|
1048
|
+
query: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.string.isRequired]),
|
|
1049
|
+
/**
|
|
1050
|
+
* Configures the search box. Set `placeholder` to change the placeholder text in the box and `incremental` to support incremental (as you type) search.
|
|
1051
|
+
*/
|
|
1052
|
+
box: PropTypes.shape({
|
|
1053
|
+
name: PropTypes.string,
|
|
1054
|
+
id: PropTypes.string,
|
|
1055
|
+
placeholder: PropTypes.string,
|
|
1056
|
+
value: PropTypes.string,
|
|
1057
|
+
isInvalid: PropTypes.bool,
|
|
1058
|
+
/**
|
|
1059
|
+
* Expand to fill 100% of the parent.
|
|
1060
|
+
* Defaults to `fullWidth` prop of `<EuiForm>`.
|
|
1061
|
+
* @default false
|
|
1062
|
+
*/
|
|
1063
|
+
fullWidth: PropTypes.bool,
|
|
1064
|
+
isLoading: PropTypes.bool,
|
|
1065
|
+
/**
|
|
1066
|
+
* Called when the user presses [Enter] OR on change if the incremental prop is `true`.
|
|
1067
|
+
* If you don't need the on[Enter] functionality, prefer using onChange
|
|
1068
|
+
*/
|
|
1069
|
+
onSearch: PropTypes.func,
|
|
1070
|
+
/**
|
|
1071
|
+
* When `true` the search will be executed (that is, the `onSearch` will be called) as the
|
|
1072
|
+
* user types.
|
|
1073
|
+
*/
|
|
1074
|
+
incremental: PropTypes.bool,
|
|
1075
|
+
/**
|
|
1076
|
+
* when `true` creates a shorter height input
|
|
1077
|
+
*/
|
|
1078
|
+
compressed: PropTypes.bool,
|
|
1079
|
+
inputRef: PropTypes.func,
|
|
1080
|
+
/**
|
|
1081
|
+
* Shows a button that quickly clears any input
|
|
1082
|
+
*/
|
|
1083
|
+
isClearable: PropTypes.bool,
|
|
1084
|
+
/**
|
|
1085
|
+
* Creates an input group with element(s) coming before input
|
|
1086
|
+
* `string` | `ReactElement` or an array of these
|
|
1087
|
+
*/
|
|
1088
|
+
prepend: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.element.isRequired]).isRequired, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.element.isRequired]).isRequired).isRequired]),
|
|
1089
|
+
/**
|
|
1090
|
+
* Creates an input group with element(s) coming after input.
|
|
1091
|
+
* `string` | `ReactElement` or an array of these
|
|
1092
|
+
*/
|
|
1093
|
+
append: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.element.isRequired]).isRequired, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.element.isRequired]).isRequired).isRequired]),
|
|
1094
|
+
className: PropTypes.string,
|
|
1095
|
+
"aria-label": PropTypes.string,
|
|
1096
|
+
"data-test-subj": PropTypes.string,
|
|
1097
|
+
css: PropTypes.any,
|
|
1098
|
+
// Boolean values are not meaningful to this EuiSearchBox, but are allowed so that other
|
|
1099
|
+
// components can use e.g. a true value to mean "auto-derive a schema". See EuiInMemoryTable.
|
|
1100
|
+
// Admittedly, this is a bit of a hack.
|
|
1101
|
+
schema: PropTypes.oneOfType([PropTypes.shape({
|
|
1102
|
+
strict: PropTypes.bool,
|
|
1103
|
+
fields: PropTypes.any,
|
|
1104
|
+
flags: PropTypes.arrayOf(PropTypes.string.isRequired),
|
|
1105
|
+
// Controls which phrases will be parsed as field clauses
|
|
1106
|
+
recognizedFields: PropTypes.arrayOf(PropTypes.string.isRequired)
|
|
1107
|
+
}).isRequired, PropTypes.bool.isRequired])
|
|
1108
|
+
}),
|
|
1109
|
+
/**
|
|
1110
|
+
* An array of search filters. See {@link SearchFilterConfig}.
|
|
1111
|
+
*/
|
|
1112
|
+
filters: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
1113
|
+
type: PropTypes.oneOf(["is"]).isRequired,
|
|
1114
|
+
field: PropTypes.string.isRequired,
|
|
1115
|
+
name: PropTypes.string.isRequired,
|
|
1116
|
+
negatedName: PropTypes.string,
|
|
1117
|
+
available: PropTypes.func
|
|
1118
|
+
}).isRequired, PropTypes.shape({
|
|
1119
|
+
type: PropTypes.oneOf(["field_value_selection"]).isRequired,
|
|
1120
|
+
field: PropTypes.string,
|
|
1121
|
+
name: PropTypes.string.isRequired,
|
|
1122
|
+
/**
|
|
1123
|
+
* See {@link FieldValueOptionType}
|
|
1124
|
+
*/
|
|
1125
|
+
options: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
1126
|
+
field: PropTypes.string,
|
|
1127
|
+
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired, PropTypes.shape({
|
|
1128
|
+
type: PropTypes.oneOf(["date"]).isRequired,
|
|
1129
|
+
raw: PropTypes.any.isRequired,
|
|
1130
|
+
granularity: PropTypes.oneOfType([PropTypes.shape({
|
|
1131
|
+
es: PropTypes.oneOf(["d", "w", "M", "y"]).isRequired,
|
|
1132
|
+
js: PropTypes.oneOf(["day", "week", "month", "year"]).isRequired,
|
|
1133
|
+
isSame: PropTypes.func.isRequired,
|
|
1134
|
+
start: PropTypes.func.isRequired,
|
|
1135
|
+
startOfNext: PropTypes.func.isRequired,
|
|
1136
|
+
iso8601: PropTypes.func.isRequired
|
|
1137
|
+
}).isRequired, PropTypes.oneOf([undefined])]).isRequired,
|
|
1138
|
+
text: PropTypes.string.isRequired,
|
|
1139
|
+
resolve: PropTypes.func.isRequired
|
|
1140
|
+
}).isRequired]).isRequired,
|
|
1141
|
+
name: PropTypes.string,
|
|
1142
|
+
view: PropTypes.node
|
|
1143
|
+
}).isRequired).isRequired, PropTypes.func.isRequired]).isRequired,
|
|
1144
|
+
filterWith: PropTypes.oneOfType([PropTypes.oneOf(["prefix", "includes"]), PropTypes.func.isRequired]),
|
|
1145
|
+
cache: PropTypes.number,
|
|
1146
|
+
multiSelect: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.oneOf(["and", "or"])]),
|
|
1147
|
+
loadingMessage: PropTypes.string,
|
|
1148
|
+
noOptionsMessage: PropTypes.string,
|
|
1149
|
+
searchThreshold: PropTypes.number,
|
|
1150
|
+
available: PropTypes.func,
|
|
1151
|
+
autoClose: PropTypes.bool,
|
|
1152
|
+
operator: PropTypes.oneOf(["eq", "exact", "gt", "gte", "lt", "lte"]),
|
|
1153
|
+
autoSortOptions: PropTypes.bool
|
|
1154
|
+
}).isRequired, PropTypes.shape({
|
|
1155
|
+
type: PropTypes.oneOf(["field_value_toggle"]).isRequired,
|
|
1156
|
+
field: PropTypes.string.isRequired,
|
|
1157
|
+
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired, PropTypes.shape({
|
|
1158
|
+
type: PropTypes.oneOf(["date"]).isRequired,
|
|
1159
|
+
raw: PropTypes.any.isRequired,
|
|
1160
|
+
granularity: PropTypes.oneOfType([PropTypes.shape({
|
|
1161
|
+
es: PropTypes.oneOf(["d", "w", "M", "y"]).isRequired,
|
|
1162
|
+
js: PropTypes.oneOf(["day", "week", "month", "year"]).isRequired,
|
|
1163
|
+
isSame: PropTypes.func.isRequired,
|
|
1164
|
+
start: PropTypes.func.isRequired,
|
|
1165
|
+
startOfNext: PropTypes.func.isRequired,
|
|
1166
|
+
iso8601: PropTypes.func.isRequired
|
|
1167
|
+
}).isRequired, PropTypes.oneOf([undefined])]).isRequired,
|
|
1168
|
+
text: PropTypes.string.isRequired,
|
|
1169
|
+
resolve: PropTypes.func.isRequired
|
|
1170
|
+
}).isRequired]).isRequired,
|
|
1171
|
+
name: PropTypes.string.isRequired,
|
|
1172
|
+
negatedName: PropTypes.string,
|
|
1173
|
+
available: PropTypes.func,
|
|
1174
|
+
operator: PropTypes.oneOf(["eq", "exact", "gt", "gte", "lt", "lte"])
|
|
1175
|
+
}).isRequired, PropTypes.shape({
|
|
1176
|
+
type: PropTypes.oneOf(["field_value_toggle_group"]).isRequired,
|
|
1177
|
+
field: PropTypes.string.isRequired,
|
|
1178
|
+
/**
|
|
1179
|
+
* See {@link FieldValueToggleGroupFilterItemType}
|
|
1180
|
+
*/
|
|
1181
|
+
items: PropTypes.arrayOf(PropTypes.shape({
|
|
1182
|
+
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired]).isRequired,
|
|
1183
|
+
name: PropTypes.string.isRequired,
|
|
1184
|
+
negatedName: PropTypes.string,
|
|
1185
|
+
operator: PropTypes.oneOf(["eq", "exact", "gt", "gte", "lt", "lte"])
|
|
1186
|
+
}).isRequired).isRequired,
|
|
1187
|
+
available: PropTypes.func
|
|
1188
|
+
}).isRequired, PropTypes.shape({
|
|
1189
|
+
type: PropTypes.oneOf(["custom_component"]).isRequired,
|
|
1190
|
+
component: PropTypes.elementType.isRequired,
|
|
1191
|
+
available: PropTypes.func
|
|
1192
|
+
}).isRequired]).isRequired),
|
|
1193
|
+
/**
|
|
1194
|
+
* Tools which go to the left of the search bar.
|
|
1195
|
+
*/
|
|
1196
|
+
toolsLeft: PropTypes.oneOfType([PropTypes.element.isRequired, PropTypes.arrayOf(PropTypes.element.isRequired).isRequired]),
|
|
1197
|
+
/**
|
|
1198
|
+
* Tools which go to the right of the search bar.
|
|
1199
|
+
*/
|
|
1200
|
+
toolsRight: PropTypes.oneOfType([PropTypes.element.isRequired, PropTypes.arrayOf(PropTypes.element.isRequired).isRequired]),
|
|
1201
|
+
/**
|
|
1202
|
+
* Date formatter to use when parsing date values
|
|
1203
|
+
*/
|
|
1204
|
+
dateFormat: PropTypes.any,
|
|
1205
|
+
/**
|
|
1206
|
+
* Hint to render below the search bar
|
|
1207
|
+
*/
|
|
1208
|
+
hint: PropTypes.shape({
|
|
1209
|
+
content: PropTypes.node.isRequired,
|
|
1210
|
+
popoverProps: PropTypes.any
|
|
1211
|
+
}),
|
|
1212
|
+
className: PropTypes.string,
|
|
1213
|
+
"aria-label": PropTypes.string,
|
|
1214
|
+
"data-test-subj": PropTypes.string,
|
|
1215
|
+
css: PropTypes.any
|
|
1043
1216
|
}).isRequired]),
|
|
1044
1217
|
/**
|
|
1045
1218
|
* By default, tables use `eql` format for search which allows using advanced filters.
|
|
@@ -94,6 +94,7 @@ export var EuiCollapsibleNav = function EuiCollapsibleNav(_ref) {
|
|
|
94
94
|
});
|
|
95
95
|
var flyout = ___EmotionJSX(EuiFlyout, _extends({
|
|
96
96
|
id: flyoutID,
|
|
97
|
+
session: "never",
|
|
97
98
|
css: cssStyles,
|
|
98
99
|
className: classes
|
|
99
100
|
// Flyout props we set different defaults for
|
|
@@ -115,113 +116,28 @@ export var EuiCollapsibleNav = function EuiCollapsibleNav(_ref) {
|
|
|
115
116
|
return ___EmotionJSX(React.Fragment, null, trigger, (isOpen || navIsDocked) && flyout);
|
|
116
117
|
};
|
|
117
118
|
EuiCollapsibleNav.propTypes = {
|
|
118
|
-
className: PropTypes.string,
|
|
119
|
-
"aria-label": PropTypes.string,
|
|
120
|
-
"data-test-subj": PropTypes.string,
|
|
121
|
-
css: PropTypes.any,
|
|
122
119
|
/**
|
|
123
|
-
*
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
* Sets the max-width of the panel,
|
|
135
|
-
* set to `true` to use the default size,
|
|
136
|
-
* set to `false` to not restrict the width,
|
|
137
|
-
* set to a number for a custom width in px,
|
|
138
|
-
* set to a string for a custom width in custom measurement.
|
|
139
|
-
* @default false
|
|
140
|
-
*/
|
|
141
|
-
maxWidth: PropTypes.oneOfType([PropTypes.bool.isRequired, PropTypes.number.isRequired, PropTypes.string.isRequired]),
|
|
142
|
-
/**
|
|
143
|
-
* Customize the padding around the content of the flyout header, body and footer
|
|
144
|
-
* @default l
|
|
145
|
-
*/
|
|
146
|
-
paddingSize: PropTypes.any,
|
|
147
|
-
/**
|
|
148
|
-
* Adds an EuiOverlayMask and wraps in an EuiPortal
|
|
149
|
-
* @default true
|
|
150
|
-
*/
|
|
151
|
-
ownFocus: PropTypes.bool,
|
|
152
|
-
/**
|
|
153
|
-
* Hides the default close button. You must provide another close button somewhere within the flyout.
|
|
154
|
-
* @default false
|
|
155
|
-
*/
|
|
156
|
-
hideCloseButton: PropTypes.bool,
|
|
157
|
-
/**
|
|
158
|
-
* Extends EuiButtonIconProps onto the close button
|
|
159
|
-
*/
|
|
160
|
-
closeButtonProps: PropTypes.any,
|
|
161
|
-
/**
|
|
162
|
-
* Position of close button.
|
|
163
|
-
* `inside`: Floating to just inside the flyout, always top right;
|
|
164
|
-
* `outside`: Floating just outside the flyout near the top (side dependent on `side`). Helpful when the close button may cover other interactable content.
|
|
165
|
-
* @default inside
|
|
166
|
-
*/
|
|
167
|
-
closeButtonPosition: PropTypes.oneOf(["inside", "outside"]),
|
|
168
|
-
/**
|
|
169
|
-
* Adjustments to the EuiOverlayMask that is added when `ownFocus = true`
|
|
170
|
-
*/
|
|
171
|
-
maskProps: PropTypes.shape({
|
|
172
|
-
/**
|
|
173
|
-
* ReactNode to render as this component's content
|
|
174
|
-
*/
|
|
175
|
-
children: PropTypes.node,
|
|
176
|
-
/**
|
|
177
|
-
* Should the mask visually sit above or below the EuiHeader (controlled by z-index)
|
|
178
|
-
*/
|
|
179
|
-
headerZindexLocation: PropTypes.oneOf(["above", "below"]),
|
|
180
|
-
/**
|
|
181
|
-
* React ref to be passed to the wrapping container
|
|
182
|
-
*/
|
|
183
|
-
maskRef: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.any.isRequired])
|
|
184
|
-
}),
|
|
185
|
-
/**
|
|
186
|
-
* Forces this interaction on the mask overlay or body content.
|
|
187
|
-
* Defaults depend on `ownFocus` and `type` values
|
|
188
|
-
*/
|
|
189
|
-
outsideClickCloses: PropTypes.bool,
|
|
190
|
-
/**
|
|
191
|
-
* Which side of the window to attach to.
|
|
192
|
-
* The `left` option should only be used for navigation.
|
|
193
|
-
* @default right
|
|
194
|
-
*/
|
|
195
|
-
side: PropTypes.any,
|
|
196
|
-
/**
|
|
197
|
-
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable docking
|
|
198
|
-
*/
|
|
199
|
-
pushMinBreakpoint: PropTypes.any,
|
|
200
|
-
/**
|
|
201
|
-
* Enables a slide in animation on push flyouts
|
|
202
|
-
* @default false
|
|
203
|
-
*/
|
|
204
|
-
pushAnimation: PropTypes.bool,
|
|
205
|
-
style: PropTypes.any,
|
|
206
|
-
/**
|
|
207
|
-
* Object of props passed to EuiFocusTrap.
|
|
208
|
-
* `shards` specifies an array of elements that will be considered part of the flyout, preventing the flyout from being closed when clicked.
|
|
209
|
-
* `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
|
|
210
|
-
* `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
|
|
120
|
+
* Controls the way the session is managed for this flyout.
|
|
121
|
+
* - `start`: Creates a new flyout session. Use this for the main flyout.
|
|
122
|
+
* - `inherit`: Inherits an existing session if one is active, otherwise functions as a standard flyout.
|
|
123
|
+
* - `never`: Disregards session management and always functions as a standard flyout.
|
|
124
|
+
*
|
|
125
|
+
* When the `session` prop is undefined (not set), the flyout will automatically inherit from
|
|
126
|
+
* a parent flyout if it's nested inside one. Otherwise, it defaults to `never`.
|
|
127
|
+
*
|
|
128
|
+
* Check out [EuiFlyout session management](https://eui.elastic.co/docs/components/containers/flyout/session-management)
|
|
129
|
+
* documentation to learn more.
|
|
130
|
+
* @default undefined (auto-inherit when nested, otherwise 'never')
|
|
211
131
|
*/
|
|
212
|
-
|
|
132
|
+
session: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.any.isRequired, PropTypes.any.isRequired]),
|
|
213
133
|
/**
|
|
214
|
-
*
|
|
215
|
-
* as part of the flyout's focus trap. This prevents focus fighting with interactive elements
|
|
216
|
-
* within fixed headers.
|
|
217
|
-
*
|
|
218
|
-
* Set this to `false` if you need to disable this behavior for a specific reason.
|
|
134
|
+
* Callback fired when the flyout becomes active/visible, which may happen programmatically from history navigation.
|
|
219
135
|
*/
|
|
220
|
-
|
|
136
|
+
onActive: PropTypes.func,
|
|
221
137
|
/**
|
|
222
|
-
*
|
|
138
|
+
* The HTML element to render as the flyout container.
|
|
223
139
|
*/
|
|
224
|
-
|
|
140
|
+
as: PropTypes.any,
|
|
225
141
|
/**
|
|
226
142
|
* ReactNode to render as this component's content
|
|
227
143
|
*/
|
|
@@ -234,6 +150,9 @@ EuiCollapsibleNav.propTypes = {
|
|
|
234
150
|
* Keeps navigation flyout visible and push `<body>` content via padding
|
|
235
151
|
*/
|
|
236
152
|
isDocked: PropTypes.bool,
|
|
153
|
+
/**
|
|
154
|
+
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable docking
|
|
155
|
+
*/
|
|
237
156
|
dockedBreakpoint: PropTypes.any,
|
|
238
157
|
/**
|
|
239
158
|
* Button for controlling visible state of the nav
|
|
@@ -157,6 +157,7 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
|
|
|
157
157
|
}, rest, {
|
|
158
158
|
// EuiCollapsibleNav is significantly less permissive than EuiFlyout
|
|
159
159
|
id: flyoutID,
|
|
160
|
+
session: "never",
|
|
160
161
|
css: cssStyles,
|
|
161
162
|
className: classes,
|
|
162
163
|
size: width,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
5
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
6
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
7
|
+
* Side Public License, v 1.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import React, { useMemo } from 'react';
|
|
11
|
+
import { css, cx } from '@emotion/css';
|
|
12
|
+
import { EuiOverlayMask } from '../overlay_mask';
|
|
13
|
+
import { EuiPortal } from '../portal';
|
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
+
var getEuiFlyoutOverlayStyles = function getEuiFlyoutOverlayStyles(zIndex) {
|
|
16
|
+
/*
|
|
17
|
+
This needs to have !important to override the default EuiOverlayMask
|
|
18
|
+
z-index based on the headerZindexLocation prop. Using the style attribute
|
|
19
|
+
doesn't work since EuiOverlayMask requires a string style prop that
|
|
20
|
+
causes React errors in the test environment.
|
|
21
|
+
*/
|
|
22
|
+
return /*#__PURE__*/css("z-index:", zIndex, "!important;;label:getEuiFlyoutOverlayStyles;");
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Light wrapper for conditionally rendering portals or overlay masks:
|
|
27
|
+
* - If ownFocus is set, wrap with an overlay and allow the user to click it to close it.
|
|
28
|
+
* - Otherwise still wrap within an EuiPortal so it appends to the bottom of the window.
|
|
29
|
+
* Push flyouts have no overlay OR portal behavior.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export var EuiFlyoutOverlay = function EuiFlyoutOverlay(_ref) {
|
|
34
|
+
var children = _ref.children,
|
|
35
|
+
isPushed = _ref.isPushed,
|
|
36
|
+
maskProps = _ref.maskProps,
|
|
37
|
+
hasOverlayMask = _ref.hasOverlayMask,
|
|
38
|
+
maskZIndex = _ref.maskZIndex;
|
|
39
|
+
var styles = useMemo(function () {
|
|
40
|
+
return getEuiFlyoutOverlayStyles(maskZIndex);
|
|
41
|
+
}, [maskZIndex]);
|
|
42
|
+
var content = children;
|
|
43
|
+
if (!isPushed || hasOverlayMask) {
|
|
44
|
+
content = ___EmotionJSX(EuiPortal, null, content);
|
|
45
|
+
}
|
|
46
|
+
var classes = cx(maskProps === null || maskProps === void 0 ? void 0 : maskProps.className, styles);
|
|
47
|
+
return ___EmotionJSX(React.Fragment, null, hasOverlayMask && ___EmotionJSX(EuiOverlayMask, _extends({
|
|
48
|
+
headerZindexLocation: "below"
|
|
49
|
+
}, maskProps, {
|
|
50
|
+
className: classes
|
|
51
|
+
})), content);
|
|
52
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var _excluded = ["type", "side", "ownFocus", "isPushed"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
15
|
+
import { EuiResizableButton } from '../resizable_container';
|
|
16
|
+
import { euiFlyoutResizeButtonStyles } from './_flyout_resize_button.styles';
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
+
export var EuiFlyoutResizeButton = function EuiFlyoutResizeButton(_ref) {
|
|
19
|
+
var type = _ref.type,
|
|
20
|
+
side = _ref.side,
|
|
21
|
+
ownFocus = _ref.ownFocus,
|
|
22
|
+
isPushed = _ref.isPushed,
|
|
23
|
+
resizableButtonProps = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
var hasOverlay = ownFocus && type === 'overlay';
|
|
25
|
+
var styles = useEuiMemoizedStyles(euiFlyoutResizeButtonStyles);
|
|
26
|
+
var cssStyles = [styles.root, styles[type][side], !hasOverlay && styles.noOverlay.root, !hasOverlay && styles.noOverlay[side]];
|
|
27
|
+
return ___EmotionJSX(EuiResizableButton, _extends({
|
|
28
|
+
isHorizontal: true,
|
|
29
|
+
indicator: "border",
|
|
30
|
+
css: cssStyles
|
|
31
|
+
}, resizableButtonProps));
|
|
32
|
+
};
|
|
@@ -26,25 +26,25 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
26
26
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
27
|
};
|
|
28
28
|
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
29
|
-
name: "
|
|
30
|
-
styles: "margin-inline:0;label:
|
|
29
|
+
name: "10l1ho9-root",
|
|
30
|
+
styles: "margin-inline:0;label:root;"
|
|
31
31
|
} : {
|
|
32
|
-
name: "
|
|
33
|
-
styles: "margin-inline:0;label:
|
|
32
|
+
name: "10l1ho9-root",
|
|
33
|
+
styles: "margin-inline:0;label:root;",
|
|
34
34
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
35
|
};
|
|
36
36
|
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
37
|
-
name: "
|
|
38
|
-
styles: "position:absolute;label:
|
|
37
|
+
name: "1yicr0l-root",
|
|
38
|
+
styles: "position:absolute;label:root;"
|
|
39
39
|
} : {
|
|
40
|
-
name: "
|
|
41
|
-
styles: "position:absolute;label:
|
|
40
|
+
name: "1yicr0l-root",
|
|
41
|
+
styles: "position:absolute;label:root;",
|
|
42
42
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
43
|
};
|
|
44
|
-
export var
|
|
44
|
+
export var euiFlyoutResizeButtonStyles = function euiFlyoutResizeButtonStyles(_ref5) {
|
|
45
45
|
var euiTheme = _ref5.euiTheme;
|
|
46
46
|
return {
|
|
47
|
-
|
|
47
|
+
root: _ref4,
|
|
48
48
|
overlay: {
|
|
49
49
|
left: /*#__PURE__*/css(logicalCSS('right', 0), ";;label:left;"),
|
|
50
50
|
right: /*#__PURE__*/css(logicalCSS('left', 0), ";;label:right;")
|
|
@@ -54,7 +54,7 @@ export var euiFlyoutResizableButtonStyles = function euiFlyoutResizableButtonSty
|
|
|
54
54
|
right: /*#__PURE__*/css(logicalCSS('left', "-".concat(euiTheme.border.width.thick)), ";;label:right;")
|
|
55
55
|
},
|
|
56
56
|
noOverlay: {
|
|
57
|
-
|
|
57
|
+
root: _ref3,
|
|
58
58
|
left: _ref2,
|
|
59
59
|
right: _ref
|
|
60
60
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** Allowed flyout render types. */
|
|
10
|
+
export var FLYOUT_TYPES = ['push', 'overlay'];
|
|
11
|
+
/** Type representing a supported flyout render type. */
|
|
12
|
+
|
|
13
|
+
/** Allowed flyout attachment sides. */
|
|
14
|
+
export var FLYOUT_SIDES = ['left', 'right'];
|
|
15
|
+
/** Type representing a supported flyout side. */
|
|
16
|
+
|
|
17
|
+
/** Allowed named flyout sizes used by the manager. */
|
|
18
|
+
export var FLYOUT_SIZES = ['s', 'm', 'l', 'fill'];
|
|
19
|
+
/** Type representing a supported named flyout size. */
|
|
20
|
+
|
|
21
|
+
/** Allowed padding sizes for flyout content. */
|
|
22
|
+
export var FLYOUT_PADDING_SIZES = ['none', 's', 'm', 'l'];
|
|
23
|
+
/** Type representing a supported flyout padding size. */
|
|
24
|
+
|
|
25
|
+
/** Default minimum breakpoint at which push-type flyouts begin to push content. */
|
|
26
|
+
export var DEFAULT_PUSH_MIN_BREAKPOINT = 'l';
|
|
27
|
+
/** Default flyout type when none is provided. */
|
|
28
|
+
export var DEFAULT_TYPE = 'overlay';
|
|
29
|
+
/** Default side where flyouts anchor when none is provided. */
|
|
30
|
+
export var DEFAULT_SIDE = 'right';
|
|
31
|
+
/** Default named flyout size. */
|
|
32
|
+
export var DEFAULT_SIZE = 'm';
|
|
33
|
+
/** Default padding size inside flyouts. */
|
|
34
|
+
export var DEFAULT_PADDING_SIZE = 'l';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Custom type checker for named flyout sizes since the prop
|
|
38
|
+
* `size` can also be CSSProperties['width'] (string | number)
|
|
39
|
+
*/
|
|
40
|
+
export function isEuiFlyoutSizeNamed(value) {
|
|
41
|
+
return FLYOUT_SIZES.includes(value);
|
|
42
|
+
}
|