@elastic/eui 106.3.0 → 106.4.0-amsterdam.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/es/components/modal/modal.js +10 -4
- package/es/components/page/page_header/page_header_content.js +2 -1
- package/es/components/popover/input_popover.js +15 -9
- package/es/components/provider/provider.js +2 -2
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/eui.d.ts +374 -368
- package/lib/components/modal/modal.js +10 -4
- package/lib/components/page/page_header/page_header_content.js +2 -1
- package/lib/components/popover/input_popover.js +15 -9
- package/lib/components/provider/provider.js +2 -2
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/optimize/es/components/modal/modal.js +4 -3
- package/optimize/es/components/page/page_header/page_header_content.js +2 -1
- package/optimize/es/components/popover/input_popover.js +15 -9
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/lib/components/modal/modal.js +4 -3
- package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
- package/optimize/lib/components/popover/input_popover.js +15 -9
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/package.json +3 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -2
- package/src/themes/amsterdam/_colors_light.scss +3 -3
- package/test-env/components/flyout/flyout.js +8 -4
- package/test-env/components/modal/modal.js +10 -4
- package/test-env/components/page/page_header/page_header_content.js +2 -1
- package/test-env/components/popover/input_popover.js +15 -9
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
package/eui.d.ts
CHANGED
|
@@ -171,124 +171,13 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
171
171
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
172
172
|
} & ButtonHTMLAttributes<HTMLButtonElement> & P;
|
|
173
173
|
|
|
174
|
-
}
|
|
175
|
-
declare module '@elastic/eui/src/services/theme/types' {
|
|
176
|
-
export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
|
|
177
|
-
|
|
178
174
|
}
|
|
179
175
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
180
176
|
export { DEFAULT_COLOR_MODE, isInverseColorMode, getColorMode, getOn, setOn, Computed, computed, getComputed, buildTheme, mergeDeep, } from '@elastic/eui-theme-common';
|
|
181
177
|
|
|
182
178
|
}
|
|
183
|
-
declare module '@elastic/eui/src/services/theme/
|
|
184
|
-
|
|
185
|
-
export const DEFAULTS: {
|
|
186
|
-
system: {
|
|
187
|
-
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
188
|
-
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
189
|
-
key: string;
|
|
190
|
-
};
|
|
191
|
-
modifications: {};
|
|
192
|
-
colorMode: "LIGHT";
|
|
193
|
-
highContrastMode: false;
|
|
194
|
-
};
|
|
195
|
-
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
196
|
-
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
197
|
-
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
198
|
-
}>>;
|
|
199
|
-
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
200
|
-
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
201
|
-
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
202
|
-
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
203
|
-
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
declare module '@elastic/eui/src/services/theme/warning' {
|
|
207
|
-
type LEVELS = 'log' | 'warn' | 'error';
|
|
208
|
-
type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
209
|
-
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
210
|
-
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
211
|
-
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
212
|
-
export {};
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
216
|
-
import React from 'react';
|
|
217
|
-
import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
218
|
-
/**
|
|
219
|
-
* Hook for function components
|
|
220
|
-
*/
|
|
221
|
-
export interface UseEuiTheme<T extends {} = {}> {
|
|
222
|
-
euiTheme: EuiThemeComputed<T>;
|
|
223
|
-
colorMode: EuiThemeColorModeStandard;
|
|
224
|
-
highContrastMode: EuiThemeHighContrastMode;
|
|
225
|
-
modifications: EuiThemeModifications<T>;
|
|
226
|
-
}
|
|
227
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
228
|
-
/**
|
|
229
|
-
* HOC for class components
|
|
230
|
-
*/
|
|
231
|
-
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
232
|
-
theme: UseEuiTheme<P>;
|
|
233
|
-
}
|
|
234
|
-
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
235
|
-
/**
|
|
236
|
-
* Render prop alternative for complex class components
|
|
237
|
-
* Most useful for scenarios where a HOC may interfere with typing
|
|
238
|
-
*/
|
|
239
|
-
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
240
|
-
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
241
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
242
|
-
/**
|
|
243
|
-
* Minor syntactical sugar hook for theme CSS variables.
|
|
244
|
-
* Primarily meant for internal EUI usage.
|
|
245
|
-
*/
|
|
246
|
-
export const useEuiThemeCSSVariables: () => {
|
|
247
|
-
setGlobalCSSVariables: Function;
|
|
248
|
-
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
249
|
-
setNearestThemeCSSVariables: Function;
|
|
250
|
-
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
251
|
-
};
|
|
252
|
-
/**
|
|
253
|
-
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
254
|
-
* In case of nested providers this returns the value of the nearest provider context.
|
|
255
|
-
*/
|
|
256
|
-
export const useIsDarkMode: () => boolean;
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
declare module '@elastic/eui/src/services/throttle' {
|
|
260
|
-
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
264
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
265
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
266
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
270
|
-
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
271
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
272
|
-
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
273
|
-
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
274
|
-
/**
|
|
275
|
-
* Returns the current breakpoint based on window width.
|
|
276
|
-
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
277
|
-
* of window resize listeners on the page). Also conditionally called if a
|
|
278
|
-
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
279
|
-
*/
|
|
280
|
-
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
281
|
-
export {};
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
285
|
-
/**
|
|
286
|
-
* Hook util / syntactical sugar for useContext()
|
|
287
|
-
*
|
|
288
|
-
* This hook is in its own separate file to make mocking it
|
|
289
|
-
* as a testenv easy for Jest unit tests
|
|
290
|
-
*/
|
|
291
|
-
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
179
|
+
declare module '@elastic/eui/src/services/theme/types' {
|
|
180
|
+
export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
|
|
292
181
|
|
|
293
182
|
}
|
|
294
183
|
declare module '@elastic/eui/src/services/emotion/clone_element' {
|
|
@@ -387,6 +276,10 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
|
|
|
387
276
|
*/
|
|
388
277
|
export const useDeepEqual: <T = Record<string, any> | any[] | undefined>(object: T) => T;
|
|
389
278
|
|
|
279
|
+
}
|
|
280
|
+
declare module '@elastic/eui/src/services/throttle' {
|
|
281
|
+
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
282
|
+
|
|
390
283
|
}
|
|
391
284
|
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
392
285
|
import { MouseEvent, TouchEvent } from 'react';
|
|
@@ -409,6 +302,15 @@ declare module '@elastic/eui/src/services/hooks' {
|
|
|
409
302
|
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
410
303
|
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
411
304
|
|
|
305
|
+
}
|
|
306
|
+
declare module '@elastic/eui/src/services/theme/warning' {
|
|
307
|
+
type LEVELS = 'log' | 'warn' | 'error';
|
|
308
|
+
type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
309
|
+
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
310
|
+
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
311
|
+
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
312
|
+
export {};
|
|
313
|
+
|
|
412
314
|
}
|
|
413
315
|
declare module '@elastic/eui/src/services/theme/style_memoization' {
|
|
414
316
|
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
@@ -605,6 +507,11 @@ declare module '@elastic/eui/src/services/color/color_palette' {
|
|
|
605
507
|
*/
|
|
606
508
|
categorical?: boolean): string[];
|
|
607
509
|
|
|
510
|
+
}
|
|
511
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_light' {
|
|
512
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
513
|
+
export const colorVisLight: _EuiThemeVisColors;
|
|
514
|
+
|
|
608
515
|
}
|
|
609
516
|
declare module '@elastic/eui/src/services/color/vis_color_store' {
|
|
610
517
|
import { _EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
@@ -1271,7 +1178,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1271
1178
|
*/
|
|
1272
1179
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1273
1180
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1274
|
-
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "
|
|
1181
|
+
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "none" | "xs" | "m" | "l" | "xl", SerializedStyles>;
|
|
1275
1182
|
|
|
1276
1183
|
}
|
|
1277
1184
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1321,6 +1228,12 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1321
1228
|
*/
|
|
1322
1229
|
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1323
1230
|
|
|
1231
|
+
}
|
|
1232
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1233
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1234
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1235
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1236
|
+
|
|
1324
1237
|
}
|
|
1325
1238
|
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
1326
1239
|
export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
|
|
@@ -3043,7 +2956,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
3043
2956
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
3044
2957
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
3045
2958
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
3046
|
-
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "
|
|
2959
|
+
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "copy" | "cut" | "error" | "pause" | "play" | "warning" | "color" | "push" | "temperature" | "refresh" | "scale" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "thumbDown" | "thumbUp" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
|
|
3047
2960
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
3048
2961
|
export type IconType = EuiIconType | string | ComponentType;
|
|
3049
2962
|
export type IconColor = string | NamedColor;
|
|
@@ -6343,7 +6256,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
6343
6256
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
6344
6257
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
6345
6258
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
6346
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
6259
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
6347
6260
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
6348
6261
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
6349
6262
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
@@ -8217,71 +8130,6 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
|
8217
8130
|
import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
|
|
8218
8131
|
export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
|
|
8219
8132
|
|
|
8220
|
-
}
|
|
8221
|
-
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
8222
|
-
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
8223
|
-
/**
|
|
8224
|
-
* Makes a color more transparent.
|
|
8225
|
-
* @param color - Color to manipulate
|
|
8226
|
-
* @param alpha - alpha channel value. From 0-1.
|
|
8227
|
-
*/
|
|
8228
|
-
export const transparentize: (color: string, alpha: number) => string;
|
|
8229
|
-
/**
|
|
8230
|
-
* Mixes a provided color with white.
|
|
8231
|
-
* @param color - Color to mix with white
|
|
8232
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8233
|
-
*/
|
|
8234
|
-
export const tint: (color: string, ratio: number) => string;
|
|
8235
|
-
/**
|
|
8236
|
-
* Mixes a provided color with black.
|
|
8237
|
-
* @param color - Color to mix with black
|
|
8238
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
8239
|
-
*/
|
|
8240
|
-
export const shade: (color: string, ratio: number) => string;
|
|
8241
|
-
/**
|
|
8242
|
-
* Returns the tinted color for light mode and shaded color for dark mode
|
|
8243
|
-
* @param color - Color to mix with white
|
|
8244
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8245
|
-
* @param colorMode - Light or dark only
|
|
8246
|
-
*/
|
|
8247
|
-
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
8248
|
-
/**
|
|
8249
|
-
* Returns the shaded color for light mode and tinted color for dark mode
|
|
8250
|
-
* @param color - Color to mix with white
|
|
8251
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8252
|
-
* @param colorMode - Light or dark only
|
|
8253
|
-
*/
|
|
8254
|
-
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
8255
|
-
/**
|
|
8256
|
-
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
8257
|
-
* @param color - Color to manipulate
|
|
8258
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8259
|
-
*/
|
|
8260
|
-
export const saturate: (color: string, amount: number) => string;
|
|
8261
|
-
/**
|
|
8262
|
-
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
8263
|
-
* @param color - Color to manipulate
|
|
8264
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8265
|
-
*/
|
|
8266
|
-
export const desaturate: (color: string, amount: number) => string;
|
|
8267
|
-
/**
|
|
8268
|
-
* Returns the lightness value of a color. 0-100
|
|
8269
|
-
* @param color
|
|
8270
|
-
*/
|
|
8271
|
-
export const lightness: (color: string) => number;
|
|
8272
|
-
/**
|
|
8273
|
-
* Returns the darken value of a color. 0-100
|
|
8274
|
-
* @param color - Color to manipulate
|
|
8275
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8276
|
-
*/
|
|
8277
|
-
export const darken: (color: string, amount: number) => string;
|
|
8278
|
-
/**
|
|
8279
|
-
* Returns the brighten value of a color. 0-100
|
|
8280
|
-
* @param color - Color to manipulate
|
|
8281
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8282
|
-
*/
|
|
8283
|
-
export const brighten: (color: string, amount: number) => string;
|
|
8284
|
-
|
|
8285
8133
|
}
|
|
8286
8134
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
8287
8135
|
export const wcagContrastMin = 4.5;
|
|
@@ -8359,31 +8207,346 @@ declare module '@elastic/eui/src/services/theme/provider' {
|
|
|
8359
8207
|
cloneElement?: boolean;
|
|
8360
8208
|
};
|
|
8361
8209
|
}
|
|
8362
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
8210
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
8211
|
+
|
|
8212
|
+
}
|
|
8213
|
+
declare module '@elastic/eui/src/services/theme/theme_variant' {
|
|
8214
|
+
import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
|
|
8215
|
+
export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
|
|
8216
|
+
/**
|
|
8217
|
+
* Util to retrieve visual variant for UI elements
|
|
8218
|
+
* Note: Temporary only - will be removed once the visual refresh is completed.
|
|
8219
|
+
*/
|
|
8220
|
+
export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
|
|
8221
|
+
|
|
8222
|
+
}
|
|
8223
|
+
declare module '@elastic/eui/src/services/theme' {
|
|
8224
|
+
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
8225
|
+
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
8226
|
+
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, useIsDarkMode, } from '@elastic/eui/src/services/theme/hooks';
|
|
8227
|
+
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
8228
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
8229
|
+
export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
|
|
8230
|
+
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
8231
|
+
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
8232
|
+
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
8233
|
+
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
8234
|
+
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
8235
|
+
|
|
8236
|
+
}
|
|
8237
|
+
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
8238
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
8239
|
+
/**
|
|
8240
|
+
* Makes a color more transparent.
|
|
8241
|
+
* @param color - Color to manipulate
|
|
8242
|
+
* @param alpha - alpha channel value. From 0-1.
|
|
8243
|
+
*/
|
|
8244
|
+
export const transparentize: (color: string, alpha: number) => string;
|
|
8245
|
+
/**
|
|
8246
|
+
* Mixes a provided color with white.
|
|
8247
|
+
* @param color - Color to mix with white
|
|
8248
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8249
|
+
*/
|
|
8250
|
+
export const tint: (color: string, ratio: number) => string;
|
|
8251
|
+
/**
|
|
8252
|
+
* Mixes a provided color with black.
|
|
8253
|
+
* @param color - Color to mix with black
|
|
8254
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
8255
|
+
*/
|
|
8256
|
+
export const shade: (color: string, ratio: number) => string;
|
|
8257
|
+
/**
|
|
8258
|
+
* Returns the tinted color for light mode and shaded color for dark mode
|
|
8259
|
+
* @param color - Color to mix with white
|
|
8260
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8261
|
+
* @param colorMode - Light or dark only
|
|
8262
|
+
*/
|
|
8263
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
8264
|
+
/**
|
|
8265
|
+
* Returns the shaded color for light mode and tinted color for dark mode
|
|
8266
|
+
* @param color - Color to mix with white
|
|
8267
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
8268
|
+
* @param colorMode - Light or dark only
|
|
8269
|
+
*/
|
|
8270
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
8271
|
+
/**
|
|
8272
|
+
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
8273
|
+
* @param color - Color to manipulate
|
|
8274
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8275
|
+
*/
|
|
8276
|
+
export const saturate: (color: string, amount: number) => string;
|
|
8277
|
+
/**
|
|
8278
|
+
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
8279
|
+
* @param color - Color to manipulate
|
|
8280
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8281
|
+
*/
|
|
8282
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
8283
|
+
/**
|
|
8284
|
+
* Returns the lightness value of a color. 0-100
|
|
8285
|
+
* @param color
|
|
8286
|
+
*/
|
|
8287
|
+
export const lightness: (color: string) => number;
|
|
8288
|
+
/**
|
|
8289
|
+
* Returns the darken value of a color. 0-100
|
|
8290
|
+
* @param color - Color to manipulate
|
|
8291
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8292
|
+
*/
|
|
8293
|
+
export const darken: (color: string, amount: number) => string;
|
|
8294
|
+
/**
|
|
8295
|
+
* Returns the brighten value of a color. 0-100
|
|
8296
|
+
* @param color - Color to manipulate
|
|
8297
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
8298
|
+
*/
|
|
8299
|
+
export const brighten: (color: string, amount: number) => string;
|
|
8300
|
+
|
|
8301
|
+
}
|
|
8302
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_dark' {
|
|
8303
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
8304
|
+
export const colorVisDark: _EuiThemeVisColors;
|
|
8305
|
+
|
|
8306
|
+
}
|
|
8307
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
8308
|
+
/**
|
|
8309
|
+
* These are not actually used, but we map them to ensure token parity.
|
|
8310
|
+
* They are mapped to other vis colors
|
|
8311
|
+
*/
|
|
8312
|
+
export const severityColors: {
|
|
8313
|
+
unknown: string;
|
|
8314
|
+
neutral: string;
|
|
8315
|
+
success: string;
|
|
8316
|
+
warning: string;
|
|
8317
|
+
risk: string;
|
|
8318
|
+
danger: string;
|
|
8319
|
+
};
|
|
8320
|
+
|
|
8321
|
+
}
|
|
8322
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
8323
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
8324
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
8325
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
8326
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
8327
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
8328
|
+
export const text_colors: _EuiThemeTextColors;
|
|
8329
|
+
export const background_colors: _EuiThemeBackgroundColors;
|
|
8330
|
+
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
8331
|
+
export const border_colors: _EuiThemeBorderColors;
|
|
8332
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
8333
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
8334
|
+
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
8335
|
+
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
8336
|
+
export const dark_border_colors: _EuiThemeBorderColors;
|
|
8337
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
8338
|
+
export const colors: _EuiThemeColors;
|
|
8339
|
+
|
|
8340
|
+
}
|
|
8341
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
8342
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
8343
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
8344
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
8345
|
+
export const animation: _EuiThemeAnimation;
|
|
8346
|
+
|
|
8347
|
+
}
|
|
8348
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
8349
|
+
export { breakpoint } from '@elastic/eui-theme-common';
|
|
8350
|
+
|
|
8351
|
+
}
|
|
8352
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
8353
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
8354
|
+
export const base: _EuiThemeBase;
|
|
8355
|
+
export const size: _EuiThemeSizes;
|
|
8356
|
+
|
|
8357
|
+
}
|
|
8358
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
8359
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
8360
|
+
export const border: _EuiThemeBorder;
|
|
8361
|
+
|
|
8362
|
+
}
|
|
8363
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
8364
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
8365
|
+
export const levels: _EuiThemeLevels;
|
|
8366
|
+
|
|
8367
|
+
}
|
|
8368
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
8369
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
8370
|
+
export const fontScale: _EuiThemeFontScales;
|
|
8371
|
+
export const fontBase: _EuiThemeFontBase;
|
|
8372
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
8373
|
+
export const font: _EuiThemeFont;
|
|
8374
|
+
|
|
8375
|
+
}
|
|
8376
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
8377
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
8378
|
+
export const focus: _EuiThemeFocus;
|
|
8379
|
+
|
|
8380
|
+
}
|
|
8381
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
8382
|
+
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
8383
|
+
export const buttons: _EuiThemeButton;
|
|
8384
|
+
|
|
8385
|
+
}
|
|
8386
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
8387
|
+
export const forms: {
|
|
8388
|
+
maxWidth: string;
|
|
8389
|
+
LIGHT: {
|
|
8390
|
+
background: string;
|
|
8391
|
+
backgroundDisabled: string;
|
|
8392
|
+
backgroundReadOnly: any;
|
|
8393
|
+
backgroundFocused: any;
|
|
8394
|
+
backgroundAutofilled: string;
|
|
8395
|
+
backgroundDropping: string;
|
|
8396
|
+
prependBackground: string;
|
|
8397
|
+
border: string;
|
|
8398
|
+
borderDisabled: string;
|
|
8399
|
+
borderFocused: any;
|
|
8400
|
+
borderInvalid: any;
|
|
8401
|
+
borderHovered: string;
|
|
8402
|
+
borderInvalidHovered: any;
|
|
8403
|
+
borderAutofilled: string;
|
|
8404
|
+
borderAutofilledHovered: string;
|
|
8405
|
+
clearButtonBackground: any;
|
|
8406
|
+
controlBorder: string;
|
|
8407
|
+
controlBorderSelected: string;
|
|
8408
|
+
controlBorderDisabled: string;
|
|
8409
|
+
controlBackgroundUnselected: any;
|
|
8410
|
+
controlBackgroundDisabled: any;
|
|
8411
|
+
colorHasPlaceholder: string;
|
|
8412
|
+
colorDisabled: any;
|
|
8413
|
+
iconDisabled: any;
|
|
8414
|
+
};
|
|
8415
|
+
DARK: {
|
|
8416
|
+
background: string;
|
|
8417
|
+
backgroundFocused: string;
|
|
8418
|
+
backgroundAutofilled: string;
|
|
8419
|
+
prependBackground: string;
|
|
8420
|
+
border: string;
|
|
8421
|
+
clearButtonBackground: any;
|
|
8422
|
+
controlBorder: string;
|
|
8423
|
+
controlBorderSelected: string;
|
|
8424
|
+
controlBorderDisabled: string;
|
|
8425
|
+
backgroundDisabled: string;
|
|
8426
|
+
backgroundReadOnly: any;
|
|
8427
|
+
backgroundDropping: string;
|
|
8428
|
+
borderDisabled: string;
|
|
8429
|
+
borderFocused: any;
|
|
8430
|
+
borderInvalid: any;
|
|
8431
|
+
borderHovered: string;
|
|
8432
|
+
borderInvalidHovered: any;
|
|
8433
|
+
borderAutofilled: string;
|
|
8434
|
+
borderAutofilledHovered: string;
|
|
8435
|
+
controlBackgroundUnselected: any;
|
|
8436
|
+
controlBackgroundDisabled: any;
|
|
8437
|
+
colorHasPlaceholder: string;
|
|
8438
|
+
colorDisabled: any;
|
|
8439
|
+
iconDisabled: any;
|
|
8440
|
+
};
|
|
8441
|
+
};
|
|
8442
|
+
|
|
8443
|
+
}
|
|
8444
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
8445
|
+
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
8446
|
+
export const components: _EuiThemeComponents;
|
|
8447
|
+
|
|
8448
|
+
}
|
|
8449
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
8450
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
8451
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
8452
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
8453
|
+
export const EuiThemeAmsterdam: {
|
|
8454
|
+
model: EuiThemeShape;
|
|
8455
|
+
root: EuiThemeShape;
|
|
8456
|
+
key: string;
|
|
8457
|
+
};
|
|
8458
|
+
|
|
8459
|
+
}
|
|
8460
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
8461
|
+
import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
|
|
8462
|
+
export const DEFAULTS: {
|
|
8463
|
+
system: {
|
|
8464
|
+
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
8465
|
+
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
8466
|
+
key: string;
|
|
8467
|
+
};
|
|
8468
|
+
modifications: {};
|
|
8469
|
+
colorMode: "LIGHT";
|
|
8470
|
+
highContrastMode: false;
|
|
8471
|
+
};
|
|
8472
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
8473
|
+
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
8474
|
+
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
8475
|
+
}>>;
|
|
8476
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
8477
|
+
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
8478
|
+
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
8479
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
8480
|
+
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
8481
|
+
|
|
8482
|
+
}
|
|
8483
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
8484
|
+
import React from 'react';
|
|
8485
|
+
import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
8486
|
+
/**
|
|
8487
|
+
* Hook for function components
|
|
8488
|
+
*/
|
|
8489
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
8490
|
+
euiTheme: EuiThemeComputed<T>;
|
|
8491
|
+
colorMode: EuiThemeColorModeStandard;
|
|
8492
|
+
highContrastMode: EuiThemeHighContrastMode;
|
|
8493
|
+
modifications: EuiThemeModifications<T>;
|
|
8494
|
+
}
|
|
8495
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
8496
|
+
/**
|
|
8497
|
+
* HOC for class components
|
|
8498
|
+
*/
|
|
8499
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
8500
|
+
theme: UseEuiTheme<P>;
|
|
8501
|
+
}
|
|
8502
|
+
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
8503
|
+
/**
|
|
8504
|
+
* Render prop alternative for complex class components
|
|
8505
|
+
* Most useful for scenarios where a HOC may interfere with typing
|
|
8506
|
+
*/
|
|
8507
|
+
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
8508
|
+
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
8509
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8510
|
+
/**
|
|
8511
|
+
* Minor syntactical sugar hook for theme CSS variables.
|
|
8512
|
+
* Primarily meant for internal EUI usage.
|
|
8513
|
+
*/
|
|
8514
|
+
export const useEuiThemeCSSVariables: () => {
|
|
8515
|
+
setGlobalCSSVariables: Function;
|
|
8516
|
+
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
8517
|
+
setNearestThemeCSSVariables: Function;
|
|
8518
|
+
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
8519
|
+
};
|
|
8520
|
+
/**
|
|
8521
|
+
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
8522
|
+
* In case of nested providers this returns the value of the nearest provider context.
|
|
8523
|
+
*/
|
|
8524
|
+
export const useIsDarkMode: () => boolean;
|
|
8363
8525
|
|
|
8364
8526
|
}
|
|
8365
|
-
declare module '@elastic/eui/src/services/
|
|
8366
|
-
import {
|
|
8367
|
-
|
|
8527
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
8528
|
+
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
8529
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
8530
|
+
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
8531
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
8368
8532
|
/**
|
|
8369
|
-
*
|
|
8370
|
-
*
|
|
8533
|
+
* Returns the current breakpoint based on window width.
|
|
8534
|
+
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
8535
|
+
* of window resize listeners on the page). Also conditionally called if a
|
|
8536
|
+
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
8371
8537
|
*/
|
|
8372
|
-
export const
|
|
8538
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
8539
|
+
export {};
|
|
8373
8540
|
|
|
8374
8541
|
}
|
|
8375
|
-
declare module '@elastic/eui/src/services/
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
export
|
|
8383
|
-
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
8384
|
-
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
8385
|
-
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
8386
|
-
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
8542
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
8543
|
+
/**
|
|
8544
|
+
* Hook util / syntactical sugar for useContext()
|
|
8545
|
+
*
|
|
8546
|
+
* This hook is in its own separate file to make mocking it
|
|
8547
|
+
* as a testenv easy for Jest unit tests
|
|
8548
|
+
*/
|
|
8549
|
+
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
8387
8550
|
|
|
8388
8551
|
}
|
|
8389
8552
|
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
@@ -11556,7 +11719,7 @@ declare module '@elastic/eui/src/components/form/range/types' {
|
|
|
11556
11719
|
* Allows customizing the underlying [EuiInputPopover](/#/layout/popover#popover-attached-to-input-element),
|
|
11557
11720
|
* except for props controlled by the range component
|
|
11558
11721
|
*/
|
|
11559
|
-
inputPopoverProps?: Omit<EuiInputPopoverProps, 'input' | 'isOpen' | 'closePopover' | 'disableFocusTrap' | 'popoverScreenReaderText' | 'fullWidth'>;
|
|
11722
|
+
inputPopoverProps?: Omit<EuiInputPopoverProps, 'input' | 'isOpen' | 'closePopover' | 'disableFocusTrap' | 'ownFocus' | 'popoverScreenReaderText' | 'fullWidth'>;
|
|
11560
11723
|
}
|
|
11561
11724
|
export type _SharedRangeInputSide = {
|
|
11562
11725
|
/**
|
|
@@ -12945,16 +13108,6 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12945
13108
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
|
|
12946
13109
|
export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
|
|
12947
13110
|
|
|
12948
|
-
}
|
|
12949
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_light' {
|
|
12950
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12951
|
-
export const colorVisLight: _EuiThemeVisColors;
|
|
12952
|
-
|
|
12953
|
-
}
|
|
12954
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_dark' {
|
|
12955
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12956
|
-
export const colorVisDark: _EuiThemeVisColors;
|
|
12957
|
-
|
|
12958
13111
|
}
|
|
12959
13112
|
declare module '@elastic/eui/src/themes/themes' {
|
|
12960
13113
|
import { EuiThemeSystem } from '@elastic/eui/src/services';
|
|
@@ -12964,159 +13117,6 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
12964
13117
|
provider?: EuiThemeSystem;
|
|
12965
13118
|
}
|
|
12966
13119
|
|
|
12967
|
-
}
|
|
12968
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
12969
|
-
/**
|
|
12970
|
-
* These are not actually used, but we map them to ensure token parity.
|
|
12971
|
-
* They are mapped to other vis colors
|
|
12972
|
-
*/
|
|
12973
|
-
export const severityColors: {
|
|
12974
|
-
unknown: string;
|
|
12975
|
-
neutral: string;
|
|
12976
|
-
success: string;
|
|
12977
|
-
warning: string;
|
|
12978
|
-
risk: string;
|
|
12979
|
-
danger: string;
|
|
12980
|
-
};
|
|
12981
|
-
|
|
12982
|
-
}
|
|
12983
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
12984
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
12985
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
12986
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
12987
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
12988
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
12989
|
-
export const text_colors: _EuiThemeTextColors;
|
|
12990
|
-
export const background_colors: _EuiThemeBackgroundColors;
|
|
12991
|
-
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12992
|
-
export const border_colors: _EuiThemeBorderColors;
|
|
12993
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
12994
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
12995
|
-
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
12996
|
-
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12997
|
-
export const dark_border_colors: _EuiThemeBorderColors;
|
|
12998
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
12999
|
-
export const colors: _EuiThemeColors;
|
|
13000
|
-
|
|
13001
|
-
}
|
|
13002
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
13003
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
13004
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
13005
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
13006
|
-
export const animation: _EuiThemeAnimation;
|
|
13007
|
-
|
|
13008
|
-
}
|
|
13009
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
13010
|
-
export { breakpoint } from '@elastic/eui-theme-common';
|
|
13011
|
-
|
|
13012
|
-
}
|
|
13013
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
13014
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
13015
|
-
export const base: _EuiThemeBase;
|
|
13016
|
-
export const size: _EuiThemeSizes;
|
|
13017
|
-
|
|
13018
|
-
}
|
|
13019
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
13020
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
13021
|
-
export const border: _EuiThemeBorder;
|
|
13022
|
-
|
|
13023
|
-
}
|
|
13024
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
13025
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
13026
|
-
export const levels: _EuiThemeLevels;
|
|
13027
|
-
|
|
13028
|
-
}
|
|
13029
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
13030
|
-
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
13031
|
-
export const fontScale: _EuiThemeFontScales;
|
|
13032
|
-
export const fontBase: _EuiThemeFontBase;
|
|
13033
|
-
export const fontWeight: _EuiThemeFontWeights;
|
|
13034
|
-
export const font: _EuiThemeFont;
|
|
13035
|
-
|
|
13036
|
-
}
|
|
13037
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
13038
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
13039
|
-
export const focus: _EuiThemeFocus;
|
|
13040
|
-
|
|
13041
|
-
}
|
|
13042
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
13043
|
-
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
13044
|
-
export const buttons: _EuiThemeButton;
|
|
13045
|
-
|
|
13046
|
-
}
|
|
13047
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
13048
|
-
export const forms: {
|
|
13049
|
-
maxWidth: string;
|
|
13050
|
-
LIGHT: {
|
|
13051
|
-
background: string;
|
|
13052
|
-
backgroundDisabled: string;
|
|
13053
|
-
backgroundReadOnly: any;
|
|
13054
|
-
backgroundFocused: any;
|
|
13055
|
-
backgroundAutofilled: string;
|
|
13056
|
-
backgroundDropping: string;
|
|
13057
|
-
prependBackground: string;
|
|
13058
|
-
border: string;
|
|
13059
|
-
borderDisabled: string;
|
|
13060
|
-
borderFocused: any;
|
|
13061
|
-
borderInvalid: any;
|
|
13062
|
-
borderHovered: string;
|
|
13063
|
-
borderInvalidHovered: any;
|
|
13064
|
-
borderAutofilled: string;
|
|
13065
|
-
borderAutofilledHovered: string;
|
|
13066
|
-
clearButtonBackground: any;
|
|
13067
|
-
controlBorder: string;
|
|
13068
|
-
controlBorderSelected: string;
|
|
13069
|
-
controlBorderDisabled: string;
|
|
13070
|
-
controlBackgroundUnselected: any;
|
|
13071
|
-
controlBackgroundDisabled: any;
|
|
13072
|
-
colorHasPlaceholder: string;
|
|
13073
|
-
colorDisabled: any;
|
|
13074
|
-
iconDisabled: any;
|
|
13075
|
-
};
|
|
13076
|
-
DARK: {
|
|
13077
|
-
background: string;
|
|
13078
|
-
backgroundFocused: string;
|
|
13079
|
-
backgroundAutofilled: string;
|
|
13080
|
-
prependBackground: string;
|
|
13081
|
-
border: string;
|
|
13082
|
-
clearButtonBackground: any;
|
|
13083
|
-
controlBorder: string;
|
|
13084
|
-
controlBorderSelected: string;
|
|
13085
|
-
controlBorderDisabled: string;
|
|
13086
|
-
backgroundDisabled: string;
|
|
13087
|
-
backgroundReadOnly: any;
|
|
13088
|
-
backgroundDropping: string;
|
|
13089
|
-
borderDisabled: string;
|
|
13090
|
-
borderFocused: any;
|
|
13091
|
-
borderInvalid: any;
|
|
13092
|
-
borderHovered: string;
|
|
13093
|
-
borderInvalidHovered: any;
|
|
13094
|
-
borderAutofilled: string;
|
|
13095
|
-
borderAutofilledHovered: string;
|
|
13096
|
-
controlBackgroundUnselected: any;
|
|
13097
|
-
controlBackgroundDisabled: any;
|
|
13098
|
-
colorHasPlaceholder: string;
|
|
13099
|
-
colorDisabled: any;
|
|
13100
|
-
iconDisabled: any;
|
|
13101
|
-
};
|
|
13102
|
-
};
|
|
13103
|
-
|
|
13104
|
-
}
|
|
13105
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
13106
|
-
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
13107
|
-
export const components: _EuiThemeComponents;
|
|
13108
|
-
|
|
13109
|
-
}
|
|
13110
|
-
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
13111
|
-
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
13112
|
-
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
13113
|
-
export const euiThemeAmsterdam: EuiThemeShape;
|
|
13114
|
-
export const EuiThemeAmsterdam: {
|
|
13115
|
-
model: EuiThemeShape;
|
|
13116
|
-
root: EuiThemeShape;
|
|
13117
|
-
key: string;
|
|
13118
|
-
};
|
|
13119
|
-
|
|
13120
13120
|
}
|
|
13121
13121
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
13122
13122
|
export * from '@elastic/eui/src/global_styling/mixins/_shadow';
|
|
@@ -15072,7 +15072,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
15072
15072
|
/**
|
|
15073
15073
|
* Height types
|
|
15074
15074
|
*/
|
|
15075
|
-
getHeightType: (option?: EuiDataGridRowHeightOption) => "
|
|
15075
|
+
getHeightType: (option?: EuiDataGridRowHeightOption) => "default" | "auto" | "lineCount" | "numerical";
|
|
15076
15076
|
/**
|
|
15077
15077
|
* Line count utils
|
|
15078
15078
|
*/
|
|
@@ -20822,6 +20822,7 @@ declare module '@elastic/eui/src/components/modal/modal.styles' {
|
|
|
20822
20822
|
}
|
|
20823
20823
|
declare module '@elastic/eui/src/components/modal/modal' {
|
|
20824
20824
|
import React, { FunctionComponent, ReactNode, HTMLAttributes } from 'react';
|
|
20825
|
+
import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
20825
20826
|
export interface EuiModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
20826
20827
|
className?: string;
|
|
20827
20828
|
/**
|
|
@@ -20847,6 +20848,11 @@ declare module '@elastic/eui/src/components/modal/modal' {
|
|
|
20847
20848
|
* or need a user's attention should use "alertdialog".
|
|
20848
20849
|
*/
|
|
20849
20850
|
role?: 'dialog' | 'alertdialog';
|
|
20851
|
+
/**
|
|
20852
|
+
* Object of props passed to EuiFocusTrap.
|
|
20853
|
+
* `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
|
|
20854
|
+
*/
|
|
20855
|
+
focusTrapProps?: Pick<EuiFocusTrapProps, 'returnFocus'>;
|
|
20850
20856
|
}
|
|
20851
20857
|
export const EuiModal: FunctionComponent<EuiModalProps>;
|
|
20852
20858
|
|
|
@@ -22295,7 +22301,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
22295
22301
|
import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
|
|
22296
22302
|
export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
|
|
22297
22303
|
/**
|
|
22298
|
-
* Provide a specific EuiTheme; Defaults to
|
|
22304
|
+
* Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
|
|
22299
22305
|
* Pass `null` to remove all theming including global reset
|
|
22300
22306
|
*/
|
|
22301
22307
|
theme?: EuiThemeSystem | null;
|
|
@@ -23557,13 +23563,13 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23557
23563
|
slot?: string | undefined;
|
|
23558
23564
|
style?: CSSProperties | undefined;
|
|
23559
23565
|
title?: string | undefined;
|
|
23566
|
+
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23560
23567
|
width: number;
|
|
23561
23568
|
color?: string | undefined;
|
|
23562
23569
|
content?: string | undefined;
|
|
23563
|
-
hidden?: boolean | undefined;
|
|
23564
|
-
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23565
23570
|
translate?: "yes" | "no" | undefined;
|
|
23566
23571
|
property?: string | undefined;
|
|
23572
|
+
hidden?: boolean | undefined;
|
|
23567
23573
|
className?: string | undefined;
|
|
23568
23574
|
defaultChecked?: boolean | undefined;
|
|
23569
23575
|
defaultValue?: string | number | readonly string[] | undefined;
|