@entur/chip 0.6.1 → 0.6.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.2](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.1...@entur/chip@0.6.2) (2022-08-09)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
6
10
  ## [0.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.0...@entur/chip@0.6.1) (2022-07-05)
7
11
 
8
12
  **Note:** Version bump only for package @entur/chip
package/dist/styles.css CHANGED
@@ -2,76 +2,73 @@
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-choice-chip {
6
- cursor: pointer;
7
- display: inline-block;
8
- margin-right: 0.75rem;
9
- position: relative;
10
- transition: all 0.1s ease-out;
5
+ .eds-tag-chip {
6
+ cursor: default;
7
+ padding-right: 0.25rem;
8
+ width: -webkit-fit-content;
9
+ width: -moz-fit-content;
10
+ width: fit-content;
11
11
  }
12
- .eds-choice-chip__input {
13
- -moz-appearance: none;
14
- appearance: none;
15
- height: 0;
16
- position: absolute;
17
- width: 0;
12
+ .eds-tag-chip__close-button {
18
13
  -webkit-appearance: none;
14
+ -moz-appearance: none;
15
+ appearance: none;
16
+ background: none;
17
+ border: none;
18
+ border-radius: 50%;
19
+ color: #181c56;
20
+ cursor: pointer;
21
+ display: flex;
22
+ font-size: 0.875rem;
23
+ padding: 0.25rem;
24
+ margin-left: 0.25rem;
25
+ transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
19
26
  }
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;
27
+ .eds-contrast .eds-tag-chip__close-button {
25
28
  color: #ffffff;
26
29
  }
27
- .eds-choice-chip__input:checked ~ .eds-chip {
28
- background-color: #181c56;
29
- border-color: #181c56;
30
- color: #ffffff;
30
+ .eds-tag-chip__close-button:hover {
31
+ background: #babbcf;
31
32
  }
32
- .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
33
- border-color: #aeb7e2;
34
- background-color: #aeb7e2;
35
- color: #181c56;
33
+ .eds-contrast .eds-tag-chip__close-button:hover {
34
+ background: #54568c;
36
35
  }
37
- .eds-choice-chip__input:focus ~ .eds-chip {
36
+ .eds-tag-chip__close-button:focus {
37
+ outline-offset: 0.125rem;
38
38
  outline: none;
39
39
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
40
- outline-offset: 0.125rem;
41
40
  }
42
- .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
41
+ .eds-contrast .eds-tag-chip__close-button:focus {
43
42
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
43
+ }/* DO NOT CHANGE!*/
44
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
45
+ .eds-chip {
46
+ background: #ebebf1;
47
+ border: 0.0625rem solid #d1d4e3;
48
+ border-radius: 1rem;
49
+ color: inherit;
50
+ font-family: inherit;
51
+ font-size: 0.875rem;
52
+ height: 2rem;
53
+ min-width: 3rem;
54
+ padding: 0 0.75rem;
55
+ transition: background 0.1s ease-out, border 0.1s ease-out;
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
44
59
  }
45
- .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
46
- border-color: #181c56;
47
- }
48
- .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
49
- border-color: #ffffff;
50
- }
51
- .eds-choice-chip__input:checked:hover ~ .eds-chip {
52
- background-color: #3b3e6f;
53
- border-color: #3b3e6f;
54
- }
55
- .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
56
- background-color: #bac2e6;
57
- border-color: #bac2e6;
58
- }
59
- .eds-choice-chip__input:active ~ .eds-chip {
60
- background-color: #d1d4e3;
61
- border-color: #d1d4e3;
60
+ .eds-chip svg {
61
+ font-size: 0.875rem;
62
62
  }
63
- .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
64
- background: #33376d;
63
+ .eds-contrast .eds-chip {
64
+ background-color: #393d79;
65
+ border-color: transparent;
65
66
  }
66
- .eds-choice-chip .eds-chip--disabled {
67
- opacity: 0.5;
68
- border-style: dashed;
69
- cursor: not-allowed;
67
+ .eds-chip--leading-icon .eds-icon {
68
+ margin-right: 0.5rem;
70
69
  }
71
- .eds-contrast .eds-choice-chip .eds-chip--disabled {
72
- opacity: 1;
73
- border-color: #8285a8;
74
- color: #babbcf;
70
+ .eds-chip--trailing-icon .eds-icon {
71
+ margin-left: 0.5rem;
75
72
  }/* DO NOT CHANGE!*/
76
73
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
77
74
  .eds-action-chip {
@@ -113,75 +110,6 @@
113
110
  background-color: #ffffff;
114
111
  }/* DO NOT CHANGE!*/
115
112
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
116
- .eds-chip {
117
- background: #ebebf1;
118
- border: 0.0625rem solid #d1d4e3;
119
- border-radius: 1rem;
120
- color: inherit;
121
- font-family: inherit;
122
- font-size: 0.875rem;
123
- height: 2rem;
124
- min-width: 3rem;
125
- padding: 0 0.75rem;
126
- transition: background 0.1s ease-out, border 0.1s ease-out;
127
- display: flex;
128
- justify-content: center;
129
- align-items: center;
130
- }
131
- .eds-chip svg {
132
- font-size: 0.875rem;
133
- }
134
- .eds-contrast .eds-chip {
135
- background-color: #393d79;
136
- border-color: transparent;
137
- }
138
- .eds-chip--leading-icon .eds-icon {
139
- margin-right: 0.5rem;
140
- }
141
- .eds-chip--trailing-icon .eds-icon {
142
- margin-left: 0.5rem;
143
- }/* DO NOT CHANGE!*/
144
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
145
- .eds-tag-chip {
146
- cursor: default;
147
- padding-right: 0.25rem;
148
- width: -webkit-fit-content;
149
- width: -moz-fit-content;
150
- width: fit-content;
151
- }
152
- .eds-tag-chip__close-button {
153
- -webkit-appearance: none;
154
- -moz-appearance: none;
155
- appearance: none;
156
- background: none;
157
- border: none;
158
- border-radius: 50%;
159
- color: #181c56;
160
- cursor: pointer;
161
- display: flex;
162
- font-size: 0.875rem;
163
- padding: 0.25rem;
164
- margin-left: 0.25rem;
165
- transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
166
- }
167
- .eds-contrast .eds-tag-chip__close-button {
168
- color: #ffffff;
169
- }
170
- .eds-tag-chip__close-button:hover {
171
- background: #babbcf;
172
- }
173
- .eds-contrast .eds-tag-chip__close-button:hover {
174
- background: #54568c;
175
- }
176
- .eds-tag-chip__close-button:focus {
177
- outline-offset: 0.125rem;
178
- outline: none;
179
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
180
- }
181
- .eds-contrast .eds-tag-chip__close-button:focus {
182
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
183
- }/* DO NOT CHANGE!*/
184
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
185
113
  .eds-filter-chip {
186
114
  cursor: pointer;
187
115
  -webkit-user-select: none;
@@ -274,4 +202,76 @@
274
202
  100% {
275
203
  stroke-dashoffset: 0;
276
204
  }
205
+ }/* DO NOT CHANGE!*/
206
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
207
+ .eds-choice-chip {
208
+ cursor: pointer;
209
+ display: inline-block;
210
+ margin-right: 0.75rem;
211
+ position: relative;
212
+ transition: all 0.1s ease-out;
213
+ }
214
+ .eds-choice-chip__input {
215
+ -moz-appearance: none;
216
+ appearance: none;
217
+ height: 0;
218
+ position: absolute;
219
+ width: 0;
220
+ -webkit-appearance: none;
221
+ }
222
+ .eds-choice-chip__input ~ .eds-chip {
223
+ background-color: transparent;
224
+ }
225
+ .eds-contrast .eds-choice-chip__input ~ .eds-chip {
226
+ border-color: #aeb7e2;
227
+ color: #ffffff;
228
+ }
229
+ .eds-choice-chip__input:checked ~ .eds-chip {
230
+ background-color: #181c56;
231
+ border-color: #181c56;
232
+ color: #ffffff;
233
+ }
234
+ .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
235
+ border-color: #aeb7e2;
236
+ background-color: #aeb7e2;
237
+ color: #181c56;
238
+ }
239
+ .eds-choice-chip__input:focus ~ .eds-chip {
240
+ outline: none;
241
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
242
+ outline-offset: 0.125rem;
243
+ }
244
+ .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
245
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
246
+ }
247
+ .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
248
+ border-color: #181c56;
249
+ }
250
+ .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
251
+ border-color: #ffffff;
252
+ }
253
+ .eds-choice-chip__input:checked:hover ~ .eds-chip {
254
+ background-color: #3b3e6f;
255
+ border-color: #3b3e6f;
256
+ }
257
+ .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
258
+ background-color: #bac2e6;
259
+ border-color: #bac2e6;
260
+ }
261
+ .eds-choice-chip__input:active ~ .eds-chip {
262
+ background-color: #d1d4e3;
263
+ border-color: #d1d4e3;
264
+ }
265
+ .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
266
+ background: #33376d;
267
+ }
268
+ .eds-choice-chip .eds-chip--disabled {
269
+ opacity: 0.5;
270
+ border-style: dashed;
271
+ cursor: not-allowed;
272
+ }
273
+ .eds-contrast .eds-choice-chip .eds-chip--disabled {
274
+ opacity: 1;
275
+ border-color: #8285a8;
276
+ color: #babbcf;
277
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/chip.esm.js",
@@ -27,10 +27,10 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/form": "^5.3.9",
31
- "@entur/tokens": "^3.3.2",
30
+ "@entur/form": "^5.3.10",
31
+ "@entur/tokens": "^3.4.0",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "c58969a2ac3a5429137f84f9fe91888f4c4bcc4b"
35
+ "gitHead": "82b89b2f52c8530f8d930edfdc507c809ec85f7c"
36
36
  }