@nexub/icons 1.3.0 → 1.5.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 (2) hide show
  1. package/dist/index.js +5 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -513,6 +513,7 @@ var NEXUB_MARK_GRADIENTS = [
513
513
  }
514
514
  ];
515
515
  var MONO_PATH = NEXUB_MARK_PATHS.map((p) => p.d).join(" ");
516
+ var stopClass = (s) => `nxm-s-${s.color}${s.opacity === void 0 ? "" : ` nxm-o-${String(s.opacity).replace(".", "_")}`}`;
516
517
  var NexubMarkSvg = /* @__PURE__ */ forwardRef(
517
518
  // strokeWidth comes from createIcon; the mark is filled, so drop it.
518
519
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -528,16 +529,10 @@ var NexubMarkSvg = /* @__PURE__ */ forwardRef(
528
529
  x2: g.x2,
529
530
  y2: g.y2,
530
531
  gradientUnits: "userSpaceOnUse",
531
- children: g.stops.map((s, j) => /* @__PURE__ */ jsx(
532
- "stop",
533
- {
534
- offset: s.offset,
535
- style: {
536
- stopColor: `var(--color-brand-mark-${s.color})`,
537
- stopOpacity: "opacity" in s ? s.opacity : void 0
538
- }
539
- },
540
- j
532
+ children: g.stops.map((s, j) => (
533
+ // Classes, not style=: server-rendered style attributes are
534
+ // blocked by a strict CSP. Rules: @nexub/themes base.css.
535
+ /* @__PURE__ */ jsx("stop", { offset: s.offset, className: stopClass(s) }, j)
541
536
  ))
542
537
  },
543
538
  i
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/icons",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Icon components for Nexub Design System — tree-shakeable React wrappers around Lucide icons with design-system size tokens.",
5
5
  "type": "module",
6
6
  "license": "MIT",