@elastic/eui 106.7.0 → 107.0.1
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/badge/beta_badge/beta_badge.js +1 -0
- package/es/components/basic_table/basic_table.styles.js +6 -4
- package/es/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/es/components/code/code_syntax.styles.js +1 -1
- 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/icon/icon.js +31 -14
- package/es/components/icon/icon_map.js +1 -1
- package/es/components/page_template/inner/page_inner.styles.js +3 -1
- package/es/components/panel/panel.styles.js +6 -6
- package/es/components/table/table_row.styles.js +3 -3
- 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 +159 -4
- package/lib/components/badge/beta_badge/beta_badge.js +1 -0
- package/lib/components/basic_table/basic_table.styles.js +5 -3
- package/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/lib/components/code/code_syntax.styles.js +1 -1
- 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/icon/icon.js +31 -14
- package/lib/components/icon/icon_map.js +1 -1
- package/lib/components/page_template/inner/page_inner.styles.js +3 -1
- package/lib/components/panel/panel.styles.js +5 -5
- package/lib/components/table/table_row.styles.js +3 -3
- 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/badge/beta_badge/beta_badge.js +1 -0
- package/optimize/es/components/basic_table/basic_table.styles.js +6 -4
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/optimize/es/components/code/code_syntax.styles.js +1 -1
- 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/icon/icon.js +31 -14
- package/optimize/es/components/icon/icon_map.js +1 -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/components/table/table_row.styles.js +3 -3
- 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/badge/beta_badge/beta_badge.js +1 -0
- package/optimize/lib/components/basic_table/basic_table.styles.js +5 -3
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/optimize/lib/components/code/code_syntax.styles.js +1 -1
- 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/icon/icon.js +31 -14
- package/optimize/lib/components/icon/icon_map.js +1 -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/components/table/table_row.styles.js +3 -3
- 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/eui.d.ts +33359 -0
- package/package.json +5 -5
- 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/badge/beta_badge/beta_badge.js +1 -0
- package/test-env/components/basic_table/basic_table.styles.js +5 -3
- package/test-env/components/bottom_bar/bottom_bar.styles.js +4 -2
- package/test-env/components/code/code_syntax.styles.js +1 -1
- 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/icon/icon_map.js +1 -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/components/table/table_row.styles.js +3 -3
- 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
|
@@ -135,7 +135,43 @@
|
|
|
135
135
|
"xl": "1200px"
|
|
136
136
|
},
|
|
137
137
|
"euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
|
|
138
|
-
"euiShadowColor": "#
|
|
138
|
+
"euiShadowColor": "#2B394F",
|
|
139
|
+
"euiShadows": {
|
|
140
|
+
"xs": {
|
|
141
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px 2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)",
|
|
142
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px -2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)"
|
|
143
|
+
},
|
|
144
|
+
"s": {
|
|
145
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 2px 7px 0px hsl(216.67deg 29.51% 23.92% / 0.08), 0px 4px 11px 0px hsl(216.67deg 29.51% 23.92% / 0.05)",
|
|
146
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -2px 7px 0px hsl(216.67deg 29.51% 23.92% / 0.08), 0px -4px 11px 0px hsl(216.67deg 29.51% 23.92% / 0.05)"
|
|
147
|
+
},
|
|
148
|
+
"m": {
|
|
149
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 3px 10px 0px hsl(216.67deg 29.51% 23.92% / 0.1), 0px 6px 14px 0px hsl(216.67deg 29.51% 23.92% / 0.06)",
|
|
150
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -3px 10px 0px hsl(216.67deg 29.51% 23.92% / 0.1), 0px -6px 14px 0px hsl(216.67deg 29.51% 23.92% / 0.06)"
|
|
151
|
+
},
|
|
152
|
+
"l": {
|
|
153
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 4px 13px 0px hsl(216.67deg 29.51% 23.92% / 0.12), 0px 8px 17px 0px hsl(216.67deg 29.51% 23.92% / 0.07)",
|
|
154
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -4px 13px 0px hsl(216.67deg 29.51% 23.92% / 0.12), 0px -8px 17px 0px hsl(216.67deg 29.51% 23.92% / 0.07)"
|
|
155
|
+
},
|
|
156
|
+
"xl": {
|
|
157
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 5px 16px 0px hsl(216.67deg 29.51% 23.92% / 0.14), 0px 10px 20px 0px hsl(216.67deg 29.51% 23.92% / 0.08)",
|
|
158
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -5px 16px 0px hsl(216.67deg 29.51% 23.92% / 0.14), 0px -10px 20px 0px hsl(216.67deg 29.51% 23.92% / 0.08)"
|
|
159
|
+
},
|
|
160
|
+
"hover": {
|
|
161
|
+
"base": {
|
|
162
|
+
"down": "0px 0px 2px 0px hsla(216.67,29.51%,23.92%,0.16), 0px 2px 7px 0px hsla(216.67,29.51%,23.92%,0.08), 0px 4px 11px 0px hsla(216.67,29.51%,23.92%,0.05)",
|
|
163
|
+
"up": "0px 0px 2px 0px hsla(216.67,29.51%,23.92%,0.16), 0px -2px 7px 0px hsla(216.67,29.51%,23.92%,0.08), 0px -4px 11px 0px hsla(216.67,29.51%,23.92%,0.05)"
|
|
164
|
+
},
|
|
165
|
+
"xl": {
|
|
166
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 6px 19px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 12px 23px 0px hsl(216.67deg 29.51% 23.92% / 0.09)",
|
|
167
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -6px 19px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -12px 23px 0px hsl(216.67deg 29.51% 23.92% / 0.09)"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"flat": {
|
|
171
|
+
"down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px 2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)",
|
|
172
|
+
"up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px -2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
139
175
|
"euiSize": "16px",
|
|
140
176
|
"euiSizeXS": "4px",
|
|
141
177
|
"euiSizeS": "8px",
|
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';
|
|
@@ -25407,7 +25418,7 @@ declare module '@elastic/eui/src/components/basic_table/expanded_item_actions' {
|
|
|
25407
25418
|
}
|
|
25408
25419
|
declare module '@elastic/eui/src/components/basic_table/basic_table.styles' {
|
|
25409
25420
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
25410
|
-
export const euiBasicTableBodyLoading: (
|
|
25421
|
+
export const euiBasicTableBodyLoading: (euiThemeContext: UseEuiTheme) => import("@emotion/react").SerializedStyles;
|
|
25411
25422
|
export const safariLoadingWorkaround: import("@emotion/react").SerializedStyles;
|
|
25412
25423
|
|
|
25413
25424
|
}
|
|
@@ -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;
|
|
@@ -112,6 +112,7 @@ var EuiBetaBadge = exports.EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
112
112
|
anchorProps: anchorProps
|
|
113
113
|
}, (0, _react2.jsx)("span", _extends({
|
|
114
114
|
tabIndex: 0,
|
|
115
|
+
role: "button",
|
|
115
116
|
css: cssStyles,
|
|
116
117
|
className: classes
|
|
117
118
|
}, rest), icon || label));
|
|
@@ -16,9 +16,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
16
16
|
* Side Public License, v 1.
|
|
17
17
|
*/
|
|
18
18
|
var tableLoadingLine = (0, _react.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n from {\n ", "\n ", "\n }\n\n 20% {\n ", "\n ", "\n }\n\n 80% {\n ", "\n ", "\n }\n\n 100% {\n ", "\n ", "\n }\n"])), (0, _global_styling.logicalCSS)('left', 0), (0, _global_styling.logicalCSS)('width', 0), (0, _global_styling.logicalCSS)('left', 0), (0, _global_styling.logicalCSS)('width', '40%'), (0, _global_styling.logicalCSS)('left', '60%'), (0, _global_styling.logicalCSS)('width', '40%'), (0, _global_styling.logicalCSS)('left', '100%'), (0, _global_styling.logicalCSS)('width', 0));
|
|
19
|
-
var euiBasicTableBodyLoading = exports.euiBasicTableBodyLoading = function euiBasicTableBodyLoading(
|
|
20
|
-
var euiTheme =
|
|
21
|
-
return /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;&::before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " background-color:", euiTheme.colors.primary, ";animation:", tableLoadingLine, " 1s linear infinite;", _global_styling.euiCantAnimate, "{animation
|
|
19
|
+
var euiBasicTableBodyLoading = exports.euiBasicTableBodyLoading = function euiBasicTableBodyLoading(euiThemeContext) {
|
|
20
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
21
|
+
return /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;&::before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " background-color:", euiTheme.colors.primary, ";animation:", tableLoadingLine, " 1s linear infinite;", _global_styling.euiCantAnimate, "{animation:none;background:repeating-linear-gradient(\n -45deg,\n ", euiTheme.colors.backgroundBasePlain, ",\n ", euiTheme.colors.backgroundBasePlain, " ", euiTheme.size.xs, ",\n ", euiTheme.colors.primary, " ", euiTheme.size.xs, ",\n ", euiTheme.colors.primary, " ", euiTheme.size.s, "\n );", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
22
|
+
forced: "\n ".concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n ")
|
|
23
|
+
}), ";}};label:euiBasicTableBodyLoading;");
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
// Fix to make the loading indicator position correctly in Safari
|
|
@@ -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;"),
|
|
@@ -56,7 +56,7 @@ var euiCodeSyntaxVariables = exports.euiCodeSyntaxVariables = function euiCodeSy
|
|
|
56
56
|
selectorClassColor: euiTheme.components.codeSelectorClassColor,
|
|
57
57
|
selectorIdColor: euiTheme.components.codeSelectorIdColor,
|
|
58
58
|
get tokensCss() {
|
|
59
|
-
return "\n .token.punctuation:not(.interpolation-punctuation):not([class*='attr-']) {\n opacity: ".concat(highContrastMode ? '1' : '.7', ";\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata,\n .token.coord,\n .token.blockquote {\n color: ").concat(this.commentColor, ";\n font-style: italic;\n }\n\n .token.selector {\n color: ").concat(this.selectorTagColor, ";\n }\n\n .token.string,\n .token.interpolation,\n .token.interpolation-punctuation,\n .token.doc-comment .token.keyword,\n .token.attr-value,\n .token.url .token.content {\n color: ").concat(this.stringColor, ";\n }\n\n .token.number,\n .token.boolean,\n .token.keyword.nil,\n .token.regex,\n .token.variable,\n .token.unit,\n .token.hexcode,\n .token.attr-name,\n .token.attr-equals {\n color: ").concat(this.numberColor, ";\n }\n\n .token.atrule .token.rule,\n .token.keyword {\n color: ").concat(this.keywordColor, ";\n }\n\n .token.function {\n color: ").concat(this.functionTitleColor, ";\n }\n\n .token.tag {\n color: ").concat(this.tagColor, ";\n }\n\n .token.class-name {\n color: ").concat(this.typeColor, ";\n }\n\n .token.property {\n color: ").concat(this.attributeColor, ";\n }\n\n .token.console,\n .token.list-punctuation,\n .token.url-reference,\n .token.url .token.url {\n color: ").concat(this.symbolColor, ";\n }\n\n .token.paramater {\n color: ").concat(this.paramsColor, ";\n }\n\n .token.meta,\n .token.important {\n color: ").concat(this.metaColor, ";\n }\n\n .token.title {\n color: ").concat(this.titleColor, ";\n }\n\n .token.section {\n color: ").concat(this.sectionColor, ";\n }\n\n .token.prefix.inserted,\n .token.prefix.deleted {\n padding-inline-start: -").concat(euiTheme.size.xs, ";\n margin-inline-start: -").concat(euiTheme.size.xs, ";\n }\n\n .token.prefix.inserted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.additionColor, ";\n color: ").concat(this.additionColor, ";\n }\n\n .token.prefix.deleted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.deletionColor, ";\n color: ").concat(this.deletionColor, ";\n }\n\n .token.selector .token.class {\n color: ").concat(this.selectorClassColor, ";\n }\n\n .token.selector .token.id {\n color: ").concat(this.selectorIdColor, ";\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.important,\n .token.bold {\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n\n .token.url-reference,\n .token.url .token.url {\n text-decoration: underline;\n }\n\n .token.entity {\n cursor: help;\n }");
|
|
59
|
+
return "\n .token.punctuation:not(.interpolation-punctuation):not([class*='attr-']) {\n opacity: ".concat(highContrastMode ? '1' : '.7', ";\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata,\n .token.coord,\n .token.blockquote {\n color: ").concat(this.commentColor, ";\n font-style: italic;\n }\n\n .token.selector {\n color: ").concat(this.selectorTagColor, ";\n }\n\n .token.string,\n .token.interpolation,\n .token.interpolation-punctuation,\n .token.doc-comment .token.keyword,\n .token.attr-value,\n .token.url .token.content {\n color: ").concat(this.stringColor, ";\n }\n\n .token.number,\n .token.boolean,\n .token.keyword.nil,\n .token.regex,\n .token.variable,\n .token.unit,\n .token.hexcode,\n .token.attr-name,\n .token.attr-equals {\n color: ").concat(this.numberColor, ";\n }\n\n .token.atrule .token.rule,\n .token.key.atrule,\n .token.keyword {\n color: ").concat(this.keywordColor, ";\n }\n\n .token.function {\n color: ").concat(this.functionTitleColor, ";\n }\n\n .token.tag {\n color: ").concat(this.tagColor, ";\n }\n\n .token.class-name {\n color: ").concat(this.typeColor, ";\n }\n\n .token.property {\n color: ").concat(this.attributeColor, ";\n }\n\n .token.console,\n .token.list-punctuation,\n .token.url-reference,\n .token.url .token.url {\n color: ").concat(this.symbolColor, ";\n }\n\n .token.paramater {\n color: ").concat(this.paramsColor, ";\n }\n\n .token.meta,\n .token.important {\n color: ").concat(this.metaColor, ";\n }\n\n .token.title {\n color: ").concat(this.titleColor, ";\n }\n\n .token.section {\n color: ").concat(this.sectionColor, ";\n }\n\n .token.prefix.inserted,\n .token.prefix.deleted {\n padding-inline-start: -").concat(euiTheme.size.xs, ";\n margin-inline-start: -").concat(euiTheme.size.xs, ";\n }\n\n .token.prefix.inserted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.additionColor, ";\n color: ").concat(this.additionColor, ";\n }\n\n .token.prefix.deleted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.deletionColor, ";\n color: ").concat(this.deletionColor, ";\n }\n\n .token.selector .token.class {\n color: ").concat(this.selectorClassColor, ";\n }\n\n .token.selector .token.id {\n color: ").concat(this.selectorIdColor, ";\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.important,\n .token.bold {\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n\n .token.url-reference,\n .token.url .token.url {\n text-decoration: underline;\n }\n\n .token.entity {\n cursor: help;\n }");
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -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;"),
|
|
@@ -21,7 +21,7 @@ var _services = require("../../services");
|
|
|
21
21
|
var _named_colors = require("./named_colors");
|
|
22
22
|
var _icon = require("./icon.styles");
|
|
23
23
|
var _react3 = require("@emotion/react");
|
|
24
|
-
var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "onIconLoad", "style", "stylesMemoizer"];
|
|
24
|
+
var _excluded = ["type", "size", "color", "className", "tabIndex", "title", "role", "onIconLoad", "style", "stylesMemoizer", "aria-hidden", "titleId"];
|
|
25
25
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
26
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
27
27
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -201,9 +201,12 @@ var EuiIconClass = exports.EuiIconClass = /*#__PURE__*/function (_PureComponent)
|
|
|
201
201
|
className = _this$props.className,
|
|
202
202
|
tabIndex = _this$props.tabIndex,
|
|
203
203
|
title = _this$props.title,
|
|
204
|
+
role = _this$props.role,
|
|
204
205
|
onIconLoad = _this$props.onIconLoad,
|
|
205
206
|
style = _this$props.style,
|
|
206
207
|
stylesMemoizer = _this$props.stylesMemoizer,
|
|
208
|
+
ariaHidden = _this$props['aria-hidden'],
|
|
209
|
+
titleId = _this$props.titleId,
|
|
207
210
|
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
208
211
|
var _this$state = this.state,
|
|
209
212
|
isLoading = _this$state.isLoading,
|
|
@@ -228,41 +231,55 @@ var EuiIconClass = exports.EuiIconClass = /*#__PURE__*/function (_PureComponent)
|
|
|
228
231
|
var styles = stylesMemoizer(_icon.euiIconStyles);
|
|
229
232
|
var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
|
|
230
233
|
var icon = this.state.icon || _empty.icon;
|
|
234
|
+
var isAriaHidden = [true, 'true'].includes(ariaHidden !== null && ariaHidden !== void 0 ? ariaHidden : false);
|
|
235
|
+
var isPresentationOnly = !(title || this.props['aria-label'] || this.props['aria-labelledby']) || ['none', 'presentation'].includes(role !== null && role !== void 0 ? role : '') || isAriaHidden;
|
|
236
|
+
var accessibleTitle = isPresentationOnly ? undefined : title;
|
|
237
|
+
|
|
238
|
+
// implicitly set the ARIA role for the icon only if:
|
|
239
|
+
// - The user did NOT provide a `role` prop
|
|
240
|
+
// - `aria-hidden` is NOT true
|
|
241
|
+
// This ensures user-supplied `role` and `aria-hidden` always take precedence.
|
|
242
|
+
// If set, role is:
|
|
243
|
+
// - 'presentation' for decorative icons
|
|
244
|
+
// - 'img' for meaningful icons
|
|
245
|
+
var accessibleRole = function () {
|
|
246
|
+
if (isAriaHidden) return undefined;
|
|
247
|
+
if (isPresentationOnly) return 'presentation';
|
|
248
|
+
return 'img';
|
|
249
|
+
}();
|
|
231
250
|
if (typeof icon === 'string') {
|
|
232
251
|
return (0, _react3.jsx)("img", _extends({
|
|
233
|
-
alt:
|
|
252
|
+
alt: accessibleTitle,
|
|
234
253
|
src: icon,
|
|
235
254
|
className: classes,
|
|
236
255
|
css: cssStyles,
|
|
237
256
|
style: style,
|
|
238
|
-
tabIndex: tabIndex
|
|
257
|
+
tabIndex: tabIndex,
|
|
258
|
+
role: role !== null && role !== void 0 ? role : accessibleRole,
|
|
259
|
+
"aria-hidden": ariaHidden
|
|
239
260
|
}, rest));
|
|
240
261
|
} else {
|
|
241
262
|
var Svg = icon;
|
|
242
263
|
|
|
243
|
-
// If there is no aria-label, aria-labelledby, or title it gets aria-hidden true
|
|
244
|
-
var isAriaHidden = !(this.props['aria-label'] || this.props['aria-labelledby'] || this.props.title);
|
|
245
|
-
|
|
246
264
|
// If no aria-label or aria-labelledby is provided but there's a title, a titleId is generated
|
|
247
265
|
// The svg aria-labelledby attribute gets this titleId
|
|
248
266
|
// The svg title element gets this titleId as an id
|
|
249
|
-
var
|
|
250
|
-
titleId: generateId()
|
|
267
|
+
var accessibleTitleId = !this.props['aria-label'] && !this.props['aria-labelledby'] && title ? {
|
|
268
|
+
titleId: titleId || generateId()
|
|
251
269
|
} : undefined;
|
|
252
270
|
return (0, _react3.jsx)(Svg, _extends({
|
|
253
271
|
className: classes,
|
|
254
272
|
style: optionalCustomStyles,
|
|
255
273
|
css: cssStyles,
|
|
256
274
|
tabIndex: tabIndex,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
275
|
+
title: accessibleTitle,
|
|
276
|
+
role: role !== null && role !== void 0 ? role : accessibleRole,
|
|
277
|
+
"aria-hidden": ariaHidden
|
|
278
|
+
}, accessibleTitleId, {
|
|
260
279
|
"data-icon-type": iconTitle,
|
|
261
280
|
"data-is-loaded": isLoaded || undefined,
|
|
262
281
|
"data-is-loading": isLoading || undefined
|
|
263
|
-
}, rest
|
|
264
|
-
"aria-hidden": isAriaHidden || rest['aria-hidden']
|
|
265
|
-
}));
|
|
282
|
+
}, rest));
|
|
266
283
|
}
|
|
267
284
|
}
|
|
268
285
|
}]);
|
|
@@ -507,7 +507,7 @@ var typeToPathMap = exports.typeToPathMap = {
|
|
|
507
507
|
vulnerabilityManagementApp: 'app_vulnerability_management',
|
|
508
508
|
warning: 'warning',
|
|
509
509
|
warningFilled: 'warning',
|
|
510
|
-
// NOTE: To be deprecated in favor of `
|
|
510
|
+
// NOTE: To be deprecated in favor of `warning`
|
|
511
511
|
watchesApp: 'app_watches',
|
|
512
512
|
web: 'web',
|
|
513
513
|
wordWrap: 'wordWrap',
|
|
@@ -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;")
|
|
@@ -52,7 +52,7 @@ var euiTableRowStyles = exports.euiTableRowStyles = function euiTableRowStyles(e
|
|
|
52
52
|
* Right column styles + border
|
|
53
53
|
* Used for cell actions and row expander arrow
|
|
54
54
|
*/
|
|
55
|
-
hasRightColumn: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', mobileSizes.actions.width), " &::
|
|
55
|
+
hasRightColumn: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', mobileSizes.actions.width), " &::before{content:'';position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('right', mobileSizes.actions.width), " ", (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";};label:hasRightColumn;"),
|
|
56
56
|
/**
|
|
57
57
|
* Bottom of card - expanded rows
|
|
58
58
|
*/
|
|
@@ -60,8 +60,8 @@ var euiTableRowStyles = exports.euiTableRowStyles = function euiTableRowStyles(e
|
|
|
60
60
|
// On mobile, visually move the expanded row to join up with the
|
|
61
61
|
// preceding table row via negative margins
|
|
62
62
|
'margin-top', (0, _global_styling.mathWithUnits)([cellContentPadding, euiTheme.border.width.thin], function (x, y) {
|
|
63
|
-
return (x + y) * -1;
|
|
64
|
-
})), (0, _global_styling.logicalCSS)('padding-left', cellContentPadding), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.logicalCSS)('border-top-left-radius', 0), " ", (0, _global_styling.logicalCSS)('border-top-right-radius', 0), "
|
|
63
|
+
return (x + y * 2) * -1;
|
|
64
|
+
})), (0, _global_styling.logicalCSS)('padding-left', cellContentPadding), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.logicalCSS)('border-top-left-radius', 0), " ", (0, _global_styling.logicalCSS)('border-top-right-radius', 0), " &:after{", (0, _global_styling.logicalCSS)('border-top', 'none'), ";}clip-path:polygon(-50% 0, 150% 0, 150% 100vh, -50% 100vh);>.euiTableRowCell{", (0, _global_styling.logicalCSS)('width', '100%'), ";}", expandedAnimationCss, ";;label:expanded;")
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -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
|
};
|