@wordpress/dataviews 3.0.0 → 4.0.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.
Files changed (274) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +19 -4
  3. package/build/{dataform.js → components/dataform/index.js} +5 -5
  4. package/build/components/dataform/index.js.map +1 -0
  5. package/build/components/dataviews/index.js +115 -0
  6. package/build/components/dataviews/index.js.map +1 -0
  7. package/build/{bulk-actions.js → components/dataviews-bulk-actions/index.js} +39 -16
  8. package/build/components/dataviews-bulk-actions/index.js.map +1 -0
  9. package/build/{bulk-actions-toolbar.js → components/dataviews-bulk-actions-toolbar/index.js} +36 -19
  10. package/build/components/dataviews-bulk-actions-toolbar/index.js.map +1 -0
  11. package/build/components/dataviews-context/index.js +36 -0
  12. package/build/components/dataviews-context/index.js.map +1 -0
  13. package/build/{add-filter.js → components/dataviews-filters/add-filter.js} +2 -2
  14. package/build/components/dataviews-filters/add-filter.js.map +1 -0
  15. package/build/{filter-summary.js → components/dataviews-filters/filter-summary.js} +9 -9
  16. package/build/components/dataviews-filters/filter-summary.js.map +1 -0
  17. package/build/{filters.js → components/dataviews-filters/index.js} +14 -15
  18. package/build/components/dataviews-filters/index.js.map +1 -0
  19. package/build/components/dataviews-filters/reset-filters.js.map +1 -0
  20. package/build/{search-widget.js → components/dataviews-filters/search-widget.js} +13 -13
  21. package/build/components/dataviews-filters/search-widget.js.map +1 -0
  22. package/build/{item-actions.js → components/dataviews-item-actions/index.js} +2 -2
  23. package/build/components/dataviews-item-actions/index.js.map +1 -0
  24. package/build/components/dataviews-layout/index.js +53 -0
  25. package/build/components/dataviews-layout/index.js.map +1 -0
  26. package/build/{pagination.js → components/dataviews-pagination/index.js} +16 -13
  27. package/build/components/dataviews-pagination/index.js.map +1 -0
  28. package/build/{search.js → components/dataviews-search/index.js} +10 -6
  29. package/build/components/dataviews-search/index.js.map +1 -0
  30. package/build/{single-selection-checkbox.js → components/dataviews-selection-checkbox/index.js} +6 -6
  31. package/build/components/dataviews-selection-checkbox/index.js.map +1 -0
  32. package/build/{view-actions.js → components/dataviews-view-config/index.js} +19 -16
  33. package/build/components/dataviews-view-config/index.js.map +1 -0
  34. package/build/index.js +2 -2
  35. package/build/index.js.map +1 -1
  36. package/build/layouts/grid/density-picker.js +143 -0
  37. package/build/layouts/grid/density-picker.js.map +1 -0
  38. package/build/{view-grid.js → layouts/grid/index.js} +34 -35
  39. package/build/layouts/grid/index.js.map +1 -0
  40. package/build/layouts/index.js +52 -0
  41. package/build/layouts/index.js.map +1 -0
  42. package/build/{view-list.js → layouts/list/index.js} +26 -23
  43. package/build/layouts/list/index.js.map +1 -0
  44. package/build/layouts/table/column-header-menu.js +196 -0
  45. package/build/layouts/table/column-header-menu.js.map +1 -0
  46. package/build/layouts/table/index.js +350 -0
  47. package/build/layouts/table/index.js.map +1 -0
  48. package/build/normalize-fields.js +1 -1
  49. package/build/normalize-fields.js.map +1 -1
  50. package/build/types.js.map +1 -1
  51. package/build-module/{dataform.js → components/dataform/index.js} +5 -5
  52. package/build-module/components/dataform/index.js.map +1 -0
  53. package/build-module/components/dataviews/index.js +108 -0
  54. package/build-module/components/dataviews/index.js.map +1 -0
  55. package/build-module/{bulk-actions.js → components/dataviews-bulk-actions/index.js} +39 -17
  56. package/build-module/components/dataviews-bulk-actions/index.js.map +1 -0
  57. package/build-module/{bulk-actions-toolbar.js → components/dataviews-bulk-actions-toolbar/index.js} +35 -19
  58. package/build-module/components/dataviews-bulk-actions-toolbar/index.js.map +1 -0
  59. package/build-module/components/dataviews-context/index.js +30 -0
  60. package/build-module/components/dataviews-context/index.js.map +1 -0
  61. package/build-module/{add-filter.js → components/dataviews-filters/add-filter.js} +2 -2
  62. package/build-module/components/dataviews-filters/add-filter.js.map +1 -0
  63. package/build-module/{filter-summary.js → components/dataviews-filters/filter-summary.js} +9 -9
  64. package/build-module/components/dataviews-filters/filter-summary.js.map +1 -0
  65. package/build-module/{filters.js → components/dataviews-filters/index.js} +15 -16
  66. package/build-module/components/dataviews-filters/index.js.map +1 -0
  67. package/build-module/components/dataviews-filters/reset-filters.js.map +1 -0
  68. package/build-module/{search-widget.js → components/dataviews-filters/search-widget.js} +13 -13
  69. package/build-module/components/dataviews-filters/search-widget.js.map +1 -0
  70. package/build-module/{item-actions.js → components/dataviews-item-actions/index.js} +2 -2
  71. package/build-module/components/dataviews-item-actions/index.js.map +1 -0
  72. package/build-module/components/dataviews-layout/index.js +45 -0
  73. package/build-module/components/dataviews-layout/index.js.map +1 -0
  74. package/build-module/{pagination.js → components/dataviews-pagination/index.js} +17 -15
  75. package/build-module/components/dataviews-pagination/index.js.map +1 -0
  76. package/build-module/{search.js → components/dataviews-search/index.js} +10 -7
  77. package/build-module/components/dataviews-search/index.js.map +1 -0
  78. package/build-module/{single-selection-checkbox.js → components/dataviews-selection-checkbox/index.js} +5 -5
  79. package/build-module/components/dataviews-selection-checkbox/index.js.map +1 -0
  80. package/build-module/{view-actions.js → components/dataviews-view-config/index.js} +19 -17
  81. package/build-module/components/dataviews-view-config/index.js.map +1 -0
  82. package/build-module/index.js +2 -2
  83. package/build-module/index.js.map +1 -1
  84. package/build-module/layouts/grid/density-picker.js +138 -0
  85. package/build-module/layouts/grid/density-picker.js.map +1 -0
  86. package/build-module/{view-grid.js → layouts/grid/index.js} +31 -32
  87. package/build-module/layouts/grid/index.js.map +1 -0
  88. package/build-module/layouts/index.js +43 -0
  89. package/build-module/layouts/index.js.map +1 -0
  90. package/build-module/{view-list.js → layouts/list/index.js} +24 -21
  91. package/build-module/layouts/list/index.js.map +1 -0
  92. package/build-module/layouts/table/column-header-menu.js +190 -0
  93. package/build-module/layouts/table/column-header-menu.js.map +1 -0
  94. package/build-module/layouts/table/index.js +344 -0
  95. package/build-module/layouts/table/index.js.map +1 -0
  96. package/build-module/normalize-fields.js +1 -1
  97. package/build-module/normalize-fields.js.map +1 -1
  98. package/build-module/types.js.map +1 -1
  99. package/build-style/style-rtl.css +607 -545
  100. package/build-style/style.css +607 -545
  101. package/build-types/{dataform.d.ts → components/dataform/index.d.ts} +2 -2
  102. package/build-types/components/dataform/index.d.ts.map +1 -0
  103. package/build-types/components/dataform/stories/index.story.d.ts +11 -0
  104. package/build-types/components/dataform/stories/index.story.d.ts.map +1 -0
  105. package/build-types/{dataviews.d.ts → components/dataviews/index.d.ts} +9 -7
  106. package/build-types/components/dataviews/index.d.ts.map +1 -0
  107. package/build-types/{stories → components/dataviews/stories}/fixtures.d.ts +7 -19
  108. package/build-types/components/dataviews/stories/fixtures.d.ts.map +1 -0
  109. package/build-types/components/dataviews/stories/index.story.d.ts +46 -0
  110. package/build-types/components/dataviews/stories/index.story.d.ts.map +1 -0
  111. package/build-types/components/dataviews-bulk-actions/index.d.ts +5 -0
  112. package/build-types/components/dataviews-bulk-actions/index.d.ts.map +1 -0
  113. package/build-types/components/dataviews-bulk-actions-toolbar/index.d.ts +2 -0
  114. package/build-types/components/dataviews-bulk-actions-toolbar/index.d.ts.map +1 -0
  115. package/build-types/components/dataviews-context/index.d.ts +26 -0
  116. package/build-types/components/dataviews-context/index.d.ts.map +1 -0
  117. package/build-types/{add-filter.d.ts → components/dataviews-filters/add-filter.d.ts} +1 -2
  118. package/build-types/components/dataviews-filters/add-filter.d.ts.map +1 -0
  119. package/build-types/{filter-summary.d.ts → components/dataviews-filters/filter-summary.d.ts} +1 -1
  120. package/build-types/components/dataviews-filters/filter-summary.d.ts.map +1 -0
  121. package/build-types/components/dataviews-filters/index.d.ts +4 -0
  122. package/build-types/components/dataviews-filters/index.d.ts.map +1 -0
  123. package/build-types/{reset-filters.d.ts → components/dataviews-filters/reset-filters.d.ts} +1 -2
  124. package/build-types/components/dataviews-filters/reset-filters.d.ts.map +1 -0
  125. package/build-types/{search-widget.d.ts → components/dataviews-filters/search-widget.d.ts} +1 -2
  126. package/build-types/components/dataviews-filters/search-widget.d.ts.map +1 -0
  127. package/build-types/{item-actions.d.ts → components/dataviews-item-actions/index.d.ts} +2 -2
  128. package/build-types/components/dataviews-item-actions/index.d.ts.map +1 -0
  129. package/build-types/components/dataviews-layout/index.d.ts +2 -0
  130. package/build-types/components/dataviews-layout/index.d.ts.map +1 -0
  131. package/build-types/components/dataviews-pagination/index.d.ts +4 -0
  132. package/build-types/components/dataviews-pagination/index.d.ts.map +1 -0
  133. package/build-types/components/dataviews-search/index.d.ts +6 -0
  134. package/build-types/components/dataviews-search/index.d.ts.map +1 -0
  135. package/build-types/components/dataviews-selection-checkbox/index.d.ts +16 -0
  136. package/build-types/components/dataviews-selection-checkbox/index.d.ts.map +1 -0
  137. package/build-types/components/dataviews-view-config/index.d.ts +8 -0
  138. package/build-types/components/dataviews-view-config/index.d.ts.map +1 -0
  139. package/build-types/index.d.ts +2 -2
  140. package/build-types/index.d.ts.map +1 -1
  141. package/build-types/layouts/grid/density-picker.d.ts +5 -0
  142. package/build-types/layouts/grid/density-picker.d.ts.map +1 -0
  143. package/build-types/layouts/grid/index.d.ts +3 -0
  144. package/build-types/layouts/grid/index.d.ts.map +1 -0
  145. package/build-types/{layouts.d.ts → layouts/index.d.ts} +6 -5
  146. package/build-types/layouts/index.d.ts.map +1 -0
  147. package/build-types/layouts/list/index.d.ts +3 -0
  148. package/build-types/layouts/list/index.d.ts.map +1 -0
  149. package/build-types/layouts/table/column-header-menu.d.ts +17 -0
  150. package/build-types/layouts/table/column-header-menu.d.ts.map +1 -0
  151. package/build-types/layouts/table/index.d.ts +4 -0
  152. package/build-types/layouts/table/index.d.ts.map +1 -0
  153. package/build-types/types.d.ts +42 -23
  154. package/build-types/types.d.ts.map +1 -1
  155. package/package.json +10 -10
  156. package/src/{dataform.tsx → components/dataform/index.tsx} +5 -5
  157. package/src/components/dataform/stories/index.story.tsx +42 -0
  158. package/src/components/dataviews/index.tsx +149 -0
  159. package/src/{stories → components/dataviews/stories}/fixtures.js +7 -11
  160. package/src/{stories → components/dataviews/stories}/index.story.js +17 -3
  161. package/src/components/dataviews/style.scss +97 -0
  162. package/src/{bulk-actions.tsx → components/dataviews-bulk-actions/index.tsx} +46 -29
  163. package/src/components/dataviews-bulk-actions/style.scss +7 -0
  164. package/src/{bulk-actions-toolbar.tsx → components/dataviews-bulk-actions-toolbar/index.tsx} +42 -30
  165. package/src/components/dataviews-bulk-actions-toolbar/style.scss +45 -0
  166. package/src/components/dataviews-context/index.ts +49 -0
  167. package/src/{add-filter.tsx → components/dataviews-filters/add-filter.tsx} +3 -3
  168. package/src/{filter-summary.tsx → components/dataviews-filters/filter-summary.tsx} +18 -10
  169. package/src/{filters.tsx → components/dataviews-filters/index.tsx} +10 -24
  170. package/src/{reset-filters.tsx → components/dataviews-filters/reset-filters.tsx} +1 -1
  171. package/src/{search-widget.tsx → components/dataviews-filters/search-widget.tsx} +14 -14
  172. package/src/components/dataviews-filters/style.scss +252 -0
  173. package/src/{item-actions.tsx → components/dataviews-item-actions/index.tsx} +2 -2
  174. package/src/components/dataviews-item-actions/style.scss +3 -0
  175. package/src/components/dataviews-layout/index.tsx +51 -0
  176. package/src/{pagination.tsx → components/dataviews-pagination/index.tsx} +13 -21
  177. package/src/components/dataviews-pagination/style.scss +26 -0
  178. package/src/{search.tsx → components/dataviews-search/index.tsx} +5 -10
  179. package/src/{single-selection-checkbox.tsx → components/dataviews-selection-checkbox/index.tsx} +9 -9
  180. package/src/components/dataviews-selection-checkbox/style.scss +14 -0
  181. package/src/{view-actions.tsx → components/dataviews-view-config/index.tsx} +16 -22
  182. package/src/index.ts +2 -2
  183. package/src/layouts/grid/density-picker.tsx +136 -0
  184. package/src/{view-grid.tsx → layouts/grid/index.tsx} +28 -29
  185. package/src/layouts/grid/style.scss +140 -0
  186. package/src/layouts/index.ts +66 -0
  187. package/src/{view-list.tsx → layouts/list/index.tsx} +30 -17
  188. package/src/layouts/list/style.scss +189 -0
  189. package/src/layouts/table/column-header-menu.tsx +268 -0
  190. package/src/layouts/table/index.tsx +471 -0
  191. package/src/layouts/table/style.scss +201 -0
  192. package/src/normalize-fields.ts +1 -1
  193. package/src/style.scss +11 -907
  194. package/src/test/filter-and-sort-data-view.js +1 -1
  195. package/src/types.ts +48 -24
  196. package/tsconfig.tsbuildinfo +1 -1
  197. package/build/add-filter.js.map +0 -1
  198. package/build/bulk-actions-toolbar.js.map +0 -1
  199. package/build/bulk-actions.js.map +0 -1
  200. package/build/dataform.js.map +0 -1
  201. package/build/dataviews.js +0 -125
  202. package/build/dataviews.js.map +0 -1
  203. package/build/filter-summary.js.map +0 -1
  204. package/build/filters.js.map +0 -1
  205. package/build/item-actions.js.map +0 -1
  206. package/build/layouts.js +0 -38
  207. package/build/layouts.js.map +0 -1
  208. package/build/pagination.js.map +0 -1
  209. package/build/reset-filters.js.map +0 -1
  210. package/build/search-widget.js.map +0 -1
  211. package/build/search.js.map +0 -1
  212. package/build/single-selection-checkbox.js.map +0 -1
  213. package/build/view-actions.js.map +0 -1
  214. package/build/view-grid.js.map +0 -1
  215. package/build/view-list.js.map +0 -1
  216. package/build/view-table.js +0 -400
  217. package/build/view-table.js.map +0 -1
  218. package/build-module/add-filter.js.map +0 -1
  219. package/build-module/bulk-actions-toolbar.js.map +0 -1
  220. package/build-module/bulk-actions.js.map +0 -1
  221. package/build-module/dataform.js.map +0 -1
  222. package/build-module/dataviews.js +0 -116
  223. package/build-module/dataviews.js.map +0 -1
  224. package/build-module/filter-summary.js.map +0 -1
  225. package/build-module/filters.js.map +0 -1
  226. package/build-module/item-actions.js.map +0 -1
  227. package/build-module/layouts.js +0 -30
  228. package/build-module/layouts.js.map +0 -1
  229. package/build-module/pagination.js.map +0 -1
  230. package/build-module/reset-filters.js.map +0 -1
  231. package/build-module/search-widget.js.map +0 -1
  232. package/build-module/search.js.map +0 -1
  233. package/build-module/single-selection-checkbox.js.map +0 -1
  234. package/build-module/view-actions.js.map +0 -1
  235. package/build-module/view-grid.js.map +0 -1
  236. package/build-module/view-list.js.map +0 -1
  237. package/build-module/view-table.js +0 -393
  238. package/build-module/view-table.js.map +0 -1
  239. package/build-types/add-filter.d.ts.map +0 -1
  240. package/build-types/bulk-actions-toolbar.d.ts +0 -13
  241. package/build-types/bulk-actions-toolbar.d.ts.map +0 -1
  242. package/build-types/bulk-actions.d.ts +0 -15
  243. package/build-types/bulk-actions.d.ts.map +0 -1
  244. package/build-types/dataform.d.ts.map +0 -1
  245. package/build-types/dataviews.d.ts.map +0 -1
  246. package/build-types/filter-summary.d.ts.map +0 -1
  247. package/build-types/filters.d.ts +0 -13
  248. package/build-types/filters.d.ts.map +0 -1
  249. package/build-types/item-actions.d.ts.map +0 -1
  250. package/build-types/layouts.d.ts.map +0 -1
  251. package/build-types/pagination.d.ts +0 -16
  252. package/build-types/pagination.d.ts.map +0 -1
  253. package/build-types/reset-filters.d.ts.map +0 -1
  254. package/build-types/search-widget.d.ts.map +0 -1
  255. package/build-types/search.d.ts +0 -13
  256. package/build-types/search.d.ts.map +0 -1
  257. package/build-types/single-selection-checkbox.d.ts +0 -17
  258. package/build-types/single-selection-checkbox.d.ts.map +0 -1
  259. package/build-types/stories/fixtures.d.ts.map +0 -1
  260. package/build-types/stories/index.story.d.ts +0 -29
  261. package/build-types/stories/index.story.d.ts.map +0 -1
  262. package/build-types/view-actions.d.ts +0 -12
  263. package/build-types/view-actions.d.ts.map +0 -1
  264. package/build-types/view-grid.d.ts +0 -4
  265. package/build-types/view-grid.d.ts.map +0 -1
  266. package/build-types/view-list.d.ts +0 -4
  267. package/build-types/view-list.d.ts.map +0 -1
  268. package/build-types/view-table.d.ts +0 -5
  269. package/build-types/view-table.d.ts.map +0 -1
  270. package/src/dataviews.tsx +0 -183
  271. package/src/layouts.ts +0 -39
  272. package/src/view-table.tsx +0 -592
  273. /package/build/{reset-filters.js → components/dataviews-filters/reset-filters.js} +0 -0
  274. /package/build-module/{reset-filters.js → components/dataviews-filters/reset-filters.js} +0 -0
@@ -115,7 +115,7 @@
115
115
  flex-direction: column;
116
116
  }
117
117
 
118
- .dataviews-filters__view-actions {
118
+ .dataviews__view-actions {
119
119
  box-sizing: border-box;
120
120
  padding: 16px 48px;
121
121
  flex-shrink: 0;
@@ -124,202 +124,15 @@
124
124
  transition: padding ease-out 0.1s;
125
125
  }
126
126
  @media (prefers-reduced-motion: reduce) {
127
- .dataviews-filters__view-actions {
127
+ .dataviews__view-actions {
128
128
  transition-duration: 0s;
129
129
  transition-delay: 0s;
130
130
  }
131
131
  }
132
- .dataviews-filters__view-actions .components-search-control .components-base-control__field {
132
+ .dataviews__view-actions .components-search-control .components-base-control__field {
133
133
  max-width: 240px;
134
134
  }
135
135
 
136
- .dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true], .dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:hover {
137
- opacity: 0;
138
- }
139
- .dataviews-filters__container .dataviews-filters__reset-button[aria-disabled=true]:focus {
140
- opacity: 1;
141
- }
142
-
143
- .dataviews-filters-button {
144
- position: relative;
145
- }
146
-
147
- .dataviews-pagination {
148
- position: sticky;
149
- bottom: 0;
150
- left: 0;
151
- background-color: #fff;
152
- padding: 12px 48px;
153
- border-top: 1px solid #f0f0f0;
154
- color: #757575;
155
- flex-shrink: 0;
156
- transition: padding ease-out 0.1s;
157
- }
158
- @media (prefers-reduced-motion: reduce) {
159
- .dataviews-pagination {
160
- transition-duration: 0s;
161
- transition-delay: 0s;
162
- }
163
- }
164
-
165
- .dataviews-pagination__page-selection {
166
- font-size: 11px;
167
- text-transform: uppercase;
168
- font-weight: 500;
169
- color: #1e1e1e;
170
- }
171
-
172
- .dataviews-filters-options {
173
- margin: 32px 0 16px;
174
- }
175
-
176
- .dataviews-view-table {
177
- width: 100%;
178
- text-indent: 0;
179
- border-color: inherit;
180
- border-collapse: collapse;
181
- position: relative;
182
- color: #757575;
183
- margin-bottom: auto;
184
- }
185
- .dataviews-view-table a {
186
- text-decoration: none;
187
- color: #1e1e1e;
188
- font-weight: 500;
189
- }
190
- .dataviews-view-table th {
191
- text-align: left;
192
- color: #1e1e1e;
193
- font-weight: normal;
194
- font-size: 13px;
195
- }
196
- .dataviews-view-table td,
197
- .dataviews-view-table th {
198
- padding: 12px;
199
- white-space: nowrap;
200
- }
201
- .dataviews-view-table td[data-field-id=actions],
202
- .dataviews-view-table th[data-field-id=actions] {
203
- text-align: right;
204
- }
205
- .dataviews-view-table td.dataviews-view-table__checkbox-column,
206
- .dataviews-view-table th.dataviews-view-table__checkbox-column {
207
- padding-right: 0;
208
- }
209
- .dataviews-view-table tr {
210
- border-bottom: 1px solid #f0f0f0;
211
- }
212
- .dataviews-view-table tr .dataviews-view-table-header-button {
213
- gap: 4px;
214
- }
215
- .dataviews-view-table tr td:first-child,
216
- .dataviews-view-table tr th:first-child {
217
- padding-left: 48px;
218
- }
219
- .dataviews-view-table tr td:first-child .dataviews-view-table-header-button,
220
- .dataviews-view-table tr td:first-child .dataviews-view-table-header,
221
- .dataviews-view-table tr th:first-child .dataviews-view-table-header-button,
222
- .dataviews-view-table tr th:first-child .dataviews-view-table-header {
223
- margin-left: -8px;
224
- }
225
- .dataviews-view-table tr td:last-child,
226
- .dataviews-view-table tr th:last-child {
227
- padding-right: 48px;
228
- }
229
- .dataviews-view-table tr:last-child {
230
- border-bottom: 0;
231
- }
232
- .dataviews-view-table tr.is-hovered {
233
- background-color: #f8f8f8;
234
- }
235
- .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
236
- opacity: 0;
237
- }
238
- .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus {
239
- opacity: 1;
240
- }
241
- .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
242
- opacity: 0;
243
- }
244
- .dataviews-view-table tr:focus-within .components-checkbox-control__input,
245
- .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .components-checkbox-control__input,
246
- .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .components-checkbox-control__input,
247
- .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
248
- opacity: 1;
249
- }
250
- @media (hover: none) {
251
- .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,
252
- .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
253
- opacity: 1;
254
- }
255
- }
256
- .dataviews-view-table tr.is-selected {
257
- background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
258
- color: #757575;
259
- }
260
- .dataviews-view-table tr.is-selected:hover {
261
- background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
262
- }
263
- .dataviews-view-table thead {
264
- position: sticky;
265
- inset-block-start: 0;
266
- z-index: 1;
267
- }
268
- .dataviews-view-table thead tr {
269
- border: 0;
270
- }
271
- .dataviews-view-table thead th {
272
- background-color: #fff;
273
- box-shadow: inset 0 -1px 0 #f0f0f0;
274
- padding-top: 8px;
275
- padding-bottom: 8px;
276
- padding-left: 12px;
277
- font-size: 11px;
278
- text-transform: uppercase;
279
- font-weight: 500;
280
- }
281
- .dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child) {
282
- padding-left: 4px;
283
- }
284
- .dataviews-view-table tbody td {
285
- vertical-align: top;
286
- }
287
- .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper {
288
- min-height: 32px;
289
- display: flex;
290
- align-items: center;
291
- }
292
- .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper > * {
293
- flex-grow: 1;
294
- }
295
- .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__primary-field a {
296
- flex-grow: 0;
297
- }
298
- .dataviews-view-table .dataviews-view-table-header-button {
299
- padding: 4px 8px;
300
- font-size: 11px;
301
- text-transform: uppercase;
302
- font-weight: 500;
303
- }
304
- .dataviews-view-table .dataviews-view-table-header-button:not(:hover) {
305
- color: #1e1e1e;
306
- }
307
- .dataviews-view-table .dataviews-view-table-header-button span {
308
- speak: none;
309
- }
310
- .dataviews-view-table .dataviews-view-table-header-button span:empty {
311
- display: none;
312
- }
313
- .dataviews-view-table .dataviews-view-table-header {
314
- padding-left: 4px;
315
- }
316
- .dataviews-view-table .dataviews-view-table__actions-column {
317
- width: 1%;
318
- }
319
- .dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
320
- opacity: 1;
321
- }
322
-
323
136
  .dataviews-view-list__primary-field,
324
137
  .dataviews-view-grid__primary-field,
325
138
  .dataviews-view-table__primary-field {
@@ -371,297 +184,209 @@
371
184
  color: var(--wp-admin-theme-color);
372
185
  }
373
186
 
374
- .dataviews-view-grid {
375
- margin-bottom: auto;
376
- grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
377
- grid-template-rows: max-content;
378
- padding: 0 48px 24px;
187
+ .dataviews-no-results,
188
+ .dataviews-loading {
189
+ padding: 0 48px;
190
+ flex-grow: 1;
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: center;
379
194
  transition: padding ease-out 0.1s;
380
195
  }
381
196
  @media (prefers-reduced-motion: reduce) {
382
- .dataviews-view-grid {
197
+ .dataviews-no-results,
198
+ .dataviews-loading {
383
199
  transition-duration: 0s;
384
200
  transition-delay: 0s;
385
201
  }
386
202
  }
387
- @media (min-width: 480px) {
388
- .dataviews-view-grid {
389
- grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
203
+
204
+ /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
205
+ @container (max-width: 430px) {
206
+ .dataviews__view-actions {
207
+ padding: 12px 24px;
390
208
  }
391
- }
392
- @media (min-width: 1080px) {
393
- .dataviews-view-grid {
394
- grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
209
+ .dataviews__view-actions .components-search-control .components-base-control__field {
210
+ max-width: 112px;
395
211
  }
396
- }
397
- @media (min-width: 1440px) {
398
- .dataviews-view-grid {
399
- grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
212
+
213
+ .dataviews-view-grid,
214
+ .dataviews-no-results,
215
+ .dataviews-loading {
216
+ padding-left: 24px;
217
+ padding-right: 24px;
400
218
  }
401
219
  }
402
- .dataviews-view-grid .dataviews-view-grid__card {
403
- height: 100%;
404
- justify-content: flex-start;
220
+ .dataviews-bulk-actions__modal {
221
+ z-index: 1000001;
405
222
  }
406
- .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions {
407
- padding: 8px 0 4px;
223
+
224
+ .dataviews-bulk-actions__edit-button.components-button {
225
+ flex-shrink: 0;
408
226
  }
409
- .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field {
410
- min-height: 32px;
227
+
228
+ .dataviews-bulk-actions-toolbar {
229
+ position: sticky;
230
+ display: flex;
231
+ flex-direction: column;
232
+ align-content: center;
233
+ flex-wrap: wrap;
234
+ width: -moz-fit-content;
235
+ width: fit-content;
236
+ margin-left: auto;
237
+ margin-right: auto;
238
+ bottom: 24px;
239
+ z-index: 2;
411
240
  }
412
- .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
413
- color: #1e1e1e;
241
+ .dataviews-bulk-actions-toolbar .components-accessible-toolbar {
242
+ border-color: #ddd;
243
+ box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
414
244
  }
415
- .dataviews-view-grid .dataviews-view-grid__media {
416
- width: 100%;
417
- min-height: 200px;
418
- aspect-ratio: 1/1;
419
- background-color: #f0f0f0;
420
- border-radius: 4px;
421
- position: relative;
245
+ .dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group {
246
+ border-color: #e0e0e0;
422
247
  }
423
- .dataviews-view-grid .dataviews-view-grid__media img {
424
- object-fit: cover;
248
+ .dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group:last-child {
249
+ border: 0;
250
+ }
251
+ .dataviews-bulk-actions-toolbar .dataviews-bulk-actions-toolbar__selection-count {
252
+ display: flex;
253
+ align-items: center;
254
+ margin: 0 8px 0 8px;
255
+ }
256
+
257
+ .dataviews-bulk-actions-toolbar__wrapper {
258
+ display: flex;
259
+ flex-grow: 1;
425
260
  width: 100%;
426
- height: 100%;
427
261
  }
428
- .dataviews-view-grid .dataviews-view-grid__media::after {
429
- content: "";
430
- position: absolute;
431
- top: 0;
432
- left: 0;
433
- width: 100%;
434
- height: 100%;
435
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
436
- border-radius: 4px;
437
- pointer-events: none;
438
- }
439
- .dataviews-view-grid .dataviews-view-grid__fields {
440
- position: relative;
441
- font-size: 12px;
442
- line-height: 16px;
443
- }
444
- .dataviews-view-grid .dataviews-view-grid__fields:not(:empty) {
445
- padding: 0 0 12px;
446
- }
447
- .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field {
448
- align-items: flex-start;
449
- }
450
- .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) {
262
+ .dataviews-bulk-actions-toolbar__wrapper .components-toolbar-group {
451
263
  align-items: center;
452
264
  }
453
- .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name {
454
- width: 35%;
455
- }
456
- .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value {
457
- width: 65%;
458
- overflow: hidden;
459
- text-overflow: ellipsis;
460
- white-space: nowrap;
461
- }
462
- .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name {
463
- color: #757575;
464
- }
465
- .dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty) {
466
- padding-bottom: 12px;
467
- }
468
- .dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value {
469
- width: -moz-fit-content;
470
- width: fit-content;
471
- background: #f0f0f0;
472
- padding: 0 8px;
473
- min-height: 24px;
474
- border-radius: 2px;
475
- display: flex;
476
- align-items: center;
477
- font-size: 12px;
265
+ .dataviews-bulk-actions-toolbar__wrapper .components-button.is-busy {
266
+ max-height: 36px;
478
267
  }
479
268
 
480
- .dataviews-view-list {
481
- margin: 0 0 auto;
482
- }
483
- .dataviews-view-list li {
484
- margin: 0;
485
- cursor: pointer;
486
- border-top: 1px solid #f0f0f0;
487
- }
488
- .dataviews-view-list li .dataviews-view-list__item-wrapper {
269
+ .dataviews-filters__button {
489
270
  position: relative;
490
- border-radius: 4px;
491
- }
492
- .dataviews-view-list li .dataviews-view-list__item-wrapper > * {
493
- width: 100%;
494
271
  }
495
- .dataviews-view-list li .dataviews-view-list__item-actions .components-button {
272
+
273
+ .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true], .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover {
496
274
  opacity: 0;
497
- position: fixed;
498
- right: 0;
499
275
  }
500
- .dataviews-view-list li.is-selected .dataviews-view-list__item-actions, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions {
501
- padding-right: 24px;
502
- }
503
- .dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button {
276
+ .dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus {
504
277
  opacity: 1;
505
- position: static;
506
- }
507
- .dataviews-view-list li.is-selected .dataviews-view-list__item, .dataviews-view-list li.is-hovered .dataviews-view-list__item, .dataviews-view-list li:focus-within .dataviews-view-list__item {
508
- padding-right: 0;
509
- }
510
- .dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
511
- color: #1e1e1e;
512
- }
513
- .dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
514
- color: var(--wp-admin-theme-color);
515
- background-color: #f8f8f8;
516
- }
517
- .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
518
- .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
519
- .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
520
- color: var(--wp-admin-theme-color);
521
278
  }
522
- .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,
523
- .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper {
524
- background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
525
- color: #1e1e1e;
279
+
280
+ .dataviews-filters__summary-popover .components-popover__content {
281
+ width: 230px;
282
+ padding: 0;
283
+ border-radius: 4px;
526
284
  }
527
- .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,
528
- .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,
529
- .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,
530
- .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields {
531
- color: var(--wp-admin-theme-color);
285
+
286
+ .dataviews-filters__summary-operators-container {
287
+ padding: 8px 8px 0;
532
288
  }
533
- .dataviews-view-list .dataviews-view-list__item {
534
- padding: 16px 0 16px 24px;
535
- width: 100%;
536
- scroll-margin: 8px 0;
289
+ .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-listbox) {
290
+ border-bottom: 1px solid #e0e0e0;
291
+ padding-bottom: 8px;
537
292
  }
538
- .dataviews-view-list .dataviews-view-list__item:focus-visible::before {
539
- position: absolute;
540
- content: "";
541
- top: calc(var(--wp-admin-border-width-focus) + 1px);
542
- right: var(--wp-admin-border-width-focus);
543
- bottom: var(--wp-admin-border-width-focus);
544
- left: var(--wp-admin-border-width-focus);
545
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
546
- border-radius: 2px;
293
+ .dataviews-filters__summary-operators-container:empty {
294
+ display: none;
547
295
  }
548
- .dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field {
549
- min-height: 20px;
550
- line-height: 20px;
551
- overflow: hidden;
296
+ .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name {
297
+ color: #757575;
552
298
  }
553
- .dataviews-view-list .dataviews-view-list__media-wrapper {
554
- width: 40px;
555
- height: 40px;
556
- overflow: hidden;
299
+
300
+ .dataviews-filters__summary-chip-container {
557
301
  position: relative;
558
- flex-shrink: 0;
559
- background-color: #f0f0f0;
560
- border-radius: 4px;
561
- }
562
- .dataviews-view-list .dataviews-view-list__media-wrapper img {
563
- width: 100%;
564
- height: 100%;
565
- object-fit: cover;
566
- }
567
- .dataviews-view-list .dataviews-view-list__media-wrapper::after {
568
- content: "";
569
- position: absolute;
570
- top: 0;
571
- left: 0;
572
- width: 100%;
573
- height: 100%;
574
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
575
- border-radius: 4px;
576
- }
577
- .dataviews-view-list .dataviews-view-list__media-placeholder {
578
- min-width: 32px;
579
- height: 32px;
580
- background-color: #e0e0e0;
302
+ white-space: pre-wrap;
581
303
  }
582
- .dataviews-view-list .dataviews-view-list__fields {
583
- color: #757575;
304
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip {
305
+ border-radius: 16px;
306
+ border: 1px solid transparent;
307
+ cursor: pointer;
308
+ padding: 4px 12px;
309
+ min-height: 32px;
310
+ background: #f0f0f0;
311
+ color: #2f2f2f;
312
+ position: relative;
584
313
  display: flex;
585
- gap: 8px;
586
- flex-wrap: wrap;
587
- font-size: 12px;
314
+ align-items: center;
588
315
  }
589
- .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty) {
590
- display: none;
316
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
317
+ padding-inline-end: 28px;
591
318
  }
592
- .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value {
593
- line-height: 24px;
594
- display: inline-flex;
319
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] {
320
+ background: #e0e0e0;
321
+ color: #1e1e1e;
595
322
  }
596
- .dataviews-view-list .dataviews-view-list__item-actions {
597
- padding-right: 24px;
323
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values {
324
+ color: var(--wp-admin-theme-color);
325
+ background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
598
326
  }
599
- .dataviews-view-list + .dataviews-pagination {
600
- justify-content: space-between;
327
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true] {
328
+ background: rgba(var(--wp-admin-theme-color--rgb), 0.12);
601
329
  }
602
-
603
- .dataviews-action-modal {
604
- z-index: 1000001;
330
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible {
331
+ outline: none;
332
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
605
333
  }
606
-
607
- .dataviews-no-results,
608
- .dataviews-loading {
609
- padding: 0 48px;
610
- flex-grow: 1;
334
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name {
335
+ font-weight: 500;
336
+ }
337
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove {
338
+ width: 24px;
339
+ height: 24px;
340
+ border-radius: 50%;
341
+ border: 0;
342
+ padding: 0;
343
+ position: absolute;
344
+ right: 4px;
345
+ top: 50%;
346
+ transform: translateY(-50%);
611
347
  display: flex;
612
348
  align-items: center;
613
349
  justify-content: center;
614
- transition: padding ease-out 0.1s;
350
+ background: transparent;
351
+ cursor: pointer;
615
352
  }
616
- @media (prefers-reduced-motion: reduce) {
617
- .dataviews-no-results,
618
- .dataviews-loading {
619
- transition-duration: 0s;
620
- transition-delay: 0s;
621
- }
353
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg {
354
+ fill: #757575;
622
355
  }
623
-
624
- .dataviews-view-table-selection-checkbox {
625
- --checkbox-input-size: 24px;
626
- line-height: 0;
627
- flex-shrink: 0;
356
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus {
357
+ background: #e0e0e0;
628
358
  }
629
- @media (min-width: 600px) {
630
- .dataviews-view-table-selection-checkbox {
631
- --checkbox-input-size: 16px;
632
- }
359
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg {
360
+ fill: #1e1e1e;
633
361
  }
634
- .dataviews-view-table-selection-checkbox .components-checkbox-control__input-container {
635
- margin: 0;
362
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg {
363
+ fill: var(--wp-admin-theme-color);
636
364
  }
637
-
638
- .dataviews-bulk-edit-button.components-button {
639
- flex-shrink: 0;
365
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover {
366
+ background: rgba(var(--wp-admin-theme-color--rgb), 0.08);
640
367
  }
641
-
642
- .dataviews-filter-summary__popover .components-popover__content {
643
- width: 230px;
644
- padding: 0;
645
- border-radius: 4px;
368
+ .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible {
369
+ outline: none;
370
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
646
371
  }
647
372
 
648
- .dataviews-search-widget-filter-combobox-list {
373
+ .dataviews-filters__search-widget-filter-combobox-list {
649
374
  max-height: 184px;
650
375
  padding: 4px;
651
376
  overflow: auto;
652
377
  border-top: 1px solid #e0e0e0;
653
378
  }
654
- .dataviews-search-widget-filter-combobox-list .dataviews-search-widget-filter-combobox-item-value [data-user-value] {
379
+ .dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value] {
655
380
  font-weight: 600;
656
381
  }
657
382
 
658
- .dataviews-search-widget-listbox {
383
+ .dataviews-filters__search-widget-listbox {
659
384
  max-height: 184px;
660
385
  padding: 4px;
661
386
  overflow: auto;
662
387
  }
663
388
 
664
- .dataviews-search-widget-listitem {
389
+ .dataviews-filters__search-widget-listitem {
665
390
  display: flex;
666
391
  align-items: center;
667
392
  gap: 8px;
@@ -671,25 +396,25 @@
671
396
  cursor: default;
672
397
  margin-block-end: 2px;
673
398
  }
674
- .dataviews-search-widget-listitem:last-child {
399
+ .dataviews-filters__search-widget-listitem:last-child {
675
400
  margin-block-end: 0;
676
401
  }
677
- .dataviews-search-widget-listitem:hover, .dataviews-search-widget-listitem[data-active-item], .dataviews-search-widget-listitem:focus {
402
+ .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus {
678
403
  background-color: var(--wp-admin-theme-color);
679
404
  color: #fff;
680
405
  }
681
- .dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-check, .dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-check, .dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-check {
406
+ .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-check, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-check, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-check {
682
407
  fill: #fff;
683
408
  }
684
- .dataviews-search-widget-listitem:hover .dataviews-search-widget-listitem-description, .dataviews-search-widget-listitem[data-active-item] .dataviews-search-widget-listitem-description, .dataviews-search-widget-listitem:focus .dataviews-search-widget-listitem-description {
409
+ .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description {
685
410
  color: #fff;
686
411
  }
687
- .dataviews-search-widget-listitem .dataviews-search-widget-listitem-check {
412
+ .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-check {
688
413
  width: 24px;
689
414
  height: 24px;
690
415
  flex-shrink: 0;
691
416
  }
692
- .dataviews-search-widget-listitem .dataviews-search-widget-listitem-description {
417
+ .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description {
693
418
  display: block;
694
419
  overflow: hidden;
695
420
  text-overflow: ellipsis;
@@ -698,11 +423,11 @@
698
423
  color: #757575;
699
424
  }
700
425
 
701
- .dataviews-search-widget-filter-combobox__wrapper {
426
+ .dataviews-filters__search-widget-filter-combobox__wrapper {
702
427
  position: relative;
703
428
  padding: 8px;
704
429
  }
705
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input {
430
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
706
431
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
707
432
  padding: 6px 8px;
708
433
  box-shadow: 0 0 0 transparent;
@@ -725,49 +450,49 @@
725
450
  font-size: 16px;
726
451
  }
727
452
  @media (prefers-reduced-motion: reduce) {
728
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input {
453
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
729
454
  transition-duration: 0s;
730
455
  transition-delay: 0s;
731
456
  }
732
457
  }
733
458
  @media (min-width: 600px) {
734
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input {
459
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
735
460
  font-size: 13px;
736
461
  /* Override core line-height. To be reviewed. */
737
462
  line-height: normal;
738
463
  }
739
464
  }
740
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus {
465
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus {
741
466
  border-color: var(--wp-admin-theme-color);
742
467
  box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
743
468
  outline: 2px solid transparent;
744
469
  }
745
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-input-placeholder {
470
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-input-placeholder {
746
471
  color: rgba(30, 30, 30, 0.62);
747
472
  }
748
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-moz-placeholder {
473
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder {
749
474
  opacity: 1;
750
475
  color: rgba(30, 30, 30, 0.62);
751
476
  }
752
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:-ms-input-placeholder {
477
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:-ms-input-placeholder {
753
478
  color: rgba(30, 30, 30, 0.62);
754
479
  }
755
480
  @media (min-width: 600px) {
756
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input {
481
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input {
757
482
  font-size: 13px;
758
483
  }
759
484
  }
760
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input:focus {
485
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus {
761
486
  background: #fff;
762
487
  box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
763
488
  }
764
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::placeholder {
489
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder {
765
490
  color: #757575;
766
491
  }
767
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-decoration, .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-cancel-button, .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-button, .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__input::-webkit-search-results-decoration {
492
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration {
768
493
  -webkit-appearance: none;
769
494
  }
770
- .dataviews-search-widget-filter-combobox__wrapper .dataviews-search-widget-filter-combobox__icon {
495
+ .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon {
771
496
  position: absolute;
772
497
  right: 12px;
773
498
  top: 50%;
@@ -778,104 +503,480 @@
778
503
  width: 24px;
779
504
  }
780
505
 
781
- .dataviews-filter-summary__operators-container {
782
- padding: 8px 8px 0;
783
- }
784
- .dataviews-filter-summary__operators-container:has(+ .dataviews-search-widget-listbox) {
785
- border-bottom: 1px solid #e0e0e0;
786
- padding-bottom: 8px;
506
+ .dataviews-pagination {
507
+ position: sticky;
508
+ bottom: 0;
509
+ left: 0;
510
+ background-color: #fff;
511
+ padding: 12px 48px;
512
+ border-top: 1px solid #f0f0f0;
513
+ color: #757575;
514
+ flex-shrink: 0;
515
+ transition: padding ease-out 0.1s;
787
516
  }
788
- .dataviews-filter-summary__operators-container:empty {
789
- display: none;
517
+ @media (prefers-reduced-motion: reduce) {
518
+ .dataviews-pagination {
519
+ transition-duration: 0s;
520
+ transition-delay: 0s;
521
+ }
790
522
  }
791
- .dataviews-filter-summary__operators-container .dataviews-filter-summary__operators-filter-name {
792
- color: #757575;
523
+
524
+ .dataviews-pagination__page-selection {
525
+ font-size: 11px;
526
+ text-transform: uppercase;
527
+ font-weight: 500;
528
+ color: #1e1e1e;
793
529
  }
794
530
 
795
- .dataviews-filter-summary__chip-container {
796
- position: relative;
797
- white-space: pre-wrap;
531
+ /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
532
+ @container (max-width: 430px) {
533
+ .dataviews-pagination {
534
+ padding: 12px 24px;
535
+ }
798
536
  }
799
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip {
800
- border-radius: 16px;
801
- border: 1px solid transparent;
802
- cursor: pointer;
803
- padding: 4px 12px;
537
+ .dataviews-action-modal {
538
+ z-index: 1000001;
539
+ }
540
+
541
+ .dataviews-selection-checkbox {
542
+ --checkbox-input-size: 24px;
543
+ line-height: 0;
544
+ flex-shrink: 0;
545
+ }
546
+ @media (min-width: 600px) {
547
+ .dataviews-selection-checkbox {
548
+ --checkbox-input-size: 16px;
549
+ }
550
+ }
551
+ .dataviews-selection-checkbox .components-checkbox-control__input-container {
552
+ margin: 0;
553
+ }
554
+
555
+ .dataviews-view-grid {
556
+ margin-bottom: auto;
557
+ grid-template-rows: max-content;
558
+ padding: 0 48px 24px;
559
+ transition: padding ease-out 0.1s;
560
+ }
561
+ @media (prefers-reduced-motion: reduce) {
562
+ .dataviews-view-grid {
563
+ transition-duration: 0s;
564
+ transition-delay: 0s;
565
+ }
566
+ }
567
+ .dataviews-view-grid .dataviews-view-grid__card {
568
+ height: 100%;
569
+ justify-content: flex-start;
570
+ }
571
+ .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions {
572
+ padding: 8px 0 4px;
573
+ }
574
+ .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__primary-field {
804
575
  min-height: 32px;
805
- background: #f0f0f0;
806
- color: #2f2f2f;
576
+ }
577
+ .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
578
+ color: #1e1e1e;
579
+ }
580
+ .dataviews-view-grid .dataviews-view-grid__media {
581
+ width: 100%;
582
+ min-height: 200px;
583
+ aspect-ratio: 1/1;
584
+ background-color: #f0f0f0;
585
+ border-radius: 4px;
807
586
  position: relative;
587
+ }
588
+ .dataviews-view-grid .dataviews-view-grid__media img {
589
+ object-fit: cover;
590
+ width: 100%;
591
+ height: 100%;
592
+ }
593
+ .dataviews-view-grid .dataviews-view-grid__media::after {
594
+ content: "";
595
+ position: absolute;
596
+ top: 0;
597
+ left: 0;
598
+ width: 100%;
599
+ height: 100%;
600
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
601
+ border-radius: 4px;
602
+ pointer-events: none;
603
+ }
604
+ .dataviews-view-grid .dataviews-view-grid__fields {
605
+ position: relative;
606
+ font-size: 12px;
607
+ line-height: 16px;
608
+ }
609
+ .dataviews-view-grid .dataviews-view-grid__fields:not(:empty) {
610
+ padding: 0 0 12px;
611
+ }
612
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field {
613
+ align-items: flex-start;
614
+ min-height: 24px;
615
+ }
616
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) {
617
+ align-items: center;
618
+ }
619
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-name {
620
+ width: 35%;
621
+ }
622
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(.is-column) .dataviews-view-grid__field-value {
623
+ width: 65%;
624
+ overflow: hidden;
625
+ text-overflow: ellipsis;
626
+ white-space: nowrap;
627
+ }
628
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field.is-column + .is-row {
629
+ margin-top: 4px;
630
+ }
631
+ .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name {
632
+ color: #757575;
633
+ }
634
+ .dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty) {
635
+ padding-bottom: 12px;
636
+ }
637
+ .dataviews-view-grid .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value {
638
+ width: -moz-fit-content;
639
+ width: fit-content;
640
+ background: #f0f0f0;
641
+ padding: 0 8px;
642
+ min-height: 24px;
643
+ border-radius: 2px;
808
644
  display: flex;
809
645
  align-items: center;
646
+ font-size: 12px;
810
647
  }
811
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-reset {
812
- padding-inline-end: 28px;
648
+
649
+ .dataviews-view-grid.dataviews-view-grid {
650
+ grid-template-columns: repeat(1, minmax(0, 1fr));
813
651
  }
814
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:hover, .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible, .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip[aria-expanded=true] {
815
- background: #e0e0e0;
652
+ @media (min-width: 480px) {
653
+ .dataviews-view-grid.dataviews-view-grid {
654
+ grid-template-columns: repeat(2, minmax(0, 1fr));
655
+ }
656
+ }
657
+ @media (min-width: 1080px) {
658
+ .dataviews-view-grid.dataviews-view-grid {
659
+ grid-template-columns: repeat(3, minmax(0, 1fr));
660
+ }
661
+ }
662
+ @media (min-width: 1440px) {
663
+ .dataviews-view-grid.dataviews-view-grid {
664
+ grid-template-columns: repeat(4, minmax(0, 1fr));
665
+ }
666
+ }
667
+ @media (min-width: 1920px) {
668
+ .dataviews-view-grid.dataviews-view-grid {
669
+ grid-template-columns: repeat(5, minmax(0, 1fr));
670
+ }
671
+ }
672
+
673
+ .dataviews-density-picker__range-control {
674
+ width: 200px;
675
+ }
676
+
677
+ .dataviews-view-grid__field-value:empty,
678
+ .dataviews-view-grid__field:empty {
679
+ display: none;
680
+ }
681
+
682
+ .dataviews-view-list {
683
+ margin: 0 0 auto;
684
+ }
685
+ .dataviews-view-list li {
686
+ margin: 0;
687
+ cursor: pointer;
688
+ border-top: 1px solid #f0f0f0;
689
+ }
690
+ .dataviews-view-list li .dataviews-view-list__item-wrapper {
691
+ position: relative;
692
+ border-radius: 4px;
693
+ }
694
+ .dataviews-view-list li .dataviews-view-list__item-wrapper > * {
695
+ width: 100%;
696
+ }
697
+ .dataviews-view-list li .dataviews-view-list__item-actions {
698
+ position: absolute;
699
+ top: 16px;
700
+ right: 0;
701
+ }
702
+ .dataviews-view-list li .dataviews-view-list__item-actions > div {
703
+ height: 24px;
704
+ }
705
+ .dataviews-view-list li .dataviews-view-list__item-actions .components-button {
706
+ opacity: 0;
707
+ }
708
+ .dataviews-view-list li:has(.dataviews-view-list__fields:empty) .dataviews-view-list__item-actions {
709
+ top: 50%;
710
+ transform: translateY(-50%);
711
+ }
712
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-actions, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions {
713
+ background: #f8f8f8;
714
+ padding-left: 8px;
715
+ margin-right: 24px;
716
+ box-shadow: -12px 0 8px 0 #f8f8f8;
717
+ }
718
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-actions .components-button, .dataviews-view-list li.is-hovered .dataviews-view-list__item-actions .components-button, .dataviews-view-list li:focus-within .dataviews-view-list__item-actions .components-button {
719
+ opacity: 1;
720
+ position: static;
721
+ }
722
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-actions {
723
+ background-color: #f7f8ff;
724
+ box-shadow: -12px 0 8px 0 #f7f8ff;
725
+ }
726
+ .dataviews-view-list li.is-selected.is-selected {
727
+ border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
728
+ }
729
+ .dataviews-view-list li.is-selected.is-selected + li {
730
+ border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
731
+ }
732
+ .dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
816
733
  color: #1e1e1e;
817
734
  }
818
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values {
735
+ .dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
819
736
  color: var(--wp-admin-theme-color);
820
- background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
737
+ background-color: #f8f8f8;
821
738
  }
822
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values:hover, .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip.has-values[aria-expanded=true] {
823
- background: rgba(var(--wp-admin-theme-color--rgb), 0.12);
739
+ .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
740
+ .dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
741
+ .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
742
+ color: var(--wp-admin-theme-color);
824
743
  }
825
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip:focus-visible {
826
- outline: none;
827
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
744
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper,
745
+ .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper {
746
+ background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
747
+ color: #1e1e1e;
748
+ }
749
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,
750
+ .dataviews-view-list li.is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__fields,
751
+ .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__primary-field,
752
+ .dataviews-view-list li.is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__fields {
753
+ color: var(--wp-admin-theme-color);
754
+ }
755
+ .dataviews-view-list .dataviews-view-list__item {
756
+ padding: 16px 24px;
757
+ width: 100%;
758
+ scroll-margin: 8px 0;
759
+ }
760
+ .dataviews-view-list .dataviews-view-list__item:focus-visible::before {
761
+ position: absolute;
762
+ content: "";
763
+ top: calc(var(--wp-admin-border-width-focus) + 1px);
764
+ right: var(--wp-admin-border-width-focus);
765
+ bottom: var(--wp-admin-border-width-focus);
766
+ left: var(--wp-admin-border-width-focus);
767
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
768
+ border-radius: 2px;
769
+ }
770
+ .dataviews-view-list .dataviews-view-list__item .dataviews-view-list__primary-field {
771
+ min-height: 24px;
772
+ line-height: 24px;
773
+ overflow: hidden;
774
+ }
775
+ .dataviews-view-list .dataviews-view-list__media-wrapper {
776
+ width: 52px;
777
+ height: 52px;
778
+ overflow: hidden;
779
+ position: relative;
780
+ flex-shrink: 0;
781
+ background-color: #f0f0f0;
782
+ border-radius: 4px;
783
+ }
784
+ .dataviews-view-list .dataviews-view-list__media-wrapper img {
785
+ width: 100%;
786
+ height: 100%;
787
+ object-fit: cover;
788
+ }
789
+ .dataviews-view-list .dataviews-view-list__media-wrapper::after {
790
+ content: "";
791
+ position: absolute;
792
+ top: 0;
793
+ left: 0;
794
+ width: 100%;
795
+ height: 100%;
796
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
797
+ border-radius: 4px;
798
+ }
799
+ .dataviews-view-list .dataviews-view-list__media-placeholder {
800
+ min-width: 32px;
801
+ height: 32px;
802
+ background-color: #e0e0e0;
803
+ }
804
+ .dataviews-view-list .dataviews-view-list__field-wrapper {
805
+ min-height: 52px;
806
+ }
807
+ .dataviews-view-list .dataviews-view-list__fields {
808
+ color: #757575;
809
+ display: flex;
810
+ gap: 12px;
811
+ row-gap: 4px;
812
+ flex-wrap: wrap;
813
+ font-size: 12px;
814
+ }
815
+ .dataviews-view-list .dataviews-view-list__fields:empty {
816
+ display: none;
817
+ }
818
+ .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty) {
819
+ display: none;
820
+ }
821
+ .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value {
822
+ line-height: 24px;
823
+ }
824
+ .dataviews-view-list + .dataviews-pagination {
825
+ justify-content: space-between;
826
+ }
827
+
828
+ .dataviews-view-table {
829
+ width: 100%;
830
+ text-indent: 0;
831
+ border-color: inherit;
832
+ border-collapse: collapse;
833
+ position: relative;
834
+ color: #757575;
835
+ margin-bottom: auto;
828
836
  }
829
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip .dataviews-filter-summary__filter-text-name {
837
+ .dataviews-view-table a {
838
+ text-decoration: none;
839
+ color: #1e1e1e;
830
840
  font-weight: 500;
831
841
  }
832
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove {
833
- width: 24px;
834
- height: 24px;
835
- border-radius: 50%;
842
+ .dataviews-view-table th {
843
+ text-align: left;
844
+ color: #1e1e1e;
845
+ font-weight: normal;
846
+ font-size: 13px;
847
+ }
848
+ .dataviews-view-table td,
849
+ .dataviews-view-table th {
850
+ padding: 12px;
851
+ white-space: nowrap;
852
+ }
853
+ .dataviews-view-table td.dataviews-view-table__actions-column,
854
+ .dataviews-view-table th.dataviews-view-table__actions-column {
855
+ text-align: right;
856
+ }
857
+ .dataviews-view-table td.dataviews-view-table__checkbox-column,
858
+ .dataviews-view-table th.dataviews-view-table__checkbox-column {
859
+ padding-right: 0;
860
+ }
861
+ .dataviews-view-table tr {
862
+ border-top: 1px solid #f0f0f0;
863
+ }
864
+ .dataviews-view-table tr .dataviews-view-table-header-button {
865
+ gap: 4px;
866
+ }
867
+ .dataviews-view-table tr td:first-child,
868
+ .dataviews-view-table tr th:first-child {
869
+ padding-left: 48px;
870
+ }
871
+ .dataviews-view-table tr td:first-child .dataviews-view-table-header-button,
872
+ .dataviews-view-table tr td:first-child .dataviews-view-table-header,
873
+ .dataviews-view-table tr th:first-child .dataviews-view-table-header-button,
874
+ .dataviews-view-table tr th:first-child .dataviews-view-table-header {
875
+ margin-left: -8px;
876
+ }
877
+ .dataviews-view-table tr td:last-child,
878
+ .dataviews-view-table tr th:last-child {
879
+ padding-right: 48px;
880
+ }
881
+ .dataviews-view-table tr:last-child {
882
+ border-bottom: 0;
883
+ }
884
+ .dataviews-view-table tr.is-hovered {
885
+ background-color: #f8f8f8;
886
+ }
887
+ .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
888
+ opacity: 0;
889
+ }
890
+ .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus {
891
+ opacity: 1;
892
+ }
893
+ .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
894
+ opacity: 0;
895
+ }
896
+ .dataviews-view-table tr:focus-within .components-checkbox-control__input,
897
+ .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .components-checkbox-control__input,
898
+ .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .components-checkbox-control__input,
899
+ .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
900
+ opacity: 1;
901
+ }
902
+ @media (hover: none) {
903
+ .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,
904
+ .dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
905
+ opacity: 1;
906
+ }
907
+ }
908
+ .dataviews-view-table tr.is-selected {
909
+ background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
910
+ color: #757575;
911
+ }
912
+ .dataviews-view-table tr.is-selected, .dataviews-view-table tr.is-selected + tr {
913
+ border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12);
914
+ }
915
+ .dataviews-view-table tr.is-selected:hover {
916
+ background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
917
+ }
918
+ .dataviews-view-table thead {
919
+ position: sticky;
920
+ inset-block-start: 0;
921
+ z-index: 1;
922
+ }
923
+ .dataviews-view-table thead tr {
836
924
  border: 0;
837
- padding: 0;
838
- position: absolute;
839
- right: 4px;
840
- top: 50%;
841
- transform: translateY(-50%);
925
+ }
926
+ .dataviews-view-table thead th {
927
+ background-color: #fff;
928
+ padding-top: 8px;
929
+ padding-bottom: 8px;
930
+ padding-left: 12px;
931
+ font-size: 11px;
932
+ text-transform: uppercase;
933
+ font-weight: 500;
934
+ }
935
+ .dataviews-view-table thead th:has(.dataviews-view-table-header-button):not(:first-child) {
936
+ padding-left: 4px;
937
+ }
938
+ .dataviews-view-table tbody td {
939
+ vertical-align: top;
940
+ }
941
+ .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper {
942
+ min-height: 32px;
842
943
  display: flex;
843
944
  align-items: center;
844
- justify-content: center;
845
- background: transparent;
846
- cursor: pointer;
847
945
  }
848
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove svg {
849
- fill: #757575;
946
+ .dataviews-view-table tbody .components-v-stack > .dataviews-view-table__cell-content-wrapper:not(:first-child) {
947
+ min-height: 0;
850
948
  }
851
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover, .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus {
852
- background: #e0e0e0;
949
+ .dataviews-view-table .dataviews-view-table-header-button {
950
+ padding: 4px 8px;
951
+ font-size: 11px;
952
+ text-transform: uppercase;
953
+ font-weight: 500;
853
954
  }
854
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:hover svg, .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus svg {
855
- fill: #1e1e1e;
955
+ .dataviews-view-table .dataviews-view-table-header-button:not(:hover) {
956
+ color: #1e1e1e;
856
957
  }
857
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values svg {
858
- fill: var(--wp-admin-theme-color);
958
+ .dataviews-view-table .dataviews-view-table-header-button span {
959
+ speak: none;
859
960
  }
860
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove.has-values:hover {
861
- background: rgba(var(--wp-admin-theme-color--rgb), 0.08);
961
+ .dataviews-view-table .dataviews-view-table-header-button span:empty {
962
+ display: none;
862
963
  }
863
- .dataviews-filter-summary__chip-container .dataviews-filter-summary__chip-remove:focus-visible {
864
- outline: none;
865
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
964
+ .dataviews-view-table .dataviews-view-table-header {
965
+ padding-left: 4px;
966
+ }
967
+ .dataviews-view-table .dataviews-view-table__actions-column {
968
+ width: 1%;
969
+ }
970
+ .dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
971
+ opacity: 1;
972
+ }
973
+
974
+ .dataviews-view-table__cell-content-wrapper:empty {
975
+ display: none;
866
976
  }
867
977
 
868
978
  /* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
869
979
  @container (max-width: 430px) {
870
- .dataviews-pagination,
871
- .dataviews-filters__view-actions {
872
- padding: 12px 24px;
873
- }
874
-
875
- .dataviews-filters__view-actions .components-search-control .components-base-control__field {
876
- max-width: 112px;
877
- }
878
-
879
980
  .dataviews-view-table tr td:first-child,
880
981
  .dataviews-view-table tr th:first-child {
881
982
  padding-left: 24px;
@@ -885,51 +986,12 @@
885
986
  .dataviews-view-table tr th:last-child {
886
987
  padding-right: 24px;
887
988
  }
888
-
889
- .dataviews-view-grid,
890
- .dataviews-no-results,
891
- .dataviews-loading {
892
- padding-left: 24px;
893
- padding-right: 24px;
894
- }
895
- }
896
- .dataviews-bulk-actions-toolbar-wrapper {
897
- display: flex;
898
- flex-grow: 1;
899
- width: 100%;
900
- }
901
- .dataviews-bulk-actions-toolbar-wrapper .components-toolbar-group {
902
- align-items: center;
903
989
  }
904
- .dataviews-bulk-actions-toolbar-wrapper .components-button.is-busy {
905
- max-height: 36px;
906
- }
907
-
908
- .dataviews-bulk-actions {
909
- position: sticky;
910
- display: flex;
911
- flex-direction: column;
912
- align-content: center;
913
- flex-wrap: wrap;
914
- width: -moz-fit-content;
915
- width: fit-content;
916
- margin-left: auto;
917
- margin-right: auto;
918
- bottom: 24px;
919
- z-index: 2;
920
- }
921
- .dataviews-bulk-actions .components-accessible-toolbar {
922
- border-color: #ddd;
923
- box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
924
- }
925
- .dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group {
926
- border-color: #e0e0e0;
927
- }
928
- .dataviews-bulk-actions .components-accessible-toolbar .components-toolbar-group:last-child {
929
- border: 0;
990
+ .dataviews-view-table-selection-checkbox {
991
+ --checkbox-input-size: 24px;
930
992
  }
931
- .dataviews-bulk-actions .dataviews-bulk-actions__selection-count {
932
- display: flex;
933
- align-items: center;
934
- margin: 0 8px 0 8px;
993
+ @media (min-width: 600px) {
994
+ .dataviews-view-table-selection-checkbox {
995
+ --checkbox-input-size: 16px;
996
+ }
935
997
  }