@entur/chip 0.6.5 → 0.6.6

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.6](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.5...@entur/chip@0.6.6) (2022-08-31)
7
+
8
+ **Note:** Version bump only for package @entur/chip
9
+
6
10
  ## [0.6.5](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.4...@entur/chip@0.6.5) (2022-08-24)
7
11
 
8
12
  **Note:** Version bump only for package @entur/chip
package/dist/styles.css CHANGED
@@ -2,6 +2,106 @@
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
+ border-style: dashed;
97
+ cursor: not-allowed;
98
+ }
99
+ .eds-contrast .eds-choice-chip .eds-chip--disabled {
100
+ opacity: 1;
101
+ border-color: #8285a8;
102
+ color: #babbcf;
103
+ }/* DO NOT CHANGE!*/
104
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
105
  .eds-tag-chip {
6
106
  cursor: default;
7
107
  padding-right: 0.25rem;
@@ -42,35 +142,6 @@
42
142
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
43
143
  }/* DO NOT CHANGE!*/
44
144
  /* 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;
59
- }
60
- .eds-chip svg {
61
- font-size: 0.875rem;
62
- }
63
- .eds-contrast .eds-chip {
64
- background-color: #393d79;
65
- border-color: transparent;
66
- }
67
- .eds-chip--leading-icon .eds-icon {
68
- margin-right: 0.5rem;
69
- }
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
145
  .eds-filter-chip {
75
146
  cursor: pointer;
76
147
  -webkit-user-select: none;
@@ -165,77 +236,6 @@
165
236
  }
166
237
  }/* DO NOT CHANGE!*/
167
238
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
168
- .eds-choice-chip {
169
- cursor: pointer;
170
- display: inline-block;
171
- margin-right: 0.75rem;
172
- position: relative;
173
- transition: all 0.1s ease-out;
174
- }
175
- .eds-choice-chip__input {
176
- -moz-appearance: none;
177
- appearance: none;
178
- height: 0;
179
- position: absolute;
180
- width: 0;
181
- -webkit-appearance: none;
182
- }
183
- .eds-choice-chip__input ~ .eds-chip {
184
- background-color: transparent;
185
- }
186
- .eds-contrast .eds-choice-chip__input ~ .eds-chip {
187
- border-color: #aeb7e2;
188
- color: #ffffff;
189
- }
190
- .eds-choice-chip__input:checked ~ .eds-chip {
191
- background-color: #181c56;
192
- border-color: #181c56;
193
- color: #ffffff;
194
- }
195
- .eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
196
- border-color: #aeb7e2;
197
- background-color: #aeb7e2;
198
- color: #181c56;
199
- }
200
- .eds-choice-chip__input:focus ~ .eds-chip {
201
- outline: none;
202
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
203
- outline-offset: 0.125rem;
204
- }
205
- .eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
206
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
207
- }
208
- .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
209
- border-color: #181c56;
210
- }
211
- .eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
212
- border-color: #ffffff;
213
- }
214
- .eds-choice-chip__input:checked:hover ~ .eds-chip {
215
- background-color: #3b3e6f;
216
- border-color: #3b3e6f;
217
- }
218
- .eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
219
- background-color: #bac2e6;
220
- border-color: #bac2e6;
221
- }
222
- .eds-choice-chip__input:active ~ .eds-chip {
223
- background-color: #d1d4e3;
224
- border-color: #d1d4e3;
225
- }
226
- .eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
227
- background: #33376d;
228
- }
229
- .eds-choice-chip .eds-chip--disabled {
230
- border-style: dashed;
231
- cursor: not-allowed;
232
- }
233
- .eds-contrast .eds-choice-chip .eds-chip--disabled {
234
- opacity: 1;
235
- border-color: #8285a8;
236
- color: #babbcf;
237
- }/* DO NOT CHANGE!*/
238
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
239
239
  .eds-action-chip {
240
240
  cursor: pointer;
241
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
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.2",
30
+ "@entur/form": "^5.4.3",
31
31
  "@entur/tokens": "^3.4.1",
32
- "@entur/utils": "^0.4.4",
32
+ "@entur/utils": "^0.4.5",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "1dabe0c64e98a7de3a47a29fc24fd46e74dc0d7c"
35
+ "gitHead": "8aec781ef750306fdf0c4042edabfad5b33cbdb8"
36
36
  }