@eui/styles 17.0.0-next.4 → 17.0.0-next.5

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/package.json CHANGED
@@ -9,11 +9,11 @@
9
9
  "description": "eUI core styling",
10
10
  "author": "ec.europa.eui@gmail.com",
11
11
  "engines": {
12
- "node": "^18.13.0",
12
+ "node": "^18.13.0 || >=20.0.0",
13
13
  "yarn": ">=1.22.4 <2",
14
14
  "npm": "Please use yarn instead of NPM to install dependencies"
15
15
  },
16
16
  "license": "EUPL-1.1",
17
- "version": "17.0.0-next.4",
17
+ "version": "17.0.0-next.5",
18
18
  "tag": "next"
19
19
  }
@@ -1,18 +1,31 @@
1
+ // This mixin sets the layout of the euiClearable directive
1
2
  @mixin eui-clearable-input() {
2
- align-items: center;
3
- background-color: v(eui-base-color-white);
4
- color: v(eui-base-color-grey-35);
5
- cursor: pointer;
6
- display: flex;
7
- font-size: v(eui-base-font-size-m);
8
- user-select: none;
3
+ .eui-clearable-wrapper {
4
+ align-items: center;
5
+ display: flex;
6
+ position: relative;
7
+ width: 100%;
9
8
 
10
- &:before {
11
- position: absolute;
12
- right: v(eui-base-spacing-s);
13
- }
9
+ .eui-input-text--clearable-icon {
10
+ bottom: calc(#{v(eui-base-spacing-s)} - 2px);
11
+ cursor: pointer;
12
+ position: absolute;
13
+ right: v(eui-base-spacing-s);
14
+ user-select: none;
15
+ visibility: visible;
16
+ z-index: v(eui-base-z-index-clearable-icon);
17
+
18
+ &:focus {
19
+ @include eui-accessible-focus-outline();
20
+ }
21
+
22
+ > svg {
23
+ fill: v(eui-base-color-grey-35);
14
24
 
15
- &:hover {
16
- color: v(eui-base-color-grey-100);
25
+ &:hover {
26
+ fill: v(eui-base-color-danger-100);
27
+ }
28
+ }
29
+ }
17
30
  }
18
31
  }
@@ -2,7 +2,6 @@
2
2
  // Used for: eui-input-text, eui-input-number, eui-select, eui-textarea, eui-datepicker, eui-autocomplete
3
3
  @mixin eui-input() {
4
4
  @include eui-font(m, ui);
5
- @include eui-accessible-focus-border();
6
5
  appearance: none;
7
6
  background-color: v(eui-base-color-white);
8
7
  border: 1px solid v(eui-base-color-grey-50);
@@ -12,6 +11,8 @@
12
11
  min-height: calc(#{v(eui-base-spacing-2xl)} + #{v(eui-base-spacing-2xs)}); // DS aligned 44px
13
12
  padding: calc(#{v(eui-base-spacing-s)} - 1px); // Trick to have inner paddings without exceeding default min-height
14
13
  width: 100%;
14
+ @include eui-accessible-focus-border();
15
+ @include eui-clearable-input();
15
16
 
16
17
  &::placeholder {
17
18
  color: v(eui-base-color-grey-50) !important;
@@ -51,21 +52,22 @@
51
52
  padding-right: v(eui-base-spacing-2xl);
52
53
 
53
54
  &-icon {
54
- visibility: visible;
55
+ bottom: calc(#{v(eui-base-spacing-s)} - 2px);
56
+ cursor: pointer;
55
57
  position: absolute;
56
58
  right: v(eui-base-spacing-s);
57
- cursor: pointer;
58
59
  user-select: none;
60
+ visibility: visible;
59
61
 
60
62
  &:focus {
61
- @include eui-accessible-focus-border-rounded();
63
+ @include eui-accessible-focus-outline();
62
64
  }
63
65
 
64
66
  > svg {
65
67
  fill: v(eui-base-color-grey-35);
66
68
 
67
69
  &:hover {
68
- fill: v(eui-base-color-grey-100);
70
+ fill: v(eui-base-color-danger-100);
69
71
  }
70
72
  }
71
73
  }
@@ -1 +1,2 @@
1
1
  @import '@eui/styles-base/src/styles/05-assets/module-icons-svg';
2
+ @import '@eui/styles-base/src/styles/05-assets/module-icons-font';