@wordpress/boot 0.15.1 → 0.16.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 +6 -0
- package/README.md +78 -0
- package/build-module/components/app/index.mjs +10 -5
- package/build-module/components/app/index.mjs.map +2 -2
- package/build-module/components/app/use-route-title.mjs +1 -1
- package/build-module/components/app/use-route-title.mjs.map +2 -2
- package/build-module/components/canvas/back-button.mjs +3 -3
- package/build-module/components/canvas/back-button.mjs.map +2 -2
- 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/components/navigation/navigation-screen/index.mjs +3 -3
- package/build-module/components/navigation/navigation-screen/index.mjs.map +2 -2
- package/build-module/components/root/index.mjs +4 -5
- package/build-module/components/root/index.mjs.map +2 -2
- package/build-module/components/root/single-page.mjs +4 -5
- package/build-module/components/root/single-page.mjs.map +2 -2
- package/build-module/components/save-button/index.mjs +2 -2
- package/build-module/components/save-button/index.mjs.map +2 -2
- package/build-module/components/site-hub/index.mjs +3 -3
- package/build-module/components/site-hub/index.mjs.map +2 -2
- package/build-module/components/site-icon/index.mjs +3 -3
- package/build-module/components/site-icon/index.mjs.map +2 -2
- package/build-module/components/site-icon-link/index.mjs +3 -3
- package/build-module/components/site-icon-link/index.mjs.map +2 -2
- package/build-module/index.mjs +6 -6
- package/build-module/index.mjs.map +2 -2
- package/build-style/style-rtl.css +159 -77
- package/build-style/style.css +159 -77
- package/build-style/view-transitions-rtl.css +1 -1
- package/build-style/view-transitions.css +1 -1
- package/build-types/components/app/index.d.ts +8 -4
- package/build-types/components/app/index.d.ts.map +1 -1
- package/build-types/components/root/index.d.ts.map +1 -1
- package/build-types/components/root/single-page.d.ts.map +1 -1
- package/build-types/components/save-button/index.d.ts.map +1 -1
- package/build-types/components/site-icon-link/index.d.ts.map +1 -1
- package/package.json +31 -26
- package/src/components/app/index.tsx +37 -16
- package/src/components/canvas/back-button.scss +2 -2
- package/src/components/navigation/navigation-item/style.scss +3 -3
- package/src/components/navigation/navigation-screen/style.scss +2 -2
- package/src/components/root/index.tsx +1 -3
- package/src/components/root/single-page.tsx +1 -2
- package/src/components/root/style.scss +10 -10
- package/src/components/save-button/index.tsx +0 -1
- package/src/components/site-hub/style.scss +4 -4
- package/src/components/site-icon/style.scss +1 -1
- package/src/components/site-icon-link/index.tsx +0 -1
- package/src/components/site-icon-link/style.scss +2 -2
- package/src/{experimental-admin-bar-in-editor.scss → experimental-omnibar.scss} +1 -1
- package/src/style.scss +1 -1
- package/src/view-transitions.scss +1 -1
- package/build-types/components/user-theme-provider/index.d.ts +0 -6
- package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
- /package/build-style/{experimental-admin-bar-in-editor-rtl.css → experimental-omnibar-rtl.css} +0 -0
- /package/build-style/{experimental-admin-bar-in-editor.css → experimental-omnibar.css} +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.boot-navigation-screen .components-text {
|
|
9
|
-
color: var(--wpds-color-
|
|
9
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.boot-navigation-screen__title-icon {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
&#{&},
|
|
25
25
|
&#{&} .boot-navigation-screen__title {
|
|
26
26
|
line-height: variables.$font-line-height-x-large;
|
|
27
|
-
color: var(--wpds-color-
|
|
27
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -19,9 +19,8 @@ import { menu } from '@wordpress/icons';
|
|
|
19
19
|
import { useState, useEffect, useMemo } from '@wordpress/element';
|
|
20
20
|
import { __ } from '@wordpress/i18n';
|
|
21
21
|
import { Page, getAdminThemeColors } from '@wordpress/admin-ui';
|
|
22
|
-
// 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.
|
|
23
22
|
import { Tooltip } from '@wordpress/ui';
|
|
24
|
-
import {
|
|
23
|
+
import { ThemeProvider } from '@wordpress/theme';
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* Internal dependencies
|
|
@@ -35,7 +34,6 @@ import type { CanvasData } from '../../store/types';
|
|
|
35
34
|
import './style.scss';
|
|
36
35
|
|
|
37
36
|
const { useLocation, useMatches, Outlet } = unlock( routePrivateApis );
|
|
38
|
-
const { ThemeProvider } = unlock( themePrivateApis );
|
|
39
37
|
|
|
40
38
|
export default function Root() {
|
|
41
39
|
const matches = useMatches();
|
|
@@ -11,7 +11,7 @@ import { SnackbarNotices } from '@wordpress/notices';
|
|
|
11
11
|
import { SlotFillProvider } from '@wordpress/components';
|
|
12
12
|
import { useMemo } from '@wordpress/element';
|
|
13
13
|
import { getAdminThemeColors } from '@wordpress/admin-ui';
|
|
14
|
-
import {
|
|
14
|
+
import { ThemeProvider } from '@wordpress/theme';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Internal dependencies
|
|
@@ -24,7 +24,6 @@ import './style.scss';
|
|
|
24
24
|
import useRouteTitle from '../app/use-route-title';
|
|
25
25
|
|
|
26
26
|
const { useMatches, Outlet } = unlock( routePrivateApis );
|
|
27
|
-
const { ThemeProvider } = unlock( themePrivateApis );
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Root component for single page mode (no sidebar).
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
|
-
color: var(--wpds-color-
|
|
9
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
10
10
|
isolation: isolate;
|
|
11
|
-
background: var(--wpds-color-
|
|
11
|
+
background: var(--wpds-color-background-surface-neutral-weak);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.boot-layout__sidebar-backdrop {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
inset-inline-start: 0;
|
|
37
37
|
width: 300px;
|
|
38
38
|
max-width: 85vw;
|
|
39
|
-
background: var(--wpds-color-
|
|
39
|
+
background: var(--wpds-color-background-surface-neutral-weak);
|
|
40
40
|
z-index: 100003;
|
|
41
41
|
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
|
|
42
42
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
z-index: 3;
|
|
56
|
-
background: var(--wpds-color-
|
|
56
|
+
background: var(--wpds-color-background-surface-neutral);
|
|
57
57
|
padding: variables.$grid-unit-20;
|
|
58
58
|
border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral-weak);
|
|
59
59
|
display: flex;
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
.boot-layout__inspector {
|
|
87
87
|
flex: 1;
|
|
88
88
|
overflow-y: auto;
|
|
89
|
-
background: var(--wpds-color-
|
|
90
|
-
color: var(--wpds-color-
|
|
89
|
+
background: var(--wpds-color-background-surface-neutral);
|
|
90
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
91
91
|
position: relative;
|
|
92
92
|
|
|
93
93
|
// Mobile-first: surfaces take full screen with fixed positioning
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
position: static;
|
|
112
112
|
width: auto;
|
|
113
113
|
height: auto;
|
|
114
|
-
border-radius:
|
|
114
|
+
border-radius: var(--wpds-border-radius-xl);
|
|
115
115
|
margin: 0;
|
|
116
116
|
|
|
117
117
|
.boot-layout--single-page & {
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
.boot-layout__canvas {
|
|
140
140
|
flex: 1;
|
|
141
141
|
overflow-y: auto;
|
|
142
|
-
background: var(--wpds-color-
|
|
143
|
-
color: var(--wpds-color-
|
|
142
|
+
background: var(--wpds-color-background-surface-neutral);
|
|
143
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
144
144
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
145
145
|
border: 1px solid var(--wpds-color-stroke-surface-neutral-weak);
|
|
146
146
|
position: relative;
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
position: static;
|
|
168
168
|
width: auto;
|
|
169
169
|
height: auto;
|
|
170
|
-
border-radius:
|
|
170
|
+
border-radius: var(--wpds-border-radius-xl);
|
|
171
171
|
z-index: auto;
|
|
172
172
|
|
|
173
173
|
.boot-layout--single-page & {
|
|
@@ -9,7 +9,6 @@ import { displayShortcut, rawShortcut } from '@wordpress/keycodes';
|
|
|
9
9
|
import { check } from '@wordpress/icons';
|
|
10
10
|
import { EntitiesSavedStates } from '@wordpress/editor';
|
|
11
11
|
import { Button, Modal } from '@wordpress/components';
|
|
12
|
-
// 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.
|
|
13
12
|
import { Tooltip } from '@wordpress/ui';
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.boot-site-hub {
|
|
4
4
|
position: sticky;
|
|
5
5
|
top: 0;
|
|
6
|
-
background-color: var(--wpds-color-
|
|
6
|
+
background-color: var(--wpds-color-background-surface-neutral-weak);
|
|
7
7
|
z-index: 1;
|
|
8
8
|
display: grid;
|
|
9
9
|
grid-template-columns: 60px 1fr auto;
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
&:focus:not(:active) {
|
|
47
47
|
outline:
|
|
48
48
|
var(--wpds-border-width-focus) solid
|
|
49
|
-
var(--wpds-color-stroke-focus
|
|
49
|
+
var(--wpds-color-stroke-focus);
|
|
50
50
|
outline-offset: calc(-1 * var(--wpds-border-width-focus));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.boot-site-hub__title-text {
|
|
55
|
-
color: var(--wpds-color-
|
|
55
|
+
color: var(--wpds-color-foreground-content-neutral);
|
|
56
56
|
font-size: variables.$font-size-medium;
|
|
57
57
|
font-weight: variables.$font-weight-medium;
|
|
58
58
|
overflow: hidden;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.boot-site-hub__url {
|
|
64
|
-
color: var(--wpds-color-
|
|
64
|
+
color: var(--wpds-color-foreground-content-neutral-weak);
|
|
65
65
|
font-size: variables.$font-size-small;
|
|
66
66
|
overflow: hidden;
|
|
67
67
|
text-overflow: ellipsis;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { Link, privateApis as routePrivateApis } from '@wordpress/route';
|
|
5
|
-
// 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.
|
|
6
5
|
import { Tooltip } from '@wordpress/ui';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -8,7 +8,7 @@ $header-height: variables.$header-height;
|
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
|
-
background: var(--wpds-color-
|
|
11
|
+
background: var(--wpds-color-background-surface-neutral-weak);
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
|
|
14
14
|
@media not (prefers-reduced-motion) {
|
|
@@ -18,7 +18,7 @@ $header-height: variables.$header-height;
|
|
|
18
18
|
&:focus:not(:active) {
|
|
19
19
|
outline:
|
|
20
20
|
var(--wpds-border-width-focus) solid
|
|
21
|
-
var(--wpds-color-stroke-focus
|
|
21
|
+
var(--wpds-color-stroke-focus);
|
|
22
22
|
outline-offset: calc(-1 * var(--wpds-border-width-focus));
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/style.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "@wordpress/theme/src/prebuilt/css/design-tokens.css" as *;
|
|
2
2
|
@use "@wordpress/base-styles/mixins" as *;
|
|
3
3
|
@use "@wordpress/base-styles/variables" as *;
|
|
4
|
-
@use "./experimental-
|
|
4
|
+
@use "./experimental-omnibar.scss" as *;
|
|
5
5
|
|
|
6
6
|
.boot-layout-container .boot-layout {
|
|
7
7
|
// On mobile the main content area has to scroll, otherwise you can invoke
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ThemeProvider as ThemeProviderType } from '@wordpress/theme';
|
|
2
|
-
declare const ThemeProvider: typeof ThemeProviderType;
|
|
3
|
-
export declare function getAdminThemePrimaryColor(): string | undefined;
|
|
4
|
-
export declare function UserThemeProvider({ color, ...restProps }: React.ComponentProps<typeof ThemeProvider>): import("react").JSX.Element;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/user-theme-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,IAAI,iBAAiB,EAEvC,MAAM,kBAAkB,CAAC;AAG1B,QAAA,MAAM,aAAa,EAAE,OAAO,iBACa,CAAC;AAa1C,wBAAgB,yBAAyB,IAAI,MAAM,GAAG,SAAS,CAK9D;AAED,wBAAgB,iBAAiB,CAAE,EAClC,KAAK,EACL,GAAG,SAAS,EACZ,EAAE,KAAK,CAAC,cAAc,CAAE,OAAO,aAAa,CAAE,+BAI9C"}
|
/package/build-style/{experimental-admin-bar-in-editor-rtl.css → experimental-omnibar-rtl.css}
RENAMED
|
File without changes
|
|
File without changes
|