@entur/chip 0.6.9-alpha.0 → 0.6.10

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,7 +3,11 @@
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.9-alpha.0](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.8...@entur/chip@0.6.9-alpha.0) (2022-10-20)
6
+ ## [0.6.10](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.9...@entur/chip@0.6.10) (2022-10-20)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
10
+ ## [0.6.9](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.8...@entur/chip@0.6.9) (2022-10-20)
7
11
 
8
12
  **Note:** Version bump only for package @entur/chip
9
13
 
package/dist/styles.css CHANGED
@@ -2,146 +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-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. */
74
- .eds-choice-chip {
75
- cursor: pointer;
76
- display: inline-block;
77
- margin-right: 0.75rem;
78
- position: relative;
79
- transition: all 0.1s ease-out;
80
- }
81
- .eds-choice-chip__input {
82
- -moz-appearance: none;
83
- appearance: none;
84
- height: 0;
85
- position: absolute;
86
- width: 0;
87
- -webkit-appearance: none;
88
- }
89
- .eds-choice-chip__input ~ .eds-chip {
90
- background-color: transparent;
91
- }
92
- .eds-contrast .eds-choice-chip__input ~ .eds-chip {
93
- border-color: #aeb7e2;
94
- color: #ffffff;
95
- }
96
- .eds-choice-chip__input:checked ~ .eds-chip {
97
- background-color: #181c56;
98
- border-color: #181c56;
99
- color: #ffffff;
100
- }
101
- .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
102
- border-color: #aeb7e2;
103
- background-color: #aeb7e2;
104
- color: #181c56;
105
- }
106
- .eds-choice-chip__input:focus ~ .eds-chip {
107
- outline: none;
108
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
109
- outline-offset: 0.125rem;
110
- }
111
- .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
112
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
113
- }
114
- .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
115
- border-color: #181c56;
116
- }
117
- .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
118
- border-color: #ffffff;
119
- }
120
- .eds-choice-chip__input:checked:hover ~ .eds-chip {
121
- background-color: #3b3e6f;
122
- border-color: #3b3e6f;
123
- }
124
- .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
125
- background-color: #bac2e6;
126
- border-color: #bac2e6;
127
- }
128
- .eds-choice-chip__input:active ~ .eds-chip {
129
- background-color: #d1d4e3;
130
- border-color: #d1d4e3;
131
- }
132
- .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
133
- background: #33376d;
134
- }
135
- .eds-choice-chip .eds-chip--disabled {
136
- border-style: dashed;
137
- cursor: not-allowed;
138
- }
139
- .eds-contrast .eds-choice-chip .eds-chip--disabled {
140
- opacity: 1;
141
- border-color: #8285a8;
142
- color: #babbcf;
143
- }/* DO NOT CHANGE!*/
144
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
145
5
  .eds-action-chip {
146
6
  cursor: pointer;
147
7
  }
@@ -181,6 +41,35 @@
181
41
  background-color: #ffffff;
182
42
  }/* DO NOT CHANGE!*/
183
43
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
44
+ .eds-chip {
45
+ background: #ebebf1;
46
+ border: 0.0625rem solid #d1d4e3;
47
+ border-radius: 1rem;
48
+ color: inherit;
49
+ font-family: inherit;
50
+ font-size: 0.875rem;
51
+ height: 2rem;
52
+ min-width: 3rem;
53
+ padding: 0 0.75rem;
54
+ transition: background 0.1s ease-out, border 0.1s ease-out;
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ }
59
+ .eds-chip svg {
60
+ font-size: 0.875rem;
61
+ }
62
+ .eds-contrast .eds-chip {
63
+ background-color: #393d79;
64
+ border-color: transparent;
65
+ }
66
+ .eds-chip--leading-icon .eds-icon {
67
+ margin-right: 0.5rem;
68
+ }
69
+ .eds-chip--trailing-icon .eds-icon {
70
+ margin-left: 0.5rem;
71
+ }/* DO NOT CHANGE!*/
72
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
184
73
  .eds-filter-chip {
185
74
  cursor: pointer;
186
75
  -webkit-user-select: none;
@@ -273,4 +162,115 @@
273
162
  100% {
274
163
  stroke-dashoffset: 0;
275
164
  }
165
+ }/* DO NOT CHANGE!*/
166
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
167
+ .eds-choice-chip {
168
+ cursor: pointer;
169
+ display: inline-block;
170
+ margin-right: 0.75rem;
171
+ position: relative;
172
+ transition: all 0.1s ease-out;
173
+ }
174
+ .eds-choice-chip__input {
175
+ -moz-appearance: none;
176
+ appearance: none;
177
+ height: 0;
178
+ position: absolute;
179
+ width: 0;
180
+ -webkit-appearance: none;
181
+ }
182
+ .eds-choice-chip__input ~ .eds-chip {
183
+ background-color: transparent;
184
+ }
185
+ .eds-contrast .eds-choice-chip__input ~ .eds-chip {
186
+ border-color: #aeb7e2;
187
+ color: #ffffff;
188
+ }
189
+ .eds-choice-chip__input:checked ~ .eds-chip {
190
+ background-color: #181c56;
191
+ border-color: #181c56;
192
+ color: #ffffff;
193
+ }
194
+ .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
195
+ border-color: #aeb7e2;
196
+ background-color: #aeb7e2;
197
+ color: #181c56;
198
+ }
199
+ .eds-choice-chip__input:focus ~ .eds-chip {
200
+ outline: none;
201
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
202
+ outline-offset: 0.125rem;
203
+ }
204
+ .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
205
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
206
+ }
207
+ .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
208
+ border-color: #181c56;
209
+ }
210
+ .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
211
+ border-color: #ffffff;
212
+ }
213
+ .eds-choice-chip__input:checked:hover ~ .eds-chip {
214
+ background-color: #3b3e6f;
215
+ border-color: #3b3e6f;
216
+ }
217
+ .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
218
+ background-color: #bac2e6;
219
+ border-color: #bac2e6;
220
+ }
221
+ .eds-choice-chip__input:active ~ .eds-chip {
222
+ background-color: #d1d4e3;
223
+ border-color: #d1d4e3;
224
+ }
225
+ .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
226
+ background: #33376d;
227
+ }
228
+ .eds-choice-chip .eds-chip--disabled {
229
+ border-style: dashed;
230
+ cursor: not-allowed;
231
+ }
232
+ .eds-contrast .eds-choice-chip .eds-chip--disabled {
233
+ opacity: 1;
234
+ border-color: #8285a8;
235
+ color: #babbcf;
236
+ }/* DO NOT CHANGE!*/
237
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
238
+ .eds-tag-chip {
239
+ cursor: default;
240
+ padding-right: 0.25rem;
241
+ width: -webkit-fit-content;
242
+ width: -moz-fit-content;
243
+ width: fit-content;
244
+ }
245
+ .eds-tag-chip__close-button {
246
+ -webkit-appearance: none;
247
+ -moz-appearance: none;
248
+ appearance: none;
249
+ background: none;
250
+ border: none;
251
+ border-radius: 50%;
252
+ color: #181c56;
253
+ cursor: pointer;
254
+ display: flex;
255
+ font-size: 0.875rem;
256
+ padding: 0.25rem;
257
+ margin-left: 0.25rem;
258
+ transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
259
+ }
260
+ .eds-contrast .eds-tag-chip__close-button {
261
+ color: #ffffff;
262
+ }
263
+ .eds-tag-chip__close-button:hover {
264
+ background: #babbcf;
265
+ }
266
+ .eds-contrast .eds-tag-chip__close-button:hover {
267
+ background: #54568c;
268
+ }
269
+ .eds-tag-chip__close-button:focus {
270
+ outline-offset: 0.125rem;
271
+ outline: none;
272
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
273
+ }
274
+ .eds-contrast .eds-tag-chip__close-button:focus {
275
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
276
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.9-alpha.0",
3
+ "version": "0.6.10",
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.4.6-alpha.0",
30
+ "@entur/form": "^5.4.7",
31
31
  "@entur/tokens": "^3.4.1",
32
- "@entur/utils": "^0.4.6-alpha.0",
32
+ "@entur/utils": "^0.4.5",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "497df350c3af082f714f461c7089a1fec1b4f8c9"
35
+ "gitHead": "77a4311927a9215106a9aae13c6e92e5f0f7f614"
36
36
  }