@3sc/common-component 0.0.418 → 0.0.419
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.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -27486,15 +27486,15 @@ const P6 = (e, t) => gp(e) ? new R6(t) : new E6(t, {
|
|
|
27486
27486
|
...a6,
|
|
27487
27487
|
...v6
|
|
27488
27488
|
}, P6), Gi = /* @__PURE__ */ RA(M6), hn = ({ name: e, size: t = 24, url: n, color: r = "currentColor", style: o = {}, ...i }) => {
|
|
27489
|
-
const
|
|
27490
|
-
return
|
|
27489
|
+
const { isPrimary: a } = i, l = n || et[e], u = Ft().palette.mode === "dark", d = a ? "invert(0%) brightness(200%)" : u ? "invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%)" : "invert(48%) sepia(0%) saturate(0%) hue-rotate(181deg) brightness(95%) contrast(90%)";
|
|
27490
|
+
return l ? /* @__PURE__ */ g.jsx(
|
|
27491
27491
|
"img",
|
|
27492
27492
|
{
|
|
27493
|
-
src:
|
|
27493
|
+
src: l,
|
|
27494
27494
|
alt: `${e}-icon`,
|
|
27495
27495
|
draggable: !1,
|
|
27496
27496
|
style: {
|
|
27497
|
-
filter:
|
|
27497
|
+
filter: d,
|
|
27498
27498
|
...o
|
|
27499
27499
|
},
|
|
27500
27500
|
...i
|