@wordpress/interface 9.25.1-next.v.202602271551.0 → 9.26.1-next.v.202603102151.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/components/interface-skeleton/index.cjs +1 -1
- package/build/components/interface-skeleton/index.cjs.map +2 -2
- package/build-module/components/interface-skeleton/index.mjs +1 -1
- package/build-module/components/interface-skeleton/index.mjs.map +2 -2
- package/build-style/style-rtl.css +68 -103
- package/build-style/style.css +68 -103
- package/package.json +15 -15
- package/src/components/interface-skeleton/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -135,7 +135,7 @@ function InterfaceSkeleton({
|
|
|
135
135
|
{
|
|
136
136
|
as: import_components.__unstableMotion.div,
|
|
137
137
|
className: "interface-interface-skeleton__header",
|
|
138
|
-
|
|
138
|
+
ariaLabel: mergedLabels.header,
|
|
139
139
|
initial: isDistractionFree && !isMobileViewport ? "distractionFreeHidden" : "hidden",
|
|
140
140
|
whileHover: isDistractionFree && !isMobileViewport ? "distractionFreeHover" : "visible",
|
|
141
141
|
animate: isDistractionFree && !isMobileViewport ? "distractionFreeDisabled" : "visible",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/interface-skeleton/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\nconst ANIMATION_DURATION = 0.25;\nconst commonTransition = {\n\ttype: 'tween',\n\tduration: ANIMATION_DURATION,\n\tease: [ 0.6, 0, 0.4, 1 ],\n};\n\nfunction useHTMLClass( className ) {\n\tuseEffect( () => {\n\t\tconst element =\n\t\t\tdocument && document.querySelector( `html:not(.${ className })` );\n\t\tif ( ! element ) {\n\t\t\treturn;\n\t\t}\n\t\telement.classList.toggle( className );\n\t\treturn () => {\n\t\t\telement.classList.toggle( className );\n\t\t};\n\t}, [ className ] );\n}\n\nconst headerVariants = {\n\thidden: { opacity: 1, marginTop: -60 },\n\tvisible: { opacity: 1, marginTop: 0 },\n\tdistractionFreeHover: {\n\t\topacity: 1,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.2,\n\t\t\tdelayChildren: 0.2,\n\t\t},\n\t},\n\tdistractionFreeHidden: {\n\t\topacity: 0,\n\t\tmarginTop: -60,\n\t},\n\tdistractionFreeDisabled: {\n\t\topacity: 0,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.8,\n\t\t\tdelayChildren: 0.8,\n\t\t},\n\t},\n};\n\nfunction InterfaceSkeleton(\n\t{\n\t\tisDistractionFree,\n\t\tfooter,\n\t\theader,\n\t\teditorNotices,\n\t\tsidebar,\n\t\tsecondarySidebar,\n\t\tcontent,\n\t\tactions,\n\t\tlabels,\n\t\tclassName,\n\t},\n\tref\n) {\n\tconst [ secondarySidebarResizeListener, secondarySidebarSize ] =\n\t\tuseResizeObserver();\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst disableMotion = useReducedMotion();\n\tconst defaultTransition = {\n\t\ttype: 'tween',\n\t\tduration: disableMotion ? 0 : ANIMATION_DURATION,\n\t\tease: [ 0.6, 0, 0.4, 1 ],\n\t};\n\tuseHTMLClass( 'interface-interface-skeleton__html-container' );\n\n\tconst defaultLabels = {\n\t\t/* translators: accessibility text for the top bar landmark region. */\n\t\theader: _x( 'Header', 'header landmark area' ),\n\t\t/* translators: accessibility text for the content landmark region. */\n\t\tbody: __( 'Content' ),\n\t\t/* translators: accessibility text for the secondary sidebar landmark region. */\n\t\tsecondarySidebar: __( 'Block Library' ),\n\t\t/* translators: accessibility text for the settings landmark region. */\n\t\tsidebar: _x( 'Settings', 'settings landmark area' ),\n\t\t/* translators: accessibility text for the publish landmark region. */\n\t\tactions: __( 'Publish' ),\n\t\t/* translators: accessibility text for the footer landmark region. */\n\t\tfooter: __( 'Footer' ),\n\t};\n\n\tconst mergedLabels = { ...defaultLabels, ...labels };\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\t!! footer && 'has-footer'\n\t\t\t) }\n\t\t>\n\t\t\t<div className=\"interface-interface-skeleton__editor\">\n\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t{ !! header && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__header\"\n\t\t\t\t\t\t\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,sBAAgC;AAChC,qBAAsC;AACtC,wBAGO;AACP,kBAAuB;AACvB,qBAIO;AAyGD;AAvGN,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM,CAAE,KAAK,GAAG,KAAK,CAAE;AACxB;AAEA,SAAS,aAAc,WAAY;AAClC,gCAAW,MAAM;AAChB,UAAM,UACL,YAAY,SAAS,cAAe,aAAc,SAAU,GAAI;AACjE,QAAK,CAAE,SAAU;AAChB;AAAA,IACD;AACA,YAAQ,UAAU,OAAQ,SAAU;AACpC,WAAO,MAAM;AACZ,cAAQ,UAAU,OAAQ,SAAU;AAAA,IACrC;AAAA,EACD,GAAG,CAAE,SAAU,CAAE;A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D,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,eAAY,YAAAA;AAAA,QACX;AAAA,QACA;AAAA,QACA,CAAC,CAAE,UAAU;AAAA,MACd;AAAA,MAEA;AAAA,qDAAC,SAAI,WAAU,wCACd;AAAA,sDAAC,kBAAAC,2BAAA,EAAgB,SAAU,OACxB,WAAC,CAAE,UACJ;AAAA,YAAC;AAAA;AAAA,cACA,IAAK,kBAAAC,iBAAO;AAAA,cACZ,WAAU;AAAA,cACV,
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\nconst ANIMATION_DURATION = 0.25;\nconst commonTransition = {\n\ttype: 'tween',\n\tduration: ANIMATION_DURATION,\n\tease: [ 0.6, 0, 0.4, 1 ],\n};\n\nfunction useHTMLClass( className ) {\n\tuseEffect( () => {\n\t\tconst element =\n\t\t\tdocument && document.querySelector( `html:not(.${ className })` );\n\t\tif ( ! element ) {\n\t\t\treturn;\n\t\t}\n\t\telement.classList.toggle( className );\n\t\treturn () => {\n\t\t\telement.classList.toggle( className );\n\t\t};\n\t}, [ className ] );\n}\n\nconst headerVariants = {\n\thidden: { opacity: 1, marginTop: -60 },\n\tvisible: { opacity: 1, marginTop: 0 },\n\tdistractionFreeHover: {\n\t\topacity: 1,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.2,\n\t\t\tdelayChildren: 0.2,\n\t\t},\n\t},\n\tdistractionFreeHidden: {\n\t\topacity: 0,\n\t\tmarginTop: -60,\n\t},\n\tdistractionFreeDisabled: {\n\t\topacity: 0,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.8,\n\t\t\tdelayChildren: 0.8,\n\t\t},\n\t},\n};\n\nfunction InterfaceSkeleton(\n\t{\n\t\tisDistractionFree,\n\t\tfooter,\n\t\theader,\n\t\teditorNotices,\n\t\tsidebar,\n\t\tsecondarySidebar,\n\t\tcontent,\n\t\tactions,\n\t\tlabels,\n\t\tclassName,\n\t},\n\tref\n) {\n\tconst [ secondarySidebarResizeListener, secondarySidebarSize ] =\n\t\tuseResizeObserver();\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst disableMotion = useReducedMotion();\n\tconst defaultTransition = {\n\t\ttype: 'tween',\n\t\tduration: disableMotion ? 0 : ANIMATION_DURATION,\n\t\tease: [ 0.6, 0, 0.4, 1 ],\n\t};\n\tuseHTMLClass( 'interface-interface-skeleton__html-container' );\n\n\tconst defaultLabels = {\n\t\t/* translators: accessibility text for the top bar landmark region. */\n\t\theader: _x( 'Header', 'header landmark area' ),\n\t\t/* translators: accessibility text for the content landmark region. */\n\t\tbody: __( 'Content' ),\n\t\t/* translators: accessibility text for the secondary sidebar landmark region. */\n\t\tsecondarySidebar: __( 'Block Library' ),\n\t\t/* translators: accessibility text for the settings landmark region. */\n\t\tsidebar: _x( 'Settings', 'settings landmark area' ),\n\t\t/* translators: accessibility text for the publish landmark region. */\n\t\tactions: __( 'Publish' ),\n\t\t/* translators: accessibility text for the footer landmark region. */\n\t\tfooter: __( 'Footer' ),\n\t};\n\n\tconst mergedLabels = { ...defaultLabels, ...labels };\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\t!! footer && 'has-footer'\n\t\t\t) }\n\t\t>\n\t\t\t<div className=\"interface-interface-skeleton__editor\">\n\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t{ !! header && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__header\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.header }\n\t\t\t\t\t\t\tinitial={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHidden'\n\t\t\t\t\t\t\t\t\t: 'hidden'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhileHover={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHover'\n\t\t\t\t\t\t\t\t\t: 'visible'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tanimate={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeDisabled'\n\t\t\t\t\t\t\t\t\t: 'visible'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texit={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHidden'\n\t\t\t\t\t\t\t\t\t: 'hidden'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvariants={ headerVariants }\n\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ header }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t</AnimatePresence>\n\t\t\t\t{ isDistractionFree && (\n\t\t\t\t\t<div className=\"interface-interface-skeleton__header\">\n\t\t\t\t\t\t{ editorNotices }\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t\t<div className=\"interface-interface-skeleton__body\">\n\t\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t\t{ !! secondarySidebar && (\n\t\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__secondary-sidebar\"\n\t\t\t\t\t\t\t\tariaLabel={ mergedLabels.secondarySidebar }\n\t\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\t\tinitial=\"closed\"\n\t\t\t\t\t\t\t\tanimate=\"open\"\n\t\t\t\t\t\t\t\texit=\"closed\"\n\t\t\t\t\t\t\t\tvariants={ {\n\t\t\t\t\t\t\t\t\topen: { width: secondarySidebarSize.width },\n\t\t\t\t\t\t\t\t\tclosed: { width: 0 },\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\t\t\twidth: isMobileViewport\n\t\t\t\t\t\t\t\t\t\t\t? '100vw'\n\t\t\t\t\t\t\t\t\t\t\t: 'fit-content',\n\t\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tvariants={ {\n\t\t\t\t\t\t\t\t\t\topen: { x: 0 },\n\t\t\t\t\t\t\t\t\t\tclosed: { x: '-100%' },\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ secondarySidebarResizeListener }\n\t\t\t\t\t\t\t\t\t{ secondarySidebar }\n\t\t\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</AnimatePresence>\n\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\tclassName=\"interface-interface-skeleton__content\"\n\t\t\t\t\t\tariaLabel={ mergedLabels.body }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ content }\n\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t{ !! sidebar && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__sidebar\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.sidebar }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ sidebar }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t\t{ !! actions && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__actions\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.actions }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ actions }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ !! footer && (\n\t\t\t\t<NavigableRegion\n\t\t\t\t\tclassName=\"interface-interface-skeleton__footer\"\n\t\t\t\t\tariaLabel={ mergedLabels.footer }\n\t\t\t\t>\n\t\t\t\t\t{ footer }\n\t\t\t\t</NavigableRegion>\n\t\t\t) }\n\t\t</div>\n\t);\n}\n\nexport default forwardRef( InterfaceSkeleton );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,sBAAgC;AAChC,qBAAsC;AACtC,wBAGO;AACP,kBAAuB;AACvB,qBAIO;AAyGD;AAvGN,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM,CAAE,KAAK,GAAG,KAAK,CAAE;AACxB;AAEA,SAAS,aAAc,WAAY;AAClC,gCAAW,MAAM;AAChB,UAAM,UACL,YAAY,SAAS,cAAe,aAAc,SAAU,GAAI;AACjE,QAAK,CAAE,SAAU;AAChB;AAAA,IACD;AACA,YAAQ,UAAU,OAAQ,SAAU;AACpC,WAAO,MAAM;AACZ,cAA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,sBACR,MAAM;AAAA,oBACP;AAAA,oBACA,UAAW;AAAA,sBACV,MAAM,EAAE,GAAG,EAAE;AAAA,sBACb,QAAQ,EAAE,GAAG,QAAQ;AAAA,oBACtB;AAAA,oBACA,YAAa;AAAA,oBAEX;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA,gBACH;AAAA;AAAA,YACD,GAEF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACA,WAAU;AAAA,gBACV,WAAY,aAAa;AAAA,gBAEvB;AAAA;AAAA,YACH;AAAA,YACE,CAAC,CAAE,WACJ;AAAA,cAAC;AAAA;AAAA,gBACA,WAAU;AAAA,gBACV,WAAY,aAAa;AAAA,gBAEvB;AAAA;AAAA,YACH;AAAA,YAEC,CAAC,CAAE,WACJ;AAAA,cAAC;AAAA;AAAA,gBACA,WAAU;AAAA,gBACV,WAAY,aAAa;AAAA,gBAEvB;AAAA;AAAA,YACH;AAAA,aAEF;AAAA,WACD;AAAA,QACE,CAAC,CAAE,UACJ;AAAA,UAAC;AAAA;AAAA,YACA,WAAU;AAAA,YACV,WAAY,aAAa;AAAA,YAEvB;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEF;AAEF;AAEA,IAAO,iCAAQ,2BAAY,iBAAkB;",
|
|
6
6
|
"names": ["clsx", "AnimatePresence", "motion"]
|
|
7
7
|
}
|
|
@@ -109,7 +109,7 @@ function InterfaceSkeleton({
|
|
|
109
109
|
{
|
|
110
110
|
as: motion.div,
|
|
111
111
|
className: "interface-interface-skeleton__header",
|
|
112
|
-
|
|
112
|
+
ariaLabel: mergedLabels.header,
|
|
113
113
|
initial: isDistractionFree && !isMobileViewport ? "distractionFreeHidden" : "hidden",
|
|
114
114
|
whileHover: isDistractionFree && !isMobileViewport ? "distractionFreeHover" : "visible",
|
|
115
115
|
animate: isDistractionFree && !isMobileViewport ? "distractionFreeDisabled" : "visible",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/interface-skeleton/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\nconst ANIMATION_DURATION = 0.25;\nconst commonTransition = {\n\ttype: 'tween',\n\tduration: ANIMATION_DURATION,\n\tease: [ 0.6, 0, 0.4, 1 ],\n};\n\nfunction useHTMLClass( className ) {\n\tuseEffect( () => {\n\t\tconst element =\n\t\t\tdocument && document.querySelector( `html:not(.${ className })` );\n\t\tif ( ! element ) {\n\t\t\treturn;\n\t\t}\n\t\telement.classList.toggle( className );\n\t\treturn () => {\n\t\t\telement.classList.toggle( className );\n\t\t};\n\t}, [ className ] );\n}\n\nconst headerVariants = {\n\thidden: { opacity: 1, marginTop: -60 },\n\tvisible: { opacity: 1, marginTop: 0 },\n\tdistractionFreeHover: {\n\t\topacity: 1,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.2,\n\t\t\tdelayChildren: 0.2,\n\t\t},\n\t},\n\tdistractionFreeHidden: {\n\t\topacity: 0,\n\t\tmarginTop: -60,\n\t},\n\tdistractionFreeDisabled: {\n\t\topacity: 0,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.8,\n\t\t\tdelayChildren: 0.8,\n\t\t},\n\t},\n};\n\nfunction InterfaceSkeleton(\n\t{\n\t\tisDistractionFree,\n\t\tfooter,\n\t\theader,\n\t\teditorNotices,\n\t\tsidebar,\n\t\tsecondarySidebar,\n\t\tcontent,\n\t\tactions,\n\t\tlabels,\n\t\tclassName,\n\t},\n\tref\n) {\n\tconst [ secondarySidebarResizeListener, secondarySidebarSize ] =\n\t\tuseResizeObserver();\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst disableMotion = useReducedMotion();\n\tconst defaultTransition = {\n\t\ttype: 'tween',\n\t\tduration: disableMotion ? 0 : ANIMATION_DURATION,\n\t\tease: [ 0.6, 0, 0.4, 1 ],\n\t};\n\tuseHTMLClass( 'interface-interface-skeleton__html-container' );\n\n\tconst defaultLabels = {\n\t\t/* translators: accessibility text for the top bar landmark region. */\n\t\theader: _x( 'Header', 'header landmark area' ),\n\t\t/* translators: accessibility text for the content landmark region. */\n\t\tbody: __( 'Content' ),\n\t\t/* translators: accessibility text for the secondary sidebar landmark region. */\n\t\tsecondarySidebar: __( 'Block Library' ),\n\t\t/* translators: accessibility text for the settings landmark region. */\n\t\tsidebar: _x( 'Settings', 'settings landmark area' ),\n\t\t/* translators: accessibility text for the publish landmark region. */\n\t\tactions: __( 'Publish' ),\n\t\t/* translators: accessibility text for the footer landmark region. */\n\t\tfooter: __( 'Footer' ),\n\t};\n\n\tconst mergedLabels = { ...defaultLabels, ...labels };\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\t!! footer && 'has-footer'\n\t\t\t) }\n\t\t>\n\t\t\t<div className=\"interface-interface-skeleton__editor\">\n\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t{ !! header && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__header\"\n\t\t\t\t\t\t\
|
|
5
|
-
"mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,uBAAuB;AAChC,SAAS,YAAY,iBAAiB;AACtC;AAAA,EACC,oBAAoB;AAAA,EACpB,6BAA6B;AAAA,OACvB;AACP,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C,QAAM,oBAAoB;AAAA,IACzB,MAAM;AAAA,IACN,UAAU,gBAAgB,IAAI;AAAA,IAC9B,MAAM,CAAE,KAAK,GAAG,KAAK,CAAE;AAAA,EACxB;AACA,eAAc,8CAA+C;AAE7D,QAAM,gBAAgB;AAAA;AAAA,IAErB,QAAQ,GAAI,UAAU,sBAAuB;AAAA;AAAA,IAE7C,MAAM,GAAI,SAAU;AAAA;AAAA,IAEpB,kBAAkB,GAAI,eAAgB;AAAA;AAAA,IAEtC,SAAS,GAAI,YAAY,wBAAyB;AAAA;AAAA,IAElD,SAAS,GAAI,SAAU;AAAA;AAAA,IAEvB,QAAQ,GAAI,QAAS;AAAA,EACtB;AAEA,QAAM,eAAe,EAAE,GAAG,eAAe,GAAG,OAAO;AAEnD,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,WAAY;AAAA,QACX;AAAA,QACA;AAAA,QACA,CAAC,CAAE,UAAU;AAAA,MACd;AAAA,MAEA;AAAA,6BAAC,SAAI,WAAU,wCACd;AAAA,8BAAC,mBAAgB,SAAU,OACxB,WAAC,CAAE,UACJ;AAAA,YAAC;AAAA;AAAA,cACA,IAAK,OAAO;AAAA,cACZ,WAAU;AAAA,cACV,
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { NavigableRegion } from '@wordpress/admin-ui';\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\nconst ANIMATION_DURATION = 0.25;\nconst commonTransition = {\n\ttype: 'tween',\n\tduration: ANIMATION_DURATION,\n\tease: [ 0.6, 0, 0.4, 1 ],\n};\n\nfunction useHTMLClass( className ) {\n\tuseEffect( () => {\n\t\tconst element =\n\t\t\tdocument && document.querySelector( `html:not(.${ className })` );\n\t\tif ( ! element ) {\n\t\t\treturn;\n\t\t}\n\t\telement.classList.toggle( className );\n\t\treturn () => {\n\t\t\telement.classList.toggle( className );\n\t\t};\n\t}, [ className ] );\n}\n\nconst headerVariants = {\n\thidden: { opacity: 1, marginTop: -60 },\n\tvisible: { opacity: 1, marginTop: 0 },\n\tdistractionFreeHover: {\n\t\topacity: 1,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.2,\n\t\t\tdelayChildren: 0.2,\n\t\t},\n\t},\n\tdistractionFreeHidden: {\n\t\topacity: 0,\n\t\tmarginTop: -60,\n\t},\n\tdistractionFreeDisabled: {\n\t\topacity: 0,\n\t\tmarginTop: 0,\n\t\ttransition: {\n\t\t\t...commonTransition,\n\t\t\tdelay: 0.8,\n\t\t\tdelayChildren: 0.8,\n\t\t},\n\t},\n};\n\nfunction InterfaceSkeleton(\n\t{\n\t\tisDistractionFree,\n\t\tfooter,\n\t\theader,\n\t\teditorNotices,\n\t\tsidebar,\n\t\tsecondarySidebar,\n\t\tcontent,\n\t\tactions,\n\t\tlabels,\n\t\tclassName,\n\t},\n\tref\n) {\n\tconst [ secondarySidebarResizeListener, secondarySidebarSize ] =\n\t\tuseResizeObserver();\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst disableMotion = useReducedMotion();\n\tconst defaultTransition = {\n\t\ttype: 'tween',\n\t\tduration: disableMotion ? 0 : ANIMATION_DURATION,\n\t\tease: [ 0.6, 0, 0.4, 1 ],\n\t};\n\tuseHTMLClass( 'interface-interface-skeleton__html-container' );\n\n\tconst defaultLabels = {\n\t\t/* translators: accessibility text for the top bar landmark region. */\n\t\theader: _x( 'Header', 'header landmark area' ),\n\t\t/* translators: accessibility text for the content landmark region. */\n\t\tbody: __( 'Content' ),\n\t\t/* translators: accessibility text for the secondary sidebar landmark region. */\n\t\tsecondarySidebar: __( 'Block Library' ),\n\t\t/* translators: accessibility text for the settings landmark region. */\n\t\tsidebar: _x( 'Settings', 'settings landmark area' ),\n\t\t/* translators: accessibility text for the publish landmark region. */\n\t\tactions: __( 'Publish' ),\n\t\t/* translators: accessibility text for the footer landmark region. */\n\t\tfooter: __( 'Footer' ),\n\t};\n\n\tconst mergedLabels = { ...defaultLabels, ...labels };\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\t!! footer && 'has-footer'\n\t\t\t) }\n\t\t>\n\t\t\t<div className=\"interface-interface-skeleton__editor\">\n\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t{ !! header && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__header\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.header }\n\t\t\t\t\t\t\tinitial={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHidden'\n\t\t\t\t\t\t\t\t\t: 'hidden'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhileHover={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHover'\n\t\t\t\t\t\t\t\t\t: 'visible'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tanimate={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeDisabled'\n\t\t\t\t\t\t\t\t\t: 'visible'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texit={\n\t\t\t\t\t\t\t\tisDistractionFree && ! isMobileViewport\n\t\t\t\t\t\t\t\t\t? 'distractionFreeHidden'\n\t\t\t\t\t\t\t\t\t: 'hidden'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvariants={ headerVariants }\n\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ header }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t</AnimatePresence>\n\t\t\t\t{ isDistractionFree && (\n\t\t\t\t\t<div className=\"interface-interface-skeleton__header\">\n\t\t\t\t\t\t{ editorNotices }\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t\t<div className=\"interface-interface-skeleton__body\">\n\t\t\t\t\t<AnimatePresence initial={ false }>\n\t\t\t\t\t\t{ !! secondarySidebar && (\n\t\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__secondary-sidebar\"\n\t\t\t\t\t\t\t\tariaLabel={ mergedLabels.secondarySidebar }\n\t\t\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\t\t\tinitial=\"closed\"\n\t\t\t\t\t\t\t\tanimate=\"open\"\n\t\t\t\t\t\t\t\texit=\"closed\"\n\t\t\t\t\t\t\t\tvariants={ {\n\t\t\t\t\t\t\t\t\topen: { width: secondarySidebarSize.width },\n\t\t\t\t\t\t\t\t\tclosed: { width: 0 },\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\t\t\twidth: isMobileViewport\n\t\t\t\t\t\t\t\t\t\t\t? '100vw'\n\t\t\t\t\t\t\t\t\t\t\t: 'fit-content',\n\t\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\tvariants={ {\n\t\t\t\t\t\t\t\t\t\topen: { x: 0 },\n\t\t\t\t\t\t\t\t\t\tclosed: { x: '-100%' },\n\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\ttransition={ defaultTransition }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ secondarySidebarResizeListener }\n\t\t\t\t\t\t\t\t\t{ secondarySidebar }\n\t\t\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</AnimatePresence>\n\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\tclassName=\"interface-interface-skeleton__content\"\n\t\t\t\t\t\tariaLabel={ mergedLabels.body }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ content }\n\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t{ !! sidebar && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__sidebar\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.sidebar }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ sidebar }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t\t{ !! actions && (\n\t\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\t\tclassName=\"interface-interface-skeleton__actions\"\n\t\t\t\t\t\t\tariaLabel={ mergedLabels.actions }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ actions }\n\t\t\t\t\t\t</NavigableRegion>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ !! footer && (\n\t\t\t\t<NavigableRegion\n\t\t\t\t\tclassName=\"interface-interface-skeleton__footer\"\n\t\t\t\t\tariaLabel={ mergedLabels.footer }\n\t\t\t\t>\n\t\t\t\t\t{ footer }\n\t\t\t\t</NavigableRegion>\n\t\t\t) }\n\t\t</div>\n\t);\n}\n\nexport default forwardRef( InterfaceSkeleton );\n"],
|
|
5
|
+
"mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,uBAA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
|
7
7
|
}
|
|
@@ -1,97 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* SCSS Variables.
|
|
6
|
-
*
|
|
7
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
8
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
9
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Fonts & basic variables.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Typography
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Grid System.
|
|
19
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Radius scale.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Elevation scale.
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Dimensions.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Mobile specific styles
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Editor styles.
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Block & Editor UI.
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Block paddings.
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* React Native specific.
|
|
44
|
-
* These variables do not appear to be used anywhere else.
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* Typography
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* Breakpoints & Media Queries
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* Converts a hex value into the rgb equivalent.
|
|
54
|
-
*
|
|
55
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
56
|
-
* @return {string} comma separated rgb values
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
|
-
* Long content fade mixin
|
|
60
|
-
*
|
|
61
|
-
* Creates a fading overlay to signify that the content is longer
|
|
62
|
-
* than the space allows.
|
|
63
|
-
*/
|
|
64
|
-
/**
|
|
65
|
-
* Breakpoint mixins
|
|
66
|
-
*/
|
|
67
|
-
/**
|
|
68
|
-
* Focus styles.
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* Applies editor left position to the selector passed as argument
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* Styles that are reused verbatim in a few places
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* Reset default styles for JavaScript UI based pages.
|
|
81
|
-
* This is a WP-admin agnostic reset
|
|
82
|
-
*/
|
|
83
|
-
/**
|
|
84
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
85
|
-
*/
|
|
86
|
-
/**
|
|
87
|
-
* Creates a checkerboard pattern background to indicate transparency.
|
|
88
|
-
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
89
|
-
*/
|
|
90
1
|
.admin-ui-page {
|
|
91
2
|
display: flex;
|
|
92
3
|
height: 100%;
|
|
93
|
-
background-color: #
|
|
94
|
-
color: #
|
|
4
|
+
background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
5
|
+
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
95
6
|
position: relative;
|
|
96
7
|
z-index: 1;
|
|
97
8
|
flex-flow: column;
|
|
@@ -99,25 +10,34 @@
|
|
|
99
10
|
}
|
|
100
11
|
|
|
101
12
|
.admin-ui-page__header {
|
|
102
|
-
padding: 16px 24px;
|
|
103
|
-
border-bottom: 1px solid #
|
|
104
|
-
background: #
|
|
13
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
14
|
+
border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
|
|
15
|
+
background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
105
16
|
position: sticky;
|
|
106
17
|
top: 0;
|
|
107
18
|
z-index: 1;
|
|
108
19
|
}
|
|
109
20
|
|
|
21
|
+
.admin-ui-page__header-title {
|
|
22
|
+
font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
23
|
+
font-size: var(--wpds-font-size-xl, 20px);
|
|
24
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
25
|
+
line-height: var(--wpds-font-line-height-xl, 32px);
|
|
26
|
+
margin: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
110
32
|
.admin-ui-page__sidebar-toggle-slot:empty {
|
|
111
33
|
display: none;
|
|
112
34
|
}
|
|
113
35
|
|
|
114
36
|
.admin-ui-page__header-subtitle {
|
|
115
|
-
padding-block-end:
|
|
116
|
-
color: #
|
|
117
|
-
font-
|
|
118
|
-
|
|
119
|
-
font-size: 13px;
|
|
120
|
-
line-height: 20px;
|
|
37
|
+
padding-block-end: var(--wpds-dimension-padding-xs, 4px);
|
|
38
|
+
color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
|
|
39
|
+
font-size: var(--wpds-font-size-md, 13px);
|
|
40
|
+
line-height: var(--wpds-font-line-height-md, 24px);
|
|
121
41
|
margin: 0;
|
|
122
42
|
}
|
|
123
43
|
|
|
@@ -129,12 +49,12 @@
|
|
|
129
49
|
}
|
|
130
50
|
|
|
131
51
|
.admin-ui-page__content.has-padding {
|
|
132
|
-
padding: 16px 24px;
|
|
52
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
133
53
|
}
|
|
134
54
|
|
|
135
55
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
|
|
136
56
|
width: auto;
|
|
137
|
-
padding: 0
|
|
57
|
+
padding: 0 var(--wpds-dimension-padding-xs, 4px);
|
|
138
58
|
}
|
|
139
59
|
|
|
140
60
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
|
|
@@ -143,9 +63,54 @@
|
|
|
143
63
|
|
|
144
64
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
|
|
145
65
|
content: attr(aria-label);
|
|
146
|
-
font-size: 12px;
|
|
66
|
+
font-size: var(--wpds-font-size-sm, 12px);
|
|
147
67
|
}
|
|
148
68
|
|
|
69
|
+
/**
|
|
70
|
+
* SCSS Variables.
|
|
71
|
+
*
|
|
72
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
73
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
74
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Colors
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Fonts & basic variables.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Typography
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Grid System.
|
|
87
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* Radius scale.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Elevation scale.
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* Dimensions.
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* Mobile specific styles
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* Editor styles.
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Block & Editor UI.
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* Block paddings.
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* React Native specific.
|
|
112
|
+
* These variables do not appear to be used anywhere else.
|
|
113
|
+
*/
|
|
149
114
|
.admin-ui-breadcrumbs__list {
|
|
150
115
|
list-style: none;
|
|
151
116
|
padding: 0;
|
package/build-style/style.css
CHANGED
|
@@ -1,97 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* SCSS Variables.
|
|
6
|
-
*
|
|
7
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
8
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
9
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Fonts & basic variables.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Typography
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Grid System.
|
|
19
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Radius scale.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Elevation scale.
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Dimensions.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Mobile specific styles
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Editor styles.
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Block & Editor UI.
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Block paddings.
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* React Native specific.
|
|
44
|
-
* These variables do not appear to be used anywhere else.
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* Typography
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* Breakpoints & Media Queries
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* Converts a hex value into the rgb equivalent.
|
|
54
|
-
*
|
|
55
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
56
|
-
* @return {string} comma separated rgb values
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
|
-
* Long content fade mixin
|
|
60
|
-
*
|
|
61
|
-
* Creates a fading overlay to signify that the content is longer
|
|
62
|
-
* than the space allows.
|
|
63
|
-
*/
|
|
64
|
-
/**
|
|
65
|
-
* Breakpoint mixins
|
|
66
|
-
*/
|
|
67
|
-
/**
|
|
68
|
-
* Focus styles.
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* Applies editor left position to the selector passed as argument
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* Styles that are reused verbatim in a few places
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* Reset default styles for JavaScript UI based pages.
|
|
81
|
-
* This is a WP-admin agnostic reset
|
|
82
|
-
*/
|
|
83
|
-
/**
|
|
84
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
85
|
-
*/
|
|
86
|
-
/**
|
|
87
|
-
* Creates a checkerboard pattern background to indicate transparency.
|
|
88
|
-
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
89
|
-
*/
|
|
90
1
|
.admin-ui-page {
|
|
91
2
|
display: flex;
|
|
92
3
|
height: 100%;
|
|
93
|
-
background-color: #
|
|
94
|
-
color: #
|
|
4
|
+
background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
5
|
+
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
95
6
|
position: relative;
|
|
96
7
|
z-index: 1;
|
|
97
8
|
flex-flow: column;
|
|
@@ -99,25 +10,34 @@
|
|
|
99
10
|
}
|
|
100
11
|
|
|
101
12
|
.admin-ui-page__header {
|
|
102
|
-
padding: 16px 24px;
|
|
103
|
-
border-bottom: 1px solid #
|
|
104
|
-
background: #
|
|
13
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
14
|
+
border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
|
|
15
|
+
background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
105
16
|
position: sticky;
|
|
106
17
|
top: 0;
|
|
107
18
|
z-index: 1;
|
|
108
19
|
}
|
|
109
20
|
|
|
21
|
+
.admin-ui-page__header-title {
|
|
22
|
+
font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
23
|
+
font-size: var(--wpds-font-size-xl, 20px);
|
|
24
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
25
|
+
line-height: var(--wpds-font-line-height-xl, 32px);
|
|
26
|
+
margin: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
110
32
|
.admin-ui-page__sidebar-toggle-slot:empty {
|
|
111
33
|
display: none;
|
|
112
34
|
}
|
|
113
35
|
|
|
114
36
|
.admin-ui-page__header-subtitle {
|
|
115
|
-
padding-block-end:
|
|
116
|
-
color: #
|
|
117
|
-
font-
|
|
118
|
-
|
|
119
|
-
font-size: 13px;
|
|
120
|
-
line-height: 20px;
|
|
37
|
+
padding-block-end: var(--wpds-dimension-padding-xs, 4px);
|
|
38
|
+
color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
|
|
39
|
+
font-size: var(--wpds-font-size-md, 13px);
|
|
40
|
+
line-height: var(--wpds-font-line-height-md, 24px);
|
|
121
41
|
margin: 0;
|
|
122
42
|
}
|
|
123
43
|
|
|
@@ -129,12 +49,12 @@
|
|
|
129
49
|
}
|
|
130
50
|
|
|
131
51
|
.admin-ui-page__content.has-padding {
|
|
132
|
-
padding: 16px 24px;
|
|
52
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
133
53
|
}
|
|
134
54
|
|
|
135
55
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
|
|
136
56
|
width: auto;
|
|
137
|
-
padding: 0
|
|
57
|
+
padding: 0 var(--wpds-dimension-padding-xs, 4px);
|
|
138
58
|
}
|
|
139
59
|
|
|
140
60
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
|
|
@@ -143,9 +63,54 @@
|
|
|
143
63
|
|
|
144
64
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
|
|
145
65
|
content: attr(aria-label);
|
|
146
|
-
font-size: 12px;
|
|
66
|
+
font-size: var(--wpds-font-size-sm, 12px);
|
|
147
67
|
}
|
|
148
68
|
|
|
69
|
+
/**
|
|
70
|
+
* SCSS Variables.
|
|
71
|
+
*
|
|
72
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
73
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
74
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Colors
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Fonts & basic variables.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Typography
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Grid System.
|
|
87
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* Radius scale.
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Elevation scale.
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* Dimensions.
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* Mobile specific styles
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* Editor styles.
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Block & Editor UI.
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* Block paddings.
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* React Native specific.
|
|
112
|
+
* These variables do not appear to be used anywhere else.
|
|
113
|
+
*/
|
|
149
114
|
.admin-ui-breadcrumbs__list {
|
|
150
115
|
list-style: none;
|
|
151
116
|
padding: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/interface",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.26.1-next.v.202603102151.0+59e17f9ec",
|
|
4
4
|
"description": "Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
"build-module/store/index.mjs"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@wordpress/a11y": "^4.
|
|
57
|
-
"@wordpress/admin-ui": "^1.
|
|
58
|
-
"@wordpress/base-styles": "^6.
|
|
59
|
-
"@wordpress/components": "^32.
|
|
60
|
-
"@wordpress/compose": "^7.
|
|
61
|
-
"@wordpress/data": "^10.
|
|
62
|
-
"@wordpress/deprecated": "^4.
|
|
63
|
-
"@wordpress/element": "^6.
|
|
64
|
-
"@wordpress/i18n": "^6.
|
|
65
|
-
"@wordpress/icons": "^
|
|
66
|
-
"@wordpress/plugins": "^7.
|
|
67
|
-
"@wordpress/preferences": "^4.
|
|
68
|
-
"@wordpress/viewport": "^6.
|
|
56
|
+
"@wordpress/a11y": "^4.41.1-next.v.202603102151.0+59e17f9ec",
|
|
57
|
+
"@wordpress/admin-ui": "^1.9.1-next.v.202603102151.0+59e17f9ec",
|
|
58
|
+
"@wordpress/base-styles": "^6.17.1-next.v.202603102151.0+59e17f9ec",
|
|
59
|
+
"@wordpress/components": "^32.4.1-next.v.202603102151.0+59e17f9ec",
|
|
60
|
+
"@wordpress/compose": "^7.41.1-next.v.202603102151.0+59e17f9ec",
|
|
61
|
+
"@wordpress/data": "^10.41.1-next.v.202603102151.0+59e17f9ec",
|
|
62
|
+
"@wordpress/deprecated": "^4.41.1-next.v.202603102151.0+59e17f9ec",
|
|
63
|
+
"@wordpress/element": "^6.41.1-next.v.202603102151.0+59e17f9ec",
|
|
64
|
+
"@wordpress/i18n": "^6.14.1-next.v.202603102151.0+59e17f9ec",
|
|
65
|
+
"@wordpress/icons": "^12.0.1-next.v.202603102151.0+59e17f9ec",
|
|
66
|
+
"@wordpress/plugins": "^7.41.1-next.v.202603102151.0+59e17f9ec",
|
|
67
|
+
"@wordpress/preferences": "^4.41.1-next.v.202603102151.0+59e17f9ec",
|
|
68
|
+
"@wordpress/viewport": "^6.41.1-next.v.202603102151.0+59e17f9ec",
|
|
69
69
|
"clsx": "^2.1.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "86db21e727d89e8f0dbba9300d2f97fd22b08693"
|
|
79
79
|
}
|
|
@@ -125,7 +125,7 @@ function InterfaceSkeleton(
|
|
|
125
125
|
<NavigableRegion
|
|
126
126
|
as={ motion.div }
|
|
127
127
|
className="interface-interface-skeleton__header"
|
|
128
|
-
|
|
128
|
+
ariaLabel={ mergedLabels.header }
|
|
129
129
|
initial={
|
|
130
130
|
isDistractionFree && ! isMobileViewport
|
|
131
131
|
? 'distractionFreeHidden'
|