@wordpress/interface 5.34.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/build/components/action-item/index.js +46 -43
  3. package/build/components/action-item/index.js.map +1 -1
  4. package/build/components/complementary-area/index.js +83 -67
  5. package/build/components/complementary-area/index.js.map +1 -1
  6. package/build/components/complementary-area-header/index.js +16 -11
  7. package/build/components/complementary-area-header/index.js.map +1 -1
  8. package/build/components/complementary-area-more-menu-item/index.js +4 -4
  9. package/build/components/complementary-area-more-menu-item/index.js.map +1 -1
  10. package/build/components/complementary-area-toggle/index.js +2 -2
  11. package/build/components/complementary-area-toggle/index.js.map +1 -1
  12. package/build/components/interface-skeleton/index.js +100 -72
  13. package/build/components/interface-skeleton/index.js.map +1 -1
  14. package/build/components/navigable-region/index.js +7 -6
  15. package/build/components/navigable-region/index.js.map +1 -1
  16. package/build/components/pinned-items/index.js +10 -8
  17. package/build/components/pinned-items/index.js.map +1 -1
  18. package/build-module/components/action-item/index.js +46 -43
  19. package/build-module/components/action-item/index.js.map +1 -1
  20. package/build-module/components/complementary-area/index.js +85 -67
  21. package/build-module/components/complementary-area/index.js.map +1 -1
  22. package/build-module/components/complementary-area-header/index.js +18 -11
  23. package/build-module/components/complementary-area-header/index.js.map +1 -1
  24. package/build-module/components/complementary-area-more-menu-item/index.js +4 -4
  25. package/build-module/components/complementary-area-more-menu-item/index.js.map +1 -1
  26. package/build-module/components/complementary-area-toggle/index.js +2 -2
  27. package/build-module/components/complementary-area-toggle/index.js.map +1 -1
  28. package/build-module/components/interface-skeleton/index.js +101 -72
  29. package/build-module/components/interface-skeleton/index.js.map +1 -1
  30. package/build-module/components/navigable-region/index.js +7 -6
  31. package/build-module/components/navigable-region/index.js.map +1 -1
  32. package/build-module/components/pinned-items/index.js +10 -8
  33. package/build-module/components/pinned-items/index.js.map +1 -1
  34. package/build-style/style-rtl.css +14 -13
  35. package/build-style/style.css +14 -13
  36. package/package.json +17 -16
  37. package/src/components/complementary-area/index.js +4 -5
  38. package/src/components/complementary-area/style.scss +2 -1
  39. package/src/components/complementary-area-header/index.js +2 -2
  40. package/src/components/complementary-area-header/style.scss +2 -9
  41. package/src/components/interface-skeleton/index.js +62 -42
  42. package/src/components/interface-skeleton/style.scss +13 -5
  43. package/src/components/navigable-region/index.js +2 -2
  44. package/src/components/pinned-items/index.js +2 -2
@@ -1,8 +1,7 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
5
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
6
5
 
7
6
  /**
8
7
  * WordPress dependencies
@@ -16,7 +15,14 @@ import { useMergeRefs, useReducedMotion, useViewportMatch, useResizeObserver } f
16
15
  * Internal dependencies
17
16
  */
18
17
  import NavigableRegion from '../navigable-region';
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
19
20
  const ANIMATION_DURATION = 0.25;
21
+ const commonTransition = {
22
+ type: 'tween',
23
+ duration: ANIMATION_DURATION,
24
+ ease: [0.6, 0, 0.4, 1]
25
+ };
20
26
  function useHTMLClass(className) {
21
27
  useEffect(() => {
22
28
  const element = document && document.querySelector(`html:not(.${className})`);
@@ -31,20 +37,33 @@ function useHTMLClass(className) {
31
37
  }
32
38
  const headerVariants = {
33
39
  hidden: {
34
- opacity: 0
40
+ opacity: 1,
41
+ marginTop: -60
42
+ },
43
+ visible: {
44
+ opacity: 1,
45
+ marginTop: 0
35
46
  },
36
- hover: {
47
+ distractionFreeHover: {
37
48
  opacity: 1,
49
+ marginTop: 0,
38
50
  transition: {
39
- type: 'tween',
51
+ ...commonTransition,
40
52
  delay: 0.2,
41
53
  delayChildren: 0.2
42
54
  }
43
55
  },
44
- distractionFreeInactive: {
45
- opacity: 1,
56
+ distractionFreeHidden: {
57
+ opacity: 0,
58
+ marginTop: -60
59
+ },
60
+ distractionFreeDisabled: {
61
+ opacity: 0,
62
+ marginTop: 0,
46
63
  transition: {
47
- delay: 0
64
+ ...commonTransition,
65
+ delay: 0.8,
66
+ delayChildren: 0.8
48
67
  }
49
68
  }
50
69
  };
@@ -55,7 +74,6 @@ function InterfaceSkeleton({
55
74
  editorNotices,
56
75
  sidebar,
57
76
  secondarySidebar,
58
- notices,
59
77
  content,
60
78
  actions,
61
79
  labels,
@@ -93,71 +111,82 @@ function InterfaceSkeleton({
93
111
  ...defaultLabels,
94
112
  ...labels
95
113
  };
96
- return createElement("div", {
114
+ return /*#__PURE__*/_jsxs("div", {
97
115
  ...(enableRegionNavigation ? navigateRegionsProps : {}),
98
116
  ref: useMergeRefs([ref, enableRegionNavigation ? navigateRegionsProps.ref : undefined]),
99
- className: classnames(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer')
100
- }, createElement("div", {
101
- className: "interface-interface-skeleton__editor"
102
- }, !!header && createElement(NavigableRegion, {
103
- as: motion.div,
104
- className: "interface-interface-skeleton__header",
105
- "aria-label": mergedLabels.header,
106
- initial: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
107
- whileHover: isDistractionFree ? 'hover' : 'distractionFreeInactive',
108
- animate: isDistractionFree ? 'hidden' : 'distractionFreeInactive',
109
- variants: headerVariants,
110
- transition: isDistractionFree ? {
111
- type: 'tween',
112
- delay: 0.8
113
- } : undefined
114
- }, header), isDistractionFree && createElement("div", {
115
- className: "interface-interface-skeleton__header"
116
- }, editorNotices), createElement("div", {
117
- className: "interface-interface-skeleton__body"
118
- }, createElement(AnimatePresence, {
119
- initial: false
120
- }, !!secondarySidebar && createElement(NavigableRegion, {
121
- className: "interface-interface-skeleton__secondary-sidebar",
122
- ariaLabel: mergedLabels.secondarySidebar,
123
- as: motion.div,
124
- initial: "closed",
125
- animate: isMobileViewport ? 'mobileOpen' : 'open',
126
- exit: "closed",
127
- variants: {
128
- open: {
129
- width: secondarySidebarSize.width
130
- },
131
- closed: {
132
- width: 0
133
- },
134
- mobileOpen: {
135
- width: '100vw'
136
- }
137
- },
138
- transition: defaultTransition
139
- }, createElement("div", {
140
- style: {
141
- position: 'absolute',
142
- width: isMobileViewport ? '100vw' : 'fit-content',
143
- height: '100%',
144
- right: 0
145
- }
146
- }, secondarySidebarResizeListener, secondarySidebar))), !!notices && createElement("div", {
147
- className: "interface-interface-skeleton__notices"
148
- }, notices), createElement(NavigableRegion, {
149
- className: "interface-interface-skeleton__content",
150
- ariaLabel: mergedLabels.body
151
- }, content), !!sidebar && createElement(NavigableRegion, {
152
- className: "interface-interface-skeleton__sidebar",
153
- ariaLabel: mergedLabels.sidebar
154
- }, sidebar), !!actions && createElement(NavigableRegion, {
155
- className: "interface-interface-skeleton__actions",
156
- ariaLabel: mergedLabels.actions
157
- }, actions))), !!footer && createElement(NavigableRegion, {
158
- className: "interface-interface-skeleton__footer",
159
- ariaLabel: mergedLabels.footer
160
- }, footer));
117
+ className: clsx(className, 'interface-interface-skeleton', navigateRegionsProps.className, !!footer && 'has-footer'),
118
+ children: [/*#__PURE__*/_jsxs("div", {
119
+ className: "interface-interface-skeleton__editor",
120
+ children: [/*#__PURE__*/_jsx(AnimatePresence, {
121
+ initial: false,
122
+ children: !!header && /*#__PURE__*/_jsx(NavigableRegion, {
123
+ as: motion.div,
124
+ className: "interface-interface-skeleton__header",
125
+ "aria-label": mergedLabels.header,
126
+ initial: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
127
+ whileHover: isDistractionFree ? 'distractionFreeHover' : 'visible',
128
+ animate: isDistractionFree ? 'distractionFreeDisabled' : 'visible',
129
+ exit: isDistractionFree ? 'distractionFreeHidden' : 'hidden',
130
+ variants: headerVariants,
131
+ transition: defaultTransition,
132
+ children: header
133
+ })
134
+ }), isDistractionFree && /*#__PURE__*/_jsx("div", {
135
+ className: "interface-interface-skeleton__header",
136
+ children: editorNotices
137
+ }), /*#__PURE__*/_jsxs("div", {
138
+ className: "interface-interface-skeleton__body",
139
+ children: [/*#__PURE__*/_jsx(AnimatePresence, {
140
+ initial: false,
141
+ children: !!secondarySidebar && /*#__PURE__*/_jsx(NavigableRegion, {
142
+ className: "interface-interface-skeleton__secondary-sidebar",
143
+ ariaLabel: mergedLabels.secondarySidebar,
144
+ as: motion.div,
145
+ initial: "closed",
146
+ animate: isMobileViewport ? 'mobileOpen' : 'open',
147
+ exit: "closed",
148
+ variants: {
149
+ open: {
150
+ width: secondarySidebarSize.width
151
+ },
152
+ closed: {
153
+ width: 0
154
+ },
155
+ mobileOpen: {
156
+ width: '100vw'
157
+ }
158
+ },
159
+ transition: defaultTransition,
160
+ children: /*#__PURE__*/_jsxs("div", {
161
+ style: {
162
+ position: 'absolute',
163
+ width: isMobileViewport ? '100vw' : 'fit-content',
164
+ height: '100%',
165
+ right: 0
166
+ },
167
+ children: [secondarySidebarResizeListener, secondarySidebar]
168
+ })
169
+ })
170
+ }), /*#__PURE__*/_jsx(NavigableRegion, {
171
+ className: "interface-interface-skeleton__content",
172
+ ariaLabel: mergedLabels.body,
173
+ children: content
174
+ }), !!sidebar && /*#__PURE__*/_jsx(NavigableRegion, {
175
+ className: "interface-interface-skeleton__sidebar",
176
+ ariaLabel: mergedLabels.sidebar,
177
+ children: sidebar
178
+ }), !!actions && /*#__PURE__*/_jsx(NavigableRegion, {
179
+ className: "interface-interface-skeleton__actions",
180
+ ariaLabel: mergedLabels.actions,
181
+ children: actions
182
+ })]
183
+ })]
184
+ }), !!footer && /*#__PURE__*/_jsx(NavigableRegion, {
185
+ className: "interface-interface-skeleton__footer",
186
+ ariaLabel: mergedLabels.footer,
187
+ children: footer
188
+ })]
189
+ });
161
190
  }
162
191
  export default forwardRef(InterfaceSkeleton);
163
192
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","forwardRef","useEffect","__unstableUseNavigateRegions","useNavigateRegions","__unstableMotion","motion","__unstableAnimatePresence","AnimatePresence","__","_x","useMergeRefs","useReducedMotion","useViewportMatch","useResizeObserver","NavigableRegion","ANIMATION_DURATION","useHTMLClass","className","element","document","querySelector","classList","toggle","headerVariants","hidden","opacity","hover","transition","type","delay","delayChildren","distractionFreeInactive","InterfaceSkeleton","isDistractionFree","footer","header","editorNotices","sidebar","secondarySidebar","notices","content","actions","labels","enableRegionNavigation","shortcuts","ref","secondarySidebarResizeListener","secondarySidebarSize","isMobileViewport","disableMotion","defaultTransition","duration","ease","navigateRegionsProps","defaultLabels","body","mergedLabels","createElement","undefined","as","div","initial","whileHover","animate","variants","ariaLabel","exit","open","width","closed","mobileOpen","style","position","height","right"],"sources":["@wordpress/interface/src/components/interface-skeleton/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableUseNavigateRegions as useNavigateRegions,\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseMergeRefs,\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport NavigableRegion from '../navigable-region';\n\nconst ANIMATION_DURATION = 0.25;\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: 0 },\n\thover: {\n\t\topacity: 1,\n\t\ttransition: { type: 'tween', delay: 0.2, delayChildren: 0.2 },\n\t},\n\tdistractionFreeInactive: { opacity: 1, transition: { delay: 0 } },\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\tnotices,\n\t\tcontent,\n\t\tactions,\n\t\tlabels,\n\t\tclassName,\n\t\tenableRegionNavigation = true,\n\t\t// Todo: does this need to be a prop.\n\t\t// Can we use a dependency to keyboard-shortcuts directly?\n\t\tshortcuts,\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\tconst navigateRegionsProps = useNavigateRegions( shortcuts );\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: __( 'Settings' ),\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\t{ ...( enableRegionNavigation ? navigateRegionsProps : {} ) }\n\t\t\tref={ useMergeRefs( [\n\t\t\t\tref,\n\t\t\t\tenableRegionNavigation ? navigateRegionsProps.ref : undefined,\n\t\t\t] ) }\n\t\t\tclassName={ classnames(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\tnavigateRegionsProps.className,\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{ !! header && (\n\t\t\t\t\t<NavigableRegion\n\t\t\t\t\t\tas={ motion.div }\n\t\t\t\t\t\tclassName=\"interface-interface-skeleton__header\"\n\t\t\t\t\t\taria-label={ mergedLabels.header }\n\t\t\t\t\t\tinitial={\n\t\t\t\t\t\t\tisDistractionFree\n\t\t\t\t\t\t\t\t? 'hidden'\n\t\t\t\t\t\t\t\t: 'distractionFreeInactive'\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhileHover={\n\t\t\t\t\t\t\tisDistractionFree\n\t\t\t\t\t\t\t\t? 'hover'\n\t\t\t\t\t\t\t\t: 'distractionFreeInactive'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tanimate={\n\t\t\t\t\t\t\tisDistractionFree\n\t\t\t\t\t\t\t\t? 'hidden'\n\t\t\t\t\t\t\t\t: 'distractionFreeInactive'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvariants={ headerVariants }\n\t\t\t\t\t\ttransition={\n\t\t\t\t\t\t\tisDistractionFree\n\t\t\t\t\t\t\t\t? { type: 'tween', delay: 0.8 }\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{ header }\n\t\t\t\t\t</NavigableRegion>\n\t\t\t\t) }\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={\n\t\t\t\t\t\t\t\t\tisMobileViewport ? 'mobileOpen' : 'open'\n\t\t\t\t\t\t\t\t}\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\tmobileOpen: { width: '100vw' },\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<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\tright: 0,\n\t\t\t\t\t\t\t\t\t} }\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</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{ !! notices && (\n\t\t\t\t\t\t<div className=\"interface-interface-skeleton__notices\">\n\t\t\t\t\t\t\t{ notices }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\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"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,UAAU,EAAEC,SAAS,QAAQ,oBAAoB;AAC1D,SACCC,4BAA4B,IAAIC,kBAAkB,EAClDC,gBAAgB,IAAIC,MAAM,EAC1BC,yBAAyB,IAAIC,eAAe,QACtC,uBAAuB;AAC9B,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;AACxC,SACCC,YAAY,EACZC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,QACX,oBAAoB;;AAE3B;AACA;AACA;AACA,OAAOC,eAAe,MAAM,qBAAqB;AAEjD,MAAMC,kBAAkB,GAAG,IAAI;AAE/B,SAASC,YAAYA,CAAEC,SAAS,EAAG;EAClChB,SAAS,CAAE,MAAM;IAChB,MAAMiB,OAAO,GACZC,QAAQ,IAAIA,QAAQ,CAACC,aAAa,CAAG,aAAaH,SAAW,GAAG,CAAC;IACl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S,EAAC,uCAAuC;IACjDgD,SAAS,EAAGT,YAAY,CAACnB;EAAS,GAEhCA,OACc,CACjB,EACC,CAAC,CAAEI,OAAO,IACXgB,aAAA,CAAC3C,eAAe;IACfG,SAAS,EAAC,uCAAuC;IACjDgD,SAAS,EAAGT,YAAY,CAACf;EAAS,GAEhCA,OACc,CAEd,CACD,CAAC,EACJ,CAAC,CAAEP,MAAM,IACVuB,aAAA,CAAC3C,eAAe;IACfG,SAAS,EAAC,sCAAsC;IAChDgD,SAAS,EAAGT,YAAY,CAACtB;EAAQ,GAE/BA,MACc,CAEd,CAAC;AAER;AAEA,eAAelC,UAAU,CAAEgC,iBAAkB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["clsx","forwardRef","useEffect","__unstableUseNavigateRegions","useNavigateRegions","__unstableMotion","motion","__unstableAnimatePresence","AnimatePresence","__","_x","useMergeRefs","useReducedMotion","useViewportMatch","useResizeObserver","NavigableRegion","jsx","_jsx","jsxs","_jsxs","ANIMATION_DURATION","commonTransition","type","duration","ease","useHTMLClass","className","element","document","querySelector","classList","toggle","headerVariants","hidden","opacity","marginTop","visible","distractionFreeHover","transition","delay","delayChildren","distractionFreeHidden","distractionFreeDisabled","InterfaceSkeleton","isDistractionFree","footer","header","editorNotices","sidebar","secondarySidebar","content","actions","labels","enableRegionNavigation","shortcuts","ref","secondarySidebarResizeListener","secondarySidebarSize","isMobileViewport","disableMotion","defaultTransition","navigateRegionsProps","defaultLabels","body","mergedLabels","undefined","children","initial","as","div","whileHover","animate","exit","variants","ariaLabel","open","width","closed","mobileOpen","style","position","height","right"],"sources":["@wordpress/interface/src/components/interface-skeleton/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef, useEffect } from '@wordpress/element';\nimport {\n\t__unstableUseNavigateRegions as useNavigateRegions,\n\t__unstableMotion as motion,\n\t__unstableAnimatePresence as AnimatePresence,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport {\n\tuseMergeRefs,\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport NavigableRegion from '../navigable-region';\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\tenableRegionNavigation = true,\n\t\t// Todo: does this need to be a prop.\n\t\t// Can we use a dependency to keyboard-shortcuts directly?\n\t\tshortcuts,\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\tconst navigateRegionsProps = useNavigateRegions( shortcuts );\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: __( 'Settings' ),\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\t{ ...( enableRegionNavigation ? navigateRegionsProps : {} ) }\n\t\t\tref={ useMergeRefs( [\n\t\t\t\tref,\n\t\t\t\tenableRegionNavigation ? navigateRegionsProps.ref : undefined,\n\t\t\t] ) }\n\t\t\tclassName={ clsx(\n\t\t\t\tclassName,\n\t\t\t\t'interface-interface-skeleton',\n\t\t\t\tnavigateRegionsProps.className,\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\taria-label={ mergedLabels.header }\n\t\t\t\t\t\t\tinitial={\n\t\t\t\t\t\t\t\tisDistractionFree\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\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\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\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={\n\t\t\t\t\t\t\t\t\tisMobileViewport ? 'mobileOpen' : 'open'\n\t\t\t\t\t\t\t\t}\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\tmobileOpen: { width: '100vw' },\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<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\tright: 0,\n\t\t\t\t\t\t\t\t\t} }\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</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"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,UAAU,EAAEC,SAAS,QAAQ,oBAAoB;AAC1D,SACCC,4BAA4B,IAAIC,kBAAkB,EAClDC,gBAAgB,IAAIC,MAAM,EAC1BC,yBAAyB,IAAIC,eAAe,QACtC,uBAAuB;AAC9B,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;AACxC,SACCC,YAAY,EACZC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,QACX,oBAAoB;;AAE3B;AACA;AACA;AACA,OAAOC,eAAe,MAAM,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAElD,MAAMC,kBAAkB,GAAG,IAAI;AAC/B,MAAMC,gBAAgB,GAAG;EACxBC,IAAI,EAAE,OAAO;EACbC,QAAQ,EAAEH,kBAAkB;EAC5BI,IAAI,EAAE,CAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;AACvB,CAAC;AAED,SAASC,YAAYA,CAAEC,SAAS,EAAG;EAClCxB,SAAS,CAAE,MAAM;IAChB,MAAMyB,OAAO,GACZC,QAAQ,IAAIA,QAAQ,CAACC,aAAa,CAAG,aAAaH,SAAW,GAAG,CAAC;I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C4D,KAAK,EAAG;gBACPC,QAAQ,EAAE,UAAU;gBACpBJ,KAAK,EAAElB,gBAAgB,GACpB,OAAO,GACP,aAAa;gBAChBuB,MAAM,EAAE,MAAM;gBACdC,KAAK,EAAE;cACR,CAAG;cAAAhB,QAAA,GAEDV,8BAA8B,EAC9BP,gBAAgB;YAAA,CACd;UAAC,CACU;QACjB,CACe,CAAC,eAClBhC,IAAA,CAACF,eAAe;UACfW,SAAS,EAAC,uCAAuC;UACjDgD,SAAS,EAAGV,YAAY,CAACD,IAAM;UAAAG,QAAA,EAE7BhB;QAAO,CACO,CAAC,EAChB,CAAC,CAAEF,OAAO,iBACX/B,IAAA,CAACF,eAAe;UACfW,SAAS,EAAC,uCAAuC;UACjDgD,SAAS,EAAGV,YAAY,CAAChB,OAAS;UAAAkB,QAAA,EAEhClB;QAAO,CACO,CACjB,EACC,CAAC,CAAEG,OAAO,iBACXlC,IAAA,CAACF,eAAe;UACfW,SAAS,EAAC,uCAAuC;UACjDgD,SAAS,EAAGV,YAAY,CAACb,OAAS;UAAAe,QAAA,EAEhCf;QAAO,CACO,CACjB;MAAA,CACG,CAAC;IAAA,CACF,CAAC,EACJ,CAAC,CAAEN,MAAM,iBACV5B,IAAA,CAACF,eAAe;MACfW,SAAS,EAAC,sCAAsC;MAChDgD,SAAS,EAAGV,YAAY,CAACnB,MAAQ;MAAAqB,QAAA,EAE/BrB;IAAM,CACQ,CACjB;EAAA,CACG,CAAC;AAER;AAEA,eAAe5C,UAAU,CAAE0C,iBAAkB,CAAC","ignoreList":[]}
@@ -1,8 +1,8 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
5
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  export default function NavigableRegion({
7
7
  children,
8
8
  className,
@@ -10,12 +10,13 @@ export default function NavigableRegion({
10
10
  as: Tag = 'div',
11
11
  ...props
12
12
  }) {
13
- return createElement(Tag, {
14
- className: classnames('interface-navigable-region', className),
13
+ return /*#__PURE__*/_jsx(Tag, {
14
+ className: clsx('interface-navigable-region', className),
15
15
  "aria-label": ariaLabel,
16
16
  role: "region",
17
17
  tabIndex: "-1",
18
- ...props
19
- }, children);
18
+ ...props,
19
+ children: children
20
+ });
20
21
  }
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","NavigableRegion","children","className","ariaLabel","as","Tag","props","createElement","role","tabIndex"],"sources":["@wordpress/interface/src/components/navigable-region/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\nexport default function NavigableRegion( {\n\tchildren,\n\tclassName,\n\tariaLabel,\n\tas: Tag = 'div',\n\t...props\n} ) {\n\treturn (\n\t\t<Tag\n\t\t\tclassName={ classnames( 'interface-navigable-region', className ) }\n\t\t\taria-label={ ariaLabel }\n\t\t\trole=\"region\"\n\t\t\ttabIndex=\"-1\"\n\t\t\t{ ...props }\n\t\t>\n\t\t\t{ children }\n\t\t</Tag>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;AAEnC,eAAe,SAASC,eAAeA,CAAE;EACxCC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,EAAE,EAAEC,GAAG,GAAG,KAAK;EACf,GAAGC;AACJ,CAAC,EAAG;EACH,OACCC,aAAA,CAACF,GAAG;IACHH,SAAS,EAAGH,UAAU,CAAE,4BAA4B,EAAEG,SAAU,CAAG;IACnE,cAAaC,SAAW;IACxBK,IAAI,EAAC,QAAQ;IACbC,QAAQ,EAAC,IAAI;IAAA,GACRH;EAAK,GAERL,QACE,CAAC;AAER","ignoreList":[]}
1
+ {"version":3,"names":["clsx","jsx","_jsx","NavigableRegion","children","className","ariaLabel","as","Tag","props","role","tabIndex"],"sources":["@wordpress/interface/src/components/navigable-region/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\nexport default function NavigableRegion( {\n\tchildren,\n\tclassName,\n\tariaLabel,\n\tas: Tag = 'div',\n\t...props\n} ) {\n\treturn (\n\t\t<Tag\n\t\t\tclassName={ clsx( 'interface-navigable-region', className ) }\n\t\t\taria-label={ ariaLabel }\n\t\t\trole=\"region\"\n\t\t\ttabIndex=\"-1\"\n\t\t\t{ ...props }\n\t\t>\n\t\t\t{ children }\n\t\t</Tag>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExB,eAAe,SAASC,eAAeA,CAAE;EACxCC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,EAAE,EAAEC,GAAG,GAAG,KAAK;EACf,GAAGC;AACJ,CAAC,EAAG;EACH,oBACCP,IAAA,CAACM,GAAG;IACHH,SAAS,EAAGL,IAAI,CAAE,4BAA4B,EAAEK,SAAU,CAAG;IAC7D,cAAaC,SAAW;IACxBI,IAAI,EAAC,QAAQ;IACbC,QAAQ,EAAC,IAAI;IAAA,GACRF,KAAK;IAAAL,QAAA,EAERA;EAAQ,CACN,CAAC;AAER","ignoreList":[]}
@@ -1,18 +1,18 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
5
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
6
5
 
7
6
  /**
8
7
  * WordPress dependencies
9
8
  */
10
9
  import { Slot, Fill } from '@wordpress/components';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  function PinnedItems({
12
12
  scope,
13
13
  ...props
14
14
  }) {
15
- return createElement(Fill, {
15
+ return /*#__PURE__*/_jsx(Fill, {
16
16
  name: `PinnedItems/${scope}`,
17
17
  ...props
18
18
  });
@@ -22,12 +22,14 @@ function PinnedItemsSlot({
22
22
  className,
23
23
  ...props
24
24
  }) {
25
- return createElement(Slot, {
25
+ return /*#__PURE__*/_jsx(Slot, {
26
26
  name: `PinnedItems/${scope}`,
27
- ...props
28
- }, fills => fills?.length > 0 && createElement("div", {
29
- className: classnames(className, 'interface-pinned-items')
30
- }, fills));
27
+ ...props,
28
+ children: fills => fills?.length > 0 && /*#__PURE__*/_jsx("div", {
29
+ className: clsx(className, 'interface-pinned-items'),
30
+ children: fills
31
+ })
32
+ });
31
33
  }
32
34
  PinnedItems.Slot = PinnedItemsSlot;
33
35
  export default PinnedItems;
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","Slot","Fill","PinnedItems","scope","props","createElement","name","PinnedItemsSlot","className","fills","length"],"sources":["@wordpress/interface/src/components/pinned-items/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { Slot, Fill } from '@wordpress/components';\n\nfunction PinnedItems( { scope, ...props } ) {\n\treturn <Fill name={ `PinnedItems/${ scope }` } { ...props } />;\n}\n\nfunction PinnedItemsSlot( { scope, className, ...props } ) {\n\treturn (\n\t\t<Slot name={ `PinnedItems/${ scope }` } { ...props }>\n\t\t\t{ ( fills ) =>\n\t\t\t\tfills?.length > 0 && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ classnames(\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t\t'interface-pinned-items'\n\t\t\t\t\t\t) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t</Slot>\n\t);\n}\n\nPinnedItems.Slot = PinnedItemsSlot;\n\nexport default PinnedItems;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,IAAI,EAAEC,IAAI,QAAQ,uBAAuB;AAElD,SAASC,WAAWA,CAAE;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAG;EAC3C,OAAOC,aAAA,CAACJ,IAAI;IAACK,IAAI,EAAI,eAAeH,KAAO,EAAG;IAAA,GAAMC;EAAK,CAAI,CAAC;AAC/D;AAEA,SAASG,eAAeA,CAAE;EAAEJ,KAAK;EAAEK,SAAS;EAAE,GAAGJ;AAAM,CAAC,EAAG;EAC1D,OACCC,aAAA,CAACL,IAAI;IAACM,IAAI,EAAI,eAAeH,KAAO,EAAG;IAAA,GAAMC;EAAK,GAC7CK,KAAK,IACRA,KAAK,EAAEC,MAAM,GAAG,CAAC,IAChBL,aAAA;IACCG,SAAS,EAAGT,UAAU,CACrBS,SAAS,EACT,wBACD;EAAG,GAEDC,KACE,CAGF,CAAC;AAET;AAEAP,WAAW,CAACF,IAAI,GAAGO,eAAe;AAElC,eAAeL,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["clsx","Slot","Fill","jsx","_jsx","PinnedItems","scope","props","name","PinnedItemsSlot","className","children","fills","length"],"sources":["@wordpress/interface/src/components/pinned-items/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { Slot, Fill } from '@wordpress/components';\n\nfunction PinnedItems( { scope, ...props } ) {\n\treturn <Fill name={ `PinnedItems/${ scope }` } { ...props } />;\n}\n\nfunction PinnedItemsSlot( { scope, className, ...props } ) {\n\treturn (\n\t\t<Slot name={ `PinnedItems/${ scope }` } { ...props }>\n\t\t\t{ ( fills ) =>\n\t\t\t\tfills?.length > 0 && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t\t'interface-pinned-items'\n\t\t\t\t\t\t) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t</Slot>\n\t);\n}\n\nPinnedItems.Slot = PinnedItemsSlot;\n\nexport default PinnedItems;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,IAAI,EAAEC,IAAI,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnD,SAASC,WAAWA,CAAE;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAG;EAC3C,oBAAOH,IAAA,CAACF,IAAI;IAACM,IAAI,EAAI,eAAeF,KAAO,EAAG;IAAA,GAAMC;EAAK,CAAI,CAAC;AAC/D;AAEA,SAASE,eAAeA,CAAE;EAAEH,KAAK;EAAEI,SAAS;EAAE,GAAGH;AAAM,CAAC,EAAG;EAC1D,oBACCH,IAAA,CAACH,IAAI;IAACO,IAAI,EAAI,eAAeF,KAAO,EAAG;IAAA,GAAMC,KAAK;IAAAI,QAAA,EAC7CC,KAAK,IACRA,KAAK,EAAEC,MAAM,GAAG,CAAC,iBAChBT,IAAA;MACCM,SAAS,EAAGV,IAAI,CACfU,SAAS,EACT,wBACD,CAAG;MAAAC,QAAA,EAEDC;IAAK,CACH;EACL,CAEG,CAAC;AAET;AAEAP,WAAW,CAACJ,IAAI,GAAGQ,eAAe;AAElC,eAAeJ,WAAW","ignoreList":[]}
@@ -123,7 +123,8 @@
123
123
 
124
124
  .interface-complementary-area-header {
125
125
  background: #fff;
126
- padding-left: 4px;
126
+ padding-left: 12px;
127
+ gap: 8px;
127
128
  }
128
129
  .interface-complementary-area-header .interface-complementary-area-header__title {
129
130
  margin: 0;
@@ -141,12 +142,6 @@
141
142
  }
142
143
  }
143
144
 
144
- @media (min-width: 782px) {
145
- .components-panel__header + .interface-complementary-area-header {
146
- margin-top: 0;
147
- }
148
- }
149
-
150
145
  .interface-complementary-area {
151
146
  background: #fff;
152
147
  color: #1e1e1e;
@@ -173,11 +168,11 @@
173
168
  top: 0;
174
169
  z-index: 1;
175
170
  }
176
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
171
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
177
172
  top: 48px;
178
173
  }
179
174
  @media (min-width: 782px) {
180
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
175
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
181
176
  top: 0;
182
177
  }
183
178
  }
@@ -186,6 +181,7 @@
186
181
  }
187
182
  .interface-complementary-area h2 {
188
183
  font-size: 13px;
184
+ font-weight: 500;
189
185
  color: #1e1e1e;
190
186
  margin-bottom: 1.5em;
191
187
  }
@@ -241,7 +237,7 @@ html.interface-interface-skeleton__html-container {
241
237
  width: 100%;
242
238
  }
243
239
  @media (min-width: 782px) {
244
- html.interface-interface-skeleton__html-container {
240
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)) {
245
241
  position: initial;
246
242
  width: initial;
247
243
  }
@@ -362,29 +358,34 @@ body.is-fullscreen-mode .interface-interface-skeleton {
362
358
  }
363
359
 
364
360
  .interface-interface-skeleton__sidebar {
361
+ border-top: 1px solid #e0e0e0;
365
362
  overflow: hidden;
366
363
  }
367
364
  @media (min-width: 782px) {
368
365
  .interface-interface-skeleton__sidebar {
369
- border-right: 1px solid #e0e0e0;
366
+ box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
367
+ outline: 1px solid transparent;
370
368
  }
371
369
  }
372
370
 
373
371
  .interface-interface-skeleton__secondary-sidebar {
372
+ border-top: 1px solid #e0e0e0;
374
373
  left: 0;
375
374
  }
376
375
  @media (min-width: 782px) {
377
376
  .interface-interface-skeleton__secondary-sidebar {
378
- border-left: 1px solid #e0e0e0;
377
+ box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.133);
378
+ outline: 1px solid transparent;
379
379
  }
380
380
  }
381
381
 
382
382
  .interface-interface-skeleton__header {
383
383
  flex-shrink: 0;
384
384
  height: auto;
385
- border-bottom: 1px solid #e0e0e0;
385
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
386
386
  z-index: 30;
387
387
  color: #1e1e1e;
388
+ outline: 1px solid transparent;
388
389
  }
389
390
 
390
391
  .interface-interface-skeleton__footer {
@@ -123,7 +123,8 @@
123
123
 
124
124
  .interface-complementary-area-header {
125
125
  background: #fff;
126
- padding-right: 4px;
126
+ padding-right: 12px;
127
+ gap: 8px;
127
128
  }
128
129
  .interface-complementary-area-header .interface-complementary-area-header__title {
129
130
  margin: 0;
@@ -141,12 +142,6 @@
141
142
  }
142
143
  }
143
144
 
144
- @media (min-width: 782px) {
145
- .components-panel__header + .interface-complementary-area-header {
146
- margin-top: 0;
147
- }
148
- }
149
-
150
145
  .interface-complementary-area {
151
146
  background: #fff;
152
147
  color: #1e1e1e;
@@ -173,11 +168,11 @@
173
168
  top: 0;
174
169
  z-index: 1;
175
170
  }
176
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
171
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
177
172
  top: 48px;
178
173
  }
179
174
  @media (min-width: 782px) {
180
- .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
175
+ .interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs {
181
176
  top: 0;
182
177
  }
183
178
  }
@@ -186,6 +181,7 @@
186
181
  }
187
182
  .interface-complementary-area h2 {
188
183
  font-size: 13px;
184
+ font-weight: 500;
189
185
  color: #1e1e1e;
190
186
  margin-bottom: 1.5em;
191
187
  }
@@ -241,7 +237,7 @@ html.interface-interface-skeleton__html-container {
241
237
  width: 100%;
242
238
  }
243
239
  @media (min-width: 782px) {
244
- html.interface-interface-skeleton__html-container {
240
+ html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)) {
245
241
  position: initial;
246
242
  width: initial;
247
243
  }
@@ -362,29 +358,34 @@ body.is-fullscreen-mode .interface-interface-skeleton {
362
358
  }
363
359
 
364
360
  .interface-interface-skeleton__sidebar {
361
+ border-top: 1px solid #e0e0e0;
365
362
  overflow: hidden;
366
363
  }
367
364
  @media (min-width: 782px) {
368
365
  .interface-interface-skeleton__sidebar {
369
- border-left: 1px solid #e0e0e0;
366
+ box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.133);
367
+ outline: 1px solid transparent;
370
368
  }
371
369
  }
372
370
 
373
371
  .interface-interface-skeleton__secondary-sidebar {
372
+ border-top: 1px solid #e0e0e0;
374
373
  right: 0;
375
374
  }
376
375
  @media (min-width: 782px) {
377
376
  .interface-interface-skeleton__secondary-sidebar {
378
- border-right: 1px solid #e0e0e0;
377
+ box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
378
+ outline: 1px solid transparent;
379
379
  }
380
380
  }
381
381
 
382
382
  .interface-interface-skeleton__header {
383
383
  flex-shrink: 0;
384
384
  height: auto;
385
- border-bottom: 1px solid #e0e0e0;
385
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
386
386
  z-index: 30;
387
387
  color: #1e1e1e;
388
+ outline: 1px solid transparent;
388
389
  }
389
390
 
390
391
  .interface-interface-skeleton__footer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/interface",
3
- "version": "5.34.0",
3
+ "version": "6.0.0",
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",
@@ -20,7 +20,8 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=12"
23
+ "node": ">=18.12.0",
24
+ "npm": ">=8.19.2"
24
25
  },
25
26
  "main": "build/index.js",
26
27
  "module": "build-module/index.js",
@@ -32,19 +33,19 @@
32
33
  ],
33
34
  "dependencies": {
34
35
  "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^3.57.0",
36
- "@wordpress/components": "^27.5.0",
37
- "@wordpress/compose": "^6.34.0",
38
- "@wordpress/data": "^9.27.0",
39
- "@wordpress/deprecated": "^3.57.0",
40
- "@wordpress/element": "^5.34.0",
41
- "@wordpress/i18n": "^4.57.0",
42
- "@wordpress/icons": "^9.48.0",
43
- "@wordpress/plugins": "^6.25.0",
44
- "@wordpress/preferences": "^3.34.0",
45
- "@wordpress/private-apis": "^0.39.0",
46
- "@wordpress/viewport": "^5.34.0",
47
- "classnames": "^2.3.1"
36
+ "@wordpress/a11y": "^4.0.0",
37
+ "@wordpress/components": "^28.0.0",
38
+ "@wordpress/compose": "^7.0.0",
39
+ "@wordpress/data": "^10.0.0",
40
+ "@wordpress/deprecated": "^4.0.0",
41
+ "@wordpress/element": "^6.0.0",
42
+ "@wordpress/i18n": "^5.0.0",
43
+ "@wordpress/icons": "^10.0.0",
44
+ "@wordpress/plugins": "^7.0.0",
45
+ "@wordpress/preferences": "^4.0.0",
46
+ "@wordpress/private-apis": "^1.0.0",
47
+ "@wordpress/viewport": "^6.0.0",
48
+ "clsx": "^2.1.1"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "react": "^18.0.0",
@@ -53,5 +54,5 @@
53
54
  "publishConfig": {
54
55
  "access": "public"
55
56
  },
56
- "gitHead": "581d8a5580dba8f600b7268d51eb554771ae482c"
57
+ "gitHead": "2f30cddff15723ac7017fd009fc5913b7b419400"
57
58
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -291,10 +291,7 @@ function ComplementaryArea( {
291
291
  <ComplementaryAreaFill
292
292
  activeArea={ activeArea }
293
293
  isActive={ isActive }
294
- className={ classnames(
295
- 'interface-complementary-area',
296
- className
297
- ) }
294
+ className={ clsx( 'interface-complementary-area', className ) }
298
295
  scope={ scope }
299
296
  id={ identifier.replace( '/', ':' ) }
300
297
  >
@@ -305,6 +302,7 @@ function ComplementaryArea( {
305
302
  smallScreenTitle={ smallScreenTitle }
306
303
  toggleButtonProps={ {
307
304
  label: closeLabel,
305
+ size: 'small',
308
306
  shortcut: toggleShortcut,
309
307
  scope,
310
308
  identifier,
@@ -332,6 +330,7 @@ function ComplementaryArea( {
332
330
  }
333
331
  isPressed={ isPinned }
334
332
  aria-expanded={ isPinned }
333
+ size="compact"
335
334
  />
336
335
  ) }
337
336
  </>