@entur/table 4.5.4 → 4.5.7

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,20 @@
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
+ ## [4.5.7](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.6...@entur/table@4.5.7) (2022-04-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **table:** fix incorrect header padding in table ([0efe315](https://bitbucket.org/enturas/design-system/commits/0efe315f5a508e3a9eecfe6b992e8a6a7083555b))
11
+
12
+ ## [4.5.6](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.5...@entur/table@4.5.6) (2022-03-14)
13
+
14
+ **Note:** Version bump only for package @entur/table
15
+
16
+ ## [4.5.5](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.4...@entur/table@4.5.5) (2022-03-01)
17
+
18
+ **Note:** Version bump only for package @entur/table
19
+
6
20
  ## [4.5.4](https://bitbucket.org/enturas/design-system/compare/@entur/table@4.5.3...@entur/table@4.5.4) (2022-02-09)
7
21
 
8
22
  **Note:** Version bump only for package @entur/table
package/dist/styles.css CHANGED
@@ -11,35 +11,21 @@
11
11
  .eds-table--fixed {
12
12
  table-layout: fixed;
13
13
  }
14
- .eds-table__data-cell, .eds-table__header-cell {
14
+ .eds-table__data-cell {
15
15
  height: 3.75rem;
16
16
  padding: 1rem 1.5rem;
17
17
  }
18
- .eds-contrast .eds-table__data-cell, .eds-contrast .eds-table__header-cell {
18
+ .eds-contrast .eds-table__data-cell {
19
19
  border-bottom-color: #393d79;
20
20
  }
21
- .eds-table--middle .eds-table__data-cell, .eds-table--middle .eds-table__header-cell {
21
+ .eds-table--middle .eds-table__data-cell {
22
22
  padding: 0.5rem 1rem;
23
23
  height: 3rem;
24
24
  }
25
- .eds-table--middle .eds-table__data-cell .eds-table__header-cell-button-icon, .eds-table--middle .eds-table__header-cell .eds-table__header-cell-button-icon {
26
- top: 0.5rem;
27
- }
28
- .eds-table--small .eds-table__data-cell, .eds-table--small .eds-table__header-cell {
25
+ .eds-table--small .eds-table__data-cell {
29
26
  padding: 0.25rem 1rem;
30
27
  height: 2rem;
31
28
  }
32
- .eds-table--small .eds-table__data-cell .eds-table__header-cell-button-icon, .eds-table--small .eds-table__header-cell .eds-table__header-cell-button-icon {
33
- top: 0.25rem;
34
- }
35
- .eds-table__header-cell {
36
- padding-top: 0;
37
- }
38
- .eds-table__header-cell--sortable:focus {
39
- outline: none;
40
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
41
- outline-offset: 0.125rem;
42
- }
43
29
  .eds-table__data-cell--padding-checkbox {
44
30
  width: 3rem;
45
31
  padding: 0.5rem 0 0.75rem 1.25rem;
@@ -122,54 +108,6 @@
122
108
  border-color: #393d79;
123
109
  }/* DO NOT CHANGE!*/
124
110
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
125
- .eds-table__header-cell {
126
- color: #656782;
127
- font-size: 0.875rem;
128
- font-weight: 500;
129
- text-align: left;
130
- }
131
- .eds-contrast .eds-table__header-cell {
132
- color: #aeb7e2;
133
- }
134
- .eds-table__header-cell--padding-checkbox {
135
- width: 3rem;
136
- padding: 0 0 1rem 1.25rem;
137
- }
138
- .eds-table__header-cell--padding-radio {
139
- width: 3rem;
140
- padding: 0 0 1rem 1.25rem;
141
- }
142
- .eds-table__header-cell--padding-overflow-menu {
143
- width: 3rem;
144
- padding: 1rem 0.75rem;
145
- }
146
- .eds-table__header-cell-button {
147
- appearance: none;
148
- border: none;
149
- background: none;
150
- color: inherit;
151
- cursor: pointer;
152
- font-size: inherit;
153
- font-weight: inherit;
154
- font-family: inherit;
155
- height: 100%;
156
- padding: 0;
157
- text-align: left;
158
- position: relative;
159
- width: 100%;
160
- }
161
- .eds-table__header-cell-button-icon {
162
- position: absolute;
163
- top: 0.75rem;
164
- margin-left: 0.25rem;
165
- }
166
- .eds-table__header-cell-button:focus {
167
- outline: 2px solid #181c56;
168
- }
169
- .eds-contrast .eds-table__header-cell-button:focus {
170
- outline: 2px solid #ffffff;
171
- }/* DO NOT CHANGE!*/
172
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
173
111
  .eds-editable-cell {
174
112
  padding: 0.25rem 0.75rem;
175
113
  }
@@ -213,11 +151,19 @@
213
151
  border-color: #d1d3d3;
214
152
  background: #ffffff;
215
153
  }
154
+ .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:active, .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper[focus-within] {
155
+ outline-offset: 0.125rem;
156
+ border: 0.0625rem solid #181c56;
157
+ border-radius: 0.25rem;
158
+ }
216
159
  .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:active, .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:focus-within {
217
160
  outline-offset: 0.125rem;
218
161
  border: 0.0625rem solid #181c56;
219
162
  border-radius: 0.25rem;
220
163
  }
164
+ .eds-contrast .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:active, .eds-contrast .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper[focus-within] {
165
+ border-color: #aeb7e2;
166
+ }
221
167
  .eds-contrast .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:active, .eds-contrast .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper:focus-within {
222
168
  border-color: #aeb7e2;
223
169
  }
@@ -225,19 +171,35 @@
225
171
  border-color: #393d79;
226
172
  color: #181c56;
227
173
  }
174
+ .eds-editable-cell .eds-form-control-wrapper:active, .eds-editable-cell .eds-form-control-wrapper[focus-within] {
175
+ outline-offset: 0.125rem;
176
+ border: 0.0625rem solid #181c56;
177
+ border-radius: 0.25rem;
178
+ }
228
179
  .eds-editable-cell .eds-form-control-wrapper:active, .eds-editable-cell .eds-form-control-wrapper:focus-within {
229
180
  outline-offset: 0.125rem;
230
181
  border: 0.0625rem solid #181c56;
231
182
  border-radius: 0.25rem;
232
183
  }
184
+ .eds-contrast .eds-editable-cell .eds-form-control-wrapper:active, .eds-contrast .eds-editable-cell .eds-form-control-wrapper[focus-within] {
185
+ border-color: #aeb7e2;
186
+ background: #ffffff;
187
+ color: #181c56;
188
+ }
233
189
  .eds-contrast .eds-editable-cell .eds-form-control-wrapper:active, .eds-contrast .eds-editable-cell .eds-form-control-wrapper:focus-within {
234
190
  border-color: #aeb7e2;
235
191
  background: #ffffff;
236
192
  color: #181c56;
237
193
  }
194
+ .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper--error:active, .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper--error[focus-within] {
195
+ border-color: transparent;
196
+ }
238
197
  .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper--error:active, .eds-table__row:hover .eds-editable-cell .eds-form-control-wrapper--error:focus-within {
239
198
  border-color: transparent;
240
199
  }
200
+ .eds-editable-cell .eds-form-control-wrapper--error:active, .eds-editable-cell .eds-form-control-wrapper--error[focus-within] {
201
+ border-color: transparent;
202
+ }
241
203
  .eds-editable-cell .eds-form-control-wrapper--error:active, .eds-editable-cell .eds-form-control-wrapper--error:focus-within {
242
204
  border-color: transparent;
243
205
  }
@@ -287,4 +249,64 @@
287
249
  }
288
250
  .eds-expand-row-button__icon {
289
251
  transition: transform ease-in-out 0.2s;
252
+ }/* DO NOT CHANGE!*/
253
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
254
+ .eds-table__header-cell {
255
+ color: #656782;
256
+ font-size: 0.875rem;
257
+ font-weight: 500;
258
+ text-align: left;
259
+ height: 3rem;
260
+ padding: 0 1.5rem;
261
+ }
262
+ .eds-table--middle .eds-table__header-cell, .eds-table--small .eds-table__header-cell {
263
+ padding: 0 1rem;
264
+ }
265
+ .eds-contrast .eds-table__header-cell {
266
+ color: #aeb7e2;
267
+ border-bottom-color: #393d79;
268
+ }
269
+ .eds-table__header-cell--padding-checkbox {
270
+ width: 3rem;
271
+ padding: 0 0 1rem 1.25rem;
272
+ }
273
+ .eds-table__header-cell--padding-radio {
274
+ width: 3rem;
275
+ padding: 0 0 1rem 1.25rem;
276
+ }
277
+ .eds-table__header-cell--padding-overflow-menu {
278
+ width: 3rem;
279
+ padding: 1rem 0.75rem;
280
+ }
281
+ .eds-table__header-cell--sortable:focus {
282
+ outline: none;
283
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
284
+ outline-offset: 0.125rem;
285
+ }
286
+ .eds-table__header-cell-button {
287
+ position: relative;
288
+ text-align: left;
289
+ height: 100%;
290
+ width: 100%;
291
+ padding: 0;
292
+ cursor: pointer;
293
+ -webkit-appearance: none;
294
+ -moz-appearance: none;
295
+ appearance: none;
296
+ border: none;
297
+ background: none;
298
+ color: inherit;
299
+ font-size: inherit;
300
+ font-weight: inherit;
301
+ font-family: inherit;
302
+ }
303
+ .eds-table__header-cell-button-icon {
304
+ position: absolute;
305
+ margin-left: 0.25rem;
306
+ }
307
+ .eds-table__header-cell-button:focus {
308
+ outline: 2px solid #181c56;
309
+ }
310
+ .eds-contrast .eds-table__header-cell-button:focus {
311
+ outline: 2px solid #ffffff;
290
312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/table",
3
- "version": "4.5.4",
3
+ "version": "4.5.7",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/table.esm.js",
@@ -27,8 +27,8 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/expand": "^3.3.7",
31
- "@entur/form": "^5.2.2",
30
+ "@entur/expand": "^3.3.9",
31
+ "@entur/form": "^5.3.1",
32
32
  "@entur/utils": "^0.4.3",
33
33
  "@types/lodash.get": "^4.4.6",
34
34
  "classnames": "^2.3.1",
@@ -37,5 +37,5 @@
37
37
  "devDependencies": {
38
38
  "@entur/tokens": "^3.3.1"
39
39
  },
40
- "gitHead": "61e643371cfc5653c93160b7c220152e5b2bafeb"
40
+ "gitHead": "f760e1b8cfdc14231bd6391a8d82dfed1d71daa4"
41
41
  }