@entur/chip 0.6.19 → 0.6.20

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 +91 -91
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -2,42 +2,75 @@
2
2
  --eds-chip: 1;
3
3
  }/* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
- .eds-action-chip {
5
+ .eds-choice-chip {
6
6
  cursor: pointer;
7
+ display: inline-block;
8
+ margin-right: 0.75rem;
9
+ position: relative;
10
+ transition: all 0.1s ease-out;
7
11
  }
8
- .eds-action-chip:focus {
12
+ .eds-choice-chip__input {
13
+ -moz-appearance: none;
14
+ appearance: none;
15
+ height: 0;
16
+ position: absolute;
17
+ width: 0;
18
+ -webkit-appearance: none;
19
+ }
20
+ .eds-choice-chip__input ~ .eds-chip {
21
+ background-color: transparent;
22
+ }
23
+ .eds-contrast .eds-choice-chip__input ~ .eds-chip {
24
+ border-color: #aeb7e2;
25
+ color: #ffffff;
26
+ }
27
+ .eds-choice-chip__input:checked ~ .eds-chip {
28
+ background-color: #181c56;
29
+ border-color: #181c56;
30
+ color: #ffffff;
31
+ }
32
+ .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
33
+ border-color: #aeb7e2;
34
+ background-color: #aeb7e2;
35
+ color: #181c56;
36
+ }
37
+ .eds-choice-chip__input:focus ~ .eds-chip {
9
38
  outline: none;
10
39
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
11
40
  outline-offset: 0.125rem;
12
41
  }
13
- .eds-contrast .eds-action-chip:focus {
42
+ .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
14
43
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
15
44
  }
16
- .eds-action-chip:hover {
45
+ .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
17
46
  border-color: #181c56;
18
47
  }
19
- .eds-contrast .eds-action-chip:hover {
20
- background-color: #54568c;
21
- border-color: #54568c;
48
+ .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
49
+ border-color: #ffffff;
22
50
  }
23
- .eds-action-chip:active {
24
- background: #d1d4e3;
51
+ .eds-choice-chip__input:checked:hover ~ .eds-chip {
52
+ background-color: #3b3e6f;
53
+ border-color: #3b3e6f;
25
54
  }
26
- .eds-contrast .eds-action-chip:active {
27
- background-color: #292b6a;
28
- border-color: #292b6a;
55
+ .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
56
+ background-color: #bac2e6;
57
+ border-color: #bac2e6;
29
58
  }
30
- .eds-action-chip--disabled {
31
- opacity: 0.5;
32
- pointer-events: none;
59
+ .eds-choice-chip__input:active ~ .eds-chip {
60
+ background-color: #d1d4e3;
61
+ border-color: #d1d4e3;
33
62
  }
34
- .eds-action-chip--disabled__wrapper {
63
+ .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
64
+ background: #33376d;
65
+ }
66
+ .eds-choice-chip .eds-chip--disabled {
67
+ border-style: dashed;
35
68
  cursor: not-allowed;
36
- width: -moz-fit-content;
37
- width: fit-content;
38
69
  }
39
- .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
40
- background-color: #ffffff;
70
+ .eds-contrast .eds-choice-chip .eds-chip--disabled {
71
+ opacity: 1;
72
+ border-color: #8285a8;
73
+ color: #babbcf;
41
74
  }/* DO NOT CHANGE!*/
42
75
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
43
76
  .eds-chip {
@@ -69,6 +102,44 @@
69
102
  margin-left: 0.5rem;
70
103
  }/* DO NOT CHANGE!*/
71
104
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
105
+ .eds-action-chip {
106
+ cursor: pointer;
107
+ }
108
+ .eds-action-chip:focus {
109
+ outline: none;
110
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
111
+ outline-offset: 0.125rem;
112
+ }
113
+ .eds-contrast .eds-action-chip:focus {
114
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
115
+ }
116
+ .eds-action-chip:hover {
117
+ border-color: #181c56;
118
+ }
119
+ .eds-contrast .eds-action-chip:hover {
120
+ background-color: #54568c;
121
+ border-color: #54568c;
122
+ }
123
+ .eds-action-chip:active {
124
+ background: #d1d4e3;
125
+ }
126
+ .eds-contrast .eds-action-chip:active {
127
+ background-color: #292b6a;
128
+ border-color: #292b6a;
129
+ }
130
+ .eds-action-chip--disabled {
131
+ opacity: 0.5;
132
+ pointer-events: none;
133
+ }
134
+ .eds-action-chip--disabled__wrapper {
135
+ cursor: not-allowed;
136
+ width: -moz-fit-content;
137
+ width: fit-content;
138
+ }
139
+ .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
140
+ background-color: #ffffff;
141
+ }/* DO NOT CHANGE!*/
142
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
72
143
  .eds-filter-chip {
73
144
  cursor: pointer;
74
145
  -webkit-user-select: none;
@@ -154,77 +225,6 @@
154
225
  }
155
226
  }/* DO NOT CHANGE!*/
156
227
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
- .eds-choice-chip {
158
- cursor: pointer;
159
- display: inline-block;
160
- margin-right: 0.75rem;
161
- position: relative;
162
- transition: all 0.1s ease-out;
163
- }
164
- .eds-choice-chip__input {
165
- -moz-appearance: none;
166
- appearance: none;
167
- height: 0;
168
- position: absolute;
169
- width: 0;
170
- -webkit-appearance: none;
171
- }
172
- .eds-choice-chip__input ~ .eds-chip {
173
- background-color: transparent;
174
- }
175
- .eds-contrast .eds-choice-chip__input ~ .eds-chip {
176
- border-color: #aeb7e2;
177
- color: #ffffff;
178
- }
179
- .eds-choice-chip__input:checked ~ .eds-chip {
180
- background-color: #181c56;
181
- border-color: #181c56;
182
- color: #ffffff;
183
- }
184
- .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
185
- border-color: #aeb7e2;
186
- background-color: #aeb7e2;
187
- color: #181c56;
188
- }
189
- .eds-choice-chip__input:focus ~ .eds-chip {
190
- outline: none;
191
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
192
- outline-offset: 0.125rem;
193
- }
194
- .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
195
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
196
- }
197
- .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
198
- border-color: #181c56;
199
- }
200
- .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
201
- border-color: #ffffff;
202
- }
203
- .eds-choice-chip__input:checked:hover ~ .eds-chip {
204
- background-color: #3b3e6f;
205
- border-color: #3b3e6f;
206
- }
207
- .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
208
- background-color: #bac2e6;
209
- border-color: #bac2e6;
210
- }
211
- .eds-choice-chip__input:active ~ .eds-chip {
212
- background-color: #d1d4e3;
213
- border-color: #d1d4e3;
214
- }
215
- .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
216
- background: #33376d;
217
- }
218
- .eds-choice-chip .eds-chip--disabled {
219
- border-style: dashed;
220
- cursor: not-allowed;
221
- }
222
- .eds-contrast .eds-choice-chip .eds-chip--disabled {
223
- opacity: 1;
224
- border-color: #8285a8;
225
- color: #babbcf;
226
- }/* DO NOT CHANGE!*/
227
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
228
228
  .eds-tag-chip {
229
229
  cursor: default;
230
230
  padding-right: 0.25rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.19",
3
+ "version": "0.6.20",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/chip.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/form": "^5.4.16",
31
- "@entur/icons": "^5.5.0",
32
- "@entur/loader": "^0.4.19",
33
- "@entur/tokens": "^3.5.0",
34
- "@entur/utils": "^0.5.2",
30
+ "@entur/form": "^5.4.17",
31
+ "@entur/icons": "^5.7.0",
32
+ "@entur/loader": "^0.4.21",
33
+ "@entur/tokens": "^3.7.0",
34
+ "@entur/utils": "^0.5.4",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "30b38034aaafba9fb308fb3d8c8bfaab9608d720"
37
+ "gitHead": "ff44073d29948fc811c0dbd6921c003794285c06"
38
38
  }