@octaviaflow/icons 3.0.18-beta.0 → 3.0.18-beta.5

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.
package/dist/index.js CHANGED
@@ -20,13 +20,11 @@ var TONE_COLOR = {
20
20
  running: "var(--ods-status-running-fg)"
21
21
  };
22
22
  var BaseIcon = forwardRef(
23
- ({ size = "lg", tone = "primary", color, title, viewBox, children, style, ...rest }, ref) => {
23
+ ({ size = "lg", tone, color, title, viewBox, children, style, ...rest }, ref) => {
24
24
  const pixels = typeof size === "number" ? size : SIZE_PX[size];
25
+ const resolvedColor = color ?? (tone ? TONE_COLOR[tone] : void 0);
25
26
  const mergedStyle = {
26
- // `color` wins over `tone` so the consumer can override an inherited
27
- // tone without having to switch the API. Either way the value drives
28
- // the SVG's CSS `color`, which the inner paths resolve via currentColor.
29
- color: color ?? TONE_COLOR[tone],
27
+ ...resolvedColor !== void 0 && { color: resolvedColor },
30
28
  ...style
31
29
  };
32
30
  return /* @__PURE__ */ jsxs(