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