@elastic/eui 101.3.0-classic.0 → 101.3.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/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 +339 -339
- 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/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/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 +1 -1
- 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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
import { EuiThemeProvider } from '../../services';
|
|
12
12
|
import { emitEuiProviderWarning } from '../../services/theme/warning';
|
|
13
13
|
import { cache as fallbackCache } from '../../services/emotion/css';
|
|
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
|
|
|
26
26
|
var _ref$cache = _ref.cache,
|
|
27
27
|
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
28
28
|
_ref$theme = _ref.theme,
|
|
29
|
-
theme = _ref$theme === void 0 ?
|
|
29
|
+
theme = _ref$theme === void 0 ? EuiThemeBorealis : _ref$theme,
|
|
30
30
|
_ref$globalStyles = _ref.globalStyles,
|
|
31
31
|
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
32
32
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
10
|
-
import { colorVis } from '
|
|
10
|
+
import { colorVis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
|
|
12
12
|
// initialsetup of Vis color storage with default colors
|
|
13
13
|
export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeBorealis,
|
|
14
14
|
modifications: {},
|
|
15
15
|
colorMode: DEFAULT_COLOR_MODE,
|
|
16
16
|
highContrastMode: false
|
package/eui.d.ts
CHANGED
|
@@ -167,13 +167,115 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
167
167
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
168
168
|
} & ButtonHTMLAttributes<HTMLButtonElement> & P;
|
|
169
169
|
|
|
170
|
+
}
|
|
171
|
+
declare module '@elastic/eui/src/services/theme/types' {
|
|
172
|
+
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';
|
|
173
|
+
|
|
170
174
|
}
|
|
171
175
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
172
176
|
export { DEFAULT_COLOR_MODE, isInverseColorMode, getColorMode, getOn, setOn, Computed, computed, getComputed, buildTheme, mergeDeep, } from '@elastic/eui-theme-common';
|
|
173
177
|
|
|
174
178
|
}
|
|
175
|
-
declare module '@elastic/eui/src/services/theme/
|
|
176
|
-
|
|
179
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
180
|
+
import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
|
|
181
|
+
export const DEFAULTS: {
|
|
182
|
+
system: {
|
|
183
|
+
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
184
|
+
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
185
|
+
key: string;
|
|
186
|
+
};
|
|
187
|
+
modifications: {};
|
|
188
|
+
colorMode: "LIGHT";
|
|
189
|
+
highContrastMode: false;
|
|
190
|
+
};
|
|
191
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
192
|
+
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>>;
|
|
193
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
194
|
+
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
195
|
+
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
196
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
197
|
+
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
declare module '@elastic/eui/src/services/theme/warning' {
|
|
201
|
+
type LEVELS = 'log' | 'warn' | 'error'; type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
202
|
+
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
203
|
+
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
204
|
+
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
205
|
+
export {};
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
209
|
+
import React from 'react';
|
|
210
|
+
import type { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
211
|
+
/**
|
|
212
|
+
* Hook for function components
|
|
213
|
+
*/
|
|
214
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
215
|
+
euiTheme: EuiThemeComputed<T>;
|
|
216
|
+
colorMode: EuiThemeColorModeStandard;
|
|
217
|
+
highContrastMode: EuiThemeHighContrastMode;
|
|
218
|
+
modifications: EuiThemeModifications<T>;
|
|
219
|
+
}
|
|
220
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
221
|
+
/**
|
|
222
|
+
* HOC for class components
|
|
223
|
+
*/
|
|
224
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
225
|
+
theme: UseEuiTheme<P>;
|
|
226
|
+
}
|
|
227
|
+
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">>>;
|
|
228
|
+
/**
|
|
229
|
+
* Render prop alternative for complex class components
|
|
230
|
+
* Most useful for scenarios where a HOC may interfere with typing
|
|
231
|
+
*/
|
|
232
|
+
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
233
|
+
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
234
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
235
|
+
/**
|
|
236
|
+
* Minor syntactical sugar hook for theme CSS variables.
|
|
237
|
+
* Primarily meant for internal EUI usage.
|
|
238
|
+
*/
|
|
239
|
+
export const useEuiThemeCSSVariables: () => {
|
|
240
|
+
setGlobalCSSVariables: Function;
|
|
241
|
+
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
242
|
+
setNearestThemeCSSVariables: Function;
|
|
243
|
+
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
}
|
|
247
|
+
declare module '@elastic/eui/src/services/throttle' {
|
|
248
|
+
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
249
|
+
|
|
250
|
+
}
|
|
251
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
252
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
253
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
254
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
255
|
+
|
|
256
|
+
}
|
|
257
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
258
|
+
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
259
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
260
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
261
|
+
/**
|
|
262
|
+
* Returns the current breakpoint based on window width.
|
|
263
|
+
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
264
|
+
* of window resize listeners on the page). Also conditionally called if a
|
|
265
|
+
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
266
|
+
*/
|
|
267
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
268
|
+
export {};
|
|
269
|
+
|
|
270
|
+
}
|
|
271
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
272
|
+
/**
|
|
273
|
+
* Hook util / syntactical sugar for useContext()
|
|
274
|
+
*
|
|
275
|
+
* This hook is in its own separate file to make mocking it
|
|
276
|
+
* as a testenv easy for Jest unit tests
|
|
277
|
+
*/
|
|
278
|
+
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
177
279
|
|
|
178
280
|
}
|
|
179
281
|
declare module '@elastic/eui/src/services/emotion/clone_element' {
|
|
@@ -271,10 +373,6 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
|
|
|
271
373
|
*/
|
|
272
374
|
export const useDeepEqual: <T = any[] | Record<string, any> | undefined>(object: T) => T;
|
|
273
375
|
|
|
274
|
-
}
|
|
275
|
-
declare module '@elastic/eui/src/services/throttle' {
|
|
276
|
-
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
277
|
-
|
|
278
376
|
}
|
|
279
377
|
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
280
378
|
import { MouseEvent, TouchEvent } from 'react';
|
|
@@ -297,14 +395,6 @@ declare module '@elastic/eui/src/services/hooks' {
|
|
|
297
395
|
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
298
396
|
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
299
397
|
|
|
300
|
-
}
|
|
301
|
-
declare module '@elastic/eui/src/services/theme/warning' {
|
|
302
|
-
type LEVELS = 'log' | 'warn' | 'error'; type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
303
|
-
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
304
|
-
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
305
|
-
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
306
|
-
export {};
|
|
307
|
-
|
|
308
398
|
}
|
|
309
399
|
declare module '@elastic/eui/src/services/theme/style_memoization' {
|
|
310
400
|
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
@@ -496,11 +586,6 @@ declare module '@elastic/eui/src/services/color/color_palette' {
|
|
|
496
586
|
*/
|
|
497
587
|
categorical?: boolean): string[];
|
|
498
588
|
|
|
499
|
-
}
|
|
500
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
|
|
501
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
502
|
-
export const colorVis: _EuiThemeVisColors;
|
|
503
|
-
|
|
504
589
|
}
|
|
505
590
|
declare module '@elastic/eui/src/services/color/vis_color_store' {
|
|
506
591
|
import { _EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
@@ -1021,7 +1106,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1021
1106
|
*/
|
|
1022
1107
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1023
1108
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1024
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "bottom" | "top" | "horizontal" | "vertical" | undefined) => Record<"s" | "
|
|
1109
|
+
export const useEuiPaddingCSS: (side?: "left" | "right" | "bottom" | "top" | "horizontal" | "vertical" | undefined) => Record<"s" | "xs" | "m" | "l" | "xl" | "none", SerializedStyles>;
|
|
1025
1110
|
|
|
1026
1111
|
}
|
|
1027
1112
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1071,12 +1156,6 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1071
1156
|
*/
|
|
1072
1157
|
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1073
1158
|
|
|
1074
|
-
}
|
|
1075
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1076
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1077
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1078
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1079
|
-
|
|
1080
1159
|
}
|
|
1081
1160
|
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
1082
1161
|
export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
|
|
@@ -2863,7 +2942,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2863
2942
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2864
2943
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2865
2944
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2866
|
-
export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "code" | "menu" | "section" | "filter" | "image" | "stop" | "key" | "
|
|
2945
|
+
export const TYPES: ("string" | "number" | "function" | "search" | "link" | "at" | "article" | "code" | "menu" | "section" | "filter" | "image" | "stop" | "key" | "error" | "warning" | "scale" | "color" | "pause" | "play" | "offline" | "online" | "storage" | "copy" | "cut" | "temperature" | "wordWrap" | "grid" | "invert" | "empty" | "alert" | "document" | "list" | "email" | "move" | "grab" | "help" | "spaces" | "dot" | "push" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "discuss" | "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" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "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" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "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" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "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" | "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" | "questionInCircle" | "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" | "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")[];
|
|
2867
2946
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2868
2947
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2869
2948
|
export type IconColor = string | NamedColor;
|
|
@@ -2906,7 +2985,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2906
2985
|
isLoading: boolean;
|
|
2907
2986
|
neededLoading: boolean;
|
|
2908
2987
|
}
|
|
2909
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "code" | "menu" | "section" | "filter" | "image" | "stop" | "key" | "
|
|
2988
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "at" | "article" | "code" | "menu" | "section" | "filter" | "image" | "stop" | "key" | "error" | "warning" | "scale" | "color" | "pause" | "play" | "offline" | "online" | "storage" | "copy" | "cut" | "temperature" | "wordWrap" | "grid" | "invert" | "empty" | "alert" | "document" | "list" | "email" | "move" | "grab" | "help" | "spaces" | "dot" | "push" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "discuss" | "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" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "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" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "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" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "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" | "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" | "questionInCircle" | "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" | "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" | undefined) => void;
|
|
2910
2989
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
2911
2990
|
[iconType: string]: React.ComponentType<{}>;
|
|
2912
2991
|
}) => void;
|
|
@@ -4552,7 +4631,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
4552
4631
|
export const EuiFlexGroup: (<TComponent extends React.ElementType = "div", TComponentRef = React.ReactElement<any, TComponent>>(props: {
|
|
4553
4632
|
children?: React.ReactNode;
|
|
4554
4633
|
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
4555
|
-
alignItems?: "center" | "
|
|
4634
|
+
alignItems?: "center" | "baseline" | "stretch" | "flexStart" | "flexEnd" | undefined;
|
|
4556
4635
|
/**
|
|
4557
4636
|
* Customize the component type that is rendered.
|
|
4558
4637
|
*
|
|
@@ -4567,7 +4646,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
4567
4646
|
*/
|
|
4568
4647
|
component?: TComponent | undefined;
|
|
4569
4648
|
direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
|
|
4570
|
-
gutterSize?: "s" | "
|
|
4649
|
+
gutterSize?: "s" | "xs" | "m" | "l" | "xl" | "none" | undefined;
|
|
4571
4650
|
justifyContent?: "center" | "flexStart" | "flexEnd" | "spaceBetween" | "spaceAround" | "spaceEvenly" | undefined;
|
|
4572
4651
|
responsive?: boolean | undefined;
|
|
4573
4652
|
wrap?: boolean | undefined;
|
|
@@ -4702,7 +4781,7 @@ declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
|
4702
4781
|
export const EuiFlexItem: (<TComponent extends React.ElementType, TComponentRef = React.ReactElement<any, TComponent>>(props: {
|
|
4703
4782
|
children?: React.ReactNode;
|
|
4704
4783
|
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
4705
|
-
grow?: boolean | 0 |
|
|
4784
|
+
grow?: boolean | 0 | 2 | 1 | 3 | 8 | 6 | 4 | 5 | 7 | 9 | 10 | null | undefined;
|
|
4706
4785
|
/**
|
|
4707
4786
|
* Customize the component type that is rendered.
|
|
4708
4787
|
*
|
|
@@ -5678,7 +5757,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5678
5757
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
5679
5758
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
5680
5759
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5681
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
5760
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
5682
5761
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
5683
5762
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
5684
5763
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
@@ -6783,98 +6862,6 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
|
6783
6862
|
import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
|
|
6784
6863
|
export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
|
|
6785
6864
|
|
|
6786
|
-
}
|
|
6787
|
-
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6788
|
-
export const wcagContrastMin = 4.5;
|
|
6789
|
-
/**
|
|
6790
|
-
* Creates a new color that meets or exceeds WCAG level AA
|
|
6791
|
-
* @param foreground - Color to manipulate
|
|
6792
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6793
|
-
* *
|
|
6794
|
-
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6795
|
-
*/
|
|
6796
|
-
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6797
|
-
[key: string]: any;
|
|
6798
|
-
colors: {
|
|
6799
|
-
body: string;
|
|
6800
|
-
};
|
|
6801
|
-
}) => string;
|
|
6802
|
-
/**
|
|
6803
|
-
* Creates a new color with increased contrast
|
|
6804
|
-
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6805
|
-
* @param foreground - Color to manipulate
|
|
6806
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6807
|
-
* *
|
|
6808
|
-
* @param themeOrBackground - Color to use as the contrast basis
|
|
6809
|
-
*/
|
|
6810
|
-
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6811
|
-
[key: string]: any;
|
|
6812
|
-
colors: {
|
|
6813
|
-
body: string;
|
|
6814
|
-
};
|
|
6815
|
-
}) => string;
|
|
6816
|
-
|
|
6817
|
-
}
|
|
6818
|
-
declare module '@elastic/eui/src/services/color' {
|
|
6819
|
-
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6820
|
-
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6821
|
-
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6822
|
-
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6823
|
-
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6824
|
-
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6825
|
-
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6826
|
-
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6827
|
-
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6828
|
-
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6829
|
-
export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
|
|
6830
|
-
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6831
|
-
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray, type EuiPaletteColorBlindProps, type EuiPaletteRotationProps, type EuiPaletteCommonProps, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6832
|
-
export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
|
|
6833
|
-
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6834
|
-
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6835
|
-
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6836
|
-
export * from '@elastic/eui/src/services/color/contrast';
|
|
6837
|
-
|
|
6838
|
-
}
|
|
6839
|
-
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6840
|
-
import React, { PropsWithChildren, HTMLAttributes } from 'react';
|
|
6841
|
-
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
6842
|
-
import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6843
|
-
export interface EuiThemeProviderProps<T> extends PropsWithChildren {
|
|
6844
|
-
theme?: EuiThemeSystem<T>;
|
|
6845
|
-
colorMode?: EuiThemeColorMode;
|
|
6846
|
-
highContrastMode?: EuiThemeHighContrastModeProp;
|
|
6847
|
-
modify?: EuiThemeModifications<T>;
|
|
6848
|
-
children: any;
|
|
6849
|
-
/**
|
|
6850
|
-
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
6851
|
-
* set the default text `color` that all nested children will inherit.
|
|
6852
|
-
*
|
|
6853
|
-
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
6854
|
-
* This requires a **single** child component that the correct color class can be passed to.
|
|
6855
|
-
*
|
|
6856
|
-
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
6857
|
-
* the default inherited text color will be set on the page `body`.
|
|
6858
|
-
*/
|
|
6859
|
-
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
6860
|
-
cloneElement?: boolean;
|
|
6861
|
-
};
|
|
6862
|
-
}
|
|
6863
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
6864
|
-
|
|
6865
|
-
}
|
|
6866
|
-
declare module '@elastic/eui/src/services/theme' {
|
|
6867
|
-
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6868
|
-
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6869
|
-
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, } from '@elastic/eui/src/services/theme/hooks';
|
|
6870
|
-
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6871
|
-
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6872
|
-
export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
|
|
6873
|
-
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
6874
|
-
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6875
|
-
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6876
|
-
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
6877
|
-
|
|
6878
6865
|
}
|
|
6879
6866
|
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6880
6867
|
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
@@ -6928,223 +6915,109 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6928
6915
|
*/
|
|
6929
6916
|
export const lightness: (color: string) => number;
|
|
6930
6917
|
/**
|
|
6931
|
-
* Returns the darken value of a color. 0-100
|
|
6932
|
-
* @param color - Color to manipulate
|
|
6933
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6934
|
-
*/
|
|
6935
|
-
export const darken: (color: string, amount: number) => string;
|
|
6936
|
-
/**
|
|
6937
|
-
* Returns the brighten value of a color. 0-100
|
|
6938
|
-
* @param color - Color to manipulate
|
|
6939
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6940
|
-
*/
|
|
6941
|
-
export const brighten: (color: string, amount: number) => string;
|
|
6942
|
-
|
|
6943
|
-
}
|
|
6944
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
6945
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
6946
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
6947
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
6948
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
6949
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
6950
|
-
export const text_colors: _EuiThemeTextColors;
|
|
6951
|
-
export const background_colors: _EuiThemeBackgroundColors;
|
|
6952
|
-
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
6953
|
-
export const border_colors: _EuiThemeBorderColors;
|
|
6954
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
6955
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
6956
|
-
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
6957
|
-
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
6958
|
-
export const dark_border_colors: _EuiThemeBorderColors;
|
|
6959
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
6960
|
-
export const colors: _EuiThemeColors;
|
|
6961
|
-
|
|
6962
|
-
}
|
|
6963
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
6964
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
6965
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
6966
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6967
|
-
export const animation: _EuiThemeAnimation;
|
|
6968
|
-
|
|
6969
|
-
}
|
|
6970
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
6971
|
-
export { breakpoint } from '@elastic/eui-theme-common';
|
|
6972
|
-
|
|
6973
|
-
}
|
|
6974
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
6975
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
6976
|
-
export const base: _EuiThemeBase;
|
|
6977
|
-
export const size: _EuiThemeSizes;
|
|
6978
|
-
|
|
6979
|
-
}
|
|
6980
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
6981
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
6982
|
-
export const border: _EuiThemeBorder;
|
|
6983
|
-
|
|
6984
|
-
}
|
|
6985
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
6986
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
6987
|
-
export const levels: _EuiThemeLevels;
|
|
6988
|
-
|
|
6989
|
-
}
|
|
6990
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
6991
|
-
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
6992
|
-
export const fontScale: _EuiThemeFontScales;
|
|
6993
|
-
export const fontBase: _EuiThemeFontBase;
|
|
6994
|
-
export const fontWeight: _EuiThemeFontWeights;
|
|
6995
|
-
export const font: _EuiThemeFont;
|
|
6996
|
-
|
|
6997
|
-
}
|
|
6998
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
6999
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
7000
|
-
export const focus: _EuiThemeFocus;
|
|
7001
|
-
|
|
7002
|
-
}
|
|
7003
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
7004
|
-
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
7005
|
-
export const buttons: _EuiThemeButton;
|
|
7006
|
-
|
|
7007
|
-
}
|
|
7008
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
7009
|
-
export const forms: {
|
|
7010
|
-
maxWidth: string;
|
|
7011
|
-
LIGHT: {
|
|
7012
|
-
background: string;
|
|
7013
|
-
backgroundDisabled: string;
|
|
7014
|
-
backgroundReadOnly: any;
|
|
7015
|
-
backgroundFocused: any;
|
|
7016
|
-
backgroundAutofilled: string;
|
|
7017
|
-
prependBackground: string;
|
|
7018
|
-
border: string;
|
|
7019
|
-
borderAutofilled: string;
|
|
7020
|
-
controlBorder: string;
|
|
7021
|
-
controlBorderSelected: string;
|
|
7022
|
-
controlBorderDisabled: string;
|
|
7023
|
-
controlBackgroundUnselected: any;
|
|
7024
|
-
controlBackgroundDisabled: any;
|
|
7025
|
-
colorHasPlaceholder: string;
|
|
7026
|
-
colorDisabled: any;
|
|
7027
|
-
iconDisabled: any;
|
|
7028
|
-
};
|
|
7029
|
-
DARK: {
|
|
7030
|
-
background: string;
|
|
7031
|
-
backgroundFocused: string;
|
|
7032
|
-
backgroundAutofilled: string;
|
|
7033
|
-
prependBackground: string;
|
|
7034
|
-
border: string;
|
|
7035
|
-
controlBorder: string;
|
|
7036
|
-
controlBorderSelected: string;
|
|
7037
|
-
controlBorderDisabled: string;
|
|
7038
|
-
backgroundDisabled: string;
|
|
7039
|
-
backgroundReadOnly: any;
|
|
7040
|
-
borderAutofilled: string;
|
|
7041
|
-
controlBackgroundUnselected: any;
|
|
7042
|
-
controlBackgroundDisabled: any;
|
|
7043
|
-
colorHasPlaceholder: string;
|
|
7044
|
-
colorDisabled: any;
|
|
7045
|
-
iconDisabled: any;
|
|
7046
|
-
};
|
|
7047
|
-
};
|
|
7048
|
-
|
|
7049
|
-
}
|
|
7050
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
7051
|
-
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
7052
|
-
export const components: _EuiThemeComponents;
|
|
7053
|
-
|
|
7054
|
-
}
|
|
7055
|
-
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
7056
|
-
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
7057
|
-
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
7058
|
-
export const euiThemeAmsterdam: EuiThemeShape;
|
|
7059
|
-
export const EuiThemeAmsterdam: {
|
|
7060
|
-
model: EuiThemeShape;
|
|
7061
|
-
root: EuiThemeShape;
|
|
7062
|
-
key: string;
|
|
7063
|
-
};
|
|
7064
|
-
|
|
7065
|
-
}
|
|
7066
|
-
declare module '@elastic/eui/src/services/theme/context' {
|
|
7067
|
-
import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
|
|
7068
|
-
export const DEFAULTS: {
|
|
7069
|
-
system: {
|
|
7070
|
-
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7071
|
-
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7072
|
-
key: string;
|
|
7073
|
-
};
|
|
7074
|
-
modifications: {};
|
|
7075
|
-
colorMode: "LIGHT";
|
|
7076
|
-
highContrastMode: false;
|
|
7077
|
-
};
|
|
7078
|
-
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
7079
|
-
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>>;
|
|
7080
|
-
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
7081
|
-
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
7082
|
-
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
7083
|
-
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
7084
|
-
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
7085
|
-
|
|
7086
|
-
}
|
|
7087
|
-
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
7088
|
-
import React from 'react';
|
|
7089
|
-
import type { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
7090
|
-
/**
|
|
7091
|
-
* Hook for function components
|
|
7092
|
-
*/
|
|
7093
|
-
export interface UseEuiTheme<T extends {} = {}> {
|
|
7094
|
-
euiTheme: EuiThemeComputed<T>;
|
|
7095
|
-
colorMode: EuiThemeColorModeStandard;
|
|
7096
|
-
highContrastMode: EuiThemeHighContrastMode;
|
|
7097
|
-
modifications: EuiThemeModifications<T>;
|
|
7098
|
-
}
|
|
7099
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
7100
|
-
/**
|
|
7101
|
-
* HOC for class components
|
|
7102
|
-
*/
|
|
7103
|
-
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
7104
|
-
theme: UseEuiTheme<P>;
|
|
7105
|
-
}
|
|
7106
|
-
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">>>;
|
|
7107
|
-
/**
|
|
7108
|
-
* Render prop alternative for complex class components
|
|
7109
|
-
* Most useful for scenarios where a HOC may interfere with typing
|
|
6918
|
+
* Returns the darken value of a color. 0-100
|
|
6919
|
+
* @param color - Color to manipulate
|
|
6920
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7110
6921
|
*/
|
|
7111
|
-
export const
|
|
7112
|
-
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
7113
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6922
|
+
export const darken: (color: string, amount: number) => string;
|
|
7114
6923
|
/**
|
|
7115
|
-
*
|
|
7116
|
-
*
|
|
6924
|
+
* Returns the brighten value of a color. 0-100
|
|
6925
|
+
* @param color - Color to manipulate
|
|
6926
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7117
6927
|
*/
|
|
7118
|
-
export const
|
|
7119
|
-
setGlobalCSSVariables: Function;
|
|
7120
|
-
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7121
|
-
setNearestThemeCSSVariables: Function;
|
|
7122
|
-
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7123
|
-
};
|
|
6928
|
+
export const brighten: (color: string, amount: number) => string;
|
|
7124
6929
|
|
|
7125
6930
|
}
|
|
7126
|
-
declare module '@elastic/eui/src/services/
|
|
7127
|
-
|
|
7128
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
7129
|
-
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
6931
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6932
|
+
export const wcagContrastMin = 4.5;
|
|
7130
6933
|
/**
|
|
7131
|
-
*
|
|
7132
|
-
*
|
|
7133
|
-
*
|
|
7134
|
-
*
|
|
6934
|
+
* Creates a new color that meets or exceeds WCAG level AA
|
|
6935
|
+
* @param foreground - Color to manipulate
|
|
6936
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6937
|
+
* *
|
|
6938
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
7135
6939
|
*/
|
|
7136
|
-
export const
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
6940
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6941
|
+
[key: string]: any;
|
|
6942
|
+
colors: {
|
|
6943
|
+
body: string;
|
|
6944
|
+
};
|
|
6945
|
+
}) => string;
|
|
7141
6946
|
/**
|
|
7142
|
-
*
|
|
7143
|
-
*
|
|
7144
|
-
*
|
|
7145
|
-
*
|
|
6947
|
+
* Creates a new color with increased contrast
|
|
6948
|
+
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6949
|
+
* @param foreground - Color to manipulate
|
|
6950
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6951
|
+
* *
|
|
6952
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
7146
6953
|
*/
|
|
7147
|
-
export const
|
|
6954
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6955
|
+
[key: string]: any;
|
|
6956
|
+
colors: {
|
|
6957
|
+
body: string;
|
|
6958
|
+
};
|
|
6959
|
+
}) => string;
|
|
6960
|
+
|
|
6961
|
+
}
|
|
6962
|
+
declare module '@elastic/eui/src/services/color' {
|
|
6963
|
+
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6964
|
+
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6965
|
+
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6966
|
+
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6967
|
+
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6968
|
+
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6969
|
+
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6970
|
+
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6971
|
+
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6972
|
+
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6973
|
+
export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
|
|
6974
|
+
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6975
|
+
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray, type EuiPaletteColorBlindProps, type EuiPaletteRotationProps, type EuiPaletteCommonProps, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6976
|
+
export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
|
|
6977
|
+
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6978
|
+
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6979
|
+
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6980
|
+
export * from '@elastic/eui/src/services/color/contrast';
|
|
6981
|
+
|
|
6982
|
+
}
|
|
6983
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6984
|
+
import React, { PropsWithChildren, HTMLAttributes } from 'react';
|
|
6985
|
+
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
6986
|
+
import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6987
|
+
export interface EuiThemeProviderProps<T> extends PropsWithChildren {
|
|
6988
|
+
theme?: EuiThemeSystem<T>;
|
|
6989
|
+
colorMode?: EuiThemeColorMode;
|
|
6990
|
+
highContrastMode?: EuiThemeHighContrastModeProp;
|
|
6991
|
+
modify?: EuiThemeModifications<T>;
|
|
6992
|
+
children: any;
|
|
6993
|
+
/**
|
|
6994
|
+
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
6995
|
+
* set the default text `color` that all nested children will inherit.
|
|
6996
|
+
*
|
|
6997
|
+
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
6998
|
+
* This requires a **single** child component that the correct color class can be passed to.
|
|
6999
|
+
*
|
|
7000
|
+
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
7001
|
+
* the default inherited text color will be set on the page `body`.
|
|
7002
|
+
*/
|
|
7003
|
+
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7004
|
+
cloneElement?: boolean;
|
|
7005
|
+
};
|
|
7006
|
+
}
|
|
7007
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
7008
|
+
|
|
7009
|
+
}
|
|
7010
|
+
declare module '@elastic/eui/src/services/theme' {
|
|
7011
|
+
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
7012
|
+
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
7013
|
+
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, } from '@elastic/eui/src/services/theme/hooks';
|
|
7014
|
+
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
7015
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
7016
|
+
export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
|
|
7017
|
+
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
7018
|
+
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7019
|
+
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7020
|
+
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
7148
7021
|
|
|
7149
7022
|
}
|
|
7150
7023
|
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
@@ -12525,6 +12398,11 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12525
12398
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
|
|
12526
12399
|
export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
|
|
12527
12400
|
|
|
12401
|
+
}
|
|
12402
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
|
|
12403
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12404
|
+
export const colorVis: _EuiThemeVisColors;
|
|
12405
|
+
|
|
12528
12406
|
}
|
|
12529
12407
|
declare module '@elastic/eui/src/themes/themes' {
|
|
12530
12408
|
import { EuiThemeSystem } from '@elastic/eui/src/services';
|
|
@@ -12534,6 +12412,128 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
12534
12412
|
provider?: EuiThemeSystem;
|
|
12535
12413
|
}
|
|
12536
12414
|
|
|
12415
|
+
}
|
|
12416
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
12417
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
12418
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
12419
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
12420
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
12421
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
12422
|
+
export const text_colors: _EuiThemeTextColors;
|
|
12423
|
+
export const background_colors: _EuiThemeBackgroundColors;
|
|
12424
|
+
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12425
|
+
export const border_colors: _EuiThemeBorderColors;
|
|
12426
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
12427
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
12428
|
+
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
12429
|
+
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12430
|
+
export const dark_border_colors: _EuiThemeBorderColors;
|
|
12431
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
12432
|
+
export const colors: _EuiThemeColors;
|
|
12433
|
+
|
|
12434
|
+
}
|
|
12435
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
12436
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
12437
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
12438
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
12439
|
+
export const animation: _EuiThemeAnimation;
|
|
12440
|
+
|
|
12441
|
+
}
|
|
12442
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
12443
|
+
export { breakpoint } from '@elastic/eui-theme-common';
|
|
12444
|
+
|
|
12445
|
+
}
|
|
12446
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
12447
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
12448
|
+
export const base: _EuiThemeBase;
|
|
12449
|
+
export const size: _EuiThemeSizes;
|
|
12450
|
+
|
|
12451
|
+
}
|
|
12452
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
12453
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
12454
|
+
export const border: _EuiThemeBorder;
|
|
12455
|
+
|
|
12456
|
+
}
|
|
12457
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
12458
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
12459
|
+
export const levels: _EuiThemeLevels;
|
|
12460
|
+
|
|
12461
|
+
}
|
|
12462
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
12463
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
12464
|
+
export const fontScale: _EuiThemeFontScales;
|
|
12465
|
+
export const fontBase: _EuiThemeFontBase;
|
|
12466
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
12467
|
+
export const font: _EuiThemeFont;
|
|
12468
|
+
|
|
12469
|
+
}
|
|
12470
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
12471
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
12472
|
+
export const focus: _EuiThemeFocus;
|
|
12473
|
+
|
|
12474
|
+
}
|
|
12475
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
12476
|
+
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
12477
|
+
export const buttons: _EuiThemeButton;
|
|
12478
|
+
|
|
12479
|
+
}
|
|
12480
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
12481
|
+
export const forms: {
|
|
12482
|
+
maxWidth: string;
|
|
12483
|
+
LIGHT: {
|
|
12484
|
+
background: string;
|
|
12485
|
+
backgroundDisabled: string;
|
|
12486
|
+
backgroundReadOnly: any;
|
|
12487
|
+
backgroundFocused: any;
|
|
12488
|
+
backgroundAutofilled: string;
|
|
12489
|
+
prependBackground: string;
|
|
12490
|
+
border: string;
|
|
12491
|
+
borderAutofilled: string;
|
|
12492
|
+
controlBorder: string;
|
|
12493
|
+
controlBorderSelected: string;
|
|
12494
|
+
controlBorderDisabled: string;
|
|
12495
|
+
controlBackgroundUnselected: any;
|
|
12496
|
+
controlBackgroundDisabled: any;
|
|
12497
|
+
colorHasPlaceholder: string;
|
|
12498
|
+
colorDisabled: any;
|
|
12499
|
+
iconDisabled: any;
|
|
12500
|
+
};
|
|
12501
|
+
DARK: {
|
|
12502
|
+
background: string;
|
|
12503
|
+
backgroundFocused: string;
|
|
12504
|
+
backgroundAutofilled: string;
|
|
12505
|
+
prependBackground: string;
|
|
12506
|
+
border: string;
|
|
12507
|
+
controlBorder: string;
|
|
12508
|
+
controlBorderSelected: string;
|
|
12509
|
+
controlBorderDisabled: string;
|
|
12510
|
+
backgroundDisabled: string;
|
|
12511
|
+
backgroundReadOnly: any;
|
|
12512
|
+
borderAutofilled: string;
|
|
12513
|
+
controlBackgroundUnselected: any;
|
|
12514
|
+
controlBackgroundDisabled: any;
|
|
12515
|
+
colorHasPlaceholder: string;
|
|
12516
|
+
colorDisabled: any;
|
|
12517
|
+
iconDisabled: any;
|
|
12518
|
+
};
|
|
12519
|
+
};
|
|
12520
|
+
|
|
12521
|
+
}
|
|
12522
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
12523
|
+
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
12524
|
+
export const components: _EuiThemeComponents;
|
|
12525
|
+
|
|
12526
|
+
}
|
|
12527
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
12528
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
12529
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
12530
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
12531
|
+
export const EuiThemeAmsterdam: {
|
|
12532
|
+
model: EuiThemeShape;
|
|
12533
|
+
root: EuiThemeShape;
|
|
12534
|
+
key: string;
|
|
12535
|
+
};
|
|
12536
|
+
|
|
12537
12537
|
}
|
|
12538
12538
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
12539
12539
|
export * from '@elastic/eui/src/global_styling/mixins/_shadow';
|
|
@@ -14440,7 +14440,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14440
14440
|
/**
|
|
14441
14441
|
* Height types
|
|
14442
14442
|
*/
|
|
14443
|
-
getHeightType: (option?: EuiDataGridRowHeightOption | undefined) => "
|
|
14443
|
+
getHeightType: (option?: EuiDataGridRowHeightOption | undefined) => "auto" | "default" | "lineCount" | "numerical";
|
|
14444
14444
|
/**
|
|
14445
14445
|
* Line count utils
|
|
14446
14446
|
*/
|
|
@@ -18239,7 +18239,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18239
18239
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_interval' {
|
|
18240
18240
|
export const usePrettyInterval: (isPaused: boolean, intervalInMs: number, options?: {
|
|
18241
18241
|
shortHand?: boolean | undefined;
|
|
18242
|
-
unit?: "s" | "
|
|
18242
|
+
unit?: "s" | "m" | "h" | "d" | undefined;
|
|
18243
18243
|
} | undefined) => string;
|
|
18244
18244
|
|
|
18245
18245
|
}
|
|
@@ -21531,7 +21531,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
21531
21531
|
import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
|
|
21532
21532
|
export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
|
|
21533
21533
|
/**
|
|
21534
|
-
* Provide a specific EuiTheme; Defaults to
|
|
21534
|
+
* Provide a specific EuiTheme; Defaults to EuiThemeBorealis;
|
|
21535
21535
|
* Pass `null` to remove all theming including global reset
|
|
21536
21536
|
*/
|
|
21537
21537
|
theme?: EuiThemeSystem | null;
|
|
@@ -22791,13 +22791,13 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22791
22791
|
slot?: string | undefined;
|
|
22792
22792
|
style?: React.CSSProperties | undefined;
|
|
22793
22793
|
title?: string | undefined;
|
|
22794
|
-
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
22795
22794
|
width: number | undefined;
|
|
22796
22795
|
color?: string | undefined;
|
|
22797
22796
|
content?: string | undefined;
|
|
22797
|
+
hidden?: boolean | undefined;
|
|
22798
|
+
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
22798
22799
|
translate?: "yes" | "no" | undefined;
|
|
22799
22800
|
property?: string | undefined;
|
|
22800
|
-
hidden?: boolean | undefined;
|
|
22801
22801
|
className?: string | undefined;
|
|
22802
22802
|
defaultChecked?: boolean | undefined;
|
|
22803
22803
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -22839,7 +22839,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22839
22839
|
is?: string | undefined;
|
|
22840
22840
|
"aria-activedescendant"?: string | undefined;
|
|
22841
22841
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
22842
|
-
"aria-autocomplete"?: "
|
|
22842
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
22843
22843
|
"aria-braillelabel"?: string | undefined;
|
|
22844
22844
|
"aria-brailleroledescription"?: string | undefined;
|
|
22845
22845
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -22854,7 +22854,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22854
22854
|
"aria-description"?: string | undefined;
|
|
22855
22855
|
"aria-details"?: string | undefined;
|
|
22856
22856
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
22857
|
-
"aria-dropeffect"?: "link" | "
|
|
22857
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
22858
22858
|
"aria-errormessage"?: string | undefined;
|
|
22859
22859
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
22860
22860
|
"aria-flowto"?: string | undefined;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EuiProvider = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _warning = require("../../services/theme/warning");
|
|
11
11
|
var _css = require("../../services/emotion/css");
|
|
@@ -33,7 +33,7 @@ var EuiProvider = exports.EuiProvider = function EuiProvider(_ref) {
|
|
|
33
33
|
var _ref$cache = _ref.cache,
|
|
34
34
|
cache = _ref$cache === void 0 ? _css.cache : _ref$cache,
|
|
35
35
|
_ref$theme = _ref.theme,
|
|
36
|
-
theme = _ref$theme === void 0 ?
|
|
36
|
+
theme = _ref$theme === void 0 ? _euiThemeBorealis.EuiThemeBorealis : _ref$theme,
|
|
37
37
|
_ref$globalStyles = _ref.globalStyles,
|
|
38
38
|
Globals = _ref$globalStyles === void 0 ? _global_styles.EuiGlobalStyles : _ref$globalStyles,
|
|
39
39
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EUI_VIS_COLOR_STORE = void 0;
|
|
7
7
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
/*
|
|
10
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -15,4 +15,4 @@ var _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colo
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// initialsetup of Vis color storage with default colors
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis, true);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultComputedTheme = exports.EuiThemeContext = exports.EuiSystemContext = exports.EuiNestedThemeContext = exports.EuiModificationsContext = exports.EuiHighContrastModeContext = exports.EuiColorModeContext = exports.DEFAULTS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
var DEFAULTS = exports.DEFAULTS = {
|
|
19
|
-
system:
|
|
19
|
+
system: _euiThemeBorealis.EuiThemeBorealis,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
import { EuiThemeProvider } from '../../services';
|
|
12
12
|
import { emitEuiProviderWarning } from '../../services/theme/warning';
|
|
13
13
|
import { cache as fallbackCache } from '../../services/emotion/css';
|
|
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
|
|
|
26
26
|
var _ref$cache = _ref.cache,
|
|
27
27
|
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
28
28
|
_ref$theme = _ref.theme,
|
|
29
|
-
theme = _ref$theme === void 0 ?
|
|
29
|
+
theme = _ref$theme === void 0 ? EuiThemeBorealis : _ref$theme,
|
|
30
30
|
_ref$globalStyles = _ref.globalStyles,
|
|
31
31
|
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
32
32
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
10
|
-
import { colorVis } from '
|
|
10
|
+
import { colorVis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
|
|
12
12
|
// initialsetup of Vis color storage with default colors
|
|
13
13
|
export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeBorealis,
|
|
14
14
|
modifications: {},
|
|
15
15
|
colorMode: DEFAULT_COLOR_MODE,
|
|
16
16
|
highContrastMode: false
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiProvider = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
10
10
|
var _services = require("../../services");
|
|
11
11
|
var _warning = require("../../services/theme/warning");
|
|
12
12
|
var _css = require("../../services/emotion/css");
|
|
@@ -33,7 +33,7 @@ var EuiProvider = exports.EuiProvider = function EuiProvider(_ref) {
|
|
|
33
33
|
var _ref$cache = _ref.cache,
|
|
34
34
|
cache = _ref$cache === void 0 ? _css.cache : _ref$cache,
|
|
35
35
|
_ref$theme = _ref.theme,
|
|
36
|
-
theme = _ref$theme === void 0 ?
|
|
36
|
+
theme = _ref$theme === void 0 ? _euiThemeBorealis.EuiThemeBorealis : _ref$theme,
|
|
37
37
|
_ref$globalStyles = _ref.globalStyles,
|
|
38
38
|
Globals = _ref$globalStyles === void 0 ? _global_styles.EuiGlobalStyles : _ref$globalStyles,
|
|
39
39
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EUI_VIS_COLOR_STORE = void 0;
|
|
7
7
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
/*
|
|
10
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -15,4 +15,4 @@ var _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colo
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// initialsetup of Vis color storage with default colors
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis, true);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultComputedTheme = exports.EuiThemeContext = exports.EuiSystemContext = exports.EuiNestedThemeContext = exports.EuiModificationsContext = exports.EuiHighContrastModeContext = exports.EuiColorModeContext = exports.DEFAULTS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
var DEFAULTS = exports.DEFAULTS = {
|
|
19
|
-
system:
|
|
19
|
+
system: _euiThemeBorealis.EuiThemeBorealis,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiProvider = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
10
10
|
var _services = require("../../services");
|
|
11
11
|
var _warning = require("../../services/theme/warning");
|
|
12
12
|
var _css = require("../../services/emotion/css");
|
|
@@ -33,7 +33,7 @@ var EuiProvider = exports.EuiProvider = function EuiProvider(_ref) {
|
|
|
33
33
|
var _ref$cache = _ref.cache,
|
|
34
34
|
cache = _ref$cache === void 0 ? _css.cache : _ref$cache,
|
|
35
35
|
_ref$theme = _ref.theme,
|
|
36
|
-
theme = _ref$theme === void 0 ?
|
|
36
|
+
theme = _ref$theme === void 0 ? _euiThemeBorealis.EuiThemeBorealis : _ref$theme,
|
|
37
37
|
_ref$globalStyles = _ref.globalStyles,
|
|
38
38
|
Globals = _ref$globalStyles === void 0 ? _global_styles.EuiGlobalStyles : _ref$globalStyles,
|
|
39
39
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EUI_VIS_COLOR_STORE = void 0;
|
|
7
7
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
/*
|
|
10
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -15,4 +15,4 @@ var _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colo
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// initialsetup of Vis color storage with default colors
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis, true);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultComputedTheme = exports.EuiThemeContext = exports.EuiSystemContext = exports.EuiNestedThemeContext = exports.EuiModificationsContext = exports.EuiHighContrastModeContext = exports.EuiColorModeContext = exports.DEFAULTS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
var DEFAULTS = exports.DEFAULTS = {
|
|
19
|
-
system:
|
|
19
|
+
system: _euiThemeBorealis.EuiThemeBorealis,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|