@entur/dropdown 3.0.33 → 3.0.35
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/README.md +2 -2
- package/dist/styles.css +64 -64
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains the different Dropdown components.
|
|
4
4
|
|
|
5
|
-
> 💡 Looking for the [documentation](https://design.entur.
|
|
5
|
+
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/skjemaelementer/dropdowns)?
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ yarn add @entur/dropdown
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
Please refer to the [documentation](https://design.entur.
|
|
17
|
+
Please refer to the [documentation](https://design.entur.no/komponenter/skjemaelementer/dropdowns) for usage information.
|
package/dist/styles.css
CHANGED
|
@@ -3,67 +3,17 @@
|
|
|
3
3
|
}
|
|
4
4
|
/* DO NOT CHANGE!*/
|
|
5
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
-
.eds-dropdown-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: none;
|
|
10
|
-
list-style: none;
|
|
11
|
-
margin: 0;
|
|
12
|
-
max-height: 50vh;
|
|
13
|
-
padding: 0;
|
|
14
|
-
position: relative;
|
|
15
|
-
overflow-y: auto;
|
|
16
|
-
width: 100%;
|
|
17
|
-
z-index: 20;
|
|
18
|
-
}
|
|
19
|
-
.eds-contrast .eds-dropdown-list {
|
|
20
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
21
|
-
}
|
|
22
|
-
.eds-dropdown-list--open {
|
|
23
|
-
display: inline-block;
|
|
24
|
-
}
|
|
25
|
-
.eds-dropdown-list:focus {
|
|
26
|
-
outline: none;
|
|
27
|
-
}
|
|
28
|
-
@media all and (min-width: 50rem) {
|
|
29
|
-
.eds-dropdown-list {
|
|
30
|
-
max-height: 30vh;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.eds-dropdown-list__item {
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: #f8f8f8;
|
|
36
|
-
border-bottom: 0.125rem solid #e9e9e9;
|
|
37
|
-
border-left: 0.125rem solid #e9e9e9;
|
|
38
|
-
border-right: 0.125rem solid #e9e9e9;
|
|
39
|
-
color: #181c56;
|
|
40
|
-
display: flex;
|
|
41
|
-
justify-content: space-between;
|
|
42
|
-
font-family: inherit;
|
|
43
|
-
font-size: 1rem;
|
|
44
|
-
line-height: 1.25rem;
|
|
45
|
-
padding: 0.75rem 1rem;
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
.eds-dropdown-list__item:first-child {
|
|
49
|
-
border-top: 0.125rem solid #e9e9e9;
|
|
50
|
-
}
|
|
51
|
-
.eds-dropdown-list__item:last-child {
|
|
52
|
-
border-bottom: none;
|
|
6
|
+
.eds-dropdown + .eds-form-control__append {
|
|
7
|
+
margin-left: -2em;
|
|
8
|
+
pointer-events: none;
|
|
53
9
|
}
|
|
54
|
-
|
|
10
|
+
|
|
11
|
+
.eds-dropdown option {
|
|
55
12
|
color: #181c56;
|
|
56
|
-
border-color: #54568c;
|
|
57
13
|
background-color: #ffffff;
|
|
58
14
|
}
|
|
59
|
-
.eds-dropdown
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
63
|
-
background-color: #d1d4e3;
|
|
64
|
-
}
|
|
65
|
-
.eds-dropdown-list-icon {
|
|
66
|
-
margin-left: 0.75rem;
|
|
15
|
+
.eds-contrast .eds-dropdown option {
|
|
16
|
+
color: #181c56;
|
|
67
17
|
}
|
|
68
18
|
/* DO NOT CHANGE!*/
|
|
69
19
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -158,17 +108,67 @@
|
|
|
158
108
|
}
|
|
159
109
|
/* DO NOT CHANGE!*/
|
|
160
110
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
161
|
-
.eds-dropdown
|
|
162
|
-
|
|
163
|
-
|
|
111
|
+
.eds-dropdown-list {
|
|
112
|
+
border-radius: 0.25rem;
|
|
113
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
114
|
+
display: none;
|
|
115
|
+
list-style: none;
|
|
116
|
+
margin: 0;
|
|
117
|
+
max-height: 50vh;
|
|
118
|
+
padding: 0;
|
|
119
|
+
position: relative;
|
|
120
|
+
overflow-y: auto;
|
|
121
|
+
width: 100%;
|
|
122
|
+
z-index: 20;
|
|
164
123
|
}
|
|
165
|
-
|
|
166
|
-
|
|
124
|
+
.eds-contrast .eds-dropdown-list {
|
|
125
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
126
|
+
}
|
|
127
|
+
.eds-dropdown-list--open {
|
|
128
|
+
display: inline-block;
|
|
129
|
+
}
|
|
130
|
+
.eds-dropdown-list:focus {
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
@media all and (min-width: 50rem) {
|
|
134
|
+
.eds-dropdown-list {
|
|
135
|
+
max-height: 30vh;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
.eds-dropdown-list__item {
|
|
139
|
+
align-items: center;
|
|
140
|
+
background-color: #f8f8f8;
|
|
141
|
+
border-bottom: 0.125rem solid #e9e9e9;
|
|
142
|
+
border-left: 0.125rem solid #e9e9e9;
|
|
143
|
+
border-right: 0.125rem solid #e9e9e9;
|
|
167
144
|
color: #181c56;
|
|
168
|
-
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
font-family: inherit;
|
|
148
|
+
font-size: 1rem;
|
|
149
|
+
line-height: 1.25rem;
|
|
150
|
+
padding: 0.75rem 1rem;
|
|
151
|
+
width: 100%;
|
|
169
152
|
}
|
|
170
|
-
.eds-
|
|
153
|
+
.eds-dropdown-list__item:first-child {
|
|
154
|
+
border-top: 0.125rem solid #e9e9e9;
|
|
155
|
+
}
|
|
156
|
+
.eds-dropdown-list__item:last-child {
|
|
157
|
+
border-bottom: none;
|
|
158
|
+
}
|
|
159
|
+
.eds-contrast .eds-dropdown-list__item {
|
|
171
160
|
color: #181c56;
|
|
161
|
+
border-color: #54568c;
|
|
162
|
+
background-color: #ffffff;
|
|
163
|
+
}
|
|
164
|
+
.eds-dropdown-list__item--highlighted {
|
|
165
|
+
background-color: #d1d4e3;
|
|
166
|
+
}
|
|
167
|
+
.eds-contrast .eds-dropdown-list__item--highlighted {
|
|
168
|
+
background-color: #d1d4e3;
|
|
169
|
+
}
|
|
170
|
+
.eds-dropdown-list-icon {
|
|
171
|
+
margin-left: 0.75rem;
|
|
172
172
|
}
|
|
173
173
|
/* DO NOT CHANGE!*/
|
|
174
174
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/dropdown",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.35",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/dropdown.esm.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/a11y": "^0.2.
|
|
31
|
-
"@entur/button": "^
|
|
32
|
-
"@entur/chip": "^0.6.
|
|
33
|
-
"@entur/form": "^
|
|
34
|
-
"@entur/icons": "^
|
|
35
|
-
"@entur/loader": "^0.4.
|
|
36
|
-
"@entur/tokens": "^3.8.
|
|
37
|
-
"@entur/tooltip": "^2.6.
|
|
30
|
+
"@entur/a11y": "^0.2.60",
|
|
31
|
+
"@entur/button": "^3.0.1",
|
|
32
|
+
"@entur/chip": "^0.6.25",
|
|
33
|
+
"@entur/form": "^6.0.1",
|
|
34
|
+
"@entur/icons": "^6.0.1",
|
|
35
|
+
"@entur/loader": "^0.4.24",
|
|
36
|
+
"@entur/tokens": "^3.8.1",
|
|
37
|
+
"@entur/tooltip": "^2.6.9",
|
|
38
38
|
"@entur/utils": "^0.5.5",
|
|
39
39
|
"classnames": "^2.3.1",
|
|
40
40
|
"downshift": "^6.1.7"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "1e78a655ffc4c4ca80d8e54495768282dc374201"
|
|
43
43
|
}
|