Link update

This commit is contained in:
OfficialDakari 2025-04-03 10:52:55 +05:00
parent 331a9f6c3b
commit f7ce559e31
3 changed files with 20 additions and 18 deletions

View File

@ -1 +1 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),m=require("./react-you-ui6.js"),g=require("./string_utils-Bad7L8P5.js"),h=e=>{const t=m.usePalette(),{href:r,target:s,rel:o,children:n,className:i,id:c,style:l,...u}=e;return a.jsx("a",{href:r,target:s,rel:o,className:i,id:c,style:{color:g.hexFromArgb(t.primary),textDecoration:"none",...l},...u,children:n})};exports.Link=h; "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),g=require("./react-you-ui6.js"),r=require("./string_utils-Bad7L8P5.js"),h=t=>{const e=g.usePalette(),{href:o,target:s,rel:i,children:n,className:l,id:c,style:a,...u}=t;return m.jsx("a",{href:o,target:s,rel:i,className:l,id:c,style:{color:r.hexFromArgb(e.primary),textDecorationColor:r.hexFromArgb(e.primary),textDecoration:"underline",...a},...u,children:n})};exports.Link=h;

View File

@ -1,23 +1,24 @@
import { jsx as c } from "react/jsx-runtime"; import { jsx as p } from "react/jsx-runtime";
import { usePalette as p } from "./react-you-ui6.mjs"; import { usePalette as x } from "./react-you-ui6.mjs";
import { h as f } from "./string_utils-B4bsIQ5w.mjs"; import { h as t } from "./string_utils-B4bsIQ5w.mjs";
const d = (r) => { const d = (e) => {
const t = p(), { href: e, target: o, rel: s, children: a, className: m, id: n, style: i, ...l } = r; const r = x(), { href: o, target: a, rel: i, children: s, className: l, id: m, style: n, ...c } = e;
return /* @__PURE__ */ c( return /* @__PURE__ */ p(
"a", "a",
{ {
href: e, href: o,
target: o, target: a,
rel: s, rel: i,
className: m, className: l,
id: n, id: m,
style: { style: {
color: f(t.primary), color: t(r.primary),
textDecoration: "none", textDecorationColor: t(r.primary),
...i textDecoration: "underline",
...n
}, },
...l, ...c,
children: a children: s
} }
); );
}; };

View File

@ -26,7 +26,8 @@ export const Link = (props: LinkProps) => {
id={id} id={id}
style={{ style={{
color: hexFromArgb(palette.primary), color: hexFromArgb(palette.primary),
textDecoration: 'none', textDecorationColor: hexFromArgb(palette.primary),
textDecoration: 'underline',
...style, ...style,
}} }}
{...rest} {...rest}