@wordpress/edit-site 6.19.1 → 6.20.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/editor/site-preview.js +9 -10
- package/build/components/editor/site-preview.js.map +1 -1
- package/build/components/global-styles/shadows-panel.js +19 -23
- package/build/components/global-styles/shadows-panel.js.map +1 -1
- package/build/components/layout/index.js +1 -1
- package/build/components/layout/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +28 -30
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build-module/components/editor/site-preview.js +9 -10
- package/build-module/components/editor/site-preview.js.map +1 -1
- package/build-module/components/global-styles/shadows-panel.js +20 -24
- package/build-module/components/global-styles/shadows-panel.js.map +1 -1
- package/build-module/components/layout/index.js +1 -1
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +28 -30
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build-style/style-rtl.css +4 -5
- package/build-style/style.css +4 -5
- package/package.json +42 -42
- package/src/components/editor/site-preview.js +9 -15
- package/src/components/global-styles/shadows-panel.js +25 -31
- package/src/components/global-styles/style.scss +0 -1
- package/src/components/layout/index.js +2 -0
- package/src/components/sidebar-navigation-screen-main/index.js +1 -1
- package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +38 -40
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
__experimentalVStack as VStack,
|
|
7
7
|
__experimentalItemGroup as ItemGroup,
|
|
8
8
|
Button,
|
|
9
|
-
Flex,
|
|
10
9
|
FlexItem,
|
|
11
10
|
privateApis as componentsPrivateApis,
|
|
12
11
|
} from '@wordpress/components';
|
|
@@ -134,14 +133,9 @@ function ShadowList( {
|
|
|
134
133
|
return (
|
|
135
134
|
<VStack spacing={ 2 }>
|
|
136
135
|
<HStack justify="space-between">
|
|
137
|
-
<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
>
|
|
141
|
-
<Subtitle level={ 3 }>{ label }</Subtitle>
|
|
142
|
-
</Flex>
|
|
143
|
-
{ canCreate && (
|
|
144
|
-
<FlexItem className="edit-site-global-styles__shadows-panel__options-container">
|
|
136
|
+
<Subtitle level={ 3 }>{ label }</Subtitle>
|
|
137
|
+
<FlexItem className="edit-site-global-styles__shadows-panel__options-container">
|
|
138
|
+
{ canCreate && (
|
|
145
139
|
<Button
|
|
146
140
|
size="small"
|
|
147
141
|
icon={ plus }
|
|
@@ -150,28 +144,28 @@ function ShadowList( {
|
|
|
150
144
|
handleAddShadow();
|
|
151
145
|
} }
|
|
152
146
|
/>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</Menu.
|
|
171
|
-
</Menu.
|
|
172
|
-
</Menu
|
|
173
|
-
|
|
174
|
-
|
|
147
|
+
) }
|
|
148
|
+
{ !! shadows?.length && category === 'custom' && (
|
|
149
|
+
<Menu>
|
|
150
|
+
<Menu.TriggerButton
|
|
151
|
+
render={
|
|
152
|
+
<Button
|
|
153
|
+
size="small"
|
|
154
|
+
icon={ moreVertical }
|
|
155
|
+
label={ __( 'Shadow options' ) }
|
|
156
|
+
/>
|
|
157
|
+
}
|
|
158
|
+
/>
|
|
159
|
+
<Menu.Popover>
|
|
160
|
+
<Menu.Item onClick={ onReset }>
|
|
161
|
+
<Menu.ItemLabel>
|
|
162
|
+
{ __( 'Remove all custom shadows' ) }
|
|
163
|
+
</Menu.ItemLabel>
|
|
164
|
+
</Menu.Item>
|
|
165
|
+
</Menu.Popover>
|
|
166
|
+
</Menu>
|
|
167
|
+
) }
|
|
168
|
+
</FlexItem>
|
|
175
169
|
</HStack>
|
|
176
170
|
{ shadows.length > 0 && (
|
|
177
171
|
<ItemGroup isBordered isSeparated>
|
|
@@ -100,7 +100,7 @@ export default function SidebarNavigationScreenMain( { customDescription } ) {
|
|
|
100
100
|
);
|
|
101
101
|
} else {
|
|
102
102
|
description = __(
|
|
103
|
-
'Explore block styles and patterns to refine your site'
|
|
103
|
+
'Explore block styles and patterns to refine your site.'
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -45,47 +45,45 @@ export default function ScreenNavigationMoreMenu( props ) {
|
|
|
45
45
|
popoverProps={ POPOVER_PROPS }
|
|
46
46
|
>
|
|
47
47
|
{ ( { onClose } ) => (
|
|
48
|
-
<
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
openDeleteConfirmDialog();
|
|
48
|
+
<MenuGroup>
|
|
49
|
+
<MenuItem
|
|
50
|
+
onClick={ () => {
|
|
51
|
+
openRenameModal();
|
|
52
|
+
// Close the dropdown after opening the modal.
|
|
53
|
+
onClose();
|
|
54
|
+
} }
|
|
55
|
+
>
|
|
56
|
+
{ __( 'Rename' ) }
|
|
57
|
+
</MenuItem>
|
|
58
|
+
<MenuItem
|
|
59
|
+
onClick={ () => {
|
|
60
|
+
history.navigate(
|
|
61
|
+
`/wp_navigation/${ menuId }?canvas=edit`
|
|
62
|
+
);
|
|
63
|
+
} }
|
|
64
|
+
>
|
|
65
|
+
{ __( 'Edit' ) }
|
|
66
|
+
</MenuItem>
|
|
67
|
+
<MenuItem
|
|
68
|
+
onClick={ () => {
|
|
69
|
+
onDuplicate();
|
|
70
|
+
onClose();
|
|
71
|
+
} }
|
|
72
|
+
>
|
|
73
|
+
{ __( 'Duplicate' ) }
|
|
74
|
+
</MenuItem>
|
|
75
|
+
<MenuItem
|
|
76
|
+
isDestructive
|
|
77
|
+
onClick={ () => {
|
|
78
|
+
openDeleteConfirmDialog();
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
</div>
|
|
80
|
+
// Close the dropdown after opening the modal.
|
|
81
|
+
onClose();
|
|
82
|
+
} }
|
|
83
|
+
>
|
|
84
|
+
{ __( 'Delete' ) }
|
|
85
|
+
</MenuItem>
|
|
86
|
+
</MenuGroup>
|
|
89
87
|
) }
|
|
90
88
|
</DropdownMenu>
|
|
91
89
|
{ deleteConfirmDialogOpen && (
|