@entur/chip 0.6.20 → 0.6.22

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 +61 -61
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -2,6 +2,35 @@
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. */
5
34
  .eds-choice-chip {
6
35
  cursor: pointer;
7
36
  display: inline-block;
@@ -73,33 +102,43 @@
73
102
  color: #babbcf;
74
103
  }/* DO NOT CHANGE!*/
75
104
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
76
- .eds-chip {
77
- background: #ebebf1;
78
- border: 0.0625rem solid #d1d4e3;
79
- border-radius: 1rem;
80
- color: inherit;
81
- font-family: inherit;
82
- font-size: 0.875rem;
83
- height: 2rem;
84
- min-width: 3rem;
85
- padding: 0 0.75rem;
86
- transition: background 0.1s ease-out, border 0.1s ease-out;
87
- display: flex;
88
- justify-content: center;
89
- align-items: center;
105
+ .eds-tag-chip {
106
+ cursor: default;
107
+ padding-right: 0.25rem;
108
+ width: -moz-fit-content;
109
+ width: fit-content;
90
110
  }
91
- .eds-chip svg {
111
+ .eds-tag-chip__close-button {
112
+ -webkit-appearance: none;
113
+ -moz-appearance: none;
114
+ appearance: none;
115
+ background: none;
116
+ border: none;
117
+ border-radius: 50%;
118
+ color: #181c56;
119
+ cursor: pointer;
120
+ display: flex;
92
121
  font-size: 0.875rem;
122
+ padding: 0.25rem;
123
+ margin-left: 0.25rem;
124
+ transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
93
125
  }
94
- .eds-contrast .eds-chip {
95
- background-color: #393d79;
96
- border-color: transparent;
126
+ .eds-contrast .eds-tag-chip__close-button {
127
+ color: #ffffff;
97
128
  }
98
- .eds-chip--leading-icon .eds-icon {
99
- margin-right: 0.5rem;
129
+ .eds-tag-chip__close-button:hover {
130
+ background: #babbcf;
100
131
  }
101
- .eds-chip--trailing-icon .eds-icon {
102
- margin-left: 0.5rem;
132
+ .eds-contrast .eds-tag-chip__close-button:hover {
133
+ background: #54568c;
134
+ }
135
+ .eds-tag-chip__close-button:focus {
136
+ outline-offset: 0.125rem;
137
+ outline: none;
138
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
139
+ }
140
+ .eds-contrast .eds-tag-chip__close-button:focus {
141
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
103
142
  }/* DO NOT CHANGE!*/
104
143
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
105
144
  .eds-action-chip {
@@ -223,43 +262,4 @@
223
262
  100% {
224
263
  stroke-dashoffset: 0;
225
264
  }
226
- }/* DO NOT CHANGE!*/
227
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
228
- .eds-tag-chip {
229
- cursor: default;
230
- padding-right: 0.25rem;
231
- width: -moz-fit-content;
232
- width: fit-content;
233
- }
234
- .eds-tag-chip__close-button {
235
- -webkit-appearance: none;
236
- -moz-appearance: none;
237
- appearance: none;
238
- background: none;
239
- border: none;
240
- border-radius: 50%;
241
- color: #181c56;
242
- cursor: pointer;
243
- display: flex;
244
- font-size: 0.875rem;
245
- padding: 0.25rem;
246
- margin-left: 0.25rem;
247
- transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
248
- }
249
- .eds-contrast .eds-tag-chip__close-button {
250
- color: #ffffff;
251
- }
252
- .eds-tag-chip__close-button:hover {
253
- background: #babbcf;
254
- }
255
- .eds-contrast .eds-tag-chip__close-button:hover {
256
- background: #54568c;
257
- }
258
- .eds-tag-chip__close-button:focus {
259
- outline-offset: 0.125rem;
260
- outline: none;
261
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
262
- }
263
- .eds-contrast .eds-tag-chip__close-button:focus {
264
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
265
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.20",
3
+ "version": "0.6.22",
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.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",
30
+ "@entur/form": "^5.4.19",
31
+ "@entur/icons": "^5.8.0",
32
+ "@entur/loader": "^0.4.22",
33
+ "@entur/tokens": "^3.8.0",
34
+ "@entur/utils": "^0.5.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "ff44073d29948fc811c0dbd6921c003794285c06"
37
+ "gitHead": "3b97ecb2ab0cba40d9f353d936dc0a87a6253108"
38
38
  }