@entur/chip 0.5.7 → 0.5.8

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.5.8](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.7...@entur/chip@0.5.8) (2022-06-24)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
6
10
  ## [0.5.7](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.5.6...@entur/chip@0.5.7) (2022-06-02)
7
11
 
8
12
  **Note:** Version bump only for package @entur/chip
package/dist/styles.css CHANGED
@@ -2,107 +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-chip {
6
- background: #ebebf1;
7
- border: 0.0625rem solid #d1d4e3;
8
- border-radius: 1rem;
9
- color: inherit;
10
- font-family: inherit;
11
- font-size: 0.875rem;
12
- height: 2rem;
13
- min-width: 3rem;
14
- padding: 0 0.75rem;
15
- transition: background 0.1s ease-out, border 0.1s ease-out;
16
- display: flex;
17
- justify-content: center;
18
- align-items: center;
19
- }
20
- .eds-chip svg {
21
- font-size: 0.875rem;
22
- }
23
- .eds-contrast .eds-chip {
24
- background-color: #393d79;
25
- border-color: transparent;
26
- }
27
- .eds-chip--leading-icon .eds-icon {
28
- margin-right: 0.5rem;
29
- }
30
- .eds-chip--trailing-icon .eds-icon {
31
- margin-left: 0.5rem;
32
- }/* DO NOT CHANGE!*/
33
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
34
- .eds-choice-chip {
35
- cursor: pointer;
36
- display: inline-block;
37
- margin-right: 0.75rem;
38
- position: relative;
39
- transition: all 0.1s ease-out;
40
- }
41
- .eds-choice-chip__input {
42
- -moz-appearance: none;
43
- appearance: none;
44
- height: 0;
45
- position: absolute;
46
- width: 0;
47
- -webkit-appearance: none;
48
- }
49
- .eds-choice-chip__input ~ .eds-chip {
50
- background-color: transparent;
51
- }
52
- .eds-contrast .eds-choice-chip__input ~ .eds-chip {
53
- border-color: #aeb7e2;
54
- color: #ffffff;
55
- }
56
- .eds-choice-chip__input:checked ~ .eds-chip {
57
- background-color: #181c56;
58
- border-color: #181c56;
59
- color: #ffffff;
60
- }
61
- .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
62
- border-color: #aeb7e2;
63
- background-color: #aeb7e2;
64
- color: #181c56;
65
- }
66
- .eds-choice-chip__input:focus ~ .eds-chip {
67
- outline: none;
68
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
69
- outline-offset: 0.125rem;
70
- }
71
- .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
72
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
73
- }
74
- .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
75
- border-color: #181c56;
76
- }
77
- .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
78
- border-color: #ffffff;
79
- }
80
- .eds-choice-chip__input:checked:hover ~ .eds-chip {
81
- background-color: #3b3e6f;
82
- border-color: #3b3e6f;
83
- }
84
- .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
85
- background-color: #bac2e6;
86
- border-color: #bac2e6;
87
- }
88
- .eds-choice-chip__input:active ~ .eds-chip {
89
- background-color: #d1d4e3;
90
- border-color: #d1d4e3;
91
- }
92
- .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
93
- background: #33376d;
94
- }
95
- .eds-choice-chip .eds-chip--disabled {
96
- opacity: 0.5;
97
- border-style: dashed;
98
- cursor: not-allowed;
99
- }
100
- .eds-contrast .eds-choice-chip .eds-chip--disabled {
101
- opacity: 1;
102
- border-color: #8285a8;
103
- color: #babbcf;
104
- }/* DO NOT CHANGE!*/
105
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
106
5
  .eds-action-chip {
107
6
  cursor: pointer;
108
7
  }
@@ -132,6 +31,35 @@
132
31
  background-color: #ffffff;
133
32
  }/* DO NOT CHANGE!*/
134
33
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
34
+ .eds-chip {
35
+ background: #ebebf1;
36
+ border: 0.0625rem solid #d1d4e3;
37
+ border-radius: 1rem;
38
+ color: inherit;
39
+ font-family: inherit;
40
+ font-size: 0.875rem;
41
+ height: 2rem;
42
+ min-width: 3rem;
43
+ padding: 0 0.75rem;
44
+ transition: background 0.1s ease-out, border 0.1s ease-out;
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
48
+ }
49
+ .eds-chip svg {
50
+ font-size: 0.875rem;
51
+ }
52
+ .eds-contrast .eds-chip {
53
+ background-color: #393d79;
54
+ border-color: transparent;
55
+ }
56
+ .eds-chip--leading-icon .eds-icon {
57
+ margin-right: 0.5rem;
58
+ }
59
+ .eds-chip--trailing-icon .eds-icon {
60
+ margin-left: 0.5rem;
61
+ }/* DO NOT CHANGE!*/
62
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
135
63
  .eds-tag-chip {
136
64
  cursor: default;
137
65
  padding-right: 0.25rem;
@@ -264,4 +192,76 @@
264
192
  100% {
265
193
  stroke-dashoffset: 0;
266
194
  }
195
+ }/* DO NOT CHANGE!*/
196
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
197
+ .eds-choice-chip {
198
+ cursor: pointer;
199
+ display: inline-block;
200
+ margin-right: 0.75rem;
201
+ position: relative;
202
+ transition: all 0.1s ease-out;
203
+ }
204
+ .eds-choice-chip__input {
205
+ -moz-appearance: none;
206
+ appearance: none;
207
+ height: 0;
208
+ position: absolute;
209
+ width: 0;
210
+ -webkit-appearance: none;
211
+ }
212
+ .eds-choice-chip__input ~ .eds-chip {
213
+ background-color: transparent;
214
+ }
215
+ .eds-contrast .eds-choice-chip__input ~ .eds-chip {
216
+ border-color: #aeb7e2;
217
+ color: #ffffff;
218
+ }
219
+ .eds-choice-chip__input:checked ~ .eds-chip {
220
+ background-color: #181c56;
221
+ border-color: #181c56;
222
+ color: #ffffff;
223
+ }
224
+ .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
225
+ border-color: #aeb7e2;
226
+ background-color: #aeb7e2;
227
+ color: #181c56;
228
+ }
229
+ .eds-choice-chip__input:focus ~ .eds-chip {
230
+ outline: none;
231
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
232
+ outline-offset: 0.125rem;
233
+ }
234
+ .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
235
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
236
+ }
237
+ .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
238
+ border-color: #181c56;
239
+ }
240
+ .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
241
+ border-color: #ffffff;
242
+ }
243
+ .eds-choice-chip__input:checked:hover ~ .eds-chip {
244
+ background-color: #3b3e6f;
245
+ border-color: #3b3e6f;
246
+ }
247
+ .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
248
+ background-color: #bac2e6;
249
+ border-color: #bac2e6;
250
+ }
251
+ .eds-choice-chip__input:active ~ .eds-chip {
252
+ background-color: #d1d4e3;
253
+ border-color: #d1d4e3;
254
+ }
255
+ .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
256
+ background: #33376d;
257
+ }
258
+ .eds-choice-chip .eds-chip--disabled {
259
+ opacity: 0.5;
260
+ border-style: dashed;
261
+ cursor: not-allowed;
262
+ }
263
+ .eds-contrast .eds-choice-chip .eds-chip--disabled {
264
+ opacity: 1;
265
+ border-color: #8285a8;
266
+ color: #babbcf;
267
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
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.6",
30
+ "@entur/form": "^5.3.7",
31
31
  "@entur/tokens": "^3.3.2",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "02c1bc4caad8480d21d8560188ba21b972e3370e"
35
+ "gitHead": "974289b6579ade4460d12aa877a89e454c983d48"
36
36
  }