@entur/dropdown 6.1.0 → 7.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.
Files changed (2) hide show
  1. package/dist/styles.css +86 -86
  2. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -1,5 +1,89 @@
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. */
3
87
  .eds-contrast .eds-dropdown__selected-item-tag {
4
88
  background: var(--components-chip-standard-default);
5
89
  border: 0.0625rem solid var(--components-chip-standard-border);
@@ -111,89 +195,8 @@
111
195
  .eds-contrast .eds-dropdown__appendix__toggle-button:focus-visible {
112
196
  outline-color: var(--basecolors-stroke-focus-standard);
113
197
  }
114
- /* DO NOT CHANGE!*/
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
- }
198
+ :root {
199
+ --eds-dropdown: 1;
197
200
  }
198
201
  /* DO NOT CHANGE!*/
199
202
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -275,6 +278,3 @@
275
278
  .eds-contrast .eds-dropdown--native option {
276
279
  color: var(--components-form-basemenu-text);
277
280
  }
278
- :root {
279
- --eds-dropdown: 1;
280
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.1.0",
3
+ "version": "7.0.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "dts-cli": "2.0.5"
45
45
  },
46
- "gitHead": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
46
+ "gitHead": "d8eaf49d7e98b63fb9b1a4985d851a16546d5c98"
47
47
  }