@wordpress/boot 0.3.1-next.738bb1424.0 → 0.4.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/build-module/components/app/index.js +3 -3
- package/build-module/components/app/router.js +39 -42
- package/build-module/components/app/router.js.map +2 -2
- package/build-module/components/app/use-route-title.js +1 -1
- package/build-module/components/canvas/back-button.js +1 -1
- package/build-module/components/canvas/index.js +1 -1
- package/build-module/components/canvas-renderer/index.js +1 -1
- package/build-module/components/navigation/drilldown-item/index.js +1 -1
- package/build-module/components/navigation/dropdown-item/index.js +3 -3
- package/build-module/components/navigation/index.js +6 -6
- package/build-module/components/navigation/navigation-item/index.js +2 -2
- package/build-module/components/navigation/router-link-item.js +1 -1
- package/build-module/components/navigation/use-sidebar-parent.js +3 -3
- package/build-module/components/root/index.js +112 -102
- package/build-module/components/root/index.js.map +2 -2
- package/build-module/components/root/single-page.js +17 -11
- package/build-module/components/root/single-page.js.map +2 -2
- package/build-module/components/save-button/index.js +1 -1
- package/build-module/components/save-panel/index.js +1 -1
- package/build-module/components/sidebar/index.js +3 -3
- package/build-module/components/site-hub/index.js +10 -28
- package/build-module/components/site-hub/index.js.map +2 -2
- package/build-module/components/site-icon-link/index.js +2 -2
- package/build-module/index.js +62 -20
- package/build-module/index.js.map +2 -2
- package/build-module/store/index.js +3 -3
- package/build-style/style-rtl.css +59 -17
- package/build-style/style.css +59 -17
- package/build-types/components/app/router.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/site-hub/index.d.ts.map +1 -1
- package/package.json +22 -30
- package/src/components/app/router.tsx +51 -54
- package/src/components/root/index.tsx +46 -44
- package/src/components/root/single-page.tsx +19 -18
- package/src/components/root/style.scss +0 -1
- package/src/components/site-hub/index.tsx +1 -6
- package/src/components/site-hub/style.scss +6 -21
- package/src/style.scss +34 -19
- package/tsconfig.json +27 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/build-module/components/user-theme-provider/index.js +0 -33
- package/build-module/components/user-theme-provider/index.js.map +0 -7
- 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/src/components/user-theme-provider/index.tsx +0 -35
- package/src/components/user-theme-provider/test/index.test.ts +0 -11
|
@@ -17,15 +17,17 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.boot-site-hub__title {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
21
|
+
font-size: variables.$font-size-medium;
|
|
22
|
+
font-weight: variables.$font-weight-medium;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
white-space: nowrap;
|
|
22
26
|
text-decoration: none;
|
|
23
27
|
|
|
24
28
|
.components-external-link__contents {
|
|
25
29
|
text-decoration: none;
|
|
26
30
|
margin-inline-start: variables.$grid-unit-05;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
max-width: 140px;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
// Show icon on hover
|
|
@@ -50,20 +52,3 @@
|
|
|
50
52
|
outline-offset: calc(-1 * var(--wpds-border-width-interactive-focus, 2px));
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
.boot-site-hub__title-text {
|
|
55
|
-
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
56
|
-
font-size: variables.$font-size-medium;
|
|
57
|
-
font-weight: variables.$font-weight-medium;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
text-overflow: ellipsis;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.boot-site-hub__url {
|
|
64
|
-
color: var(--wpds-color-fg-content-neutral-weak, #757575);
|
|
65
|
-
font-size: variables.$font-size-small;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
text-overflow: ellipsis;
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
}
|
package/src/style.scss
CHANGED
|
@@ -1,32 +1,47 @@
|
|
|
1
1
|
@use "@wordpress/theme/src/prebuilt/css/design-tokens.css" as *;
|
|
2
2
|
@use "@wordpress/admin-ui/build-style/style.css" as *;
|
|
3
3
|
@use "@wordpress/base-styles/mixins" as *;
|
|
4
|
-
@use "@wordpress/base-styles/variables"
|
|
4
|
+
@use "@wordpress/base-styles/variables";
|
|
5
5
|
|
|
6
|
+
// Reset wp-admin layout styles when loaded inside wp-admin.
|
|
6
7
|
.boot-layout-container .boot-layout {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
height: calc(100vh - #{variables.$admin-bar-height});
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body:has(.boot-layout-container) {
|
|
12
|
+
background: #1d2327; // Same as WP-Admin sidebar
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
@include wp-admin-reset( ".boot-layout-container" );
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#wpcontent {
|
|
18
|
+
padding-left: 0;
|
|
19
|
+
}
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
#wpbody-content {
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#wpfooter {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body:has(.boot-layout.has-full-canvas) {
|
|
19
30
|
@include break-medium {
|
|
20
|
-
|
|
31
|
+
// Reset the html.wp-topbar padding.
|
|
32
|
+
// Because this uses negative margins, we have to compensate for the height.
|
|
33
|
+
margin-top: - variables.$admin-bar-height;
|
|
34
|
+
height: calc(100% + #{ variables.$admin-bar-height });
|
|
21
35
|
|
|
22
|
-
|
|
23
|
-
|
|
36
|
+
#adminmenumain,
|
|
37
|
+
#wpadminbar {
|
|
38
|
+
display: none;
|
|
24
39
|
}
|
|
25
|
-
}
|
|
26
40
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
#wpcontent,
|
|
42
|
+
#wpfooter {
|
|
43
|
+
margin-left: 0;
|
|
44
|
+
}
|
|
30
45
|
}
|
|
31
46
|
}
|
|
32
47
|
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
3
|
+
"extends": "../../tsconfig.base.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"checkJs": false
|
|
6
|
+
},
|
|
7
|
+
"references": [
|
|
8
|
+
{ "path": "../a11y" },
|
|
9
|
+
{ "path": "../admin-ui" },
|
|
10
|
+
{ "path": "../components" },
|
|
11
|
+
{ "path": "../compose" },
|
|
12
|
+
{ "path": "../core-data" },
|
|
13
|
+
{ "path": "../data" },
|
|
14
|
+
{ "path": "../editor" },
|
|
15
|
+
{ "path": "../element" },
|
|
16
|
+
{ "path": "../html-entities" },
|
|
17
|
+
{ "path": "../i18n" },
|
|
18
|
+
{ "path": "../icons" },
|
|
19
|
+
{ "path": "../keycodes" },
|
|
20
|
+
{ "path": "../lazy-editor" },
|
|
21
|
+
{ "path": "../primitives" },
|
|
22
|
+
{ "path": "../private-apis" },
|
|
23
|
+
{ "path": "../route" },
|
|
24
|
+
{ "path": "../theme" },
|
|
25
|
+
{ "path": "../url" }
|
|
26
|
+
]
|
|
27
|
+
}
|