@entur/dropdown 6.0.14 → 6.1.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 (2) hide show
  1. package/dist/styles.css +89 -89
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -1,89 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-dropdown__list {
4
- box-sizing: content-box;
5
- max-height: 50vh;
6
- overflow-y: auto;
7
- padding: 0;
8
- margin: 0;
9
- list-style: none;
10
- border: 0.125rem solid var(--components-form-basemenu-border);
11
- border-radius: 0.25rem;
12
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
13
- cursor: default;
14
- }
15
- .eds-dropdown__list__floating-container {
16
- z-index: 20;
17
- width: calc(100% + 0.25rem);
18
- }
19
- .eds-dropdown__list:focus {
20
- outline: none;
21
- }
22
- .eds-dropdown__list__item {
23
- display: flex;
24
- align-items: center;
25
- justify-content: flex-start;
26
- padding: 0.75rem 1rem;
27
- font-family: inherit;
28
- font-size: 1rem;
29
- word-break: break-word;
30
- line-height: 1.25rem;
31
- overflow-x: hidden;
32
- color: var(--components-form-basemenu-text);
33
- background-color: var(--components-form-basemenu-fill-default);
34
- }
35
- .eds-dropdown__list__item:last-child {
36
- border-bottom: none;
37
- }
38
- .eds-dropdown__list__item__text {
39
- flex: 1;
40
- cursor: default;
41
- }
42
- .eds-dropdown__list__item__icon {
43
- margin-left: 0.75rem;
44
- }
45
- .eds-dropdown__list__item__checkbox {
46
- pointer-events: none;
47
- }
48
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
49
- border-color: var(--components-form-checkbox-standard-border);
50
- }
51
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
52
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
53
- background-color: var(--components-form-checkbox-standard-fill-selected);
54
- }
55
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
56
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
57
- stroke: var(--components-form-checkbox-standard-icon);
58
- }
59
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
60
- .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
61
- fill: var(--components-form-checkbox-standard-icon);
62
- }
63
- .eds-dropdown__list__item--highlighted {
64
- background-color: var(--components-form-basemenu-fill-hover);
65
- }
66
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
67
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
68
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
69
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
70
- background-color: var(--components-form-checkbox-standard-fill-selected);
71
- border-color: transparent;
72
- }
73
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
74
- .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
75
- border-color: var(--components-form-checkbox-standard-border);
76
- }
77
- .eds-dropdown__list__item--selected {
78
- background-color: var(--components-form-basemenu-fill-hover);
79
- }
80
- @media all and (min-width: 50rem) {
81
- .eds-dropdown__list {
82
- max-height: 30vh;
83
- }
84
- }
85
- /* DO NOT CHANGE!*/
86
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
87
3
  .eds-contrast .eds-dropdown__selected-item-tag {
88
4
  background: var(--components-chip-standard-default);
89
5
  border: 0.0625rem solid var(--components-chip-standard-border);
@@ -103,7 +19,7 @@
103
19
  .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover {
104
20
  background-color: var(--components-chip-standard-hover);
105
21
  }
106
- .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:focus {
22
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:focus-visible {
107
23
  outline-color: var(--basecolors-stroke-focus-standard);
108
24
  }
109
25
  .eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled {
@@ -133,7 +49,7 @@
133
49
  .eds-contrast .eds-dropdown .eds-icon-button:hover {
134
50
  background-color: var(--components-button-iconbutton-standard-hover);
135
51
  }
136
- .eds-contrast .eds-dropdown .eds-icon-button:focus {
52
+ .eds-contrast .eds-dropdown .eds-icon-button:focus-visible {
137
53
  outline: 2px solid #181c56;
138
54
  outline-color: var(--basecolors-stroke-focus-standard);
139
55
  outline-offset: 0.125rem;
@@ -152,7 +68,7 @@
152
68
  .eds-contrast .eds-dropdown__appendix__clear-button:hover {
153
69
  background-color: var(--components-button-iconbutton-standard-hover);
154
70
  }
155
- .eds-contrast .eds-dropdown__appendix__clear-button:focus {
71
+ .eds-contrast .eds-dropdown__appendix__clear-button:focus-visible {
156
72
  outline-color: var(--basecolors-stroke-focus-standard);
157
73
  }
158
74
  .eds-dropdown__appendix__clear-button__tooltip {
@@ -192,11 +108,95 @@
192
108
  .eds-contrast .eds-dropdown__appendix__toggle-button:hover {
193
109
  background-color: var(--components-button-iconbutton-standard-hover);
194
110
  }
195
- .eds-contrast .eds-dropdown__appendix__toggle-button:focus {
111
+ .eds-contrast .eds-dropdown__appendix__toggle-button:focus-visible {
196
112
  outline-color: var(--basecolors-stroke-focus-standard);
197
113
  }
198
114
  /* DO NOT CHANGE!*/
199
115
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
116
+ .eds-dropdown__list {
117
+ box-sizing: content-box;
118
+ max-height: 50vh;
119
+ overflow-y: auto;
120
+ padding: 0;
121
+ margin: 0;
122
+ list-style: none;
123
+ border: 0.125rem solid var(--components-form-basemenu-border);
124
+ border-radius: 0.25rem;
125
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
126
+ cursor: default;
127
+ }
128
+ .eds-dropdown__list__floating-container {
129
+ z-index: 20;
130
+ width: calc(100% + 0.25rem);
131
+ }
132
+ .eds-dropdown__list:focus {
133
+ outline: none;
134
+ }
135
+ .eds-dropdown__list__item {
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: flex-start;
139
+ padding: 0.75rem 1rem;
140
+ font-family: inherit;
141
+ font-size: 1rem;
142
+ word-break: break-word;
143
+ line-height: 1.25rem;
144
+ overflow-x: hidden;
145
+ color: var(--components-form-basemenu-text);
146
+ background-color: var(--components-form-basemenu-fill-default);
147
+ }
148
+ .eds-dropdown__list__item:last-child {
149
+ border-bottom: none;
150
+ }
151
+ .eds-dropdown__list__item__text {
152
+ flex: 1;
153
+ cursor: default;
154
+ }
155
+ .eds-dropdown__list__item__icon {
156
+ margin-left: 0.75rem;
157
+ }
158
+ .eds-dropdown__list__item__checkbox {
159
+ pointer-events: none;
160
+ }
161
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon {
162
+ border-color: var(--components-form-checkbox-standard-border);
163
+ }
164
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
165
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon {
166
+ background-color: var(--components-form-checkbox-standard-fill-selected);
167
+ }
168
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
169
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path {
170
+ stroke: var(--components-form-checkbox-standard-icon);
171
+ }
172
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
173
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect {
174
+ fill: var(--components-form-checkbox-standard-icon);
175
+ }
176
+ .eds-dropdown__list__item--highlighted {
177
+ background-color: var(--components-form-basemenu-fill-hover);
178
+ }
179
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
180
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
181
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
182
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon {
183
+ background-color: var(--components-form-checkbox-standard-fill-selected);
184
+ border-color: transparent;
185
+ }
186
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
187
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon {
188
+ border-color: var(--components-form-checkbox-standard-border);
189
+ }
190
+ .eds-dropdown__list__item--selected {
191
+ background-color: var(--components-form-basemenu-fill-hover);
192
+ }
193
+ @media all and (min-width: 50rem) {
194
+ .eds-dropdown__list {
195
+ max-height: 30vh;
196
+ }
197
+ }
198
+ /* DO NOT CHANGE!*/
199
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
200
200
  .eds-dropdown {
201
201
  cursor: pointer;
202
202
  }
@@ -220,7 +220,7 @@
220
220
  text-overflow: ellipsis;
221
221
  line-height: 1rem;
222
222
  }
223
- .eds-dropdown__selected-item:focus-visible {
223
+ .eds-dropdown__selected-item:focus {
224
224
  outline: none;
225
225
  }
226
226
  .eds-dropdown--searchable {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.14",
3
+ "version": "6.1.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.95",
31
- "@entur/button": "^3.2.38",
32
- "@entur/chip": "^0.7.28",
33
- "@entur/form": "^8.1.10",
31
+ "@entur/button": "^3.3.0",
32
+ "@entur/chip": "^0.8.0",
33
+ "@entur/form": "^8.2.0",
34
34
  "@entur/icons": "^7.6.0",
35
- "@entur/loader": "^0.5.16",
35
+ "@entur/loader": "^0.5.17",
36
36
  "@entur/tokens": "^3.17.5",
37
- "@entur/tooltip": "^5.1.6",
37
+ "@entur/tooltip": "^5.2.0",
38
38
  "@entur/utils": "^0.12.2",
39
39
  "@floating-ui/react-dom": "^2.1.0",
40
40
  "classnames": "^2.3.1",
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "dts-cli": "2.0.5"
45
45
  },
46
- "gitHead": "1a989376d61ab59a8c554a9cab733039aef8b2eb"
46
+ "gitHead": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
47
47
  }