@entur/dropdown 9.2.0 → 9.3.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.
@@ -0,0 +1,343 @@
1
+ :root{
2
+ --eds-dropdown:1;
3
+ }.eds-dropdown__list{
4
+ -webkit-box-sizing:border-box;
5
+ -moz-box-sizing:border-box;
6
+ box-sizing:border-box;
7
+ overflow-y:auto;
8
+ z-index:20;
9
+ padding:0;
10
+ margin:0;
11
+ list-style:none;
12
+ border:0.125rem solid var(--components-form-basemenu-border-default);
13
+ -webkit-border-radius:0.25rem;
14
+ -moz-border-radius:0.25rem;
15
+ border-radius:0.25rem;
16
+ -webkit-box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
17
+ -moz-box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
18
+ box-shadow:0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
19
+ cursor:default;
20
+ background-color:var(--components-form-basemenu-fill-default);
21
+ width:auto;
22
+ width:var(--list-width, auto);
23
+ max-width:95dvw;
24
+ max-height:15rem;
25
+ max-height:var(--list-max-height, 15rem);
26
+ }
27
+ .eds-dropdown__list:focus{
28
+ outline:none;
29
+ }
30
+ .eds-dropdown__list__item{
31
+ display:-webkit-box;
32
+ display:-webkit-flex;
33
+ display:-moz-box;
34
+ display:flex;
35
+ -webkit-box-align:center;
36
+ -webkit-align-items:center;
37
+ -moz-box-align:center;
38
+ align-items:center;
39
+ -webkit-box-pack:start;
40
+ -webkit-justify-content:flex-start;
41
+ -moz-box-pack:start;
42
+ justify-content:flex-start;
43
+ padding:0.75rem 1rem;
44
+ font-family:inherit;
45
+ font-size:1rem;
46
+ word-break:break-word;
47
+ line-height:1.25rem;
48
+ overflow-x:hidden;
49
+ color:var(--components-form-basemenu-text-default);
50
+ background-color:var(--components-form-basemenu-fill-default);
51
+ }
52
+ .eds-dropdown__list__item__text{
53
+ -webkit-box-flex:1;
54
+ -webkit-flex:1;
55
+ -moz-box-flex:1;
56
+ flex:1;
57
+ cursor:default;
58
+ }
59
+ .eds-dropdown__list__item__icon{
60
+ margin-left:0.75rem;
61
+ }
62
+ .eds-dropdown__list__item__checkbox{
63
+ pointer-events:none;
64
+ }
65
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon{
66
+ border-color:var(--components-form-checkbox-standard-border);
67
+ }
68
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
69
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon{
70
+ background-color:var(--components-form-checkbox-standard-fill-selected);
71
+ }
72
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon path,
73
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon path{
74
+ stroke:var(--components-form-checkbox-standard-icon);
75
+ }
76
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon rect,
77
+ .eds-contrast .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon rect{
78
+ fill:var(--components-form-checkbox-standard-icon);
79
+ }
80
+ .eds-dropdown__list__item--highlighted{
81
+ background-color:var(--components-form-basemenu-fill-hover);
82
+ }
83
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:checked + .eds-checkbox__icon,
84
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input:indeterminate + .eds-checkbox__icon,
85
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:checked + .eds-checkbox__icon,
86
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input:indeterminate + .eds-checkbox__icon{
87
+ background-color:var(--components-form-checkbox-standard-fill-selected);
88
+ border-color:transparent;
89
+ }
90
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container > input + .eds-checkbox__icon,
91
+ .eds-dropdown__list__item--highlighted .eds-dropdown__list__item__checkbox.eds-checkbox__container:hover > input + .eds-checkbox__icon{
92
+ border-color:var(--components-form-checkbox-standard-border);
93
+ }
94
+ .eds-dropdown__list__item--selected{
95
+ background-color:var(--components-form-basemenu-fill-hover);
96
+ }.eds-contrast .eds-dropdown__selected-item-tag{
97
+ background:var(--components-chip-standard-default);
98
+ border:0.0625rem solid var(--components-chip-standard-border);
99
+ color:var(--components-chip-standard-text-unselected);
100
+ }
101
+ .eds-contrast .eds-dropdown__selected-item-tag:hover{
102
+ border-color:var(--components-chip-standard-border);
103
+ background-color:var(--components-chip-standard-hover);
104
+ }
105
+ .eds-contrast .eds-dropdown__selected-item-tag:active{
106
+ background-color:var(--components-chip-standard-active);
107
+ border-color:transparent;
108
+ }
109
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button{
110
+ color:var(--components-chip-standard-text-unselected);
111
+ }
112
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:hover{
113
+ background-color:var(--components-chip-standard-hover);
114
+ }
115
+ .eds-contrast .eds-dropdown__selected-item-tag .eds-tag-chip__close-button:focus-visible{
116
+ outline-color:var(--basecolors-stroke-focus-standard);
117
+ }
118
+ .eds-dropdown__selected-item-tag--readonly, .eds-dropdown__selected-item-tag--disabled{
119
+ padding-right:0.5rem;
120
+ }
121
+ .eds-dropdown__selected-item-tag--readonly .eds-tag-chip__close-button, .eds-dropdown__selected-item-tag--disabled .eds-tag-chip__close-button{
122
+ display:none;
123
+ }
124
+ .eds-dropdown__selected-item-tag--readonly{
125
+ cursor:text;
126
+ }
127
+ .eds-contrast .eds-dropdown__selected-item-tag--readonly{
128
+ background-color:var(--components-form-baseform-standard-fill-readonly);
129
+ border-color:var(--components-chip-contrast-border);
130
+ color:var(--components-form-baseform-contrast-fill-default);
131
+ }
132
+ .eds-dropdown__selected-item-tag--disabled{
133
+ cursor:not-allowed;
134
+ border:1px dashed var(--components-chip-standard-border-disabled);
135
+ }
136
+ .eds-contrast .eds-dropdown__selected-item-tag--disabled{
137
+ background-color:var(--components-form-baseform-standard-fill-disabled);
138
+ border:1px dashed var(--components-chip-contrast-border-disabled);
139
+ color:var(--components-form-baseform-standard-text-disabled);
140
+ }
141
+ .eds-dropdown__selected-item-tag__text{
142
+ text-wrap:nowrap;
143
+ -o-text-overflow:ellipsis;
144
+ text-overflow:ellipsis;
145
+ overflow-x:hidden;
146
+ }
147
+ .eds-contrast .eds-dropdown .eds-icon-button{
148
+ color:var(--components-button-iconbutton-standard-text);
149
+ }
150
+ .eds-contrast .eds-dropdown .eds-icon-button:hover{
151
+ background-color:var(--components-button-iconbutton-standard-hover);
152
+ }
153
+ .eds-contrast .eds-dropdown .eds-icon-button:focus-visible{
154
+ outline:2px solid #181c56;
155
+ outline-color:var(--basecolors-stroke-focus-standard);
156
+ outline-offset:0.125rem;
157
+ }
158
+ .eds-contrast .eds-dropdown .eds-icon-button:active{
159
+ background-color:var(--components-button-iconbutton-standard-active);
160
+ }
161
+ .eds-dropdown__appendix{
162
+ display:-webkit-box;
163
+ display:-webkit-flex;
164
+ display:-moz-box;
165
+ display:flex;
166
+ -webkit-box-align:center;
167
+ -webkit-align-items:center;
168
+ -moz-box-align:center;
169
+ align-items:center;
170
+ -webkit-align-self:flex-start;
171
+ align-self:flex-start;
172
+ margin-top:0.25rem;
173
+ gap:0.25rem;
174
+ }
175
+ .eds-dropdown__appendix__clear-button__tooltip{
176
+ white-space:nowrap;
177
+ }
178
+ .eds-dropdown__appendix__divider{
179
+ content:"";
180
+ display:block;
181
+ background-color:var(--components-form-baseform-standard-text-content);
182
+ height:1.5rem;
183
+ width:1px;
184
+ }
185
+ .eds-dropdown__appendix__toggle-button{
186
+ margin-right:-0.75rem;
187
+ }
188
+ .eds-dropdown__appendix__toggle-button--open svg{
189
+ -webkit-transform:rotate(180deg);
190
+ -moz-transform:rotate(180deg);
191
+ -o-transform:rotate(180deg);
192
+ transform:rotate(180deg);
193
+ }
194
+ .eds-dropdown__appendix__toggle-button svg{
195
+ -webkit-transition:-webkit-transform ease-in-out 0.1s;
196
+ transition:-webkit-transform ease-in-out 0.1s;
197
+ -o-transition:-o-transform ease-in-out 0.1s;
198
+ -moz-transition:transform ease-in-out 0.1s, -moz-transform ease-in-out 0.1s;
199
+ transition:transform ease-in-out 0.1s;
200
+ transition:transform ease-in-out 0.1s, -webkit-transform ease-in-out 0.1s, -moz-transform ease-in-out 0.1s, -o-transform ease-in-out 0.1s;
201
+ }
202
+ .eds-dropdown__appendix__toggle-button--loading.eds-icon-button > .eds-loading-dots .eds-loading-dots__dot{
203
+ background-color:var(--components-loader-loader-standard-text);
204
+ }
205
+ .eds-contrast .eds-dropdown__appendix__toggle-button--loading.eds-icon-button > .eds-loading-dots .eds-loading-dots__dot{
206
+ background-color:var(--components-loader-loader-standard-text);
207
+ }
208
+ .eds-contrast .eds-dropdown__appendix__toggle-button:hover{
209
+ background-color:var(--components-button-iconbutton-standard-hover);
210
+ }
211
+ .eds-contrast .eds-dropdown__appendix__toggle-button:focus-visible{
212
+ outline-color:var(--basecolors-stroke-focus-standard);
213
+ }.eds-dropdown{
214
+ cursor:pointer;
215
+ }
216
+ .eds-dropdown:has(.eds-form-control-wrapper--readonly){
217
+ cursor:text;
218
+ }
219
+ .eds-dropdown__input{
220
+ -webkit-box-flex:1;
221
+ -webkit-flex:1;
222
+ -moz-box-flex:1;
223
+ flex:1;
224
+ width:0;
225
+ }
226
+ .eds-dropdown__input--hidden{
227
+ -webkit-box-flex:0;
228
+ -webkit-flex:0;
229
+ -moz-box-flex:0;
230
+ flex:0;
231
+ }
232
+ .eds-dropdown__selected-item{
233
+ -webkit-box-flex:1;
234
+ -webkit-flex:1;
235
+ -moz-box-flex:1;
236
+ flex:1;
237
+ height:100%;
238
+ min-height:2.75rem;
239
+ padding:1.25rem 0rem 0.25rem;
240
+ overflow-x:hidden;
241
+ -o-text-overflow:ellipsis;
242
+ text-overflow:ellipsis;
243
+ line-height:1rem;
244
+ }
245
+ .eds-dropdown__selected-item:focus{
246
+ outline:none;
247
+ }
248
+ .eds-dropdown--searchable{
249
+ cursor:text;
250
+ }
251
+ .eds-dropdown--searchable__selected-item{
252
+ -webkit-box-flex:1;
253
+ -webkit-flex:1;
254
+ -moz-box-flex:1;
255
+ flex:1;
256
+ overflow-x:hidden;
257
+ -o-text-overflow:ellipsis;
258
+ text-overflow:ellipsis;
259
+ padding:1.375rem 0rem 0.3rem;
260
+ white-space:nowrap;
261
+ line-height:1rem;
262
+ font-family:inherit;
263
+ }
264
+ .eds-dropdown--searchable__selected-item--hidden{
265
+ -webkit-box-flex:0;
266
+ -webkit-flex:0;
267
+ -moz-box-flex:0;
268
+ flex:0;
269
+ }
270
+ .eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-webkit-input-placeholder{
271
+ -webkit-transition:none;
272
+ transition:none;
273
+ }
274
+ .eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + :-moz-placeholder{
275
+ -moz-transition:none;
276
+ transition:none;
277
+ }
278
+ .eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-moz-placeholder{
279
+ -moz-transition:none;
280
+ transition:none;
281
+ }
282
+ .eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::-ms-input-placeholder{
283
+ -ms-transition:none;
284
+ transition:none;
285
+ }
286
+ .eds-dropdown--searchable :not(.eds-dropdown--searchable__selected-item--hidden) + ::placeholder{
287
+ -webkit-transition:none;
288
+ -o-transition:none;
289
+ -moz-transition:none;
290
+ transition:none;
291
+ }
292
+ .eds-dropdown--multiselect{
293
+ cursor:text;
294
+ }
295
+ .eds-dropdown--multiselect__selected-items-and-input{
296
+ display:-webkit-box;
297
+ display:-webkit-flex;
298
+ display:-moz-box;
299
+ display:flex;
300
+ -webkit-flex-wrap:wrap;
301
+ flex-wrap:wrap;
302
+ -webkit-box-flex:1;
303
+ -webkit-flex:1;
304
+ -moz-box-flex:1;
305
+ flex:1;
306
+ gap:0.5rem;
307
+ min-width:0;
308
+ }
309
+ .eds-dropdown--multiselect__selected-items-and-input--filled{
310
+ padding:1.25rem 0rem 0.25rem;
311
+ }
312
+ .eds-dropdown--multiselect__selected-items-and-input--filled .eds-dropdown__input{
313
+ padding:0;
314
+ padding:initial;
315
+ min-height:1.5rem;
316
+ }
317
+ .eds-dropdown--multiselect__selected-items-and-input--filled .eds-tag-chip:focus{
318
+ -webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
319
+ -moz-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
320
+ box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
321
+ }
322
+ .eds-dropdown--multiselect__selected-items-and-input--filled .eds-tag-chip__close-button svg{
323
+ width:1rem;
324
+ height:1rem;
325
+ }
326
+ .eds-dropdown--native + .eds-form-control__append{
327
+ margin-left:-2em;
328
+ pointer-events:none;
329
+ }
330
+ .eds-dropdown--native option{
331
+ color:var(--components-form-basemenu-text-default);
332
+ background-color:var(--components-form-basemenu-fill-default);
333
+ }
334
+ .eds-contrast .eds-dropdown--native option{
335
+ color:var(--components-form-basemenu-text-default);
336
+ }
337
+
338
+ .eds-dropdown-native__loading-dots .eds-loading-dots__dot{
339
+ background-color:var(--components-loader-loader-standard-text);
340
+ }
341
+ .eds-contrast .eds-dropdown-native__loading-dots .eds-loading-dots__dot{
342
+ background-color:var(--components-loader-loader-standard-text);
343
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/dropdown.cjs",
6
6
  "module": "dist/dropdown.mjs",
@@ -26,15 +26,15 @@
26
26
  "react-dom": ">=18.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@entur/a11y": "^0.3.5",
30
- "@entur/button": "^5.1.0",
31
- "@entur/chip": "^0.11.6",
32
- "@entur/form": "^10.2.0",
33
- "@entur/icons": "^10.0.5",
34
- "@entur/loader": "^0.8.6",
35
- "@entur/tokens": "^4.2.0",
36
- "@entur/tooltip": "^6.0.6",
37
- "@entur/utils": "^0.15.2",
29
+ "@entur/a11y": "^0.4.0",
30
+ "@entur/button": "^5.2.0",
31
+ "@entur/chip": "^0.13.0",
32
+ "@entur/form": "^10.3.0",
33
+ "@entur/icons": "^10.1.0",
34
+ "@entur/loader": "^0.9.0",
35
+ "@entur/tokens": "^4.3.0",
36
+ "@entur/tooltip": "^6.1.0",
37
+ "@entur/utils": "^0.15.3",
38
38
  "@floating-ui/react-dom": "^2.1.6",
39
39
  "classnames": "^2.5.1",
40
40
  "downshift": "^9.0.10"
@@ -59,8 +59,10 @@
59
59
  "default": "./dist/dropdown.mjs"
60
60
  },
61
61
  "./styles": "./dist/styles.css",
62
+ "./styles/no-base-tokens": "./dist/styles.no-base-tokens.css",
62
63
  "./dist/styles.css": "./dist/styles.css",
64
+ "./dist/styles.no-base-tokens.css": "./dist/styles.no-base-tokens.css",
63
65
  "./package.json": "./package.json"
64
66
  },
65
- "gitHead": "d0826c31ddea916a35916910dcba76a705e3f8ee"
67
+ "gitHead": "8caab317746945d60c1c6341ea8148a73a464db2"
66
68
  }