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