@entur/chip 0.5.0 → 0.5.3

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,20 @@
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.3](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.2...@entur/chip@0.5.3) (2022-04-20)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
10
+ ## [0.5.2](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.1...@entur/chip@0.5.2) (2022-04-19)
11
+
12
+ **Note:** Version bump only for package @entur/chip
13
+
14
+ ## [0.5.1](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.0...@entur/chip@0.5.1) (2022-03-17)
15
+
16
+ ### Bug Fixes
17
+
18
+ - **ChoiceChip:** add -webkit fallback for Safari ([d19f8c3](https://bitbucket.org/enturas/design-system/commits/d19f8c34b401676283ff5fbc3b10ec0a1f04d3b8))
19
+
6
20
  # [0.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.4.24...@entur/chip@0.5.0) (2022-03-14)
7
21
 
8
22
  ### Features
package/dist/styles.css CHANGED
@@ -2,6 +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 {
6
+ cursor: pointer;
7
+ }
8
+ .eds-action-chip:focus {
9
+ outline: none;
10
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
11
+ outline-offset: 0.125rem;
12
+ }
13
+ .eds-contrast .eds-action-chip:focus {
14
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
15
+ }
16
+ .eds-action-chip:hover {
17
+ border-color: #181c56;
18
+ }
19
+ .eds-contrast .eds-action-chip:hover {
20
+ background-color: #54568c;
21
+ border-color: #54568c;
22
+ }
23
+ .eds-action-chip:active {
24
+ background: #d1d4e3;
25
+ }
26
+ .eds-contrast .eds-action-chip:active {
27
+ background-color: #292b6a;
28
+ border-color: #292b6a;
29
+ }
30
+ .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
31
+ background-color: #ffffff;
32
+ }/* DO NOT CHANGE!*/
33
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
34
+ .eds-tag-chip {
35
+ cursor: default;
36
+ padding-right: 0.25rem;
37
+ width: -webkit-fit-content;
38
+ width: -moz-fit-content;
39
+ width: fit-content;
40
+ }
41
+ .eds-tag-chip__close-button {
42
+ -webkit-appearance: none;
43
+ -moz-appearance: none;
44
+ appearance: none;
45
+ background: none;
46
+ border: none;
47
+ border-radius: 50%;
48
+ color: #181c56;
49
+ cursor: pointer;
50
+ display: flex;
51
+ font-size: 0.875rem;
52
+ padding: 0.25rem;
53
+ margin-left: 0.25rem;
54
+ transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
55
+ }
56
+ .eds-contrast .eds-tag-chip__close-button {
57
+ color: #ffffff;
58
+ }
59
+ .eds-tag-chip__close-button:hover {
60
+ background: #babbcf;
61
+ }
62
+ .eds-contrast .eds-tag-chip__close-button:hover {
63
+ background: #54568c;
64
+ }
65
+ .eds-tag-chip__close-button:focus {
66
+ outline-offset: 0.125rem;
67
+ outline: none;
68
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
69
+ }
70
+ .eds-contrast .eds-tag-chip__close-button:focus {
71
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
72
+ }/* DO NOT CHANGE!*/
73
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
74
  .eds-chip {
6
75
  background: #ebebf1;
7
76
  border: 0.0625rem solid #d1d4e3;
@@ -33,8 +102,13 @@
33
102
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
34
103
  .eds-filter-chip {
35
104
  cursor: pointer;
36
- user-select: none;
105
+ -webkit-user-select: none;
106
+ -moz-user-select: none;
107
+ -ms-user-select: none;
108
+ user-select: none;
37
109
  padding-left: 0.25rem;
110
+ width: -webkit-fit-content;
111
+ width: -moz-fit-content;
38
112
  width: fit-content;
39
113
  }
40
114
  .eds-filter-chip__input {
@@ -48,16 +122,25 @@
48
122
  }
49
123
  .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
50
124
  stroke: #181c56;
51
- animation: stroke ease-in-out 0.2s 0.1s forwards;
125
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
126
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
52
127
  }
53
128
  .eds-contrast .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
54
129
  stroke: #5ac39a;
55
130
  }
131
+ .eds-filter-chip[focus-within] {
132
+ outline: none;
133
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
134
+ outline-offset: 0.125rem;
135
+ }
56
136
  .eds-filter-chip:focus-within {
57
137
  outline: none;
58
138
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
59
139
  outline-offset: 0.125rem;
60
140
  }
141
+ .eds-contrast .eds-filter-chip[focus-within] {
142
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
143
+ }
61
144
  .eds-contrast .eds-filter-chip:focus-within {
62
145
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
63
146
  }
@@ -99,6 +182,12 @@
99
182
  stroke-width: 0.375rem;
100
183
  }
101
184
 
185
+ @-webkit-keyframes stroke {
186
+ 100% {
187
+ stroke-dashoffset: 0;
188
+ }
189
+ }
190
+
102
191
  @keyframes stroke {
103
192
  100% {
104
193
  stroke-dashoffset: 0;
@@ -113,10 +202,12 @@
113
202
  transition: all 0.1s ease-out;
114
203
  }
115
204
  .eds-choice-chip__input {
116
- appearance: none;
205
+ -moz-appearance: none;
206
+ appearance: none;
117
207
  height: 0;
118
208
  position: absolute;
119
209
  width: 0;
210
+ -webkit-appearance: none;
120
211
  }
121
212
  .eds-choice-chip__input ~ .eds-chip {
122
213
  background-color: transparent;
@@ -173,69 +264,4 @@
173
264
  opacity: 1;
174
265
  border-color: #8285a8;
175
266
  color: #babbcf;
176
- }/* DO NOT CHANGE!*/
177
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
178
- .eds-action-chip {
179
- cursor: pointer;
180
- }
181
- .eds-action-chip:focus {
182
- outline: none;
183
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
184
- outline-offset: 0.125rem;
185
- }
186
- .eds-contrast .eds-action-chip:focus {
187
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
188
- }
189
- .eds-action-chip:hover {
190
- border-color: #181c56;
191
- }
192
- .eds-contrast .eds-action-chip:hover {
193
- background-color: #54568c;
194
- border-color: #54568c;
195
- }
196
- .eds-action-chip:active {
197
- background: #d1d4e3;
198
- }
199
- .eds-contrast .eds-action-chip:active {
200
- background-color: #292b6a;
201
- border-color: #292b6a;
202
- }
203
- .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
204
- background-color: #ffffff;
205
- }/* DO NOT CHANGE!*/
206
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
207
- .eds-tag-chip {
208
- cursor: default;
209
- padding-right: 0.25rem;
210
- width: fit-content;
211
- }
212
- .eds-tag-chip__close-button {
213
- appearance: none;
214
- background: none;
215
- border: none;
216
- border-radius: 50%;
217
- color: #181c56;
218
- cursor: pointer;
219
- display: flex;
220
- font-size: 0.875rem;
221
- padding: 0.25rem;
222
- margin-left: 0.25rem;
223
- transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
224
- }
225
- .eds-contrast .eds-tag-chip__close-button {
226
- color: #ffffff;
227
- }
228
- .eds-tag-chip__close-button:hover {
229
- background: #babbcf;
230
- }
231
- .eds-contrast .eds-tag-chip__close-button:hover {
232
- background: #54568c;
233
- }
234
- .eds-tag-chip__close-button:focus {
235
- outline-offset: 0.125rem;
236
- outline: none;
237
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
238
- }
239
- .eds-contrast .eds-tag-chip__close-button:focus {
240
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
241
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.5.0",
3
+ "version": "0.5.3",
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",
30
+ "@entur/form": "^5.3.2",
31
31
  "@entur/tokens": "^3.3.1",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "c672c8396ce0c3d436746e4299680137488d579d"
35
+ "gitHead": "c10b4f0f9ecda0126bc916b80ca694cf8d58e399"
36
36
  }