| @@ -1,4 +1,5 @@ | ||
| 1 | +(function() { | |
| 1 | 2 | "use strict"; |
| 2 | 3 | var wp; |
| 3 | 4 | (wp ||= {}).preferences = (() => { |
| 4 | 5 | var __create = Object.create; |
| @@ -117,18 +118,21 @@ | ||
| 117 | 118 | |
| 118 | 119 | // packages/icons/build-module/icon/index.mjs |
| 119 | 120 | var import_element = __toESM(require_element(), 1); |
| 120 | 121 | var icon_default = (0, import_element.forwardRef)( |
| 121 | - ({ icon, size = 24, ...props }, ref) => { | |
| 122 | - return (0, import_element.cloneElement)( | |
| 123 | - icon, | |
| 124 | - { | |
| 125 | - width: size, | |
| 126 | - height: size, | |
| 127 | - ...props, | |
| 128 | - ref | |
| 129 | - } | |
| 130 | - ); | |
| 122 | + ({ icon, size = 24, style, ...props }, ref) => { | |
| 123 | + const intrinsicStyle = icon.props.style; | |
| 124 | + const mergedStyle = intrinsicStyle || style ? { ...intrinsicStyle, ...style } : void 0; | |
| 125 | + return (0, import_element.cloneElement)(icon, { | |
| 126 | + width: size, | |
| 127 | + height: size, | |
| 128 | + ...props, | |
| 129 | + // Merge styles so the icon's intrinsic style (e.g. `fill: none` on | |
| 130 | + // stroke-based icons) is preserved unless the consumer overrides | |
| 131 | + // the same property explicitly. | |
| 132 | + ...mergedStyle ? { style: mergedStyle } : {}, | |
| 133 | + ref | |
| 134 | + }); | |
| 131 | 135 | } |
| 132 | 136 | ); |
| 133 | 137 | |
| 134 | 138 | // packages/icons/build-module/library/check.mjs |
| @@ -133,19 +137,19 @@ | ||
| 133 | 137 | |
| 134 | 138 | // packages/icons/build-module/library/check.mjs |
| 135 | 139 | var import_primitives = __toESM(require_primitives(), 1); |
| 136 | 140 | var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); |
| 137 | - 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" }) }); | |
| 141 | + var check_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M7 12L10 15L17 8", vectorEffect: "non-scaling-stroke" }) }); | |
| 138 | 142 | |
| 139 | 143 | // packages/icons/build-module/library/chevron-left.mjs |
| 140 | 144 | var import_primitives2 = __toESM(require_primitives(), 1); |
| 141 | 145 | var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); |
| 142 | - 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" }) }); | |
| 146 | + 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", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M14 6.5L9 12L14 17.5", vectorEffect: "non-scaling-stroke" }) }); | |
| 143 | 147 | |
| 144 | 148 | // packages/icons/build-module/library/chevron-right.mjs |
| 145 | 149 | var import_primitives3 = __toESM(require_primitives(), 1); |
| 146 | 150 | var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); |
| 147 | - 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" }) }); | |
| 151 | + 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", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M10 6.5L15 12L10 17.5", vectorEffect: "non-scaling-stroke" }) }); | |
| 148 | 152 | |
| 149 | 153 | // packages/preferences/build-module/components/preference-toggle-menu-item/index.mjs |
| 150 | 154 | var import_a11y = __toESM(require_a11y(), 1); |
| 151 | 155 | |
| @@ -513,9 +517,8 @@ | ||
| 513 | 517 | import_components4.Navigator.Button, |
| 514 | 518 | { |
| 515 | 519 | path: `/${tab.name}`, |
| 516 | 520 | as: import_components4.__experimentalItem, |
| 517 | - isAction: true, | |
| 518 | 521 | children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components4.__experimentalHStack, { justify: "space-between", children: [ |
| 519 | 522 | /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.__experimentalTruncate, { children: tab.title }) }), |
| 520 | 523 | /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components4.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)( |
| 521 | 524 | icon_default, |
| @@ -575,6 +578,7 @@ | ||
| 575 | 578 | PreferencesModalTabs |
| 576 | 579 | }); |
| 577 | 580 | return __toCommonJS(index_exports); |
| 578 | 581 | })(); |
| 579 | -if(wp.preferences&&typeof wp.preferences==='object'){wp.preferences=Object.assign({},wp.preferences);} | |
| 582 | +(window.wp ||= {}).preferences = wp.preferences; | |
| 583 | +})(); | |
| 580 | 584 | //# sourceMappingURL=index.js.map |