@elastic/eui 102.2.0-snapshot.1748601905883 → 102.3.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/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 +348 -348
- 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 +5 -6
- 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 { EuiThemeAmsterdam } from '../../themes';
|
|
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 ? EuiThemeAmsterdam : _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 '../../themes/amsterdam/global_styling/variables/_colors_vis';
|
|
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 { EuiThemeAmsterdam } from '../../themes/amsterdam/theme';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeAmsterdam,
|
|
14
14
|
modifications: {},
|
|
15
15
|
colorMode: DEFAULT_COLOR_MODE,
|
|
16
16
|
highContrastMode: false
|
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' {
|
|
512
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
513
|
+
export const colorVis: _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';
|
|
@@ -1221,7 +1128,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1221
1128
|
*/
|
|
1222
1129
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1223
1130
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1224
|
-
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "
|
|
1131
|
+
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "none" | "xs" | "m" | "l" | "xl", SerializedStyles>;
|
|
1225
1132
|
|
|
1226
1133
|
}
|
|
1227
1134
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1271,6 +1178,12 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1271
1178
|
*/
|
|
1272
1179
|
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1273
1180
|
|
|
1181
|
+
}
|
|
1182
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1183
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1184
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1185
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1186
|
+
|
|
1274
1187
|
}
|
|
1275
1188
|
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
1276
1189
|
export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
|
|
@@ -2990,7 +2903,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2990
2903
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2991
2904
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2992
2905
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2993
|
-
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "
|
|
2906
|
+
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" | "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" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "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" | "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" | "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" | "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")[];
|
|
2994
2907
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2995
2908
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2996
2909
|
export type IconColor = string | NamedColor;
|
|
@@ -5818,7 +5731,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5818
5731
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
5819
5732
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
5820
5733
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5821
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
5734
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
5822
5735
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
5823
5736
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
5824
5737
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
@@ -6928,6 +6841,109 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
|
6928
6841
|
import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
|
|
6929
6842
|
export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
|
|
6930
6843
|
|
|
6844
|
+
}
|
|
6845
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6846
|
+
export const wcagContrastMin = 4.5;
|
|
6847
|
+
/**
|
|
6848
|
+
* Creates a new color that meets or exceeds WCAG level AA
|
|
6849
|
+
* @param foreground - Color to manipulate
|
|
6850
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6851
|
+
* *
|
|
6852
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6853
|
+
*/
|
|
6854
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6855
|
+
colors: {
|
|
6856
|
+
body: string;
|
|
6857
|
+
};
|
|
6858
|
+
[key: string]: any;
|
|
6859
|
+
}) => string;
|
|
6860
|
+
/**
|
|
6861
|
+
* Creates a new color with increased contrast
|
|
6862
|
+
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6863
|
+
* @param foreground - Color to manipulate
|
|
6864
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6865
|
+
* *
|
|
6866
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
6867
|
+
*/
|
|
6868
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6869
|
+
colors: {
|
|
6870
|
+
body: string;
|
|
6871
|
+
};
|
|
6872
|
+
[key: string]: any;
|
|
6873
|
+
}) => string;
|
|
6874
|
+
|
|
6875
|
+
}
|
|
6876
|
+
declare module '@elastic/eui/src/services/color' {
|
|
6877
|
+
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6878
|
+
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6879
|
+
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6880
|
+
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6881
|
+
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6882
|
+
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6883
|
+
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6884
|
+
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6885
|
+
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6886
|
+
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6887
|
+
export { EUI_VIS_COLOR_STORE } from '@elastic/eui/src/services/color/vis_color_store';
|
|
6888
|
+
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6889
|
+
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';
|
|
6890
|
+
export * from '@elastic/eui/src/services/color/eui_palettes_hooks';
|
|
6891
|
+
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6892
|
+
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6893
|
+
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6894
|
+
export * from '@elastic/eui/src/services/color/contrast';
|
|
6895
|
+
|
|
6896
|
+
}
|
|
6897
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6898
|
+
import React, { PropsWithChildren, HTMLAttributes } from 'react';
|
|
6899
|
+
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
6900
|
+
import { EuiThemeColorMode, EuiThemeHighContrastModeProp, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6901
|
+
export interface EuiThemeProviderProps<T> extends PropsWithChildren {
|
|
6902
|
+
theme?: EuiThemeSystem<T>;
|
|
6903
|
+
colorMode?: EuiThemeColorMode;
|
|
6904
|
+
highContrastMode?: EuiThemeHighContrastModeProp;
|
|
6905
|
+
modify?: EuiThemeModifications<T>;
|
|
6906
|
+
children: any;
|
|
6907
|
+
/**
|
|
6908
|
+
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
6909
|
+
* set the default text `color` that all nested children will inherit.
|
|
6910
|
+
*
|
|
6911
|
+
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
6912
|
+
* This requires a **single** child component that the correct color class can be passed to.
|
|
6913
|
+
*
|
|
6914
|
+
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
6915
|
+
* the default inherited text color will be set on the page `body`.
|
|
6916
|
+
*/
|
|
6917
|
+
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
6918
|
+
cloneElement?: boolean;
|
|
6919
|
+
};
|
|
6920
|
+
}
|
|
6921
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
6922
|
+
|
|
6923
|
+
}
|
|
6924
|
+
declare module '@elastic/eui/src/services/theme/theme_variant' {
|
|
6925
|
+
import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
|
|
6926
|
+
export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
|
|
6927
|
+
/**
|
|
6928
|
+
* Util to retrieve visual variant for UI elements
|
|
6929
|
+
* Note: Temporary only - will be removed once the visual refresh is completed.
|
|
6930
|
+
*/
|
|
6931
|
+
export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
|
|
6932
|
+
|
|
6933
|
+
}
|
|
6934
|
+
declare module '@elastic/eui/src/services/theme' {
|
|
6935
|
+
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6936
|
+
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6937
|
+
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, useIsDarkMode, } from '@elastic/eui/src/services/theme/hooks';
|
|
6938
|
+
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6939
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6940
|
+
export { useEuiMemoizedStyles, withEuiStylesMemoizer, type WithEuiStylesMemoizerProps, RenderWithEuiStylesMemoizer, } from '@elastic/eui/src/services/theme/style_memoization';
|
|
6941
|
+
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
6942
|
+
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6943
|
+
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6944
|
+
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
6945
|
+
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
6946
|
+
|
|
6931
6947
|
}
|
|
6932
6948
|
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6933
6949
|
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
@@ -6994,107 +7010,233 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6994
7010
|
export const brighten: (color: string, amount: number) => string;
|
|
6995
7011
|
|
|
6996
7012
|
}
|
|
6997
|
-
declare module '@elastic/eui/src/
|
|
6998
|
-
export const wcagContrastMin = 4.5;
|
|
7013
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
6999
7014
|
/**
|
|
7000
|
-
*
|
|
7001
|
-
*
|
|
7002
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
7003
|
-
* *
|
|
7004
|
-
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
7015
|
+
* These are not actually used, but we map them to ensure token parity.
|
|
7016
|
+
* They are mapped to other vis colors
|
|
7005
7017
|
*/
|
|
7006
|
-
export const
|
|
7007
|
-
|
|
7008
|
-
|
|
7018
|
+
export const severityColors: {
|
|
7019
|
+
unknown: string;
|
|
7020
|
+
neutral: string;
|
|
7021
|
+
success: string;
|
|
7022
|
+
warning: string;
|
|
7023
|
+
risk: string;
|
|
7024
|
+
danger: string;
|
|
7025
|
+
};
|
|
7026
|
+
|
|
7027
|
+
}
|
|
7028
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
7029
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
7030
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
7031
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
7032
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
7033
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
7034
|
+
export const text_colors: _EuiThemeTextColors;
|
|
7035
|
+
export const background_colors: _EuiThemeBackgroundColors;
|
|
7036
|
+
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
7037
|
+
export const border_colors: _EuiThemeBorderColors;
|
|
7038
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
7039
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
7040
|
+
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
7041
|
+
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
7042
|
+
export const dark_border_colors: _EuiThemeBorderColors;
|
|
7043
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
7044
|
+
export const colors: _EuiThemeColors;
|
|
7045
|
+
|
|
7046
|
+
}
|
|
7047
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
7048
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
7049
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
7050
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
7051
|
+
export const animation: _EuiThemeAnimation;
|
|
7052
|
+
|
|
7053
|
+
}
|
|
7054
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
7055
|
+
export { breakpoint } from '@elastic/eui-theme-common';
|
|
7056
|
+
|
|
7057
|
+
}
|
|
7058
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
7059
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
7060
|
+
export const base: _EuiThemeBase;
|
|
7061
|
+
export const size: _EuiThemeSizes;
|
|
7062
|
+
|
|
7063
|
+
}
|
|
7064
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
7065
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
7066
|
+
export const border: _EuiThemeBorder;
|
|
7067
|
+
|
|
7068
|
+
}
|
|
7069
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
7070
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
7071
|
+
export const levels: _EuiThemeLevels;
|
|
7072
|
+
|
|
7073
|
+
}
|
|
7074
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
7075
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
7076
|
+
export const fontScale: _EuiThemeFontScales;
|
|
7077
|
+
export const fontBase: _EuiThemeFontBase;
|
|
7078
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
7079
|
+
export const font: _EuiThemeFont;
|
|
7080
|
+
|
|
7081
|
+
}
|
|
7082
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
7083
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
7084
|
+
export const focus: _EuiThemeFocus;
|
|
7085
|
+
|
|
7086
|
+
}
|
|
7087
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
7088
|
+
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
7089
|
+
export const buttons: _EuiThemeButton;
|
|
7090
|
+
|
|
7091
|
+
}
|
|
7092
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
7093
|
+
export const forms: {
|
|
7094
|
+
maxWidth: string;
|
|
7095
|
+
LIGHT: {
|
|
7096
|
+
background: string;
|
|
7097
|
+
backgroundDisabled: string;
|
|
7098
|
+
backgroundReadOnly: any;
|
|
7099
|
+
backgroundFocused: any;
|
|
7100
|
+
backgroundAutofilled: string;
|
|
7101
|
+
prependBackground: string;
|
|
7102
|
+
border: string;
|
|
7103
|
+
borderAutofilled: string;
|
|
7104
|
+
controlBorder: string;
|
|
7105
|
+
controlBorderSelected: string;
|
|
7106
|
+
controlBorderDisabled: string;
|
|
7107
|
+
controlBackgroundUnselected: any;
|
|
7108
|
+
controlBackgroundDisabled: any;
|
|
7109
|
+
colorHasPlaceholder: string;
|
|
7110
|
+
colorDisabled: any;
|
|
7111
|
+
iconDisabled: any;
|
|
7009
7112
|
};
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7113
|
+
DARK: {
|
|
7114
|
+
background: string;
|
|
7115
|
+
backgroundFocused: string;
|
|
7116
|
+
backgroundAutofilled: string;
|
|
7117
|
+
prependBackground: string;
|
|
7118
|
+
border: string;
|
|
7119
|
+
controlBorder: string;
|
|
7120
|
+
controlBorderSelected: string;
|
|
7121
|
+
controlBorderDisabled: string;
|
|
7122
|
+
backgroundDisabled: string;
|
|
7123
|
+
backgroundReadOnly: any;
|
|
7124
|
+
borderAutofilled: string;
|
|
7125
|
+
controlBackgroundUnselected: any;
|
|
7126
|
+
controlBackgroundDisabled: any;
|
|
7127
|
+
colorHasPlaceholder: string;
|
|
7128
|
+
colorDisabled: any;
|
|
7129
|
+
iconDisabled: any;
|
|
7023
7130
|
};
|
|
7024
|
-
|
|
7025
|
-
}) => string;
|
|
7131
|
+
};
|
|
7026
7132
|
|
|
7027
7133
|
}
|
|
7028
|
-
declare module '@elastic/eui/src/
|
|
7029
|
-
|
|
7030
|
-
export
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
export
|
|
7036
|
-
export
|
|
7037
|
-
export
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
export
|
|
7134
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
7135
|
+
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
7136
|
+
export const components: _EuiThemeComponents;
|
|
7137
|
+
|
|
7138
|
+
}
|
|
7139
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
7140
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
7141
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
7142
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
7143
|
+
export const EuiThemeAmsterdam: {
|
|
7144
|
+
model: EuiThemeShape;
|
|
7145
|
+
root: EuiThemeShape;
|
|
7146
|
+
key: string;
|
|
7147
|
+
};
|
|
7148
|
+
|
|
7149
|
+
}
|
|
7150
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
7151
|
+
import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
|
|
7152
|
+
export const DEFAULTS: {
|
|
7153
|
+
system: {
|
|
7154
|
+
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7155
|
+
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7156
|
+
key: string;
|
|
7157
|
+
};
|
|
7158
|
+
modifications: {};
|
|
7159
|
+
colorMode: "LIGHT";
|
|
7160
|
+
highContrastMode: false;
|
|
7161
|
+
};
|
|
7162
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
7163
|
+
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
7164
|
+
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
7165
|
+
}>>;
|
|
7166
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
7167
|
+
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
7168
|
+
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
7169
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
7170
|
+
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
7047
7171
|
|
|
7048
7172
|
}
|
|
7049
|
-
declare module '@elastic/eui/src/services/theme/
|
|
7050
|
-
import React
|
|
7051
|
-
import type
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
7061
|
-
* set the default text `color` that all nested children will inherit.
|
|
7062
|
-
*
|
|
7063
|
-
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
7064
|
-
* This requires a **single** child component that the correct color class can be passed to.
|
|
7065
|
-
*
|
|
7066
|
-
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
7067
|
-
* the default inherited text color will be set on the page `body`.
|
|
7068
|
-
*/
|
|
7069
|
-
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7070
|
-
cloneElement?: boolean;
|
|
7071
|
-
};
|
|
7173
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
7174
|
+
import React from 'react';
|
|
7175
|
+
import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
7176
|
+
/**
|
|
7177
|
+
* Hook for function components
|
|
7178
|
+
*/
|
|
7179
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
7180
|
+
euiTheme: EuiThemeComputed<T>;
|
|
7181
|
+
colorMode: EuiThemeColorModeStandard;
|
|
7182
|
+
highContrastMode: EuiThemeHighContrastMode;
|
|
7183
|
+
modifications: EuiThemeModifications<T>;
|
|
7072
7184
|
}
|
|
7073
|
-
export const
|
|
7185
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
7186
|
+
/**
|
|
7187
|
+
* HOC for class components
|
|
7188
|
+
*/
|
|
7189
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
7190
|
+
theme: UseEuiTheme<P>;
|
|
7191
|
+
}
|
|
7192
|
+
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">>>;
|
|
7193
|
+
/**
|
|
7194
|
+
* Render prop alternative for complex class components
|
|
7195
|
+
* Most useful for scenarios where a HOC may interfere with typing
|
|
7196
|
+
*/
|
|
7197
|
+
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
7198
|
+
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
7199
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7200
|
+
/**
|
|
7201
|
+
* Minor syntactical sugar hook for theme CSS variables.
|
|
7202
|
+
* Primarily meant for internal EUI usage.
|
|
7203
|
+
*/
|
|
7204
|
+
export const useEuiThemeCSSVariables: () => {
|
|
7205
|
+
setGlobalCSSVariables: Function;
|
|
7206
|
+
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7207
|
+
setNearestThemeCSSVariables: Function;
|
|
7208
|
+
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7209
|
+
};
|
|
7210
|
+
/**
|
|
7211
|
+
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
7212
|
+
* In case of nested providers this returns the value of the nearest provider context.
|
|
7213
|
+
*/
|
|
7214
|
+
export const useIsDarkMode: () => boolean;
|
|
7074
7215
|
|
|
7075
7216
|
}
|
|
7076
|
-
declare module '@elastic/eui/src/services/
|
|
7077
|
-
import {
|
|
7078
|
-
|
|
7217
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
7218
|
+
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
7219
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7220
|
+
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
7221
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
7079
7222
|
/**
|
|
7080
|
-
*
|
|
7081
|
-
*
|
|
7223
|
+
* Returns the current breakpoint based on window width.
|
|
7224
|
+
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
7225
|
+
* of window resize listeners on the page). Also conditionally called if a
|
|
7226
|
+
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
7082
7227
|
*/
|
|
7083
|
-
export const
|
|
7228
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
7229
|
+
export {};
|
|
7084
7230
|
|
|
7085
7231
|
}
|
|
7086
|
-
declare module '@elastic/eui/src/services/
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
export
|
|
7094
|
-
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7095
|
-
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7096
|
-
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
7097
|
-
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
7232
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
7233
|
+
/**
|
|
7234
|
+
* Hook util / syntactical sugar for useContext()
|
|
7235
|
+
*
|
|
7236
|
+
* This hook is in its own separate file to make mocking it
|
|
7237
|
+
* as a testenv easy for Jest unit tests
|
|
7238
|
+
*/
|
|
7239
|
+
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
7098
7240
|
|
|
7099
7241
|
}
|
|
7100
7242
|
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
@@ -12534,11 +12676,6 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12534
12676
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
|
|
12535
12677
|
export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
|
|
12536
12678
|
|
|
12537
|
-
}
|
|
12538
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis' {
|
|
12539
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12540
|
-
export const colorVis: _EuiThemeVisColors;
|
|
12541
|
-
|
|
12542
12679
|
}
|
|
12543
12680
|
declare module '@elastic/eui/src/themes/themes' {
|
|
12544
12681
|
import { EuiThemeSystem } from '@elastic/eui/src/services';
|
|
@@ -12548,143 +12685,6 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
12548
12685
|
provider?: EuiThemeSystem;
|
|
12549
12686
|
}
|
|
12550
12687
|
|
|
12551
|
-
}
|
|
12552
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
12553
|
-
/**
|
|
12554
|
-
* These are not actually used, but we map them to ensure token parity.
|
|
12555
|
-
* They are mapped to other vis colors
|
|
12556
|
-
*/
|
|
12557
|
-
export const severityColors: {
|
|
12558
|
-
unknown: string;
|
|
12559
|
-
neutral: string;
|
|
12560
|
-
success: string;
|
|
12561
|
-
warning: string;
|
|
12562
|
-
risk: string;
|
|
12563
|
-
danger: string;
|
|
12564
|
-
};
|
|
12565
|
-
|
|
12566
|
-
}
|
|
12567
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
12568
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
12569
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
12570
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
12571
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
12572
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
12573
|
-
export const text_colors: _EuiThemeTextColors;
|
|
12574
|
-
export const background_colors: _EuiThemeBackgroundColors;
|
|
12575
|
-
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12576
|
-
export const border_colors: _EuiThemeBorderColors;
|
|
12577
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
12578
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
12579
|
-
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
12580
|
-
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12581
|
-
export const dark_border_colors: _EuiThemeBorderColors;
|
|
12582
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
12583
|
-
export const colors: _EuiThemeColors;
|
|
12584
|
-
|
|
12585
|
-
}
|
|
12586
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
12587
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
12588
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
12589
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
12590
|
-
export const animation: _EuiThemeAnimation;
|
|
12591
|
-
|
|
12592
|
-
}
|
|
12593
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
12594
|
-
export { breakpoint } from '@elastic/eui-theme-common';
|
|
12595
|
-
|
|
12596
|
-
}
|
|
12597
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
12598
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
12599
|
-
export const base: _EuiThemeBase;
|
|
12600
|
-
export const size: _EuiThemeSizes;
|
|
12601
|
-
|
|
12602
|
-
}
|
|
12603
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
12604
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
12605
|
-
export const border: _EuiThemeBorder;
|
|
12606
|
-
|
|
12607
|
-
}
|
|
12608
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
12609
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
12610
|
-
export const levels: _EuiThemeLevels;
|
|
12611
|
-
|
|
12612
|
-
}
|
|
12613
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
12614
|
-
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
12615
|
-
export const fontScale: _EuiThemeFontScales;
|
|
12616
|
-
export const fontBase: _EuiThemeFontBase;
|
|
12617
|
-
export const fontWeight: _EuiThemeFontWeights;
|
|
12618
|
-
export const font: _EuiThemeFont;
|
|
12619
|
-
|
|
12620
|
-
}
|
|
12621
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
12622
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
12623
|
-
export const focus: _EuiThemeFocus;
|
|
12624
|
-
|
|
12625
|
-
}
|
|
12626
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
12627
|
-
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
12628
|
-
export const buttons: _EuiThemeButton;
|
|
12629
|
-
|
|
12630
|
-
}
|
|
12631
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
12632
|
-
export const forms: {
|
|
12633
|
-
maxWidth: string;
|
|
12634
|
-
LIGHT: {
|
|
12635
|
-
background: string;
|
|
12636
|
-
backgroundDisabled: string;
|
|
12637
|
-
backgroundReadOnly: any;
|
|
12638
|
-
backgroundFocused: any;
|
|
12639
|
-
backgroundAutofilled: string;
|
|
12640
|
-
prependBackground: string;
|
|
12641
|
-
border: string;
|
|
12642
|
-
borderAutofilled: string;
|
|
12643
|
-
controlBorder: string;
|
|
12644
|
-
controlBorderSelected: string;
|
|
12645
|
-
controlBorderDisabled: string;
|
|
12646
|
-
controlBackgroundUnselected: any;
|
|
12647
|
-
controlBackgroundDisabled: any;
|
|
12648
|
-
colorHasPlaceholder: string;
|
|
12649
|
-
colorDisabled: any;
|
|
12650
|
-
iconDisabled: any;
|
|
12651
|
-
};
|
|
12652
|
-
DARK: {
|
|
12653
|
-
background: string;
|
|
12654
|
-
backgroundFocused: string;
|
|
12655
|
-
backgroundAutofilled: string;
|
|
12656
|
-
prependBackground: string;
|
|
12657
|
-
border: string;
|
|
12658
|
-
controlBorder: string;
|
|
12659
|
-
controlBorderSelected: string;
|
|
12660
|
-
controlBorderDisabled: string;
|
|
12661
|
-
backgroundDisabled: string;
|
|
12662
|
-
backgroundReadOnly: any;
|
|
12663
|
-
borderAutofilled: string;
|
|
12664
|
-
controlBackgroundUnselected: any;
|
|
12665
|
-
controlBackgroundDisabled: any;
|
|
12666
|
-
colorHasPlaceholder: string;
|
|
12667
|
-
colorDisabled: any;
|
|
12668
|
-
iconDisabled: any;
|
|
12669
|
-
};
|
|
12670
|
-
};
|
|
12671
|
-
|
|
12672
|
-
}
|
|
12673
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
12674
|
-
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
12675
|
-
export const components: _EuiThemeComponents;
|
|
12676
|
-
|
|
12677
|
-
}
|
|
12678
|
-
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
12679
|
-
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
12680
|
-
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
12681
|
-
export const euiThemeAmsterdam: EuiThemeShape;
|
|
12682
|
-
export const EuiThemeAmsterdam: {
|
|
12683
|
-
model: EuiThemeShape;
|
|
12684
|
-
root: EuiThemeShape;
|
|
12685
|
-
key: string;
|
|
12686
|
-
};
|
|
12687
|
-
|
|
12688
12688
|
}
|
|
12689
12689
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
12690
12690
|
export * from '@elastic/eui/src/global_styling/mixins/_shadow';
|
|
@@ -14619,7 +14619,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14619
14619
|
/**
|
|
14620
14620
|
* Height types
|
|
14621
14621
|
*/
|
|
14622
|
-
getHeightType: (option?: EuiDataGridRowHeightOption) => "
|
|
14622
|
+
getHeightType: (option?: EuiDataGridRowHeightOption) => "default" | "auto" | "lineCount" | "numerical";
|
|
14623
14623
|
/**
|
|
14624
14624
|
* Line count utils
|
|
14625
14625
|
*/
|
|
@@ -21802,7 +21802,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
21802
21802
|
import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
|
|
21803
21803
|
export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
|
|
21804
21804
|
/**
|
|
21805
|
-
* Provide a specific EuiTheme; Defaults to
|
|
21805
|
+
* Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
|
|
21806
21806
|
* Pass `null` to remove all theming including global reset
|
|
21807
21807
|
*/
|
|
21808
21808
|
theme?: EuiThemeSystem | null;
|
|
@@ -23061,13 +23061,13 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23061
23061
|
slot?: string | undefined;
|
|
23062
23062
|
style?: CSSProperties | undefined;
|
|
23063
23063
|
title?: string | undefined;
|
|
23064
|
+
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23064
23065
|
width: number;
|
|
23065
23066
|
color?: string | undefined;
|
|
23066
23067
|
content?: string | undefined;
|
|
23067
|
-
hidden?: boolean | undefined;
|
|
23068
|
-
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23069
23068
|
translate?: "yes" | "no" | undefined;
|
|
23070
23069
|
property?: string | undefined;
|
|
23070
|
+
hidden?: boolean | undefined;
|
|
23071
23071
|
className?: string | undefined;
|
|
23072
23072
|
defaultChecked?: boolean | undefined;
|
|
23073
23073
|
defaultValue?: string | number | readonly 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 _themes = require("../../themes");
|
|
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 ? _themes.EuiThemeAmsterdam : _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 _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
|
|
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 _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
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(_colors_vis.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 _theme = require("../../themes/amsterdam/theme");
|
|
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: _theme.EuiThemeAmsterdam,
|
|
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 { EuiThemeAmsterdam } from '../../themes';
|
|
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 ? EuiThemeAmsterdam : _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 '../../themes/amsterdam/global_styling/variables/_colors_vis';
|
|
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 { EuiThemeAmsterdam } from '../../themes/amsterdam/theme';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeAmsterdam,
|
|
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 _themes = require("../../themes");
|
|
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 ? _themes.EuiThemeAmsterdam : _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 _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
|
|
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 _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
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(_colors_vis.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 _theme = require("../../themes/amsterdam/theme");
|
|
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: _theme.EuiThemeAmsterdam,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "102.
|
|
4
|
+
"version": "102.3.0-amsterdam.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"url": "https://github.com/elastic/eui.git"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@elastic/eui-theme-common": "1.
|
|
53
|
+
"@elastic/eui-theme-common": "1.1.0",
|
|
54
54
|
"@elastic/prismjs-esql": "^1.1.0",
|
|
55
55
|
"@hello-pangea/dnd": "^16.6.0",
|
|
56
56
|
"@types/lodash": "^4.14.202",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
105
105
|
"@elastic/charts": "^64.1.0",
|
|
106
106
|
"@elastic/datemath": "^5.0.3",
|
|
107
|
-
"@elastic/eui-theme-borealis": "1.
|
|
107
|
+
"@elastic/eui-theme-borealis": "1.1.0",
|
|
108
108
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
109
109
|
"@emotion/cache": "^11.11.0",
|
|
110
110
|
"@emotion/css": "^11.11.0",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
},
|
|
258
258
|
"peerDependencies": {
|
|
259
259
|
"@elastic/datemath": "^5.0.2",
|
|
260
|
-
"@elastic/eui-theme-borealis": "1.
|
|
260
|
+
"@elastic/eui-theme-borealis": "1.1.0",
|
|
261
261
|
"@emotion/css": "11.x",
|
|
262
262
|
"@emotion/react": "11.x",
|
|
263
263
|
"@types/react": "^16.9 || ^17.0 || ^18.0",
|
|
@@ -281,6 +281,5 @@
|
|
|
281
281
|
],
|
|
282
282
|
"installConfig": {
|
|
283
283
|
"hoistingLimits": "workspaces"
|
|
284
|
-
}
|
|
285
|
-
"stableVersion": "102.2.0"
|
|
284
|
+
}
|
|
286
285
|
}
|
|
@@ -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 _themes = require("../../themes");
|
|
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 ? _themes.EuiThemeAmsterdam : _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 _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
|
|
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 _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
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(_colors_vis.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 _theme = require("../../themes/amsterdam/theme");
|
|
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: _theme.EuiThemeAmsterdam,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|