@wordpress/boot 0.17.1-next.v.202607070741.0 → 0.18.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 +7 -0
- package/build-module/components/canvas/back-button.mjs +11 -24
- package/build-module/components/canvas/back-button.mjs.map +3 -3
- package/build-module/components/navigation/navigation-item/index.mjs +3 -3
- package/build-module/components/navigation/navigation-item/index.mjs.map +2 -2
- package/build-module/index.mjs +3 -3
- package/build-module/index.mjs.map +2 -2
- package/build-style/style-rtl.css +0 -415
- package/build-style/style.css +0 -415
- package/build-types/components/app/index.d.ts +2 -2
- package/build-types/components/app/index.d.ts.map +1 -1
- package/build-types/components/app/router.d.ts +1 -1
- package/build-types/components/app/router.d.ts.map +1 -1
- package/build-types/components/canvas/back-button.d.ts +0 -4
- package/build-types/components/canvas/back-button.d.ts.map +1 -1
- package/build-types/components/canvas-renderer/index.d.ts +1 -1
- package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
- package/build-types/components/navigation/drilldown-item/index.d.ts +2 -2
- package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts +1 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-item/index.d.ts +1 -1
- package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-screen/index.d.ts +2 -2
- package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
- package/build-types/components/save-panel/use-save-shortcut.d.ts +1 -1
- package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
- package/package.json +28 -28
- package/src/components/canvas/back-button.tsx +7 -17
- package/src/components/navigation/navigation-item/style.scss +2 -2
- package/src/style.scss +0 -1
- package/src/components/canvas/back-button.scss +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/boot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Minimal boot package for WordPress admin pages.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,35 +40,35 @@
|
|
|
40
40
|
"wpScriptModuleExports": "./build-module/index.mjs",
|
|
41
41
|
"types": "build-types",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@wordpress/a11y": "^4.
|
|
44
|
-
"@wordpress/admin-ui": "^2.
|
|
45
|
-
"@wordpress/base-styles": "^
|
|
46
|
-
"@wordpress/commands": "^1.
|
|
47
|
-
"@wordpress/components": "^37.0.
|
|
48
|
-
"@wordpress/compose": "^8.
|
|
49
|
-
"@wordpress/core-data": "^7.
|
|
50
|
-
"@wordpress/data": "^10.
|
|
51
|
-
"@wordpress/editor": "^14.51.
|
|
52
|
-
"@wordpress/element": "^8.
|
|
53
|
-
"@wordpress/html-entities": "^4.
|
|
54
|
-
"@wordpress/i18n": "^6.
|
|
55
|
-
"@wordpress/icons": "^15.
|
|
56
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
57
|
-
"@wordpress/keycodes": "^4.
|
|
58
|
-
"@wordpress/lazy-editor": "^1.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/primitives": "^4.
|
|
61
|
-
"@wordpress/private-apis": "^1.
|
|
62
|
-
"@wordpress/route": "^0.
|
|
63
|
-
"@wordpress/theme": "^0.
|
|
64
|
-
"@wordpress/ui": "^0.18.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
43
|
+
"@wordpress/a11y": "^4.51.0",
|
|
44
|
+
"@wordpress/admin-ui": "^2.6.0",
|
|
45
|
+
"@wordpress/base-styles": "^11.0.0",
|
|
46
|
+
"@wordpress/commands": "^1.51.0",
|
|
47
|
+
"@wordpress/components": "^37.0.0",
|
|
48
|
+
"@wordpress/compose": "^8.4.0",
|
|
49
|
+
"@wordpress/core-data": "^7.51.0",
|
|
50
|
+
"@wordpress/data": "^10.51.0",
|
|
51
|
+
"@wordpress/editor": "^14.51.0",
|
|
52
|
+
"@wordpress/element": "^8.3.0",
|
|
53
|
+
"@wordpress/html-entities": "^4.51.0",
|
|
54
|
+
"@wordpress/i18n": "^6.24.0",
|
|
55
|
+
"@wordpress/icons": "^15.2.0",
|
|
56
|
+
"@wordpress/keyboard-shortcuts": "^5.51.0",
|
|
57
|
+
"@wordpress/keycodes": "^4.51.0",
|
|
58
|
+
"@wordpress/lazy-editor": "^1.17.0",
|
|
59
|
+
"@wordpress/notices": "^5.51.0",
|
|
60
|
+
"@wordpress/primitives": "^4.51.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.51.0",
|
|
62
|
+
"@wordpress/route": "^0.17.0",
|
|
63
|
+
"@wordpress/theme": "^1.0.0",
|
|
64
|
+
"@wordpress/ui": "^0.18.0",
|
|
65
|
+
"@wordpress/url": "^4.51.0",
|
|
66
66
|
"clsx": "^2.1.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@types/react": "^18
|
|
70
|
-
"react": "^18
|
|
71
|
-
"react-dom": "^18
|
|
69
|
+
"@types/react": "^18 || ^19",
|
|
70
|
+
"react": "^18 || ^19",
|
|
71
|
+
"react-dom": "^18 || ^19"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@types/react": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
|
|
82
82
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { Button
|
|
4
|
+
import { Button } from '@wordpress/components';
|
|
5
5
|
import { chevronLeft, chevronRight } from '@wordpress/icons';
|
|
6
6
|
import { __, isRTL } from '@wordpress/i18n';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies
|
|
10
|
-
*/
|
|
11
|
-
import './back-button.scss';
|
|
12
|
-
|
|
13
8
|
/**
|
|
14
9
|
* Back button component that appears in full-screen canvas mode.
|
|
15
10
|
*
|
|
@@ -28,16 +23,11 @@ export default function BootBackButton( { length }: { length: number } ) {
|
|
|
28
23
|
}
|
|
29
24
|
|
|
30
25
|
return (
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/>
|
|
38
|
-
<div className="boot-canvas-back-button__icon">
|
|
39
|
-
<WCIcon icon={ isRTL() ? chevronRight : chevronLeft } />
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
26
|
+
<Button
|
|
27
|
+
size="compact"
|
|
28
|
+
onClick={ handleBack }
|
|
29
|
+
label={ __( 'Go back' ) }
|
|
30
|
+
icon={ isRTL() ? chevronRight : chevronLeft }
|
|
31
|
+
/>
|
|
42
32
|
);
|
|
43
33
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&.active {
|
|
32
|
-
font-weight:
|
|
32
|
+
font-weight: var(--wpds-typography-font-weight-emphasis);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
svg:last-child {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
&[aria-current="true"] {
|
|
40
40
|
color: var(--wpds-color-foreground-interactive-brand-active);
|
|
41
|
-
font-weight:
|
|
41
|
+
font-weight: var(--wpds-typography-font-weight-emphasis);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// Make sure the focus style is drawn on top of the current item background.
|
package/src/style.scss
CHANGED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/variables";
|
|
2
|
-
|
|
3
|
-
.boot-canvas-back-button {
|
|
4
|
-
position: absolute;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
height: variables.$header-height;
|
|
8
|
-
width: variables.$header-height;
|
|
9
|
-
z-index: 100;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.boot-canvas-back-button__container {
|
|
13
|
-
position: relative;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.boot-canvas-back-button__link.components-button {
|
|
19
|
-
width: variables.$header-height;
|
|
20
|
-
height: variables.$header-height;
|
|
21
|
-
display: inline-flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
text-decoration: none;
|
|
25
|
-
padding: 0;
|
|
26
|
-
border-radius: 0;
|
|
27
|
-
|
|
28
|
-
@media not (prefers-reduced-motion) {
|
|
29
|
-
transition: outline 0.1s ease-out;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:focus:not(:active) {
|
|
33
|
-
outline:
|
|
34
|
-
var(--wpds-border-width-focus) solid
|
|
35
|
-
var(--wpds-color-stroke-focus);
|
|
36
|
-
outline-offset: calc(-1 * var(--wpds-border-width-focus));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.boot-canvas-back-button__icon {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 0;
|
|
43
|
-
left: 0;
|
|
44
|
-
width: variables.$header-height;
|
|
45
|
-
height: variables.$header-height;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
|
|
51
|
-
svg {
|
|
52
|
-
fill: currentColor;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Remove the header slide-in animation so the back logo does not move.
|
|
57
|
-
.interface-interface-skeleton__header {
|
|
58
|
-
margin-top: 0 !important;
|
|
59
|
-
}
|