@elastic/eui 106.7.0 → 107.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_amsterdam_dark.json +36 -0
- package/dist/eui_theme_amsterdam_dark.json.d.ts +36 -0
- package/dist/eui_theme_amsterdam_light.json +36 -0
- package/dist/eui_theme_amsterdam_light.json.d.ts +36 -0
- package/dist/eui_theme_borealis_dark.json +36 -0
- package/dist/eui_theme_borealis_dark.json.d.ts +36 -0
- package/dist/eui_theme_borealis_light.json +37 -1
- package/dist/eui_theme_borealis_light.json.d.ts +36 -0
- package/es/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
- package/es/components/flyout/flyout.styles.js +18 -7
- package/es/components/header/header.styles.js +3 -1
- package/es/components/page_template/inner/page_inner.styles.js +3 -1
- package/es/components/panel/panel.styles.js +6 -6
- package/es/global_styling/mixins/_shadow.js +14 -2
- package/es/themes/amsterdam/global_styling/variables/_shadows.js +439 -0
- package/es/themes/amsterdam/theme.js +4 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
- package/es/themes/json/eui_theme_amsterdam_light.json +36 -0
- package/es/themes/json/eui_theme_borealis_dark.json +36 -0
- package/es/themes/json/eui_theme_borealis_light.json +37 -1
- package/eui.d.ts +158 -3
- package/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
- package/lib/components/flyout/flyout.styles.js +18 -7
- package/lib/components/header/header.styles.js +3 -1
- package/lib/components/page_template/inner/page_inner.styles.js +3 -1
- package/lib/components/panel/panel.styles.js +5 -5
- package/lib/global_styling/mixins/_shadow.js +18 -1
- package/lib/themes/amsterdam/global_styling/variables/_shadows.js +442 -0
- package/lib/themes/amsterdam/theme.js +4 -1
- package/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
- package/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
- package/lib/themes/json/eui_theme_borealis_dark.json +36 -0
- package/lib/themes/json/eui_theme_borealis_light.json +37 -1
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
- package/optimize/es/components/flyout/flyout.styles.js +18 -7
- package/optimize/es/components/header/header.styles.js +3 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +3 -1
- package/optimize/es/components/panel/panel.styles.js +6 -6
- package/optimize/es/global_styling/mixins/_shadow.js +14 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +436 -0
- package/optimize/es/themes/amsterdam/theme.js +4 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +36 -0
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +36 -0
- package/optimize/es/themes/json/eui_theme_borealis_light.json +37 -1
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
- package/optimize/lib/components/flyout/flyout.styles.js +18 -7
- package/optimize/lib/components/header/header.styles.js +3 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +3 -1
- package/optimize/lib/components/panel/panel.styles.js +5 -5
- package/optimize/lib/global_styling/mixins/_shadow.js +18 -1
- package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
- package/optimize/lib/themes/amsterdam/theme.js +4 -1
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +36 -0
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +37 -1
- package/package.json +4 -4
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +100 -0
- package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
- package/src/themes/amsterdam/global_styling/variables/_shadows.scss +20 -0
- package/test-env/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
- package/test-env/components/flyout/flyout.styles.js +18 -7
- package/test-env/components/header/header.styles.js +3 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +3 -1
- package/test-env/components/panel/panel.styles.js +5 -5
- package/test-env/global_styling/mixins/_shadow.js +18 -1
- package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
- package/test-env/themes/amsterdam/theme.js +4 -1
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +36 -0
- package/test-env/themes/json/eui_theme_amsterdam_light.json +36 -0
- package/test-env/themes/json/eui_theme_borealis_dark.json +36 -0
- package/test-env/themes/json/eui_theme_borealis_light.json +37 -1
package/eui.d.ts
CHANGED
|
@@ -502,6 +502,7 @@ declare module '@elastic/eui/src/services/theme/high_contrast_overrides' {
|
|
|
502
502
|
animation?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeAnimation> | undefined;
|
|
503
503
|
breakpoint?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeBreakpoints> | undefined;
|
|
504
504
|
levels?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeLevels> | undefined;
|
|
505
|
+
shadows?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeShadows> | undefined;
|
|
505
506
|
components?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeComponents> | undefined;
|
|
506
507
|
flags?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeFlags> | undefined;
|
|
507
508
|
overrides?: import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common")._EuiThemeOverrides | undefined>;
|
|
@@ -1343,7 +1344,7 @@ declare module '@elastic/eui/src/global_styling/variables/size' {
|
|
|
1343
1344
|
|
|
1344
1345
|
}
|
|
1345
1346
|
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1346
|
-
export { EuiThemeShadowSizes, _EuiShadowSizesDescriptions, type _EuiThemeShadowSize, type _EuiThemeShadowCustomColor, } from '@elastic/eui-theme-common';
|
|
1347
|
+
export { EuiThemeShadowSizes, _EuiShadowSizesDescriptions, type _EuiThemeShadows, type _EuiThemeShadowSize, type _EuiThemeShadowLayer, type _EuiThemeShadowCustomColor, } from '@elastic/eui-theme-common';
|
|
1347
1348
|
|
|
1348
1349
|
}
|
|
1349
1350
|
declare module '@elastic/eui/src/global_styling/variables/states' {
|
|
@@ -1401,14 +1402,18 @@ declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
|
1401
1402
|
|
|
1402
1403
|
}
|
|
1403
1404
|
declare module '@elastic/eui/src/global_styling/mixins/_shadow' {
|
|
1404
|
-
import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, type _EuiThemeShadowSize, type EuiShadowOptions } from '@elastic/eui-theme-common';
|
|
1405
|
-
export { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, };
|
|
1405
|
+
import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, euiShadowHover, type _EuiThemeShadowSize, type EuiShadowOptions } from '@elastic/eui-theme-common';
|
|
1406
|
+
export { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, euiShadowHover, };
|
|
1407
|
+
/** @deprecated */
|
|
1406
1408
|
export interface EuiShadowCustomColor {
|
|
1407
1409
|
color?: string;
|
|
1408
1410
|
}
|
|
1411
|
+
/** @deprecated use euiShadowHover/useEuiShadowHover instead */
|
|
1409
1412
|
export const useEuiSlightShadowHover: (options?: EuiShadowOptions) => string;
|
|
1413
|
+
/** @deprecated - useEuiShadow instead */
|
|
1410
1414
|
export const useEuiShadowFlat: (options?: EuiShadowOptions) => string;
|
|
1411
1415
|
export const useEuiShadow: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions) => string;
|
|
1416
|
+
export const useEuiShadowHover: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions) => string;
|
|
1412
1417
|
|
|
1413
1418
|
}
|
|
1414
1419
|
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
@@ -13101,6 +13106,12 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_stat
|
|
|
13101
13106
|
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
13102
13107
|
export const focus: _EuiThemeFocus;
|
|
13103
13108
|
|
|
13109
|
+
}
|
|
13110
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_shadows' {
|
|
13111
|
+
import { _EuiThemeShadows, type _EuiThemeShadowPrimitives } from '@elastic/eui-theme-common';
|
|
13112
|
+
export const shadowPrimitives: _EuiThemeShadowPrimitives;
|
|
13113
|
+
export const shadows: _EuiThemeShadows;
|
|
13114
|
+
|
|
13104
13115
|
}
|
|
13105
13116
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
13106
13117
|
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
@@ -32276,6 +32287,42 @@ declare module '@elastic/eui/dist/eui_theme_amsterdam_dark.json' {
|
|
|
32276
32287
|
};
|
|
32277
32288
|
euiBreakpointKeys: string;
|
|
32278
32289
|
euiShadowColor: string;
|
|
32290
|
+
euiShadows: {
|
|
32291
|
+
xs: {
|
|
32292
|
+
down: string;
|
|
32293
|
+
up: string;
|
|
32294
|
+
};
|
|
32295
|
+
s: {
|
|
32296
|
+
down: string;
|
|
32297
|
+
up: string;
|
|
32298
|
+
};
|
|
32299
|
+
m: {
|
|
32300
|
+
down: string;
|
|
32301
|
+
up: string;
|
|
32302
|
+
};
|
|
32303
|
+
l: {
|
|
32304
|
+
down: string;
|
|
32305
|
+
up: string;
|
|
32306
|
+
};
|
|
32307
|
+
xl: {
|
|
32308
|
+
down: string;
|
|
32309
|
+
up: string;
|
|
32310
|
+
};
|
|
32311
|
+
hover: {
|
|
32312
|
+
base: {
|
|
32313
|
+
down: string;
|
|
32314
|
+
up: string;
|
|
32315
|
+
};
|
|
32316
|
+
xl: {
|
|
32317
|
+
down: string;
|
|
32318
|
+
up: string;
|
|
32319
|
+
};
|
|
32320
|
+
};
|
|
32321
|
+
flat: {
|
|
32322
|
+
down: string;
|
|
32323
|
+
up: string;
|
|
32324
|
+
};
|
|
32325
|
+
};
|
|
32279
32326
|
euiSize: string;
|
|
32280
32327
|
euiSizeXS: string;
|
|
32281
32328
|
euiSizeS: string;
|
|
@@ -32706,6 +32753,42 @@ declare module '@elastic/eui/dist/eui_theme_amsterdam_light.json' {
|
|
|
32706
32753
|
};
|
|
32707
32754
|
euiBreakpointKeys: string;
|
|
32708
32755
|
euiShadowColor: string;
|
|
32756
|
+
euiShadows: {
|
|
32757
|
+
xs: {
|
|
32758
|
+
down: string;
|
|
32759
|
+
up: string;
|
|
32760
|
+
};
|
|
32761
|
+
s: {
|
|
32762
|
+
down: string;
|
|
32763
|
+
up: string;
|
|
32764
|
+
};
|
|
32765
|
+
m: {
|
|
32766
|
+
down: string;
|
|
32767
|
+
up: string;
|
|
32768
|
+
};
|
|
32769
|
+
l: {
|
|
32770
|
+
down: string;
|
|
32771
|
+
up: string;
|
|
32772
|
+
};
|
|
32773
|
+
xl: {
|
|
32774
|
+
down: string;
|
|
32775
|
+
up: string;
|
|
32776
|
+
};
|
|
32777
|
+
hover: {
|
|
32778
|
+
base: {
|
|
32779
|
+
down: string;
|
|
32780
|
+
up: string;
|
|
32781
|
+
};
|
|
32782
|
+
xl: {
|
|
32783
|
+
down: string;
|
|
32784
|
+
up: string;
|
|
32785
|
+
};
|
|
32786
|
+
};
|
|
32787
|
+
flat: {
|
|
32788
|
+
down: string;
|
|
32789
|
+
up: string;
|
|
32790
|
+
};
|
|
32791
|
+
};
|
|
32709
32792
|
euiSize: string;
|
|
32710
32793
|
euiSizeXS: string;
|
|
32711
32794
|
euiSizeS: string;
|
|
@@ -33136,6 +33219,42 @@ declare module '@elastic/eui/dist/eui_theme_borealis_dark.json' {
|
|
|
33136
33219
|
};
|
|
33137
33220
|
euiBreakpointKeys: string;
|
|
33138
33221
|
euiShadowColor: string;
|
|
33222
|
+
euiShadows: {
|
|
33223
|
+
xs: {
|
|
33224
|
+
down: string;
|
|
33225
|
+
up: string;
|
|
33226
|
+
};
|
|
33227
|
+
s: {
|
|
33228
|
+
down: string;
|
|
33229
|
+
up: string;
|
|
33230
|
+
};
|
|
33231
|
+
m: {
|
|
33232
|
+
down: string;
|
|
33233
|
+
up: string;
|
|
33234
|
+
};
|
|
33235
|
+
l: {
|
|
33236
|
+
down: string;
|
|
33237
|
+
up: string;
|
|
33238
|
+
};
|
|
33239
|
+
xl: {
|
|
33240
|
+
down: string;
|
|
33241
|
+
up: string;
|
|
33242
|
+
};
|
|
33243
|
+
hover: {
|
|
33244
|
+
base: {
|
|
33245
|
+
down: string;
|
|
33246
|
+
up: string;
|
|
33247
|
+
};
|
|
33248
|
+
xl: {
|
|
33249
|
+
down: string;
|
|
33250
|
+
up: string;
|
|
33251
|
+
};
|
|
33252
|
+
};
|
|
33253
|
+
flat: {
|
|
33254
|
+
down: string;
|
|
33255
|
+
up: string;
|
|
33256
|
+
};
|
|
33257
|
+
};
|
|
33139
33258
|
euiSize: string;
|
|
33140
33259
|
euiSizeXS: string;
|
|
33141
33260
|
euiSizeS: string;
|
|
@@ -33566,6 +33685,42 @@ declare module '@elastic/eui/dist/eui_theme_borealis_light.json' {
|
|
|
33566
33685
|
};
|
|
33567
33686
|
euiBreakpointKeys: string;
|
|
33568
33687
|
euiShadowColor: string;
|
|
33688
|
+
euiShadows: {
|
|
33689
|
+
xs: {
|
|
33690
|
+
down: string;
|
|
33691
|
+
up: string;
|
|
33692
|
+
};
|
|
33693
|
+
s: {
|
|
33694
|
+
down: string;
|
|
33695
|
+
up: string;
|
|
33696
|
+
};
|
|
33697
|
+
m: {
|
|
33698
|
+
down: string;
|
|
33699
|
+
up: string;
|
|
33700
|
+
};
|
|
33701
|
+
l: {
|
|
33702
|
+
down: string;
|
|
33703
|
+
up: string;
|
|
33704
|
+
};
|
|
33705
|
+
xl: {
|
|
33706
|
+
down: string;
|
|
33707
|
+
up: string;
|
|
33708
|
+
};
|
|
33709
|
+
hover: {
|
|
33710
|
+
base: {
|
|
33711
|
+
down: string;
|
|
33712
|
+
up: string;
|
|
33713
|
+
};
|
|
33714
|
+
xl: {
|
|
33715
|
+
down: string;
|
|
33716
|
+
up: string;
|
|
33717
|
+
};
|
|
33718
|
+
};
|
|
33719
|
+
flat: {
|
|
33720
|
+
down: string;
|
|
33721
|
+
up: string;
|
|
33722
|
+
};
|
|
33723
|
+
};
|
|
33569
33724
|
euiSize: string;
|
|
33570
33725
|
euiSizeXS: string;
|
|
33571
33726
|
euiSizeS: string;
|
|
@@ -24,8 +24,10 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
|
|
|
24
24
|
// Base
|
|
25
25
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
26
26
|
euiBottomBar: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.bottomBarBackground, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
27
|
-
none: (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext
|
|
28
|
-
|
|
27
|
+
none: (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, {
|
|
28
|
+
border: 'none'
|
|
29
|
+
})
|
|
30
|
+
}), "clip-path:polygon(0 -100vh, 100% -100vh, 100% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
29
31
|
static: /*#__PURE__*/(0, _react.css)(";label:static;"),
|
|
30
32
|
// Default
|
|
31
33
|
fixed: /*#__PURE__*/(0, _react.css)("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
|
|
@@ -163,7 +163,7 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
|
|
|
163
163
|
}, [_focusTrapProps]);
|
|
164
164
|
var classes = (0, _classnames.default)('euiCollapsibleNav', 'euiCollapsibleNavBeta', className);
|
|
165
165
|
var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav_beta.euiCollapsibleNavBetaStyles);
|
|
166
|
-
var cssStyles = [styles.euiCollapsibleNavBeta,
|
|
166
|
+
var cssStyles = [styles.euiCollapsibleNavBeta, isPush && styles.isPush, styles[side], isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
|
|
167
167
|
var flyout = (0, _react2.jsx)(_flyout.EuiFlyout, _extends({
|
|
168
168
|
"aria-label": defaultAriaLabel
|
|
169
169
|
}, rest, {
|
|
@@ -29,7 +29,9 @@ var euiCollapsibleNavBetaStyles = exports.euiCollapsibleNavBetaStyles = function
|
|
|
29
29
|
euiCollapsibleNavBeta: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', fixedHeaderOffset), (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), ";;label:euiCollapsibleNavBeta;"),
|
|
30
30
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";;label:left;"),
|
|
31
31
|
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:right;"),
|
|
32
|
-
isPush: /*#__PURE__*/(0, _react.css)((0, _themes.euiShadowFlat)(euiThemeContext
|
|
32
|
+
isPush: /*#__PURE__*/(0, _react.css)((0, _themes.euiShadowFlat)(euiThemeContext, {
|
|
33
|
+
border: 'none'
|
|
34
|
+
}), ";;label:isPush;"),
|
|
33
35
|
isPushCollapsed: /*#__PURE__*/(0, _react.css)(_collapsible_nav_body_footer.hideScrollbars, ";;label:isPushCollapsed;"),
|
|
34
36
|
isOverlayFullWidth: /*#__PURE__*/(0, _react.css)("&.euiFlyout{", (0, _global_styling.logicalCSS)('max-width', '100% !important'), ";};label:isOverlayFullWidth;")
|
|
35
37
|
};
|
|
@@ -28,9 +28,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
28
28
|
styles: "animation-duration:0s!important;label:noAnimation;",
|
|
29
29
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
30
30
|
};
|
|
31
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
32
|
+
name: "rks1ev-overlay",
|
|
33
|
+
styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;"
|
|
34
|
+
} : {
|
|
35
|
+
name: "rks1ev-overlay",
|
|
36
|
+
styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;",
|
|
37
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
38
|
+
};
|
|
31
39
|
var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
|
|
32
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
33
|
-
colorMode = euiThemeContext.colorMode;
|
|
40
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
34
41
|
return {
|
|
35
42
|
euiFlyout: /*#__PURE__*/(0, _react.css)("position:fixed;", (0, _global_styling.logicalCSS)('bottom', 0), " ", (0, _global_styling.logicalCSS)('top', 'var(--euiFixedHeadersOffset, 0)'), " ", (0, _global_styling.logicalCSS)('height', 'inherit'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}", maxedFlyoutWidth(euiThemeContext), ";;label:euiFlyout;"),
|
|
36
43
|
// Flyout sizes
|
|
@@ -45,11 +52,15 @@ var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThem
|
|
|
45
52
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:left;"),
|
|
46
53
|
// Type
|
|
47
54
|
overlay: {
|
|
48
|
-
overlay:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
overlay: _ref2,
|
|
56
|
+
left: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
|
|
57
|
+
borderAllInHighContrastMode: true,
|
|
58
|
+
border: 'right'
|
|
59
|
+
}), ";;label:left;"),
|
|
60
|
+
right: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
|
|
61
|
+
borderAllInHighContrastMode: true,
|
|
62
|
+
border: 'left'
|
|
63
|
+
}), ";;label:right;")
|
|
53
64
|
},
|
|
54
65
|
push: {
|
|
55
66
|
push: /*#__PURE__*/(0, _react.css)("clip-path:none;z-index:", Number(euiTheme.levels.flyout) - 1, ";;label:push;"),
|
|
@@ -31,7 +31,9 @@ var euiHeaderStyles = exports.euiHeaderStyles = function euiHeaderStyles(euiThem
|
|
|
31
31
|
height = _euiHeaderVariables.height,
|
|
32
32
|
padding = _euiHeaderVariables.padding;
|
|
33
33
|
return {
|
|
34
|
-
euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext
|
|
34
|
+
euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext, {
|
|
35
|
+
border: 'none'
|
|
36
|
+
}), "&+.euiHeader{clip-path:polygon(0 0, 100% 0, 100% 100vh, 0 100vh);};label:euiHeader;"),
|
|
35
37
|
// Position
|
|
36
38
|
static: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
37
39
|
fixed: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) + 1, ";position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', 0), ";;label:fixed;"),
|
|
@@ -19,7 +19,9 @@ var euiPageInnerStyles = exports.euiPageInnerStyles = function euiPageInnerStyle
|
|
|
19
19
|
var euiTheme = euiThemeContext.euiTheme;
|
|
20
20
|
return {
|
|
21
21
|
euiPageInner: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('min-width', '0'), ";;label:euiPageInner;"),
|
|
22
|
-
panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'
|
|
22
|
+
panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm', {
|
|
23
|
+
border: 'none'
|
|
24
|
+
}), ";;label:panelled;"),
|
|
23
25
|
border: {
|
|
24
26
|
top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";;label:top;"),
|
|
25
27
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:left;")
|
|
@@ -27,7 +27,9 @@ var euiPanelBorderStyles = exports.euiPanelBorderStyles = function euiPanelBorde
|
|
|
27
27
|
euiTheme.colors.borderBaseFloating is enough then */
|
|
28
28
|
var hasVisibleBorder = hasFloatingBorder && colorMode === 'DARK';
|
|
29
29
|
return (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
30
|
-
none: "\n /* Using a pseudo element for the border instead of floating border only
|
|
30
|
+
none: "\n /* Using a pseudo element for the border instead of floating border only\n because the transparent border might otherwise be visible with arbitrary\n full-width/height content in light mode. */\n ".concat((0, _euiThemeCommon.euiBorderStyles)(euiThemeContext, {
|
|
31
|
+
borderColor: (borderColor !== null && borderColor !== void 0 ? borderColor : hasVisibleBorder) ? euiTheme.border.color : euiTheme.colors.borderBaseFloating
|
|
32
|
+
}), "\n "),
|
|
31
33
|
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n ")
|
|
32
34
|
});
|
|
33
35
|
};
|
|
@@ -53,9 +55,7 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
|
|
|
53
55
|
// Base
|
|
54
56
|
euiPanel: _ref2,
|
|
55
57
|
grow: _ref,
|
|
56
|
-
hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), "
|
|
57
|
-
hasFloatingBorder: false
|
|
58
|
-
}), ";;label:hasShadow;"),
|
|
58
|
+
hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";;label:hasShadow;"),
|
|
59
59
|
hasBorder: /*#__PURE__*/(0, _react.css)(euiPanelBorderStyles(euiThemeContext, {
|
|
60
60
|
borderColor: euiTheme.border.color,
|
|
61
61
|
hasFloatingBorder: false
|
|
@@ -66,7 +66,7 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
|
|
|
66
66
|
},
|
|
67
67
|
// Setup interactive behavior
|
|
68
68
|
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
69
|
-
none: (0, _euiThemeCommon.
|
|
69
|
+
none: (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, 'l'),
|
|
70
70
|
// Windows high contrast themes ignore box-shadows - use a filter workaround instead
|
|
71
71
|
preferred: "\n &:not(.euiPanel--transparent) {\n filter: drop-shadow(0 ".concat(euiTheme.border.width.thick, " 0 ").concat(euiTheme.border.color, ");\n }\n ")
|
|
72
72
|
}), " transform:translateY(-2px);cursor:pointer;};label:isClickable;")
|
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "euiShadowFlat", {
|
|
|
15
15
|
return _euiThemeCommon.euiShadowFlat;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "euiShadowHover", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _euiThemeCommon.euiShadowHover;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "euiShadowLarge", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function get() {
|
|
@@ -51,7 +57,7 @@ Object.defineProperty(exports, "euiSlightShadowHover", {
|
|
|
51
57
|
return _euiThemeCommon.euiSlightShadowHover;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
|
-
exports.useEuiSlightShadowHover = exports.useEuiShadowFlat = exports.useEuiShadow = void 0;
|
|
60
|
+
exports.useEuiSlightShadowHover = exports.useEuiShadowHover = exports.useEuiShadowFlat = exports.useEuiShadow = void 0;
|
|
55
61
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
56
62
|
var _theme = require("../../services/theme");
|
|
57
63
|
/*
|
|
@@ -62,10 +68,15 @@ var _theme = require("../../services/theme");
|
|
|
62
68
|
* Side Public License, v 1.
|
|
63
69
|
*/
|
|
64
70
|
|
|
71
|
+
/** @deprecated */
|
|
72
|
+
|
|
73
|
+
/** @deprecated use euiShadowHover/useEuiShadowHover instead */
|
|
65
74
|
var useEuiSlightShadowHover = exports.useEuiSlightShadowHover = function useEuiSlightShadowHover(options) {
|
|
66
75
|
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
67
76
|
return (0, _euiThemeCommon.euiSlightShadowHover)(euiThemeContext, options);
|
|
68
77
|
};
|
|
78
|
+
|
|
79
|
+
/** @deprecated - useEuiShadow instead */
|
|
69
80
|
var useEuiShadowFlat = exports.useEuiShadowFlat = function useEuiShadowFlat(options) {
|
|
70
81
|
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
71
82
|
return (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, options);
|
|
@@ -75,4 +86,10 @@ var useEuiShadow = exports.useEuiShadow = function useEuiShadow() {
|
|
|
75
86
|
var options = arguments.length > 1 ? arguments[1] : undefined;
|
|
76
87
|
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
77
88
|
return (0, _euiThemeCommon.euiShadow)(euiThemeContext, size, options);
|
|
89
|
+
};
|
|
90
|
+
var useEuiShadowHover = exports.useEuiShadowHover = function useEuiShadowHover() {
|
|
91
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'l';
|
|
92
|
+
var options = arguments.length > 1 ? arguments[1] : undefined;
|
|
93
|
+
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
94
|
+
return (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, size, options);
|
|
78
95
|
};
|