@npm_leadtech/legal-contracts-ui 0.158.1 → 0.158.2

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
- const w = ({ children: l, variant: o = "default", className: c = "", ...t }) => {
4
- const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700", i = {
3
+ const w = ({ children: l, variant: s = "default", className: c = "", ...t }) => {
4
+ const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700 underline decoration-primary-700/40 underline-offset-2", i = {
5
5
  default: "text-neutral-900 underline",
6
6
  legal: r,
7
7
  ratafia: "cursor-pointer text-primary-200 underline decoration-white/40 underline-offset-2 hover:text-white",
@@ -10,15 +10,15 @@ const w = ({ children: l, variant: o = "default", className: c = "", ...t }) =>
10
10
  unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, f = i[o] ?? i.default, h = e.startsWith("http"), d = (() => {
13
+ }, f = i[s] ?? i.default, d = e.startsWith("http"), h = (() => {
14
14
  if (!a) return e;
15
15
  try {
16
16
  return decodeURIComponent(e).replaceAll(/\s/g, "");
17
17
  } catch {
18
18
  return e.replaceAll("%20", "").replaceAll(/\s/g, "");
19
19
  }
20
- })(), s = t.target === "_blank" || h && !a && !u ? "_blank" : t.target, g = s === "_blank" ? "noopener noreferrer" : t.rel;
21
- return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: l });
20
+ })(), o = t.target === "_blank" || d && !a && !u ? "_blank" : t.target, g = o === "_blank" ? "noopener noreferrer" : t.rel;
21
+ return /* @__PURE__ */ x("a", { ...t, href: h, className: m(c, f), target: o, rel: g, children: l });
22
22
  };
23
23
  export {
24
24
  w as Anchor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.158.1",
3
+ "version": "0.158.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",