@elastic/eui 59.1.0-rc1 → 59.1.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_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +42 -7
- package/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/es/components/avatar/avatar.js +7 -9
- package/es/components/bottom_bar/bottom_bar.js +9 -8
- package/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/es/components/call_out/call_out.js +8 -9
- package/es/components/expression/expression.js +10 -11
- package/es/components/facet/facet_button.js +8 -9
- package/es/components/facet/facet_group.js +7 -8
- package/es/components/health/health.js +6 -7
- package/es/components/horizontal_rule/horizontal_rule.js +6 -7
- package/es/components/link/link.js +7 -8
- package/es/components/loading/loading_chart.js +6 -7
- package/es/components/loading/loading_content.js +6 -7
- package/es/components/loading/loading_logo.js +6 -7
- package/es/components/loading/loading_spinner.js +6 -7
- package/es/components/mark/mark.js +8 -9
- package/es/components/markdown_editor/markdown_format.js +6 -7
- package/es/components/panel/panel.js +7 -8
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +5 -39
- package/es/components/spacer/spacer.js +6 -7
- package/es/components/text/text.js +6 -7
- package/es/components/text/text_color.js +6 -7
- package/es/components/timeline/timeline_item.js +6 -7
- package/es/components/timeline/timeline_item_icon.js +6 -7
- package/es/components/title/title.js +6 -7
- package/es/services/theme/hooks.js +2 -2
- package/es/services/theme/provider.js +5 -1
- package/{optimize/es/components/provider/cache → es/themes/amsterdam}/index.js +2 -2
- package/es/themes/index.js +2 -1
- package/eui.d.ts +337 -827
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/skip_link/skip_link.js +45 -11
- package/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/lib/components/avatar/avatar.js +8 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/lib/components/call_out/call_out.js +10 -14
- package/lib/components/expression/expression.js +12 -14
- package/lib/components/facet/facet_button.js +10 -12
- package/lib/components/facet/facet_group.js +9 -11
- package/lib/components/health/health.js +8 -10
- package/lib/components/horizontal_rule/horizontal_rule.js +8 -10
- package/lib/components/link/link.js +7 -13
- package/lib/components/loading/loading_chart.js +8 -10
- package/lib/components/loading/loading_content.js +8 -10
- package/lib/components/loading/loading_logo.js +8 -10
- package/lib/components/loading/loading_spinner.js +8 -10
- package/lib/components/mark/mark.js +10 -12
- package/lib/components/markdown_editor/markdown_format.js +8 -10
- package/lib/components/panel/panel.js +9 -11
- package/lib/components/provider/index.js +7 -12
- package/lib/components/provider/provider.js +5 -40
- package/lib/components/spacer/spacer.js +8 -10
- package/lib/components/text/text.js +8 -10
- package/lib/components/text/text_color.js +8 -10
- package/lib/components/timeline/timeline_item.js +8 -10
- package/lib/components/timeline/timeline_item_icon.js +8 -10
- package/lib/components/title/title.js +9 -11
- package/lib/services/theme/hooks.js +2 -2
- package/lib/services/theme/provider.js +6 -3
- package/{test-env/components/provider/system → lib/themes/amsterdam}/index.js +4 -4
- package/lib/themes/index.js +21 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +27 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/es/components/avatar/avatar.js +5 -7
- package/optimize/es/components/bottom_bar/bottom_bar.js +9 -8
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/es/components/call_out/call_out.js +7 -8
- package/optimize/es/components/expression/expression.js +9 -10
- package/optimize/es/components/facet/facet_button.js +7 -8
- package/optimize/es/components/facet/facet_group.js +6 -7
- package/optimize/es/components/health/health.js +5 -6
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +5 -6
- package/optimize/es/components/link/link.js +6 -7
- package/optimize/es/components/loading/loading_chart.js +5 -6
- package/optimize/es/components/loading/loading_content.js +5 -6
- package/optimize/es/components/loading/loading_logo.js +5 -6
- package/optimize/es/components/loading/loading_spinner.js +5 -6
- package/optimize/es/components/mark/mark.js +7 -8
- package/optimize/es/components/markdown_editor/markdown_format.js +5 -6
- package/optimize/es/components/panel/panel.js +6 -7
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +5 -39
- package/optimize/es/components/spacer/spacer.js +5 -6
- package/optimize/es/components/text/text.js +5 -6
- package/optimize/es/components/text/text_color.js +5 -6
- package/optimize/es/components/timeline/timeline_item.js +5 -6
- package/optimize/es/components/timeline/timeline_item_icon.js +5 -6
- package/optimize/es/components/title/title.js +5 -6
- package/optimize/es/services/theme/hooks.js +2 -2
- package/optimize/es/services/theme/provider.js +5 -1
- package/optimize/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
- package/optimize/es/themes/index.js +2 -1
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +30 -8
- package/optimize/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +5 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/lib/components/call_out/call_out.js +9 -13
- package/optimize/lib/components/expression/expression.js +9 -11
- package/optimize/lib/components/facet/facet_button.js +7 -9
- package/optimize/lib/components/facet/facet_group.js +6 -8
- package/optimize/lib/components/health/health.js +5 -7
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +5 -7
- package/optimize/lib/components/link/link.js +6 -12
- package/optimize/lib/components/loading/loading_chart.js +5 -7
- package/optimize/lib/components/loading/loading_content.js +5 -7
- package/optimize/lib/components/loading/loading_logo.js +5 -7
- package/optimize/lib/components/loading/loading_spinner.js +5 -7
- package/optimize/lib/components/mark/mark.js +7 -9
- package/optimize/lib/components/markdown_editor/markdown_format.js +5 -7
- package/optimize/lib/components/panel/panel.js +6 -8
- package/optimize/lib/components/provider/index.js +7 -12
- package/optimize/lib/components/provider/provider.js +5 -40
- package/optimize/lib/components/spacer/spacer.js +5 -7
- package/optimize/lib/components/text/text.js +5 -7
- package/optimize/lib/components/text/text_color.js +5 -7
- package/optimize/lib/components/timeline/timeline_item.js +5 -7
- package/optimize/lib/components/timeline/timeline_item_icon.js +5 -7
- package/optimize/lib/components/title/title.js +6 -8
- package/optimize/lib/services/theme/hooks.js +2 -2
- package/optimize/lib/services/theme/provider.js +6 -3
- package/{lib/components/provider/system → optimize/lib/themes/amsterdam}/index.js +4 -4
- package/optimize/lib/themes/index.js +21 -1
- package/package.json +1 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +46 -11
- package/test-env/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/test-env/components/avatar/avatar.js +8 -12
- package/test-env/components/bottom_bar/bottom_bar.js +6 -9
- package/test-env/components/breadcrumbs/breadcrumbs.js +1 -2
- package/test-env/components/call_out/call_out.js +10 -14
- package/test-env/components/expression/expression.js +12 -14
- package/test-env/components/facet/facet_button.js +10 -12
- package/test-env/components/facet/facet_group.js +9 -11
- package/test-env/components/health/health.js +8 -10
- package/test-env/components/horizontal_rule/horizontal_rule.js +8 -10
- package/test-env/components/link/link.js +7 -13
- package/test-env/components/loading/loading_chart.js +8 -10
- package/test-env/components/loading/loading_content.js +8 -10
- package/test-env/components/loading/loading_logo.js +8 -10
- package/test-env/components/loading/loading_spinner.js +8 -10
- package/test-env/components/mark/mark.js +10 -12
- package/test-env/components/markdown_editor/markdown_format.js +8 -10
- package/test-env/components/panel/panel.js +9 -11
- package/test-env/components/provider/index.js +7 -12
- package/test-env/components/provider/provider.js +5 -40
- package/test-env/components/spacer/spacer.js +8 -10
- package/test-env/components/text/text.js +8 -10
- package/test-env/components/text/text_color.js +8 -10
- package/test-env/components/timeline/timeline_item.js +8 -10
- package/test-env/components/timeline/timeline_item_icon.js +8 -10
- package/test-env/components/title/title.js +9 -11
- package/test-env/services/theme/hooks.js +2 -2
- package/test-env/services/theme/provider.js +6 -3
- package/{optimize/lib/components/provider/system → test-env/themes/amsterdam}/index.js +4 -4
- package/test-env/themes/index.js +21 -1
- package/es/components/provider/cache/cache_context.js +0 -12
- package/es/components/provider/cache/cache_provider.js +0 -17
- package/es/components/provider/cache/index.js +0 -9
- package/es/components/provider/system/index.js +0 -8
- package/es/components/provider/system/system.js +0 -33
- package/es/global_styling/utility/utility.js +0 -27
- package/lib/components/provider/cache/cache_context.js +0 -24
- package/lib/components/provider/cache/cache_provider.js +0 -29
- package/lib/components/provider/cache/index.js +0 -31
- package/lib/components/provider/system/system.js +0 -45
- package/lib/global_styling/utility/utility.js +0 -31
- package/optimize/es/components/provider/cache/cache_context.js +0 -12
- package/optimize/es/components/provider/cache/cache_provider.js +0 -17
- package/optimize/es/components/provider/system/system.js +0 -33
- package/optimize/es/global_styling/utility/utility.js +0 -27
- package/optimize/lib/components/provider/cache/cache_context.js +0 -24
- package/optimize/lib/components/provider/cache/cache_provider.js +0 -29
- package/optimize/lib/components/provider/cache/index.js +0 -31
- package/optimize/lib/components/provider/system/system.js +0 -54
- package/optimize/lib/global_styling/utility/utility.js +0 -31
- package/test-env/components/provider/cache/cache_context.js +0 -24
- package/test-env/components/provider/cache/cache_provider.js +0 -29
- package/test-env/components/provider/cache/index.js +0 -31
- package/test-env/components/provider/system/system.js +0 -54
- package/test-env/global_styling/utility/utility.js +0 -31
package/eui.d.ts
CHANGED
|
@@ -52,117 +52,6 @@ declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
|
|
|
52
52
|
export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
53
53
|
export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
54
54
|
|
|
55
|
-
}
|
|
56
|
-
declare module '@elastic/eui/src/components/common' {
|
|
57
|
-
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentProps, Component, FunctionComponent, JSXElementConstructor, MouseEventHandler, SFC } from 'react';
|
|
58
|
-
export interface CommonProps {
|
|
59
|
-
className?: string;
|
|
60
|
-
'aria-label'?: string;
|
|
61
|
-
'data-test-subj'?: string;
|
|
62
|
-
}
|
|
63
|
-
export type NoArgCallback<T> = () => T;
|
|
64
|
-
export const assertNever: (x: never) => never;
|
|
65
|
-
/**
|
|
66
|
-
* XOR for some properties applied to a type
|
|
67
|
-
* (XOR is one of these but not both or neither)
|
|
68
|
-
*
|
|
69
|
-
* Usage: OneOf<typeToExtend, one | but | not | multiple | of | these | are | required>
|
|
70
|
-
*
|
|
71
|
-
* To require aria-label or aria-labelledby but not both
|
|
72
|
-
* Example: OneOf<Type, 'aria-label' | 'aria-labelledby'>
|
|
73
|
-
*/
|
|
74
|
-
export type OneOf<T, K extends keyof T> = Omit<T, K> & {
|
|
75
|
-
[k in K]: Pick<Required<T>, k> & {
|
|
76
|
-
[k1 in Exclude<K, k>]?: never;
|
|
77
|
-
};
|
|
78
|
-
}[K];
|
|
79
|
-
/**
|
|
80
|
-
* Wraps Object.keys with proper typescript definition of the resulting array
|
|
81
|
-
*/
|
|
82
|
-
export function keysOf<T, K extends keyof T>(obj: T): K[];
|
|
83
|
-
/**
|
|
84
|
-
* Like `keyof typeof`, but for getting values instead of keys
|
|
85
|
-
* ValueOf<typeof {key1: 'value1', key2: 'value2'}>
|
|
86
|
-
* Results in `'value1' | 'value2'`
|
|
87
|
-
*/
|
|
88
|
-
export type ValueOf<T> = T[keyof T];
|
|
89
|
-
export type PropsOf<C> = C extends SFC<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never;
|
|
90
|
-
export type PropsOfElement<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, ComponentProps<C>>; type ExtractDefaultProps<T> = T extends {
|
|
91
|
-
defaultProps: infer D;
|
|
92
|
-
} ? D : never; type ExtractProps<C extends new (...args: any) => any, IT = InstanceType<C>> = IT extends Component<infer P> ? P : never;
|
|
93
|
-
/**
|
|
94
|
-
* Because of how TypeScript's LibraryManagedAttributes is designed to handle defaultProps (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#support-for-defaultprops-in-jsx)
|
|
95
|
-
* we can't directly export the props definition as the defaulted values are not made optional,
|
|
96
|
-
* because it isn't processed by LibraryManagedAttributes. To get around this, we:
|
|
97
|
-
* - remove the props which have default values applied
|
|
98
|
-
* - export (Props - Defaults) & Partial<Defaults>
|
|
99
|
-
*/
|
|
100
|
-
export type ApplyClassComponentDefaults<C extends new (...args: any) => any, D = ExtractDefaultProps<C>, P = ExtractProps<C>> = Omit<P, keyof D> & {
|
|
101
|
-
[K in keyof D]?: K extends keyof P ? P[K] : never;
|
|
102
|
-
}; type UnionKeys<T> = T extends any ? keyof T : never;
|
|
103
|
-
export type DistributivePick<T, K extends UnionKeys<T>> = T extends any ? Pick<T, Extract<keyof T, K>> : never;
|
|
104
|
-
export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never; type RecursiveDistributiveOmit<T, K extends PropertyKey> = T extends any ? T extends object ? RecursiveOmit<T, K> : T : never;
|
|
105
|
-
export type RecursiveOmit<T, K extends PropertyKey> = Omit<{
|
|
106
|
-
[P in keyof T]: RecursiveDistributiveOmit<T[P], K>;
|
|
107
|
-
}, K>;
|
|
108
|
-
/**
|
|
109
|
-
* Returns member keys in U not present in T set to never
|
|
110
|
-
* T = { 'one', 'two', 'three' }
|
|
111
|
-
* U = { 'three', 'four', 'five' }
|
|
112
|
-
* returns { 'four': never, 'five': never }
|
|
113
|
-
*/
|
|
114
|
-
export type DisambiguateSet<T, U> = {
|
|
115
|
-
[P in Exclude<keyof T, keyof U>]?: never;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Allow either T or U, preventing any additional keys of the other type from being present
|
|
119
|
-
*/
|
|
120
|
-
export type ExclusiveUnion<T, U> = T | U extends object ? (DisambiguateSet<T, U> & U) | (DisambiguateSet<U, T> & T) : T | U;
|
|
121
|
-
/**
|
|
122
|
-
* For components that conditionally render <button> or <a>
|
|
123
|
-
* Convenience types for extending base props (T) and
|
|
124
|
-
* element-specific props (P) with standard clickable properties
|
|
125
|
-
*
|
|
126
|
-
* These will likely be used together, along with `ExclusiveUnion`:
|
|
127
|
-
*
|
|
128
|
-
* type AnchorLike = PropsForAnchor<BaseProps>
|
|
129
|
-
* type ButtonLike = PropsForButton<BaseProps>
|
|
130
|
-
* type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
|
|
131
|
-
* const Component: FunctionComponent<ComponentProps> ...
|
|
132
|
-
*/
|
|
133
|
-
export type PropsForAnchor<T, P = {}> = T & {
|
|
134
|
-
href?: string;
|
|
135
|
-
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
136
|
-
} & AnchorHTMLAttributes<HTMLAnchorElement> & P;
|
|
137
|
-
export type PropsForButton<T, P = {}> = T & {
|
|
138
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
139
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> & P;
|
|
140
|
-
/**
|
|
141
|
-
* Replaces all properties on any type as optional, includes nested types
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```ts
|
|
145
|
-
* interface Person {
|
|
146
|
-
* name: string;
|
|
147
|
-
* age?: number;
|
|
148
|
-
* spouse: Person;
|
|
149
|
-
* children: Person[];
|
|
150
|
-
* }
|
|
151
|
-
* type PartialPerson = RecursivePartial<Person>;
|
|
152
|
-
* // results in
|
|
153
|
-
* interface PartialPerson {
|
|
154
|
-
* name?: string;
|
|
155
|
-
* age?: number;
|
|
156
|
-
* spouse?: RecursivePartial<Person>;
|
|
157
|
-
* children?: RecursivePartial<Person>[]
|
|
158
|
-
* }
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
export type RecursivePartial<T> = {
|
|
162
|
-
[P in keyof T]?: T[P] extends NonAny[] ? T[P] : T[P] extends readonly NonAny[] ? T[P] : T[P] extends Array<infer U> ? Array<RecursivePartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<RecursivePartial<U>> : T[P] extends Set<infer V> ? Set<RecursivePartial<V>> : T[P] extends Map<infer K, infer V> ? Map<K, RecursivePartial<V>> : T[P] extends NonAny ? T[P] : RecursivePartial<T[P]>;
|
|
163
|
-
}; type NonAny = number | boolean | string | symbol | null;
|
|
164
|
-
export {};
|
|
165
|
-
|
|
166
55
|
}
|
|
167
56
|
declare module '@elastic/eui/src/services/keys' {
|
|
168
57
|
export const ENTER = "Enter";
|
|
@@ -277,6 +166,117 @@ declare module '@elastic/eui/src/services/alignment' {
|
|
|
277
166
|
export const CENTER_ALIGNMENT = "center";
|
|
278
167
|
export type HorizontalAlignment = 'left' | 'right' | 'center';
|
|
279
168
|
|
|
169
|
+
}
|
|
170
|
+
declare module '@elastic/eui/src/components/common' {
|
|
171
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentProps, Component, FunctionComponent, JSXElementConstructor, MouseEventHandler, SFC } from 'react';
|
|
172
|
+
export interface CommonProps {
|
|
173
|
+
className?: string;
|
|
174
|
+
'aria-label'?: string;
|
|
175
|
+
'data-test-subj'?: string;
|
|
176
|
+
}
|
|
177
|
+
export type NoArgCallback<T> = () => T;
|
|
178
|
+
export const assertNever: (x: never) => never;
|
|
179
|
+
/**
|
|
180
|
+
* XOR for some properties applied to a type
|
|
181
|
+
* (XOR is one of these but not both or neither)
|
|
182
|
+
*
|
|
183
|
+
* Usage: OneOf<typeToExtend, one | but | not | multiple | of | these | are | required>
|
|
184
|
+
*
|
|
185
|
+
* To require aria-label or aria-labelledby but not both
|
|
186
|
+
* Example: OneOf<Type, 'aria-label' | 'aria-labelledby'>
|
|
187
|
+
*/
|
|
188
|
+
export type OneOf<T, K extends keyof T> = Omit<T, K> & {
|
|
189
|
+
[k in K]: Pick<Required<T>, k> & {
|
|
190
|
+
[k1 in Exclude<K, k>]?: never;
|
|
191
|
+
};
|
|
192
|
+
}[K];
|
|
193
|
+
/**
|
|
194
|
+
* Wraps Object.keys with proper typescript definition of the resulting array
|
|
195
|
+
*/
|
|
196
|
+
export function keysOf<T, K extends keyof T>(obj: T): K[];
|
|
197
|
+
/**
|
|
198
|
+
* Like `keyof typeof`, but for getting values instead of keys
|
|
199
|
+
* ValueOf<typeof {key1: 'value1', key2: 'value2'}>
|
|
200
|
+
* Results in `'value1' | 'value2'`
|
|
201
|
+
*/
|
|
202
|
+
export type ValueOf<T> = T[keyof T];
|
|
203
|
+
export type PropsOf<C> = C extends SFC<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never;
|
|
204
|
+
export type PropsOfElement<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, ComponentProps<C>>; type ExtractDefaultProps<T> = T extends {
|
|
205
|
+
defaultProps: infer D;
|
|
206
|
+
} ? D : never; type ExtractProps<C extends new (...args: any) => any, IT = InstanceType<C>> = IT extends Component<infer P> ? P : never;
|
|
207
|
+
/**
|
|
208
|
+
* Because of how TypeScript's LibraryManagedAttributes is designed to handle defaultProps (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#support-for-defaultprops-in-jsx)
|
|
209
|
+
* we can't directly export the props definition as the defaulted values are not made optional,
|
|
210
|
+
* because it isn't processed by LibraryManagedAttributes. To get around this, we:
|
|
211
|
+
* - remove the props which have default values applied
|
|
212
|
+
* - export (Props - Defaults) & Partial<Defaults>
|
|
213
|
+
*/
|
|
214
|
+
export type ApplyClassComponentDefaults<C extends new (...args: any) => any, D = ExtractDefaultProps<C>, P = ExtractProps<C>> = Omit<P, keyof D> & {
|
|
215
|
+
[K in keyof D]?: K extends keyof P ? P[K] : never;
|
|
216
|
+
}; type UnionKeys<T> = T extends any ? keyof T : never;
|
|
217
|
+
export type DistributivePick<T, K extends UnionKeys<T>> = T extends any ? Pick<T, Extract<keyof T, K>> : never;
|
|
218
|
+
export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never; type RecursiveDistributiveOmit<T, K extends PropertyKey> = T extends any ? T extends object ? RecursiveOmit<T, K> : T : never;
|
|
219
|
+
export type RecursiveOmit<T, K extends PropertyKey> = Omit<{
|
|
220
|
+
[P in keyof T]: RecursiveDistributiveOmit<T[P], K>;
|
|
221
|
+
}, K>;
|
|
222
|
+
/**
|
|
223
|
+
* Returns member keys in U not present in T set to never
|
|
224
|
+
* T = { 'one', 'two', 'three' }
|
|
225
|
+
* U = { 'three', 'four', 'five' }
|
|
226
|
+
* returns { 'four': never, 'five': never }
|
|
227
|
+
*/
|
|
228
|
+
export type DisambiguateSet<T, U> = {
|
|
229
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Allow either T or U, preventing any additional keys of the other type from being present
|
|
233
|
+
*/
|
|
234
|
+
export type ExclusiveUnion<T, U> = T | U extends object ? (DisambiguateSet<T, U> & U) | (DisambiguateSet<U, T> & T) : T | U;
|
|
235
|
+
/**
|
|
236
|
+
* For components that conditionally render <button> or <a>
|
|
237
|
+
* Convenience types for extending base props (T) and
|
|
238
|
+
* element-specific props (P) with standard clickable properties
|
|
239
|
+
*
|
|
240
|
+
* These will likely be used together, along with `ExclusiveUnion`:
|
|
241
|
+
*
|
|
242
|
+
* type AnchorLike = PropsForAnchor<BaseProps>
|
|
243
|
+
* type ButtonLike = PropsForButton<BaseProps>
|
|
244
|
+
* type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
|
|
245
|
+
* const Component: FunctionComponent<ComponentProps> ...
|
|
246
|
+
*/
|
|
247
|
+
export type PropsForAnchor<T, P = {}> = T & {
|
|
248
|
+
href?: string;
|
|
249
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
250
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & P;
|
|
251
|
+
export type PropsForButton<T, P = {}> = T & {
|
|
252
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
253
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & P;
|
|
254
|
+
/**
|
|
255
|
+
* Replaces all properties on any type as optional, includes nested types
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```ts
|
|
259
|
+
* interface Person {
|
|
260
|
+
* name: string;
|
|
261
|
+
* age?: number;
|
|
262
|
+
* spouse: Person;
|
|
263
|
+
* children: Person[];
|
|
264
|
+
* }
|
|
265
|
+
* type PartialPerson = RecursivePartial<Person>;
|
|
266
|
+
* // results in
|
|
267
|
+
* interface PartialPerson {
|
|
268
|
+
* name?: string;
|
|
269
|
+
* age?: number;
|
|
270
|
+
* spouse?: RecursivePartial<Person>;
|
|
271
|
+
* children?: RecursivePartial<Person>[]
|
|
272
|
+
* }
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
export type RecursivePartial<T> = {
|
|
276
|
+
[P in keyof T]?: T[P] extends NonAny[] ? T[P] : T[P] extends readonly NonAny[] ? T[P] : T[P] extends Array<infer U> ? Array<RecursivePartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<RecursivePartial<U>> : T[P] extends Set<infer V> ? Set<RecursivePartial<V>> : T[P] extends Map<infer K, infer V> ? Map<K, RecursivePartial<V>> : T[P] extends NonAny ? T[P] : RecursivePartial<T[P]>;
|
|
277
|
+
}; type NonAny = number | boolean | string | symbol | null;
|
|
278
|
+
export {};
|
|
279
|
+
|
|
280
280
|
}
|
|
281
281
|
declare module '@elastic/eui/src/services/breakpoint' {
|
|
282
282
|
export type EuiBreakpointSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
@@ -2114,14 +2114,16 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
declare module '@elastic/eui/src/services/theme/provider' {
|
|
2116
2116
|
import React, { PropsWithChildren } from 'react';
|
|
2117
|
+
import { EmotionCache } from '@emotion/react';
|
|
2117
2118
|
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
2118
2119
|
export interface EuiThemeProviderProps<T> {
|
|
2119
2120
|
theme?: EuiThemeSystem<T>;
|
|
2120
2121
|
colorMode?: EuiThemeColorMode;
|
|
2121
2122
|
modify?: EuiThemeModifications<T>;
|
|
2123
|
+
cache?: EmotionCache;
|
|
2122
2124
|
children: any;
|
|
2123
2125
|
}
|
|
2124
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
2126
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, cache, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
2125
2127
|
|
|
2126
2128
|
}
|
|
2127
2129
|
declare module '@elastic/eui/src/services/theme' {
|
|
@@ -2289,40 +2291,6 @@ declare module '@elastic/eui/src/components/loading/loading_elastic' {
|
|
|
2289
2291
|
}
|
|
2290
2292
|
export const EuiLoadingElastic: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement> & EuiLoadingElasticProps>;
|
|
2291
2293
|
|
|
2292
|
-
}
|
|
2293
|
-
declare module '@elastic/eui/src/components/provider/cache/cache_context' {
|
|
2294
|
-
|
|
2295
|
-
import { EmotionCache } from '@emotion/cache';
|
|
2296
|
-
export const EuiCacheContext: import("react").Context<EmotionCache | undefined>;
|
|
2297
|
-
export const useEuiCacheContext: () => EmotionCache | undefined;
|
|
2298
|
-
|
|
2299
|
-
}
|
|
2300
|
-
declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
2301
|
-
import { PropsWithChildren } from 'react';
|
|
2302
|
-
import { EmotionCache } from '@emotion/cache';
|
|
2303
|
-
export interface EuiCacheProviderProps {
|
|
2304
|
-
cache?: false | EmotionCache;
|
|
2305
|
-
}
|
|
2306
|
-
export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
|
|
2307
|
-
|
|
2308
|
-
}
|
|
2309
|
-
declare module '@elastic/eui/src/components/provider/cache' {
|
|
2310
|
-
export * from '@elastic/eui/src/components/provider/cache/cache_context';
|
|
2311
|
-
export * from '@elastic/eui/src/components/provider/cache/cache_provider';
|
|
2312
|
-
|
|
2313
|
-
}
|
|
2314
|
-
declare module '@elastic/eui/src/components/provider/system/system' {
|
|
2315
|
-
import React, { ComponentType, ForwardRefExoticComponent } from 'react';
|
|
2316
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2317
|
-
export interface WithEuiSystemProps<P = {}> {
|
|
2318
|
-
euiTheme: UseEuiTheme<P>;
|
|
2319
|
-
}
|
|
2320
|
-
export const withEuiSystem: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiSystemProps<U>> | React.ForwardRefExoticComponent<T & WithEuiSystemProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "euiTheme">> & React.RefAttributes<Omit<T, "euiTheme">>>;
|
|
2321
|
-
|
|
2322
|
-
}
|
|
2323
|
-
declare module '@elastic/eui/src/components/provider/system' {
|
|
2324
|
-
export * from '@elastic/eui/src/components/provider/system/system';
|
|
2325
|
-
|
|
2326
2294
|
}
|
|
2327
2295
|
declare module '@elastic/eui/src/components/loading/loading_chart.styles' {
|
|
2328
2296
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -2342,23 +2310,15 @@ declare module '@elastic/eui/src/components/loading/loading_chart.styles' {
|
|
|
2342
2310
|
|
|
2343
2311
|
}
|
|
2344
2312
|
declare module '@elastic/eui/src/components/loading/loading_chart' {
|
|
2345
|
-
import
|
|
2313
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2346
2314
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2347
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
2348
2315
|
export const SIZES: readonly ["m", "l", "xl"];
|
|
2349
2316
|
export type EuiLoadingChartSize = typeof SIZES[number];
|
|
2350
2317
|
export type EuiLoadingChartProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
2351
2318
|
size?: EuiLoadingChartSize;
|
|
2352
2319
|
mono?: boolean;
|
|
2353
2320
|
};
|
|
2354
|
-
export const
|
|
2355
|
-
export const EuiLoadingChart: React.ForwardRefExoticComponent<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
2356
|
-
size?: "m" | "l" | "xl" | undefined;
|
|
2357
|
-
mono?: boolean | undefined;
|
|
2358
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
2359
|
-
size?: "m" | "l" | "xl" | undefined;
|
|
2360
|
-
mono?: boolean | undefined;
|
|
2361
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
2321
|
+
export const EuiLoadingChart: FunctionComponent<EuiLoadingChartProps>;
|
|
2362
2322
|
|
|
2363
2323
|
}
|
|
2364
2324
|
declare module '@elastic/eui/src/components/loading/loading_content.styles' {
|
|
@@ -2369,19 +2329,13 @@ declare module '@elastic/eui/src/components/loading/loading_content.styles' {
|
|
|
2369
2329
|
|
|
2370
2330
|
}
|
|
2371
2331
|
declare module '@elastic/eui/src/components/loading/loading_content' {
|
|
2372
|
-
import
|
|
2332
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2373
2333
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2374
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
2375
2334
|
export type LineRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
2376
2335
|
export type EuiLoadingContentProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
2377
2336
|
lines?: LineRange;
|
|
2378
2337
|
};
|
|
2379
|
-
export const
|
|
2380
|
-
export const EuiLoadingContent: React.ForwardRefExoticComponent<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
2381
|
-
lines?: LineRange | undefined;
|
|
2382
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
2383
|
-
lines?: LineRange | undefined;
|
|
2384
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
2338
|
+
export const EuiLoadingContent: FunctionComponent<EuiLoadingContentProps>;
|
|
2385
2339
|
|
|
2386
2340
|
}
|
|
2387
2341
|
declare module '@elastic/eui/src/components/loading/loading_spinner.styles' {
|
|
@@ -2398,9 +2352,8 @@ declare module '@elastic/eui/src/components/loading/loading_spinner.styles' {
|
|
|
2398
2352
|
|
|
2399
2353
|
}
|
|
2400
2354
|
declare module '@elastic/eui/src/components/loading/loading_spinner' {
|
|
2401
|
-
import
|
|
2355
|
+
import { HTMLAttributes, FunctionComponent, CSSProperties } from 'react';
|
|
2402
2356
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2403
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
2404
2357
|
export const SIZES: readonly ["s", "m", "l", "xl", "xxl"];
|
|
2405
2358
|
export type EuiLoadingSpinnerSize = typeof SIZES[number];
|
|
2406
2359
|
export type EuiLoadingSpinnerColor = {
|
|
@@ -2416,24 +2369,7 @@ declare module '@elastic/eui/src/components/loading/loading_spinner' {
|
|
|
2416
2369
|
*/
|
|
2417
2370
|
color?: EuiLoadingSpinnerColor;
|
|
2418
2371
|
};
|
|
2419
|
-
export const
|
|
2420
|
-
export const EuiLoadingSpinner: React.ForwardRefExoticComponent<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
2421
|
-
size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
|
|
2422
|
-
/**
|
|
2423
|
-
* Sets the color of the border and highlight.
|
|
2424
|
-
* Each key accepts any valid CSS color value as a `string`
|
|
2425
|
-
* See #EuiLoadingSpinnerColor
|
|
2426
|
-
*/
|
|
2427
|
-
color?: EuiLoadingSpinnerColor | undefined;
|
|
2428
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
2429
|
-
size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
|
|
2430
|
-
/**
|
|
2431
|
-
* Sets the color of the border and highlight.
|
|
2432
|
-
* Each key accepts any valid CSS color value as a `string`
|
|
2433
|
-
* See #EuiLoadingSpinnerColor
|
|
2434
|
-
*/
|
|
2435
|
-
color?: EuiLoadingSpinnerColor | undefined;
|
|
2436
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
2372
|
+
export const EuiLoadingSpinner: FunctionComponent<EuiLoadingSpinnerProps>;
|
|
2437
2373
|
|
|
2438
2374
|
}
|
|
2439
2375
|
declare module '@elastic/eui/src/components/loading/loading_logo.styles' {
|
|
@@ -2454,10 +2390,9 @@ declare module '@elastic/eui/src/components/loading/loading_logo.styles' {
|
|
|
2454
2390
|
|
|
2455
2391
|
}
|
|
2456
2392
|
declare module '@elastic/eui/src/components/loading/loading_logo' {
|
|
2457
|
-
import
|
|
2393
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
2458
2394
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2459
2395
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2460
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
2461
2396
|
export const SIZES: readonly ["m", "l", "xl"];
|
|
2462
2397
|
export type EuiLoadingLogoSize = typeof SIZES[number];
|
|
2463
2398
|
export type EuiLoadingLogoProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
@@ -2467,73 +2402,163 @@ declare module '@elastic/eui/src/components/loading/loading_logo' {
|
|
|
2467
2402
|
*/
|
|
2468
2403
|
logo?: IconType;
|
|
2469
2404
|
};
|
|
2470
|
-
export const
|
|
2471
|
-
|
|
2472
|
-
|
|
2405
|
+
export const EuiLoadingLogo: FunctionComponent<EuiLoadingLogoProps>;
|
|
2406
|
+
|
|
2407
|
+
}
|
|
2408
|
+
declare module '@elastic/eui/src/components/loading' {
|
|
2409
|
+
export type { EuiLoadingElasticProps } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
2410
|
+
export { EuiLoadingElastic } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
2411
|
+
export type { EuiLoadingChartProps } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2412
|
+
export { EuiLoadingChart } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2413
|
+
export type { EuiLoadingContentProps } from '@elastic/eui/src/components/loading/loading_content';
|
|
2414
|
+
export { EuiLoadingContent } from '@elastic/eui/src/components/loading/loading_content';
|
|
2415
|
+
export type { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2416
|
+
export { EuiLoadingSpinner } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2417
|
+
export type { EuiLoadingLogoProps } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2418
|
+
export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2419
|
+
|
|
2420
|
+
}
|
|
2421
|
+
declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
2422
|
+
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
2423
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2424
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2425
|
+
export type ButtonContentIconSide = 'left' | 'right';
|
|
2426
|
+
export const ICON_SIDES: ButtonContentIconSide[];
|
|
2427
|
+
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
2428
|
+
/**
|
|
2429
|
+
* *INTERNAL ONLY / DEPRECATED*
|
|
2430
|
+
* This component is simply a helper component for reuse within other button components
|
|
2431
|
+
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
2432
|
+
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
2433
|
+
*/
|
|
2434
|
+
export interface EuiButtonContentProps extends CommonProps {
|
|
2473
2435
|
/**
|
|
2474
|
-
*
|
|
2436
|
+
* Any `type` accepted by EuiIcon
|
|
2437
|
+
*/
|
|
2438
|
+
iconType?: IconType;
|
|
2439
|
+
/**
|
|
2440
|
+
* Can only be one side `left` or `right`
|
|
2441
|
+
*/
|
|
2442
|
+
iconSide?: ButtonContentIconSide;
|
|
2443
|
+
isLoading?: boolean;
|
|
2444
|
+
/**
|
|
2445
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
2446
|
+
* It doesn't apply to the icon.
|
|
2447
|
+
*/
|
|
2448
|
+
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
2449
|
+
ref?: Ref<HTMLSpanElement>;
|
|
2450
|
+
'data-text'?: string;
|
|
2451
|
+
};
|
|
2452
|
+
iconSize?: 's' | 'm';
|
|
2453
|
+
}
|
|
2454
|
+
export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
|
|
2455
|
+
|
|
2456
|
+
}
|
|
2457
|
+
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
2458
|
+
export function validateHref(href: string): boolean;
|
|
2459
|
+
|
|
2460
|
+
}
|
|
2461
|
+
declare module '@elastic/eui/src/components/button/button' {
|
|
2462
|
+
import React, { FunctionComponent, Ref, CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2463
|
+
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2464
|
+
import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
2465
|
+
export type ButtonColor = 'primary' | 'accent' | 'success' | 'warning' | 'danger' | 'ghost' | 'text';
|
|
2466
|
+
export type ButtonSize = 's' | 'm';
|
|
2467
|
+
export const colorToClassNameMap: {
|
|
2468
|
+
[color in ButtonColor]: string;
|
|
2469
|
+
};
|
|
2470
|
+
export const COLORS: ButtonColor[];
|
|
2471
|
+
export const sizeToClassNameMap: {
|
|
2472
|
+
[size in ButtonSize]: string | null;
|
|
2473
|
+
};
|
|
2474
|
+
export const SIZES: ButtonSize[];
|
|
2475
|
+
/**
|
|
2476
|
+
* Extends EuiButtonContentProps which provides
|
|
2477
|
+
* `iconType`, `iconSide`, and `textProps`
|
|
2478
|
+
*/
|
|
2479
|
+
export interface EuiButtonProps extends EuiButtonContentProps, CommonProps {
|
|
2480
|
+
children?: ReactNode;
|
|
2481
|
+
/**
|
|
2482
|
+
* Make button a solid color for prominence
|
|
2483
|
+
*/
|
|
2484
|
+
fill?: boolean;
|
|
2485
|
+
/**
|
|
2486
|
+
* Any of our named colors.
|
|
2487
|
+
*/
|
|
2488
|
+
color?: ButtonColor;
|
|
2489
|
+
/**
|
|
2490
|
+
* Use size `s` in confined spaces
|
|
2491
|
+
*/
|
|
2492
|
+
size?: ButtonSize;
|
|
2493
|
+
/**
|
|
2494
|
+
* `disabled` is also allowed
|
|
2495
|
+
*/
|
|
2496
|
+
isDisabled?: boolean;
|
|
2497
|
+
/**
|
|
2498
|
+
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
2499
|
+
* *Only use when the readable text does not change between states.*
|
|
2500
|
+
*/
|
|
2501
|
+
isSelected?: boolean;
|
|
2502
|
+
/**
|
|
2503
|
+
* Extends the button to 100% width
|
|
2504
|
+
*/
|
|
2505
|
+
fullWidth?: boolean;
|
|
2506
|
+
/**
|
|
2507
|
+
* Override the default minimum width
|
|
2508
|
+
*/
|
|
2509
|
+
minWidth?: CSSProperties['minWidth'];
|
|
2510
|
+
/**
|
|
2511
|
+
* Force disables the button and changes the icon to a loading spinner
|
|
2475
2512
|
*/
|
|
2476
|
-
|
|
2477
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
2478
|
-
size?: "m" | "l" | "xl" | undefined;
|
|
2513
|
+
isLoading?: boolean;
|
|
2479
2514
|
/**
|
|
2480
|
-
*
|
|
2515
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
2481
2516
|
*/
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
export
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
export type
|
|
2492
|
-
export { EuiLoadingContent } from '@elastic/eui/src/components/loading/loading_content';
|
|
2493
|
-
export type { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2494
|
-
export { EuiLoadingSpinner } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2495
|
-
export type { EuiLoadingLogoProps } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2496
|
-
export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2497
|
-
|
|
2498
|
-
}
|
|
2499
|
-
declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
2500
|
-
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
2501
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2502
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2503
|
-
export type ButtonContentIconSide = 'left' | 'right';
|
|
2504
|
-
export const ICON_SIDES: ButtonContentIconSide[];
|
|
2505
|
-
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
2517
|
+
contentProps?: EuiButtonContentType;
|
|
2518
|
+
style?: CSSProperties;
|
|
2519
|
+
}
|
|
2520
|
+
export type EuiButtonPropsForAnchor = PropsForAnchor<EuiButtonProps, {
|
|
2521
|
+
buttonRef?: Ref<HTMLAnchorElement>;
|
|
2522
|
+
}>;
|
|
2523
|
+
export type EuiButtonPropsForButton = PropsForButton<EuiButtonProps, {
|
|
2524
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
2525
|
+
}>;
|
|
2526
|
+
export type Props = ExclusiveUnion<EuiButtonPropsForAnchor, EuiButtonPropsForButton>;
|
|
2506
2527
|
/**
|
|
2507
|
-
*
|
|
2508
|
-
*
|
|
2509
|
-
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
2510
|
-
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
2528
|
+
* EuiButton is largely responsible for providing relevant props
|
|
2529
|
+
* and the logic for element-specific attributes
|
|
2511
2530
|
*/
|
|
2512
|
-
export
|
|
2531
|
+
export const EuiButton: FunctionComponent<Props>;
|
|
2532
|
+
export type EuiButtonDisplayProps = EuiButtonProps & HTMLAttributes<HTMLElement> & {
|
|
2513
2533
|
/**
|
|
2514
|
-
*
|
|
2534
|
+
* Provide a valid element to render the element as
|
|
2515
2535
|
*/
|
|
2516
|
-
|
|
2536
|
+
element: 'a' | 'button' | 'span' | 'label';
|
|
2517
2537
|
/**
|
|
2518
|
-
*
|
|
2538
|
+
* Provide the component's base class name to build the class list on
|
|
2519
2539
|
*/
|
|
2520
|
-
|
|
2521
|
-
|
|
2540
|
+
baseClassName: string;
|
|
2541
|
+
};
|
|
2542
|
+
/**
|
|
2543
|
+
* *DEPRECATED*
|
|
2544
|
+
* EuiButtonDisplay is an internal-only component used for displaying
|
|
2545
|
+
* any element as a button.
|
|
2546
|
+
* NOTE: This component *must* be below EuiButton in the file and
|
|
2547
|
+
* EuiButton must also set a displayName for react-docgen-typescript
|
|
2548
|
+
* to correctly set EuiButton's docgenInfo and display a props table.
|
|
2549
|
+
* This component has been deprecated in favor of the new EuiButtonDisplay
|
|
2550
|
+
* that can be found in `src/components/button/button_display/_button_display.tsx`
|
|
2551
|
+
*/
|
|
2552
|
+
export const EuiButtonDisplayDeprecated: React.ForwardRefExoticComponent<EuiButtonProps & React.HTMLAttributes<HTMLElement> & {
|
|
2522
2553
|
/**
|
|
2523
|
-
*
|
|
2524
|
-
* It doesn't apply to the icon.
|
|
2554
|
+
* Provide a valid element to render the element as
|
|
2525
2555
|
*/
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
}
|
|
2532
|
-
export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
|
|
2533
|
-
|
|
2534
|
-
}
|
|
2535
|
-
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
2536
|
-
export function validateHref(href: string): boolean;
|
|
2556
|
+
element: 'a' | 'button' | 'span' | 'label';
|
|
2557
|
+
/**
|
|
2558
|
+
* Provide the component's base class name to build the class list on
|
|
2559
|
+
*/
|
|
2560
|
+
baseClassName: string;
|
|
2561
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
2537
2562
|
|
|
2538
2563
|
}
|
|
2539
2564
|
declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
@@ -3015,7 +3040,6 @@ declare module '@elastic/eui/src/components/title/title.styles' {
|
|
|
3015
3040
|
declare module '@elastic/eui/src/components/title/title' {
|
|
3016
3041
|
import { FunctionComponent, ReactElement } from 'react';
|
|
3017
3042
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3018
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
3019
3043
|
export const TITLE_SIZES: readonly ["xxxs", "xxs", "xs", "s", "m", "l"];
|
|
3020
3044
|
export type EuiTitleSize = typeof TITLE_SIZES[number];
|
|
3021
3045
|
export const TEXT_TRANSFORM: readonly ["uppercase"];
|
|
@@ -3029,24 +3053,7 @@ declare module '@elastic/eui/src/components/title/title' {
|
|
|
3029
3053
|
textTransform?: EuiTitleTextTransform;
|
|
3030
3054
|
id?: string;
|
|
3031
3055
|
};
|
|
3032
|
-
export const
|
|
3033
|
-
export const EuiTitle: import("react").ForwardRefExoticComponent<Omit<CommonProps & {
|
|
3034
|
-
/**
|
|
3035
|
-
* ReactElement to render as this component's content
|
|
3036
|
-
*/
|
|
3037
|
-
children: ReactElement<any>;
|
|
3038
|
-
size?: "s" | "xs" | "m" | "l" | "xxs" | "xxxs" | undefined;
|
|
3039
|
-
textTransform?: "uppercase" | undefined;
|
|
3040
|
-
id?: string | undefined;
|
|
3041
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & import("react").RefAttributes<Omit<CommonProps & {
|
|
3042
|
-
/**
|
|
3043
|
-
* ReactElement to render as this component's content
|
|
3044
|
-
*/
|
|
3045
|
-
children: ReactElement<any>;
|
|
3046
|
-
size?: "s" | "xs" | "m" | "l" | "xxs" | "xxxs" | undefined;
|
|
3047
|
-
textTransform?: "uppercase" | undefined;
|
|
3048
|
-
id?: string | undefined;
|
|
3049
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
3056
|
+
export const EuiTitle: FunctionComponent<EuiTitleProps>;
|
|
3050
3057
|
|
|
3051
3058
|
}
|
|
3052
3059
|
declare module '@elastic/eui/src/components/title' {
|
|
@@ -3118,9 +3125,8 @@ declare module '@elastic/eui/src/components/text/text_color.styles' {
|
|
|
3118
3125
|
|
|
3119
3126
|
}
|
|
3120
3127
|
declare module '@elastic/eui/src/components/text/text_color' {
|
|
3121
|
-
import
|
|
3128
|
+
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
3122
3129
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3123
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
3124
3130
|
export const COLORS: readonly ["default", "subdued", "success", "accent", "danger", "warning", "ghost", "inherit"];
|
|
3125
3131
|
export type TextColor = typeof COLORS[number];
|
|
3126
3132
|
export type EuiTextColorProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement> & HTMLAttributes<HTMLSpanElement>, 'color'> & {
|
|
@@ -3138,36 +3144,7 @@ declare module '@elastic/eui/src/components/text/text_color' {
|
|
|
3138
3144
|
*/
|
|
3139
3145
|
cloneElement?: boolean;
|
|
3140
3146
|
};
|
|
3141
|
-
export const
|
|
3142
|
-
export const EuiTextColor: React.ForwardRefExoticComponent<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
3143
|
-
/**
|
|
3144
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
3145
|
-
*/
|
|
3146
|
-
color?: TextColor | CSSProperties['color'];
|
|
3147
|
-
/**
|
|
3148
|
-
* Determines the root element
|
|
3149
|
-
*/
|
|
3150
|
-
component?: "div" | "span" | undefined;
|
|
3151
|
-
/**
|
|
3152
|
-
* Applies text styling to the child element instead of rendering a parent wrapper `span`/`div`.
|
|
3153
|
-
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
3154
|
-
*/
|
|
3155
|
-
cloneElement?: boolean | undefined;
|
|
3156
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
3157
|
-
/**
|
|
3158
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
3159
|
-
*/
|
|
3160
|
-
color?: TextColor | CSSProperties['color'];
|
|
3161
|
-
/**
|
|
3162
|
-
* Determines the root element
|
|
3163
|
-
*/
|
|
3164
|
-
component?: "div" | "span" | undefined;
|
|
3165
|
-
/**
|
|
3166
|
-
* Applies text styling to the child element instead of rendering a parent wrapper `span`/`div`.
|
|
3167
|
-
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
3168
|
-
*/
|
|
3169
|
-
cloneElement?: boolean | undefined;
|
|
3170
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
3147
|
+
export const EuiTextColor: FunctionComponent<EuiTextColorProps>;
|
|
3171
3148
|
|
|
3172
3149
|
}
|
|
3173
3150
|
declare module '@elastic/eui/src/components/text/text_align.styles' {
|
|
@@ -3196,9 +3173,8 @@ declare module '@elastic/eui/src/components/text/text_align' {
|
|
|
3196
3173
|
|
|
3197
3174
|
}
|
|
3198
3175
|
declare module '@elastic/eui/src/components/text/text' {
|
|
3199
|
-
import
|
|
3176
|
+
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
3200
3177
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3201
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
3202
3178
|
import { TextColor } from '@elastic/eui/src/components/text/text_color';
|
|
3203
3179
|
import { TextAlignment } from '@elastic/eui/src/components/text/text_align';
|
|
3204
3180
|
export const TEXT_SIZES: readonly ["xs", "s", "m", "relative"];
|
|
@@ -3215,30 +3191,7 @@ declare module '@elastic/eui/src/components/text/text' {
|
|
|
3215
3191
|
color?: TextColor | CSSProperties['color'];
|
|
3216
3192
|
grow?: boolean;
|
|
3217
3193
|
};
|
|
3218
|
-
export const
|
|
3219
|
-
export const EuiText: React.ForwardRefExoticComponent<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
3220
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
3221
|
-
/**
|
|
3222
|
-
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
3223
|
-
*/
|
|
3224
|
-
size?: "s" | "xs" | "m" | "relative" | undefined;
|
|
3225
|
-
/**
|
|
3226
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
3227
|
-
*/
|
|
3228
|
-
color?: TextColor | CSSProperties['color'];
|
|
3229
|
-
grow?: boolean | undefined;
|
|
3230
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
3231
|
-
textAlign?: "left" | "right" | "center" | undefined;
|
|
3232
|
-
/**
|
|
3233
|
-
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
3234
|
-
*/
|
|
3235
|
-
size?: "s" | "xs" | "m" | "relative" | undefined;
|
|
3236
|
-
/**
|
|
3237
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
3238
|
-
*/
|
|
3239
|
-
color?: TextColor | CSSProperties['color'];
|
|
3240
|
-
grow?: boolean | undefined;
|
|
3241
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
3194
|
+
export const EuiText: FunctionComponent<EuiTextProps>;
|
|
3242
3195
|
|
|
3243
3196
|
}
|
|
3244
3197
|
declare module '@elastic/eui/src/components/text' {
|
|
@@ -4057,8 +4010,7 @@ declare module '@elastic/eui/src/components/panel/panel.style' {
|
|
|
4057
4010
|
|
|
4058
4011
|
}
|
|
4059
4012
|
declare module '@elastic/eui/src/components/panel/panel' {
|
|
4060
|
-
import
|
|
4061
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
4013
|
+
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
4062
4014
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
4063
4015
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
4064
4016
|
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
@@ -4104,8 +4056,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
4104
4056
|
element?: 'button';
|
|
4105
4057
|
}
|
|
4106
4058
|
export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
|
|
4107
|
-
export const
|
|
4108
|
-
export const EuiPanel: React.ForwardRefExoticComponent<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<_EuiPanelButtonlike, _EuiPanelDivlike> & _EuiPanelDivlike) | (import ("@elastic/eui/src/components/common").DisambiguateSet<_EuiPanelDivlike, _EuiPanelButtonlike> & _EuiPanelButtonlike)) & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<_EuiPanelButtonlike, _EuiPanelDivlike> & _EuiPanelDivlike) | (import ("@elastic/eui/src/components/common").DisambiguateSet<_EuiPanelDivlike, _EuiPanelButtonlike> & _EuiPanelButtonlike)) & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
4059
|
+
export const EuiPanel: FunctionComponent<EuiPanelProps>;
|
|
4109
4060
|
export {};
|
|
4110
4061
|
|
|
4111
4062
|
}
|
|
@@ -4233,7 +4184,6 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
4233
4184
|
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
4234
4185
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4235
4186
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
4236
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
4237
4187
|
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
4238
4188
|
export type Color = typeof COLORS[number];
|
|
4239
4189
|
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"]; type Heading = typeof HEADINGS[number]; type Size = 's' | 'm';
|
|
@@ -4244,14 +4194,13 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
4244
4194
|
size?: Size;
|
|
4245
4195
|
heading?: Heading;
|
|
4246
4196
|
};
|
|
4247
|
-
export const
|
|
4197
|
+
export const EuiCallOut: React.ForwardRefExoticComponent<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "color"> & {
|
|
4248
4198
|
title?: ReactNode;
|
|
4249
4199
|
iconType?: IconType | undefined;
|
|
4250
4200
|
color?: "primary" | "success" | "warning" | "danger" | undefined;
|
|
4251
4201
|
size?: Size | undefined;
|
|
4252
4202
|
heading?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | undefined;
|
|
4253
|
-
} &
|
|
4254
|
-
export const EuiCallOut: React.ForwardRefExoticComponent<Omit<EuiCallOutProps, "euiTheme"> & React.RefAttributes<Omit<EuiCallOutProps, "euiTheme">>>;
|
|
4203
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4255
4204
|
export {};
|
|
4256
4205
|
|
|
4257
4206
|
}
|
|
@@ -5975,9 +5924,8 @@ declare module '@elastic/eui/src/components/horizontal_rule/horizontal_rule.styl
|
|
|
5975
5924
|
|
|
5976
5925
|
}
|
|
5977
5926
|
declare module '@elastic/eui/src/components/horizontal_rule/horizontal_rule' {
|
|
5978
|
-
import
|
|
5927
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
5979
5928
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5980
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
5981
5929
|
export const SIZES: readonly ["full", "half", "quarter"];
|
|
5982
5930
|
export const MARGINS: readonly ["none", "xs", "s", "m", "l", "xl", "xxl"];
|
|
5983
5931
|
export type EuiHorizontalRuleSize = typeof SIZES[number];
|
|
@@ -5989,8 +5937,7 @@ declare module '@elastic/eui/src/components/horizontal_rule/horizontal_rule' {
|
|
|
5989
5937
|
size?: EuiHorizontalRuleSize;
|
|
5990
5938
|
margin?: EuiHorizontalRuleMargin;
|
|
5991
5939
|
}
|
|
5992
|
-
export const
|
|
5993
|
-
export const EuiHorizontalRule: React.ForwardRefExoticComponent<Omit<EuiHorizontalRuleProps & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<EuiHorizontalRuleProps & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
5940
|
+
export const EuiHorizontalRule: FunctionComponent<EuiHorizontalRuleProps>;
|
|
5994
5941
|
|
|
5995
5942
|
}
|
|
5996
5943
|
declare module '@elastic/eui/src/components/horizontal_rule' {
|
|
@@ -6284,20 +6231,14 @@ declare module '@elastic/eui/src/components/spacer/spacer.styles' {
|
|
|
6284
6231
|
|
|
6285
6232
|
}
|
|
6286
6233
|
declare module '@elastic/eui/src/components/spacer/spacer' {
|
|
6287
|
-
import
|
|
6234
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
6288
6235
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
6289
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
6290
6236
|
export const SIZES: readonly ["xs", "s", "m", "l", "xl", "xxl"];
|
|
6291
6237
|
export type SpacerSize = typeof SIZES[number];
|
|
6292
6238
|
export type EuiSpacerProps = HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
6293
6239
|
size?: SpacerSize;
|
|
6294
6240
|
};
|
|
6295
|
-
export const
|
|
6296
|
-
export const EuiSpacer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
6297
|
-
size?: "s" | "xs" | "m" | "l" | "xl" | "xxl" | undefined;
|
|
6298
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<React.HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
6299
|
-
size?: "s" | "xs" | "m" | "l" | "xl" | "xxl" | undefined;
|
|
6300
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
6241
|
+
export const EuiSpacer: FunctionComponent<EuiSpacerProps>;
|
|
6301
6242
|
|
|
6302
6243
|
}
|
|
6303
6244
|
declare module '@elastic/eui/src/components/spacer' {
|
|
@@ -6944,127 +6885,24 @@ declare module '@elastic/eui/src/services' {
|
|
|
6944
6885
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
6945
6886
|
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
6946
6887
|
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
6947
|
-
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
6948
|
-
export * from '@elastic/eui/src/services/console';
|
|
6949
|
-
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
6950
|
-
export * from '@elastic/eui/src/services/findElement';
|
|
6951
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
6952
|
-
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
6953
|
-
export { Pager } from '@elastic/eui/src/services/paging';
|
|
6954
|
-
export { Random } from '@elastic/eui/src/services/random';
|
|
6955
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
6956
|
-
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
6957
|
-
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
6958
|
-
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
6959
|
-
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
6960
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
6961
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
6962
|
-
export * from '@elastic/eui/src/services/hooks';
|
|
6963
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
6964
|
-
export * from '@elastic/eui/src/services/theme';
|
|
6965
|
-
|
|
6966
|
-
}
|
|
6967
|
-
declare module '@elastic/eui/src/components/button/button' {
|
|
6968
|
-
import React, { FunctionComponent, Ref, CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
6969
|
-
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
6970
|
-
import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
6971
|
-
export type ButtonColor = 'primary' | 'accent' | 'success' | 'warning' | 'danger' | 'ghost' | 'text';
|
|
6972
|
-
export type ButtonSize = 's' | 'm';
|
|
6973
|
-
export const colorToClassNameMap: {
|
|
6974
|
-
[color in ButtonColor]: string;
|
|
6975
|
-
};
|
|
6976
|
-
export const COLORS: ButtonColor[];
|
|
6977
|
-
export const sizeToClassNameMap: {
|
|
6978
|
-
[size in ButtonSize]: string | null;
|
|
6979
|
-
};
|
|
6980
|
-
export const SIZES: ButtonSize[];
|
|
6981
|
-
/**
|
|
6982
|
-
* Extends EuiButtonContentProps which provides
|
|
6983
|
-
* `iconType`, `iconSide`, and `textProps`
|
|
6984
|
-
*/
|
|
6985
|
-
export interface EuiButtonProps extends EuiButtonContentProps, CommonProps {
|
|
6986
|
-
children?: ReactNode;
|
|
6987
|
-
/**
|
|
6988
|
-
* Make button a solid color for prominence
|
|
6989
|
-
*/
|
|
6990
|
-
fill?: boolean;
|
|
6991
|
-
/**
|
|
6992
|
-
* Any of our named colors.
|
|
6993
|
-
*/
|
|
6994
|
-
color?: ButtonColor;
|
|
6995
|
-
/**
|
|
6996
|
-
* Use size `s` in confined spaces
|
|
6997
|
-
*/
|
|
6998
|
-
size?: ButtonSize;
|
|
6999
|
-
/**
|
|
7000
|
-
* `disabled` is also allowed
|
|
7001
|
-
*/
|
|
7002
|
-
isDisabled?: boolean;
|
|
7003
|
-
/**
|
|
7004
|
-
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
7005
|
-
* *Only use when the readable text does not change between states.*
|
|
7006
|
-
*/
|
|
7007
|
-
isSelected?: boolean;
|
|
7008
|
-
/**
|
|
7009
|
-
* Extends the button to 100% width
|
|
7010
|
-
*/
|
|
7011
|
-
fullWidth?: boolean;
|
|
7012
|
-
/**
|
|
7013
|
-
* Override the default minimum width
|
|
7014
|
-
*/
|
|
7015
|
-
minWidth?: CSSProperties['minWidth'];
|
|
7016
|
-
/**
|
|
7017
|
-
* Force disables the button and changes the icon to a loading spinner
|
|
7018
|
-
*/
|
|
7019
|
-
isLoading?: boolean;
|
|
7020
|
-
/**
|
|
7021
|
-
* Object of props passed to the <span/> wrapping the button's content
|
|
7022
|
-
*/
|
|
7023
|
-
contentProps?: EuiButtonContentType;
|
|
7024
|
-
style?: CSSProperties;
|
|
7025
|
-
}
|
|
7026
|
-
export type EuiButtonPropsForAnchor = PropsForAnchor<EuiButtonProps, {
|
|
7027
|
-
buttonRef?: Ref<HTMLAnchorElement>;
|
|
7028
|
-
}>;
|
|
7029
|
-
export type EuiButtonPropsForButton = PropsForButton<EuiButtonProps, {
|
|
7030
|
-
buttonRef?: Ref<HTMLButtonElement>;
|
|
7031
|
-
}>;
|
|
7032
|
-
export type Props = ExclusiveUnion<EuiButtonPropsForAnchor, EuiButtonPropsForButton>;
|
|
7033
|
-
/**
|
|
7034
|
-
* EuiButton is largely responsible for providing relevant props
|
|
7035
|
-
* and the logic for element-specific attributes
|
|
7036
|
-
*/
|
|
7037
|
-
export const EuiButton: FunctionComponent<Props>;
|
|
7038
|
-
export type EuiButtonDisplayProps = EuiButtonProps & HTMLAttributes<HTMLElement> & {
|
|
7039
|
-
/**
|
|
7040
|
-
* Provide a valid element to render the element as
|
|
7041
|
-
*/
|
|
7042
|
-
element: 'a' | 'button' | 'span' | 'label';
|
|
7043
|
-
/**
|
|
7044
|
-
* Provide the component's base class name to build the class list on
|
|
7045
|
-
*/
|
|
7046
|
-
baseClassName: string;
|
|
7047
|
-
};
|
|
7048
|
-
/**
|
|
7049
|
-
* *DEPRECATED*
|
|
7050
|
-
* EuiButtonDisplay is an internal-only component used for displaying
|
|
7051
|
-
* any element as a button.
|
|
7052
|
-
* NOTE: This component *must* be below EuiButton in the file and
|
|
7053
|
-
* EuiButton must also set a displayName for react-docgen-typescript
|
|
7054
|
-
* to correctly set EuiButton's docgenInfo and display a props table.
|
|
7055
|
-
* This component has been deprecated in favor of the new EuiButtonDisplay
|
|
7056
|
-
* that can be found in `src/components/button/button_display/_button_display.tsx`
|
|
7057
|
-
*/
|
|
7058
|
-
export const EuiButtonDisplayDeprecated: React.ForwardRefExoticComponent<EuiButtonProps & React.HTMLAttributes<HTMLElement> & {
|
|
7059
|
-
/**
|
|
7060
|
-
* Provide a valid element to render the element as
|
|
7061
|
-
*/
|
|
7062
|
-
element: 'a' | 'button' | 'span' | 'label';
|
|
7063
|
-
/**
|
|
7064
|
-
* Provide the component's base class name to build the class list on
|
|
7065
|
-
*/
|
|
7066
|
-
baseClassName: string;
|
|
7067
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
6888
|
+
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
6889
|
+
export * from '@elastic/eui/src/services/console';
|
|
6890
|
+
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
6891
|
+
export * from '@elastic/eui/src/services/findElement';
|
|
6892
|
+
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
6893
|
+
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
6894
|
+
export { Pager } from '@elastic/eui/src/services/paging';
|
|
6895
|
+
export { Random } from '@elastic/eui/src/services/random';
|
|
6896
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
6897
|
+
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
6898
|
+
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
6899
|
+
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
6900
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
6901
|
+
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
6902
|
+
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
6903
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
6904
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
6905
|
+
export * from '@elastic/eui/src/services/theme';
|
|
7068
6906
|
|
|
7069
6907
|
}
|
|
7070
6908
|
declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link.styles' {
|
|
@@ -7077,10 +6915,9 @@ declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link.st
|
|
|
7077
6915
|
|
|
7078
6916
|
}
|
|
7079
6917
|
declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link' {
|
|
7080
|
-
import
|
|
6918
|
+
import { FunctionComponent, Ref } from 'react';
|
|
7081
6919
|
import { EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
7082
6920
|
import { PropsForAnchor, PropsForButton, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7083
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
7084
6921
|
export const POSITIONS: readonly ["static", "fixed", "absolute"]; type Positions = typeof POSITIONS[number];
|
|
7085
6922
|
interface EuiSkipLinkInterface extends EuiButtonProps {
|
|
7086
6923
|
/**
|
|
@@ -7093,6 +6930,12 @@ declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link' {
|
|
|
7093
6930
|
* will be prepended with a hash `#` and used as the link `href`
|
|
7094
6931
|
*/
|
|
7095
6932
|
destinationId: string;
|
|
6933
|
+
/**
|
|
6934
|
+
* If default HTML anchor link behavior is not desired (e.g. for SPAs with hash routing),
|
|
6935
|
+
* setting this flag to true will manually scroll to and focus the destination element
|
|
6936
|
+
* without changing the browser URL's hash
|
|
6937
|
+
*/
|
|
6938
|
+
overrideLinkBehavior?: boolean;
|
|
7096
6939
|
/**
|
|
7097
6940
|
* When position is fixed, this is forced to `0`
|
|
7098
6941
|
*/
|
|
@@ -7103,26 +6946,7 @@ declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link' {
|
|
|
7103
6946
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
7104
6947
|
}>;
|
|
7105
6948
|
export type EuiSkipLinkProps = ExclusiveUnion<propsForAnchor, propsForButton>;
|
|
7106
|
-
export const
|
|
7107
|
-
export const EuiSkipLink: React.ForwardRefExoticComponent<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<propsForAnchor, propsForButton> & EuiSkipLinkInterface & {
|
|
7108
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
7109
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7110
|
-
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
|
7111
|
-
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<propsForButton, propsForAnchor> & EuiSkipLinkInterface & {
|
|
7112
|
-
href?: string | undefined;
|
|
7113
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7114
|
-
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
7115
|
-
buttonRef?: React.Ref<HTMLAnchorElement> | undefined;
|
|
7116
|
-
})) & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<propsForAnchor, propsForButton> & EuiSkipLinkInterface & {
|
|
7117
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
7118
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7119
|
-
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
|
7120
|
-
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<propsForButton, propsForAnchor> & EuiSkipLinkInterface & {
|
|
7121
|
-
href?: string | undefined;
|
|
7122
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7123
|
-
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
7124
|
-
buttonRef?: React.Ref<HTMLAnchorElement> | undefined;
|
|
7125
|
-
})) & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
6949
|
+
export const EuiSkipLink: FunctionComponent<EuiSkipLinkProps>;
|
|
7126
6950
|
export {};
|
|
7127
6951
|
|
|
7128
6952
|
}
|
|
@@ -7471,9 +7295,8 @@ declare module '@elastic/eui/src/components/avatar/avatar.styles' {
|
|
|
7471
7295
|
|
|
7472
7296
|
}
|
|
7473
7297
|
declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
7474
|
-
import
|
|
7298
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
7475
7299
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7476
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
7477
7300
|
import { IconType, IconSize, IconColor } from '@elastic/eui/src/components/icon';
|
|
7478
7301
|
export const SIZES: readonly ["s", "m", "l", "xl"];
|
|
7479
7302
|
export type EuiAvatarSize = typeof SIZES[number];
|
|
@@ -7530,8 +7353,7 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
7530
7353
|
*/
|
|
7531
7354
|
isDisabled?: boolean;
|
|
7532
7355
|
};
|
|
7533
|
-
export const
|
|
7534
|
-
export const EuiAvatar: React.ForwardRefExoticComponent<Omit<EuiAvatarProps & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<EuiAvatarProps & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
7356
|
+
export const EuiAvatar: FunctionComponent<EuiAvatarProps>;
|
|
7535
7357
|
export const checkValidColor: (color: EuiAvatarProps['color']) => void;
|
|
7536
7358
|
export {};
|
|
7537
7359
|
|
|
@@ -7783,8 +7605,7 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar.styles' {
|
|
|
7783
7605
|
}
|
|
7784
7606
|
declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
7785
7607
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
7786
|
-
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7787
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
|
|
7608
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
|
|
7788
7609
|
export const paddingSizeToClassNameMap: {
|
|
7789
7610
|
[value in BottomBarPaddingSize]: string | null;
|
|
7790
7611
|
};
|
|
@@ -7843,7 +7664,6 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
|
7843
7664
|
*/
|
|
7844
7665
|
left?: CSSProperties['left'];
|
|
7845
7666
|
};
|
|
7846
|
-
export const _EuiBottomBar: React.ForwardRefExoticComponent<(EuiBottomBarProps & WithEuiSystemProps<{}>) & React.RefAttributes<HTMLElement>>;
|
|
7847
7667
|
export const EuiBottomBar: React.ForwardRefExoticComponent<EuiBottomBarProps & React.RefAttributes<HTMLElement>>;
|
|
7848
7668
|
export {};
|
|
7849
7669
|
|
|
@@ -7855,7 +7675,6 @@ declare module '@elastic/eui/src/components/bottom_bar' {
|
|
|
7855
7675
|
}
|
|
7856
7676
|
declare module '@elastic/eui/src/components/link/link' {
|
|
7857
7677
|
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, MouseEventHandler } from 'react';
|
|
7858
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
7859
7678
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7860
7679
|
export type EuiLinkType = 'button' | 'reset' | 'submit';
|
|
7861
7680
|
export const COLORS: readonly ["primary", "subdued", "success", "accent", "danger", "warning", "text", "ghost"];
|
|
@@ -7885,9 +7704,8 @@ declare module '@elastic/eui/src/components/link/link' {
|
|
|
7885
7704
|
export interface EuiLinkAnchorProps extends CommonProps, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'type' | 'color' | 'onClick'>, LinkAnchorProps {
|
|
7886
7705
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
7887
7706
|
}
|
|
7888
|
-
export type EuiLinkProps = ExclusiveUnion<EuiLinkButtonProps, EuiLinkAnchorProps>;
|
|
7889
|
-
export
|
|
7890
|
-
export const EuiLink: React.ForwardRefExoticComponent<Omit<(import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkButtonProps, EuiLinkAnchorProps> & EuiLinkAnchorProps) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkAnchorProps, EuiLinkButtonProps> & EuiLinkButtonProps), "euiTheme"> & React.RefAttributes<Omit<(import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkButtonProps, EuiLinkAnchorProps> & EuiLinkAnchorProps) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkAnchorProps, EuiLinkButtonProps> & EuiLinkButtonProps), "euiTheme">>>;
|
|
7707
|
+
export type EuiLinkProps = ExclusiveUnion<EuiLinkButtonProps, EuiLinkAnchorProps>; const EuiLink: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkButtonProps, EuiLinkAnchorProps> & EuiLinkAnchorProps) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiLinkAnchorProps, EuiLinkButtonProps> & EuiLinkButtonProps)) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
7708
|
+
export { EuiLink };
|
|
7891
7709
|
|
|
7892
7710
|
}
|
|
7893
7711
|
declare module '@elastic/eui/src/components/link' {
|
|
@@ -8710,9 +8528,8 @@ declare module '@elastic/eui/src/components/mark/mark.styles' {
|
|
|
8710
8528
|
|
|
8711
8529
|
}
|
|
8712
8530
|
declare module '@elastic/eui/src/components/mark/mark' {
|
|
8713
|
-
import
|
|
8531
|
+
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
8714
8532
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8715
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
8716
8533
|
export type EuiMarkProps = HTMLAttributes<HTMLElement> & CommonProps & {
|
|
8717
8534
|
/**
|
|
8718
8535
|
* Set to `false` to remove the CSS :before and :after
|
|
@@ -8724,28 +8541,7 @@ declare module '@elastic/eui/src/components/mark/mark' {
|
|
|
8724
8541
|
*/
|
|
8725
8542
|
children: ReactNode;
|
|
8726
8543
|
};
|
|
8727
|
-
export const
|
|
8728
|
-
export const EuiMark: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement> & CommonProps & {
|
|
8729
|
-
/**
|
|
8730
|
-
* Set to `false` to remove the CSS :before and :after
|
|
8731
|
-
* screen reader helper text
|
|
8732
|
-
*/
|
|
8733
|
-
hasScreenReaderHelpText?: boolean | undefined;
|
|
8734
|
-
/**
|
|
8735
|
-
* ReactNode to render as this component's content
|
|
8736
|
-
*/
|
|
8737
|
-
children: ReactNode;
|
|
8738
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<React.HTMLAttributes<HTMLElement> & CommonProps & {
|
|
8739
|
-
/**
|
|
8740
|
-
* Set to `false` to remove the CSS :before and :after
|
|
8741
|
-
* screen reader helper text
|
|
8742
|
-
*/
|
|
8743
|
-
hasScreenReaderHelpText?: boolean | undefined;
|
|
8744
|
-
/**
|
|
8745
|
-
* ReactNode to render as this component's content
|
|
8746
|
-
*/
|
|
8747
|
-
children: ReactNode;
|
|
8748
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
8544
|
+
export const EuiMark: FunctionComponent<EuiMarkProps>;
|
|
8749
8545
|
|
|
8750
8546
|
}
|
|
8751
8547
|
declare module '@elastic/eui/src/components/mark' {
|
|
@@ -12910,9 +12706,8 @@ declare module '@elastic/eui/src/components/expression/expression.styles' {
|
|
|
12910
12706
|
|
|
12911
12707
|
}
|
|
12912
12708
|
declare module '@elastic/eui/src/components/expression/expression' {
|
|
12913
|
-
import
|
|
12709
|
+
import { ButtonHTMLAttributes, HTMLAttributes, MouseEventHandler, ReactNode, FunctionComponent } from 'react';
|
|
12914
12710
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
12915
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
12916
12711
|
export const COLORS: readonly ["subdued", "primary", "success", "accent", "warning", "danger"];
|
|
12917
12712
|
export type ExpressionColor = typeof COLORS[number];
|
|
12918
12713
|
export type EuiExpressionProps = CommonProps & {
|
|
@@ -12964,196 +12759,7 @@ declare module '@elastic/eui/src/components/expression/expression' {
|
|
|
12964
12759
|
}; type Buttonlike = EuiExpressionProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
|
|
12965
12760
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
12966
12761
|
}; type Spanlike = EuiExpressionProps & Omit<HTMLAttributes<HTMLSpanElement>, 'value'>;
|
|
12967
|
-
export const
|
|
12968
|
-
export const EuiExpression: React.ForwardRefExoticComponent<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<Buttonlike, Spanlike> & CommonProps & {
|
|
12969
|
-
/**
|
|
12970
|
-
* First part of the expression
|
|
12971
|
-
*/
|
|
12972
|
-
description: ReactNode;
|
|
12973
|
-
descriptionProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
12974
|
-
/**
|
|
12975
|
-
* Second part of the expression
|
|
12976
|
-
*/
|
|
12977
|
-
value?: ReactNode;
|
|
12978
|
-
valueProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
12979
|
-
/**
|
|
12980
|
-
* Color of the `description`
|
|
12981
|
-
*/
|
|
12982
|
-
color?: "primary" | "success" | "accent" | "warning" | "danger" | "subdued" | undefined;
|
|
12983
|
-
/**
|
|
12984
|
-
* Should the `description` auto-uppercase?
|
|
12985
|
-
*/
|
|
12986
|
-
uppercase?: boolean | undefined;
|
|
12987
|
-
/**
|
|
12988
|
-
* Adds an solid border at the bottom
|
|
12989
|
-
*/
|
|
12990
|
-
isActive?: boolean | undefined;
|
|
12991
|
-
/**
|
|
12992
|
-
* Turns the component into a button and adds an editable style border at the bottom
|
|
12993
|
-
*/
|
|
12994
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
12995
|
-
/**
|
|
12996
|
-
* Sets the display style for the expression. Defaults to `inline`
|
|
12997
|
-
*/
|
|
12998
|
-
display?: "inline" | "columns" | undefined;
|
|
12999
|
-
/**
|
|
13000
|
-
* Forces color to display as `danger` and shows an `alert` icon
|
|
13001
|
-
*/
|
|
13002
|
-
isInvalid?: boolean | undefined;
|
|
13003
|
-
/**
|
|
13004
|
-
* Sets a custom width for the description when using the columns layout.
|
|
13005
|
-
* Set to a number for a custom width in `px`.
|
|
13006
|
-
* Set to a string for a custom width in custom measurement.
|
|
13007
|
-
* Defaults to `20%`
|
|
13008
|
-
*/
|
|
13009
|
-
descriptionWidth?: string | number | undefined;
|
|
13010
|
-
/**
|
|
13011
|
-
* Sets how to handle the wrapping of long text.
|
|
13012
|
-
*/
|
|
13013
|
-
textWrap?: "break-word" | "truncate" | undefined;
|
|
13014
|
-
} & Omit<React.HTMLAttributes<HTMLSpanElement>, "value">) | (import ("@elastic/eui/src/components/common").DisambiguateSet<Spanlike, Buttonlike> & CommonProps & {
|
|
13015
|
-
/**
|
|
13016
|
-
* First part of the expression
|
|
13017
|
-
*/
|
|
13018
|
-
description: ReactNode;
|
|
13019
|
-
descriptionProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13020
|
-
/**
|
|
13021
|
-
* Second part of the expression
|
|
13022
|
-
*/
|
|
13023
|
-
value?: ReactNode;
|
|
13024
|
-
valueProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13025
|
-
/**
|
|
13026
|
-
* Color of the `description`
|
|
13027
|
-
*/
|
|
13028
|
-
color?: "primary" | "success" | "accent" | "warning" | "danger" | "subdued" | undefined;
|
|
13029
|
-
/**
|
|
13030
|
-
* Should the `description` auto-uppercase?
|
|
13031
|
-
*/
|
|
13032
|
-
uppercase?: boolean | undefined;
|
|
13033
|
-
/**
|
|
13034
|
-
* Adds an solid border at the bottom
|
|
13035
|
-
*/
|
|
13036
|
-
isActive?: boolean | undefined;
|
|
13037
|
-
/**
|
|
13038
|
-
* Turns the component into a button and adds an editable style border at the bottom
|
|
13039
|
-
*/
|
|
13040
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13041
|
-
/**
|
|
13042
|
-
* Sets the display style for the expression. Defaults to `inline`
|
|
13043
|
-
*/
|
|
13044
|
-
display?: "inline" | "columns" | undefined;
|
|
13045
|
-
/**
|
|
13046
|
-
* Forces color to display as `danger` and shows an `alert` icon
|
|
13047
|
-
*/
|
|
13048
|
-
isInvalid?: boolean | undefined;
|
|
13049
|
-
/**
|
|
13050
|
-
* Sets a custom width for the description when using the columns layout.
|
|
13051
|
-
* Set to a number for a custom width in `px`.
|
|
13052
|
-
* Set to a string for a custom width in custom measurement.
|
|
13053
|
-
* Defaults to `20%`
|
|
13054
|
-
*/
|
|
13055
|
-
descriptionWidth?: string | number | undefined;
|
|
13056
|
-
/**
|
|
13057
|
-
* Sets how to handle the wrapping of long text.
|
|
13058
|
-
*/
|
|
13059
|
-
textWrap?: "break-word" | "truncate" | undefined;
|
|
13060
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
13061
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
13062
|
-
})) & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<((import ("@elastic/eui/src/components/common").DisambiguateSet<Buttonlike, Spanlike> & CommonProps & {
|
|
13063
|
-
/**
|
|
13064
|
-
* First part of the expression
|
|
13065
|
-
*/
|
|
13066
|
-
description: ReactNode;
|
|
13067
|
-
descriptionProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13068
|
-
/**
|
|
13069
|
-
* Second part of the expression
|
|
13070
|
-
*/
|
|
13071
|
-
value?: ReactNode;
|
|
13072
|
-
valueProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13073
|
-
/**
|
|
13074
|
-
* Color of the `description`
|
|
13075
|
-
*/
|
|
13076
|
-
color?: "primary" | "success" | "accent" | "warning" | "danger" | "subdued" | undefined;
|
|
13077
|
-
/**
|
|
13078
|
-
* Should the `description` auto-uppercase?
|
|
13079
|
-
*/
|
|
13080
|
-
uppercase?: boolean | undefined;
|
|
13081
|
-
/**
|
|
13082
|
-
* Adds an solid border at the bottom
|
|
13083
|
-
*/
|
|
13084
|
-
isActive?: boolean | undefined;
|
|
13085
|
-
/**
|
|
13086
|
-
* Turns the component into a button and adds an editable style border at the bottom
|
|
13087
|
-
*/
|
|
13088
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13089
|
-
/**
|
|
13090
|
-
* Sets the display style for the expression. Defaults to `inline`
|
|
13091
|
-
*/
|
|
13092
|
-
display?: "inline" | "columns" | undefined;
|
|
13093
|
-
/**
|
|
13094
|
-
* Forces color to display as `danger` and shows an `alert` icon
|
|
13095
|
-
*/
|
|
13096
|
-
isInvalid?: boolean | undefined;
|
|
13097
|
-
/**
|
|
13098
|
-
* Sets a custom width for the description when using the columns layout.
|
|
13099
|
-
* Set to a number for a custom width in `px`.
|
|
13100
|
-
* Set to a string for a custom width in custom measurement.
|
|
13101
|
-
* Defaults to `20%`
|
|
13102
|
-
*/
|
|
13103
|
-
descriptionWidth?: string | number | undefined;
|
|
13104
|
-
/**
|
|
13105
|
-
* Sets how to handle the wrapping of long text.
|
|
13106
|
-
*/
|
|
13107
|
-
textWrap?: "break-word" | "truncate" | undefined;
|
|
13108
|
-
} & Omit<React.HTMLAttributes<HTMLSpanElement>, "value">) | (import ("@elastic/eui/src/components/common").DisambiguateSet<Spanlike, Buttonlike> & CommonProps & {
|
|
13109
|
-
/**
|
|
13110
|
-
* First part of the expression
|
|
13111
|
-
*/
|
|
13112
|
-
description: ReactNode;
|
|
13113
|
-
descriptionProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13114
|
-
/**
|
|
13115
|
-
* Second part of the expression
|
|
13116
|
-
*/
|
|
13117
|
-
value?: ReactNode;
|
|
13118
|
-
valueProps?: React.HTMLAttributes<HTMLSpanElement> | undefined;
|
|
13119
|
-
/**
|
|
13120
|
-
* Color of the `description`
|
|
13121
|
-
*/
|
|
13122
|
-
color?: "primary" | "success" | "accent" | "warning" | "danger" | "subdued" | undefined;
|
|
13123
|
-
/**
|
|
13124
|
-
* Should the `description` auto-uppercase?
|
|
13125
|
-
*/
|
|
13126
|
-
uppercase?: boolean | undefined;
|
|
13127
|
-
/**
|
|
13128
|
-
* Adds an solid border at the bottom
|
|
13129
|
-
*/
|
|
13130
|
-
isActive?: boolean | undefined;
|
|
13131
|
-
/**
|
|
13132
|
-
* Turns the component into a button and adds an editable style border at the bottom
|
|
13133
|
-
*/
|
|
13134
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13135
|
-
/**
|
|
13136
|
-
* Sets the display style for the expression. Defaults to `inline`
|
|
13137
|
-
*/
|
|
13138
|
-
display?: "inline" | "columns" | undefined;
|
|
13139
|
-
/**
|
|
13140
|
-
* Forces color to display as `danger` and shows an `alert` icon
|
|
13141
|
-
*/
|
|
13142
|
-
isInvalid?: boolean | undefined;
|
|
13143
|
-
/**
|
|
13144
|
-
* Sets a custom width for the description when using the columns layout.
|
|
13145
|
-
* Set to a number for a custom width in `px`.
|
|
13146
|
-
* Set to a string for a custom width in custom measurement.
|
|
13147
|
-
* Defaults to `20%`
|
|
13148
|
-
*/
|
|
13149
|
-
descriptionWidth?: string | number | undefined;
|
|
13150
|
-
/**
|
|
13151
|
-
* Sets how to handle the wrapping of long text.
|
|
13152
|
-
*/
|
|
13153
|
-
textWrap?: "break-word" | "truncate" | undefined;
|
|
13154
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
13155
|
-
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
13156
|
-
})) & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
12762
|
+
export const EuiExpression: FunctionComponent<ExclusiveUnion<Buttonlike, Spanlike>>;
|
|
13157
12763
|
export {};
|
|
13158
12764
|
|
|
13159
12765
|
}
|
|
@@ -13303,9 +12909,8 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
13303
12909
|
|
|
13304
12910
|
}
|
|
13305
12911
|
declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
13306
|
-
import
|
|
12912
|
+
import { FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode, RefCallback } from 'react';
|
|
13307
12913
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13308
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
13309
12914
|
export interface EuiFacetButtonProps extends CommonProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
13310
12915
|
buttonRef?: RefCallback<HTMLButtonElement>;
|
|
13311
12916
|
/**
|
|
@@ -13331,8 +12936,7 @@ declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
|
13331
12936
|
*/
|
|
13332
12937
|
quantity?: number;
|
|
13333
12938
|
}
|
|
13334
|
-
export const
|
|
13335
|
-
export const EuiFacetButton: React.ForwardRefExoticComponent<Omit<EuiFacetButtonProps & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<EuiFacetButtonProps & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
12939
|
+
export const EuiFacetButton: FunctionComponent<EuiFacetButtonProps>;
|
|
13336
12940
|
|
|
13337
12941
|
}
|
|
13338
12942
|
declare module '@elastic/eui/src/components/facet/facet_group.styles' {
|
|
@@ -13350,9 +12954,8 @@ declare module '@elastic/eui/src/components/facet/facet_group.styles' {
|
|
|
13350
12954
|
|
|
13351
12955
|
}
|
|
13352
12956
|
declare module '@elastic/eui/src/components/facet/facet_group' {
|
|
13353
|
-
import
|
|
12957
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
13354
12958
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13355
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
13356
12959
|
export const LAYOUTS: readonly ["vertical", "horizontal"];
|
|
13357
12960
|
export type EuiFacetGroupLayout = typeof LAYOUTS[number];
|
|
13358
12961
|
export const GUTTER_SIZES: readonly ["none", "s", "m", "l"];
|
|
@@ -13368,28 +12971,7 @@ declare module '@elastic/eui/src/components/facet/facet_group' {
|
|
|
13368
12971
|
*/
|
|
13369
12972
|
gutterSize?: EuiFacetGroupGutterSizes;
|
|
13370
12973
|
};
|
|
13371
|
-
export const
|
|
13372
|
-
export const EuiFacetGroup: React.ForwardRefExoticComponent<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
13373
|
-
/**
|
|
13374
|
-
* Vertically in a column, or horizontally in one wrapping line
|
|
13375
|
-
*/
|
|
13376
|
-
layout?: "horizontal" | "vertical" | undefined;
|
|
13377
|
-
/**
|
|
13378
|
-
* Distance between facet buttons.
|
|
13379
|
-
* Horizontal layout always adds more distance horizontally between buttons.
|
|
13380
|
-
*/
|
|
13381
|
-
gutterSize?: "s" | "none" | "m" | "l" | undefined;
|
|
13382
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
13383
|
-
/**
|
|
13384
|
-
* Vertically in a column, or horizontally in one wrapping line
|
|
13385
|
-
*/
|
|
13386
|
-
layout?: "horizontal" | "vertical" | undefined;
|
|
13387
|
-
/**
|
|
13388
|
-
* Distance between facet buttons.
|
|
13389
|
-
* Horizontal layout always adds more distance horizontally between buttons.
|
|
13390
|
-
*/
|
|
13391
|
-
gutterSize?: "s" | "none" | "m" | "l" | undefined;
|
|
13392
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
12974
|
+
export const EuiFacetGroup: FunctionComponent<EuiFacetGroupProps>;
|
|
13393
12975
|
|
|
13394
12976
|
}
|
|
13395
12977
|
declare module '@elastic/eui/src/components/facet' {
|
|
@@ -13636,8 +13218,7 @@ declare module '@elastic/eui/src/components/health/health.styles' {
|
|
|
13636
13218
|
|
|
13637
13219
|
}
|
|
13638
13220
|
declare module '@elastic/eui/src/components/health/health' {
|
|
13639
|
-
import
|
|
13640
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
13221
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
13641
13222
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13642
13223
|
import { IconColor } from '@elastic/eui/src/components/icon';
|
|
13643
13224
|
export const TEXT_SIZES: readonly ["xs", "s", "m", "inherit"];
|
|
@@ -13654,32 +13235,7 @@ declare module '@elastic/eui/src/components/health/health' {
|
|
|
13654
13235
|
*/
|
|
13655
13236
|
textSize?: typeof TEXT_SIZES[number];
|
|
13656
13237
|
};
|
|
13657
|
-
export const
|
|
13658
|
-
export const EuiHealth: React.ForwardRefExoticComponent<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
13659
|
-
/**
|
|
13660
|
-
* Sets the color of the dot icon.
|
|
13661
|
-
* It accepts any `IconColor`: `default`, `primary`, `success`, `accent`, `warning`, `danger`, `text`,
|
|
13662
|
-
* `subdued` or `ghost`; or any valid CSS color value as a `string`
|
|
13663
|
-
*/
|
|
13664
|
-
color?: string | undefined;
|
|
13665
|
-
/**
|
|
13666
|
-
* Matches the text scales of EuiText.
|
|
13667
|
-
* The `inherit` style will get its font size from the parent element
|
|
13668
|
-
*/
|
|
13669
|
-
textSize?: "s" | "xs" | "m" | "inherit" | undefined;
|
|
13670
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
13671
|
-
/**
|
|
13672
|
-
* Sets the color of the dot icon.
|
|
13673
|
-
* It accepts any `IconColor`: `default`, `primary`, `success`, `accent`, `warning`, `danger`, `text`,
|
|
13674
|
-
* `subdued` or `ghost`; or any valid CSS color value as a `string`
|
|
13675
|
-
*/
|
|
13676
|
-
color?: string | undefined;
|
|
13677
|
-
/**
|
|
13678
|
-
* Matches the text scales of EuiText.
|
|
13679
|
-
* The `inherit` style will get its font size from the parent element
|
|
13680
|
-
*/
|
|
13681
|
-
textSize?: "s" | "xs" | "m" | "inherit" | undefined;
|
|
13682
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
13238
|
+
export const EuiHealth: FunctionComponent<EuiHealthProps>;
|
|
13683
13239
|
|
|
13684
13240
|
}
|
|
13685
13241
|
declare module '@elastic/eui/src/components/health' {
|
|
@@ -14257,11 +13813,10 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_def
|
|
|
14257
13813
|
|
|
14258
13814
|
}
|
|
14259
13815
|
declare module '@elastic/eui/src/components/markdown_editor/markdown_format' {
|
|
14260
|
-
import
|
|
14261
|
-
import
|
|
13816
|
+
import { FunctionComponent } from 'react';
|
|
13817
|
+
import { PluggableList } from 'unified';
|
|
14262
13818
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14263
13819
|
import { EuiTextProps } from '@elastic/eui/src/components/text/text';
|
|
14264
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
14265
13820
|
export type EuiMarkdownFormatProps = CommonProps & Omit<EuiTextProps, 'size'> & {
|
|
14266
13821
|
children: string;
|
|
14267
13822
|
/** array of unified plugins to parse content into an AST */
|
|
@@ -14273,28 +13828,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_format' {
|
|
|
14273
13828
|
*/
|
|
14274
13829
|
textSize?: EuiTextProps['size'];
|
|
14275
13830
|
};
|
|
14276
|
-
export const
|
|
14277
|
-
export const EuiMarkdownFormat: React.ForwardRefExoticComponent<Omit<CommonProps & Omit<EuiTextProps, "size"> & {
|
|
14278
|
-
children: string;
|
|
14279
|
-
/** array of unified plugins to parse content into an AST */
|
|
14280
|
-
parsingPluginList?: unified.PluggableList<unified.Settings> | undefined;
|
|
14281
|
-
/** array of unified plugins to convert the AST into a ReactNode */
|
|
14282
|
-
processingPluginList?: unified.PluggableList<unified.Settings> | undefined;
|
|
14283
|
-
/**
|
|
14284
|
-
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
14285
|
-
*/
|
|
14286
|
-
textSize?: EuiTextProps['size'];
|
|
14287
|
-
} & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<CommonProps & Omit<EuiTextProps, "size"> & {
|
|
14288
|
-
children: string;
|
|
14289
|
-
/** array of unified plugins to parse content into an AST */
|
|
14290
|
-
parsingPluginList?: unified.PluggableList<unified.Settings> | undefined;
|
|
14291
|
-
/** array of unified plugins to convert the AST into a ReactNode */
|
|
14292
|
-
processingPluginList?: unified.PluggableList<unified.Settings> | undefined;
|
|
14293
|
-
/**
|
|
14294
|
-
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
14295
|
-
*/
|
|
14296
|
-
textSize?: EuiTextProps['size'];
|
|
14297
|
-
} & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
13831
|
+
export const EuiMarkdownFormat: FunctionComponent<EuiMarkdownFormatProps>;
|
|
14298
13832
|
|
|
14299
13833
|
}
|
|
14300
13834
|
declare module '@elastic/eui/src/components/modal/modal' {
|
|
@@ -15083,11 +14617,6 @@ declare module '@elastic/eui/src/components/page' {
|
|
|
15083
14617
|
export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page/page_template';
|
|
15084
14618
|
export { EuiPageTemplate } from '@elastic/eui/src/components/page/page_template';
|
|
15085
14619
|
|
|
15086
|
-
}
|
|
15087
|
-
declare module '@elastic/eui/src/global_styling/utility/utility' {
|
|
15088
|
-
|
|
15089
|
-
export const EuiUtilityClasses: () => JSX.Element;
|
|
15090
|
-
|
|
15091
14620
|
}
|
|
15092
14621
|
declare module '@elastic/eui/src/themes/themes' {
|
|
15093
14622
|
import { EuiThemeSystem } from '@elastic/eui/src/services';
|
|
@@ -15099,11 +14628,16 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
15099
14628
|
export const EUI_THEMES: EUI_THEME[];
|
|
15100
14629
|
export const isDefaultTheme: (name: string) => boolean;
|
|
15101
14630
|
|
|
14631
|
+
}
|
|
14632
|
+
declare module '@elastic/eui/src/themes/amsterdam' {
|
|
14633
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
|
|
14634
|
+
|
|
15102
14635
|
}
|
|
15103
14636
|
declare module '@elastic/eui/src/themes' {
|
|
15104
14637
|
export type { EUI_THEME } from '@elastic/eui/src/themes/themes';
|
|
15105
14638
|
export { EUI_THEMES, isDefaultTheme } from '@elastic/eui/src/themes/themes';
|
|
15106
14639
|
export { AMSTERDAM_NAME_KEY, EuiThemeAmsterdam } from '@elastic/eui/src/themes/amsterdam/theme';
|
|
14640
|
+
export * from '@elastic/eui/src/themes/amsterdam';
|
|
15107
14641
|
|
|
15108
14642
|
}
|
|
15109
14643
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
@@ -15123,32 +14657,16 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
15123
14657
|
*/
|
|
15124
14658
|
globalStyles?: false | ((params: any) => JSX.Element | null);
|
|
15125
14659
|
/**
|
|
15126
|
-
* Provide
|
|
15127
|
-
* Pass `false` to remove the default EUI utility classes.
|
|
15128
|
-
*/
|
|
15129
|
-
utilityClasses?: false | ((params: any) => JSX.Element | null);
|
|
15130
|
-
/**
|
|
15131
|
-
* Provide a cache configuration(s) from `@emotion/cache`.
|
|
15132
|
-
*
|
|
15133
|
-
* - `default` will encompass all Emotion styles, including consumer defined appliction styles, not handled by nested cache instances.
|
|
15134
|
-
* - `eui` will scope all EUI component styles.
|
|
15135
|
-
* - `global` will scope all EUI global and reset styles. Will use `eui` if not specified.
|
|
15136
|
-
* - `utility` will scope all EUI utility class styles.
|
|
15137
|
-
*
|
|
15138
|
-
* A cache instance provided as the sole value will function the same as the `default` cache.
|
|
14660
|
+
* Provide a cache configuration from `@emotion/cache`
|
|
15139
14661
|
*/
|
|
15140
|
-
cache?: EmotionCache
|
|
15141
|
-
default?: EmotionCache;
|
|
15142
|
-
eui?: EmotionCache;
|
|
15143
|
-
global?: EmotionCache;
|
|
15144
|
-
utility?: EmotionCache;
|
|
15145
|
-
};
|
|
14662
|
+
cache?: EmotionCache;
|
|
15146
14663
|
}
|
|
15147
|
-
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles:
|
|
14664
|
+
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: GlobalStyles, colorMode, modify, children, }: React.PropsWithChildren<EuiProviderProps<T>>) => JSX.Element;
|
|
15148
14665
|
|
|
15149
14666
|
}
|
|
15150
14667
|
declare module '@elastic/eui/src/components/provider' {
|
|
15151
|
-
export
|
|
14668
|
+
export type { EuiProviderProps } from '@elastic/eui/src/components/provider/provider';
|
|
14669
|
+
export { EuiProvider } from '@elastic/eui/src/components/provider/provider';
|
|
15152
14670
|
|
|
15153
14671
|
}
|
|
15154
14672
|
declare module '@elastic/eui/src/components/tree_view/tree_view' {
|
|
@@ -18338,9 +17856,8 @@ declare module '@elastic/eui/src/components/timeline/timeline_item_icon.styles'
|
|
|
18338
17856
|
|
|
18339
17857
|
}
|
|
18340
17858
|
declare module '@elastic/eui/src/components/timeline/timeline_item_icon' {
|
|
18341
|
-
import
|
|
17859
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
18342
17860
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
18343
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
18344
17861
|
import { EuiTimelineItemVerticalAlign } from '@elastic/eui/src/components/timeline/timeline_item';
|
|
18345
17862
|
export interface EuiTimelineItemIconProps {
|
|
18346
17863
|
/**
|
|
@@ -18354,12 +17871,7 @@ declare module '@elastic/eui/src/components/timeline/timeline_item_icon' {
|
|
|
18354
17871
|
*/
|
|
18355
17872
|
iconAriaLabel?: string;
|
|
18356
17873
|
}
|
|
18357
|
-
export const
|
|
18358
|
-
export const EuiTimelineItemIcon: React.ForwardRefExoticComponent<Omit<EuiTimelineItemIconProps & WithEuiSystemProps<{}> & {
|
|
18359
|
-
children?: React.ReactNode;
|
|
18360
|
-
}, "euiTheme"> & React.RefAttributes<Omit<EuiTimelineItemIconProps & WithEuiSystemProps<{}> & {
|
|
18361
|
-
children?: React.ReactNode;
|
|
18362
|
-
}, "euiTheme">>>;
|
|
17874
|
+
export const EuiTimelineItemIcon: FunctionComponent<EuiTimelineItemIconProps>;
|
|
18363
17875
|
|
|
18364
17876
|
}
|
|
18365
17877
|
declare module '@elastic/eui/src/components/timeline/timeline_item.styles' {
|
|
@@ -18370,9 +17882,8 @@ declare module '@elastic/eui/src/components/timeline/timeline_item.styles' {
|
|
|
18370
17882
|
|
|
18371
17883
|
}
|
|
18372
17884
|
declare module '@elastic/eui/src/components/timeline/timeline_item' {
|
|
18373
|
-
import
|
|
17885
|
+
import { FunctionComponent, HTMLAttributes, ElementType } from 'react';
|
|
18374
17886
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18375
|
-
import { WithEuiSystemProps } from '@elastic/eui/src/components/provider/system';
|
|
18376
17887
|
import { EuiTimelineItemEventProps } from '@elastic/eui/src/components/timeline/timeline_item_event';
|
|
18377
17888
|
import { EuiTimelineItemIconProps } from '@elastic/eui/src/components/timeline/timeline_item_icon';
|
|
18378
17889
|
export const VERTICAL_ALIGN: readonly ["top", "center"];
|
|
@@ -18389,8 +17900,7 @@ declare module '@elastic/eui/src/components/timeline/timeline_item' {
|
|
|
18389
17900
|
*/
|
|
18390
17901
|
component?: ElementType;
|
|
18391
17902
|
}
|
|
18392
|
-
export const
|
|
18393
|
-
export const EuiTimelineItem: React.ForwardRefExoticComponent<Omit<EuiTimelineItemProps & WithEuiSystemProps<{}>, "euiTheme"> & React.RefAttributes<Omit<EuiTimelineItemProps & WithEuiSystemProps<{}>, "euiTheme">>>;
|
|
17903
|
+
export const EuiTimelineItem: FunctionComponent<EuiTimelineItemProps>;
|
|
18394
17904
|
|
|
18395
17905
|
}
|
|
18396
17906
|
declare module '@elastic/eui/src/components/timeline/timeline' {
|