@wordpress/boot 0.16.1 → 0.17.1-next.v.202607070741.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-module/components/canvas/back-button.mjs +17 -62
- package/build-module/components/canvas/back-button.mjs.map +2 -2
- package/build-module/components/root/index.mjs +6 -3
- package/build-module/components/root/index.mjs.map +2 -2
- package/build-module/components/root/single-page.mjs +6 -3
- package/build-module/components/root/single-page.mjs.map +2 -2
- package/build-module/components/root/use-sync-body-background.mjs +26 -0
- package/build-module/components/root/use-sync-body-background.mjs.map +7 -0
- package/build-module/components/sidebar/index.mjs +4 -6
- package/build-module/components/sidebar/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 +19 -51
- package/build-style/style.css +19 -51
- package/build-style/view-transitions-rtl.css +0 -13
- package/build-style/view-transitions.css +0 -13
- package/build-types/components/canvas/back-button.d.ts +4 -7
- package/build-types/components/canvas/back-button.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/root/use-sync-body-background.d.ts +13 -0
- package/build-types/components/root/use-sync-body-background.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +0 -5
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/package.json +25 -25
- package/src/components/canvas/back-button.scss +0 -8
- package/src/components/canvas/back-button.tsx +9 -67
- package/src/components/root/index.tsx +4 -0
- package/src/components/root/single-page.tsx +4 -0
- package/src/components/root/style.scss +15 -1
- package/src/components/root/use-sync-body-background.ts +41 -0
- package/src/components/sidebar/index.tsx +1 -9
- package/src/components/sidebar/style.scss +1 -1
- package/src/style.scss +0 -1
- package/src/view-transitions.scss +0 -18
- package/build-module/components/site-hub/index.mjs +0 -78
- package/build-module/components/site-hub/index.mjs.map +0 -7
- package/build-module/components/site-icon/index.mjs +0 -57
- package/build-module/components/site-icon/index.mjs.map +0 -7
- package/build-module/components/site-icon-link/index.mjs +0 -53
- package/build-module/components/site-icon-link/index.mjs.map +0 -7
- package/build-style/experimental-omnibar-rtl.css +0 -37
- package/build-style/experimental-omnibar.css +0 -37
- package/build-types/components/site-hub/index.d.ts +0 -4
- package/build-types/components/site-hub/index.d.ts.map +0 -1
- package/build-types/components/site-icon/index.d.ts +0 -9
- package/build-types/components/site-icon/index.d.ts.map +0 -1
- package/build-types/components/site-icon-link/index.d.ts +0 -8
- package/build-types/components/site-icon-link/index.d.ts.map +0 -1
- package/src/components/site-hub/index.tsx +0 -77
- package/src/components/site-hub/style.scss +0 -69
- package/src/components/site-icon/index.tsx +0 -60
- package/src/components/site-icon/style.scss +0 -19
- package/src/components/site-icon-link/index.tsx +0 -57
- package/src/components/site-icon-link/style.scss +0 -24
- package/src/experimental-omnibar.scss +0 -48
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/style.scss", "../src/view-transitions.scss", "../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && !document.head.querySelector(\"style[data-wp-hash='7b8d694406']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"7b8d694406\");\n\tstyle.appendChild(document.createTextNode(\":root{--wpds-border-radius-xs:1px;--wpds-border-radius-sm:2px;--wpds-border-radius-md:4px;--wpds-border-radius-lg:8px;--wpds-border-radius-xl:12px;--wpds-border-width-xs:1px;--wpds-border-width-sm:2px;--wpds-border-width-md:4px;--wpds-border-width-lg:8px;--wpds-border-width-focus:2px;--wpds-color-background-surface-neutral:#fcfcfc;--wpds-color-background-surface-neutral-strong:#fff;--wpds-color-background-surface-neutral-weak:#f4f4f4;--wpds-color-background-surface-brand:#ecf0fa;--wpds-color-background-surface-success:#c6f7cd;--wpds-color-background-surface-success-weak:#ebffed;--wpds-color-background-surface-info:#deebfa;--wpds-color-background-surface-info-weak:#f3f9ff;--wpds-color-background-surface-warning:#fde6be;--wpds-color-background-surface-warning-weak:#fff7e1;--wpds-color-background-surface-caution:#fee995;--wpds-color-background-surface-caution-weak:#fff9ca;--wpds-color-background-surface-error:#f6e6e3;--wpds-color-background-surface-error-weak:#fff6f5;--wpds-color-background-interactive-neutral-strong:#2d2d2d;--wpds-color-background-interactive-neutral-strong-active:#1e1e1e;--wpds-color-background-interactive-neutral-strong-disabled:#e6e6e6;--wpds-color-background-interactive-neutral-weak:#0000;--wpds-color-background-interactive-neutral-weak-active:#ededed;--wpds-color-background-interactive-neutral-weak-disabled:#0000;--wpds-color-background-interactive-brand-strong:#3858e9;--wpds-color-background-interactive-brand-strong-active:#2e49d9;--wpds-color-background-interactive-brand-strong-disabled:#e6e6e6;--wpds-color-background-interactive-brand-weak:#0000;--wpds-color-background-interactive-brand-weak-active:#e6eaf4;--wpds-color-background-interactive-brand-weak-disabled:#0000;--wpds-color-background-interactive-error:#0000;--wpds-color-background-interactive-error-active:#fff6f5;--wpds-color-background-interactive-error-disabled:#0000;--wpds-color-background-interactive-error-strong:#cc1818;--wpds-color-background-interactive-error-strong-active:#b90000;--wpds-color-background-interactive-error-strong-disabled:#e6e6e6;--wpds-color-background-interactive-error-weak:#0000;--wpds-color-background-interactive-error-weak-active:#f6e6e3;--wpds-color-background-interactive-error-weak-disabled:#0000;--wpds-color-background-track-neutral-weak:#f0f0f0;--wpds-color-background-track-neutral:#dbdbdb;--wpds-color-background-thumb-neutral-weak:#8d8d8d;--wpds-color-background-thumb-neutral-weak-active:#6e6e6e;--wpds-color-background-thumb-brand:#3858e9;--wpds-color-background-thumb-brand-active:#3858e9;--wpds-color-background-thumb-neutral-disabled:#dbdbdb;--wpds-color-foreground-content-neutral:#1e1e1e;--wpds-color-foreground-content-neutral-weak:#707070;--wpds-color-foreground-content-success:#002900;--wpds-color-foreground-content-success-weak:#008030;--wpds-color-foreground-content-info:#001b4f;--wpds-color-foreground-content-info-weak:#006bd7;--wpds-color-foreground-content-warning:#2e1900;--wpds-color-foreground-content-warning-weak:#926300;--wpds-color-foreground-content-caution:#281d00;--wpds-color-foreground-content-caution-weak:#826a00;--wpds-color-foreground-content-error:#470000;--wpds-color-foreground-content-error-weak:#cc1818;--wpds-color-foreground-interactive-neutral:#1e1e1e;--wpds-color-foreground-interactive-neutral-active:#1e1e1e;--wpds-color-foreground-interactive-neutral-disabled:#8d8d8d;--wpds-color-foreground-interactive-neutral-strong:#f0f0f0;--wpds-color-foreground-interactive-neutral-strong-active:#f0f0f0;--wpds-color-foreground-interactive-neutral-strong-disabled:#8d8d8d;--wpds-color-foreground-interactive-neutral-weak:#707070;--wpds-color-foreground-interactive-neutral-weak-disabled:#8d8d8d;--wpds-color-foreground-interactive-brand:#3858e9;--wpds-color-foreground-interactive-brand-active:#0b0070;--wpds-color-foreground-interactive-brand-disabled:#8d8d8d;--wpds-color-foreground-interactive-brand-strong:#eff0f2;--wpds-color-foreground-interactive-brand-strong-active:#eff0f2;--wpds-color-foreground-interactive-brand-strong-disabled:#8d8d8d;--wpds-color-foreground-interactive-error:#cc1818;--wpds-color-foreground-interactive-error-active:#470000;--wpds-color-foreground-interactive-error-disabled:#8d8d8d;--wpds-color-foreground-interactive-error-strong:#f2efef;--wpds-color-foreground-interactive-error-strong-active:#f2efef;--wpds-color-foreground-interactive-error-strong-disabled:#8d8d8d;--wpds-color-stroke-surface-neutral:#dbdbdb;--wpds-color-stroke-surface-neutral-weak:#f0f0f0;--wpds-color-stroke-surface-neutral-strong:#8d8d8d;--wpds-color-stroke-surface-brand:#b0bbd6;--wpds-color-stroke-surface-brand-strong:#3858e9;--wpds-color-stroke-surface-success:#94d29e;--wpds-color-stroke-surface-success-strong:#008030;--wpds-color-stroke-surface-info:#a9c6e7;--wpds-color-stroke-surface-info-strong:#006bd7;--wpds-color-stroke-surface-warning:#e1bc7c;--wpds-color-stroke-surface-warning-strong:#926300;--wpds-color-stroke-surface-caution:#cfc28d;--wpds-color-stroke-surface-caution-strong:#826a00;--wpds-color-stroke-surface-error:#dab1aa;--wpds-color-stroke-surface-error-strong:#cc1818;--wpds-color-stroke-interactive-neutral:#8d8d8d;--wpds-color-stroke-interactive-neutral-active:#6e6e6e;--wpds-color-stroke-interactive-neutral-disabled:#dbdbdb;--wpds-color-stroke-interactive-neutral-strong:#6e6e6e;--wpds-color-stroke-interactive-brand:#3858e9;--wpds-color-stroke-interactive-brand-active:#2337c8;--wpds-color-stroke-interactive-brand-disabled:#dbdbdb;--wpds-color-stroke-interactive-error:#cc1818;--wpds-color-stroke-interactive-error-active:#9d0000;--wpds-color-stroke-interactive-error-disabled:#dbdbdb;--wpds-color-stroke-interactive-error-strong:#cc1818;--wpds-color-stroke-focus:#3858e9;--wpds-cursor-control:pointer;--wpds-dimension-padding-xs:4px;--wpds-dimension-padding-sm:8px;--wpds-dimension-padding-md:12px;--wpds-dimension-padding-lg:16px;--wpds-dimension-padding-xl:20px;--wpds-dimension-padding-2xl:24px;--wpds-dimension-padding-3xl:32px;--wpds-dimension-gap-xs:4px;--wpds-dimension-gap-sm:8px;--wpds-dimension-gap-md:12px;--wpds-dimension-gap-lg:16px;--wpds-dimension-gap-xl:24px;--wpds-dimension-gap-2xl:32px;--wpds-dimension-gap-3xl:40px;--wpds-dimension-size-5xs:4px;--wpds-dimension-size-4xs:8px;--wpds-dimension-size-3xs:12px;--wpds-dimension-size-2xs:16px;--wpds-dimension-size-xs:20px;--wpds-dimension-size-sm:24px;--wpds-dimension-size-md:32px;--wpds-dimension-size-lg:40px;--wpds-dimension-surface-width-xs:240px;--wpds-dimension-surface-width-sm:320px;--wpds-dimension-surface-width-md:400px;--wpds-dimension-surface-width-lg:560px;--wpds-dimension-surface-width-xl:720px;--wpds-dimension-surface-width-2xl:960px;--wpds-elevation-xs:0 1px 1px 0 #00000008,0 1px 2px 0 #00000005,0 3px 3px 0 #00000005,0 4px 4px 0 #00000003;--wpds-elevation-sm:0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005;--wpds-elevation-md:0 2px 3px 0 #0000000d,0 4px 5px 0 #0000000a,0 12px 12px 0 #00000008,0 16px 16px 0 #00000005;--wpds-elevation-lg:0 5px 15px 0 #00000014,0 15px 27px 0 #00000012,0 30px 36px 0 #0000000a,0 50px 43px 0 #00000005;--wpds-motion-duration-xs:50ms;--wpds-motion-duration-sm:100ms;--wpds-motion-duration-md:200ms;--wpds-motion-duration-lg:300ms;--wpds-motion-duration-xl:400ms;--wpds-motion-easing-subtle:cubic-bezier(0.15,0,0.15,1);--wpds-motion-easing-balanced:cubic-bezier(0.4,0,0.2,1);--wpds-motion-easing-expressive:cubic-bezier(0.25,0,0,1);--wpds-typography-font-family-heading:-apple-system,system-ui,\\\"Segoe UI\\\",\\\"Roboto\\\",\\\"Oxygen-Sans\\\",\\\"Ubuntu\\\",\\\"Cantarell\\\",\\\"Helvetica Neue\\\",sans-serif;--wpds-typography-font-family-body:-apple-system,system-ui,\\\"Segoe UI\\\",\\\"Roboto\\\",\\\"Oxygen-Sans\\\",\\\"Ubuntu\\\",\\\"Cantarell\\\",\\\"Helvetica Neue\\\",sans-serif;--wpds-typography-font-family-mono:\\\"Menlo\\\",\\\"Consolas\\\",monaco,monospace;--wpds-typography-font-size-xs:11px;--wpds-typography-font-size-sm:12px;--wpds-typography-font-size-md:13px;--wpds-typography-font-size-lg:15px;--wpds-typography-font-size-xl:20px;--wpds-typography-font-size-2xl:32px;--wpds-typography-line-height-xs:16px;--wpds-typography-line-height-sm:20px;--wpds-typography-line-height-md:24px;--wpds-typography-line-height-lg:28px;--wpds-typography-line-height-xl:32px;--wpds-typography-line-height-2xl:40px;--wpds-typography-font-weight-regular:400;--wpds-typography-font-weight-medium:499}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wpds-border-width-focus:1.5px}}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=none]),[data-wpds-corner-radius=none]{--wpds-border-radius-xs:0;--wpds-border-radius-sm:0;--wpds-border-radius-md:0;--wpds-border-radius-lg:0;--wpds-border-radius-xl:0}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=subtle]),[data-wpds-corner-radius=subtle]{--wpds-border-radius-xs:1px;--wpds-border-radius-sm:2px;--wpds-border-radius-md:4px;--wpds-border-radius-lg:8px;--wpds-border-radius-xl:12px}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=moderate]),[data-wpds-corner-radius=moderate]{--wpds-border-radius-xs:6px;--wpds-border-radius-sm:8px;--wpds-border-radius-md:12px;--wpds-border-radius-lg:16px;--wpds-border-radius-xl:20px}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=pronounced]),[data-wpds-corner-radius=pronounced]{--wpds-border-radius-xs:18px;--wpds-border-radius-sm:20px;--wpds-border-radius-md:22px;--wpds-border-radius-lg:24px;--wpds-border-radius-xl:26px}body.has-admin-bar-in-editor #wpadminbar{display:block}body.has-admin-bar-in-editor .boot-canvas-back-button__link{background:transparent}body.has-admin-bar-in-editor .boot-canvas-back-button__icon{background-color:transparent}body.has-admin-bar-in-editor #site-editor-v2-app{bottom:0;height:calc(100vh - 32px)!important;left:0;position:fixed;right:0;top:32px}body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas{height:calc(100vh - 32px);top:32px}@media (max-width:782px){body.has-admin-bar-in-editor #site-editor-v2-app{height:calc(100vh - 46px)!important;top:46px}body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas,body.has-admin-bar-in-editor .boot-layout__canvas:not(.has-mobile-drawer),body.has-admin-bar-in-editor .boot-layout__inspector,body.has-admin-bar-in-editor .boot-layout__stage{height:calc(100vh - 46px);top:46px}body.has-admin-bar-in-editor .boot-layout__mobile-sidebar-drawer{top:46px}}@media (min-width:600px){.boot-layout-container .boot-layout{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.boot-layout-container .boot-layout{min-height:calc(100vh - 32px)}body:has(.boot-layout.has-full-canvas) .boot-layout-container .boot-layout{min-height:100vh}}.boot-layout-container .boot-layout img{height:auto;max-width:100%}.boot-layout .boot-notices__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.boot-layout .boot-notices__snackbar .components-snackbar{margin-inline:auto}\"));\n\tdocument.head.appendChild(style);\n}\n", "if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && !document.head.querySelector(\"style[data-wp-hash='e529861242']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"e529861242\");\n\tstyle.appendChild(document.createTextNode(\"@media (max-width:782px){*{view-transition-name:none!important}}::view-transition-new(root),::view-transition-old(root){animation-duration:.25s}@media not (prefers-reduced-motion:reduce){.boot-layout__canvas .interface-interface-skeleton__header{view-transition-name:boot--canvas-header}.boot-layout__canvas .interface-interface-skeleton__sidebar{view-transition-name:boot--canvas-sidebar}.boot-layout.has-full-canvas .boot-layout__canvas .boot-site-icon-link,.boot-layout:not(.has-full-canvas) .boot-site-hub .boot-site-icon-link{view-transition-name:boot--site-icon-link}.boot-layout__stage{view-transition-name:boot--stage}.boot-layout__inspector{view-transition-name:boot--inspector}.boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content,.boot-layout__canvas:not(.is-full-canvas){view-transition-name:boot--canvas}@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.boot-layout__stage{view-transition-name:boot-safari--stage}.boot-layout__inspector{view-transition-name:boot-safari--inspector}.boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content,.boot-layout__canvas:not(.is-full-canvas){view-transition-name:boot-safari--canvas}}.components-popover:first-of-type{view-transition-name:boot--components-popover}}::view-transition-group(boot--canvas),::view-transition-group(boot--canvas-header),::view-transition-group(boot--canvas-sidebar),::view-transition-group(boot-safari--canvas){z-index:1}::view-transition-group(boot--site-icon-link){z-index:2}::view-transition-new(boot--site-icon-link),::view-transition-old(boot--site-icon-link){animation:none}::view-transition-new(boot-safari--canvas),::view-transition-new(boot-safari--inspector),::view-transition-new(boot-safari--stage),::view-transition-old(boot-safari--canvas),::view-transition-old(boot-safari--inspector),::view-transition-old(boot-safari--stage){width:auto}::view-transition-new(boot--canvas),::view-transition-new(boot--inspector),::view-transition-new(boot--stage),::view-transition-old(boot--canvas),::view-transition-old(boot--inspector),::view-transition-old(boot--stage){background:#fff;border-radius:var(--wpds-border-radius-xl,12px);height:100%;object-fit:none;object-position:left top;overflow:hidden;width:100%}::view-transition-new(boot--canvas),::view-transition-old(boot--canvas){object-position:center top}::view-transition-old(boot--inspector):only-child,::view-transition-old(boot--stage):only-child,::view-transition-old(boot-safari--inspector):only-child,::view-transition-old(boot-safari--stage):only-child{animation-name:zoomOut;will-change:transform,opacity}::view-transition-new(boot--inspector):only-child,::view-transition-new(boot--stage):only-child,::view-transition-new(boot-safari--inspector):only-child,::view-transition-new(boot-safari--stage):only-child{animation-name:zoomIn;will-change:transform,opacity}@keyframes zoomOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}@keyframes zoomIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}::view-transition-new(boot--canvas):only-child,::view-transition-new(boot-safari--canvas):only-child{animation-name:slideFromRight;will-change:transform}::view-transition-old(boot--canvas):only-child,::view-transition-old(boot-safari--canvas):only-child{animation-name:slideToRight;will-change:transform}@keyframes slideFromRight{0%{transform:translateX(100vw)}to{transform:translateX(0)}}@keyframes slideToRight{0%{transform:translateX(0)}to{transform:translateX(100vw)}}::view-transition-new(boot--canvas-header):only-child{animation-name:slideHeaderFromTop;will-change:transform}::view-transition-old(boot--canvas-header):only-child{animation-name:slideHeaderToTop;will-change:transform}@keyframes slideHeaderFromTop{0%{transform:translateY(-100%)}}@keyframes slideHeaderToTop{to{transform:translateY(-100%)}}::view-transition-new(boot--canvas-sidebar):only-child{animation-name:slideSidebarFromRight;will-change:transform}::view-transition-old(boot--canvas-sidebar):only-child{animation-name:slideSidebarToRight;will-change:transform}@keyframes slideSidebarFromRight{0%{transform:translateX(100%)}}@keyframes slideSidebarToRight{to{transform:translateX(100%)}}\"));\n\tdocument.head.appendChild(style);\n}\n", "/**\n * Internal dependencies\n */\nimport './style.scss';\nimport './view-transitions.scss';\nexport { init, initSinglePage } from './components/app';\nexport { store } from './store';\n"],
|
|
5
|
-
"mappings": ";AAAA,IAAI,OAAO,aAAa,eAAe,QAAQ,IAAI,aAAa,UAAU,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AAC3I,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,
|
|
4
|
+
"sourcesContent": ["if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && !document.head.querySelector(\"style[data-wp-hash='1286bb39c8']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"1286bb39c8\");\n\tstyle.appendChild(document.createTextNode(\":root{--wpds-border-radius-xs:1px;--wpds-border-radius-sm:2px;--wpds-border-radius-md:4px;--wpds-border-radius-lg:8px;--wpds-border-radius-xl:12px;--wpds-border-width-xs:1px;--wpds-border-width-sm:2px;--wpds-border-width-md:4px;--wpds-border-width-lg:8px;--wpds-border-width-focus:2px;--wpds-color-background-surface-neutral:#fcfcfc;--wpds-color-background-surface-neutral-strong:#fff;--wpds-color-background-surface-neutral-weak:#f4f4f4;--wpds-color-background-surface-brand:#ecf0fa;--wpds-color-background-surface-success:#c6f7cd;--wpds-color-background-surface-success-weak:#ebffed;--wpds-color-background-surface-info:#deebfa;--wpds-color-background-surface-info-weak:#f3f9ff;--wpds-color-background-surface-warning:#fde6be;--wpds-color-background-surface-warning-weak:#fff7e1;--wpds-color-background-surface-caution:#fee995;--wpds-color-background-surface-caution-weak:#fff9ca;--wpds-color-background-surface-error:#f6e6e3;--wpds-color-background-surface-error-weak:#fff6f5;--wpds-color-background-interactive-neutral-strong:#2d2d2d;--wpds-color-background-interactive-neutral-strong-active:#1e1e1e;--wpds-color-background-interactive-neutral-strong-disabled:#e6e6e6;--wpds-color-background-interactive-neutral-weak:#0000;--wpds-color-background-interactive-neutral-weak-active:#ededed;--wpds-color-background-interactive-neutral-weak-disabled:#0000;--wpds-color-background-interactive-brand-strong:#3858e9;--wpds-color-background-interactive-brand-strong-active:#2e49d9;--wpds-color-background-interactive-brand-strong-disabled:#e6e6e6;--wpds-color-background-interactive-brand-weak:#0000;--wpds-color-background-interactive-brand-weak-active:#e6eaf4;--wpds-color-background-interactive-brand-weak-disabled:#0000;--wpds-color-background-interactive-error:#0000;--wpds-color-background-interactive-error-active:#fff6f5;--wpds-color-background-interactive-error-disabled:#0000;--wpds-color-background-interactive-error-strong:#cc1818;--wpds-color-background-interactive-error-strong-active:#b90000;--wpds-color-background-interactive-error-strong-disabled:#e6e6e6;--wpds-color-background-interactive-error-weak:#0000;--wpds-color-background-interactive-error-weak-active:#f6e6e3;--wpds-color-background-interactive-error-weak-disabled:#0000;--wpds-color-background-track-neutral-weak:#f0f0f0;--wpds-color-background-track-neutral:#dbdbdb;--wpds-color-background-thumb-neutral-weak:#8d8d8d;--wpds-color-background-thumb-neutral-weak-active:#6e6e6e;--wpds-color-background-thumb-brand:#3858e9;--wpds-color-background-thumb-brand-active:#3858e9;--wpds-color-background-thumb-neutral-disabled:#dbdbdb;--wpds-color-foreground-content-neutral:#1e1e1e;--wpds-color-foreground-content-neutral-weak:#707070;--wpds-color-foreground-content-success:#002900;--wpds-color-foreground-content-success-weak:#008030;--wpds-color-foreground-content-info:#001b4f;--wpds-color-foreground-content-info-weak:#006bd7;--wpds-color-foreground-content-warning:#2e1900;--wpds-color-foreground-content-warning-weak:#926300;--wpds-color-foreground-content-caution:#281d00;--wpds-color-foreground-content-caution-weak:#826a00;--wpds-color-foreground-content-error:#470000;--wpds-color-foreground-content-error-weak:#cc1818;--wpds-color-foreground-interactive-neutral:#1e1e1e;--wpds-color-foreground-interactive-neutral-active:#1e1e1e;--wpds-color-foreground-interactive-neutral-disabled:#8d8d8d;--wpds-color-foreground-interactive-neutral-strong:#f0f0f0;--wpds-color-foreground-interactive-neutral-strong-active:#f0f0f0;--wpds-color-foreground-interactive-neutral-strong-disabled:#8d8d8d;--wpds-color-foreground-interactive-neutral-weak:#707070;--wpds-color-foreground-interactive-neutral-weak-disabled:#8d8d8d;--wpds-color-foreground-interactive-brand:#3858e9;--wpds-color-foreground-interactive-brand-active:#0b0070;--wpds-color-foreground-interactive-brand-disabled:#8d8d8d;--wpds-color-foreground-interactive-brand-strong:#eff0f2;--wpds-color-foreground-interactive-brand-strong-active:#eff0f2;--wpds-color-foreground-interactive-brand-strong-disabled:#8d8d8d;--wpds-color-foreground-interactive-error:#cc1818;--wpds-color-foreground-interactive-error-active:#470000;--wpds-color-foreground-interactive-error-disabled:#8d8d8d;--wpds-color-foreground-interactive-error-strong:#f2efef;--wpds-color-foreground-interactive-error-strong-active:#f2efef;--wpds-color-foreground-interactive-error-strong-disabled:#8d8d8d;--wpds-color-stroke-surface-neutral:#dbdbdb;--wpds-color-stroke-surface-neutral-weak:#f0f0f0;--wpds-color-stroke-surface-neutral-strong:#8d8d8d;--wpds-color-stroke-surface-brand:#b0bbd6;--wpds-color-stroke-surface-brand-strong:#3858e9;--wpds-color-stroke-surface-success:#94d29e;--wpds-color-stroke-surface-success-strong:#008030;--wpds-color-stroke-surface-info:#a9c6e7;--wpds-color-stroke-surface-info-strong:#006bd7;--wpds-color-stroke-surface-warning:#e1bc7c;--wpds-color-stroke-surface-warning-strong:#926300;--wpds-color-stroke-surface-caution:#cfc28d;--wpds-color-stroke-surface-caution-strong:#826a00;--wpds-color-stroke-surface-error:#dab1aa;--wpds-color-stroke-surface-error-strong:#cc1818;--wpds-color-stroke-interactive-neutral:#8d8d8d;--wpds-color-stroke-interactive-neutral-active:#6e6e6e;--wpds-color-stroke-interactive-neutral-disabled:#dbdbdb;--wpds-color-stroke-interactive-neutral-strong:#6e6e6e;--wpds-color-stroke-interactive-brand:#3858e9;--wpds-color-stroke-interactive-brand-active:#2337c8;--wpds-color-stroke-interactive-brand-disabled:#dbdbdb;--wpds-color-stroke-interactive-error:#cc1818;--wpds-color-stroke-interactive-error-active:#9d0000;--wpds-color-stroke-interactive-error-disabled:#dbdbdb;--wpds-color-stroke-interactive-error-strong:#cc1818;--wpds-color-stroke-focus:#3858e9;--wpds-cursor-control:pointer;--wpds-dimension-padding-xs:4px;--wpds-dimension-padding-sm:8px;--wpds-dimension-padding-md:12px;--wpds-dimension-padding-lg:16px;--wpds-dimension-padding-xl:20px;--wpds-dimension-padding-2xl:24px;--wpds-dimension-padding-3xl:32px;--wpds-dimension-gap-xs:4px;--wpds-dimension-gap-sm:8px;--wpds-dimension-gap-md:12px;--wpds-dimension-gap-lg:16px;--wpds-dimension-gap-xl:24px;--wpds-dimension-gap-2xl:32px;--wpds-dimension-gap-3xl:40px;--wpds-dimension-size-5xs:4px;--wpds-dimension-size-4xs:8px;--wpds-dimension-size-3xs:12px;--wpds-dimension-size-2xs:16px;--wpds-dimension-size-xs:20px;--wpds-dimension-size-sm:24px;--wpds-dimension-size-md:32px;--wpds-dimension-size-lg:40px;--wpds-dimension-surface-width-xs:240px;--wpds-dimension-surface-width-sm:320px;--wpds-dimension-surface-width-md:400px;--wpds-dimension-surface-width-lg:560px;--wpds-dimension-surface-width-xl:720px;--wpds-dimension-surface-width-2xl:960px;--wpds-elevation-xs:0px 1px 1px 0px #00000008,0px 1px 2px 0px #00000005,0px 3px 3px 0px #00000005,0px 4px 4px 0px #00000003;--wpds-elevation-sm:0px 1px 2px 0px #0000000d,0px 2px 3px 0px #0000000a,0px 6px 6px 0px #00000008,0px 8px 8px 0px #00000005;--wpds-elevation-md:0px 2px 3px 0px #0000000d,0px 4px 5px 0px #0000000a,0px 12px 12px 0px #00000008,0px 16px 16px 0px #00000005;--wpds-elevation-lg:0px 5px 15px 0px #00000014,0px 15px 27px 0px #00000012,0px 30px 36px 0px #0000000a,0px 50px 43px 0px #00000005;--wpds-motion-duration-xs:50ms;--wpds-motion-duration-sm:100ms;--wpds-motion-duration-md:200ms;--wpds-motion-duration-lg:300ms;--wpds-motion-duration-xl:400ms;--wpds-motion-easing-subtle:cubic-bezier(0.15,0,0.15,1);--wpds-motion-easing-balanced:cubic-bezier(0.4,0,0.2,1);--wpds-motion-easing-expressive:cubic-bezier(0.25,0,0,1);--wpds-typography-font-family-heading:-apple-system,system-ui,\\\"Segoe UI\\\",\\\"Roboto\\\",\\\"Oxygen-Sans\\\",\\\"Ubuntu\\\",\\\"Cantarell\\\",\\\"Helvetica Neue\\\",sans-serif;--wpds-typography-font-family-body:-apple-system,system-ui,\\\"Segoe UI\\\",\\\"Roboto\\\",\\\"Oxygen-Sans\\\",\\\"Ubuntu\\\",\\\"Cantarell\\\",\\\"Helvetica Neue\\\",sans-serif;--wpds-typography-font-family-mono:\\\"Menlo\\\",\\\"Consolas\\\",monaco,monospace;--wpds-typography-font-size-xs:11px;--wpds-typography-font-size-sm:12px;--wpds-typography-font-size-md:13px;--wpds-typography-font-size-lg:15px;--wpds-typography-font-size-xl:20px;--wpds-typography-font-size-2xl:32px;--wpds-typography-line-height-xs:16px;--wpds-typography-line-height-sm:20px;--wpds-typography-line-height-md:24px;--wpds-typography-line-height-lg:28px;--wpds-typography-line-height-xl:32px;--wpds-typography-line-height-2xl:40px;--wpds-typography-font-weight-regular:400;--wpds-typography-font-weight-medium:499}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wpds-border-width-focus:1.5px}}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=none]),[data-wpds-corner-radius=none]{--wpds-border-radius-xs:0px;--wpds-border-radius-sm:0px;--wpds-border-radius-md:0px;--wpds-border-radius-lg:0px;--wpds-border-radius-xl:0px}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=subtle]),[data-wpds-corner-radius=subtle]{--wpds-border-radius-xs:1px;--wpds-border-radius-sm:2px;--wpds-border-radius-md:4px;--wpds-border-radius-lg:8px;--wpds-border-radius-xl:12px}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=moderate]),[data-wpds-corner-radius=moderate]{--wpds-border-radius-xs:6px;--wpds-border-radius-sm:8px;--wpds-border-radius-md:12px;--wpds-border-radius-lg:16px;--wpds-border-radius-xl:20px}:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=pronounced]),[data-wpds-corner-radius=pronounced]{--wpds-border-radius-xs:18px;--wpds-border-radius-sm:20px;--wpds-border-radius-md:22px;--wpds-border-radius-lg:24px;--wpds-border-radius-xl:26px}@media (min-width:600px){.boot-layout-container .boot-layout{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.boot-layout-container .boot-layout{min-height:calc(100vh - 32px)}body:has(.boot-layout.has-full-canvas) .boot-layout-container .boot-layout{min-height:100vh}}.boot-layout-container .boot-layout img{height:auto;max-width:100%}.boot-layout .boot-notices__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.boot-layout .boot-notices__snackbar .components-snackbar{margin-inline:auto}\"));\n\tdocument.head.appendChild(style);\n}\n", "if (typeof document !== 'undefined' && process.env.NODE_ENV !== 'test' && !document.head.querySelector(\"style[data-wp-hash='28f077581a']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"28f077581a\");\n\tstyle.appendChild(document.createTextNode(\"@media (max-width:782px){*{view-transition-name:none!important}}::view-transition-new(root),::view-transition-old(root){animation-duration:.25s}@media not (prefers-reduced-motion:reduce){.boot-layout__canvas .interface-interface-skeleton__header{view-transition-name:boot--canvas-header}.boot-layout__canvas .interface-interface-skeleton__sidebar{view-transition-name:boot--canvas-sidebar}.boot-layout__stage{view-transition-name:boot--stage}.boot-layout__inspector{view-transition-name:boot--inspector}.boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content,.boot-layout__canvas:not(.is-full-canvas){view-transition-name:boot--canvas}@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.boot-layout__stage{view-transition-name:boot-safari--stage}.boot-layout__inspector{view-transition-name:boot-safari--inspector}.boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content,.boot-layout__canvas:not(.is-full-canvas){view-transition-name:boot-safari--canvas}}.components-popover:first-of-type{view-transition-name:boot--components-popover}}::view-transition-group(boot--canvas),::view-transition-group(boot--canvas-header),::view-transition-group(boot--canvas-sidebar),::view-transition-group(boot-safari--canvas){z-index:1}::view-transition-new(boot-safari--canvas),::view-transition-new(boot-safari--inspector),::view-transition-new(boot-safari--stage),::view-transition-old(boot-safari--canvas),::view-transition-old(boot-safari--inspector),::view-transition-old(boot-safari--stage){width:auto}::view-transition-new(boot--canvas),::view-transition-new(boot--inspector),::view-transition-new(boot--stage),::view-transition-old(boot--canvas),::view-transition-old(boot--inspector),::view-transition-old(boot--stage){background:#fff;border-radius:var(--wpds-border-radius-xl,12px);height:100%;object-fit:none;object-position:left top;overflow:hidden;width:100%}::view-transition-new(boot--canvas),::view-transition-old(boot--canvas){object-position:center top}::view-transition-old(boot--inspector):only-child,::view-transition-old(boot--stage):only-child,::view-transition-old(boot-safari--inspector):only-child,::view-transition-old(boot-safari--stage):only-child{animation-name:zoomOut;will-change:transform,opacity}::view-transition-new(boot--inspector):only-child,::view-transition-new(boot--stage):only-child,::view-transition-new(boot-safari--inspector):only-child,::view-transition-new(boot-safari--stage):only-child{animation-name:zoomIn;will-change:transform,opacity}@keyframes zoomOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}@keyframes zoomIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}::view-transition-new(boot--canvas):only-child,::view-transition-new(boot-safari--canvas):only-child{animation-name:slideFromRight;will-change:transform}::view-transition-old(boot--canvas):only-child,::view-transition-old(boot-safari--canvas):only-child{animation-name:slideToRight;will-change:transform}@keyframes slideFromRight{0%{transform:translateX(100vw)}to{transform:translateX(0)}}@keyframes slideToRight{0%{transform:translateX(0)}to{transform:translateX(100vw)}}::view-transition-new(boot--canvas-header):only-child{animation-name:slideHeaderFromTop;will-change:transform}::view-transition-old(boot--canvas-header):only-child{animation-name:slideHeaderToTop;will-change:transform}@keyframes slideHeaderFromTop{0%{transform:translateY(-100%)}}@keyframes slideHeaderToTop{to{transform:translateY(-100%)}}::view-transition-new(boot--canvas-sidebar):only-child{animation-name:slideSidebarFromRight;will-change:transform}::view-transition-old(boot--canvas-sidebar):only-child{animation-name:slideSidebarToRight;will-change:transform}@keyframes slideSidebarFromRight{0%{transform:translateX(100%)}}@keyframes slideSidebarToRight{to{transform:translateX(100%)}}\"));\n\tdocument.head.appendChild(style);\n}\n", "/**\n * Internal dependencies\n */\nimport './style.scss';\nimport './view-transitions.scss';\nexport { init, initSinglePage } from './components/app';\nexport { store } from './store';\n"],
|
|
5
|
+
"mappings": ";AAAA,IAAI,OAAO,aAAa,eAAe,QAAQ,IAAI,aAAa,UAAU,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AAC3I,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,84TAA06T,CAAC;AACr9T,WAAS,KAAK,YAAY,KAAK;AAChC;;;ACLA,IAAI,OAAO,aAAa,eAAe,QAAQ,IAAI,aAAa,UAAU,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AAC3I,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qxHAAqxH,CAAC;AACh0H,WAAS,KAAK,YAAY,KAAK;AAChC;;;ACAA,SAAS,MAAM,sBAAsB;AACrC,SAAS,aAAa;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -284,17 +284,17 @@
|
|
|
284
284
|
/* 2x extra large surface width */
|
|
285
285
|
--wpds-dimension-surface-width-2xl: 960px;
|
|
286
286
|
/* For sections and containers that group related content and controls, which may overlap other content. Example: Preview Frame. */
|
|
287
|
-
--wpds-elevation-xs:
|
|
288
|
-
|
|
287
|
+
--wpds-elevation-xs: 0px 1px 1px 0px #00000008, 0px 1px 2px 0px #00000005,
|
|
288
|
+
0px 3px 3px 0px #00000005, 0px 4px 4px 0px #00000003;
|
|
289
289
|
/* For components that provide contextual feedback without being intrusive. Generally non-interruptive. Example: Tooltips, Snackbar. */
|
|
290
|
-
--wpds-elevation-sm:
|
|
291
|
-
|
|
290
|
+
--wpds-elevation-sm: 0px 1px 2px 0px #0000000d, 0px 2px 3px 0px #0000000a,
|
|
291
|
+
0px 6px 6px 0px #00000008, 0px 8px 8px 0px #00000005;
|
|
292
292
|
/* For components that offer additional actions. Example: Menus, Command Palette */
|
|
293
|
-
--wpds-elevation-md:
|
|
294
|
-
|
|
293
|
+
--wpds-elevation-md: 0px 2px 3px 0px #0000000d, 0px 4px 5px 0px #0000000a,
|
|
294
|
+
0px 12px 12px 0px #00000008, 0px 16px 16px 0px #00000005;
|
|
295
295
|
/* For components that confirm decisions or handle necessary interruptions. Example: Modals. */
|
|
296
|
-
--wpds-elevation-lg:
|
|
297
|
-
|
|
296
|
+
--wpds-elevation-lg: 0px 5px 15px 0px #00000014, 0px 15px 27px 0px #00000012,
|
|
297
|
+
0px 30px 36px 0px #0000000a, 0px 50px 43px 0px #00000005;
|
|
298
298
|
/* Micro-delays and transition offsets */
|
|
299
299
|
--wpds-motion-duration-xs: 50ms;
|
|
300
300
|
/* Micro-interactions like focus rings and state changes */
|
|
@@ -360,15 +360,15 @@
|
|
|
360
360
|
[data-wpds-corner-radius=none],
|
|
361
361
|
:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=none]) {
|
|
362
362
|
/* Buttons and other elements nested inside controls. */
|
|
363
|
-
--wpds-border-radius-xs:
|
|
363
|
+
--wpds-border-radius-xs: 0px;
|
|
364
364
|
/* Standalone buttons, inputs, and compact controls. */
|
|
365
|
-
--wpds-border-radius-sm:
|
|
365
|
+
--wpds-border-radius-sm: 0px;
|
|
366
366
|
/* Menus, popovers, and other small portaled overlays. */
|
|
367
|
-
--wpds-border-radius-md:
|
|
367
|
+
--wpds-border-radius-md: 0px;
|
|
368
368
|
/* Cards, dialogs, notices, and other larger content containers. */
|
|
369
|
-
--wpds-border-radius-lg:
|
|
369
|
+
--wpds-border-radius-lg: 0px;
|
|
370
370
|
/* Page and app shell surfaces. */
|
|
371
|
-
--wpds-border-radius-xl:
|
|
371
|
+
--wpds-border-radius-xl: 0px;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
[data-wpds-corner-radius=subtle],
|
|
@@ -482,6 +482,12 @@
|
|
|
482
482
|
/**
|
|
483
483
|
* Focus styles.
|
|
484
484
|
*/
|
|
485
|
+
/**
|
|
486
|
+
* Standard focus rings for the WordPress Design System.
|
|
487
|
+
*
|
|
488
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
489
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
490
|
+
*/
|
|
485
491
|
/**
|
|
486
492
|
* Applies editor left position to the selector passed as argument
|
|
487
493
|
*/
|
|
@@ -502,44 +508,6 @@
|
|
|
502
508
|
* Creates a checkerboard pattern background to indicate transparency.
|
|
503
509
|
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
504
510
|
*/
|
|
505
|
-
body.has-admin-bar-in-editor #wpadminbar {
|
|
506
|
-
display: block;
|
|
507
|
-
}
|
|
508
|
-
body.has-admin-bar-in-editor .boot-canvas-back-button__link {
|
|
509
|
-
background: transparent;
|
|
510
|
-
}
|
|
511
|
-
body.has-admin-bar-in-editor .boot-canvas-back-button__icon {
|
|
512
|
-
background-color: transparent;
|
|
513
|
-
}
|
|
514
|
-
body.has-admin-bar-in-editor #site-editor-v2-app {
|
|
515
|
-
position: fixed;
|
|
516
|
-
top: 32px;
|
|
517
|
-
right: 0;
|
|
518
|
-
left: 0;
|
|
519
|
-
bottom: 0;
|
|
520
|
-
height: calc(100vh - 32px) !important;
|
|
521
|
-
}
|
|
522
|
-
body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas {
|
|
523
|
-
top: 32px;
|
|
524
|
-
height: calc(100vh - 32px);
|
|
525
|
-
}
|
|
526
|
-
@media (max-width: 782px) {
|
|
527
|
-
body.has-admin-bar-in-editor #site-editor-v2-app {
|
|
528
|
-
top: 46px;
|
|
529
|
-
height: calc(100vh - 46px) !important;
|
|
530
|
-
}
|
|
531
|
-
body.has-admin-bar-in-editor .boot-layout__stage,
|
|
532
|
-
body.has-admin-bar-in-editor .boot-layout__inspector,
|
|
533
|
-
body.has-admin-bar-in-editor .boot-layout__canvas:not(.has-mobile-drawer),
|
|
534
|
-
body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas {
|
|
535
|
-
top: 46px;
|
|
536
|
-
height: calc(100vh - 46px);
|
|
537
|
-
}
|
|
538
|
-
body.has-admin-bar-in-editor .boot-layout__mobile-sidebar-drawer {
|
|
539
|
-
top: 46px;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
511
|
@media (min-width: 600px) {
|
|
544
512
|
.boot-layout-container .boot-layout {
|
|
545
513
|
position: absolute;
|
package/build-style/style.css
CHANGED
|
@@ -284,17 +284,17 @@
|
|
|
284
284
|
/* 2x extra large surface width */
|
|
285
285
|
--wpds-dimension-surface-width-2xl: 960px;
|
|
286
286
|
/* For sections and containers that group related content and controls, which may overlap other content. Example: Preview Frame. */
|
|
287
|
-
--wpds-elevation-xs:
|
|
288
|
-
|
|
287
|
+
--wpds-elevation-xs: 0px 1px 1px 0px #00000008, 0px 1px 2px 0px #00000005,
|
|
288
|
+
0px 3px 3px 0px #00000005, 0px 4px 4px 0px #00000003;
|
|
289
289
|
/* For components that provide contextual feedback without being intrusive. Generally non-interruptive. Example: Tooltips, Snackbar. */
|
|
290
|
-
--wpds-elevation-sm:
|
|
291
|
-
|
|
290
|
+
--wpds-elevation-sm: 0px 1px 2px 0px #0000000d, 0px 2px 3px 0px #0000000a,
|
|
291
|
+
0px 6px 6px 0px #00000008, 0px 8px 8px 0px #00000005;
|
|
292
292
|
/* For components that offer additional actions. Example: Menus, Command Palette */
|
|
293
|
-
--wpds-elevation-md:
|
|
294
|
-
|
|
293
|
+
--wpds-elevation-md: 0px 2px 3px 0px #0000000d, 0px 4px 5px 0px #0000000a,
|
|
294
|
+
0px 12px 12px 0px #00000008, 0px 16px 16px 0px #00000005;
|
|
295
295
|
/* For components that confirm decisions or handle necessary interruptions. Example: Modals. */
|
|
296
|
-
--wpds-elevation-lg:
|
|
297
|
-
|
|
296
|
+
--wpds-elevation-lg: 0px 5px 15px 0px #00000014, 0px 15px 27px 0px #00000012,
|
|
297
|
+
0px 30px 36px 0px #0000000a, 0px 50px 43px 0px #00000005;
|
|
298
298
|
/* Micro-delays and transition offsets */
|
|
299
299
|
--wpds-motion-duration-xs: 50ms;
|
|
300
300
|
/* Micro-interactions like focus rings and state changes */
|
|
@@ -360,15 +360,15 @@
|
|
|
360
360
|
[data-wpds-corner-radius=none],
|
|
361
361
|
:root:has([data-wpds-root-provider=true][data-wpds-corner-radius=none]) {
|
|
362
362
|
/* Buttons and other elements nested inside controls. */
|
|
363
|
-
--wpds-border-radius-xs:
|
|
363
|
+
--wpds-border-radius-xs: 0px;
|
|
364
364
|
/* Standalone buttons, inputs, and compact controls. */
|
|
365
|
-
--wpds-border-radius-sm:
|
|
365
|
+
--wpds-border-radius-sm: 0px;
|
|
366
366
|
/* Menus, popovers, and other small portaled overlays. */
|
|
367
|
-
--wpds-border-radius-md:
|
|
367
|
+
--wpds-border-radius-md: 0px;
|
|
368
368
|
/* Cards, dialogs, notices, and other larger content containers. */
|
|
369
|
-
--wpds-border-radius-lg:
|
|
369
|
+
--wpds-border-radius-lg: 0px;
|
|
370
370
|
/* Page and app shell surfaces. */
|
|
371
|
-
--wpds-border-radius-xl:
|
|
371
|
+
--wpds-border-radius-xl: 0px;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
[data-wpds-corner-radius=subtle],
|
|
@@ -482,6 +482,12 @@
|
|
|
482
482
|
/**
|
|
483
483
|
* Focus styles.
|
|
484
484
|
*/
|
|
485
|
+
/**
|
|
486
|
+
* Standard focus rings for the WordPress Design System.
|
|
487
|
+
*
|
|
488
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
489
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
490
|
+
*/
|
|
485
491
|
/**
|
|
486
492
|
* Applies editor left position to the selector passed as argument
|
|
487
493
|
*/
|
|
@@ -502,44 +508,6 @@
|
|
|
502
508
|
* Creates a checkerboard pattern background to indicate transparency.
|
|
503
509
|
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
504
510
|
*/
|
|
505
|
-
body.has-admin-bar-in-editor #wpadminbar {
|
|
506
|
-
display: block;
|
|
507
|
-
}
|
|
508
|
-
body.has-admin-bar-in-editor .boot-canvas-back-button__link {
|
|
509
|
-
background: transparent;
|
|
510
|
-
}
|
|
511
|
-
body.has-admin-bar-in-editor .boot-canvas-back-button__icon {
|
|
512
|
-
background-color: transparent;
|
|
513
|
-
}
|
|
514
|
-
body.has-admin-bar-in-editor #site-editor-v2-app {
|
|
515
|
-
position: fixed;
|
|
516
|
-
top: 32px;
|
|
517
|
-
left: 0;
|
|
518
|
-
right: 0;
|
|
519
|
-
bottom: 0;
|
|
520
|
-
height: calc(100vh - 32px) !important;
|
|
521
|
-
}
|
|
522
|
-
body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas {
|
|
523
|
-
top: 32px;
|
|
524
|
-
height: calc(100vh - 32px);
|
|
525
|
-
}
|
|
526
|
-
@media (max-width: 782px) {
|
|
527
|
-
body.has-admin-bar-in-editor #site-editor-v2-app {
|
|
528
|
-
top: 46px;
|
|
529
|
-
height: calc(100vh - 46px) !important;
|
|
530
|
-
}
|
|
531
|
-
body.has-admin-bar-in-editor .boot-layout__stage,
|
|
532
|
-
body.has-admin-bar-in-editor .boot-layout__inspector,
|
|
533
|
-
body.has-admin-bar-in-editor .boot-layout__canvas:not(.has-mobile-drawer),
|
|
534
|
-
body.has-admin-bar-in-editor .boot-layout.has-full-canvas .boot-layout__canvas {
|
|
535
|
-
top: 46px;
|
|
536
|
-
height: calc(100vh - 46px);
|
|
537
|
-
}
|
|
538
|
-
body.has-admin-bar-in-editor .boot-layout__mobile-sidebar-drawer {
|
|
539
|
-
top: 46px;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
511
|
@media (min-width: 600px) {
|
|
544
512
|
.boot-layout-container .boot-layout {
|
|
545
513
|
position: absolute;
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
.boot-layout__canvas .interface-interface-skeleton__sidebar {
|
|
19
19
|
view-transition-name: boot--canvas-sidebar;
|
|
20
20
|
}
|
|
21
|
-
.boot-layout.has-full-canvas .boot-layout__canvas .boot-site-icon-link,
|
|
22
|
-
.boot-layout:not(.has-full-canvas) .boot-site-hub .boot-site-icon-link {
|
|
23
|
-
view-transition-name: boot--site-icon-link;
|
|
24
|
-
}
|
|
25
21
|
.boot-layout__stage {
|
|
26
22
|
view-transition-name: boot--stage;
|
|
27
23
|
}
|
|
@@ -55,15 +51,6 @@
|
|
|
55
51
|
z-index: 1;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
::view-transition-group(boot--site-icon-link) {
|
|
59
|
-
z-index: 2;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::view-transition-new(boot--site-icon-link),
|
|
63
|
-
::view-transition-old(boot--site-icon-link) {
|
|
64
|
-
animation: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
54
|
::view-transition-new(boot-safari--canvas),
|
|
68
55
|
::view-transition-old(boot-safari--canvas),
|
|
69
56
|
::view-transition-new(boot-safari--stage),
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
.boot-layout__canvas .interface-interface-skeleton__sidebar {
|
|
19
19
|
view-transition-name: boot--canvas-sidebar;
|
|
20
20
|
}
|
|
21
|
-
.boot-layout.has-full-canvas .boot-layout__canvas .boot-site-icon-link,
|
|
22
|
-
.boot-layout:not(.has-full-canvas) .boot-site-hub .boot-site-icon-link {
|
|
23
|
-
view-transition-name: boot--site-icon-link;
|
|
24
|
-
}
|
|
25
21
|
.boot-layout__stage {
|
|
26
22
|
view-transition-name: boot--stage;
|
|
27
23
|
}
|
|
@@ -55,15 +51,6 @@
|
|
|
55
51
|
z-index: 1;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
::view-transition-group(boot--site-icon-link) {
|
|
59
|
-
z-index: 2;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::view-transition-new(boot--site-icon-link),
|
|
63
|
-
::view-transition-old(boot--site-icon-link) {
|
|
64
|
-
animation: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
54
|
::view-transition-new(boot-safari--canvas),
|
|
68
55
|
::view-transition-old(boot-safari--canvas),
|
|
69
56
|
::view-transition-new(boot-safari--stage),
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
1
4
|
import './back-button.scss';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
__experimentalAdminBarInEditor?: boolean;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
5
|
/**
|
|
8
6
|
* Back button component that appears in full-screen canvas mode.
|
|
9
|
-
* Matches next-admin's SiteIconBackButton design.
|
|
10
7
|
*
|
|
11
8
|
* @param {Object} props Component props
|
|
12
9
|
* @param {number} props.length Number of BackButton fills (from Slot)
|
|
13
|
-
* @return Back button
|
|
10
|
+
* @return Back button
|
|
14
11
|
*/
|
|
15
12
|
export default function BootBackButton({ length }: {
|
|
16
13
|
length: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../../src/components/canvas/back-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../../src/components/canvas/back-button.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,sCAuBrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/root/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/root/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,cAAc,CAAC;AAItB,MAAM,CAAC,OAAO,UAAU,IAAI,gCA4K3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-page.d.ts","sourceRoot":"","sources":["../../../src/components/root/single-page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"single-page.d.ts","sourceRoot":"","sources":["../../../src/components/root/single-page.tsx"],"names":[],"mappings":"AAuBA,OAAO,cAAc,CAAC;AAKtB;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,gCA8DrC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the boot layout's computed background-color and mirrors it onto
|
|
3
|
+
* `document.body` to avoid a jarring flash on macOS elastic-scroll bounce.
|
|
4
|
+
* Snapshots and restores the previous inline value on unmount.
|
|
5
|
+
*
|
|
6
|
+
* TODO: Once the two top-level `ThemeProvider` instances can be merged, this
|
|
7
|
+
* hook can be replaced with a CSS rule on `<body>`.
|
|
8
|
+
* See https://github.com/WordPress/gutenberg/pull/78587#discussion_r3481698286
|
|
9
|
+
*
|
|
10
|
+
* @return Ref to attach to the `.boot-layout` div.
|
|
11
|
+
*/
|
|
12
|
+
export default function useSyncBodyBackground(): import("react").MutableRefObject<HTMLDivElement | null>;
|
|
13
|
+
//# sourceMappingURL=use-sync-body-background.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-body-background.d.ts","sourceRoot":"","sources":["../../../src/components/root/use-sync-body-background.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,4DAuB5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.tsx"],"names":[],"mappings":"AAcA,OAAO,cAAc,CAAC;AAoBtB,MAAM,CAAC,OAAO,UAAU,OAAO,gCAY9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/boot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1-next.v.202607070741.0+a51d59513",
|
|
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,29 +40,29 @@
|
|
|
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": "^10.1.0",
|
|
46
|
-
"@wordpress/commands": "^1.
|
|
47
|
-
"@wordpress/components": "^
|
|
48
|
-
"@wordpress/compose": "^8.
|
|
49
|
-
"@wordpress/core-data": "^7.
|
|
50
|
-
"@wordpress/data": "^10.
|
|
51
|
-
"@wordpress/editor": "^14.
|
|
52
|
-
"@wordpress/element": "^8.1.0",
|
|
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.17.0",
|
|
64
|
-
"@wordpress/ui": "^0.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
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",
|
|
66
66
|
"clsx": "^2.1.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "f637726e370c8b23695ed9af82adbe171ad235d8"
|
|
82
82
|
}
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
display: inline-flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
justify-content: center;
|
|
24
|
-
background: var(--wpds-color-background-surface-neutral-weak);
|
|
25
24
|
text-decoration: none;
|
|
26
25
|
padding: 0;
|
|
27
26
|
border-radius: 0;
|
|
@@ -47,18 +46,11 @@
|
|
|
47
46
|
display: flex;
|
|
48
47
|
align-items: center;
|
|
49
48
|
justify-content: center;
|
|
50
|
-
background-color: hsla(0, 0%, 80%);
|
|
51
49
|
pointer-events: none;
|
|
52
50
|
|
|
53
51
|
svg {
|
|
54
52
|
fill: currentColor;
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
&.has-site-icon {
|
|
58
|
-
background-color: hsla(0, 0%, 100%, 0.6);
|
|
59
|
-
-webkit-backdrop-filter: saturate(180%) blur(15px);
|
|
60
|
-
backdrop-filter: saturate(180%) blur(15px);
|
|
61
|
-
}
|
|
62
54
|
}
|
|
63
55
|
|
|
64
56
|
// Remove the header slide-in animation so the back logo does not move.
|
|
@@ -1,55 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
Icon as WCIcon,
|
|
7
|
-
__unstableMotion as motion,
|
|
8
|
-
} from '@wordpress/components';
|
|
9
|
-
import { arrowUpLeft, arrowUpRight } from '@wordpress/icons';
|
|
10
|
-
import { useReducedMotion } from '@wordpress/compose';
|
|
4
|
+
import { Button, Icon as WCIcon } from '@wordpress/components';
|
|
5
|
+
import { chevronLeft, chevronRight } from '@wordpress/icons';
|
|
11
6
|
import { __, isRTL } from '@wordpress/i18n';
|
|
12
7
|
|
|
13
8
|
/**
|
|
14
9
|
* Internal dependencies
|
|
15
10
|
*/
|
|
16
|
-
import SiteIcon from '../site-icon';
|
|
17
11
|
import './back-button.scss';
|
|
18
12
|
|
|
19
|
-
declare global {
|
|
20
|
-
interface Window {
|
|
21
|
-
__experimentalAdminBarInEditor?: boolean;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Overlay arrow animation that appears on hover.
|
|
27
|
-
* Matches next-admin implementation with clip-path.
|
|
28
|
-
*/
|
|
29
|
-
const toggleHomeIconVariants = {
|
|
30
|
-
edit: {
|
|
31
|
-
opacity: 0,
|
|
32
|
-
scale: 0.2,
|
|
33
|
-
},
|
|
34
|
-
hover: {
|
|
35
|
-
opacity: 1,
|
|
36
|
-
scale: 1,
|
|
37
|
-
clipPath: 'inset( 22% round 2px )',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
13
|
/**
|
|
42
14
|
* Back button component that appears in full-screen canvas mode.
|
|
43
|
-
* Matches next-admin's SiteIconBackButton design.
|
|
44
15
|
*
|
|
45
16
|
* @param {Object} props Component props
|
|
46
17
|
* @param {number} props.length Number of BackButton fills (from Slot)
|
|
47
|
-
* @return Back button
|
|
18
|
+
* @return Back button
|
|
48
19
|
*/
|
|
49
20
|
export default function BootBackButton( { length }: { length: number } ) {
|
|
50
|
-
const disableMotion = useReducedMotion();
|
|
51
|
-
const hasAdminBarInEditor = window.__experimentalAdminBarInEditor;
|
|
52
|
-
|
|
53
21
|
const handleBack = () => {
|
|
54
22
|
window.history.back();
|
|
55
23
|
};
|
|
@@ -59,43 +27,17 @@ export default function BootBackButton( { length }: { length: number } ) {
|
|
|
59
27
|
return null;
|
|
60
28
|
}
|
|
61
29
|
|
|
62
|
-
const transition = {
|
|
63
|
-
duration: disableMotion ? 0 : 0.3,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const arrowIcon = isRTL() ? arrowUpRight : arrowUpLeft;
|
|
67
|
-
|
|
68
30
|
return (
|
|
69
|
-
<
|
|
70
|
-
className="boot-canvas-back-button"
|
|
71
|
-
animate="edit"
|
|
72
|
-
initial="edit"
|
|
73
|
-
whileHover="hover"
|
|
74
|
-
whileTap="tap"
|
|
75
|
-
transition={ transition }
|
|
76
|
-
>
|
|
31
|
+
<div className="boot-canvas-back-button">
|
|
77
32
|
<Button
|
|
78
33
|
className="boot-canvas-back-button__link"
|
|
79
34
|
onClick={ handleBack }
|
|
80
35
|
aria-label={ __( 'Go back' ) }
|
|
81
36
|
__next40pxDefaultSize
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<div className="boot-canvas-back-button__icon">
|
|
88
|
-
<WCIcon icon={ arrowIcon } />
|
|
89
|
-
</div>
|
|
90
|
-
) : (
|
|
91
|
-
/* Overlay arrow that appears on hover */
|
|
92
|
-
<motion.div
|
|
93
|
-
className="boot-canvas-back-button__icon"
|
|
94
|
-
variants={ toggleHomeIconVariants }
|
|
95
|
-
>
|
|
96
|
-
<WCIcon icon={ arrowIcon } />
|
|
97
|
-
</motion.div>
|
|
98
|
-
) }
|
|
99
|
-
</motion.div>
|
|
37
|
+
/>
|
|
38
|
+
<div className="boot-canvas-back-button__icon">
|
|
39
|
+
<WCIcon icon={ isRTL() ? chevronRight : chevronLeft } />
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
100
42
|
);
|
|
101
43
|
}
|
|
@@ -31,6 +31,7 @@ import CanvasRenderer from '../canvas-renderer';
|
|
|
31
31
|
import useRouteTitle from '../app/use-route-title';
|
|
32
32
|
import { unlock } from '../../lock-unlock';
|
|
33
33
|
import type { CanvasData } from '../../store/types';
|
|
34
|
+
import useSyncBodyBackground from './use-sync-body-background';
|
|
34
35
|
import './style.scss';
|
|
35
36
|
|
|
36
37
|
const { useLocation, useMatches, Outlet } = unlock( routePrivateApis );
|
|
@@ -60,6 +61,8 @@ export default function Root() {
|
|
|
60
61
|
|
|
61
62
|
const themeColors = useMemo( getAdminThemeColors, [] );
|
|
62
63
|
|
|
64
|
+
const layoutRef = useSyncBodyBackground();
|
|
65
|
+
|
|
63
66
|
return (
|
|
64
67
|
<SlotFillProvider>
|
|
65
68
|
<Tooltip.Provider>
|
|
@@ -69,6 +72,7 @@ export default function Root() {
|
|
|
69
72
|
>
|
|
70
73
|
<ThemeProvider color={ themeColors }>
|
|
71
74
|
<div
|
|
75
|
+
ref={ layoutRef }
|
|
72
76
|
className={ clsx( 'boot-layout', {
|
|
73
77
|
'has-canvas': !! canvas || canvas === null,
|
|
74
78
|
'has-full-canvas': isFullScreen,
|