@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.
Files changed (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build-module/components/canvas/back-button.mjs +11 -24
  3. package/build-module/components/canvas/back-button.mjs.map +3 -3
  4. package/build-module/components/navigation/navigation-item/index.mjs +3 -3
  5. package/build-module/components/navigation/navigation-item/index.mjs.map +2 -2
  6. package/build-module/index.mjs +3 -3
  7. package/build-module/index.mjs.map +2 -2
  8. package/build-style/style-rtl.css +0 -415
  9. package/build-style/style.css +0 -415
  10. package/build-types/components/app/index.d.ts +2 -2
  11. package/build-types/components/app/index.d.ts.map +1 -1
  12. package/build-types/components/app/router.d.ts +1 -1
  13. package/build-types/components/app/router.d.ts.map +1 -1
  14. package/build-types/components/canvas/back-button.d.ts +0 -4
  15. package/build-types/components/canvas/back-button.d.ts.map +1 -1
  16. package/build-types/components/canvas-renderer/index.d.ts +1 -1
  17. package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
  18. package/build-types/components/navigation/drilldown-item/index.d.ts +2 -2
  19. package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
  20. package/build-types/components/navigation/dropdown-item/index.d.ts +1 -1
  21. package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
  22. package/build-types/components/navigation/navigation-item/index.d.ts +1 -1
  23. package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
  24. package/build-types/components/navigation/navigation-screen/index.d.ts +2 -2
  25. package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
  26. package/build-types/components/save-panel/use-save-shortcut.d.ts +1 -1
  27. package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
  28. package/package.json +28 -28
  29. package/src/components/canvas/back-button.tsx +7 -17
  30. package/src/components/navigation/navigation-item/style.scss +2 -2
  31. package/src/style.scss +0 -1
  32. 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.17.1-next.v.202607070741.0+a51d59513",
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.50.1-next.v.202607070741.0+a51d59513",
44
- "@wordpress/admin-ui": "^2.5.1-next.v.202607070741.0+a51d59513",
45
- "@wordpress/base-styles": "^10.3.1-next.v.202607070741.0+a51d59513",
46
- "@wordpress/commands": "^1.50.1-next.v.202607070741.0+a51d59513",
47
- "@wordpress/components": "^37.0.1-next.v.202607070741.0+a51d59513",
48
- "@wordpress/compose": "^8.3.1-next.v.202607070741.0+a51d59513",
49
- "@wordpress/core-data": "^7.50.1-next.v.202607070741.0+a51d59513",
50
- "@wordpress/data": "^10.50.1-next.v.202607070741.0+a51d59513",
51
- "@wordpress/editor": "^14.51.1-next.v.202607070741.0+a51d59513",
52
- "@wordpress/element": "^8.2.1-next.v.202607070741.0+a51d59513",
53
- "@wordpress/html-entities": "^4.50.1-next.v.202607070741.0+a51d59513",
54
- "@wordpress/i18n": "^6.23.1-next.v.202607070741.0+a51d59513",
55
- "@wordpress/icons": "^15.1.1-next.v.202607070741.0+a51d59513",
56
- "@wordpress/keyboard-shortcuts": "^5.50.1-next.v.202607070741.0+a51d59513",
57
- "@wordpress/keycodes": "^4.50.1-next.v.202607070741.0+a51d59513",
58
- "@wordpress/lazy-editor": "^1.16.1-next.v.202607070741.0+a51d59513",
59
- "@wordpress/notices": "^5.50.1-next.v.202607070741.0+a51d59513",
60
- "@wordpress/primitives": "^4.50.1-next.v.202607070741.0+a51d59513",
61
- "@wordpress/private-apis": "^1.50.1-next.v.202607070741.0+a51d59513",
62
- "@wordpress/route": "^0.16.1-next.v.202607070741.0+a51d59513",
63
- "@wordpress/theme": "^0.17.2-next.v.202607070741.0+a51d59513",
64
- "@wordpress/ui": "^0.18.1-next.v.202607070741.0+a51d59513",
65
- "@wordpress/url": "^4.50.1-next.v.202607070741.0+a51d59513",
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.3.27",
70
- "react": "^18.0.0",
71
- "react-dom": "^18.0.0"
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": "f637726e370c8b23695ed9af82adbe171ad235d8"
81
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
82
82
  }
@@ -1,15 +1,10 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { Button, Icon as WCIcon } from '@wordpress/components';
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
- <div className="boot-canvas-back-button">
32
- <Button
33
- className="boot-canvas-back-button__link"
34
- onClick={ handleBack }
35
- aria-label={ __( 'Go back' ) }
36
- __next40pxDefaultSize
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: variables.$font-weight-medium;
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: variables.$font-weight-medium;
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,4 +1,3 @@
1
- @use "@wordpress/theme/src/prebuilt/css/design-tokens.css" as *;
2
1
  @use "@wordpress/base-styles/mixins" as *;
3
2
  @use "@wordpress/base-styles/variables" as *;
4
3
 
@@ -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
- }