@elastic/eui 77.1.0 → 77.2.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/README.md +30 -29
- package/dist/eui_theme_dark.css +70 -158
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +70 -158
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.a11y.js +202 -0
- package/es/components/basic_table/{table.a11y.js → in_memory_table.a11y.js} +1 -1
- package/es/components/date_picker/date_picker.js +23 -15
- package/es/components/date_picker/date_picker_range.js +36 -42
- package/es/components/date_picker/super_date_picker/super_date_picker.js +99 -84
- package/es/components/form/field_number/field_number.js +39 -8
- package/es/components/form/field_text/field_text.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout.js +67 -30
- package/es/components/form/form_control_layout/form_control_layout_delimited.js +31 -11
- package/es/components/form/form_control_layout/form_control_layout_icons.js +12 -20
- package/es/components/form/range/dual_range.js +2 -4
- package/es/components/form/range/range.js +0 -2
- package/es/components/form/range/range_input.js +54 -13
- package/es/components/form/validatable_control/validatable_control.js +15 -5
- package/es/components/index.js +0 -1
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +6 -1
- package/es/components/search_bar/query/ast_to_es_query_string.js +3 -0
- package/es/components/suggest/suggest.a11y.js +70 -0
- package/es/components/table/table.a11y.js +75 -0
- package/eui.d.ts +55 -173
- package/i18ntokens.json +26 -44
- package/lib/components/basic_table/basic_table.a11y.js +194 -0
- package/lib/components/basic_table/{table.a11y.js → in_memory_table.a11y.js} +2 -2
- package/lib/components/date_picker/date_picker.js +23 -15
- package/lib/components/date_picker/date_picker_range.js +35 -41
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +99 -84
- package/lib/components/form/field_number/field_number.js +42 -8
- package/lib/components/form/field_text/field_text.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout.js +67 -35
- package/lib/components/form/form_control_layout/form_control_layout_delimited.js +31 -11
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +11 -19
- package/lib/components/form/range/dual_range.js +2 -4
- package/lib/components/form/range/range.js +0 -2
- package/lib/components/form/range/range_input.js +52 -11
- package/lib/components/form/validatable_control/validatable_control.js +14 -12
- package/lib/components/index.js +0 -11
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +6 -1
- package/lib/components/search_bar/query/ast_to_es_query_string.js +3 -0
- package/lib/components/suggest/suggest.a11y.js +73 -0
- package/lib/components/table/table.a11y.js +78 -0
- package/optimize/es/components/basic_table/basic_table.a11y.js +194 -0
- package/optimize/es/components/basic_table/{table.a11y.js → in_memory_table.a11y.js} +1 -1
- package/optimize/es/components/date_picker/date_picker.js +17 -14
- package/optimize/es/components/date_picker/date_picker_range.js +20 -14
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +99 -84
- package/optimize/es/components/form/field_number/field_number.js +34 -8
- package/optimize/es/components/form/field_text/field_text.js +1 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout.js +67 -30
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +31 -11
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +10 -20
- package/optimize/es/components/form/range/dual_range.js +2 -4
- package/optimize/es/components/form/range/range.js +0 -2
- package/optimize/es/components/form/range/range_input.js +49 -12
- package/optimize/es/components/form/validatable_control/validatable_control.js +10 -5
- package/optimize/es/components/index.js +0 -1
- package/optimize/es/components/search_bar/query/ast_to_es_query_dsl.js +6 -1
- package/optimize/es/components/search_bar/query/ast_to_es_query_string.js +3 -0
- package/optimize/es/components/suggest/suggest.a11y.js +70 -0
- package/optimize/es/components/table/table.a11y.js +75 -0
- package/optimize/lib/components/basic_table/basic_table.a11y.js +188 -0
- package/{test-env/components/basic_table/table.a11y.js → optimize/lib/components/basic_table/in_memory_table.a11y.js} +2 -2
- package/optimize/lib/components/date_picker/date_picker.js +17 -14
- package/optimize/lib/components/date_picker/date_picker_range.js +19 -13
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +99 -84
- package/optimize/lib/components/form/field_number/field_number.js +37 -8
- package/optimize/lib/components/form/field_text/field_text.js +1 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout.js +67 -35
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +31 -11
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +9 -19
- package/optimize/lib/components/form/range/dual_range.js +2 -4
- package/optimize/lib/components/form/range/range.js +0 -2
- package/optimize/lib/components/form/range/range_input.js +47 -10
- package/optimize/lib/components/form/validatable_control/validatable_control.js +10 -4
- package/optimize/lib/components/index.js +0 -11
- package/optimize/lib/components/search_bar/query/ast_to_es_query_dsl.js +6 -1
- package/optimize/lib/components/search_bar/query/ast_to_es_query_string.js +3 -0
- package/optimize/lib/components/suggest/suggest.a11y.js +73 -0
- package/optimize/lib/components/table/table.a11y.js +78 -0
- package/package.json +1 -1
- package/src/components/date_picker/_date_picker_range.scss +0 -60
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +23 -11
- package/src/components/date_picker/super_date_picker/_variables.scss +3 -0
- package/src/components/date_picker/super_date_picker/date_popover/_date_popover_button.scss +5 -7
- package/src/components/form/form_control_layout/_form_control_layout.scss +2 -2
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +12 -36
- package/src/components/form/form_control_layout/_form_control_layout_icons.scss +27 -6
- package/src/themes/amsterdam/overrides/_date_picker.scss +0 -14
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.a11y.js +188 -0
- package/{optimize/lib/components/basic_table/table.a11y.js → test-env/components/basic_table/in_memory_table.a11y.js} +2 -2
- package/test-env/components/date_picker/date_picker.js +23 -15
- package/test-env/components/date_picker/date_picker_range.js +35 -41
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +99 -84
- package/test-env/components/form/field_number/field_number.js +37 -8
- package/test-env/components/form/field_text/field_text.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout.js +68 -35
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +31 -11
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +11 -19
- package/test-env/components/form/range/dual_range.js +2 -4
- package/test-env/components/form/range/range.js +0 -2
- package/test-env/components/form/range/range_input.js +47 -11
- package/test-env/components/form/validatable_control/validatable_control.js +9 -4
- package/test-env/components/index.js +0 -11
- package/test-env/components/search_bar/query/ast_to_es_query_dsl.js +6 -1
- package/test-env/components/search_bar/query/ast_to_es_query_string.js +3 -0
- package/test-env/components/suggest/suggest.a11y.js +73 -0
- package/test-env/components/table/table.a11y.js +78 -0
- package/es/components/inline_edit/index.js +0 -10
- package/es/components/inline_edit/inline_edit.styles.js +0 -15
- package/es/components/inline_edit/inline_edit_form.js +0 -190
- package/es/components/inline_edit/inline_edit_text.js +0 -97
- package/es/components/inline_edit/inline_edit_title.js +0 -105
- package/lib/components/inline_edit/index.js +0 -19
- package/lib/components/inline_edit/inline_edit.styles.js +0 -22
- package/lib/components/inline_edit/inline_edit_form.js +0 -193
- package/lib/components/inline_edit/inline_edit_text.js +0 -97
- package/lib/components/inline_edit/inline_edit_title.js +0 -106
- package/optimize/es/components/inline_edit/index.js +0 -10
- package/optimize/es/components/inline_edit/inline_edit.styles.js +0 -15
- package/optimize/es/components/inline_edit/inline_edit_form.js +0 -133
- package/optimize/es/components/inline_edit/inline_edit_text.js +0 -52
- package/optimize/es/components/inline_edit/inline_edit_title.js +0 -56
- package/optimize/lib/components/inline_edit/index.js +0 -19
- package/optimize/lib/components/inline_edit/inline_edit.styles.js +0 -22
- package/optimize/lib/components/inline_edit/inline_edit_form.js +0 -144
- package/optimize/lib/components/inline_edit/inline_edit_text.js +0 -52
- package/optimize/lib/components/inline_edit/inline_edit_title.js +0 -57
- package/src/themes/amsterdam/overrides/_date_popover_button.scss +0 -14
- package/test-env/components/inline_edit/index.js +0 -19
- package/test-env/components/inline_edit/inline_edit.styles.js +0 -22
- package/test-env/components/inline_edit/inline_edit_form.js +0 -196
- package/test-env/components/inline_edit/inline_edit_text.js +0 -96
- package/test-env/components/inline_edit/inline_edit_title.js +0 -105
package/eui.d.ts
CHANGED
|
@@ -2582,8 +2582,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2582
2582
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2583
2583
|
*/
|
|
2584
2584
|
contentProps?: CommonProps & EuiButtonContentType;
|
|
2585
|
-
} type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>;
|
|
2586
|
-
export type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
2585
|
+
} type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>; type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
2587
2586
|
export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
|
|
2588
2587
|
export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
|
|
2589
2588
|
export {};
|
|
@@ -3220,6 +3219,41 @@ declare module '@elastic/eui/src/components/form/described_form_group' {
|
|
|
3220
3219
|
export type { EuiDescribedFormGroupProps } from '@elastic/eui/src/components/form/described_form_group/described_form_group';
|
|
3221
3220
|
export { EuiDescribedFormGroup } from '@elastic/eui/src/components/form/described_form_group/described_form_group';
|
|
3222
3221
|
|
|
3222
|
+
}
|
|
3223
|
+
declare module '@elastic/eui/src/components/form/validatable_control/validatable_control' {
|
|
3224
|
+
import { ReactElement, Ref, FunctionComponent } from 'react';
|
|
3225
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3226
|
+
export interface HTMLConstraintValidityElement extends Element {
|
|
3227
|
+
setCustomValidity: (error: string) => void;
|
|
3228
|
+
}
|
|
3229
|
+
export interface ReactElementWithRef extends ReactElement {
|
|
3230
|
+
ref?: Ref<HTMLConstraintValidityElement>;
|
|
3231
|
+
}
|
|
3232
|
+
/**
|
|
3233
|
+
* The `EuiValidatableControl` component should be used in scenarios where
|
|
3234
|
+
* we can render the validated `<input>` as its direct child.
|
|
3235
|
+
*/
|
|
3236
|
+
export interface EuiValidatableControlProps {
|
|
3237
|
+
isInvalid?: boolean;
|
|
3238
|
+
children: ReactElementWithRef;
|
|
3239
|
+
}
|
|
3240
|
+
export const EuiValidatableControl: FunctionComponent<CommonProps & EuiValidatableControlProps>;
|
|
3241
|
+
/**
|
|
3242
|
+
* The `UseEuiValidatableControl` hook should be used in scenarios where
|
|
3243
|
+
* we *cannot* control where the validated `<input>` is rendered (e.g., ReactDatePicker)
|
|
3244
|
+
* and instead need to access the input via a ref and pass the element in directly
|
|
3245
|
+
*/
|
|
3246
|
+
export interface UseEuiValidatableControlProps {
|
|
3247
|
+
isInvalid?: boolean;
|
|
3248
|
+
controlEl: HTMLInputElement | HTMLConstraintValidityElement | null;
|
|
3249
|
+
}
|
|
3250
|
+
export const useEuiValidatableControl: ({ isInvalid, controlEl, }: UseEuiValidatableControlProps) => void;
|
|
3251
|
+
|
|
3252
|
+
}
|
|
3253
|
+
declare module '@elastic/eui/src/components/form/validatable_control' {
|
|
3254
|
+
export type { EuiValidatableControlProps, UseEuiValidatableControlProps, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
|
|
3255
|
+
export { EuiValidatableControl, useEuiValidatableControl, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
|
|
3256
|
+
|
|
3223
3257
|
}
|
|
3224
3258
|
declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button' {
|
|
3225
3259
|
import { FunctionComponent, ButtonHTMLAttributes } from 'react';
|
|
@@ -3249,7 +3283,8 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3249
3283
|
import { EuiFormControlLayoutCustomIconProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_custom_icon';
|
|
3250
3284
|
import { IconColor, IconType } from '@elastic/eui/src/components/icon';
|
|
3251
3285
|
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
3252
|
-
export const ICON_SIDES: [
|
|
3286
|
+
export const ICON_SIDES: readonly ["left", "right"];
|
|
3287
|
+
export type IconShape = DistributiveOmit<EuiFormControlLayoutCustomIconProps, 'type' | 'iconRef'> & {
|
|
3253
3288
|
type: IconType;
|
|
3254
3289
|
side?: typeof ICON_SIDES[number];
|
|
3255
3290
|
color?: IconColor;
|
|
@@ -3257,6 +3292,8 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3257
3292
|
};
|
|
3258
3293
|
export interface EuiFormControlLayoutIconsProps {
|
|
3259
3294
|
icon?: IconType | IconShape;
|
|
3295
|
+
side?: typeof ICON_SIDES[number];
|
|
3296
|
+
iconsPosition?: 'absolute' | 'static';
|
|
3260
3297
|
clear?: EuiFormControlLayoutClearButtonProps;
|
|
3261
3298
|
isLoading?: boolean;
|
|
3262
3299
|
isInvalid?: boolean;
|
|
@@ -3271,7 +3308,6 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3271
3308
|
renderClearButton(): JSX.Element | null;
|
|
3272
3309
|
renderInvalidIcon(): JSX.Element | null;
|
|
3273
3310
|
}
|
|
3274
|
-
export {};
|
|
3275
3311
|
|
|
3276
3312
|
}
|
|
3277
3313
|
declare module '@elastic/eui/src/components/form/form_label/form_label' {
|
|
@@ -3310,8 +3346,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3310
3346
|
import React, { Component, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
3311
3347
|
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
3312
3348
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3313
|
-
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
|
|
3314
|
-
export { ICON_SIDES } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons'; type StringOrReactElement = string | ReactElement; type PrependAppendType = StringOrReactElement | StringOrReactElement[];
|
|
3349
|
+
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context'; type StringOrReactElement = string | ReactElement; type PrependAppendType = StringOrReactElement | StringOrReactElement[];
|
|
3315
3350
|
export type EuiFormControlLayoutProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
3316
3351
|
/**
|
|
3317
3352
|
* Creates an input group with element(s) coming before children.
|
|
@@ -3325,6 +3360,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3325
3360
|
append?: PrependAppendType;
|
|
3326
3361
|
children?: ReactNode;
|
|
3327
3362
|
icon?: EuiFormControlLayoutIconsProps['icon'];
|
|
3363
|
+
iconsPosition?: EuiFormControlLayoutIconsProps['iconsPosition'];
|
|
3328
3364
|
clear?: EuiFormControlLayoutIconsProps['clear'];
|
|
3329
3365
|
/**
|
|
3330
3366
|
* Expand to fill 100% of the parent.
|
|
@@ -3350,10 +3386,13 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
3350
3386
|
export class EuiFormControlLayout extends Component<EuiFormControlLayoutProps> {
|
|
3351
3387
|
static contextType: React.Context<FormContextValue>;
|
|
3352
3388
|
render(): JSX.Element;
|
|
3389
|
+
renderLeftIcons: () => JSX.Element | null;
|
|
3390
|
+
renderRightIcons: () => JSX.Element | null;
|
|
3353
3391
|
renderSideNode(side: 'append' | 'prepend', nodes?: PrependAppendType, inputId?: string): JSX.Element | JSX.Element[] | undefined;
|
|
3354
3392
|
createFormLabel(side: 'append' | 'prepend', string: string, inputId?: string): JSX.Element;
|
|
3355
3393
|
createSideNode(side: 'append' | 'prepend', node: ReactElement, key: React.Key): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
3356
3394
|
}
|
|
3395
|
+
export {};
|
|
3357
3396
|
|
|
3358
3397
|
}
|
|
3359
3398
|
declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited' {
|
|
@@ -3384,41 +3423,6 @@ declare module '@elastic/eui/src/components/form/form_control_layout' {
|
|
|
3384
3423
|
export type { EuiFormControlLayoutDelimitedProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited';
|
|
3385
3424
|
export { EuiFormControlLayoutDelimited } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_delimited';
|
|
3386
3425
|
|
|
3387
|
-
}
|
|
3388
|
-
declare module '@elastic/eui/src/components/form/validatable_control/validatable_control' {
|
|
3389
|
-
import { ReactElement, Ref, FunctionComponent } from 'react';
|
|
3390
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3391
|
-
export interface HTMLConstraintValidityElement extends Element {
|
|
3392
|
-
setCustomValidity: (error: string) => void;
|
|
3393
|
-
}
|
|
3394
|
-
export interface ReactElementWithRef extends ReactElement {
|
|
3395
|
-
ref?: Ref<HTMLConstraintValidityElement>;
|
|
3396
|
-
}
|
|
3397
|
-
/**
|
|
3398
|
-
* The `EuiValidatableControl` component should be used in scenarios where
|
|
3399
|
-
* we can render the validated `<input>` as its direct child.
|
|
3400
|
-
*/
|
|
3401
|
-
export interface EuiValidatableControlProps {
|
|
3402
|
-
isInvalid?: boolean;
|
|
3403
|
-
children: ReactElementWithRef;
|
|
3404
|
-
}
|
|
3405
|
-
export const EuiValidatableControl: FunctionComponent<CommonProps & EuiValidatableControlProps>;
|
|
3406
|
-
/**
|
|
3407
|
-
* The `UseEuiValidatableControl` hook should be used in scenarios where
|
|
3408
|
-
* we *cannot* control where the validated `<input>` is rendered (e.g., ReactDatePicker)
|
|
3409
|
-
* and instead need to access the input via a ref and pass the element in directly
|
|
3410
|
-
*/
|
|
3411
|
-
export interface UseEuiValidatableControlProps {
|
|
3412
|
-
isInvalid?: boolean;
|
|
3413
|
-
controlEl: HTMLInputElement | HTMLConstraintValidityElement | null;
|
|
3414
|
-
}
|
|
3415
|
-
export const useEuiValidatableControl: ({ isInvalid, controlEl, }: UseEuiValidatableControlProps) => void;
|
|
3416
|
-
|
|
3417
|
-
}
|
|
3418
|
-
declare module '@elastic/eui/src/components/form/validatable_control' {
|
|
3419
|
-
export type { EuiValidatableControlProps, UseEuiValidatableControlProps, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
|
|
3420
|
-
export { EuiValidatableControl, useEuiValidatableControl, } from '@elastic/eui/src/components/form/validatable_control/validatable_control';
|
|
3421
|
-
|
|
3422
3426
|
}
|
|
3423
3427
|
declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
|
|
3424
3428
|
/**
|
|
@@ -3445,8 +3449,8 @@ declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons'
|
|
|
3445
3449
|
declare module '@elastic/eui/src/components/form/field_number/field_number' {
|
|
3446
3450
|
import { InputHTMLAttributes, Ref, FunctionComponent } from 'react';
|
|
3447
3451
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3448
|
-
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
|
|
3449
3452
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
3453
|
+
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
|
|
3450
3454
|
export type EuiFieldNumberProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'min' | 'max' | 'readOnly' | 'step'> & CommonProps & {
|
|
3451
3455
|
icon?: IconType;
|
|
3452
3456
|
isInvalid?: boolean;
|
|
@@ -5425,7 +5429,6 @@ declare module '@elastic/eui/src/components/form/range/range_input' {
|
|
|
5425
5429
|
import type { _SingleRangeValue, _SharedRangeInputSide } from '@elastic/eui/src/components/form/range/types';
|
|
5426
5430
|
export interface EuiRangeInputProps extends Omit<EuiFieldNumberProps, 'max' | 'min' | 'value' | 'step'>, Omit<_SingleRangeValue, 'onChange'>, _SharedRangeInputSide {
|
|
5427
5431
|
autoSize?: boolean;
|
|
5428
|
-
digitTolerance: number;
|
|
5429
5432
|
}
|
|
5430
5433
|
export const EuiRangeInput: FunctionComponent<EuiRangeInputProps>;
|
|
5431
5434
|
|
|
@@ -13808,6 +13811,11 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
|
|
|
13808
13811
|
* **Use [EuiPopover](/#/layout/popover) values**: 'upCenter', 'upLeft', 'upRight', downCenter', 'downLeft', 'downRight', 'leftCenter', 'leftUp', 'leftDown', 'rightCenter', 'rightUp', 'rightDown'.
|
|
13809
13812
|
*/
|
|
13810
13813
|
popoverPlacement?: PopoverAnchorPosition;
|
|
13814
|
+
/**
|
|
13815
|
+
* Completely removes form control layout wrapper and ignores
|
|
13816
|
+
* iconType. Best used inside EuiFormControlLayoutDelimited.
|
|
13817
|
+
*/
|
|
13818
|
+
controlOnly?: boolean;
|
|
13811
13819
|
}
|
|
13812
13820
|
export type EuiDatePickerProps = CommonProps & EuiExtendedDatePickerProps;
|
|
13813
13821
|
export const EuiDatePicker: FunctionComponent<EuiDatePickerProps>;
|
|
@@ -14424,9 +14432,10 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/async_
|
|
|
14424
14432
|
}
|
|
14425
14433
|
declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
14426
14434
|
import { FocusEventHandler, FunctionComponent, ReactNode, ReactElement } from 'react';
|
|
14435
|
+
import { EuiFormControlLayoutDelimitedProps } from '@elastic/eui/src/components/form';
|
|
14427
14436
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
14428
14437
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14429
|
-
export type EuiDatePickerRangeProps = CommonProps & {
|
|
14438
|
+
export type EuiDatePickerRangeProps = CommonProps & Pick<EuiFormControlLayoutDelimitedProps, 'isInvalid' | 'readOnly' | 'fullWidth' | 'prepend' | 'append'> & {
|
|
14430
14439
|
/**
|
|
14431
14440
|
* Including any children will replace all innards with the provided children
|
|
14432
14441
|
*/
|
|
@@ -14447,22 +14456,10 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
|
14447
14456
|
* Won't apply any additional props to start and end date components
|
|
14448
14457
|
*/
|
|
14449
14458
|
isCustom?: boolean;
|
|
14450
|
-
/**
|
|
14451
|
-
* Will color the range delimiter the `danger` color and pass through to each control
|
|
14452
|
-
*/
|
|
14453
|
-
isInvalid?: boolean;
|
|
14454
14459
|
/**
|
|
14455
14460
|
* Passes through to each control
|
|
14456
14461
|
*/
|
|
14457
14462
|
disabled?: boolean;
|
|
14458
|
-
/**
|
|
14459
|
-
* Passes through to each control
|
|
14460
|
-
*/
|
|
14461
|
-
readOnly?: boolean;
|
|
14462
|
-
/**
|
|
14463
|
-
* Passes through to each control
|
|
14464
|
-
*/
|
|
14465
|
-
fullWidth?: boolean;
|
|
14466
14463
|
/**
|
|
14467
14464
|
* Triggered whenever the start or end controls are blurred
|
|
14468
14465
|
*/
|
|
@@ -14762,6 +14759,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
14762
14759
|
onRefreshChange: ApplyRefreshInterval;
|
|
14763
14760
|
stopInterval: () => void;
|
|
14764
14761
|
startInterval: (refreshInterval: number) => void;
|
|
14762
|
+
renderQuickSelect: () => JSX.Element;
|
|
14765
14763
|
renderDatePickerRange: () => JSX.Element;
|
|
14766
14764
|
handleClickUpdateButton: () => void;
|
|
14767
14765
|
renderUpdateButton: () => JSX.Element | null;
|
|
@@ -15621,113 +15619,6 @@ declare module '@elastic/eui/src/components/image' {
|
|
|
15621
15619
|
export type { EuiImageProps } from '@elastic/eui/src/components/image/image_types';
|
|
15622
15620
|
export { EuiImage } from '@elastic/eui/src/components/image/image';
|
|
15623
15621
|
|
|
15624
|
-
}
|
|
15625
|
-
declare module '@elastic/eui/src/components/inline_edit/inline_edit_form' {
|
|
15626
|
-
import { ReactNode, FunctionComponent } from 'react';
|
|
15627
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15628
|
-
import { EuiFieldTextProps } from '@elastic/eui/src/components/form';
|
|
15629
|
-
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button';
|
|
15630
|
-
import { EuiButtonEmptyPropsForButton } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
15631
|
-
export type EuiInlineEditCommonProps = CommonProps & {
|
|
15632
|
-
defaultValue: string;
|
|
15633
|
-
/**
|
|
15634
|
-
* Allow users to pass in a function that is called when the confirm button is clicked
|
|
15635
|
-
* The function should return a boolean flag that will determine if the value will be saved.
|
|
15636
|
-
* When the flag is true, the value will be saved. When the flag is false, the user will be
|
|
15637
|
-
* returned to editMode.
|
|
15638
|
-
*/
|
|
15639
|
-
onConfirm?: () => boolean;
|
|
15640
|
-
/**
|
|
15641
|
-
* Form label that appears above the form control
|
|
15642
|
-
* This is required for accessibility because there is no visual label on the input
|
|
15643
|
-
*/
|
|
15644
|
-
inputAriaLabel: string;
|
|
15645
|
-
/**
|
|
15646
|
-
* Aria-label for save button in editMode
|
|
15647
|
-
*/
|
|
15648
|
-
saveButtonAriaLabel?: string;
|
|
15649
|
-
/**
|
|
15650
|
-
* Aria-label for cancel button in editMode
|
|
15651
|
-
*/
|
|
15652
|
-
cancelButtonAriaLabel?: string;
|
|
15653
|
-
/**
|
|
15654
|
-
* Start in editMode
|
|
15655
|
-
*/
|
|
15656
|
-
startWithEditOpen?: boolean;
|
|
15657
|
-
/**
|
|
15658
|
-
* Props that will be applied directly to the EuiEmptyButton displayed in readMode
|
|
15659
|
-
*/
|
|
15660
|
-
readModeProps?: Omit<EuiButtonEmptyPropsForButton, 'onClick'>;
|
|
15661
|
-
/**
|
|
15662
|
-
* Props that will be applied directly to the EuiFieldText displayed in editMode
|
|
15663
|
-
*/
|
|
15664
|
-
editModeProps?: EuiFieldTextProps;
|
|
15665
|
-
};
|
|
15666
|
-
export type EuiInlineEditFormProps = EuiInlineEditCommonProps & {
|
|
15667
|
-
/**
|
|
15668
|
-
* Form sizes
|
|
15669
|
-
*/
|
|
15670
|
-
sizes: {
|
|
15671
|
-
compressed: boolean;
|
|
15672
|
-
buttonSize: EuiButtonEmptyProps['size'];
|
|
15673
|
-
iconSize: EuiButtonEmptyProps['iconSize'];
|
|
15674
|
-
};
|
|
15675
|
-
/**
|
|
15676
|
-
* Render prop that returns the read mode value as an arg
|
|
15677
|
-
*/
|
|
15678
|
-
children: (readModeValue: ReactNode) => ReactNode;
|
|
15679
|
-
};
|
|
15680
|
-
export const SMALL_SIZE_FORM: {
|
|
15681
|
-
readonly iconSize: "s";
|
|
15682
|
-
readonly compressed: true;
|
|
15683
|
-
readonly buttonSize: "s";
|
|
15684
|
-
};
|
|
15685
|
-
export const MEDIUM_SIZE_FORM: {
|
|
15686
|
-
readonly iconSize: "m";
|
|
15687
|
-
readonly compressed: false;
|
|
15688
|
-
readonly buttonSize: "m";
|
|
15689
|
-
};
|
|
15690
|
-
export const EuiInlineEditForm: FunctionComponent<EuiInlineEditFormProps>;
|
|
15691
|
-
|
|
15692
|
-
}
|
|
15693
|
-
declare module '@elastic/eui/src/components/inline_edit/inline_edit_text' {
|
|
15694
|
-
import { FunctionComponent } from 'react';
|
|
15695
|
-
import { EuiTextProps } from '@elastic/eui/src/components/text';
|
|
15696
|
-
import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
|
|
15697
|
-
export type EuiInlineEditTextSizes = Exclude<EuiTextProps['size'], 'relative'>;
|
|
15698
|
-
export type EuiInlineEditTextProps = EuiInlineEditCommonProps & {
|
|
15699
|
-
/**
|
|
15700
|
-
* Text size level
|
|
15701
|
-
*/
|
|
15702
|
-
size?: EuiInlineEditTextSizes;
|
|
15703
|
-
};
|
|
15704
|
-
export const EuiInlineEditText: FunctionComponent<EuiInlineEditTextProps>;
|
|
15705
|
-
|
|
15706
|
-
}
|
|
15707
|
-
declare module '@elastic/eui/src/components/inline_edit/inline_edit_title' {
|
|
15708
|
-
import { FunctionComponent } from 'react';
|
|
15709
|
-
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
15710
|
-
import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
|
|
15711
|
-
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"]; type Heading = typeof HEADINGS[number];
|
|
15712
|
-
export type EuiInlineEditTitleProps = EuiInlineEditCommonProps & {
|
|
15713
|
-
/**
|
|
15714
|
-
* Title size level
|
|
15715
|
-
*/
|
|
15716
|
-
size?: EuiTitleSize;
|
|
15717
|
-
/**
|
|
15718
|
-
* Level of heading to be used for the title
|
|
15719
|
-
*/
|
|
15720
|
-
heading: Heading;
|
|
15721
|
-
};
|
|
15722
|
-
export const EuiInlineEditTitle: FunctionComponent<EuiInlineEditTitleProps>;
|
|
15723
|
-
export {};
|
|
15724
|
-
|
|
15725
|
-
}
|
|
15726
|
-
declare module '@elastic/eui/src/components/inline_edit' {
|
|
15727
|
-
export { EuiInlineEditText } from '@elastic/eui/src/components/inline_edit/inline_edit_text';
|
|
15728
|
-
export { EuiInlineEditTitle } from '@elastic/eui/src/components/inline_edit/inline_edit_title';
|
|
15729
|
-
export type { EuiInlineEditTextSizes } from '@elastic/eui/src/components/inline_edit/inline_edit_text';
|
|
15730
|
-
|
|
15731
15622
|
}
|
|
15732
15623
|
declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu.styles' {
|
|
15733
15624
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -21487,7 +21378,6 @@ declare module '@elastic/eui/src/components' {
|
|
|
21487
21378
|
export * from '@elastic/eui/src/components/icon';
|
|
21488
21379
|
export * from '@elastic/eui/src/components/image';
|
|
21489
21380
|
export * from '@elastic/eui/src/components/inner_text';
|
|
21490
|
-
export * from '@elastic/eui/src/components/inline_edit';
|
|
21491
21381
|
export * from '@elastic/eui/src/components/i18n';
|
|
21492
21382
|
export * from '@elastic/eui/src/components/loading';
|
|
21493
21383
|
export * from '@elastic/eui/src/components/key_pad_menu';
|
|
@@ -26231,13 +26121,6 @@ declare module '@elastic/eui/src/components/icon/assets/wrench' {
|
|
|
26231
26121
|
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
26232
26122
|
export {};
|
|
26233
26123
|
|
|
26234
|
-
}
|
|
26235
|
-
declare module '@elastic/eui/src/components/inline_edit/inline_edit.styles' {
|
|
26236
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
26237
|
-
export const euiInlineEditStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
26238
|
-
euiInlineEdit: import("@emotion/utils").SerializedStyles;
|
|
26239
|
-
};
|
|
26240
|
-
|
|
26241
26124
|
}
|
|
26242
26125
|
/*
|
|
26243
26126
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -26573,6 +26456,7 @@ declare module '@elastic/eui' {
|
|
|
26573
26456
|
"euiFilePicker.clearSelectedFiles": any;
|
|
26574
26457
|
"euiFilePicker.removeSelected": any;
|
|
26575
26458
|
"euiFormControlLayoutClearButton.label": any;
|
|
26459
|
+
"euiFormControlLayoutDelimited.delimiterLabel": any;
|
|
26576
26460
|
"euiForm.addressFormErrors": any;
|
|
26577
26461
|
"euiDualRange.sliderScreenReaderInstructions": any;
|
|
26578
26462
|
"euiRange.sliderScreenReaderInstructions": any;
|
|
@@ -26582,8 +26466,6 @@ declare module '@elastic/eui' {
|
|
|
26582
26466
|
"euiHeaderLinks.appNavigation": any;
|
|
26583
26467
|
"euiImageButton.openFullScreen": any;
|
|
26584
26468
|
"euiImageButton.closeFullScreen": any;
|
|
26585
|
-
"euiInlineEditForm.saveButtonAriaLabel": any;
|
|
26586
|
-
"euiInlineEditForm.cancelButtonAriaLabel": any;
|
|
26587
26469
|
"euiLink.newTarget.screenReaderOnlyText": any;
|
|
26588
26470
|
"euiLink.external.ariaLabel": any;
|
|
26589
26471
|
"euiPinnableListGroup.pinExtraActionLabel": any;
|
package/i18ntokens.json
CHANGED
|
@@ -4805,6 +4805,24 @@
|
|
|
4805
4805
|
},
|
|
4806
4806
|
"filepath": "src/components/form/form_control_layout/form_control_layout_clear_button.tsx"
|
|
4807
4807
|
},
|
|
4808
|
+
{
|
|
4809
|
+
"token": "euiFormControlLayoutDelimited.delimiterLabel",
|
|
4810
|
+
"defString": "to",
|
|
4811
|
+
"highlighting": "string",
|
|
4812
|
+
"loc": {
|
|
4813
|
+
"start": {
|
|
4814
|
+
"line": 87,
|
|
4815
|
+
"column": 27,
|
|
4816
|
+
"index": 2215
|
|
4817
|
+
},
|
|
4818
|
+
"end": {
|
|
4819
|
+
"line": 90,
|
|
4820
|
+
"column": 3,
|
|
4821
|
+
"index": 2291
|
|
4822
|
+
}
|
|
4823
|
+
},
|
|
4824
|
+
"filepath": "src/components/form/form_control_layout/form_control_layout_delimited.tsx"
|
|
4825
|
+
},
|
|
4808
4826
|
{
|
|
4809
4827
|
"token": "euiForm.addressFormErrors",
|
|
4810
4828
|
"defString": "Please address the highlighted errors.",
|
|
@@ -4829,14 +4847,14 @@
|
|
|
4829
4847
|
"highlighting": "string",
|
|
4830
4848
|
"loc": {
|
|
4831
4849
|
"start": {
|
|
4832
|
-
"line":
|
|
4850
|
+
"line": 568,
|
|
4833
4851
|
"column": 6,
|
|
4834
|
-
"index":
|
|
4852
|
+
"index": 17548
|
|
4835
4853
|
},
|
|
4836
4854
|
"end": {
|
|
4837
|
-
"line":
|
|
4855
|
+
"line": 571,
|
|
4838
4856
|
"column": 8,
|
|
4839
|
-
"index":
|
|
4857
|
+
"index": 17783
|
|
4840
4858
|
}
|
|
4841
4859
|
},
|
|
4842
4860
|
"filepath": "src/components/form/range/dual_range.tsx"
|
|
@@ -4847,14 +4865,14 @@
|
|
|
4847
4865
|
"highlighting": "string",
|
|
4848
4866
|
"loc": {
|
|
4849
4867
|
"start": {
|
|
4850
|
-
"line":
|
|
4868
|
+
"line": 182,
|
|
4851
4869
|
"column": 6,
|
|
4852
|
-
"index":
|
|
4870
|
+
"index": 4833
|
|
4853
4871
|
},
|
|
4854
4872
|
"end": {
|
|
4855
|
-
"line":
|
|
4873
|
+
"line": 185,
|
|
4856
4874
|
"column": 8,
|
|
4857
|
-
"index":
|
|
4875
|
+
"index": 5010
|
|
4858
4876
|
}
|
|
4859
4877
|
},
|
|
4860
4878
|
"filepath": "src/components/form/range/range.tsx"
|
|
@@ -4967,42 +4985,6 @@
|
|
|
4967
4985
|
},
|
|
4968
4986
|
"filepath": "src/components/image/image_button.tsx"
|
|
4969
4987
|
},
|
|
4970
|
-
{
|
|
4971
|
-
"token": "euiInlineEditForm.saveButtonAriaLabel",
|
|
4972
|
-
"defString": "Save edit",
|
|
4973
|
-
"highlighting": "string",
|
|
4974
|
-
"loc": {
|
|
4975
|
-
"start": {
|
|
4976
|
-
"line": 105,
|
|
4977
|
-
"column": 37,
|
|
4978
|
-
"index": 3359
|
|
4979
|
-
},
|
|
4980
|
-
"end": {
|
|
4981
|
-
"line": 108,
|
|
4982
|
-
"column": 3,
|
|
4983
|
-
"index": 3435
|
|
4984
|
-
}
|
|
4985
|
-
},
|
|
4986
|
-
"filepath": "src/components/inline_edit/inline_edit_form.tsx"
|
|
4987
|
-
},
|
|
4988
|
-
{
|
|
4989
|
-
"token": "euiInlineEditForm.cancelButtonAriaLabel",
|
|
4990
|
-
"defString": "Cancel edit",
|
|
4991
|
-
"highlighting": "string",
|
|
4992
|
-
"loc": {
|
|
4993
|
-
"start": {
|
|
4994
|
-
"line": 109,
|
|
4995
|
-
"column": 39,
|
|
4996
|
-
"index": 3476
|
|
4997
|
-
},
|
|
4998
|
-
"end": {
|
|
4999
|
-
"line": 112,
|
|
5000
|
-
"column": 3,
|
|
5001
|
-
"index": 3556
|
|
5002
|
-
}
|
|
5003
|
-
},
|
|
5004
|
-
"filepath": "src/components/inline_edit/inline_edit_form.tsx"
|
|
5005
|
-
},
|
|
5006
4988
|
{
|
|
5007
4989
|
"token": "euiLink.newTarget.screenReaderOnlyText",
|
|
5008
4990
|
"defString": "(opens in a new tab or window)",
|