@entur/dropdown 6.0.4 → 6.0.6

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 +71 -71
  2. package/package.json +11 -11
package/dist/styles.css CHANGED
@@ -1,76 +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
- border-radius: 0.25rem;
5
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
6
- display: none;
7
- list-style: none;
8
- margin: 0;
9
- max-height: 50vh;
10
- padding: 0;
11
- position: relative;
12
- overflow-y: auto;
13
- width: 100%;
14
- z-index: 20;
15
- }
16
- .eds-contrast .eds-dropdown-list {
17
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
18
- }
19
- .eds-dropdown-list--open {
20
- display: inline-block;
21
- }
22
- .eds-dropdown-list:focus {
23
- outline: none;
24
- }
25
- @media all and (min-width: 50rem) {
26
- .eds-dropdown-list {
27
- max-height: 30vh;
28
- }
29
- }
30
- .eds-dropdown-list__item {
31
- align-items: center;
32
- background-color: #f8f8f8;
33
- border-bottom: 0.125rem solid #e9e9e9;
34
- border-left: 0.125rem solid #e9e9e9;
35
- border-right: 0.125rem solid #e9e9e9;
36
- color: #181c56;
37
- display: flex;
38
- justify-content: space-between;
39
- font-family: inherit;
40
- font-size: 1rem;
41
- line-height: 1.25rem;
42
- padding: 0.75rem 1rem;
43
- width: 100%;
44
- }
45
- .eds-dropdown-list__item:first-child {
46
- border-top: 0.125rem solid #e9e9e9;
47
- }
48
- .eds-dropdown-list__item:last-child {
49
- border-bottom: none;
50
- }
51
- .eds-contrast .eds-dropdown-list__item {
52
- color: #181c56;
53
- border-color: #54568c;
54
- background-color: #ffffff;
55
- }
56
- .eds-dropdown-list__item--highlighted {
57
- background-color: #d1d4e3;
58
- }
59
- .eds-contrast .eds-dropdown-list__item--highlighted {
60
- background-color: #d1d4e3;
61
- }
62
- .eds-dropdown-list-icon {
63
- margin-left: 0.75rem;
64
- }
65
- .eds-inline-spinner {
66
- align-items: center;
67
- display: flex;
68
- justify-content: center;
69
- height: 100%;
70
- width: 100%;
71
- }
72
- /* DO NOT CHANGE!*/
73
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
74
3
  .eds-dropdown__searchable-selected-item {
75
4
  display: block;
76
5
  font-size: 1rem;
@@ -94,6 +23,13 @@
94
23
  .eds-form-control.eds-dropdown__input::placeholder {
95
24
  transition: none;
96
25
  }
26
+ .eds-inline-spinner {
27
+ align-items: center;
28
+ display: flex;
29
+ justify-content: center;
30
+ height: 100%;
31
+ width: 100%;
32
+ }
97
33
  /* DO NOT CHANGE!*/
98
34
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
35
  .eds-dropdown-wrapper {
@@ -154,6 +90,70 @@
154
90
  }
155
91
  /* DO NOT CHANGE!*/
156
92
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
93
+ .eds-dropdown-list {
94
+ border-radius: 0.25rem;
95
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
96
+ display: none;
97
+ list-style: none;
98
+ margin: 0;
99
+ max-height: 50vh;
100
+ padding: 0;
101
+ position: relative;
102
+ overflow-y: auto;
103
+ width: 100%;
104
+ z-index: 20;
105
+ }
106
+ .eds-contrast .eds-dropdown-list {
107
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
108
+ }
109
+ .eds-dropdown-list--open {
110
+ display: inline-block;
111
+ }
112
+ .eds-dropdown-list:focus {
113
+ outline: none;
114
+ }
115
+ @media all and (min-width: 50rem) {
116
+ .eds-dropdown-list {
117
+ max-height: 30vh;
118
+ }
119
+ }
120
+ .eds-dropdown-list__item {
121
+ align-items: center;
122
+ background-color: #f8f8f8;
123
+ border-bottom: 0.125rem solid #e9e9e9;
124
+ border-left: 0.125rem solid #e9e9e9;
125
+ border-right: 0.125rem solid #e9e9e9;
126
+ color: #181c56;
127
+ display: flex;
128
+ justify-content: space-between;
129
+ font-family: inherit;
130
+ font-size: 1rem;
131
+ line-height: 1.25rem;
132
+ padding: 0.75rem 1rem;
133
+ width: 100%;
134
+ }
135
+ .eds-dropdown-list__item:first-child {
136
+ border-top: 0.125rem solid #e9e9e9;
137
+ }
138
+ .eds-dropdown-list__item:last-child {
139
+ border-bottom: none;
140
+ }
141
+ .eds-contrast .eds-dropdown-list__item {
142
+ color: #181c56;
143
+ border-color: #54568c;
144
+ background-color: #ffffff;
145
+ }
146
+ .eds-dropdown-list__item--highlighted {
147
+ background-color: #d1d4e3;
148
+ }
149
+ .eds-contrast .eds-dropdown-list__item--highlighted {
150
+ background-color: #d1d4e3;
151
+ }
152
+ .eds-dropdown-list-icon {
153
+ margin-left: 0.75rem;
154
+ }
155
+ /* DO NOT CHANGE!*/
156
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
157
  .eds-dropdown__toggle-button {
158
158
  -webkit-appearance: none;
159
159
  -moz-appearance: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/dropdown",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/dropdown.esm.js",
@@ -27,18 +27,18 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.90",
31
- "@entur/button": "^3.2.32",
32
- "@entur/chip": "^0.7.19",
33
- "@entur/form": "^8.1.1",
34
- "@entur/icons": "^7.4.0",
35
- "@entur/loader": "^0.5.10",
36
- "@entur/tokens": "^3.17.0",
37
- "@entur/tooltip": "^4.0.1",
38
- "@entur/utils": "^0.11.2",
30
+ "@entur/a11y": "^0.2.91",
31
+ "@entur/button": "^3.2.33",
32
+ "@entur/chip": "^0.7.21",
33
+ "@entur/form": "^8.1.3",
34
+ "@entur/icons": "^7.4.1",
35
+ "@entur/loader": "^0.5.11",
36
+ "@entur/tokens": "^3.17.1",
37
+ "@entur/tooltip": "^5.0.0",
38
+ "@entur/utils": "^0.12.0",
39
39
  "@floating-ui/react-dom": "^2.1.0",
40
40
  "classnames": "^2.3.1",
41
41
  "downshift": "^9.0.8"
42
42
  },
43
- "gitHead": "045cada5d95c62d8ddfc95d82b4526742ab07d0a"
43
+ "gitHead": "b038c9f7061c44765606ab8b7519c205ca633635"
44
44
  }