@wordpress/dataviews 4.14.0 → 4.15.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dataviews",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -46,15 +46,15 @@
46
46
  "dependencies": {
47
47
  "@ariakit/react": "^0.4.15",
48
48
  "@babel/runtime": "7.25.7",
49
- "@wordpress/components": "^29.4.0",
50
- "@wordpress/compose": "^7.18.0",
51
- "@wordpress/data": "^10.18.0",
52
- "@wordpress/element": "^6.18.0",
53
- "@wordpress/i18n": "^5.18.0",
54
- "@wordpress/icons": "^10.18.0",
55
- "@wordpress/primitives": "^4.18.0",
56
- "@wordpress/private-apis": "^1.18.0",
57
- "@wordpress/warning": "^3.18.0",
49
+ "@wordpress/components": "^29.5.0",
50
+ "@wordpress/compose": "^7.19.0",
51
+ "@wordpress/data": "^10.19.0",
52
+ "@wordpress/element": "^6.19.0",
53
+ "@wordpress/i18n": "^5.19.0",
54
+ "@wordpress/icons": "^10.19.0",
55
+ "@wordpress/primitives": "^4.19.0",
56
+ "@wordpress/private-apis": "^1.19.0",
57
+ "@wordpress/warning": "^3.19.0",
58
58
  "clsx": "^2.1.1",
59
59
  "remove-accents": "^0.5.0"
60
60
  },
@@ -67,5 +67,5 @@
67
67
  "scripts": {
68
68
  "build:wp": "node build"
69
69
  },
70
- "gitHead": "afe4fb333177642180ac020f1030c5685eab7183"
70
+ "gitHead": "d6b0b20fa927b110140dc7fdd906a7e0bf662004"
71
71
  }
@@ -140,12 +140,7 @@ function TableRow< Item >( {
140
140
  } }
141
141
  >
142
142
  { hasBulkActions && (
143
- <td
144
- className="dataviews-view-table__checkbox-column"
145
- style={ {
146
- width: '1%',
147
- } }
148
- >
143
+ <td className="dataviews-view-table__checkbox-column">
149
144
  <div className="dataviews-view-table__cell-content-wrapper">
150
145
  <DataViewsSelectionCheckbox
151
146
  item={ item }
@@ -301,9 +296,6 @@ function ViewTable< Item >( {
301
296
  { hasBulkActions && (
302
297
  <th
303
298
  className="dataviews-view-table__checkbox-column"
304
- style={ {
305
- width: '1%',
306
- } }
307
299
  scope="col"
308
300
  >
309
301
  <BulkSelectionCheckbox
@@ -317,23 +309,21 @@ function ViewTable< Item >( {
317
309
  ) }
318
310
  { hasPrimaryColumn && (
319
311
  <th scope="col">
320
- <span className="dataviews-view-table-header">
321
- { titleField && (
322
- <ColumnHeaderMenu
323
- ref={ headerMenuRef(
324
- titleField.id,
325
- 0
326
- ) }
327
- fieldId={ titleField.id }
328
- view={ view }
329
- fields={ fields }
330
- onChangeView={ onChangeView }
331
- onHide={ onHide }
332
- setOpenedFilter={ setOpenedFilter }
333
- canMove={ false }
334
- />
335
- ) }
336
- </span>
312
+ { titleField && (
313
+ <ColumnHeaderMenu
314
+ ref={ headerMenuRef(
315
+ titleField.id,
316
+ 0
317
+ ) }
318
+ fieldId={ titleField.id }
319
+ view={ view }
320
+ fields={ fields }
321
+ onChangeView={ onChangeView }
322
+ onHide={ onHide }
323
+ setOpenedFilter={ setOpenedFilter }
324
+ canMove={ false }
325
+ />
326
+ ) }
337
327
  </th>
338
328
  ) }
339
329
  { columns.map( ( column, index ) => {
@@ -24,6 +24,7 @@
24
24
 
25
25
  &.dataviews-view-table__checkbox-column {
26
26
  padding-right: 0;
27
+ width: 1%;
27
28
  }
28
29
  }
29
30
  tr {
@@ -37,8 +38,7 @@
37
38
  th:first-child {
38
39
  padding-left: $grid-unit-60;
39
40
 
40
- .dataviews-view-table-header-button,
41
- .dataviews-view-table-header {
41
+ .dataviews-view-table-header-button {
42
42
  margin-left: - #{$grid-unit-10};
43
43
  }
44
44
  }