@wordpress/dataviews 16.0.1 → 17.0.1-next.v.202606191442.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +2 -2
- package/build/components/dataform-layouts/panel/summary-button.cjs.map +2 -2
- package/build/components/dataform-layouts/panel/utils/get-label-content.cjs.map +2 -2
- package/build/components/dataviews-filters/filter.cjs.map +2 -2
- package/build/components/dataviews-layouts/grid/composite-grid.cjs.map +2 -2
- package/build/components/dataviews-layouts/list/index.cjs.map +1 -1
- package/build/components/dataviews-layouts/table/column-primary.cjs +2 -2
- package/build/components/dataviews-layouts/table/column-primary.cjs.map +2 -2
- package/build/components/dataviews-pagination/index.cjs.map +1 -1
- package/build/components/dataviews-picker-footer/index.cjs +72 -33
- package/build/components/dataviews-picker-footer/index.cjs.map +2 -2
- package/build/constants.cjs +1 -1
- package/build/constants.cjs.map +2 -2
- package/build/dataviews-picker/index.cjs +2 -1
- package/build/dataviews-picker/index.cjs.map +2 -2
- package/build/field-types/password.cjs +1 -1
- package/build/field-types/password.cjs.map +2 -2
- package/build/hooks/use-form-validity.cjs +2 -2
- package/build/hooks/use-form-validity.cjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/summary-button.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/utils/get-label-content.mjs.map +2 -2
- package/build-module/components/dataviews-filters/filter.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/grid/composite-grid.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/list/index.mjs.map +1 -1
- package/build-module/components/dataviews-layouts/table/column-primary.mjs +2 -2
- package/build-module/components/dataviews-layouts/table/column-primary.mjs.map +2 -2
- package/build-module/components/dataviews-pagination/index.mjs.map +1 -1
- package/build-module/components/dataviews-picker-footer/index.mjs +71 -33
- package/build-module/components/dataviews-picker-footer/index.mjs.map +2 -2
- package/build-module/constants.mjs +1 -1
- package/build-module/constants.mjs.map +2 -2
- package/build-module/dataviews-picker/index.mjs +6 -2
- package/build-module/dataviews-picker/index.mjs.map +2 -2
- package/build-module/field-types/password.mjs +1 -1
- package/build-module/field-types/password.mjs.map +2 -2
- package/build-module/hooks/use-form-validity.mjs +2 -2
- package/build-module/hooks/use-form-validity.mjs.map +2 -2
- package/build-style/style-rtl.css +164 -176
- package/build-style/style.css +164 -176
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/get-label-content.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/filter.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/grid/composite-grid.d.ts.map +1 -1
- package/build-types/components/dataviews-picker-footer/index.d.ts +3 -2
- package/build-types/components/dataviews-picker-footer/index.d.ts.map +1 -1
- package/build-types/dataviews-picker/index.d.ts +3 -2
- package/build-types/dataviews-picker/index.d.ts.map +1 -1
- package/build-wp/index.js +324 -282
- package/package.json +26 -21
- package/src/components/dataform-controls/style.scss +1 -1
- package/src/components/dataform-layouts/card/style.scss +1 -1
- package/src/components/dataform-layouts/details/style.scss +1 -1
- package/src/components/dataform-layouts/panel/style.scss +18 -31
- package/src/components/dataform-layouts/panel/summary-button.tsx +0 -1
- package/src/components/dataform-layouts/panel/utils/get-label-content.tsx +0 -1
- package/src/components/dataform-layouts/regular/style.scss +4 -4
- package/src/components/dataviews-bulk-actions/style.scss +2 -2
- package/src/components/dataviews-filters/filter.tsx +0 -1
- package/src/components/dataviews-filters/style.scss +44 -45
- package/src/components/dataviews-layouts/activity/style.scss +11 -11
- package/src/components/dataviews-layouts/grid/composite-grid.tsx +0 -1
- package/src/components/dataviews-layouts/grid/style.scss +12 -12
- package/src/components/dataviews-layouts/list/style.scss +20 -21
- package/src/components/dataviews-layouts/picker-activity/style.scss +10 -10
- package/src/components/dataviews-layouts/picker-grid/style.scss +10 -10
- package/src/components/dataviews-layouts/picker-table/style.scss +4 -4
- package/src/components/dataviews-layouts/table/style.scss +17 -17
- package/src/components/dataviews-picker-footer/index.tsx +94 -31
- package/src/components/dataviews-picker-footer/style.scss +1 -1
- package/src/components/dataviews-view-config/style.scss +1 -1
- package/src/dataviews/style.scss +8 -8
- package/src/dataviews-picker/index.tsx +9 -3
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
Composite,
|
|
14
14
|
privateApis as componentsPrivateApis,
|
|
15
15
|
} from '@wordpress/components';
|
|
16
|
-
// eslint-disable-next-line @wordpress/use-recommended-components -- `Tooltip` is not yet on the recommended `@wordpress/ui` allow-list; landing as a migration step ahead of the wider rollout.
|
|
17
16
|
import { Stack, Tooltip } from '@wordpress/ui';
|
|
18
17
|
import { __, sprintf } from '@wordpress/i18n';
|
|
19
18
|
import { useInstanceId } from '@wordpress/compose';
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
left: 0;
|
|
45
45
|
width: 100%;
|
|
46
46
|
height: 100%;
|
|
47
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus
|
|
47
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus);
|
|
48
48
|
border-radius: var(--wpds-border-radius-md);
|
|
49
49
|
pointer-events: none;
|
|
50
50
|
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.dataviews-view-grid__title-field {
|
|
72
|
-
min-height:
|
|
72
|
+
min-height: var(--wpds-dimension-size-sm); // TODO: Preserve layout when there is no ellipsis button
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
align-content: center;
|
|
75
75
|
text-align: start;
|
|
@@ -82,23 +82,23 @@
|
|
|
82
82
|
|
|
83
83
|
&.is-selected {
|
|
84
84
|
.dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value {
|
|
85
|
-
color: var(--wpds-color-
|
|
85
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
&.is-selected .dataviews-view-grid__media::after {
|
|
89
89
|
box-shadow:
|
|
90
90
|
inset 0 0 0 var(--wpds-border-width-xs) var(--wpds-color-stroke-interactive-brand),
|
|
91
|
-
inset 0 0 0 var(--wpds-border-width-sm) var(--wpds-color-
|
|
91
|
+
inset 0 0 0 var(--wpds-border-width-sm) var(--wpds-color-background-surface-neutral-strong);
|
|
92
92
|
}
|
|
93
93
|
.dataviews-view-grid__media:focus::after {
|
|
94
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus
|
|
94
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.dataviews-view-grid__media {
|
|
99
99
|
width: 100%;
|
|
100
100
|
aspect-ratio: 1/1;
|
|
101
|
-
background-color: var(--wpds-color-
|
|
101
|
+
background-color: var(--wpds-color-background-surface-neutral-strong);
|
|
102
102
|
border-radius: var(--wpds-border-radius-md);
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
position: relative;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
display: block;
|
|
132
132
|
border-radius: var(--wpds-border-radius-md);
|
|
133
133
|
box-shadow: none;
|
|
134
|
-
background: var(--wpds-color-
|
|
134
|
+
background: var(--wpds-color-background-surface-neutral);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -145,18 +145,18 @@
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.dataviews-view-grid__field-value:not(:empty) {
|
|
148
|
-
min-height:
|
|
148
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
149
149
|
line-height: var(--wpds-typography-line-height-sm);
|
|
150
150
|
padding-top: calc(var(--wpds-dimension-base) / 2);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.dataviews-view-grid__field {
|
|
154
|
-
min-height:
|
|
154
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
155
155
|
align-items: center;
|
|
156
156
|
|
|
157
157
|
.dataviews-view-grid__field-name {
|
|
158
158
|
width: 35%;
|
|
159
|
-
color: var(--wpds-color-
|
|
159
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
160
160
|
overflow: hidden;
|
|
161
161
|
text-overflow: ellipsis;
|
|
162
162
|
white-space: nowrap;
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
right: var(--wpds-dimension-padding-xs);
|
|
226
226
|
|
|
227
227
|
.dataviews-all-actions-button {
|
|
228
|
-
background-color: var(--wpds-color-
|
|
228
|
+
background-color: var(--wpds-color-background-surface-neutral-strong);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
@media not (prefers-reduced-motion) {
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
.dataviews-view-grid__group-header {
|
|
253
253
|
font-size: var(--wpds-typography-font-size-lg);
|
|
254
254
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
255
|
-
color: var(--wpds-color-
|
|
255
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
256
256
|
margin: 0 0 var(--wpds-dimension-gap-sm) 0;
|
|
257
257
|
padding: 0 var(--wpds-dimension-padding-2xl);
|
|
258
258
|
container-type: inline-size;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/variables" as vars;
|
|
2
1
|
@use "../../../dataviews/style" as *;
|
|
3
2
|
|
|
4
3
|
div.dataviews-view-list {
|
|
@@ -32,7 +31,7 @@ div.dataviews-view-list {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
> div {
|
|
35
|
-
height:
|
|
34
|
+
height: var(--wpds-dimension-size-sm);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
> :not(:last-child) {
|
|
@@ -72,12 +71,12 @@ div.dataviews-view-list {
|
|
|
72
71
|
&:hover,
|
|
73
72
|
&.is-hovered,
|
|
74
73
|
&:focus-within {
|
|
75
|
-
color: var(--wpds-color-
|
|
76
|
-
background-color: var(--wpds-color-
|
|
74
|
+
color: var(--wpds-color-foreground-interactive-brand);
|
|
75
|
+
background-color: var(--wpds-color-background-interactive-brand-weak);
|
|
77
76
|
|
|
78
77
|
.dataviews-title-field,
|
|
79
78
|
.dataviews-view-list__field {
|
|
80
|
-
color: var(--wpds-color-
|
|
79
|
+
color: var(--wpds-color-foreground-interactive-brand);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
}
|
|
@@ -89,12 +88,12 @@ div.dataviews-view-list {
|
|
|
89
88
|
div[role="article"].is-selected,
|
|
90
89
|
div[role="article"].is-selected:focus-within {
|
|
91
90
|
.dataviews-view-list__item-wrapper {
|
|
92
|
-
background-color: var(--wpds-color-
|
|
93
|
-
color: var(--wpds-color-
|
|
91
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
92
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
94
93
|
|
|
95
94
|
.dataviews-title-field,
|
|
96
95
|
.dataviews-view-list__field {
|
|
97
|
-
color: var(--wpds-color-
|
|
96
|
+
color: var(--wpds-color-foreground-interactive-neutral-active);
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
}
|
|
@@ -117,7 +116,7 @@ div.dataviews-view-list {
|
|
|
117
116
|
position: absolute;
|
|
118
117
|
content: "";
|
|
119
118
|
inset: var(--wp-admin-border-width-focus);
|
|
120
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus
|
|
119
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus);
|
|
121
120
|
border-radius: var(--wpds-border-radius-sm);
|
|
122
121
|
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
123
122
|
outline: 2px solid transparent;
|
|
@@ -126,7 +125,7 @@ div.dataviews-view-list {
|
|
|
126
125
|
}
|
|
127
126
|
.dataviews-view-list__title-field {
|
|
128
127
|
flex: 1;
|
|
129
|
-
min-height:
|
|
128
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
130
129
|
line-height: var(--wpds-typography-line-height-md);
|
|
131
130
|
overflow: hidden;
|
|
132
131
|
// The field should be in front of the main button in case it has a link/button.
|
|
@@ -141,7 +140,7 @@ div.dataviews-view-list {
|
|
|
141
140
|
overflow: hidden;
|
|
142
141
|
position: relative;
|
|
143
142
|
flex-shrink: 0;
|
|
144
|
-
background-color: var(--wpds-color-
|
|
143
|
+
background-color: var(--wpds-color-background-surface-neutral-strong);
|
|
145
144
|
border-radius: var(--wpds-border-radius-md);
|
|
146
145
|
|
|
147
146
|
img {
|
|
@@ -169,7 +168,7 @@ div.dataviews-view-list {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
.dataviews-view-list__field {
|
|
172
|
-
color: var(--wpds-color-
|
|
171
|
+
color: var(--wpds-color-foreground-interactive-neutral-weak);
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
.dataviews-view-list__fields {
|
|
@@ -190,7 +189,7 @@ div.dataviews-view-list {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
.dataviews-view-list__field-value {
|
|
193
|
-
min-height:
|
|
192
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
194
193
|
line-height: var(--wpds-typography-line-height-sm);
|
|
195
194
|
display: flex;
|
|
196
195
|
align-items: center;
|
|
@@ -209,17 +208,17 @@ div.dataviews-view-list {
|
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
.dataviews-view-list__title-field {
|
|
212
|
-
min-height:
|
|
211
|
+
min-height: var(--wpds-dimension-size-2xs);
|
|
213
212
|
line-height: var(--wpds-typography-line-height-xs);
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
.dataviews-view-list__media-wrapper {
|
|
217
|
-
width:
|
|
218
|
-
height:
|
|
216
|
+
width: var(--wpds-dimension-size-md);
|
|
217
|
+
height: var(--wpds-dimension-size-md);
|
|
219
218
|
}
|
|
220
219
|
|
|
221
220
|
.dataviews-view-list__field-wrapper {
|
|
222
|
-
min-height:
|
|
221
|
+
min-height: var(--wpds-dimension-size-md);
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
.dataviews-view-list__fields {
|
|
@@ -227,7 +226,7 @@ div.dataviews-view-list {
|
|
|
227
226
|
row-gap: var(--wpds-dimension-gap-xs);
|
|
228
227
|
|
|
229
228
|
.dataviews-view-list__field-value {
|
|
230
|
-
min-height:
|
|
229
|
+
min-height: var(--wpds-dimension-size-2xs);
|
|
231
230
|
line-height: var(--wpds-typography-line-height-xs);
|
|
232
231
|
}
|
|
233
232
|
}
|
|
@@ -241,7 +240,7 @@ div.dataviews-view-list {
|
|
|
241
240
|
}
|
|
242
241
|
|
|
243
242
|
.dataviews-view-list__title-field {
|
|
244
|
-
min-height:
|
|
243
|
+
min-height: var(--wpds-dimension-size-md);
|
|
245
244
|
line-height: var(--wpds-typography-line-height-xl);
|
|
246
245
|
}
|
|
247
246
|
|
|
@@ -259,7 +258,7 @@ div.dataviews-view-list {
|
|
|
259
258
|
row-gap: var(--wpds-dimension-gap-sm);
|
|
260
259
|
|
|
261
260
|
.dataviews-view-list__field-value {
|
|
262
|
-
min-height:
|
|
261
|
+
min-height: var(--wpds-dimension-size-md);
|
|
263
262
|
line-height: var(--wpds-typography-line-height-md);
|
|
264
263
|
}
|
|
265
264
|
}
|
|
@@ -274,7 +273,7 @@ div.dataviews-view-list {
|
|
|
274
273
|
.dataviews-view-list__group-header {
|
|
275
274
|
font-size: var(--wpds-typography-font-size-lg);
|
|
276
275
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
277
|
-
color: var(--wpds-color-
|
|
276
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
278
277
|
margin: 0 0 var(--wpds-dimension-gap-sm) 0;
|
|
279
278
|
padding: 0 var(--wpds-dimension-padding-2xl);
|
|
280
279
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.dataviews-view-picker-activity__item[data-active-item="true"] {
|
|
13
|
-
outline: 2px solid var(--wpds-color-stroke-focus
|
|
13
|
+
outline: 2px solid var(--wpds-color-stroke-focus);
|
|
14
14
|
outline-offset: -2px;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// keeping selection legible even for bullet-only items.
|
|
27
27
|
&.is-selected,
|
|
28
28
|
&:hover {
|
|
29
|
-
background-color: var(--wpds-color-
|
|
29
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// Selection outline only renders in Windows High Contrast mode.
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
width: var(--wpds-dimension-padding-md);
|
|
41
41
|
|
|
42
42
|
&::before {
|
|
43
|
-
height:
|
|
43
|
+
height: var(--wpds-dimension-size-3xs);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
.dataviews-view-picker-activity__item-type-icon {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
|
|
55
55
|
&.is-balanced {
|
|
56
56
|
.dataviews-view-picker-activity__item-type {
|
|
57
|
-
width:
|
|
57
|
+
width: var(--wpds-dimension-size-sm);
|
|
58
58
|
|
|
59
59
|
&::before {
|
|
60
|
-
height:
|
|
60
|
+
height: var(--wpds-dimension-size-3xs);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
.dataviews-view-picker-activity__item-type-icon {
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
|
|
73
73
|
&.is-comfortable {
|
|
74
74
|
.dataviews-view-picker-activity__item-type {
|
|
75
|
-
width:
|
|
75
|
+
width: var(--wpds-dimension-size-md);
|
|
76
76
|
|
|
77
77
|
&::before {
|
|
78
|
-
height:
|
|
78
|
+
height: var(--wpds-dimension-size-4xs);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
.dataviews-view-picker-activity__item-type-icon {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
.dataviews-view-picker-activity__item-title,
|
|
107
107
|
.dataviews-view-picker-activity__item-description,
|
|
108
108
|
.dataviews-view-picker-activity__item-fields {
|
|
109
|
-
min-height:
|
|
109
|
+
min-height: var(--wpds-dimension-size-2xs);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.dataviews-view-picker-activity__item-title {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.dataviews-view-picker-activity__item-fields {
|
|
127
|
-
color: var(--wpds-color-
|
|
127
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
128
128
|
display: flex;
|
|
129
129
|
gap: var(--wpds-dimension-gap-md);
|
|
130
130
|
row-gap: var(--wpds-dimension-gap-xs);
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
.dataviews-view-picker-activity-group__header {
|
|
191
191
|
font-size: var(--wpds-typography-font-size-lg);
|
|
192
192
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
193
|
-
color: var(--wpds-color-
|
|
193
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
194
194
|
margin: 0 0 var(--wpds-dimension-gap-sm) 0;
|
|
195
195
|
padding: 0;
|
|
196
196
|
padding-inline-start: var(--wpds-dimension-padding-2xl);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.dataviews-view-picker-grid__title-field {
|
|
25
|
-
min-height:
|
|
25
|
+
min-height: var(--wpds-dimension-size-sm); // TODO: Preserve layout when there is no ellipsis button
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
align-content: center;
|
|
28
28
|
text-align: start;
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
|
|
36
36
|
&.is-selected {
|
|
37
37
|
.dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value {
|
|
38
|
-
color: var(--wpds-color-
|
|
38
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
&.is-selected .dataviews-view-picker-grid__media::after {
|
|
42
42
|
box-shadow:
|
|
43
43
|
inset 0 0 0 var(--wpds-border-width-xs) var(--wpds-color-stroke-interactive-brand),
|
|
44
|
-
inset 0 0 0 var(--wpds-border-width-sm) var(--wpds-color-
|
|
44
|
+
inset 0 0 0 var(--wpds-border-width-sm) var(--wpds-color-background-surface-neutral-strong);
|
|
45
45
|
}
|
|
46
46
|
.dataviews-view-picker-grid__media:focus::after {
|
|
47
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus
|
|
47
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
[data-active-item="true"] {
|
|
59
|
-
outline: 2px solid var(--wpds-color-stroke-focus
|
|
59
|
+
outline: 2px solid var(--wpds-color-stroke-focus);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
width: 100%;
|
|
76
76
|
aspect-ratio: 1/1;
|
|
77
77
|
min-height: 0;
|
|
78
|
-
background-color: var(--wpds-color-
|
|
78
|
+
background-color: var(--wpds-color-background-surface-neutral-strong);
|
|
79
79
|
border-radius: var(--wpds-border-radius-md);
|
|
80
80
|
position: relative;
|
|
81
81
|
|
|
@@ -108,18 +108,18 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.dataviews-view-picker-grid__field-value:not(:empty) {
|
|
111
|
-
min-height:
|
|
111
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
112
112
|
line-height: var(--wpds-typography-line-height-sm);
|
|
113
113
|
padding-top: calc(var(--wpds-dimension-base) / 2);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.dataviews-view-picker-grid__field {
|
|
117
|
-
min-height:
|
|
117
|
+
min-height: var(--wpds-dimension-size-sm);
|
|
118
118
|
align-items: center;
|
|
119
119
|
|
|
120
120
|
.dataviews-view-picker-grid__field-name {
|
|
121
121
|
width: 35%;
|
|
122
|
-
color: var(--wpds-color-
|
|
122
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
123
123
|
overflow: hidden;
|
|
124
124
|
text-overflow: ellipsis;
|
|
125
125
|
white-space: nowrap;
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
.dataviews-view-picker-grid-group__header {
|
|
177
177
|
font-size: var(--wpds-typography-font-size-lg);
|
|
178
178
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
179
|
-
color: var(--wpds-color-
|
|
179
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
180
180
|
margin: 0 0 var(--wpds-dimension-gap-sm) 0;
|
|
181
181
|
padding: 0 calc(var(--wpds-dimension-base) * 12);
|
|
182
182
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[data-active-item="true"] {
|
|
21
|
-
outline: 2px solid var(--wpds-color-stroke-focus
|
|
21
|
+
outline: 2px solid var(--wpds-color-stroke-focus);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
cursor: var(--wpds-cursor-control);
|
|
38
38
|
|
|
39
39
|
&.is-selected {
|
|
40
|
-
background-color: var(--wpds-color-
|
|
40
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&.is-hovered {
|
|
44
|
-
background-color: var(--wpds-color-
|
|
44
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&.is-selected.is-hovered {
|
|
48
|
-
background-color: var(--wpds-color-
|
|
48
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
border-color: inherit;
|
|
8
8
|
border-collapse: collapse;
|
|
9
9
|
position: relative;
|
|
10
|
-
color: var(--wpds-color-
|
|
10
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
11
11
|
margin-bottom: auto;
|
|
12
12
|
background-color: inherit;
|
|
13
13
|
|
|
14
14
|
th {
|
|
15
15
|
text-align: left;
|
|
16
|
-
color: var(--wpds-color-
|
|
16
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
17
17
|
font-weight: normal;
|
|
18
18
|
font-size: var(--wpds-typography-font-size-md);
|
|
19
19
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
&.dataviews-view-table__actions-column--sticky {
|
|
29
29
|
position: sticky;
|
|
30
30
|
right: 0;
|
|
31
|
-
background-color: var(--wp-dataviews-color-background, var(--wpds-color-
|
|
31
|
+
background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.dataviews-view-table__actions-column--stuck {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
bottom: 0;
|
|
41
41
|
left: 0;
|
|
42
42
|
width: 1px;
|
|
43
|
-
background-color: var(--wpds-color-
|
|
43
|
+
background-color: var(--wpds-color-background-surface-neutral);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&.is-selected {
|
|
86
|
-
background-color: var(--wpds-color-
|
|
87
|
-
color: var(--wpds-color-
|
|
86
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
87
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
88
88
|
|
|
89
89
|
&,
|
|
90
90
|
& + tr {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.dataviews-view-table__actions-column--sticky {
|
|
95
|
-
background-color: var(--wpds-color-
|
|
95
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
&:focus-within,
|
|
113
113
|
&:hover {
|
|
114
114
|
.dataviews-view-table__actions-column--sticky {
|
|
115
|
-
background-color: var(--wp-dataviews-color-background, var(--wpds-color-
|
|
115
|
+
background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong));
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&.is-selected,
|
|
120
120
|
&.is-selected:hover {
|
|
121
121
|
.dataviews-view-table__actions-column--sticky {
|
|
122
|
-
background-color: var(--wpds-color-
|
|
122
|
+
background-color: var(--wpds-color-background-interactive-brand-weak-active);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
vertical-align: top;
|
|
182
182
|
}
|
|
183
183
|
.dataviews-view-table__cell-content-wrapper {
|
|
184
|
-
min-height:
|
|
184
|
+
min-height: var(--wpds-dimension-size-md);
|
|
185
185
|
display: flex;
|
|
186
186
|
align-items: center;
|
|
187
187
|
white-space: nowrap;
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
208
208
|
|
|
209
209
|
&:not(:hover) {
|
|
210
|
-
color: var(--wpds-color-
|
|
210
|
+
color: var(--wpds-color-foreground-interactive-neutral);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
span {
|
|
@@ -276,17 +276,17 @@
|
|
|
276
276
|
|
|
277
277
|
.dataviews-column-primary__media {
|
|
278
278
|
max-width: 60px;
|
|
279
|
-
min-width:
|
|
280
|
-
min-height:
|
|
279
|
+
min-width: var(--wpds-dimension-size-md);
|
|
280
|
+
min-height: var(--wpds-dimension-size-md);
|
|
281
281
|
overflow: hidden;
|
|
282
282
|
position: relative;
|
|
283
283
|
flex-shrink: 0;
|
|
284
|
-
background-color: var(--wpds-color-
|
|
284
|
+
background-color: var(--wpds-color-background-surface-neutral-strong);
|
|
285
285
|
border-radius: var(--wpds-border-radius-md);
|
|
286
286
|
|
|
287
287
|
img {
|
|
288
|
-
width:
|
|
289
|
-
height:
|
|
288
|
+
width: var(--wpds-dimension-size-md);
|
|
289
|
+
height: var(--wpds-dimension-size-md);
|
|
290
290
|
object-fit: cover;
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
.dataviews-view-table__group-header-cell {
|
|
315
315
|
font-weight: var(--wpds-typography-font-weight-medium);
|
|
316
316
|
padding: var(--wpds-dimension-padding-md) var(--wpds-dimension-padding-2xl);
|
|
317
|
-
color: var(--wpds-color-
|
|
317
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
|