@wordpress/interface 9.17.0 → 9.17.1-next.ff1cebbba.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 (85) hide show
  1. package/build/components/action-item/index.js +68 -66
  2. package/build/components/action-item/index.js.map +7 -1
  3. package/build/components/complementary-area/index.js +215 -194
  4. package/build/components/complementary-area/index.js.map +7 -1
  5. package/build/components/complementary-area-header/index.js +53 -33
  6. package/build/components/complementary-area-header/index.js.map +7 -1
  7. package/build/components/complementary-area-more-menu-item/index.js +60 -39
  8. package/build/components/complementary-area-more-menu-item/index.js.map +7 -1
  9. package/build/components/complementary-area-toggle/index.js +61 -50
  10. package/build/components/complementary-area-toggle/index.js.map +7 -1
  11. package/build/components/fullscreen-mode/index.js +33 -27
  12. package/build/components/fullscreen-mode/index.js.map +7 -1
  13. package/build/components/index.js +52 -55
  14. package/build/components/index.js.map +7 -1
  15. package/build/components/interface-skeleton/index.js +156 -132
  16. package/build/components/interface-skeleton/index.js.map +7 -1
  17. package/build/components/pinned-items/index.js +48 -39
  18. package/build/components/pinned-items/index.js.map +7 -1
  19. package/build/index.js +27 -24
  20. package/build/index.js.map +7 -1
  21. package/build/store/actions.js +94 -165
  22. package/build/store/actions.js.map +7 -1
  23. package/build/store/constants.js +27 -12
  24. package/build/store/constants.js.map +7 -1
  25. package/build/store/deprecated.js +55 -29
  26. package/build/store/deprecated.js.map +7 -1
  27. package/build/store/index.js +44 -32
  28. package/build/store/index.js.map +7 -1
  29. package/build/store/reducer.js +49 -51
  30. package/build/store/reducer.js.map +7 -1
  31. package/build/store/selectors.js +96 -93
  32. package/build/store/selectors.js.map +7 -1
  33. package/build-module/components/action-item/index.js +49 -59
  34. package/build-module/components/action-item/index.js.map +7 -1
  35. package/build-module/components/complementary-area/index.js +185 -174
  36. package/build-module/components/complementary-area/index.js.map +7 -1
  37. package/build-module/components/complementary-area-header/index.js +25 -26
  38. package/build-module/components/complementary-area-header/index.js.map +7 -1
  39. package/build-module/components/complementary-area-more-menu-item/index.js +33 -33
  40. package/build-module/components/complementary-area-more-menu-item/index.js.map +7 -1
  41. package/build-module/components/complementary-area-toggle/index.js +41 -44
  42. package/build-module/components/complementary-area-toggle/index.js.map +7 -1
  43. package/build-module/components/fullscreen-mode/index.js +13 -19
  44. package/build-module/components/fullscreen-mode/index.js.map +7 -1
  45. package/build-module/components/index.js +15 -8
  46. package/build-module/components/index.js.map +7 -1
  47. package/build-module/components/interface-skeleton/index.js +132 -122
  48. package/build-module/components/interface-skeleton/index.js.map +7 -1
  49. package/build-module/components/pinned-items/index.js +20 -32
  50. package/build-module/components/pinned-items/index.js.map +7 -1
  51. package/build-module/index.js +6 -3
  52. package/build-module/index.js.map +7 -1
  53. package/build-module/store/actions.js +47 -138
  54. package/build-module/store/actions.js.map +7 -1
  55. package/build-module/store/constants.js +5 -7
  56. package/build-module/store/constants.js.map +7 -1
  57. package/build-module/store/deprecated.js +21 -20
  58. package/build-module/store/deprecated.js.map +7 -1
  59. package/build-module/store/index.js +10 -22
  60. package/build-module/store/index.js.map +7 -1
  61. package/build-module/store/reducer.js +28 -45
  62. package/build-module/store/reducer.js.map +7 -1
  63. package/build-module/store/selectors.js +64 -87
  64. package/build-module/store/selectors.js.map +7 -1
  65. package/build-style/style-rtl.css +87 -85
  66. package/build-style/style.css +87 -85
  67. package/package.json +21 -15
  68. package/src/components/complementary-area/style.scss +5 -0
  69. package/src/components/complementary-area-header/style.scss +3 -0
  70. package/src/components/fullscreen-mode/style.scss +3 -0
  71. package/src/components/index.js +0 -1
  72. package/src/components/interface-skeleton/index.js +1 -5
  73. package/src/components/interface-skeleton/style.scss +6 -0
  74. package/src/components/pinned-items/style.scss +3 -0
  75. package/src/style.scss +6 -5
  76. package/build/components/index.native.js +0 -21
  77. package/build/components/index.native.js.map +0 -1
  78. package/build/components/navigable-region/index.js +0 -38
  79. package/build/components/navigable-region/index.js.map +0 -1
  80. package/build-module/components/index.native.js +0 -3
  81. package/build-module/components/index.native.js.map +0 -1
  82. package/build-module/components/navigable-region/index.js +0 -30
  83. package/build-module/components/navigable-region/index.js.map +0 -1
  84. package/src/components/navigable-region/README.md +0 -36
  85. package/src/components/navigable-region/index.js +0 -29
@@ -1,9 +1,3 @@
1
- /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
1
  /**
8
2
  * Colors
9
3
  */
@@ -49,51 +43,9 @@
49
43
  * React Native specific.
50
44
  * These variables do not appear to be used anywhere else.
51
45
  */
52
- /**
53
- * Colors
54
- */
55
- /**
56
- * SCSS Variables.
57
- *
58
- * Please use variables from this sheet to ensure consistency across the UI.
59
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
- */
62
- /**
63
- * Fonts & basic variables.
64
- */
65
46
  /**
66
47
  * Typography
67
48
  */
68
- /**
69
- * Grid System.
70
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
71
- */
72
- /**
73
- * Radius scale.
74
- */
75
- /**
76
- * Elevation scale.
77
- */
78
- /**
79
- * Dimensions.
80
- */
81
- /**
82
- * Mobile specific styles
83
- */
84
- /**
85
- * Editor styles.
86
- */
87
- /**
88
- * Block & Editor UI.
89
- */
90
- /**
91
- * Block paddings.
92
- */
93
- /**
94
- * React Native specific.
95
- * These variables do not appear to be used anywhere else.
96
- */
97
49
  /**
98
50
  * Breakpoints & Media Queries
99
51
  */
@@ -109,9 +61,6 @@
109
61
  * Creates a fading overlay to signify that the content is longer
110
62
  * than the space allows.
111
63
  */
112
- /**
113
- * Typography
114
- */
115
64
  /**
116
65
  * Breakpoint mixins
117
66
  */
@@ -134,6 +83,75 @@
134
83
  /**
135
84
  * Reset the WP Admin page styles for Gutenberg-like pages.
136
85
  */
86
+ .admin-ui-page {
87
+ display: flex;
88
+ height: 100%;
89
+ background-color: #fff;
90
+ color: #2f2f2f;
91
+ position: relative;
92
+ z-index: 1;
93
+ flex-flow: column;
94
+ container: admin-ui-page/inline-size;
95
+ }
96
+
97
+ @media not (prefers-reduced-motion) {
98
+ .admin-ui-page {
99
+ transition: width ease-out 0.2s;
100
+ }
101
+ }
102
+ .admin-ui-page__header {
103
+ padding: 16px 48px;
104
+ border-bottom: 1px solid #f0f0f0;
105
+ background: #fff;
106
+ position: sticky;
107
+ top: 0;
108
+ }
109
+
110
+ @container (max-width: 430px) {
111
+ .admin-ui-page__header {
112
+ padding: 16px 24px;
113
+ }
114
+ }
115
+ .admin-ui-page__header-subtitle {
116
+ padding-block-end: 8px;
117
+ color: #757575;
118
+ font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
119
+ font-weight: 400;
120
+ font-size: 13px;
121
+ line-height: 20px;
122
+ margin: 0;
123
+ }
124
+
125
+ .admin-ui-page__content {
126
+ flex-grow: 1;
127
+ overflow: auto;
128
+ display: flex;
129
+ flex-direction: column;
130
+ }
131
+
132
+ .admin-ui-page__content.has-padding {
133
+ padding: 16px 20px;
134
+ }
135
+
136
+ @container (max-width: 430px) {
137
+ .admin-ui-page__content.has-padding {
138
+ padding: 16px 24px;
139
+ }
140
+ }
141
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
142
+ width: auto;
143
+ padding: 0 8px;
144
+ }
145
+
146
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
147
+ display: none;
148
+ }
149
+
150
+ .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
151
+ content: attr(aria-label);
152
+ font-size: 12px;
153
+ }
154
+
137
155
  /**
138
156
  * Colors
139
157
  */
@@ -179,6 +197,18 @@
179
197
  * React Native specific.
180
198
  * These variables do not appear to be used anywhere else.
181
199
  */
200
+ .interface-complementary-area-header {
201
+ background: #fff;
202
+ padding-right: 8px;
203
+ gap: 4px;
204
+ }
205
+ .interface-complementary-area-header .interface-complementary-area-header__title {
206
+ margin: 0 auto 0 0;
207
+ }
208
+
209
+ /**
210
+ * Typography
211
+ */
182
212
  /**
183
213
  * Breakpoints & Media Queries
184
214
  */
@@ -194,9 +224,6 @@
194
224
  * Creates a fading overlay to signify that the content is longer
195
225
  * than the space allows.
196
226
  */
197
- /**
198
- * Typography
199
- */
200
227
  /**
201
228
  * Breakpoint mixins
202
229
  */
@@ -219,33 +246,6 @@
219
246
  /**
220
247
  * Reset the WP Admin page styles for Gutenberg-like pages.
221
248
  */
222
- :root {
223
- --wp-block-synced-color: #7a00df;
224
- --wp-block-synced-color--rgb: 122, 0, 223;
225
- --wp-bound-block-color: var(--wp-block-synced-color);
226
- --wp-admin-theme-color: #007cba;
227
- --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
230
- --wp-admin-theme-color-darker-20: #005a87;
231
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
- --wp-admin-border-width-focus: 2px;
233
- }
234
- @media (min-resolution: 192dpi) {
235
- :root {
236
- --wp-admin-border-width-focus: 1.5px;
237
- }
238
- }
239
-
240
- .interface-complementary-area-header {
241
- background: #fff;
242
- padding-right: 8px;
243
- gap: 4px;
244
- }
245
- .interface-complementary-area-header .interface-complementary-area-header__title {
246
- margin: 0 auto 0 0;
247
- }
248
-
249
249
  .interface-complementary-area {
250
250
  background: #fff;
251
251
  color: #1e1e1e;
@@ -322,11 +322,11 @@
322
322
  height: calc(100% + 32px);
323
323
  }
324
324
  body.js.is-fullscreen-mode #adminmenumain,
325
- body.js.is-fullscreen-mode #wpadminbar {
325
+ body.js.is-fullscreen-mode #wpadminbar {
326
326
  display: none;
327
327
  }
328
328
  body.js.is-fullscreen-mode #wpcontent,
329
- body.js.is-fullscreen-mode #wpfooter {
329
+ body.js.is-fullscreen-mode #wpfooter {
330
330
  margin-left: 0;
331
331
  }
332
332
  }
@@ -444,7 +444,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
444
444
  }
445
445
  @media (min-width: 782px) {
446
446
  .interface-interface-skeleton__secondary-sidebar,
447
- .interface-interface-skeleton__sidebar {
447
+ .interface-interface-skeleton__sidebar {
448
448
  position: relative !important;
449
449
  }
450
450
  }
@@ -543,7 +543,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
543
543
 
544
544
  .interface-pinned-items {
545
545
  display: flex;
546
- gap: 8px;
547
546
  }
548
547
  .interface-pinned-items .components-button {
549
548
  display: none;
@@ -560,4 +559,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
560
559
  .interface-pinned-items .components-button {
561
560
  display: flex;
562
561
  }
562
+ }
563
+ .interface-pinned-items {
564
+ gap: 8px;
563
565
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/interface",
3
- "version": "9.17.0",
3
+ "version": "9.17.1-next.ff1cebbba.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",
@@ -25,26 +25,32 @@
25
25
  },
26
26
  "main": "build/index.js",
27
27
  "module": "build-module/index.js",
28
+ "exports": {
29
+ ".": {
30
+ "import": "./build-module/index.js",
31
+ "require": "./build/index.js"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
28
35
  "react-native": "src/index",
29
- "wpScript": true,
30
36
  "sideEffects": [
31
37
  "build-style/**",
32
38
  "src/**/*.scss",
33
39
  "{src,build,build-module}/{index.js,store/index.js}"
34
40
  ],
35
41
  "dependencies": {
36
- "@babel/runtime": "7.25.7",
37
- "@wordpress/a11y": "^4.32.0",
38
- "@wordpress/components": "^30.5.0",
39
- "@wordpress/compose": "^7.32.0",
40
- "@wordpress/data": "^10.32.0",
41
- "@wordpress/deprecated": "^4.32.0",
42
- "@wordpress/element": "^6.32.0",
43
- "@wordpress/i18n": "^6.5.0",
44
- "@wordpress/icons": "^10.32.0",
45
- "@wordpress/plugins": "^7.32.0",
46
- "@wordpress/preferences": "^4.32.0",
47
- "@wordpress/viewport": "^6.32.0",
42
+ "@wordpress/a11y": "^4.32.1-next.ff1cebbba.0",
43
+ "@wordpress/admin-ui": "^1.0.1-next.ff1cebbba.0",
44
+ "@wordpress/components": "^30.6.1-next.ff1cebbba.0",
45
+ "@wordpress/compose": "^7.32.1-next.ff1cebbba.0",
46
+ "@wordpress/data": "^10.32.1-next.ff1cebbba.0",
47
+ "@wordpress/deprecated": "^4.32.1-next.ff1cebbba.0",
48
+ "@wordpress/element": "^6.32.1-next.ff1cebbba.0",
49
+ "@wordpress/i18n": "^6.5.1-next.ff1cebbba.0",
50
+ "@wordpress/icons": "^11.0.1-next.ff1cebbba.0",
51
+ "@wordpress/plugins": "^7.32.1-next.ff1cebbba.0",
52
+ "@wordpress/preferences": "^4.32.1-next.ff1cebbba.0",
53
+ "@wordpress/viewport": "^6.32.1-next.ff1cebbba.0",
48
54
  "clsx": "^2.1.1"
49
55
  },
50
56
  "peerDependencies": {
@@ -54,5 +60,5 @@
54
60
  "publishConfig": {
55
61
  "access": "public"
56
62
  },
57
- "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
63
+ "gitHead": "c5b659710aff01d40d2eb97b211eb2cec9c07d3b"
58
64
  }
@@ -1,3 +1,8 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/mixins" as *;
3
+ @use "@wordpress/base-styles/variables" as *;
4
+ @use "@wordpress/base-styles/z-index" as *;
5
+
1
6
  .interface-complementary-area {
2
7
  background: $white;
3
8
  color: $gray-900;
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  .interface-complementary-area-header {
2
5
  background: $white;
3
6
  padding-right: $grid-unit-10; // Reduced padding to account for close buttons.
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/mixins" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  body.js.is-fullscreen-mode {
2
5
 
3
6
  @include break-medium {
@@ -4,4 +4,3 @@ export { default as FullscreenMode } from './fullscreen-mode';
4
4
  export { default as InterfaceSkeleton } from './interface-skeleton';
5
5
  export { default as PinnedItems } from './pinned-items';
6
6
  export { default as ActionItem } from './action-item';
7
- export { default as NavigableRegion } from './navigable-region';
@@ -6,6 +6,7 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
9
+ import { NavigableRegion } from '@wordpress/admin-ui';
9
10
  import { forwardRef, useEffect } from '@wordpress/element';
10
11
  import {
11
12
  __unstableMotion as motion,
@@ -18,11 +19,6 @@ import {
18
19
  useResizeObserver,
19
20
  } from '@wordpress/compose';
20
21
 
21
- /**
22
- * Internal dependencies
23
- */
24
- import NavigableRegion from '../navigable-region';
25
-
26
22
  const ANIMATION_DURATION = 0.25;
27
23
  const commonTransition = {
28
24
  type: 'tween',
@@ -1,3 +1,9 @@
1
+ @use "@wordpress/base-styles/breakpoints" as *;
2
+ @use "@wordpress/base-styles/colors" as *;
3
+ @use "@wordpress/base-styles/mixins" as *;
4
+ @use "@wordpress/base-styles/variables" as *;
5
+ @use "@wordpress/base-styles/z-index" as *;
6
+
1
7
  // On Mobile devices, swiping the HTML element should not scroll.
2
8
  // By making it fixed, we prevent that.
3
9
  html.interface-interface-skeleton__html-container {
@@ -1,3 +1,6 @@
1
+ @use "@wordpress/base-styles/mixins" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
1
4
  .interface-pinned-items {
2
5
  display: flex;
3
6
 
package/src/style.scss CHANGED
@@ -1,5 +1,6 @@
1
- @import "./components/complementary-area-header/style.scss";
2
- @import "./components/complementary-area/style.scss";
3
- @import "./components/fullscreen-mode/style.scss";
4
- @import "./components/interface-skeleton/style.scss";
5
- @import "./components/pinned-items/style.scss";
1
+ @use "@wordpress/admin-ui/build-style/style.css" as *;
2
+ @use "./components/complementary-area-header/style.scss" as *;
3
+ @use "./components/complementary-area/style.scss" as *;
4
+ @use "./components/fullscreen-mode/style.scss" as *;
5
+ @use "./components/interface-skeleton/style.scss" as *;
6
+ @use "./components/pinned-items/style.scss" as *;
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "ComplementaryArea", {
8
- enumerable: true,
9
- get: function () {
10
- return _complementaryArea.default;
11
- }
12
- });
13
- Object.defineProperty(exports, "PinnedItems", {
14
- enumerable: true,
15
- get: function () {
16
- return _pinnedItems.default;
17
- }
18
- });
19
- var _complementaryArea = _interopRequireDefault(require("./complementary-area"));
20
- var _pinnedItems = _interopRequireDefault(require("./pinned-items"));
21
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_complementaryArea","_interopRequireDefault","require","_pinnedItems"],"sources":["@wordpress/interface/src/components/index.native.js"],"sourcesContent":["export { default as ComplementaryArea } from './complementary-area';\nexport { default as PinnedItems } from './pinned-items';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _element = require("@wordpress/element");
9
- var _clsx = _interopRequireDefault(require("clsx"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- /**
12
- * WordPress dependencies
13
- */
14
-
15
- /**
16
- * External dependencies
17
- */
18
-
19
- const NavigableRegion = (0, _element.forwardRef)(({
20
- children,
21
- className,
22
- ariaLabel,
23
- as: Tag = 'div',
24
- ...props
25
- }, ref) => {
26
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
27
- ref: ref,
28
- className: (0, _clsx.default)('interface-navigable-region', className),
29
- "aria-label": ariaLabel,
30
- role: "region",
31
- tabIndex: "-1",
32
- ...props,
33
- children: children
34
- });
35
- });
36
- NavigableRegion.displayName = 'NavigableRegion';
37
- var _default = exports.default = NavigableRegion;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_element","require","_clsx","_interopRequireDefault","_jsxRuntime","NavigableRegion","forwardRef","children","className","ariaLabel","as","Tag","props","ref","jsx","clsx","role","tabIndex","displayName","_default","exports","default"],"sources":["@wordpress/interface/src/components/navigable-region/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\nconst NavigableRegion = forwardRef(\n\t( { children, className, ariaLabel, as: Tag = 'div', ...props }, ref ) => {\n\t\treturn (\n\t\t\t<Tag\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( 'interface-navigable-region', className ) }\n\t\t\t\taria-label={ ariaLabel }\n\t\t\t\trole=\"region\"\n\t\t\t\ttabIndex=\"-1\"\n\t\t\t\t{ ...props }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</Tag>\n\t\t);\n\t}\n);\n\nNavigableRegion.displayName = 'NavigableRegion';\nexport default NavigableRegion;\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAwB,IAAAG,WAAA,GAAAH,OAAA;AARxB;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,eAAe,GAAG,IAAAC,mBAAU,EACjC,CAAE;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,SAAS;EAAEC,EAAE,EAAEC,GAAG,GAAG,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAM;EACzE,oBACC,IAAAT,WAAA,CAAAU,GAAA,EAACH,GAAG;IACHE,GAAG,EAAGA,GAAK;IACXL,SAAS,EAAG,IAAAO,aAAI,EAAE,4BAA4B,EAAEP,SAAU,CAAG;IAC7D,cAAaC,SAAW;IACxBO,IAAI,EAAC,QAAQ;IACbC,QAAQ,EAAC,IAAI;IAAA,GACRL,KAAK;IAAAL,QAAA,EAERA;EAAQ,CACN,CAAC;AAER,CACD,CAAC;AAEDF,eAAe,CAACa,WAAW,GAAG,iBAAiB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACjChB,eAAe","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export { default as ComplementaryArea } from './complementary-area';
2
- export { default as PinnedItems } from './pinned-items';
3
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["default","ComplementaryArea","PinnedItems"],"sources":["@wordpress/interface/src/components/index.native.js"],"sourcesContent":["export { default as ComplementaryArea } from './complementary-area';\nexport { default as PinnedItems } from './pinned-items';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,iBAAiB,QAAQ,sBAAsB;AACnE,SAASD,OAAO,IAAIE,WAAW,QAAQ,gBAAgB","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { forwardRef } from '@wordpress/element';
5
-
6
- /**
7
- * External dependencies
8
- */
9
- import clsx from 'clsx';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- const NavigableRegion = forwardRef(({
12
- children,
13
- className,
14
- ariaLabel,
15
- as: Tag = 'div',
16
- ...props
17
- }, ref) => {
18
- return /*#__PURE__*/_jsx(Tag, {
19
- ref: ref,
20
- className: clsx('interface-navigable-region', className),
21
- "aria-label": ariaLabel,
22
- role: "region",
23
- tabIndex: "-1",
24
- ...props,
25
- children: children
26
- });
27
- });
28
- NavigableRegion.displayName = 'NavigableRegion';
29
- export default NavigableRegion;
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["forwardRef","clsx","jsx","_jsx","NavigableRegion","children","className","ariaLabel","as","Tag","props","ref","role","tabIndex","displayName"],"sources":["@wordpress/interface/src/components/navigable-region/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\nconst NavigableRegion = forwardRef(\n\t( { children, className, ariaLabel, as: Tag = 'div', ...props }, ref ) => {\n\t\treturn (\n\t\t\t<Tag\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( 'interface-navigable-region', className ) }\n\t\t\t\taria-label={ ariaLabel }\n\t\t\t\trole=\"region\"\n\t\t\t\ttabIndex=\"-1\"\n\t\t\t\t{ ...props }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</Tag>\n\t\t);\n\t}\n);\n\nNavigableRegion.displayName = 'NavigableRegion';\nexport default NavigableRegion;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,IAAI,MAAM,MAAM;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExB,MAAMC,eAAe,GAAGJ,UAAU,CACjC,CAAE;EAAEK,QAAQ;EAAEC,SAAS;EAAEC,SAAS;EAAEC,EAAE,EAAEC,GAAG,GAAG,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAM;EACzE,oBACCR,IAAA,CAACM,GAAG;IACHE,GAAG,EAAGA,GAAK;IACXL,SAAS,EAAGL,IAAI,CAAE,4BAA4B,EAAEK,SAAU,CAAG;IAC7D,cAAaC,SAAW;IACxBK,IAAI,EAAC,QAAQ;IACbC,QAAQ,EAAC,IAAI;IAAA,GACRH,KAAK;IAAAL,QAAA,EAERA;EAAQ,CACN,CAAC;AAER,CACD,CAAC;AAEDD,eAAe,CAACU,WAAW,GAAG,iBAAiB;AAC/C,eAAeV,eAAe","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- # NavigableRegion
2
-
3
- `NavigableRegion` renders an ARIA landmark region that's meant to be used together with the `useNavigateRegions` component from the `@wordpress/components` package. The ARIA landmark is a `div` element with a `role="region"` attribute and an `aria-label` attribute. It's made focusable by the means of a `tabindex="-1"` attribute so that `useNavigateRegions` can set focus on it and allow keyboard navigation through the regions in the editor.
4
-
5
- It also renders a child `div` element that is responsible to set a negative `z-index` stack level, to make sure the focus style is always visible, regardless of other elements that may cut-off the focus style outline otherwise.
6
-
7
- ## Props
8
-
9
- ### children
10
-
11
- The component that should be rendered as content.
12
-
13
- - Type: React Element
14
- - Required: Yes
15
-
16
- ### className
17
-
18
- The CSS class that will be added to the classes of the wrapper div.
19
-
20
- - Type: `String`
21
- - Required: No
22
-
23
- ### ariaLabel
24
-
25
- A meaningful name for the ARIA landmark region.
26
-
27
- - Type: `String`
28
- - Required: Yes
29
-
30
- ### as
31
-
32
- The component used as the root of the region. Defaults to a `div` element.
33
-
34
- - Type: `Component`
35
- - Required: no
36
- - Default: `div`
@@ -1,29 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { forwardRef } from '@wordpress/element';
5
-
6
- /**
7
- * External dependencies
8
- */
9
- import clsx from 'clsx';
10
-
11
- const NavigableRegion = forwardRef(
12
- ( { children, className, ariaLabel, as: Tag = 'div', ...props }, ref ) => {
13
- return (
14
- <Tag
15
- ref={ ref }
16
- className={ clsx( 'interface-navigable-region', className ) }
17
- aria-label={ ariaLabel }
18
- role="region"
19
- tabIndex="-1"
20
- { ...props }
21
- >
22
- { children }
23
- </Tag>
24
- );
25
- }
26
- );
27
-
28
- NavigableRegion.displayName = 'NavigableRegion';
29
- export default NavigableRegion;