@elastic/eui 95.12.0 → 96.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.
Files changed (99) hide show
  1. package/es/components/breadcrumbs/_breadcrumb_content.js +2 -0
  2. package/es/components/breadcrumbs/breadcrumbs.js +2 -0
  3. package/es/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  4. package/es/components/datagrid/controls/column_selector.js +2 -2
  5. package/es/components/datagrid/controls/column_selector.styles.js +2 -2
  6. package/es/components/datagrid/controls/column_sorting.js +0 -1
  7. package/es/components/datagrid/controls/column_sorting.styles.js +2 -2
  8. package/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
  9. package/es/components/drag_and_drop/draggable.js +15 -2
  10. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -0
  11. package/es/components/header/header_links/header_links.js +2 -0
  12. package/es/components/page/page_header/page_header_content.js +32 -31
  13. package/es/components/page/page_header/page_header_content.styles.js +28 -16
  14. package/es/components/popover/popover.js +2 -0
  15. package/es/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  16. package/es/components/search_bar/search_box.js +2 -3
  17. package/es/components/tour/tour_step.js +2 -0
  18. package/eui.d.ts +23 -6
  19. package/i18ntokens.json +56 -56
  20. package/lib/components/breadcrumbs/_breadcrumb_content.js +2 -0
  21. package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  22. package/lib/components/datagrid/controls/column_selector.js +2 -2
  23. package/lib/components/datagrid/controls/column_selector.styles.js +1 -1
  24. package/lib/components/datagrid/controls/column_sorting.js +0 -1
  25. package/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  26. package/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
  27. package/lib/components/drag_and_drop/draggable.js +15 -2
  28. package/lib/components/page/page_header/page_header_content.js +29 -30
  29. package/lib/components/page/page_header/page_header_content.styles.js +28 -16
  30. package/lib/components/popover/popover.js +2 -0
  31. package/lib/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  32. package/lib/components/search_bar/search_box.js +1 -2
  33. package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  34. package/optimize/es/components/datagrid/controls/column_selector.js +2 -2
  35. package/optimize/es/components/datagrid/controls/column_selector.styles.js +2 -2
  36. package/optimize/es/components/datagrid/controls/column_sorting.js +0 -1
  37. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +2 -2
  38. package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
  39. package/optimize/es/components/drag_and_drop/draggable.js +6 -2
  40. package/optimize/es/components/page/page_header/page_header_content.js +26 -28
  41. package/optimize/es/components/page/page_header/page_header_content.styles.js +28 -16
  42. package/optimize/es/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  43. package/optimize/es/components/search_bar/search_box.js +2 -3
  44. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  45. package/optimize/lib/components/datagrid/controls/column_selector.js +2 -2
  46. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +1 -1
  47. package/optimize/lib/components/datagrid/controls/column_sorting.js +0 -1
  48. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  49. package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
  50. package/optimize/lib/components/drag_and_drop/draggable.js +6 -2
  51. package/optimize/lib/components/page/page_header/page_header_content.js +25 -27
  52. package/optimize/lib/components/page/page_header/page_header_content.styles.js +28 -16
  53. package/optimize/lib/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  54. package/optimize/lib/components/search_bar/search_box.js +1 -2
  55. package/package.json +1 -1
  56. package/src/global_styling/mixins/_form.scss +0 -245
  57. package/src/global_styling/mixins/_index.scss +0 -3
  58. package/src/global_styling/mixins/_states.scss +0 -33
  59. package/src/global_styling/mixins/_tool_tip.scss +4 -4
  60. package/src/global_styling/variables/_buttons.scss +4 -5
  61. package/src/global_styling/variables/_form.scss +0 -38
  62. package/src/global_styling/variables/_index.scss +0 -3
  63. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -3
  64. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -33
  65. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -2
  66. package/test-env/components/breadcrumbs/_breadcrumb_content.js +2 -0
  67. package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  68. package/test-env/components/datagrid/controls/column_selector.js +2 -2
  69. package/test-env/components/datagrid/controls/column_selector.styles.js +1 -1
  70. package/test-env/components/datagrid/controls/column_sorting.js +0 -1
  71. package/test-env/components/datagrid/controls/column_sorting.styles.js +1 -1
  72. package/test-env/components/datagrid/controls/column_sorting_draggable.js +2 -1
  73. package/test-env/components/drag_and_drop/draggable.js +15 -2
  74. package/test-env/components/page/page_header/page_header_content.js +29 -30
  75. package/test-env/components/page/page_header/page_header_content.styles.js +28 -16
  76. package/test-env/components/popover/popover.js +2 -0
  77. package/test-env/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  78. package/test-env/components/search_bar/search_box.js +1 -2
  79. package/dist/eui_theme_dark.css +0 -173
  80. package/dist/eui_theme_dark.min.css +0 -1
  81. package/dist/eui_theme_light.css +0 -173
  82. package/dist/eui_theme_light.min.css +0 -1
  83. package/src/global_styling/mixins/_link.scss +0 -11
  84. package/src/global_styling/mixins/_loading.scss +0 -6
  85. package/src/global_styling/mixins/_range.scss +0 -62
  86. package/src/global_styling/variables/_page.scss +0 -2
  87. package/src/global_styling/variables/_panel.scss +0 -21
  88. package/src/global_styling/variables/_tool_tip.scss +0 -9
  89. package/src/themes/amsterdam/global_styling/mixins/_link.scss +0 -23
  90. package/src/themes/amsterdam/global_styling/variables/_buttons.scss +0 -4
  91. package/src/themes/amsterdam/global_styling/variables/_page.scss +0 -1
  92. package/src/themes/legacy/_colors_dark.scss +0 -49
  93. package/src/themes/legacy/_colors_light.scss +0 -49
  94. package/src/themes/legacy/_globals.scss +0 -11
  95. package/src/themes/legacy/legacy_dark.scss +0 -11
  96. package/src/themes/legacy/legacy_light.scss +0 -11
  97. package/src/themes/legacy/reset/_index.scss +0 -2
  98. package/src/themes/legacy/reset/_reset.scss +0 -161
  99. package/src/themes/legacy/reset/_scrollbar.scss +0 -6
@@ -1,11 +0,0 @@
1
- @mixin euiLink {
2
- text-align: left;
3
-
4
- &:hover {
5
- text-decoration: underline;
6
- }
7
-
8
- &:focus {
9
- text-decoration: underline;
10
- }
11
- }
@@ -1,6 +0,0 @@
1
- @function euiLoadingSpinnerBorderColors(
2
- $main: $euiColorLightShade,
3
- $highlight: $euiColorPrimary
4
- ) {
5
- @return $highlight $main $main $main;
6
- }
@@ -1,62 +0,0 @@
1
- /*
2
- The CSS in JS version of this file lives in:
3
- - src/components/form/range/range.styles.ts
4
-
5
- The following files still use the Sass version:
6
- - src/themes/amsterdam/overrides/_color_stops.scss
7
- - src/themes/amsterdam/overrides/_hue.scss
8
- */
9
-
10
- @mixin euiRangeTrackSize($compressed: false) {
11
- height: $euiRangeTrackHeight;
12
- width: $euiRangeTrackWidth;
13
-
14
- @if ($compressed) {
15
- height: $euiRangeTrackCompressedHeight;
16
- }
17
- }
18
-
19
- @mixin euiRangeTrackPerBrowser {
20
- &::-webkit-slider-runnable-track { @content; }
21
- &::-moz-range-track { @content; }
22
- &::-ms-fill-lower { @content; }
23
- &::-ms-fill-upper { @content; }
24
- }
25
-
26
- @mixin euiRangeThumbBorder {
27
- border: 2px solid $euiRangeThumbBorderColor;
28
- }
29
-
30
- @mixin euiRangeThumbBoxShadow {
31
- box-shadow:
32
- 0 0 0 1px $euiRangeThumbBorderColor,
33
- 0 2px 2px -1px rgba($euiShadowColor, .2),
34
- 0 1px 5px -2px rgba($euiShadowColor, .2);
35
- }
36
-
37
- @mixin euiRangeThumbFocusBoxShadow {
38
- box-shadow: 0 0 0 2px $euiFocusRingColor;
39
- }
40
-
41
- @mixin euiRangeThumbStyle {
42
- @include euiRangeThumbBoxShadow;
43
- @include euiRangeThumbBorder;
44
- cursor: pointer;
45
- background-color: $euiRangeThumbBackgroundColor;
46
- padding: 0;
47
- height: $euiRangeThumbHeight;
48
- width: $euiRangeThumbWidth;
49
- box-sizing: border-box; // required for firefox or the border makes the width and height to increase
50
- }
51
-
52
- @mixin euiRangeThumbPerBrowser {
53
- &::-webkit-slider-thumb { @content; }
54
- &::-moz-range-thumb { @content; }
55
- &::-ms-thumb { @content; }
56
- }
57
-
58
- @mixin euiRangeThumbFocus {
59
- @include euiRangeThumbBorder;
60
- @include euiRangeThumbFocusBoxShadow;
61
- background-color: $euiColorPrimary;
62
- }
@@ -1,2 +0,0 @@
1
- $euiPageDefaultMaxWidth: 1000px !default;
2
- $euiPageSidebarMinWidth: $euiSizeL * 8 !default;
@@ -1,21 +0,0 @@
1
- $euiPanelPaddingModifiers: (
2
- 'paddingSmall': $euiSizeS,
3
- 'paddingMedium': $euiSize,
4
- 'paddingLarge': $euiSizeL
5
- ) !default;
6
-
7
- $euiPanelBorderRadiusModifiers: (
8
- 'borderRadiusNone': 0,
9
- 'borderRadiusMedium': $euiBorderRadius,
10
- ) !default;
11
-
12
- $euiPanelBackgroundColorModifiers: (
13
- 'transparent': transparent,
14
- 'plain': $euiColorEmptyShade,
15
- 'subdued': $euiPageBackgroundColor,
16
- 'accent': tintOrShade($euiColorAccent, 90%, 70%),
17
- 'primary': tintOrShade($euiColorPrimary, 90%, 70%),
18
- 'success': tintOrShade($euiColorSuccess, 90%, 70%),
19
- 'warning': tintOrShade($euiColorWarning, 90%, 70%),
20
- 'danger': tintOrShade($euiColorDanger, 90%, 70%),
21
- ) !default;
@@ -1,9 +0,0 @@
1
- $euiTooltipBackgroundColor: tintOrShade($euiColorFullShade, 25%, 100%) !default;
2
- $euiTooltipBorderColor: tintOrShade($euiColorFullShade, 35%, 80%) !default;
3
-
4
- $euiTooltipAnimations: (
5
- top: euiToolTipTop,
6
- left: euiToolTipBottom,
7
- bottom: euiToolTipLeft,
8
- right: euiToolTipRight,
9
- ) !default;
@@ -1,23 +0,0 @@
1
- @mixin euiLink {
2
- text-align: left;
3
- font-weight: $euiButtonFontWeight;
4
-
5
- &:hover {
6
- @include euiLinkHover;
7
- }
8
-
9
- &:focus {
10
- @include euiFocusRing(null, 'outer');
11
- @include euiLinkFocus;
12
- }
13
- }
14
-
15
- @mixin euiLinkHover {
16
- text-decoration: underline;
17
- }
18
-
19
- @mixin euiLinkFocus {
20
- text-decoration: underline;
21
- // stylelint-disable-next-line declaration-no-important
22
- text-decoration-thickness: $euiBorderWidthThick !important;
23
- }
@@ -1,4 +0,0 @@
1
- $euiButtonColorDisabled: $euiColorDisabled;
2
- $euiButtonColorDisabledText: $euiColorDisabledText;
3
- $euiButtonDefaultTransparency: .8;
4
- $euiButtonFontWeight: $euiFontWeightMedium;
@@ -1 +0,0 @@
1
- $euiPageDefaultMaxWidth: map-get($euiBreakpoints, 'xl');
@@ -1,49 +0,0 @@
1
- // stylelint-disable color-no-hex
2
-
3
- // This extra import allows any variables that are created via functions to work when loaded into JS
4
- @import '../../global_styling/functions/index';
5
-
6
- // These colors stay the same no matter the theme
7
- $euiColorGhost: #FFF !default;
8
- $euiColorInk: #000 !default;
9
-
10
- // Core
11
- $euiColorPrimary: #1BA9F5 !default;
12
- $euiColorAccent: #F990C0 !default;
13
-
14
- // Status
15
- $euiColorSuccess: #7DE2D1 !default;
16
- $euiColorWarning: #FFCE7A !default;
17
- $euiColorDanger: #F66 !default;
18
-
19
- // Grays
20
- $euiColorEmptyShade: #1D1E24 !default;
21
- $euiColorLightestShade: #25262E !default;
22
- $euiColorLightShade: #343741 !default;
23
- $euiColorMediumShade: #535966 !default;
24
- $euiColorDarkShade: #98A2B3 !default;
25
- $euiColorDarkestShade: #D4DAE5 !default;
26
- $euiColorFullShade: #FFF !default;
27
-
28
- // Backgrounds
29
- $euiPageBackgroundColor: shade($euiColorLightestShade, 45%) !default;
30
- $euiColorHighlight: #2E2D25 !default;
31
-
32
- // Variations from core
33
- $euiTextColor: #DFE5EF !default;
34
- $euiTitleColor: $euiTextColor !default;
35
- $euiTextSubduedColor: makeHighContrastColor($euiColorMediumShade) !default;
36
- $euiColorDisabled: shade($euiTextColor, 70%) !default;
37
-
38
- // Contrasty text variants
39
- $euiColorPrimaryText: makeHighContrastColor($euiColorPrimary) !default;
40
- $euiColorSuccessText: makeHighContrastColor($euiColorSuccess) !default;
41
- $euiColorAccentText: makeHighContrastColor($euiColorAccent) !default;
42
- $euiColorWarningText: makeHighContrastColor($euiColorWarning) !default;
43
- $euiColorDangerText: makeHighContrastColor($euiColorDanger) !default;
44
- $euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
45
- $euiLinkColor: $euiColorPrimaryText !default;
46
-
47
- // Charts
48
- $euiColorChartLines: $euiColorLightShade !default;
49
- $euiColorChartBand: tint($euiColorLightestShade, 2.5%) !default;
@@ -1,49 +0,0 @@
1
- // stylelint-disable color-no-hex
2
-
3
- // This extra import allows any variables that are created via functions to work when loaded into JS
4
- @import '../../global_styling/functions/index';
5
-
6
- // These colors stay the same no matter the theme
7
- $euiColorGhost: #FFF !default;
8
- $euiColorInk: #000 !default;
9
-
10
- // Core
11
- $euiColorPrimary: #006BB4 !default;
12
- $euiColorAccent: #DD0A73 !default;
13
-
14
- // Status
15
- $euiColorSuccess: #017D73 !default;
16
- $euiColorWarning: #F5A700 !default;
17
- $euiColorDanger: #BD271E !default;
18
-
19
- // Grays
20
- $euiColorEmptyShade: #FFF !default;
21
- $euiColorLightestShade: #F5F7FA !default;
22
- $euiColorLightShade: #D3DAE6 !default;
23
- $euiColorMediumShade: #98A2B3 !default;
24
- $euiColorDarkShade: #69707D !default;
25
- $euiColorDarkestShade: #343741 !default;
26
- $euiColorFullShade: #000 !default;
27
-
28
- // Backgrounds
29
- $euiPageBackgroundColor: tint($euiColorLightestShade, 50%) !default;
30
- $euiColorHighlight: #FFFCDD !default;
31
-
32
- // Every color below must be based mathematically on the set above and in a particular order.
33
- $euiTextColor: $euiColorDarkestShade !default;
34
- $euiTitleColor: shade($euiTextColor, 50%) !default;
35
- $euiTextSubduedColor: makeHighContrastColor($euiColorMediumShade) !default;
36
- $euiColorDisabled: tint($euiTextColor, 70%) !default;
37
-
38
- // Contrasty text variants
39
- $euiColorPrimaryText: makeHighContrastColor($euiColorPrimary) !default;
40
- $euiColorSuccessText: makeHighContrastColor($euiColorSuccess) !default;
41
- $euiColorAccentText: makeHighContrastColor($euiColorAccent) !default;
42
- $euiColorWarningText: makeHighContrastColor($euiColorWarning) !default;
43
- $euiColorDangerText: makeHighContrastColor($euiColorDanger) !default;
44
- $euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
45
- $euiLinkColor: $euiColorPrimaryText !default;
46
-
47
- // Charts
48
- $euiColorChartLines: shade($euiColorLightestShade, 3%) !default;
49
- $euiColorChartBand: $euiColorLightestShade !default;
@@ -1,11 +0,0 @@
1
- // Helper file for supplying EUI globals (invisibles only)
2
- // Must be imported AFTER a colors modifier file
3
-
4
- // Functions need to be first, since we use them in our variables and mixin definitions
5
- @import '../../global_styling/functions/index';
6
-
7
- // Variables come next, and are used in some mixins
8
- @import '../../global_styling/variables/index';
9
-
10
- // Mixins provide generic code expansion through helpers
11
- @import '../../global_styling/mixins/index';
@@ -1,11 +0,0 @@
1
- // These are variable overwrites used only for this theme.
2
- @import 'colors_dark';
3
-
4
- // Global styling
5
- @import '../../global_styling/index';
6
-
7
- // Global reset
8
- @import './reset/index';
9
-
10
- // Components
11
- @import '../../components/index';
@@ -1,11 +0,0 @@
1
- // This is the default theme.
2
- @import 'colors_light';
3
-
4
- // Global styling
5
- @import '../../global_styling/index';
6
-
7
- // Global reset
8
- @import './reset/index';
9
-
10
- // Components
11
- @import '../../components/index';
@@ -1,2 +0,0 @@
1
- @import 'reset';
2
- @import 'scrollbar';
@@ -1,161 +0,0 @@
1
- // This file allows multi-line selectors to make it more readable
2
- // stylelint-disable selector-list-comma-newline-after
3
-
4
- /**
5
- * Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126).
6
- *
7
- */
8
-
9
- *, *::before, *::after {
10
- box-sizing: border-box;
11
- }
12
-
13
- html, body, div, span, applet, object, iframe,
14
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
15
- a, abbr, acronym, address, big, cite, code,
16
- del, dfn, em, img, ins, kbd, q, s, samp,
17
- small, strike, strong, sub, sup, tt, var,
18
- b, u, i, center,
19
- dl, dt, dd, ol, ul, li,
20
- fieldset, form, label, legend,
21
- table, caption, tbody, tfoot, thead, tr, th, td,
22
- article, aside, canvas, details, embed,
23
- figure, figcaption, footer, header, hgroup,
24
- menu, nav, output, ruby, section, summary,
25
- time, mark, audio, video {
26
- margin: 0;
27
- padding: 0;
28
- border: none;
29
- vertical-align: baseline;
30
- }
31
-
32
- code, pre, kbd, samp {
33
- font-family: $euiCodeFontFamily;
34
- }
35
-
36
- h1, h2, h3, h4, h5, h6, p {
37
- font-family: inherit;
38
- font-weight: inherit;
39
- font-size: inherit;
40
- }
41
-
42
- input, textarea, select, button {
43
- font-family: $euiFontFamily;
44
- }
45
-
46
- em {
47
- font-style: italic;
48
- }
49
-
50
- strong {
51
- font-weight: $euiFontWeightBold;
52
- }
53
-
54
- /* HTML5 display-role reset for older browsers */
55
- article, aside, details, figcaption, figure,
56
- footer, header, hgroup, menu, nav, section {
57
- display: block;
58
- }
59
-
60
- html {
61
- @include euiFont;
62
- font-size: $euiFontSize;
63
- color: $euiTextColor;
64
- height: 100%;
65
- background-color: $euiPageBackgroundColor;
66
- }
67
-
68
- body {
69
- line-height: $euiBodyLineHeight;
70
- }
71
-
72
- *:focus {
73
- outline: none;
74
-
75
- // stylelint-disable selector-no-vendor-prefix
76
- // Disables border that shows up when tabbing in Firefox.
77
- &::-moz-focus-inner {
78
- border: none;
79
- }
80
-
81
- &:-moz-focusring {
82
- outline: none;
83
- }
84
- }
85
-
86
- a {
87
- text-decoration: none;
88
- color: $euiColorPrimary;
89
-
90
- &:hover {
91
- text-decoration: none;
92
- }
93
-
94
- &:focus {
95
- text-decoration: none;
96
- outline: none;
97
- }
98
- }
99
-
100
- a:hover, button, [role='button'] {
101
- cursor: pointer;
102
- }
103
-
104
- input {
105
- margin: 0;
106
- padding: 0;
107
-
108
- &:disabled {
109
- opacity: 1; /* required on iOS */
110
- }
111
- }
112
-
113
- button {
114
- background: none;
115
- border: none;
116
- padding: 0;
117
- margin: 0;
118
- outline: none;
119
- font-size: inherit;
120
- color: inherit;
121
- border-radius: 0;
122
-
123
- &:hover {
124
- cursor: pointer;
125
- }
126
- }
127
-
128
- ol, ul {
129
- list-style: none;
130
- }
131
-
132
- blockquote, q {
133
- quotes: none;
134
- }
135
-
136
- blockquote::before, blockquote::after,
137
- q::before, q::after {
138
- content: '';
139
- content: none;
140
- }
141
-
142
- table {
143
- border-collapse: collapse;
144
- border-spacing: 0;
145
- }
146
-
147
- hr {
148
- margin: 0;
149
- }
150
-
151
- fieldset {
152
- min-inline-size: auto;
153
- }
154
-
155
- /* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative
156
- * https://bugs.chromium.org/p/chromium/issues/detail?id=966480
157
- */
158
-
159
- svg text {
160
- letter-spacing: normal !important; // stylelint-disable-line declaration-no-important
161
- }
@@ -1,6 +0,0 @@
1
- // Declaring the top level scrollbar colors to match the theme also requires setting the sizes on Chrome
2
- // so that it knows to use custom styles. Therefore, we just reuse the same scrollbar mixin with `thick` size.
3
-
4
- html {
5
- @include euiScrollBar($euiColorDarkShade, shadeOrTint($euiPageBackgroundColor, 3%, 7%), 'thick');
6
- }