@npm_leadtech/legal-contracts-ui 0.147.3 → 0.147.4

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,35 +1,35 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import p from "clsx";
3
- const b = ({ children: a, variant: l = "default", className: c = "", ...r }) => {
4
- const t = r.href || "", n = t.toLowerCase(), u = n.startsWith("mailto:"), o = n.startsWith("tel:"), e = "cursor-pointer text-primary-700", s = {
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import m from "clsx";
3
+ const w = ({ children: o, variant: l = "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 = {
5
5
  default: "text-neutral-900 underline",
6
- legal: e,
6
+ legal: r,
7
7
  ratafia: "cursor-pointer text-primary-200 underline decoration-white/40 underline-offset-2 hover:text-white",
8
- "about-us": e,
8
+ "about-us": r,
9
9
  pricing: "cursor-pointer text-neutral-900",
10
- unsubscribe: e,
10
+ unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, d = s[l] ?? s.default, i = t.startsWith("http") && !o && !u, f = (() => {
14
- if (!o) return t;
13
+ }, f = i[l] ?? i.default, h = e.startsWith("http"), d = (() => {
14
+ if (!a) return e;
15
15
  try {
16
- return decodeURIComponent(t).replace(/\s/g, "");
16
+ return decodeURIComponent(e).replace(/\s/g, "");
17
17
  } catch {
18
- return t.replace(/%20/g, "").replace(/\s/g, "");
18
+ return e.replace(/%20/g, "").replace(/\s/g, "");
19
19
  }
20
- })();
21
- return /* @__PURE__ */ h(
20
+ })(), s = t.target === "_blank" || h && !a && !u ? "_blank" : t.target, g = s === "_blank" ? "noopener noreferrer" : t.rel;
21
+ return /* @__PURE__ */ x(
22
22
  "a",
23
23
  {
24
- ...r,
25
- href: f,
26
- className: p(c, d),
27
- target: i ? "_blank" : void 0,
28
- rel: i ? "noopener noreferrer" : void 0,
29
- children: a
24
+ ...t,
25
+ href: d,
26
+ className: m(c, f),
27
+ target: s,
28
+ rel: g,
29
+ children: o
30
30
  }
31
31
  );
32
32
  };
33
33
  export {
34
- b as Anchor
34
+ w as Anchor
35
35
  };
@@ -3,7 +3,7 @@ import m from "clsx";
3
3
  const s = ({ children: e, variant: l = "default" }) => {
4
4
  const t = {
5
5
  default: "mt-5 mb-3 text-3xl text-gray-900",
6
- legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 text-3xl w-full",
6
+ legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 text-3xl",
7
7
  ratafia: "mt-4 mb-3 text-left text-xl font-bold text-white lg:text-2xl",
8
8
  unsubscribe: "mt-0 mb-0 w-full bg-white pb-4 pt-8 text-left text-3xl leading-tight text-neutral-900 font-sans tracking-tight md:text-4xl md:leading-8"
9
9
  }, x = t[l] ?? t.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.147.3",
3
+ "version": "0.147.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",