@elastic/eui 96.0.0 → 97.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/README.md +19 -1
- package/es/components/button/button_display/_button_display.styles.js +2 -2
- package/es/components/datagrid/body/data_grid_body_custom.js +48 -31
- package/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/es/components/link/external_link_icon.js +10 -8
- package/eui.d.ts +13 -1
- package/i18ntokens.json +16 -16
- package/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body_custom.js +47 -30
- package/lib/components/date_picker/date_picker_range.styles.js +1 -1
- package/lib/components/link/external_link_icon.js +9 -7
- package/optimize/es/components/button/button_display/_button_display.styles.js +2 -2
- package/optimize/es/components/datagrid/body/data_grid_body_custom.js +47 -30
- package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/es/components/link/external_link_icon.js +10 -8
- package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +46 -29
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/lib/components/link/external_link_icon.js +9 -7
- package/package.json +1 -1
- package/src/global_styling/mixins/_index.scss +1 -4
- package/src/global_styling/mixins/_tool_tip.scss +0 -7
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +1 -4
- package/test-env/components/button/button_display/_button_display.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body_custom.js +47 -30
- package/test-env/components/date_picker/date_picker_range.styles.js +1 -1
- package/test-env/components/link/external_link_icon.js +9 -7
- package/src/global_styling/mixins/_button.scss +0 -149
- package/src/global_styling/mixins/_form.scss +0 -28
- package/src/global_styling/mixins/_panel.scss +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@mixin euiPanel($selector) {
|
|
2
|
-
@if variable-exists(selector) == false {
|
|
3
|
-
@error 'A $selector must be provided to @mixin euiPanel().';
|
|
4
|
-
} @else {
|
|
5
|
-
#{$selector} {
|
|
6
|
-
flex-grow: 1;
|
|
7
|
-
|
|
8
|
-
&#{$selector}--flexGrowZero {
|
|
9
|
-
flex-grow: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&#{$selector}--hasShadow {
|
|
13
|
-
@include euiBottomShadowMedium;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&#{$selector}--hasBorder {
|
|
17
|
-
border: $euiBorderThin;
|
|
18
|
-
box-shadow: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&#{$selector}--isClickable {
|
|
22
|
-
// transition the shadow
|
|
23
|
-
transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
|
|
24
|
-
|
|
25
|
-
&:enabled { // This is a good selector for buttons since it doesn't exist on divs
|
|
26
|
-
// in case of button wrapper which inherently is inline-block and no width
|
|
27
|
-
display: block;
|
|
28
|
-
width: 100%;
|
|
29
|
-
text-align: left;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:hover,
|
|
33
|
-
&:focus {
|
|
34
|
-
@include euiBottomShadow;
|
|
35
|
-
transform: translateY(-2px);
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Border Radii
|
|
41
|
-
@each $modifier, $amount in $euiPanelBorderRadiusModifiers {
|
|
42
|
-
&#{$selector}--#{$modifier} {
|
|
43
|
-
border-radius: $amount;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Background colors
|
|
48
|
-
@each $modifier, $amount in $euiPanelBackgroundColorModifiers {
|
|
49
|
-
&#{$selector}--#{$modifier} {
|
|
50
|
-
background-color: $amount;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|