PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/scripts/preferences/index.js +23 -20 23.6.2 → 22.7.0 View file →
@@ -130,19 +130,19 @@
130 130
131 131 // packages/icons/build-module/library/check.mjs
132 132 var import_primitives = __toESM(require_primitives(), 1);
133 133 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
134 - var check_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) });
134 + var check_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) });
135 135
136 136 // packages/icons/build-module/library/chevron-left.mjs
137 137 var import_primitives2 = __toESM(require_primitives(), 1);
138 138 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
139 - var chevron_left_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" }) });
139 + var chevron_left_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" }) });
140 140
141 141 // packages/icons/build-module/library/chevron-right.mjs
142 142 var import_primitives3 = __toESM(require_primitives(), 1);
143 143 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
144 - var chevron_right_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
144 + var chevron_right_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
145 145
146 146 // packages/preferences/build-module/components/preference-toggle-menu-item/index.mjs
147 147 var import_a11y = __toESM(require_a11y(), 1);
148 148
@@ -505,25 +505,28 @@
505 505 ) });
506 506 } else {
507 507 modalContent = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components4.Navigator, { initialPath: "/", className: "preferences__provider", children: [
508 508 /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.Navigator.Screen, { path: "/", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.Card, { isBorderless: true, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.CardBody, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.__experimentalItemGroup, { children: tabs.map((tab) => {
509 - return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
510 - import_components4.Navigator.Button,
511 - {
512 - path: `/${tab.name}`,
513 - as: import_components4.__experimentalItem,
514 - isAction: true,
515 - children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components4.__experimentalHStack, { justify: "space-between", children: [
516 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.__experimentalTruncate, { children: tab.title }) }),
517 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
518 - icon_default,
519 - {
520 - icon: (0, import_i18n3.isRTL)() ? chevron_left_default : chevron_right_default
521 - }
522 - ) })
523 - ] })
524 - },
525 - tab.name
509 + return (
510 + // @ts-expect-error: Navigator.Button is currently typed in a way that prevents Item from being passed in
511 + /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
512 + import_components4.Navigator.Button,
513 + {
514 + path: `/${tab.name}`,
515 + as: import_components4.__experimentalItem,
516 + isAction: true,
517 + children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components4.__experimentalHStack, { justify: "space-between", children: [
518 + /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.__experimentalTruncate, { children: tab.title }) }),
519 + /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
520 + icon_default,
521 + {
522 + icon: (0, import_i18n3.isRTL)() ? chevron_left_default : chevron_right_default
523 + }
524 + ) })
525 + ] })
526 + },
527 + tab.name
528 + )
526 529 );
527 530 }) }) }) }) }),
528 531 sections.length && sections.map((section) => {
529 532 return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(