@entur/dropdown 6.0.3-beta.0 → 6.0.3-beta.1

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/dist/styles.css CHANGED
@@ -1,99 +1,3 @@
1
- .eds-inline-spinner {
2
- align-items: center;
3
- display: flex;
4
- justify-content: center;
5
- height: 100%;
6
- width: 100%;
7
- }
8
- /* DO NOT CHANGE!*/
9
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
10
- .eds-dropdown__searchable-selected-item {
11
- display: block;
12
- font-size: 1rem;
13
- line-height: 1rem;
14
- margin-right: -1rem;
15
- padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
16
- font-family: inherit;
17
- overflow-x: hidden;
18
- text-overflow: ellipsis;
19
- white-space: nowrap;
20
- }
21
- .eds-dropdown__searchable-selected-item__wrapper {
22
- max-width: 65%;
23
- }
24
-
25
- .eds-form-control.eds-dropdown__input::-moz-placeholder {
26
- -moz-transition: none;
27
- transition: none;
28
- }
29
-
30
- .eds-form-control.eds-dropdown__input::placeholder {
31
- transition: none;
32
- }
33
- /* DO NOT CHANGE!*/
34
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
35
- .eds-dropdown-list {
36
- border-radius: 0.25rem;
37
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
38
- display: none;
39
- list-style: none;
40
- margin: 0;
41
- max-height: 50vh;
42
- padding: 0;
43
- position: relative;
44
- overflow-y: auto;
45
- width: 100%;
46
- z-index: 20;
47
- }
48
- .eds-contrast .eds-dropdown-list {
49
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
50
- }
51
- .eds-dropdown-list--open {
52
- display: inline-block;
53
- }
54
- .eds-dropdown-list:focus {
55
- outline: none;
56
- }
57
- @media all and (min-width: 50rem) {
58
- .eds-dropdown-list {
59
- max-height: 30vh;
60
- }
61
- }
62
- .eds-dropdown-list__item {
63
- align-items: center;
64
- background-color: #f8f8f8;
65
- border-bottom: 0.125rem solid #e9e9e9;
66
- border-left: 0.125rem solid #e9e9e9;
67
- border-right: 0.125rem solid #e9e9e9;
68
- color: #181c56;
69
- display: flex;
70
- justify-content: space-between;
71
- font-family: inherit;
72
- font-size: 1rem;
73
- line-height: 1.25rem;
74
- padding: 0.75rem 1rem;
75
- width: 100%;
76
- }
77
- .eds-dropdown-list__item:first-child {
78
- border-top: 0.125rem solid #e9e9e9;
79
- }
80
- .eds-dropdown-list__item:last-child {
81
- border-bottom: none;
82
- }
83
- .eds-contrast .eds-dropdown-list__item {
84
- color: #181c56;
85
- border-color: #54568c;
86
- background-color: #ffffff;
87
- }
88
- .eds-dropdown-list__item--highlighted {
89
- background-color: #d1d4e3;
90
- }
91
- .eds-contrast .eds-dropdown-list__item--highlighted {
92
- background-color: #d1d4e3;
93
- }
94
- .eds-dropdown-list-icon {
95
- margin-left: 0.75rem;
96
- }
97
1
  /* DO NOT CHANGE!*/
98
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
3
  .eds-multi-select {
@@ -187,6 +91,102 @@
187
91
  }
188
92
  /* DO NOT CHANGE!*/
189
93
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
94
+ .eds-dropdown-list {
95
+ border-radius: 0.25rem;
96
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
97
+ display: none;
98
+ list-style: none;
99
+ margin: 0;
100
+ max-height: 50vh;
101
+ padding: 0;
102
+ position: relative;
103
+ overflow-y: auto;
104
+ width: 100%;
105
+ z-index: 20;
106
+ }
107
+ .eds-contrast .eds-dropdown-list {
108
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
109
+ }
110
+ .eds-dropdown-list--open {
111
+ display: inline-block;
112
+ }
113
+ .eds-dropdown-list:focus {
114
+ outline: none;
115
+ }
116
+ @media all and (min-width: 50rem) {
117
+ .eds-dropdown-list {
118
+ max-height: 30vh;
119
+ }
120
+ }
121
+ .eds-dropdown-list__item {
122
+ align-items: center;
123
+ background-color: #f8f8f8;
124
+ border-bottom: 0.125rem solid #e9e9e9;
125
+ border-left: 0.125rem solid #e9e9e9;
126
+ border-right: 0.125rem solid #e9e9e9;
127
+ color: #181c56;
128
+ display: flex;
129
+ justify-content: space-between;
130
+ font-family: inherit;
131
+ font-size: 1rem;
132
+ line-height: 1.25rem;
133
+ padding: 0.75rem 1rem;
134
+ width: 100%;
135
+ }
136
+ .eds-dropdown-list__item:first-child {
137
+ border-top: 0.125rem solid #e9e9e9;
138
+ }
139
+ .eds-dropdown-list__item:last-child {
140
+ border-bottom: none;
141
+ }
142
+ .eds-contrast .eds-dropdown-list__item {
143
+ color: #181c56;
144
+ border-color: #54568c;
145
+ background-color: #ffffff;
146
+ }
147
+ .eds-dropdown-list__item--highlighted {
148
+ background-color: #d1d4e3;
149
+ }
150
+ .eds-contrast .eds-dropdown-list__item--highlighted {
151
+ background-color: #d1d4e3;
152
+ }
153
+ .eds-dropdown-list-icon {
154
+ margin-left: 0.75rem;
155
+ }
156
+ /* DO NOT CHANGE!*/
157
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
158
+ .eds-dropdown__searchable-selected-item {
159
+ display: block;
160
+ font-size: 1rem;
161
+ line-height: 1rem;
162
+ margin-right: -1rem;
163
+ padding: calc(1rem + 0.25rem) 0 0.25rem 1rem;
164
+ font-family: inherit;
165
+ overflow-x: hidden;
166
+ text-overflow: ellipsis;
167
+ white-space: nowrap;
168
+ }
169
+ .eds-dropdown__searchable-selected-item__wrapper {
170
+ max-width: 65%;
171
+ }
172
+
173
+ .eds-form-control.eds-dropdown__input::-moz-placeholder {
174
+ -moz-transition: none;
175
+ transition: none;
176
+ }
177
+
178
+ .eds-form-control.eds-dropdown__input::placeholder {
179
+ transition: none;
180
+ }
181
+ .eds-inline-spinner {
182
+ align-items: center;
183
+ display: flex;
184
+ justify-content: center;
185
+ height: 100%;
186
+ width: 100%;
187
+ }
188
+ /* DO NOT CHANGE!*/
189
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
190
190
  .eds-dropdown-wrapper {
191
191
  position: relative;
192
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.3-beta.0",
3
+ "version": "6.0.3-beta.1",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -40,5 +40,5 @@
40
40
  "classnames": "^2.3.1",
41
41
  "downshift": "^8.3.3"
42
42
  },
43
- "gitHead": "cf307ea5b19e314649370964a7368666df04305b"
43
+ "gitHead": "090143692a429395cad43f103b70cfab06de9aa9"
44
44
  }