PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.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 All 404 releases
← All changes | build/scripts/preferences/index.js +10 -4 23.9.1 → 24.1.0 View file →
@@ -118,13 +118,19 @@
118 118
119 119 // packages/icons/build-module/icon/index.mjs
120 120 var import_element = __toESM(require_element(), 1);
121 121 var icon_default = (0, import_element.forwardRef)(
122 - ({ icon, size = 24, ...props }, ref) => {
122 + ({ icon, size = 24, style, ...props }, ref) => {
123 + const intrinsicStyle = icon.props.style;
124 + const mergedStyle = intrinsicStyle || style ? { ...intrinsicStyle, ...style } : void 0;
123 125 return (0, import_element.cloneElement)(icon, {
124 126 width: size,
125 127 height: size,
126 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 } : {},
127 133 ref
128 134 });
129 135 }
130 136 );
@@ -131,19 +137,19 @@
131 137
132 138 // packages/icons/build-module/library/check.mjs
133 139 var import_primitives = __toESM(require_primitives(), 1);
134 140 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
135 - 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" }) });
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" }) });
136 142
137 143 // packages/icons/build-module/library/chevron-left.mjs
138 144 var import_primitives2 = __toESM(require_primitives(), 1);
139 145 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
140 - 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" }) });
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" }) });
141 147
142 148 // packages/icons/build-module/library/chevron-right.mjs
143 149 var import_primitives3 = __toESM(require_primitives(), 1);
144 150 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
145 - 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" }) });
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" }) });
146 152
147 153 // packages/preferences/build-module/components/preference-toggle-menu-item/index.mjs
148 154 var import_a11y = __toESM(require_a11y(), 1);
149 155