@entur/chip 0.5.1 → 0.5.4

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,18 @@
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.5.4](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.3...@entur/chip@0.5.4) (2022-04-27)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
10
+ ## [0.5.3](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.2...@entur/chip@0.5.3) (2022-04-20)
11
+
12
+ **Note:** Version bump only for package @entur/chip
13
+
14
+ ## [0.5.2](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.1...@entur/chip@0.5.2) (2022-04-19)
15
+
16
+ **Note:** Version bump only for package @entur/chip
17
+
6
18
  ## [0.5.1](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.0...@entur/chip@0.5.1) (2022-03-17)
7
19
 
8
20
  ### Bug Fixes
package/dist/styles.css CHANGED
@@ -2,42 +2,6 @@
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-tag-chip {
6
- cursor: default;
7
- padding-right: 0.25rem;
8
- width: fit-content;
9
- }
10
- .eds-tag-chip__close-button {
11
- appearance: none;
12
- background: none;
13
- border: none;
14
- border-radius: 50%;
15
- color: #181c56;
16
- cursor: pointer;
17
- display: flex;
18
- font-size: 0.875rem;
19
- padding: 0.25rem;
20
- margin-left: 0.25rem;
21
- transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
22
- }
23
- .eds-contrast .eds-tag-chip__close-button {
24
- color: #ffffff;
25
- }
26
- .eds-tag-chip__close-button:hover {
27
- background: #babbcf;
28
- }
29
- .eds-contrast .eds-tag-chip__close-button:hover {
30
- background: #54568c;
31
- }
32
- .eds-tag-chip__close-button:focus {
33
- outline-offset: 0.125rem;
34
- outline: none;
35
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
36
- }
37
- .eds-contrast .eds-tag-chip__close-button:focus {
38
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
39
- }/* DO NOT CHANGE!*/
40
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
41
5
  .eds-action-chip {
42
6
  cursor: pointer;
43
7
  }
@@ -96,78 +60,44 @@
96
60
  margin-left: 0.5rem;
97
61
  }/* DO NOT CHANGE!*/
98
62
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
99
- .eds-filter-chip {
100
- cursor: pointer;
101
- user-select: none;
102
- padding-left: 0.25rem;
63
+ .eds-tag-chip {
64
+ cursor: default;
65
+ padding-right: 0.25rem;
66
+ width: -webkit-fit-content;
67
+ width: -moz-fit-content;
103
68
  width: fit-content;
104
69
  }
105
- .eds-filter-chip__input {
106
- position: absolute;
107
- opacity: 0;
108
- height: 0;
109
- width: 0;
70
+ .eds-tag-chip__close-button {
71
+ -webkit-appearance: none;
72
+ -moz-appearance: none;
73
+ appearance: none;
74
+ background: none;
75
+ border: none;
76
+ border-radius: 50%;
77
+ color: #181c56;
78
+ cursor: pointer;
79
+ display: flex;
80
+ font-size: 0.875rem;
81
+ padding: 0.25rem;
82
+ margin-left: 0.25rem;
83
+ transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
110
84
  }
111
- .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon {
112
- visibility: visible;
85
+ .eds-contrast .eds-tag-chip__close-button {
86
+ color: #ffffff;
113
87
  }
114
- .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
115
- stroke: #181c56;
116
- animation: stroke ease-in-out 0.2s 0.1s forwards;
88
+ .eds-tag-chip__close-button:hover {
89
+ background: #babbcf;
117
90
  }
118
- .eds-contrast .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
119
- stroke: #5ac39a;
91
+ .eds-contrast .eds-tag-chip__close-button:hover {
92
+ background: #54568c;
120
93
  }
121
- .eds-filter-chip:focus-within {
94
+ .eds-tag-chip__close-button:focus {
95
+ outline-offset: 0.125rem;
122
96
  outline: none;
123
97
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
124
- outline-offset: 0.125rem;
125
98
  }
126
- .eds-contrast .eds-filter-chip:focus-within {
99
+ .eds-contrast .eds-tag-chip__close-button:focus {
127
100
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
128
- }
129
- .eds-filter-chip:hover {
130
- border-color: #181c56;
131
- }
132
- .eds-contrast .eds-filter-chip:hover {
133
- background-color: #54568c;
134
- border-color: #54568c;
135
- }
136
- .eds-filter-chip__icon {
137
- display: inline-flex;
138
- justify-content: center;
139
- align-items: center;
140
- position: relative;
141
- margin-right: 0.5rem;
142
- height: 1.5rem;
143
- width: 1.5rem;
144
- border: 0.125rem solid transparent;
145
- border-radius: 50%;
146
- background-color: #ffffff;
147
- color: #ffffff;
148
- }
149
- .eds-contrast .eds-filter-chip__icon {
150
- background-color: #181c56;
151
- }
152
- .eds-filter-chip__icon .eds-filter-chip-icon {
153
- height: 1rem;
154
- width: 1rem;
155
- visibility: hidden;
156
- }
157
- .eds-contrast .eds-filter-chip__icon .eds-filter-chip-icon {
158
- color: #ffffff;
159
- }
160
- .eds-filter-chip__icon .eds-filter-chip-icon__path {
161
- transform-origin: 50% 50%;
162
- stroke-dasharray: 48;
163
- stroke-dashoffset: 48;
164
- stroke-width: 0.375rem;
165
- }
166
-
167
- @keyframes stroke {
168
- 100% {
169
- stroke-dashoffset: 0;
170
- }
171
101
  }/* DO NOT CHANGE!*/
172
102
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
173
103
  .eds-choice-chip {
@@ -178,7 +108,8 @@
178
108
  transition: all 0.1s ease-out;
179
109
  }
180
110
  .eds-choice-chip__input {
181
- appearance: none;
111
+ -moz-appearance: none;
112
+ appearance: none;
182
113
  height: 0;
183
114
  position: absolute;
184
115
  width: 0;
@@ -239,4 +170,98 @@
239
170
  opacity: 1;
240
171
  border-color: #8285a8;
241
172
  color: #babbcf;
173
+ }/* DO NOT CHANGE!*/
174
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
175
+ .eds-filter-chip {
176
+ cursor: pointer;
177
+ -webkit-user-select: none;
178
+ -moz-user-select: none;
179
+ -ms-user-select: none;
180
+ user-select: none;
181
+ padding-left: 0.25rem;
182
+ width: -webkit-fit-content;
183
+ width: -moz-fit-content;
184
+ width: fit-content;
185
+ }
186
+ .eds-filter-chip__input {
187
+ position: absolute;
188
+ opacity: 0;
189
+ height: 0;
190
+ width: 0;
191
+ }
192
+ .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon {
193
+ visibility: visible;
194
+ }
195
+ .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
196
+ stroke: #181c56;
197
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
198
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
199
+ }
200
+ .eds-contrast .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
201
+ stroke: #5ac39a;
202
+ }
203
+ .eds-filter-chip[focus-within] {
204
+ outline: none;
205
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
206
+ outline-offset: 0.125rem;
207
+ }
208
+ .eds-filter-chip:focus-within {
209
+ outline: none;
210
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
211
+ outline-offset: 0.125rem;
212
+ }
213
+ .eds-contrast .eds-filter-chip[focus-within] {
214
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
215
+ }
216
+ .eds-contrast .eds-filter-chip:focus-within {
217
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
218
+ }
219
+ .eds-filter-chip:hover {
220
+ border-color: #181c56;
221
+ }
222
+ .eds-contrast .eds-filter-chip:hover {
223
+ background-color: #54568c;
224
+ border-color: #54568c;
225
+ }
226
+ .eds-filter-chip__icon {
227
+ display: inline-flex;
228
+ justify-content: center;
229
+ align-items: center;
230
+ position: relative;
231
+ margin-right: 0.5rem;
232
+ height: 1.5rem;
233
+ width: 1.5rem;
234
+ border: 0.125rem solid transparent;
235
+ border-radius: 50%;
236
+ background-color: #ffffff;
237
+ color: #ffffff;
238
+ }
239
+ .eds-contrast .eds-filter-chip__icon {
240
+ background-color: #181c56;
241
+ }
242
+ .eds-filter-chip__icon .eds-filter-chip-icon {
243
+ height: 1rem;
244
+ width: 1rem;
245
+ visibility: hidden;
246
+ }
247
+ .eds-contrast .eds-filter-chip__icon .eds-filter-chip-icon {
248
+ color: #ffffff;
249
+ }
250
+ .eds-filter-chip__icon .eds-filter-chip-icon__path {
251
+ transform-origin: 50% 50%;
252
+ stroke-dasharray: 48;
253
+ stroke-dashoffset: 48;
254
+ stroke-width: 0.375rem;
255
+ }
256
+
257
+ @-webkit-keyframes stroke {
258
+ 100% {
259
+ stroke-dashoffset: 0;
260
+ }
261
+ }
262
+
263
+ @keyframes stroke {
264
+ 100% {
265
+ stroke-dashoffset: 0;
266
+ }
242
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.5.1",
3
+ "version": "0.5.4",
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.0",
31
- "@entur/tokens": "^3.3.1",
30
+ "@entur/form": "^5.3.3",
31
+ "@entur/tokens": "^3.3.2",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "bac1c320b3de1c10ab25a76ebb15b0cce989a27d"
35
+ "gitHead": "7b557782d62c07bdce744f9b084d57177e2202e9"
36
36
  }