@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.
- package/dist/eui_theme_dark.css +0 -234
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -234
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/page_template/page_template.js +2 -1
- package/es/components/resizable_container/index.js +2 -1
- package/es/components/resizable_container/resizable_button.js +81 -50
- package/es/components/resizable_container/resizable_button.styles.js +66 -0
- package/es/components/resizable_container/resizable_collapse_button.js +24 -14
- package/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
- package/es/components/steps/step.styles.js +5 -5
- package/es/services/accessibility/html_id_generator.js +19 -3
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/eui.d.ts +113 -19
- package/i18ntokens.json +10 -10
- package/lib/components/page_template/page_template.js +2 -1
- package/lib/components/resizable_container/index.js +8 -1
- package/lib/components/resizable_container/resizable_button.js +83 -51
- package/lib/components/resizable_container/resizable_button.styles.js +71 -0
- package/lib/components/resizable_container/resizable_collapse_button.js +24 -14
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/lib/components/steps/step.styles.js +5 -5
- package/lib/services/accessibility/html_id_generator.js +21 -2
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/optimize/es/components/page_template/page_template.js +2 -1
- package/optimize/es/components/resizable_container/index.js +2 -1
- package/optimize/es/components/resizable_container/resizable_button.js +61 -44
- package/optimize/es/components/resizable_container/resizable_button.styles.js +66 -0
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +19 -11
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
- package/optimize/es/components/steps/step.styles.js +5 -5
- package/optimize/es/services/accessibility/html_id_generator.js +19 -3
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/optimize/lib/components/page_template/page_template.js +2 -1
- package/optimize/lib/components/resizable_container/index.js +8 -1
- package/optimize/lib/components/resizable_container/resizable_button.js +63 -45
- package/optimize/lib/components/resizable_container/resizable_button.styles.js +71 -0
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +19 -11
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/optimize/lib/components/steps/step.styles.js +5 -5
- package/optimize/lib/services/accessibility/html_id_generator.js +21 -2
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/package.json +13 -13
- package/src/components/index.scss +0 -1
- package/test-env/components/page_template/page_template.js +2 -1
- package/test-env/components/resizable_container/index.js +8 -1
- package/test-env/components/resizable_container/resizable_button.js +83 -51
- package/test-env/components/resizable_container/resizable_button.styles.js +71 -0
- package/test-env/components/resizable_container/resizable_collapse_button.js +19 -14
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/test-env/components/steps/step.styles.js +5 -5
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/src/components/resizable_container/_index.scss +0 -3
- package/src/components/resizable_container/_resizable_button.scss +0 -129
- package/src/components/resizable_container/_resizable_collapse_button.scss +0 -145
- 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
|
-
}
|