@wordpress/fields 0.30.0 → 0.31.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 +2 -0
- package/build/components/media-edit/index.cjs +124 -36
- package/build/components/media-edit/index.cjs.map +3 -3
- package/build/types.cjs.map +1 -1
- package/build-module/components/media-edit/index.mjs +139 -38
- package/build-module/components/media-edit/index.mjs.map +2 -2
- package/build-style/style-rtl.css +4 -20
- package/build-style/style.css +4 -20
- package/build-types/components/media-edit/index.d.ts +1 -1
- package/build-types/components/media-edit/index.d.ts.map +1 -1
- package/build-types/types.d.ts +1 -1
- package/build-types/types.d.ts.map +1 -1
- package/package.json +26 -26
- package/src/components/media-edit/index.tsx +168 -58
- package/src/fields/featured-image/style.scss +9 -28
- package/src/types.ts +1 -1
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
@use "@wordpress/base-styles/colors" as *;
|
|
2
2
|
@use "@wordpress/base-styles/variables" as *;
|
|
3
3
|
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
height: 100%;
|
|
11
|
-
display: block;
|
|
12
|
-
border-radius: $radius-medium;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.fields-controls__featured-image-placeholder {
|
|
16
|
-
box-shadow: none;
|
|
17
|
-
background: $gray-100;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media {
|
|
22
|
-
.fields-controls__featured-image-image,
|
|
23
|
-
.fields-controls__featured-image-placeholder {
|
|
24
|
-
width: 32px;
|
|
25
|
-
height: 32px;
|
|
26
|
-
}
|
|
4
|
+
.fields-controls__featured-image-image,
|
|
5
|
+
.fields-controls__featured-image-placeholder {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
display: block;
|
|
9
|
+
border-radius: $radius-medium;
|
|
27
10
|
}
|
|
28
11
|
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
height: 16px;
|
|
33
|
-
}
|
|
12
|
+
.fields-controls__featured-image-placeholder {
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
background: $gray-100;
|
|
34
15
|
}
|
package/src/types.ts
CHANGED
|
@@ -142,7 +142,7 @@ export type CoreDataError = { message?: string; code?: string };
|
|
|
142
142
|
export interface MediaEditProps< Item >
|
|
143
143
|
extends Pick<
|
|
144
144
|
DataFormControlProps< Item >,
|
|
145
|
-
'data' | 'field' | 'onChange' | 'hideLabelFromVision'
|
|
145
|
+
'data' | 'field' | 'onChange' | 'hideLabelFromVision' | 'validity'
|
|
146
146
|
> {
|
|
147
147
|
/**
|
|
148
148
|
* Array of allowed media types (e.g., ['image', 'video']).
|