@entur/chip 0.6.48 → 0.6.49

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 +62 -62
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -1,35 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-chip {
4
- background: #ebebf1;
5
- border: 0.0625rem solid #d1d4e3;
6
- border-radius: 1rem;
7
- color: inherit;
8
- font-family: inherit;
9
- font-size: 0.875rem;
10
- height: 2rem;
11
- min-width: 3rem;
12
- padding: 0 0.75rem;
13
- transition: background 0.1s ease-out, border 0.1s ease-out;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- }
18
- .eds-chip svg {
19
- font-size: 0.875rem;
20
- }
21
- .eds-contrast .eds-chip {
22
- background-color: #393d79;
23
- border-color: transparent;
24
- }
25
- .eds-chip--leading-icon .eds-icon:first-of-type {
26
- margin-right: 0.5rem;
27
- }
28
- .eds-chip--trailing-icon .eds-icon:last-of-type {
29
- margin-left: 0.5rem;
30
- }
31
- /* DO NOT CHANGE!*/
32
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
33
3
  .eds-choice-chip {
34
4
  cursor: pointer;
35
5
  display: inline-block;
@@ -102,42 +72,33 @@
102
72
  }
103
73
  /* DO NOT CHANGE!*/
104
74
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
105
- .eds-action-chip {
106
- cursor: pointer;
107
- }
108
- .eds-action-chip:focus {
109
- outline: none;
110
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
111
- outline-offset: 0.125rem;
112
- }
113
- .eds-contrast .eds-action-chip:focus {
114
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
115
- }
116
- .eds-action-chip:hover {
117
- border-color: #181c56;
118
- }
119
- .eds-contrast .eds-action-chip:hover {
120
- background-color: #54568c;
121
- border-color: #54568c;
122
- }
123
- .eds-action-chip:active {
124
- background: #d1d4e3;
75
+ .eds-chip {
76
+ background: #ebebf1;
77
+ border: 0.0625rem solid #d1d4e3;
78
+ border-radius: 1rem;
79
+ color: inherit;
80
+ font-family: inherit;
81
+ font-size: 0.875rem;
82
+ height: 2rem;
83
+ min-width: 3rem;
84
+ padding: 0 0.75rem;
85
+ transition: background 0.1s ease-out, border 0.1s ease-out;
86
+ display: flex;
87
+ justify-content: center;
88
+ align-items: center;
125
89
  }
126
- .eds-contrast .eds-action-chip:active {
127
- background-color: #292b6a;
128
- border-color: #292b6a;
90
+ .eds-chip svg {
91
+ font-size: 0.875rem;
129
92
  }
130
- .eds-action-chip--disabled {
131
- opacity: 0.5;
132
- pointer-events: none;
93
+ .eds-contrast .eds-chip {
94
+ background-color: #393d79;
95
+ border-color: transparent;
133
96
  }
134
- .eds-action-chip--disabled__wrapper {
135
- cursor: not-allowed;
136
- width: -moz-fit-content;
137
- width: fit-content;
97
+ .eds-chip--leading-icon .eds-icon:first-of-type {
98
+ margin-right: 0.5rem;
138
99
  }
139
- .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
140
- background-color: #ffffff;
100
+ .eds-chip--trailing-icon .eds-icon:last-of-type {
101
+ margin-left: 0.5rem;
141
102
  }
142
103
  /* DO NOT CHANGE!*/
143
104
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -181,6 +142,45 @@
181
142
  }
182
143
  /* DO NOT CHANGE!*/
183
144
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
145
+ .eds-action-chip {
146
+ cursor: pointer;
147
+ }
148
+ .eds-action-chip:focus {
149
+ outline: none;
150
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
151
+ outline-offset: 0.125rem;
152
+ }
153
+ .eds-contrast .eds-action-chip:focus {
154
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
155
+ }
156
+ .eds-action-chip:hover {
157
+ border-color: #181c56;
158
+ }
159
+ .eds-contrast .eds-action-chip:hover {
160
+ background-color: #54568c;
161
+ border-color: #54568c;
162
+ }
163
+ .eds-action-chip:active {
164
+ background: #d1d4e3;
165
+ }
166
+ .eds-contrast .eds-action-chip:active {
167
+ background-color: #292b6a;
168
+ border-color: #292b6a;
169
+ }
170
+ .eds-action-chip--disabled {
171
+ opacity: 0.5;
172
+ pointer-events: none;
173
+ }
174
+ .eds-action-chip--disabled__wrapper {
175
+ cursor: not-allowed;
176
+ width: -moz-fit-content;
177
+ width: fit-content;
178
+ }
179
+ .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
180
+ background-color: #ffffff;
181
+ }
182
+ /* DO NOT CHANGE!*/
183
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
184
184
  .eds-filter-chip {
185
185
  cursor: pointer;
186
186
  -webkit-user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.48",
3
+ "version": "0.6.49",
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": "^7.0.20",
31
- "@entur/icons": "^6.8.0",
32
- "@entur/loader": "^0.4.41",
30
+ "@entur/form": "^7.0.21",
31
+ "@entur/icons": "^6.9.0",
32
+ "@entur/loader": "^0.4.42",
33
33
  "@entur/tokens": "^3.10.0",
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "9e5cbcf10c3e18dff42f0afb3b4cb40df557c14c"
37
+ "gitHead": "36f7ef81ee8188c701d607dc01124658dfff7265"
38
38
  }