@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.
- package/dist/index.js +5 -10
- 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) =>
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
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