@elastic/eui 87.1.0 → 87.2.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 (56) hide show
  1. package/dist/eui_theme_dark.css +0 -234
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -234
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/page_template/page_template.js +2 -1
  6. package/es/components/resizable_container/index.js +2 -1
  7. package/es/components/resizable_container/resizable_button.js +81 -50
  8. package/es/components/resizable_container/resizable_button.styles.js +66 -0
  9. package/es/components/resizable_container/resizable_collapse_button.js +24 -14
  10. package/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
  11. package/es/components/steps/step.styles.js +5 -5
  12. package/es/services/accessibility/html_id_generator.js +19 -3
  13. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  14. package/eui.d.ts +113 -19
  15. package/i18ntokens.json +10 -10
  16. package/lib/components/page_template/page_template.js +2 -1
  17. package/lib/components/resizable_container/index.js +8 -1
  18. package/lib/components/resizable_container/resizable_button.js +83 -51
  19. package/lib/components/resizable_container/resizable_button.styles.js +71 -0
  20. package/lib/components/resizable_container/resizable_collapse_button.js +24 -14
  21. package/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  22. package/lib/components/steps/step.styles.js +5 -5
  23. package/lib/services/accessibility/html_id_generator.js +21 -2
  24. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  25. package/optimize/es/components/page_template/page_template.js +2 -1
  26. package/optimize/es/components/resizable_container/index.js +2 -1
  27. package/optimize/es/components/resizable_container/resizable_button.js +61 -44
  28. package/optimize/es/components/resizable_container/resizable_button.styles.js +66 -0
  29. package/optimize/es/components/resizable_container/resizable_collapse_button.js +19 -11
  30. package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
  31. package/optimize/es/components/steps/step.styles.js +5 -5
  32. package/optimize/es/services/accessibility/html_id_generator.js +19 -3
  33. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  34. package/optimize/lib/components/page_template/page_template.js +2 -1
  35. package/optimize/lib/components/resizable_container/index.js +8 -1
  36. package/optimize/lib/components/resizable_container/resizable_button.js +63 -45
  37. package/optimize/lib/components/resizable_container/resizable_button.styles.js +71 -0
  38. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +19 -11
  39. package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  40. package/optimize/lib/components/steps/step.styles.js +5 -5
  41. package/optimize/lib/services/accessibility/html_id_generator.js +21 -2
  42. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  43. package/package.json +13 -13
  44. package/src/components/index.scss +0 -1
  45. package/test-env/components/page_template/page_template.js +2 -1
  46. package/test-env/components/resizable_container/index.js +8 -1
  47. package/test-env/components/resizable_container/resizable_button.js +83 -51
  48. package/test-env/components/resizable_container/resizable_button.styles.js +71 -0
  49. package/test-env/components/resizable_container/resizable_collapse_button.js +19 -14
  50. package/test-env/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  51. package/test-env/components/steps/step.styles.js +5 -5
  52. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  53. package/src/components/resizable_container/_index.scss +0 -3
  54. package/src/components/resizable_container/_resizable_button.scss +0 -129
  55. package/src/components/resizable_container/_resizable_collapse_button.scss +0 -145
  56. package/src/components/resizable_container/_variables.scss +0 -2
@@ -1,145 +0,0 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature because of positioning
2
- // stylelint-disable max-nesting-depth
3
-
4
- /**
5
- * 1. The default position of the button should always be `middle`, so
6
- * those position styles aren't restricted to a class
7
- * 2. When collpsed, the button itself is the full collapsed area and we use
8
- * flex to align the icon within
9
- */
10
-
11
- .euiResizableToggleButton {
12
- @include euiSlightShadow;
13
- position: absolute;
14
- z-index: 2;
15
- // Remove animations from EuiButtonIcon because of the custom transforms
16
- animation: none !important; // stylelint-disable-line declaration-no-important
17
- // Remove transition from EuiButtonIcon because of the custom transforms
18
- transition-property: background, box-shadow;
19
- background: $euiColorEmptyShade;
20
-
21
- &:focus {
22
- @include euiSlightShadowHover;
23
- }
24
-
25
- &-isCollapsed {
26
- box-shadow: none;
27
- background: transparent;
28
- border-radius: 0;
29
- }
30
-
31
- &:not(:focus):not(:active):not(.euiResizableToggleButton-isVisible):not(.euiResizableToggleButton-isCollapsed) {
32
- @include euiScreenReaderOnly;
33
- }
34
- }
35
-
36
- .euiResizableToggleButton--horizontal {
37
- &.euiResizableToggleButton { // Extra layer of nesting to override EuiButtonIcon transforms on hover
38
- &.euiResizableToggleButton--after {
39
- right: 0;
40
- top: 50%; /* 1 */
41
- transform: translate(50%, -50%); /* 1 */
42
-
43
- &.euiResizableToggleButton--top {
44
- top: 0;
45
- transform: translate(50%, $euiSize);
46
- }
47
-
48
- &.euiResizableToggleButton--bottom {
49
- top: auto;
50
- bottom: 0;
51
- transform: translate(50%, -$euiSize);
52
- }
53
- }
54
-
55
- &.euiResizableToggleButton--before {
56
- left: 0;
57
- top: 50%; /* 1 */
58
- transform: translate(-50%, -50%); /* 1 */
59
-
60
- &.euiResizableToggleButton--top {
61
- top: 0;
62
- transform: translate(-50%, $euiSize);
63
- }
64
-
65
- &.euiResizableToggleButton--bottom {
66
- top: auto;
67
- bottom: 0;
68
- transform: translate(-50%, -$euiSize);
69
- }
70
- }
71
-
72
- &.euiResizableToggleButton-isCollapsed {
73
- top: 0 !important; // stylelint-disable-line declaration-no-important
74
- bottom: 0 !important; // stylelint-disable-line declaration-no-important
75
- transform: none !important; // stylelint-disable-line declaration-no-important
76
- height: 100%;
77
-
78
- &.euiResizableToggleButton--top {
79
- padding-top: $euiSize;
80
- align-items: flex-start; /* 2 */
81
- }
82
-
83
- &.euiResizableToggleButton--bottom {
84
- padding-bottom: $euiSize;
85
- align-items: flex-end; /* 2 */
86
- }
87
- }
88
- }
89
- }
90
-
91
- .euiResizableToggleButton--vertical {
92
- &.euiResizableToggleButton { // Extra layer of nesting to override EuiButtonIcon transforms on hover
93
- &.euiResizableToggleButton--after {
94
- top: 100%;
95
- left: 50%; /* 1 */
96
- transform: translate(-50%, -50%); /* 1 */
97
-
98
- &.euiResizableToggleButton--left {
99
- left: 0;
100
- transform: translate($euiSize, -50%);
101
- }
102
-
103
- &.euiResizableToggleButton--right {
104
- left: auto;
105
- right: 0;
106
- transform: translate(-$euiSize, -50%);
107
- }
108
- }
109
-
110
- &.euiResizableToggleButton--before {
111
- bottom: 100%;
112
- left: 50%; /* 1 */
113
- transform: translate(-50%, 50%); /* 1 */
114
-
115
- &.euiResizableToggleButton--left {
116
- left: 0;
117
- transform: translate($euiSize, 50%);
118
- }
119
-
120
- &.euiResizableToggleButton--right {
121
- left: auto;
122
- right: 0;
123
- transform: translate(-$euiSize, 50%);
124
- }
125
- }
126
-
127
- &.euiResizableToggleButton-isCollapsed {
128
- top: 0 !important; // stylelint-disable-line declaration-no-important
129
- bottom: 0 !important; // stylelint-disable-line declaration-no-important
130
- left: 0 !important; // stylelint-disable-line declaration-no-important
131
- transform: none !important; // stylelint-disable-line declaration-no-important
132
- width: 100%;
133
-
134
- &.euiResizableToggleButton--left {
135
- padding-left: $euiSize;
136
- justify-content: flex-start; /* 2 */
137
- }
138
-
139
- &.euiResizableToggleButton--right {
140
- padding-right: $euiSize;
141
- justify-content: flex-end; /* 2 */
142
- }
143
- }
144
- }
145
- }
@@ -1,2 +0,0 @@
1
- $euiResizableButtonTransitionSpeed: $euiAnimSpeedFast !default;
2
- $euiResizableButtonSize: $euiSize !default;